8aa527e6e37ae9835f9a1d2e3ab7f4463588d2a5
[gnulib.git] / ChangeLog
1 2011-05-05  Bruno Haible  <bruno@clisp.org>
2
3         chown: Respect rules for use of AC_LIBOBJ.
4         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5         * modules/chown (configure.ac): ... to here.
6
7 2011-05-05  Bruno Haible  <bruno@clisp.org>
8
9         chdir-long: Move AC_LIBOBJ invocations to module description.
10         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
11         gl_PREREQ_CHDIR_LONG invocations from here...
12         * modules/chdir-long (configure.ac): ... to here.
13
14 2011-05-05  Bruno Haible  <bruno@clisp.org>
15
16         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
17         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18         from here...
19         * modules/canonicalize-lgpl (configure.ac): ... to here.
20
21 2011-05-05  Bruno Haible  <bruno@clisp.org>
22
23         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
24         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
25         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
26         REPLACE_CALLOC.
27         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
28         * modules/calloc-gnu (configure.ac): Likewise.
29
30 2011-05-05  Bruno Haible  <bruno@clisp.org>
31
32         btowc: Move AC_LIBOBJ invocations to module description.
33         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
34         invocations from here...
35         * modules/btowc (configure.ac): ... to here.
36
37 2011-05-21  Bruno Haible  <bruno@clisp.org>
38
39         atexit: Move AC_LIBOBJ invocations to module description.
40         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
41         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
42         here...
43         * modules/atexit (configure.ac): ... to here.
44
45 2011-05-05  Bruno Haible  <bruno@clisp.org>
46
47         atoll: Move AC_LIBOBJ invocations to module description.
48         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
49         invocations from here...
50         * modules/atoll (configure.ac): ... to here.
51
52 2011-05-05  Bruno Haible  <bruno@clisp.org>
53
54         argz: Move AC_LIBOBJ invocations to module description.
55         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
56         * modules/argz (configure.ac): ... to here.
57
58 2011-05-05  Bruno Haible  <bruno@clisp.org>
59
60         alphasort: Move AC_LIBOBJ invocations to module description.
61         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
62         gl_PREREQ_ALPHASORT invocations from here...
63         * modules/alphasort (configure.ac): ... to here.
64
65 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
66
67         verify: new macro verify_expr; verify_true deprecated
68         * NEWS: Mention this.
69         * doc/verify.texi (Compile-time Assertions): Document this.
70         * lib/verify.h (verify_true): Deprecate.
71         (verify_expr): New macro.
72         * tests/test-verify.c (function): Test verify_expr.
73
74 2011-06-14  Jim Meyering  <meyering@redhat.com>
75
76         init.sh: give more portable redirection-related advice in a comment
77         * tests/init.sh (stderr_fileno_): Update the advice in comments.
78         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
79         for lots of discussion.  Stefano Lattarini suggested the solution
80         of putting "9>&2" after the command.  Reported by Bruno Haible.
81
82 2011-06-13  Bruno Haible  <bruno@clisp.org>
83
84         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
85         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
86         'none'.
87
88 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
89
90         ftoastr: use strtof only if HAVE_STRTOF
91         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
92         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
93         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
94         * modules/ftoastr (configure.ac): Check for strtof.
95
96 2011-06-13  Bruno Haible  <bruno@clisp.org>
97
98         gnulib-tool: Addendum to 2011-06-08 commit.
99         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
100         and --witness-c-macro have been given, augment AM_CPPFLAGS.
101
102 2011-06-13  Bruno Haible  <bruno@clisp.org>
103
104         fseeko: Provide a non-inline replacement of fseek().
105         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
106         * modules/fseeko (Depends-on): Add fseek.
107         * modules/fseek (License): Change to LGPLv2+.
108
109 2011-06-13  Bruno Haible  <bruno@clisp.org>
110
111         ftello: Provide a non-inline replacement of ftell().
112         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
113         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
114         not have ftello() (such as on mingw).
115         * modules/ftello (Depends-on): Add ftell.
116         * modules/ftell (License): Change to LGPLv2+.
117
118 2011-05-07  Bruno Haible  <bruno@clisp.org>
119
120         ftell: Move AC_LIBOBJ invocations to module description.
121         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
122         * modules/ftell (configure.ac): ... to here.
123
124 2011-05-07  Bruno Haible  <bruno@clisp.org>
125
126         ftello: Respect rules for use of AC_LIBOBJ.
127         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
128         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
129         here...
130         * modules/ftello (configure.ac): ... to here.
131
132 2011-05-07  Bruno Haible  <bruno@clisp.org>
133
134         fseeko: Simplify.
135         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
136         (gl_FUNC_FSEEKO): Inline it here.
137
138 2011-05-07  Bruno Haible  <bruno@clisp.org>
139
140         fseek: Move AC_LIBOBJ invocations to module description.
141         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
142         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
143         * modules/fseek (configure.ac): ... to here.
144
145 2011-05-07  Bruno Haible  <bruno@clisp.org>
146
147         fseek: Respect rules for use of AC_LIBOBJ.
148         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
149         here...
150         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
151
152 2011-05-07  Bruno Haible  <bruno@clisp.org>
153
154         fseeko: Respect rules for use of AC_LIBOBJ.
155         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
156         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
157         here...
158         * modules/fseeko (configure.ac): ... to here.
159
160 2011-06-13  Bruno Haible  <bruno@clisp.org>
161
162         gnulib-tool: Allow comments in the 'Depends-on' section.
163         * doc/gnulib.texi (Module description): Mention comment syntax in the
164         Depends-on section.
165         * gnulib-tool (func_get_dependencies): Filter out comment lines.
166
167 2011-06-13  Bruno Haible  <bruno@clisp.org>
168
169         file-set.h: guard __attibute__ use, now that it's not always defined
170         * lib/file-set.h (record_file): Use __attribute__ only with compiler
171         versions that support it.  This fixes a coreutils build failure with
172         the vendor cc on HP-UX 11.31.
173
174 2011-06-12  Bruno Haible  <bruno@clisp.org>
175
176         acl: Add support for HP-UX >= 11.11 JFS ACLs.
177         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
178         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
179         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
180         (acl, aclsort): New declarations.
181         (aclv_nontrivial): New declaration.
182         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
183         (file_has_acl): Read also the second kind of HP-UX ACLs.
184         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
185         kind of HP-UX ACLs if the first kind fails.
186         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
187         second kind of HP-UX ACLs.
188         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
189         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
190         agree.
191         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
192         hpuxjfs.
193         Handle hpuxjfs.
194         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
195         hpuxjfs.
196         Handle hpuxjfs.
197         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
198         (func_test_same_acls): Use both lsacl and getacl.
199         Handle hpuxjfs.
200         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
201         (func_test_same_acls): Use both lsacl and getacl.
202         Handle hpuxjfs.
203
204 2011-06-12  Bruno Haible  <bruno@clisp.org>
205
206         acl: Complete the 2010-08-10 fix.
207         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
208         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
209         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
210         explicitly.
211         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
212         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
213
214 2011-06-12  Bruno Haible  <bruno@clisp.org>
215
216         spawn-pipe tests: Comments.
217         * tests/test-spawn-pipe-child.c (main): Update comment.
218         Reported by James Youngman <jay@gnu.org>.
219
220 2011-06-11  James Youngman  <jay@gnu.org>
221
222         New module 'stat-size'.
223         * modules/stat-size: New module.  Provides macros for accessing
224         file size information in instances of struct stat.  Depends on the
225         fileblocks module because it calls st_blocks.
226         * lib/stat-size.h: New file, adapted from coreutils' system.h.
227         * doc/gnulib.texi: Include stat-size.texi.
228         * doc/stat-size.texi: Documentation for this module.
229         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
230         * m4/fileblocks.m4: Mention that stat-size depends on the call to
231         AC_STRUCT_ST_BLOCKS.
232
233 2011-06-09  Bruno Haible  <bruno@clisp.org>
234
235         thread: Support pthreads-win32.
236         * lib/glthread/thread.h (gl_thread_self): Define differently on
237         pthreads-win32.
238         (gl_null_thread): New declaration.
239         (gl_thread_self_pointer): New macro.
240         * lib/glthread/thread.c (gl_null_thread): New constant.
241         * tests/test-lock.c: Use gl_thread_self_pointer instead of
242         gl_thread_self.
243         * tests/test-tls.c: Likewise.
244         Suggested by Paul Eggert. Reported by Eric Blake.
245
246 2011-06-09  Bruno Haible  <bruno@clisp.org>
247
248         thread: Fix confusion between NULL and 0.
249         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
250         Reported by Paul Eggert.
251
252 2011-06-09  Bruno Haible  <bruno@clisp.org>
253
254         spawn-pipe tests: Avoid test failure on HP-UX 11.
255         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
256         is closed.
257
258 2011-06-09  Bruno Haible  <bruno@clisp.org>
259
260         acl tests: Fix compilation error on HP-UX 11.
261         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
262
263 2011-06-09  Bruno Haible  <bruno@clisp.org>
264
265         rmdir: Avoid test failure on HP-UX 10.20.
266         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
267         EEXIST.
268
269 2011-06-08  Eric Blake  <eblake@redhat.com>
270
271         perror: fix test on mingw
272         * modules/perror-tests (Depends-on): Add dup2.
273
274         strerror_r-posix: fix on MacOS
275         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
276         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
277         logic bug.
278         * lib/strerror_r.c (strerror_r): Fix the bug.
279         * lib/strerror.c (strerror): Likewise.
280         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
281         problem.
282         * doc/posix-functions/strerror.texi (strerror): Likewise.
283         * doc/posix-functions/perror.texi (perror): Likewise.
284         * tests/test-strerror.c (main): Enhance test.
285         * tests/test-strerror_r.c (main): Likewise.
286
287 2011-06-08  Bruno Haible  <bruno@clisp.org>
288
289         gnulib-tool: Better isolation between different gnulib-tool invocations.
290         * gnulib-tool: New option --witness-c-macro.
291         (witness_c_macro): New variable.
292         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
293         AM_CPPFLAGS define it as a C macro.
294         (func_emit_tests_Makefile_am): Likewise.
295         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
296         read it from there.
297         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
298         m4_define, not AC_DEFUN.
299         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
300         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
301         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
302         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
303         s|...|...|, to substitute the values of the GNULIB_* module indicator
304         variables.
305         * modules/dirent (Makefile.am): Likewise.
306         * modules/fcntl-h (Makefile.am): Likewise.
307         * modules/iconv-h (Makefile.am): Likewise.
308         * modules/langinfo (Makefile.am): Likewise.
309         * modules/locale (Makefile.am): Likewise.
310         * modules/math (Makefile.am): Likewise.
311         * modules/netdb (Makefile.am): Likewise.
312         * modules/poll-h (Makefile.am): Likewise.
313         * modules/pty (Makefile.am): Likewise.
314         * modules/search (Makefile.am): Likewise.
315         * modules/signal (Makefile.am): Likewise.
316         * modules/spawn (Makefile.am): Likewise.
317         * modules/stdio (Makefile.am): Likewise.
318         * modules/stdlib (Makefile.am): Likewise.
319         * modules/string (Makefile.am): Likewise.
320         * modules/sys_ioctl (Makefile.am): Likewise.
321         * modules/sys_select (Makefile.am): Likewise.
322         * modules/sys_socket (Makefile.am): Likewise.
323         * modules/sys_stat (Makefile.am): Likewise.
324         * modules/sys_times (Makefile.am): Likewise.
325         * modules/sys_utsname (Makefile.am): Likewise.
326         * modules/sys_wait (Makefile.am): Likewise.
327         * modules/termios (Makefile.am): Likewise.
328         * modules/time (Makefile.am): Likewise.
329         * modules/unistd (Makefile.am): Likewise.
330         * modules/wchar (Makefile.am): Likewise.
331
332 2011-06-08  Eric Blake  <eblake@redhat.com>
333
334         strerror: simplify replacement
335         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
336         * modules/strerror (configure.ac): No prereqs needed here...
337         * modules/strerror-override (configure.ac): ...but this needs it.
338         (Files): Add file for needed prereq macro.
339
340 2011-06-08  Bruno Haible  <bruno@clisp.org>
341
342         strerror_r-posix: Tweaks.
343         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
344         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
345         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
346         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
347         (gl_FUNC_STRERROR_R): ... to here.
348         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
349
350 2011-06-07  Eric Blake  <eblake@redhat.com>
351
352         perror: document fixed bugs
353         * doc/posix-functions/perror.texi (perror): Document recent
354         patches.
355
356 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
357
358         stat-time: get_stat_birthtime failure is better-defined
359         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
360         return a timestamp whose tv_sec and tv_nsec values are both -1.
361         Previously, the spec said only that the tv_nsec value was negative.
362         This upward-compatible change simplifies GNU tar a bit.
363
364 2011-06-07  Eric Blake  <eblake@redhat.com>
365
366         strerror_r-posix: work around cygwin 1.7.9
367         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
368         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
369         bug without replacing strerror_r.
370         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
371         strerror_r is buggy, but without requiring strerror_r compilation.
372         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
373
374         test-perror: relax test to ignore cygwin bug
375         * tests/test-perror2.c (main): Relax test on requiring detection
376         of stream errors, and use unbuffered stream.
377         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
378         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
379         * doc/posix-functions/fputc.texi (fputc): Likewise.
380         * doc/posix-functions/fputs.texi (fputs): Likewise.
381         * doc/posix-functions/fputws.texi (fputws): Likewise.
382         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
383         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
384         * doc/posix-functions/getopt.texi (getopt): Likewise.
385         * doc/posix-functions/perror.texi (perror): Likewise.
386         * doc/posix-functions/printf.texi (printf): Likewise.
387         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
388         * doc/posix-functions/psignal.texi (psignal): Likewise.
389         * doc/posix-functions/putc.texi (putc): Likewise.
390         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
391         Likewise.
392         * doc/posix-functions/putchar.texi (putchar): Likewise.
393         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
394         Likewise.
395         * doc/posix-functions/puts.texi (puts): Likewise.
396         * doc/posix-functions/putwc.texi (putwc): Likewise.
397         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
398         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
399         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
400         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
401         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
402         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
403         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
404         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
405
406 2011-05-22  Bruno Haible  <bruno@clisp.org>
407
408         strerror: Move AC_LIBOBJ invocations to module description.
409         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
410         gl_PREREQ_STRERROR invocations from here...
411         * modules/strerror (configure.ac): ... to here.
412
413 2011-05-21  Bruno Haible  <bruno@clisp.org>
414
415         perror: Use common idiom.
416         * modules/perror (configure.ac): Reorder statements.
417
418 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
419
420         tests: fix usage message in 'mktempd_'
421         * tests/init.sh (mktempd_): In the usage message, use literal
422         'mktempd_', not '$ME' (which is even undefined), as the name of
423         the subroutine.
424
425 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
426
427         tests init: new function 'fatal_', for hard errors
428         Before this patch, the only way offered by tests/init.sh to
429         properly signal a hard error was the `framework_failure_'
430         function.  But the error message issued by that function,
431         as its name would suggest, refers to a set-up failure in the
432         testsuite, while hard errors can obviously also be due to
433         other reasons.  The best way to fix this inconsistency is to
434         introduce a new function with a more general error message.
435         * tests/init.sh (fatal_): New function.
436
437 2011-06-06  Eric Blake  <eblake@redhat.com>
438
439         canonicalize-lgpl: use common idiom
440         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
441         over newer POSIX -Rf.
442         Reported by Bruno Haible.
443
444         canonicalize-lgpl: work around AIX realpath bug
445         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
446         * doc/posix-functions/realpath.texi (realpath): Document it.
447         Reported by Bruno Haible.
448
449         strerror: work around FreeBSD bug
450         * lib/strerror.c (strerror): Special case 0.
451         Reported by Bruno Haible.
452
453         strerror-override: avoid bloating errno module
454         * modules/errno (Files, configure.ac): Move replacement strings...
455         * modules/strerror-override: ...to new module.
456         * modules/strerror (Depends-on): Add strerror-override.
457         * modules/strerror_r-posix (Depends-on): Likewise.
458         * MODULES.html.sh: Document new module.
459         Reported by Bruno Haible.
460
461 2011-06-06  Bruno Haible  <bruno@clisp.org>
462
463         spawn-pipe tests: Rename program.
464         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
465         * tests/test-spawn-pipe-child.c: Update comment.
466         * tests/test-spawn-pipe.sh: Update.
467         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
468
469         spawn-pipe tests: Link the child program only against libc.
470         * tests/test-spawn-pipe-child.c: New file, extracted from
471         tests/test-spawn-pipe.c.
472         (main): Expect only one argument.
473         (is_open): New function, copied from tests/test-pipe.c.
474         * tests/test-spawn-pipe.c: Don't include <errno.h>.
475         (child_main): Remove function.
476         (test_pipe): Pass only one argument to the child program.
477         (main): Remove child process code. Expect the child program's name as
478         first argument.
479         * tests/test-spawn-pipe.sh: Pass the child program's name as first
480         argument.
481         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
482         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
483         test-spawn-pipe-child against no libraries.
484
485 2011-06-06  Bruno Haible  <bruno@clisp.org>
486
487         careadlinkat: Avoid mismatch between ssize_t and int.
488         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
489         * lib/careadlinkat.c (careadlinkatcwd): Define always.
490
491 2011-06-06  Jim Meyering  <meyering@redhat.com>
492
493         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
494         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
495         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
496
497 2011-06-05  Bruno Haible  <bruno@clisp.org>
498
499         ansi-c++-opt: Interoperability with libtool.
500         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
501         set the variable to "no", not to ":".
502         * NEWS: Mention the change.
503
504 2011-06-05  Bruno Haible  <bruno@clisp.org>
505
506         acl: Fix test failure on AIX 7.
507         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
508         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
509
510 2011-06-05  Bruno Haible  <bruno@clisp.org>
511
512         pipe-filter-ii: Fix test failure on AIX and IRIX.
513         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
514         with EAGAIN, retry with a smaller buffer size.
515
516 2011-06-05  Bruno Haible  <bruno@clisp.org>
517
518         localename: Fix link dependencies.
519         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
520         * modules/localename-tests (Makefile.am): Link test-localename with
521         $(LIBTHREAD).
522
523 2011-06-05  Bruno Haible  <bruno@clisp.org>
524
525         error: Avoid gcc warning.
526         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
527
528 2011-06-05  Bruno Haible  <bruno@clisp.org>
529
530         unsetenv: Avoid gcc warning.
531         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
532
533 2011-06-05  Bruno Haible  <bruno@clisp.org>
534
535         setenv: Avoid gcc warning.
536         * lib/setenv.c (setenv): Provide declaration if system lacks it.
537
538 2011-06-05  Bruno Haible  <bruno@clisp.org>
539
540         sys_select: Ensure memset is declared also on AIX 7.
541         * lib/sys_select.in.h: Include <string.h> also on AIX.
542         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
543         self-contained also on AIX 7.1.
544
545 2011-06-04  Jim Meyering  <meyering@redhat.com>
546
547         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
548         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
549         function name, "error".
550         (_gl_translatable_diag_func_re): New configurable variable.
551
552 2011-06-04  Bruno Haible  <bruno@clisp.org>
553
554         getopt: Avoid gcc warning.
555         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
556
557 2011-06-04  Bruno Haible  <bruno@clisp.org>
558
559         strerror_r: Fix comments.
560         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
561         commit.
562
563 2011-06-04  Bruno Haible  <bruno@clisp.org>
564
565         perror: Fix compilation error.
566         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
567         Undefine fprintf, not sprintf.
568         * modules/perror (Depends-on): Remove intprops, verify.
569
570 2011-06-04  Bruno Haible  <bruno@clisp.org>
571
572         setlocale: Enable replacement on Cygwin 1.5.
573         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
574         Cygwin 1.5.x.
575         * doc/posix-functions/setlocale.texi: Mention that the problem with the
576         LC_CTYPE category also exists on Cygwin 1.5.x.
577
578 2011-06-04  Bruno Haible  <bruno@clisp.org>
579
580         strerror-override: Don't disable symbol renamings.
581         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
582         * lib/strerror-override.c: Include config.h.
583         (strerror_override): Don't undefine.
584
585 2011-06-03  Bruno Haible  <bruno@clisp.org>
586
587         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
588         * lib/localename.h: Update copyright header.
589         * lib/localename.c: Likewise.
590         * lib/relocatable.h: Likewise.
591         * lib/relocatable.c: Likewise.
592
593 2011-06-02  Bruno Haible  <bruno@clisp.org>
594
595         doc: Fix a module name.
596         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
597
598 2011-06-02  Bruno Haible  <bruno@clisp.org>
599
600         pipe2: Remove dependency on 'nonblocking' module.
601         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
602         O_NONBLOCK is defined by gnulib.
603         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
604         is zero.
605         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
606         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
607         defined by gnulib.
608         (get_nonblocking_flag): New function.
609         (main): Test O_NONBLOCK flag only if it is nonzero.
610         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
611
612 2011-06-03  Jim Meyering  <meyering@redhat.com>
613
614         maint: three new prohibit-header-without-use rules
615         Prohibit use of cloexec.h, posixver.h, same.h without use.
616         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
617         (sc_prohibit_posixver_without_use): Likewise.
618         (sc_prohibit_same_without_use): Likewise.
619
620 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
621
622         allocator: 'die' routine is now given requested size
623         * lib/allocator.h (struct allocator.die): New size arg.
624         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
625         If the actual problem is an ssize_t limitation, not a size_t or
626         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
627
628 2011-06-01  Eric Blake  <eblake@redhat.com>
629
630         strerror: drop strerror_r dependency
631         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
632         * lib/strerror-override.c (strerror_override): ...to new file.
633         * lib/strerror-override.h: Add prototype.
634         * lib/strerror-impl.h: Delete.
635         * lib/strerror.c (strerror): New implementation.
636         * modules/errno (Files): Add new files.
637         (configure.ac): Compile new file as appropriate.
638         * modules/strerror (Files): Drop unused file.
639         (Depends-on): Drop strerror_r-posix.
640         * MODULES.html.sh: Document strerror_r-posix.
641         Requested by Sam Steingold.
642
643         perror: call strerror_r directly
644         * modules/perror (Files): Drop strerror-impl.h.
645         * lib/perror.c (perror): Use our own stack buffer, rather than
646         calling a wrapper that uses static storage.
647         * doc/posix-functions/perror.texi (perror): Document a limitation
648         of our replacement.
649
650         strerror_r: fix includes for FreeBSD
651         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
652         since we use abort on some platforms.
653         Reported by Matthias Bolte.
654
655 2011-05-31  Bruno Haible  <bruno@clisp.org>
656
657         Fix link errors in tests: openat-die uses gettext-h.
658         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
659         against $(LIBINTL).
660         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
661         against $(LIBINTL).
662         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
663         $(LIBINTL).
664         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
665         against $(LIBINTL).
666         * modules/linkat-tests (Makefile.am): Link test-linkat against
667         $(LIBINTL).
668         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
669         $(LIBINTL).
670         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
671         against $(LIBINTL).
672         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
673         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
674         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
675         $(LIBINTL).
676         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
677         $(LIBINTL).
678         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
679         $(LIBINTL).
680         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
681
682 2011-05-31  Bruno Haible  <bruno@clisp.org>
683
684         Fix link errors in tests: wait-process uses gettext-h.
685         * modules/nonblocking-pipe-tests (Makefile.am): Set
686         test_nonblocking_pipe_main_LDADD.
687         * modules/nonblocking-socket-tests (Makefile.am): Link
688         test-nonblocking-socket-main against $(LIBINTL).
689         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
690
691 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
692
693         assert-h: work around 'verify' incompatibility
694         * lib/verify.h: Use @...@ directives, not ifdef.
695         * modules/assert-h (assert.h): Implement the directives.
696         (assert.h): Substitute the symbol-prefix more consistently.
697
698 2011-05-29  Jim Meyering  <meyering@redhat.com>
699
700         trim: remove three superfluous assignments
701         * lib/trim.c (trim2): Remove three superfluous assignments
702         and correct brace positioning.
703
704 2011-05-29  Bruno Haible  <bruno@clisp.org>
705
706         wctype-h: Avoid namespace pollution on Solaris 2.6.
707         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
708         identifiers.
709         * doc/posix-headers/wctype.texi: Mention the problem.
710         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
711
712 2011-05-28  Jim Meyering  <meyering@redhat.com>
713
714         parse-datetime.y: accommodate -Wstrict-overflow
715         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
716         placate -Wstrict-overflow.
717
718         trim: avoid a warning from -O2 -Wstrict-overflow
719         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
720
721 2011-05-29  Bruno Haible  <bruno@clisp.org>
722
723         gnulib-tool: Fix bug in yesterday's commit.
724         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
725         twice.
726
727 2011-05-29  Bruno Haible  <bruno@clisp.org>
728
729         Allow multiple gnulib generated include files to be combined.
730         * gnulib-tool (func_compute_include_guard_prefix): New function.
731         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
732         ${gl_include_guard_prefix} references.
733         (func_import, func_create_testdir): Invoke
734         func_compute_include_guard_prefix.
735         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
736         * lib/ctype.in.h: Likewise.
737         * lib/dirent.in.h: Likewise.
738         * lib/errno.in.h: Likewise.
739         * lib/fcntl.in.h: Likewise.
740         * lib/float.in.h: Likewise.
741         * lib/getopt.in.h: Likewise.
742         * lib/iconv.in.h: Likewise.
743         * lib/langinfo.in.h: Likewise.
744         * lib/locale.in.h: Likewise.
745         * lib/math.in.h: Likewise.
746         * lib/netdb.in.h: Likewise.
747         * lib/netinet_in.in.h: Likewise.
748         * lib/poll.in.h: Likewise.
749         * lib/pthread.in.h: Likewise.
750         * lib/pty.in.h: Likewise.
751         * lib/sched.in.h: Likewise.
752         * lib/se-selinux.in.h: Likewise.
753         * lib/search.in.h: Likewise.
754         * lib/signal.in.h: Likewise.
755         * lib/spawn.in.h: Likewise.
756         * lib/stdarg.in.h: Likewise.
757         * lib/stddef.in.h: Likewise.
758         * lib/stdint.in.h: Likewise.
759         * lib/stdio.in.h: Likewise.
760         * lib/stdlib.in.h: Likewise.
761         * lib/string.in.h: Likewise.
762         * lib/strings.in.h: Likewise.
763         * lib/sys_file.in.h: Likewise.
764         * lib/sys_ioctl.in.h: Likewise.
765         * lib/sys_select.in.h: Likewise.
766         * lib/sys_socket.in.h: Likewise.
767         * lib/sys_stat.in.h: Likewise.
768         * lib/sys_time.in.h: Likewise.
769         * lib/sys_times.in.h: Likewise.
770         * lib/sys_uio.in.h: Likewise.
771         * lib/sys_utsname.in.h: Likewise.
772         * lib/sys_wait.in.h: Likewise.
773         * lib/sysexits.in.h: Likewise.
774         * lib/termios.in.h: Likewise.
775         * lib/time.in.h: Likewise.
776         * lib/unistd.in.h: Likewise.
777         * lib/wchar.in.h: Likewise.
778         * lib/wctype.in.h: Likewise.
779         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
780         * modules/ctype (Makefile.am): Likewise.
781         * modules/dirent (Makefile.am): Likewise.
782         * modules/errno (Makefile.am): Likewise.
783         * modules/fcntl-h (Makefile.am): Likewise.
784         * modules/float (Makefile.am): Likewise.
785         * modules/getopt-posix (Makefile.am): Likewise.
786         * modules/iconv-h (Makefile.am): Likewise.
787         * modules/langinfo (Makefile.am): Likewise.
788         * modules/locale (Makefile.am): Likewise.
789         * modules/math (Makefile.am): Likewise.
790         * modules/netdb (Makefile.am): Likewise.
791         * modules/netinet_in (Makefile.am): Likewise.
792         * modules/poll-h (Makefile.am): Likewise.
793         * modules/pthread (Makefile.am): Likewise.
794         * modules/pty (Makefile.am): Likewise.
795         * modules/sched (Makefile.am): Likewise.
796         * modules/search (Makefile.am): Likewise.
797         * modules/selinux-h (Makefile.am): Likewise.
798         * modules/signal (Makefile.am): Likewise.
799         * modules/spawn (Makefile.am): Likewise.
800         * modules/stdarg (Makefile.am): Likewise.
801         * modules/stddef (Makefile.am): Likewise.
802         * modules/stdint (Makefile.am): Likewise.
803         * modules/stdio (Makefile.am): Likewise.
804         * modules/stdlib (Makefile.am): Likewise.
805         * modules/string (Makefile.am): Likewise.
806         * modules/strings (Makefile.am): Likewise.
807         * modules/sys_file (Makefile.am): Likewise.
808         * modules/sys_ioctl (Makefile.am): Likewise.
809         * modules/sys_select (Makefile.am): Likewise.
810         * modules/sys_socket (Makefile.am): Likewise.
811         * modules/sys_stat (Makefile.am): Likewise.
812         * modules/sys_time (Makefile.am): Likewise.
813         * modules/sys_times (Makefile.am): Likewise.
814         * modules/sys_uio (Makefile.am): Likewise.
815         * modules/sys_utsname (Makefile.am): Likewise.
816         * modules/sys_wait (Makefile.am): Likewise.
817         * modules/sysexits (Makefile.am): Likewise.
818         * modules/termios (Makefile.am): Likewise.
819         * modules/time (Makefile.am): Likewise.
820         * modules/unistd (Makefile.am): Likewise.
821         * modules/wchar (Makefile.am): Likewise.
822         * modules/wctype-h (Makefile.am): Likewise.
823         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
824
825 2011-05-29  Bruno Haible  <bruno@clisp.org>
826
827         assert-h: Allow multiple gnulib generated replacements to coexist.
828         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
829
830 2011-05-29  Bruno Haible  <bruno@clisp.org>
831
832         argp: Allow coexistence with strerror_r-posix module.
833         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
834         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
835         by gnulib's <string.h> replacement), assume it has the POSIX signature,
836         not the glibc signature.
837
838 2011-05-28  Bruno Haible  <bruno@clisp.org>
839
840         gnulib-tool: Alternative structure of testdirs, similar to --import.
841         * gnulib-tool: New option --single-configure.
842         (func_usage): Document it.
843         (single_configure): New variable.
844         (func_modules_transitive_closure_separately,
845         func_modules_transitive_closure_separately,
846         func_determine_use_libtests, func_modules_add_dummy_separately,
847         func_modules_to_filelist_separately): New functions, extracted from
848         func_import.
849         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
850         (func_import): Use the new functions.
851         (func_create_testdir): Set final_modules. Handle $single_configure =
852         true case.
853
854 2011-05-28  Bruno Haible  <bruno@clisp.org>
855
856         getloadavg: Remove an unreliable safety check.
857         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
858         getloadavg.c is in place.
859         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
860         Reported by Sam Steingold <sds@gnu.org>.
861
862 2011-05-28  Bruno Haible  <bruno@clisp.org>
863
864         doc: Cleanup yet another file produced by texinfo.tex.
865         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
866
867 2011-05-28  Bruno Haible  <bruno@clisp.org>
868
869         Finish the conditional dependencies mechanism.
870         * gnulib-tool: New option --no-conditional-dependencies.
871         (func_usage): Document it. Don't mark --conditional-dependencies as
872         experimental.
873         (cond_dependencies): The possible values can now be true, false, empty.
874         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
875         (func_import): Store setting in gnulib-cache.m4 and read it from there.
876         * doc/gnulib-tool.texi (Conditional dependencies): New section.
877
878 2011-05-28  Bruno Haible  <bruno@clisp.org>
879
880         doc: Use a recent texinfo.tex.
881         * doc/Makefile (tex_opts): New variable.
882         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
883
884 2011-05-28  Jim Meyering  <meyering@redhat.com>
885
886         intprops.h: adjust comment to match code change
887         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
888         only once, it *may* have side effects.  Also fix an unrelated typo.
889         (_GL_INT_SIGNED): Likewise.
890
891 2011-05-26  Simon Josefsson  <simon@josefsson.org>
892
893         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
894
895 2011-05-26  Bruno Haible  <bruno@clisp.org>
896
897         mbsrchr: Avoid collision with system function on Interix.
898         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
899         Reported by Markus Duft <mduft@gentoo.org>.
900
901 2011-05-15  James Youngman  <jay@gnu.org>
902
903         getopt: for ambiguous options, enumerate the possibilities.
904         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
905         the ambiguous options when an ambiguous prefix is given. This was
906         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
907         glibc change was
908         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
909
910 2011-05-25  Eric Blake  <eblake@redhat.com>
911
912         getcwd: work around mingw bug
913         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
914         * doc/posix-functions/getcwd.texi (getcwd): Document it.
915         Reported by Matthias Bolte.
916
917 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
918
919         test-intprops: disable -Wtype-limits diagnostics
920         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
921         diagnostics.  Otherwise, the integer overflow macros generate many
922         diagnostics.  Reported by Jim Meyering in
923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
924
925         intprops: shorten, to pacify gcc -Woverlength-strings
926         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
927         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
928         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
929         likely to run afoul of C compiler limits for string constant lengths.
930         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
931
932 2011-05-24  Eric Blake  <eblake@redhat.com>
933
934         docs: document recently fixed glibc printf bug
935         * doc/posix-functions/fprintf.texi (fprintf): Document it.
936         * doc/posix-functions/printf.texi (printf): Likewise.
937         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
938         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
939
940         closein-tests: convert to init.sh
941         * modules/closein-tests (Files): Add init.sh
942         * tests/test-closein.sh Use it.
943
944         yesno-tests: convert to init.sh
945         * modules/yesno-tests (Files): Add init.sh.
946         * tests/test-yesno.sh: Use it.
947
948         atexit-tests: ensure reliable exit status
949         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
950         Reported by Bruno Haible.
951
952 2011-05-24  Bruno Haible  <bruno@clisp.org>
953
954         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
955         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
956         gl_PREREQ_STRERROR_R invocations from here...
957         * modules/strerror_r-posix (configure.ac): ... to here.
958
959 2011-05-24  Eric Blake  <eblake@redhat.com>
960
961         strerror_r: fix missing header
962         * lib/strerror_r.c: Avoid compiler warning about snprintf.
963
964         strerror_r: fix AIX test failures
965         * lib/strerror_r.c (strerror_r): Convert silent truncation to
966         ERANGE failure.
967
968         strerror_r: fix Solaris test failures
969         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
970         failures.
971         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
972
973         strerror_r: enforce POSIX recommendations
974         * lib/strerror_r.c (safe_copy): New helper method.
975         (strerror_r): Guarantee a non-empty string.
976         * tests/test-strerror_r.c (main): Enhance tests to incorporate
977         recent POSIX rulings and to match our strerror guarantees.
978         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
979
980 2011-05-24  Jim Meyering  <meyering@redhat.com>
981
982         test-perror2.c: avoid warning about unused variable
983         * tests/test-perror2.c (main): Remove declaration of unused "fp".
984
985 2011-05-24  Eric Blake  <eblake@redhat.com>
986
987         perror: avoid spurious test failure on HP-UX
988         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
989
990         tests: fix logic bug in init.sh
991         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
992         shell.
993
994 2011-05-24  Jim Meyering  <meyering@redhat.com>
995
996         utimensat: do not reference an out-of-scope buffer
997         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
998         declared in an inner scope, yet "times" would be dereferenced outside
999         the scope in which "ts" was valid.
1000         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1001         of ts[2] "out/up", so that the use of aliased "times" (via
1002         "times = ts;") does not end up referencing an out-of-scope "ts"
1003
1004         opendir-safer.c: don't clobber errno; don't close negative FD
1005         * lib/opendir-safer.c (opendir_safer):
1006         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1007         file descriptor, and more importantly, don't clobber the
1008         offending errno value with EINVAL.  Before, upon failure
1009         of dup_safer, we would pass the negative file descriptor to
1010         fdopendir, which would clobber errno.
1011
1012 2011-05-23  Bruno Haible  <bruno@clisp.org>
1013
1014         idcache: Fix module description.
1015         * modules/idcache (Include): Set to "idcache.h".
1016
1017 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1018
1019         gnulib-tool: fix portability problem with MacOS sed
1020         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1021         before the "}".  Problem reported by Leo in
1022         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1023         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1024         sed_extract_condition1, sed_extract_condition2.
1025
1026 2011-05-23  Bruno Haible  <bruno@clisp.org>
1027
1028         hash: Simplify autoconf macro.
1029         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1030
1031 2011-05-23  Bruno Haible  <bruno@clisp.org>
1032
1033         getugroups: Fix module description.
1034         * modules/getugroups (Include): Set to "getugroups.h".
1035
1036 2011-05-23  Bruno Haible  <bruno@clisp.org>
1037
1038         linkat: Simplify autoconf macro.
1039         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1040
1041 2011-05-23  Bruno Haible  <bruno@clisp.org>
1042             Eric Blake  <eblake@redhat.com>
1043
1044         linkat, renameat: Update dependencies.
1045         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1046         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1047         symlinkat.
1048
1049 2011-05-23  Jim Meyering  <meyering@redhat.com>
1050
1051         maint.mk: more tight_scope improvements
1052         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1053         (_gl_TS_headers): Define only in if-0'd block.
1054         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1055         sometimes we must *not* use it.  Adjust uses accordingly.
1056         (sc_tight_scope): Use much simpler grep-based test to determine
1057         whether we skip this rule.
1058
1059         maint.mk: generalize/improve the tight-scope rule
1060         * top/maint.mk: Emit a warning when the test is skipped.
1061         (_gl_TS_dir): Add $(srcdir)/ prefix.
1062         (_gl_TS_function_match): Simplify, rather than trying
1063         to enumerate common types.  Otherwise, it would fail to match an
1064         "extern unsigned char const *" declaration in idutils.
1065         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1066         a way to support use of that type of macro.
1067         (_gl_TS_var_match): Simplify regexp.
1068         (_gl_TS_obj_files): New configurable variable.
1069         (_gl_TS_headers): Likewise.
1070
1071 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1072
1073         verify: fix bug when gnulib <assert.h> is also included
1074         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1075         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1076         Perhaps there's a better way, but this fixes the immediate problem.
1077         Problem reported by Bruno Haible in
1078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1079
1080 2011-05-22  Bruno Haible  <bruno@clisp.org>
1081
1082         xgetcwd: Simplify autoconf macro.
1083         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1084
1085 2011-05-22  Bruno Haible  <bruno@clisp.org>
1086
1087         New module 'mktime-internal'.
1088         * modules/mktime-internal: New file.
1089         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1090         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1091         mktime_internal as a C macro if libc has __mktime_internal.
1092         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1093         conditions.
1094         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1095
1096 2011-05-22  Bruno Haible  <bruno@clisp.org>
1097
1098         timegm: Correct mktime replacement statements.
1099         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1100         defining mktime as a C macro. This completes a 2009-07-28 commit.
1101
1102 2011-05-22  Bruno Haible  <bruno@clisp.org>
1103
1104         timegm: Simplify autoconf macro.
1105         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1106
1107 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1108
1109         clock-time: change to LGPLv2+.
1110         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1111         BSD-like but we have no mark for that; this is good enough for now.
1112
1113 2011-05-21  Bruno Haible  <bruno@clisp.org>
1114
1115         strerror_r: Fix comments.
1116         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1117
1118 2011-05-21  Bruno Haible  <bruno@clisp.org>
1119
1120         relocatable-prog-wrapper: Fix possible link error.
1121         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1122         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1123         (gl_FUNC_SETENV): ... to here.
1124         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1125         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1126
1127 2011-05-21  Bruno Haible  <bruno@clisp.org>
1128
1129         relocatable-prog-wrapper: Assume strerror() exists.
1130         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1131         m4/strerror.m4.
1132         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1133         * lib/relocwrapper.c: Remove mention of strerror module.
1134         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1135         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1136         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1137         C macro.
1138
1139 2011-05-21  Bruno Haible  <bruno@clisp.org>
1140
1141         select: Simplify replacement idiom.
1142         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1143         Win32 platforms.
1144         * lib/sys_select.in.h (select): Simplify accordingly.
1145         * modules/select (Depends-on): Likewise.
1146
1147 2011-05-21  Bruno Haible  <bruno@clisp.org>
1148
1149         mkdir-p: Simplify autoconf macro.
1150         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1151         gl_FUNC_LCHOWN.
1152
1153 2011-05-21  Eric Blake  <eblake@redhat.com>
1154
1155         strerror_r: avoid clobbering strerror on cygwin
1156         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1157         fall back instead to sys_errlist.
1158         * modules/strerror (configure.ac): Add witness.
1159         * tests/test-strerror_r.c (main): Enhance test.
1160         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1161         * tests/test-perror2.c (main): Free memory before exit.
1162
1163 2011-05-21  Bruno Haible  <bruno@clisp.org>
1164
1165         mkdtemp: Use gnulib naming conventions.
1166         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1167         * modules/mkdtemp (configure.ac): Update.
1168
1169 2011-05-20  Eric Blake  <eblake@redhat.com>
1170
1171         strerror_r: avoid corrupting errno on Solaris
1172         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1173         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1174
1175         strerror_r: avoid compiler warning
1176         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1177
1178         strerror_r: simplify AIX code
1179         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1180
1181         test-perror: avoid spurious failure on FreeBSD
1182         * modules/perror-tests (Depends-on): Add strerror, now that
1183         strerror_r no longer pulls it in.
1184
1185 2011-05-20  Bruno Haible  <bruno@clisp.org>
1186
1187         strerror_r-posix: Remove unused dependencies.
1188         * modules/strerror_r-posix (Depends-on): Remove strerror.
1189         Reported by Eric Blake.
1190
1191 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1192
1193         intprops: remove assumption about A|B representation
1194         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1195         is a valid integer if both A and B are.  Although this is true for
1196         all known practical hosts, the C standard doesn't guarantee it,
1197         and the code need not assume it.  Also, this change may work around
1198         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1200
1201 2011-05-20  Eric Blake  <eblake@redhat.com>
1202
1203         perror: work around FreeBSD bug
1204         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1205         is broken.  Move AC_LIBOBJ...
1206         * modules/perror (configure.ac): Here.
1207         * doc/posix-functions/perror.texi (perror): Document this.
1208         * tests/test-perror2.c (main): Enhance test.
1209
1210         test-perror: check for strerror interactions
1211         * tests/macros.h (STREQ): Add macro.
1212         * modules/perror-tests (Files): Add second test.
1213         * tests/test-perror2.c (main): New file.
1214         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1215
1216         test-perror: rewrite to use init script
1217         * modules/perror-tests (Files): Add init.sh.
1218         * tests/test-perror.sh: Use temporary directory.
1219
1220 2011-05-20  Jim Meyering  <meyering@redhat.com>
1221
1222         maint: replace misused "a" with "an"
1223         * doc/intprops.texi: "a integer"
1224         * doc/regex.texi: "a explanation"
1225         * lib/alignof.h: "a object"
1226         * lib/argmatch.h: "a explanation"
1227         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1228         * lib/stdint.in.h: "a integer"
1229         * lib/userspec.c: "a owner"
1230         * doc/gnulib.texi: Fix "a idea", and reword.
1231
1232 2011-05-19  Jim Meyering  <meyering@redhat.com>
1233
1234         maint: correct misuse of "a" and "an"
1235         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1236         * lib/argp-help.c: "an docum...": s/an/a/
1237         * lib/argp-parse.c: "An vector": s/An/A/
1238         * lib/execute.c: "an native": s/an/a/
1239         * lib/spawn-pipe.c: Likewise.
1240         * lib/gc.h: "an Gc_rc": s/an/a/
1241         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1242         * lib/fts.c: "an stat.st_dev": s/an/a/
1243
1244 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1245
1246         intprops-tests: work around HP-UX 11.23 cc bug with constants
1247         * tests/test-intprops.c (VERIFY): New macro.
1248         (main): Use it, instead of verify, to work around the compiler bug; see
1249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1250
1251         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1252         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1253         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1254         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1255         (_GL_REMAINDER_OVERFLOW): Use it.
1256
1257         intprops-tests: revert unsigned part of previous change
1258         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1259         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1260         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1262
1263 2011-05-19  Bruno Haible  <bruno@clisp.org>
1264
1265         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1266         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1267         strerror_r() returned without filling the buffer.
1268         Reported by Eric Blake.
1269
1270 2011-05-19  Eric Blake  <eblake@redhat.com>
1271
1272         strerror_r: guarantee unchanged errno
1273         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1274         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1275         failure.
1276         * tests/test-strerror_r.c (main): Enhance test.
1277
1278 2011-05-19  Bruno Haible  <bruno@clisp.org>
1279
1280         strerror_r: Reorder #if blocks.
1281         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1282         for consistency with the previous commit.
1283
1284 2011-05-19  Bruno Haible  <bruno@clisp.org>
1285
1286         perror: Avoid clobbering the strerror buffer when possible.
1287         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1288         * lib/strerror.c: Include it.
1289         * modules/strerror (Files): Add lib/strerror-impl.h.
1290         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1291         (my_strerror): New function, defined through lib/strerror-impl.h.
1292         (perror): Use it instead of strerror.
1293         * modules/perror (Files): Add lib/strerror-impl.h.
1294         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1295
1296 2011-05-19  Eric Blake  <eblake@redhat.com>
1297
1298         strerror_r: fix on newer cygwin
1299         * lib/strerror_r.c (strerror_r): Cygwin now has
1300         __xpg_strerror_r, use it.
1301
1302 2011-05-19  Bruno Haible  <bruno@clisp.org>
1303
1304         strerror_r: Avoid clobbering the strerror buffer when possible.
1305         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1306         (sys_nerr, sys_errlist): New declarations.
1307         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1308         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1309         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1310
1311 2011-05-19  Bruno Haible  <bruno@clisp.org>
1312
1313         strerror_r: Fix test failure on mingw.
1314         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1315         EXTEND_STRERROR_R.
1316         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1317         macros from errno.in.h instead.
1318
1319 2011-05-19  Eric Blake  <eblake@redhat.com>
1320
1321         strerror: relax test for Solaris
1322         * tests/test-strerror.c (main): Permit Solaris behavior.
1323         * tests/test-strerror_r.c (main): Likewise.
1324
1325         strerror: enforce POSIX ruling on strerror(0)
1326         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1327         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1328         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1329         * doc/posix-functions/strerror.texi (strerror): Document it.
1330         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1331         * tests/test-strerror.c (main): Strengthen test.
1332         * tests/test-strerror_r.c (main): Likewise.
1333
1334 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1335
1336         intprop-tests: port to older and more-pedantic compilers
1337         * modules/intprops-tests (Files): Add tests/macros.h.
1338         * tests/test-intprops.c: Include macros.h.
1339         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1340         it's no longer documented to expand to an integer constant expression.
1341         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1342         argument is floating point, as it's no longer documented to expand
1343         to an integer constant expression in that case.
1344         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1345         compiler bugs reported by Bruno Haible.  See
1346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1347         (U0, U1): New constants, to work around the same bugs.  Also,
1348         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1349
1350         intprops: work around C compiler bugs
1351         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1352         bug in Sun C 5.11 2010/08/13 and other compilers; see
1353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1354
1355         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1356         * doc/intprops.texi (Integer Type Determination): Fix
1357         documentation for TYPE_IS_INTEGER: it returns an constant
1358         expression, not an integer constant expression.  Fix doc for
1359         TYPE_SIGNED: it returns an integer constant expression only if its
1360         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1361         hardly worth documented that way....)
1362
1363 2011-05-18  Bruno Haible  <bruno@clisp.org>
1364
1365         strerror_r: Avoid clobbering the strerror buffer when possible.
1366         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1367         Handle gnulib defined errno values here. When strerror() returns NULL
1368         or an empty string, return EINVAL.
1369         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1370         gnulib defined errno values here.
1371         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1372
1373 2011-05-18  Eric Blake  <eblake@redhat.com>
1374
1375         fnmatch: avoid compiler warning
1376         * lib/fnmatch_loop.c (FCT): Use correct type.
1377         Reported by Matthias Bolte.
1378
1379 2011-05-13  Jim Meyering  <meyering@redhat.com>
1380
1381         maint.mk: three new prohibit_<HDR>_without_use rules
1382         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1383         (sc_prohibit_stdio-safer_without_use): Likewise.
1384         (sc_prohibit_xfreopen_without_use): Likewise.
1385
1386 2011-05-17  Jim Meyering  <meyering@redhat.com>
1387
1388         announce-gen: fail if the NEWS delta is empty
1389         If there's nothing noteworthy in NEWS, then either you forgot
1390         or you shouldn't be releasing.
1391         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1392
1393 2011-05-17  Pádraig Brady <P@draigBrady.com>
1394
1395         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1396         reserved symbols starting with double underscore from the check.
1397
1398 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1399
1400         intprops: add doc
1401         * doc/intprops.texi: New file, documenting intprops.
1402         * doc/gnulib.texi (Particular Modules): Include it.
1403
1404         verify: add doc to gnulib manual and fix example
1405         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1406         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1407         (Compile-time Assertions): Fix example so it can't overflow.
1408
1409 2011-05-17  Jim Meyering  <meyering@redhat.com>
1410
1411         warnings.m4: don't usurp save_CPPFLAGS variable name
1412         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1413
1414         doc: fix typo
1415         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1416
1417 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1418             Bruno Haible  <bruno@clisp.org>
1419
1420         doc: Tweak recent change.
1421         * README (Portability guidelines): Tweak new text.
1422         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1423         Interix 6.1.
1424
1425 2011-05-16  Eric Blake  <eblake@redhat.com>
1426
1427         inttypes: avoid autoconf warning
1428         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1429         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1430
1431 2011-05-16  Sam Steingold <sds@gnu.org>
1432         and Eric Blake  <eblake@redhat.com>
1433
1434         vc-list-files: accept multiple directory operands
1435         * build-aux/vc-list-files: Iterate over all remaining operands.
1436
1437 2011-05-16  Bruno Haible  <bruno@clisp.org>
1438
1439         Fix confusion regarding deprecated modules.
1440         * modules/calloc (Status, Notice): Mark module as deprecated, not
1441         obsolete.
1442         * modules/fnmatch-posix (Status, Notice): Likewise.
1443         * modules/getdate (Status, Notice): Likewise.
1444         * modules/getopt (Status, Notice): Likewise.
1445         * modules/malloc (Status, Notice): Likewise.
1446         * modules/pipe (Status, Notice): Likewise.
1447         * modules/realloc (Status, Notice): Likewise.
1448         * modules/rename-dest-slash (Status, Notice): Likewise.
1449         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1450         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1451         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1452         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1453         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1454
1455 2011-05-16  Bruno Haible  <bruno@clisp.org>
1456
1457         doc: List the target platforms.
1458         * doc/gnulib-intro.texi (Target Platforms): New section.
1459         * doc/gnulib.texi (Introduction): Update menu.
1460         * README (Portability guidelines): Refer to the new section. Update
1461         statement about oldest supported environment. Remove rationale why
1462         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1463         unportable C89 function.
1464         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1465         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1466
1467 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1468
1469         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1470
1471 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1472
1473         intprops-tests: new module
1474         * modules/intprops-tests, tests/test-intprops.c: New files.
1475
1476         intprops: add safe, portable integer overflow checking
1477         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1478         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1479         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1480         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1481         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1482         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1483         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1484         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1485         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1486         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1487         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1488
1489 2011-05-12  James Youngman  <jay@gnu.org>
1490
1491         Add a test for glibc's Bugzilla bug #12378.
1492         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1493         doesn't allow the literal matching of a lone "[" (which is
1494         required by POSIX).
1495         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1496
1497 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1498
1499         Sync glibc change fixing Bugzilla bug #12378.
1500         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1501         beginning and fall back to matching as normal character if the
1502         string ends before the matching ']' is found.  This is what POSIX
1503         requires.
1504
1505 2011-05-13  Eric Blake  <eblake@redhat.com>
1506
1507         getcwd-lgpl: relax test for FreeBSD
1508         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1509         issue.
1510         * tests/test-getcwd-lgpl.c (main): Relax test.
1511         Reported by Matthias Bolte.
1512
1513 2011-05-11  Eric Blake  <eblake@redhat.com>
1514
1515         test-fflush: silence compiler warning
1516         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1517
1518 2011-05-11  Bruno Haible  <bruno@clisp.org>
1519
1520         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
1521         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
1522         * modules/canonicalize (Depends-on): Add 'nocrash'.
1523         * modules/canonicalize-lgpl (Depends-on): Likewise.
1524         * doc/posix-functions/realpath.texi: Update platforms list.
1525         Reported by Ryan Schmidt <ryandesign@macports.org>.
1526
1527 2011-05-11  Bruno Haible  <bruno@clisp.org>
1528
1529         group-member: Declare function in <unistd.h>.
1530         * lib/unistd.in.h (group_member): New declaration.
1531         * lib/group-member.h: Remove file.
1532         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
1533         * tests/test-unistd-c++.cc: Check signature of group_member.
1534         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
1535         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
1536         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
1537         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
1538         HAVE_GROUP_MEMBER.
1539         * modules/group-member (Files): Remove lib/group-member.h.
1540         (Depends-on): Add unistd. Specify conditions.
1541         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1542         (Include): Change to <unistd.h>.
1543         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
1544         HAVE_GROUP_MEMBER.
1545         * NEWS: Mention the change.
1546         * lib/euidaccess.c: Don't include group-member.h.
1547
1548 2011-05-11  Bruno Haible  <bruno@clisp.org>
1549
1550         group-member: Document module.
1551         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
1552         module.
1553
1554 2011-05-11  Bruno Haible  <bruno@clisp.org>
1555
1556         fclose: Fix mistake earlier today.
1557         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
1558
1559 2011-05-11  Eric Blake  <eblake@redhat.com>
1560
1561         fclose: preserve fflush errors
1562         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
1563         Reported by Jim Meyering.
1564
1565         bootstrap: support a prereq of 'rpcgen -' on RHEL5
1566         * build-aux/bootstrap (check_versions): When no specific version
1567         is required, merely check that the app produces an exit status
1568         that indicates its existence.
1569
1570         maint.mk: drop redundant check
1571         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
1572         the same but better.
1573
1574 2011-05-11  Bruno Haible  <bruno@clisp.org>
1575
1576         fclose: Fix possible link error.
1577         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1578         unregister_shadow_fd. Improve comments.
1579         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
1580         Eric Blake.
1581
1582 2011-05-11  Jim Meyering  <meyering@redhat.com>
1583
1584         maint.mk: improve "can not" detection and generalize rule name
1585         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
1586         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
1587         Use the same technique as in sc_prohibit_doubled_word, so that
1588         we recognize "can not" also when the words are separated by a newline.
1589         Suggested by Eric Blake.
1590         (perl_filename_lineno_text_): Define.  Factored out of...
1591         (prohibit_doubled_word_): ...here.  Use the new definition.
1592         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
1593         (prohibit_undesirable_word_seq_RE_): New overridable variable.
1594         (ignore_undesirable_word_sequence_RE_): New overridable variable.
1595
1596 2011-05-10  Eric Blake  <eblake@redhat.com>
1597
1598         fclose: avoid double close race when possible
1599         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
1600         all but WINDOWS_SOCKETS.
1601
1602 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
1603
1604         openat: correct new comment
1605         * lib/openat-proc.c (openat_proc_name): Correct the comment.
1606
1607 2011-05-10  Jim Meyering  <meyering@redhat.com>
1608
1609         openat: add comments
1610         * lib/openat-proc.c (openat_proc_name): Add comments,
1611         mostly from Eric Blake.
1612
1613 2011-05-09  Eric Blake  <eblake@redhat.com>
1614
1615         openat: reduce syscalls in first probe of /proc
1616         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
1617         be a directory.  Simplify the probe for .. bugs.
1618         * modules/openat (Depends-on): Drop same-inode.
1619         Reported by Bastien ROUCARIES.
1620
1621 2011-05-09  Jim Meyering  <meyering@redhat.com>
1622
1623         maint.mk: change semantics/name of tight_scope variables
1624         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
1625         Rename variables to align with semantics that make them more useful.
1626
1627         maint.mk: tweak new rule's name not to impinge
1628         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
1629         (sc_tight_scope): Use new rule name rather than $@-0.
1630
1631         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
1632         * top/maint.mk (sc_tight_scope): New rule.
1633         (sc_tight_scope-0): New rule, ifdef'd out.
1634         (_gl_TS_dir): Default.
1635         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
1636         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
1637
1638 2011-05-09  Simon Josefsson  <simon@josefsson.org>
1639
1640         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
1641         Haible <bruno@clisp.org>.
1642
1643 2011-05-08  Bruno Haible  <bruno@clisp.org>
1644
1645         Comments.
1646         * m4/isnanf.m4: Add comment.
1647         * m4/isnanl.m4: Likewise.
1648
1649 2011-05-08  Bruno Haible  <bruno@clisp.org>
1650
1651         glob: Remove obsolete macro.
1652         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
1653
1654 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1655
1656         intprops: Sun C 5.11 supports __typeof__
1657         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
1658         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
1659         which is new.
1660         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
1661
1662         intprops: switch to usual gnulib indenting and naming
1663         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
1664         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
1665
1666         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
1667
1668 2011-05-08  Jim Meyering  <meyering@redhat.com>
1669
1670         maint.mk: suppress "Entering/Leaving directory" diag in announcement
1671         * top/maint.mk (release-prep): Use make's --no-print-directory
1672         option when generating the announcement.  This eliminates the
1673         pesky "make[2]: Entering/Leaving directory" diagnostics in the
1674         generated announcement template.
1675
1676 2011-05-08  Bruno Haible  <bruno@clisp.org>
1677
1678         tzset: Fix gettimeofday wrapper on Solaris 2.6.
1679         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
1680         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
1681
1682 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1683
1684         ignore-value, verify: Omit include files from lib_SOURCES.
1685         * modules/ignore-value, modules/verify (Makefile.am):
1686         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
1687         that leads Automake to duplicate use of am__objects_... variables
1688         in Makefile.in.  See
1689         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1690
1691 2011-05-07  Bruno Haible  <bruno@clisp.org>
1692
1693         fclose: Simplify autoconf macro.
1694         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1695         defined.
1696
1697 2011-05-07  Bruno Haible  <bruno@clisp.org>
1698
1699         canonicalize-lgpl: Fix autoconf macro ordering bug.
1700         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1701         gl_STDLIB_H_DEFAULTS.
1702
1703 2011-05-06  Eric Blake  <eblake@redhat.com>
1704
1705         maintainer-makefile: make sc_po_check easier to tune
1706         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1707         to probe for strings, such as an alternate location for gnulib.
1708
1709         fclose: guarantee behavior on seekable stdin
1710         * modules/fclose (Depends-on): Add fflush.
1711         * doc/posix-functions/fclose.texi (fclose): Document this.
1712         * tests/test-fclose.c (main): Make test for this unconditional.
1713
1714 2011-05-06  Bruno Haible  <bruno@clisp.org>
1715
1716         fflush, fpurge: Relicense under LGPLv2+.
1717         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1718         * modules/fpurge (License): Likewise.
1719         With permission from Eric Blake and Jim Meyering.
1720         Suggested by Eric Blake.
1721
1722 2011-05-06  Karl Berry  <karl@gnu.org>
1723
1724         * MODULES.html.sh (func_all_modules): remove exit.
1725
1726 2011-05-06  Jim Meyering  <meyering@redhat.com>
1727
1728         maint.mk: use info-gnu@ as the default only for a stable release
1729         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1730         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1731         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1732         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1733
1734 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1735
1736         assert-h: new module, which supports C1X-style static_assert
1737         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1738         * lib/verify.h: Revamp so that this can be copied into assert.h,
1739         while retaining the ability to use it standalone as before.
1740         Rename private identifiers so as not to encroach on the
1741         standard C namespace, since this is now used by assert.h.
1742         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1743         the old verify_true.
1744         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1745         the old verify_true.  Use _GL_VERIFY_TYPE.
1746         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1747         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1748         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1749         defined when this file is copied into the replacement assert.h.
1750         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1751         and _Static_assert is not built in.
1752         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1753         defined, and use the new macros mentioned above.
1754         * doc/posix-headers/assert.texi: Document this.
1755
1756 2011-05-05  Bruno Haible  <bruno@clisp.org>
1757
1758         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1759         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1760         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1761         gl_REPLACE_FCLOSE here.
1762         * modules/fflush (Depends-on): Remove fclose.
1763         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1764         combination with module 'fclose'.
1765
1766 2011-05-05  Bruno Haible  <bruno@clisp.org>
1767
1768         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1769         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1770         gl_FUNC_FFLUSH.
1771         (gl_FUNC_FFLUSH): Use it.
1772         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1773         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1774         gl_REPLACE_FSEEKO here.
1775
1776 2011-05-05  Bruno Haible  <bruno@clisp.org>
1777
1778         tzset: Relicense under LGPL.
1779         * modules/tzset (License): Change to LGPL.
1780         No agreement needed; it's a no-op.
1781
1782         strtoimax, strtoumax: Relicense under LGPL.
1783         * modules/strtoimax (License): Change to LGPL.
1784         * modules/strtoumax (License): Likewise.
1785         With permission from Jim Meyering, Paul Eggert:
1786         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1788
1789         getgroups: Relicense under LGPL.
1790         * modules/getgroups (License): Change to LGPL.
1791         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1795
1796         nanosleep: Relicense under LGPL.
1797         * modules/nanosleep (License): Change to LGPL.
1798         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
1799         Haible:
1800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1804
1805         futimens: Relicense under LGPL.
1806         * modules/futimens (License): Change to LGPL.
1807         With permission from Eric Blake:
1808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1809
1810         fflush: Relicense under LGPL.
1811         * modules/fflush (License): Change to LGPL.
1812         With permission from Eric Blake, Bruno Haible, Jim Meyering:
1813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
1816
1817         tmpfile: Relicense under LGPL.
1818         * modules/tmpfile (License): Change to LGPL.
1819         With permission from Ben Pfaff:
1820         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1821
1822         isfinite: Relicense under LGPL.
1823         * modules/isfinite (License): Change to LGPL.
1824         With permission from Ben Pfaff, Bruno Haible:
1825         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
1827
1828         acosl..tanl: Relicense under LGPL.
1829         * modules/acosl (License): Change to LGPL.
1830         * modules/asinl (License): Likewise.
1831         * modules/atanl (License): Likewise.
1832         * modules/cosl (License): Likewise.
1833         * modules/expl (License): Likewise.
1834         * modules/logl (License): Likewise.
1835         * modules/sinl (License): Likewise.
1836         * modules/sqrtl (License): Likewise.
1837         * modules/tanl (License): Likewise.
1838         Source code originally from glibc and Paolo Bonzini. Agreements:
1839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
1840         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
1841
1842 2011-05-05  Bruno Haible  <bruno@clisp.org>
1843
1844         signal: Define sighandler_t.
1845         * lib/signal.in.h (sighandler_t): New type.
1846         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
1847         whether sighandler_t is defined.
1848         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
1849         * modules/signal (Depends-on): Add extensions.
1850         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
1851         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
1852         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
1853
1854 2011-05-05  Eric Blake  <eblake@redhat.com>
1855
1856         maint: remove useless REPLACE_*_H macros
1857         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
1858         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1859         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1860         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
1861         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1862         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1863         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
1864         * m4/btowc.m4: Update callers.
1865         * m4/dirfd.m4: Likewise.
1866         * m4/duplocale.m4: Likewise.
1867         * m4/fchdir.m4: Likewise.
1868         * m4/fdopendir.m4: Likewise.
1869         * m4/inet_ntop.m4: Likewise.
1870         * m4/inet_pton.m4: Likewise.
1871         * m4/ioctl.m4: Likewise.
1872         * m4/mbrlen.m4: Likewise.
1873         * m4/mbrtowc.m4: Likewise.
1874         * m4/mbsinit.m4: Likewise.
1875         * m4/mbsnrtowcs.m4: Likewise.
1876         * m4/mbsrtowcs.m4: Likewise.
1877         * m4/poll.m4: Likewise.
1878         * m4/setlocale.m4: Likewise.
1879         * m4/wcrtomb.m4: Likewise.
1880         * m4/wcsnrtombs.m4: Likewise.
1881         * m4/wcsrtombs.m4: Likewise.
1882         * m4/wctob.m4: Likewise.
1883         * m4/wcwidth.m4: Likewise.
1884         * modules/posix_spawn: Likewise.
1885         * modules/posix_spawn_file_actions_addclose: Likewise.
1886         * modules/posix_spawn_file_actions_adddup2: Likewise.
1887         * modules/posix_spawn_file_actions_addopen: Likewise.
1888         * modules/posix_spawn_file_actions_destroy: Likewise.
1889         * modules/posix_spawn_file_actions_init: Likewise.
1890         * modules/posix_spawnattr_destroy: Likewise.
1891         * modules/posix_spawnattr_getflags: Likewise.
1892         * modules/posix_spawnattr_getpgroup: Likewise.
1893         * modules/posix_spawnattr_getschedparam: Likewise.
1894         * modules/posix_spawnattr_getschedpolicy: Likewise.
1895         * modules/posix_spawnattr_getsigdefault: Likewise.
1896         * modules/posix_spawnattr_getsigmask: Likewise.
1897         * modules/posix_spawnattr_init: Likewise.
1898         * modules/posix_spawnattr_setflags: Likewise.
1899         * modules/posix_spawnattr_setpgroup: Likewise.
1900         * modules/posix_spawnattr_setschedparam: Likewise.
1901         * modules/posix_spawnattr_setschedpolicy: Likewise.
1902         * modules/posix_spawnattr_setsigdefault: Likewise.
1903         * modules/posix_spawnattr_setsigmask: Likewise.
1904         * modules/posix_spawnp: Likewise.
1905
1906 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
1907
1908         Add option to do-release-commit-and-tag to specify branch.
1909         * build-aux/do-release-commit-and-tag: Add --branch.
1910
1911 2011-05-03  Bruno Haible  <bruno@clisp.org>
1912
1913         Avoid unnecessary compilation units, through conditional dependencies.
1914         * modules/accept (Depends-on): Add conditions to the dependencies.
1915         * modules/acosl (Depends-on): Likewise.
1916         * modules/argz (Depends-on): Likewise.
1917         * modules/asinl (Depends-on): Likewise.
1918         * modules/atanl (Depends-on): Likewise.
1919         * modules/atoll (Depends-on): Likewise.
1920         * modules/bind (Depends-on): Likewise.
1921         * modules/btowc (Depends-on): Likewise.
1922         * modules/canonicalize-lgpl (Depends-on): Likewise.
1923         * modules/ceil (Depends-on): Likewise.
1924         * modules/ceilf (Depends-on): Likewise.
1925         * modules/ceill (Depends-on): Likewise.
1926         * modules/chdir-long (Depends-on): Likewise.
1927         * modules/chown (Depends-on): Likewise.
1928         * modules/close (Depends-on): Likewise.
1929         * modules/connect (Depends-on): Likewise.
1930         * modules/cosl (Depends-on): Likewise.
1931         * modules/dirfd (Depends-on): Likewise.
1932         * modules/dprintf (Depends-on): Likewise.
1933         * modules/dprintf-posix (Depends-on): Likewise.
1934         * modules/error (Depends-on): Likewise.
1935         * modules/euidaccess (Depends-on): Likewise.
1936         * modules/expl (Depends-on): Likewise.
1937         * modules/faccessat (Depends-on): Likewise.
1938         * modules/fchdir (Depends-on): Likewise.
1939         * modules/fclose (Depends-on): Likewise.
1940         * modules/fcntl (Depends-on): Likewise.
1941         * modules/fdopendir (Depends-on): Likewise.
1942         * modules/fflush (Depends-on): Likewise.
1943         * modules/floor (Depends-on): Likewise.
1944         * modules/floorf (Depends-on): Likewise.
1945         * modules/floorl (Depends-on): Likewise.
1946         * modules/fnmatch (Depends-on): Likewise.
1947         * modules/fopen (Depends-on): Likewise.
1948         * modules/fprintf-posix (Depends-on): Likewise.
1949         * modules/frexp (Depends-on): Likewise.
1950         * modules/frexp-nolibm (Depends-on): Likewise.
1951         * modules/frexpl (Depends-on): Likewise.
1952         * modules/frexpl-nolibm (Depends-on): Likewise.
1953         * modules/fseek (Depends-on): Likewise.
1954         * modules/fsusage (Depends-on): Likewise.
1955         * modules/ftell (Depends-on): Likewise.
1956         * modules/ftello (Depends-on): Likewise.
1957         * modules/futimens (Depends-on): Likewise.
1958         * modules/getcwd (Depends-on): Likewise.
1959         * modules/getcwd-lgpl (Depends-on): Likewise.
1960         * modules/getdelim (Depends-on): Likewise.
1961         * modules/getdomainname (Depends-on): Likewise.
1962         * modules/getgroups (Depends-on): Likewise.
1963         * modules/gethostname (Depends-on): Likewise.
1964         * modules/getline (Depends-on): Likewise.
1965         * modules/getlogin_r (Depends-on): Likewise.
1966         * modules/getopt-posix (Depends-on): Likewise.
1967         * modules/getpeername (Depends-on): Likewise.
1968         * modules/getsockname (Depends-on): Likewise.
1969         * modules/getsockopt (Depends-on): Likewise.
1970         * modules/getsubopt (Depends-on): Likewise.
1971         * modules/getusershell (Depends-on): Likewise.
1972         * modules/glob (Depends-on): Likewise.
1973         * modules/grantpt (Depends-on): Likewise.
1974         * modules/iconv_open (Depends-on): Likewise.
1975         * modules/iconv_open-utf (Depends-on): Likewise.
1976         * modules/inet_ntop (Depends-on): Likewise.
1977         * modules/inet_pton (Depends-on): Likewise.
1978         * modules/ioctl (Depends-on): Likewise.
1979         * modules/isapipe (Depends-on): Likewise.
1980         * modules/isfinite (Depends-on): Likewise.
1981         * modules/isinf (Depends-on): Likewise.
1982         * modules/lchown (Depends-on): Likewise.
1983         * modules/ldexpl (Depends-on): Likewise.
1984         * modules/link (Depends-on): Likewise.
1985         * modules/linkat (Depends-on): Likewise.
1986         * modules/listen (Depends-on): Likewise.
1987         * modules/logl (Depends-on): Likewise.
1988         * modules/lstat (Depends-on): Likewise.
1989         * modules/mbrlen (Depends-on): Likewise.
1990         * modules/mbrtowc (Depends-on): Likewise.
1991         * modules/mbsinit (Depends-on): Likewise.
1992         * modules/mbsnrtowcs (Depends-on): Likewise.
1993         * modules/mbsrtowcs (Depends-on): Likewise.
1994         * modules/mbtowc (Depends-on): Likewise.
1995         * modules/memcmp (Depends-on): Likewise.
1996         * modules/mkdir (Depends-on): Likewise.
1997         * modules/mkdtemp (Depends-on): Likewise.
1998         * modules/mkfifo (Depends-on): Likewise.
1999         * modules/mkfifoat (Depends-on): Likewise.
2000         * modules/mknod (Depends-on): Likewise.
2001         * modules/mkostemp (Depends-on): Likewise.
2002         * modules/mkostemps (Depends-on): Likewise.
2003         * modules/mkstemp (Depends-on): Likewise.
2004         * modules/mkstemps (Depends-on): Likewise.
2005         * modules/mktime (Depends-on): Likewise.
2006         * modules/nanosleep (Depends-on): Likewise.
2007         * modules/open (Depends-on): Likewise.
2008         * modules/openat (Depends-on): Likewise.
2009         * modules/perror (Depends-on): Likewise.
2010         * modules/poll (Depends-on): Likewise.
2011         * modules/popen (Depends-on): Likewise.
2012         * modules/posix_spawn (Depends-on): Likewise.
2013         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2014         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2015         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2016         * modules/posix_spawnp (Depends-on): Likewise.
2017         * modules/pread (Depends-on): Likewise.
2018         * modules/printf-posix (Depends-on): Likewise.
2019         * modules/ptsname (Depends-on): Likewise.
2020         * modules/putenv (Depends-on): Likewise.
2021         * modules/pwrite (Depends-on): Likewise.
2022         * modules/readline (Depends-on): Likewise.
2023         * modules/readlink (Depends-on): Likewise.
2024         * modules/readlinkat (Depends-on): Likewise.
2025         * modules/recv (Depends-on): Likewise.
2026         * modules/recvfrom (Depends-on): Likewise.
2027         * modules/regex (Depends-on): Likewise.
2028         * modules/remove (Depends-on): Likewise.
2029         * modules/rename (Depends-on): Likewise.
2030         * modules/renameat (Depends-on): Likewise.
2031         * modules/rmdir (Depends-on): Likewise.
2032         * modules/round (Depends-on): Likewise.
2033         * modules/roundf (Depends-on): Likewise.
2034         * modules/roundl (Depends-on): Likewise.
2035         * modules/rpmatch (Depends-on): Likewise.
2036         * modules/select (Depends-on): Likewise.
2037         * modules/send (Depends-on): Likewise.
2038         * modules/sendto (Depends-on): Likewise.
2039         * modules/setenv (Depends-on): Likewise.
2040         * modules/setlocale (Depends-on): Likewise.
2041         * modules/setsockopt (Depends-on): Likewise.
2042         * modules/shutdown (Depends-on): Likewise.
2043         * modules/sigaction (Depends-on): Likewise.
2044         * modules/signbit (Depends-on): Likewise.
2045         * modules/sigprocmask (Depends-on): Likewise.
2046         * modules/sinl (Depends-on): Likewise.
2047         * modules/sleep (Depends-on): Likewise.
2048         * modules/snprintf (Depends-on): Likewise.
2049         * modules/snprintf-posix (Depends-on): Likewise.
2050         * modules/socket (Depends-on): Likewise.
2051         * modules/sprintf-posix (Depends-on): Likewise.
2052         * modules/sqrtl (Depends-on): Likewise.
2053         * modules/stat (Depends-on): Likewise.
2054         * modules/strchrnul (Depends-on): Likewise.
2055         * modules/strdup-posix (Depends-on): Likewise.
2056         * modules/strerror (Depends-on): Likewise.
2057         * modules/strerror_r-posix (Depends-on): Likewise.
2058         * modules/strndup (Depends-on): Likewise.
2059         * modules/strnlen (Depends-on): Likewise.
2060         * modules/strptime (Depends-on): Likewise.
2061         * modules/strsep (Depends-on): Likewise.
2062         * modules/strsignal (Depends-on): Likewise.
2063         * modules/strstr-simple (Depends-on): Likewise.
2064         * modules/strtod (Depends-on): Likewise.
2065         * modules/strtoimax (Depends-on): Likewise.
2066         * modules/strtok_r (Depends-on): Likewise.
2067         * modules/strtoumax (Depends-on): Likewise.
2068         * modules/symlink (Depends-on): Likewise.
2069         * modules/symlinkat (Depends-on): Likewise.
2070         * modules/tanl (Depends-on): Likewise.
2071         * modules/tcgetsid (Depends-on): Likewise.
2072         * modules/tmpfile (Depends-on): Likewise.
2073         * modules/trunc (Depends-on): Likewise.
2074         * modules/truncf (Depends-on): Likewise.
2075         * modules/truncl (Depends-on): Likewise.
2076         * modules/uname (Depends-on): Likewise.
2077         * modules/unlink (Depends-on): Likewise.
2078         * modules/unlockpt (Depends-on): Likewise.
2079         * modules/unsetenv (Depends-on): Likewise.
2080         * modules/usleep (Depends-on): Likewise.
2081         * modules/utimensat (Depends-on): Likewise.
2082         * modules/vasprintf (Depends-on): Likewise.
2083         * modules/vdprintf (Depends-on): Likewise.
2084         * modules/vdprintf-posix (Depends-on): Likewise.
2085         * modules/vfprintf-posix (Depends-on): Likewise.
2086         * modules/vprintf-posix (Depends-on): Likewise.
2087         * modules/vsnprintf (Depends-on): Likewise.
2088         * modules/vsnprintf-posix (Depends-on): Likewise.
2089         * modules/vsprintf-posix (Depends-on): Likewise.
2090         * modules/wcrtomb (Depends-on): Likewise.
2091         * modules/wcscasecmp (Depends-on): Likewise.
2092         * modules/wcscspn (Depends-on): Likewise.
2093         * modules/wcsdup (Depends-on): Likewise.
2094         * modules/wcsncasecmp (Depends-on): Likewise.
2095         * modules/wcsnrtombs (Depends-on): Likewise.
2096         * modules/wcspbrk (Depends-on): Likewise.
2097         * modules/wcsrtombs (Depends-on): Likewise.
2098         * modules/wcsspn (Depends-on): Likewise.
2099         * modules/wcsstr (Depends-on): Likewise.
2100         * modules/wcstok (Depends-on): Likewise.
2101         * modules/wcswidth (Depends-on): Likewise.
2102         * modules/wctob (Depends-on): Likewise.
2103         * modules/wctomb (Depends-on): Likewise.
2104         * modules/wctype (Depends-on): Likewise.
2105         * modules/wcwidth (Depends-on): Likewise.
2106         * modules/write (Depends-on): Likewise.
2107
2108 2011-05-03  Bruno Haible  <bruno@clisp.org>
2109
2110         Support for conditional dependencies.
2111         * doc/gnulib.texi (Module description): Document the syntax of
2112         conditional dependencies.
2113         * gnulib-tool: New option --conditional-dependencies.
2114         (func_usage): Document it.
2115         (cond_dependencies): New variable.
2116         (func_get_automake_snippet_conditional,
2117         func_get_automake_snippet_unconditional): New functions, extracted from
2118         func_get_automake_snippet.
2119         (func_get_automake_snippet): Use them.
2120         (sed_first_32_chars): New variable.
2121         (func_module_shellfunc_name): New function.
2122         (func_module_shellvar_name): New function.
2123         (func_module_conditional_name): New function.
2124         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2125         func_cond_module_condition): New functions.
2126         (func_modules_transitive_closure): Add support for conditional
2127         dependencies.
2128         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2129         conditional automake snippet in an automake conditional.
2130         (func_emit_autoconf_snippets): Emit shell functions that contain the
2131         code for conditional modules.
2132         (func_import, func_create_testdir): Update specification.
2133
2134 2011-05-03  Eric Blake  <eblake@redhat.com>
2135
2136         test-getaddrinfo: report error information
2137         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2138
2139 2011-05-03  Jim Meyering  <meyering@redhat.com>
2140
2141         bootstrap: avoid build failure when $GZIP is set
2142         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2143         program name.  If defined at all, it is supposed to list gzip options.
2144         Reported by Alan Curry in http://debbugs.gnu.org/8609
2145
2146 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2147
2148         readme-release: new module with release instructions
2149         * modules/readme-release: New module.
2150         * top/README-release: New file, from coreutils, grep, diffutils.
2151         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2152
2153 2011-05-02  Eric Blake  <eblake@redhat.com>
2154
2155         fflush: also replace fclose when fixing fflush
2156         * modules/fflush (Depends-on): Add fclose.
2157         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2158         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2159         memstreams with no backing fd.
2160         * doc/posix-functions/fclose.texi (fclose): Document the use of
2161         fflush module to fix the bug.
2162         * tests/test-fclose.c (main): Relax test when fclose is used in
2163         isolation.
2164
2165         fclose: add some tests
2166         * modules/fclose-tests: New test module.
2167         * tests/test-fclose.c: New file.
2168         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2169
2170         fclose: reduced dependencies
2171         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2172         simpler lseek.
2173         * lib/fclose.c (rpl_fclose): Likewise.
2174         Reported by Simon Josefsson.
2175
2176         exit: drop remaining clients
2177         * modules/argmatch (Depends-on): Replace exit with stdlib.
2178         * modules/copy-file (Depends-on): Likewise.
2179         * modules/execute (Depends-on): Likewise.
2180         * modules/exitfail (Depends-on): Likewise.
2181         * modules/obstack (Depends-on): Likewise.
2182         * modules/pagealign_alloc (Depends-on): Likewise.
2183         * modules/pipe-filter-gi (Depends-on): Likewise.
2184         * modules/pipe-filter-ii (Depends-on): Likewise.
2185         * modules/savewd (Depends-on): Likewise.
2186         * modules/spawn-pipe (Depends-on): Likewise.
2187         * modules/wait-process (Depends-on): Likewise.
2188         * modules/xsetenv (Depends-on): Likewise.
2189         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2190         * modules/git-merge-changelog (Depends-on): Likewise.
2191         * modules/long-options (Depends-on): Likewise.
2192         * modules/pt_chown (Depends-on): Likewise.
2193         * modules/sysexits (Depends-on): Likewise.
2194
2195         freading: relax license from LGPLv3+ to LGPLv2+
2196         * modules/freading (License): Relax LGPL version.
2197
2198 2011-05-02  Bruno Haible  <bruno@clisp.org>
2199
2200         fchdir: Remove unused dependencies.
2201         * modules/fchdir (Depends-on): Remove include_next.
2202
2203 2011-05-02  Bruno Haible  <bruno@clisp.org>
2204
2205         gnulib-tool: Refactor.
2206         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2207         from func_emit_autoconf_snippets.
2208         (func_emit_autoconf_snippets): Use it.
2209
2210 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2211
2212         * NEWS: Document removal of 'exit'.
2213         * modules/exit: Remove file.
2214
2215 2011-05-01  Bruno Haible  <bruno@clisp.org>
2216
2217         Update DEPENDENCIES.
2218         * DEPENDENCIES (gettext): Recommend the newest release.
2219         Reported by Simon Josefsson.
2220
2221 2011-05-01  Bruno Haible  <bruno@clisp.org>
2222
2223         gnulib-tool: Reduce code duplication.
2224         * gnulib-tool (func_emit_autoconf_snippets): New function.
2225         (func_import, func_create_testdir): Use it.
2226
2227 2011-04-30  Eric Blake  <eblake@redhat.com>
2228
2229         fclose: don't fail on non-seekable input stream
2230         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2231         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2232         since fflush is allowed to fail in that case.
2233
2234 2011-04-30  Bruno Haible  <bruno@clisp.org>
2235
2236         dup3: cleanup
2237         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2238
2239 2011-04-30  Bruno Haible  <bruno@clisp.org>
2240
2241         netdb: Make it work in C++ mode.
2242         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2243         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2244         module.
2245         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2246         gl_MODULE_INDICATOR_FOR_TESTS.
2247         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2248         * modules/netdb-c++-tests: New file.
2249         * tests/test-netdb-c++.cc: New file.
2250
2251 2011-04-30  Bruno Haible  <bruno@clisp.org>
2252
2253         New modules 'vfscanf', 'vscanf'.
2254         * modules/vfscanf: New file.
2255         * modules/vscanf: New file.
2256         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2257         here.
2258         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2259         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2260
2261 2011-04-30  Bruno Haible  <bruno@clisp.org>
2262
2263         passfd: Add comments.
2264         * lib/passfd.c: Add comments about platforms.
2265
2266 2011-04-30  Bruno Haible  <bruno@clisp.org>
2267
2268         sys_uio: Make <sys/uio.h> self-contained.
2269         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2270         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2271
2272 2011-04-30  Bruno Haible  <bruno@clisp.org>
2273
2274         sys_socket: Ensure 'struct iovec' definition.
2275         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2276         <sys/socket.h>.
2277         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2278
2279 2011-04-30  Bruno Haible  <bruno@clisp.org>
2280
2281         sys_uio: Protect definition of 'struct iovec'.
2282         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2283         it as a C struct.
2284
2285 2011-04-30  Bruno Haible  <bruno@clisp.org>
2286
2287         manywarnings: fix indentation
2288         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2289
2290 2011-04-30  Pádraig Brady <P@draigBrady.com>
2291
2292         manywarnings: add -Wno-missing-field-initializers if needed.
2293         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2294         option if it's needed to allow initialization with { 0, }
2295
2296 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2297
2298         announce-gen: cosmetic improvement
2299         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2300
2301 2011-04-29  Jim Meyering  <meyering@redhat.com>
2302
2303         vc-list-files: indent with spaces, not TABs
2304         * build-aux/vc-list-files: Convert leading TABs to spaces,
2305         to match the style of most other files in gnulib.
2306
2307         announce-gen: indent with spaces, not TABs
2308         * build-aux/announce-gen: Convert all TABs to spaces, to match
2309         the style of most other files in gnulib.
2310
2311 2011-04-29  Eric Blake  <eblake@redhat.com>
2312
2313         quotearg: avoid uninitialized variable use
2314         * lib/quotearg.c (quoting_options_from_style): Initialize
2315         remaining fields, and ensure that custom styles are only used via
2316         quoting_options rather than quoting_style.
2317
2318 2011-04-29  Jim Meyering  <meyering@redhat.com>
2319
2320         maint.mk: remove unused VC-tag variable
2321         * top/maint.mk (VC-tag): Remove unused variable.
2322
2323 2011-04-29  Bruno Haible  <bruno@clisp.org>
2324
2325         netdb: fix gai_strerror replacements
2326         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2327         * modules/netdb: Substitute it.
2328
2329 2011-04-29  Jim Meyering  <meyering@redhat.com>
2330
2331         test-getcwd.c: avoid new set-but-not-used warning
2332         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2333         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2334         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2335         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2336
2337         test-hash.c: avoid a new shadowing warning
2338         * tests/test-hash.c (main): Don't shadow "dup".
2339
2340 2011-04-28  Eric Blake  <eblake@redhat.com>
2341
2342         getaddrinfo: fix gai_strerror signature
2343         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2344         and work around mingw with UNICODE defined.
2345         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2346         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2347         * modules/netdb (Makefile.am): Substitute it.
2348         * lib/netdb.in.h (gai_strerror): Declare replacement.
2349         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2350         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2351         the fix.
2352
2353         getsockopt: avoid compiler warning
2354         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2355         Reported by Matthias Bolte.
2356
2357         tests: drop unused link dependency
2358         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2359         * modules/dirent-safer-tests (Makefile.am): Likewise.
2360         * modules/fdopendir-tests (Makefile.am): Likewise.
2361         * modules/mkfifoat-tests (Makefile.am): Likewise.
2362         * modules/openat-safer-tests (Makefile.am): Likewise.
2363         * modules/openat-tests (Makefile.am): Likewise.
2364         * modules/readlinkat-tests (Makefile.am): Likewise.
2365         * modules/symlinkat-tests (Makefile.am): Likewise.
2366         * modules/linkat-tests (Makefile.am): Likewise.
2367         (Depends-on): Switch to filenamecat-lgpl.
2368         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2369         LIBINTL.
2370         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2371         * tests/test-linkat.c (main): Don't require xalloc.
2372
2373         hash, mgetgroups: drop xalloc dependency
2374         * lib/hash.c (includes): Adjust includes.
2375         * lib/mgetgroups.c (includes): Likewise.
2376         (xgetgroups): Move...
2377         * lib/xgetgroups.c: ...to new file.
2378         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2379         * modules/xgetgroups: New file, split from...
2380         * modules/mgetgroups: ...here.
2381         (Depends-on): Add xalloc-oversized.
2382         * modules/hash (Depends-on): Likewise.
2383         * modules/hash-tests (Depends-on): Drop xalloc.
2384         (test_hash_LDADD): Drop unused library.
2385         * tests/test-hash.c (main): Break xalloc dependency.
2386         (includes): Drop unused include.
2387
2388         xalloc-oversized: new module
2389         * modules/xalloc-oversized: New module.
2390         * modules/xalloc (Depends-on): Add it.
2391         * lib/xalloc.h (xalloc_oversized): Move...
2392         * lib/xalloc-oversized.h: ...into new file.
2393
2394         utimecmp: drop dependency on xmalloc
2395         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2396         due to memory pressure.
2397         * modules/utimecmp (Depends-on): Drop xalloc.
2398
2399 2011-04-27  Eric Blake  <eblake@redhat.com>
2400
2401         getcwd: fix mingw bugs
2402         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2403         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2404         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2405
2406 2011-04-27  Bruno Haible  <bruno@clisp.org>
2407
2408         mkstemps: Ensure declaration on MacOS X 10.5.
2409         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2410         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2411         MacOS X.
2412
2413 2011-04-27  Bruno Haible  <bruno@clisp.org>
2414
2415         mkstemp: More documentation.
2416         * doc/posix-functions/mkstemp.texi: Document header file problem on
2417         MacOS X.
2418
2419 2011-04-27  Bruno Haible  <bruno@clisp.org>
2420
2421         mkstemp: Tweak configure message when cross-compiling.
2422         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2423         result as a guess.
2424
2425 2011-04-27  Bruno Haible  <bruno@clisp.org>
2426
2427         clean-temp: Clarify what it does.
2428         * lib/clean-temp.h: Add more comments.
2429         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2430         module.
2431         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2432         * doc/glibc-functions/mkstemps.texi: Likewise.
2433         * doc/glibc-functions/mkostemps.texi: Likewise.
2434
2435 2011-04-27  Eric Blake  <eblake@redhat.com>
2436
2437         fchdir: avoid extra chdir and fix test
2438         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2439         getcwd-lgpl.
2440         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2441         have to be canonical.
2442         (canonicalize_file_name): Drop unused macro.
2443         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2444
2445         filenamecat-lgpl: fix licence
2446         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2447         when it was first created.
2448
2449         linkat, renameat: add missing dependency
2450         * modules/linkat (Depends-on): Require getcwd-lgpl.
2451         * modules/renameat (Depends-on): Likewise.
2452
2453         tests: reduce dependencies
2454         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2455         * tests/test-renameat.c (main): Likewise.
2456         * modules/linkat-tests (Depends-on): Relax dependency.
2457         * modules/renameat-tests (Depends-on): Likewise.
2458         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2459         dependency explicit.
2460
2461         save-cwd: reduce default dependency
2462         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2463         * lib/save-cwd.c: Update comments.
2464         * NEWS: Document the semantic change.
2465
2466         getcwd: enhance tests
2467         * tests/test-getcwd-lgpl.c: New file, taken from...
2468         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2469         repeat long path stress tests from m4 probe.
2470         * modules/getcwd-lgpl-tests: New module.
2471         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2472         * m4/getcwd-abort-bug.m4: Update comment.
2473         * m4/getcwd-path-max.m4: Likewise.
2474
2475         getcwd-lgpl: new module
2476         * modules/getcwd-lgpl: New module.
2477         * lib/getcwd-lgpl.c: New file.
2478         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2479         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2480         * modules/getcwd (configure.ac): Set C witness.
2481         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2482
2483         getcwd: tweak comments
2484         * m4/getcwd-abort-bug.m4: Fix comments.
2485         * m4/getcwd-path-max.m4: Likewise.
2486         * m4/getcwd.m4: Likewise.
2487
2488 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2489         and Eric Blake  <eblake@redhat.com>
2490
2491         mkstemp: replace if system version uses wrong permissions
2492         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2493         read/write mode bits set in file created by mkstemp.
2494         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2495
2496 2011-04-27  Eric Blake  <eblake@redhat.com>
2497
2498         passfd: avoid compiler warning
2499         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2500         Reported by Laine Stump.
2501
2502 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2503
2504         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2505         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2506
2507 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2508         and Eric Blake  <eblake@redhat.com>
2509
2510         mkstemp: mention clean-temp module
2511         * lib/mkstemp.c: Add comment.
2512         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2513
2514 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2515
2516         inttypes: also provide default values for 32-bit tests
2517         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2518         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2519
2520 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2521
2522         strtoumax: remove dependency on strtoimax
2523         This is like the strtoull change of yesterday.
2524         * modules/strtoumax (Files): Add lib/strtoimax.c.
2525         (Depends-on): Remove strtoimax and add verify.
2526
2527         inttypes-incomplete: new module
2528         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
2529         all but the PRI* and SCN* parts of gl_INTTYPES_H.
2530         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
2531         of gl_INTTYPES_H.
2532         (gl_INTTYPES_H): Rewrite in terms of these new macros.
2533         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
2534         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
2535         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
2536         * modules/strtoumax, modules/xstrtol (Depends-on):
2537         Depend on inttypes-incomplete, not inttypes.
2538         * modules/inttypes-incomplete: New module, containing the contents
2539         of the old modules/inttypes module, except that the Files: section
2540         omits m4/inttypes-pri.m4, and the configure.ac section invokes
2541         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
2542         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
2543         (Depends-on): Depend only on inttypes-incomplete.
2544         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
2545
2546         inttypes: omit now-redundant strtoimax and strtoumax work
2547         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
2548         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
2549
2550         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
2551         This supports apps that need pointers to strtoimax and strtoumax,
2552         and ports to HP-UX 11.00 64.bit, which has macros that expand to
2553         nonexistent functions.  See
2554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
2555         et seq.
2556         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
2557         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
2558         a macro.
2559         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2560
2561 2011-04-25  Simon Josefsson  <simon@josefsson.org>
2562
2563         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
2564
2565 2011-04-25  Bruno Haible  <bruno@clisp.org>
2566
2567         strtol, strtoul: Mark modules as obsolete.
2568         * modules/strtol (Status, Notice): New sections.
2569         * modules/strtoul (Status, Notice): New sections.
2570
2571 2011-04-25  Bruno Haible  <bruno@clisp.org>
2572
2573         strtod: Remove check for strtod, unless supporting old platforms.
2574         * modules/strtod-obsolete: New file.
2575         * m4/strtod-obsolete.m4: New file.
2576         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2577         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2578         * modules/strtod (Depends-on): Add strtod-obsolete.
2579         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
2580
2581 2011-04-25  Bruno Haible  <bruno@clisp.org>
2582
2583         strcase: Make module obsolete.
2584         * modules/strcase (Status, Notice): New sections.
2585
2586 2011-04-25  Bruno Haible  <bruno@clisp.org>
2587
2588         dup2: Remove check for dup2, unless supporting old obsolete platforms.
2589         * modules/dup2-obsolete: New file.
2590         * m4/dup2-obsolete.m4: New file.
2591         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
2592         gl_FUNC_DUP2_OBSOLETE is not also defined.
2593         * modules/dup2 (Depends-on): Add dup2-obsolete.
2594         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
2595
2596 2011-04-25  Bruno Haible  <bruno@clisp.org>
2597
2598         strnlen: Avoid memchr related link error on old obsolete platforms.
2599         * modules/memchr-obsolete: New file.
2600         * m4/memchr-obsolete.m4: New file.
2601         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
2602         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
2603         * modules/memchr (Depends-on): Add memchr-obsolete.
2604         * modules/strnlen (Depends-on): Likewise.
2605         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2606
2607 2011-04-25  Jim Meyering  <meyering@redhat.com>
2608
2609         maint.mk: makefile_at_at_check extend and clean up
2610         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
2611         in addition to */Makefile.am.
2612         Exempt legitimate uses of @VAR@ notation, e.g.,
2613         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
2614         Remove obsolete coreutils-specific comment.
2615         Prompted by discussion here:
2616         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
2617
2618 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2619
2620         strtoul: remove dependency on strtol
2621         This is so that 'configure' need not check for strtol merely because
2622         the application needs strtoul.
2623         * modules/strtoul (Files): Add lib/strtol.c.
2624         (Depends-on): Remove strtol.
2625
2626         strtoull: remove dependency on strtoul
2627         This is like the strtoll change.
2628         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
2629         (Depends-on): Remove strtoul.
2630
2631         strtoll: remove dependency on strtol
2632         This is so that 'configure' need not check for strtol merely because
2633         the application needs strtoll.
2634         * modules/strtoll (Files): Add lib/strtol.c.
2635         (Depends-on): Remove strtol.
2636
2637 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2638
2639         inttypes: Move some configure check to module 'imaxdiv'.
2640         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
2641         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
2642         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
2643
2644 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2645
2646         inttypes: Move some configure check to module 'imaxabs'.
2647         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
2648         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
2649         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
2650
2651 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2652
2653         inttypes: Remove configure tests that are not needed since 2009-12-31.
2654         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
2655         gl_cv_header_working_inttypes_h.
2656
2657 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2658
2659         * modules/strnlen (Depends-on): Remove memchr.
2660         The strnlen implementation doesn't need the memchr module's fixes; see
2661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
2662
2663         strtol: remove dependency on wchar
2664         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
2665         * modules/strtol (Depends-on): Remove wchar.
2666
2667 2011-04-21  Eric Blake  <eblake@redhat.com>
2668
2669         passfd: fix test regression on Linux
2670         * modules/passfd-tests (configure.ac): Correct socketpair check.
2671
2672         passfd: speed up configure and drop unused code
2673         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
2674         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
2675         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
2676         Instead of probing at configure for unix_scm_rights_bsd44_way,
2677         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
2678         check to a struct member probe.
2679         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
2680         (sendfd, recvfd): Update preprocessor checks.
2681         * modules/passfd (Files): Reflect rename, and drop unused file.
2682         (Depends-on): Drop unused dependency.
2683
2684         passfd: allow compilation on mingw
2685         * modules/sys_socket (Depends-on): Add sys_uio.
2686         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
2687         iovec and a minimal struct msghdr.
2688         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
2689         * tests/test-sys_socket.c (main): Enhance test.
2690         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2691         guaranteed to provide what we need.
2692         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2693         * modules/passfd-tests (Depends-on): Add sys_wait.
2694         * tests/test-passfd.c (main): Skip test on mingw, for now.
2695         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2696         partial 'struct msghdr' implementation.
2697
2698         sys_uio: new module
2699         * modules/sys_uio: New module.
2700         * modules/sys_uio-tests: Likewise.
2701         * lib/sys_uio.in.h: New file.
2702         * m4/sys_uio_h.m4: Likewise.
2703         * tests/test-sys_uio.c: Likewise.
2704         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2705         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2706
2707 2011-04-20  Jim Meyering  <meyering@redhat.com>
2708
2709         useless-if-before-free: avoid false-positive
2710         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2711         disjunct so that it too requires a terminating ";".  Without that,
2712         this script would identify as useless one statement from gcc that
2713         was not:
2714           if (aligned_ptr)
2715             free (((void **) aligned_ptr) [-1]);
2716
2717 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2718
2719         doc: update users.txt.
2720         * users.txt: Add barcode.
2721
2722 2011-04-19  Bruno Haible  <bruno@clisp.org>
2723
2724         ioctl: Remove link dependency on native Windows.
2725         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2726         (gl_close_fn, gl_ioctl_fn): New types.
2727         (struct fd_hook): Renamed from struct close_hook. Change type of
2728         private_close_fn field. Add private_ioctl_fn field.
2729         (close_hook_fn): Add parameter for primary close method.
2730         (execute_close_hooks, execute_all_close_hooks): Likewise.
2731         (ioctl_hook_fn): New type.
2732         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2733         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2734         argument.
2735         (unregister_fd_hook): Renamed from unregister_close_hook.
2736         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2737         Don't include <unistd.h>.
2738         (close): Remove undef.
2739         (anchor): Update.
2740         (execute_close_hooks): Add argument for primary close method.
2741         (execute_all_close_hooks): Likewise.
2742         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2743         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2744         argument. Allow each argument to be NULL.
2745         (unregister_fd_hook): Renamed from unregister_close_hook.
2746         * lib/close.c (rpl_close): Pass 'close' function pointer to
2747         execute_all_close_hooks.
2748         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2749         (primary_ioctl): New function.
2750         (ioctl): Don't call ioctlsocket here. Instead, call
2751         execute_all_ioctl_hooks.
2752         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2753         close method.
2754         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2755         (fd_sockets_hook): Renamed from close_sockets_hook.
2756         (gl_sockets_startup, gl_sockets_cleanup): Update.
2757         * modules/fd-hook: Renamed from modules/close-hook. Update.
2758         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2759         * modules/sockets (Depends-on): Likewise.
2760         * modules/ioctl (Depends-on): Add fd-hook.
2761         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2762         GNULIB_SOCKET.
2763
2764 2011-04-19  Bruno Haible  <bruno@clisp.org>
2765
2766         Move the support of O_NONBLOCK in open() to the 'open' module.
2767         * modules/nonblocking (Depends-on): Remove 'open'.
2768         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2769         gl_cv_have_open_O_NONBLOCK.
2770         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2771         O_NONBLOCK support.
2772         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2773
2774 2011-04-17  Bruno Haible  <bruno@clisp.org>
2775
2776         pipe2: Simplify code.
2777         * lib/pipe2.c (pipe2): Reduce code duplication.
2778
2779 2011-04-17  Bruno Haible  <bruno@clisp.org>
2780
2781         nonblocking: Add comment.
2782         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2783
2784 2011-04-17  Bruno Haible  <bruno@clisp.org>
2785
2786         nonblocking: Add tests for sockets.
2787         * tests/test-nonblocking-socket.sh: New file.
2788         * tests/test-nonblocking-socket-main.c: New file.
2789         * tests/test-nonblocking-socket-child.c: New file.
2790         * tests/test-nonblocking-socket.h: New file.
2791         * tests/socket-server.h: New file.
2792         * tests/socket-client.h: New file.
2793         * modules/nonblocking-socket-tests: New file.
2794         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
2795
2796 2011-04-17  Bruno Haible  <bruno@clisp.org>
2797
2798         nonblocking: Add tests for pipes.
2799         * tests/test-nonblocking-pipe.sh: New file.
2800         * tests/test-nonblocking-pipe-main.c: New file.
2801         * tests/test-nonblocking-pipe-child.c: New file.
2802         * tests/test-nonblocking-pipe.h: New file.
2803         * tests/test-nonblocking-writer.h: New file.
2804         * tests/test-nonblocking-reader.h: New file.
2805         * tests/test-nonblocking-misc.h: New file.
2806         * modules/nonblocking-pipe-tests: New file.
2807         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
2808
2809 2011-04-16  Bruno Haible  <bruno@clisp.org>
2810
2811         gettext: Clarify the needed programmer actions.
2812         * modules/gettext (Notice): New field.
2813         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2814
2815 2011-04-16  Bruno Haible  <bruno@clisp.org>
2816
2817         strchrnul: Tweak last commit.
2818         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
2819         bug.
2820         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
2821         as in _GL_FUNCDECL_SYS.
2822         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
2823         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
2824
2825 2011-04-15  Eric Blake  <eblake@redhat.com>
2826
2827         strchrnul: work around cygwin bug
2828         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
2829         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
2830         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
2831         * modules/string (Makefile.am): Substitute it.
2832         * lib/string.in.h (strchrnul): Use it.
2833
2834 2011-04-15  Bruno Haible  <bruno@clisp.org>
2835
2836         Don't require lib/stdio-write.c when only module 'stdio' is used.
2837         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
2838         invocation.
2839         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
2840
2841 2011-04-14  Bruno Haible  <bruno@clisp.org>
2842
2843         Support non-blocking pipe I/O in read() on native Windows.
2844         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
2845         (read): New declaration.
2846         * lib/read.c: New file.
2847         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
2848         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
2849         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
2850         vscanf): New declarations.
2851         * lib/stdio-read.c: New file.
2852         * m4/read.m4: New file.
2853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
2854         REPLACE_READ.
2855         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
2856         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2857         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
2858         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
2859         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
2860         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2861         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2862         * modules/read: New file.
2863         * modules/nonblocking (Files): Add lib/stdio-read.c.
2864         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
2865         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
2866         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2867         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2868         * modules/pread (Depends-on): Add read.
2869         * modules/safe-read (Depends-on): Likewise.
2870         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
2871         gets, scanf, vfscanf, vscanf): Verify signatures.
2872         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
2873         problem with non-blocking pipes.
2874         * doc/posix-functions/fgetc.texi: Likewise.
2875         * doc/posix-functions/fgets.texi: Likewise.
2876         * doc/posix-functions/fread.texi: Likewise.
2877         * doc/posix-functions/fscanf.texi: Likewise.
2878         * doc/posix-functions/getc.texi: Likewise.
2879         * doc/posix-functions/getchar.texi: Likewise.
2880         * doc/posix-functions/gets.texi: Likewise.
2881         * doc/posix-functions/scanf.texi: Likewise.
2882         * doc/posix-functions/vfscanf.texi: Likewise.
2883         * doc/posix-functions/vscanf.texi: Likewise.
2884
2885 2011-04-14  Bruno Haible  <bruno@clisp.org>
2886
2887         Support non-blocking pipe I/O in write() on native Windows.
2888         * lib/write.c (rpl_write): Split a write request that failed merely
2889         because the byte count was larger than the pipe buffer's size.
2890         * doc/posix-functions/write.texi: Mention the problem with large byte
2891         counts.
2892
2893 2011-04-14  Bruno Haible  <bruno@clisp.org>
2894
2895         wchar: Ensure that wchar_t gets defined on uClibc.
2896         * lib/wchar.in.h: On uClibc, include <stddef.h>.
2897         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
2898
2899 2011-04-13  Bruno Haible  <bruno@clisp.org>
2900
2901         safe-write, full-read: Avoid unnecessary compilation units.
2902         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
2903         (Depends-on): Remove safe-read. Add ssize_t.
2904         * modules/full-read (Files): Add lib/full-write.c.
2905         (Depends-on): Add full-write.
2906
2907 2011-04-13  Bruno Haible  <bruno@clisp.org>
2908
2909         Support non-blocking pipe I/O and SIGPIPE in pwrite().
2910         * modules/pwrite (Depends-on): Add 'write'.
2911
2912 2011-04-13  Bruno Haible  <bruno@clisp.org>
2913
2914         Support non-blocking pipe I/O in write() on native Windows.
2915         * lib/unistd.in.h (write): Enable replacement also if
2916         GNULIB_UNISTD_H_NONBLOCKING is 1.
2917         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
2918         (rpl_write): When failing to write on a non-blocking pipe, change
2919         errno from ENOSPC to EAGAIN.
2920         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
2921         putchar, puts, vfprintf, vprintf): Enable replacement also if
2922         GNULIB_STDIO_H_NONBLOCKING is 1.
2923         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
2924         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
2925         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
2926         CALL_WITH_SIGPIPE_EMULATION.
2927         (CALL_WITH_SIGPIPE_EMULATION): Use them.
2928         * m4/nonblocking.m4: New file.
2929         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
2930         for non-blocking I/O support.
2931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2932         GNULIB_UNISTD_H_NONBLOCKING.
2933         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
2934         required for non-blocking I/O support.
2935         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
2936         * modules/nonblocking (Files): Add m4/nonblocking.m4,
2937         lib/stdio-write.c, m4/asm-underscore.m4.
2938         (Depends-on): Add stdio, unistd.
2939         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
2940         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
2941         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
2942         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
2943         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
2944         problem with non-blocking pipes.
2945         * doc/posix-functions/fputc.texi: Likewise.
2946         * doc/posix-functions/fputs.texi: Likewise.
2947         * doc/posix-functions/fwrite.texi: Likewise.
2948         * doc/posix-functions/printf.texi: Likewise.
2949         * doc/posix-functions/putc.texi: Likewise.
2950         * doc/posix-functions/putchar.texi: Likewise.
2951         * doc/posix-functions/puts.texi: Likewise.
2952         * doc/posix-functions/vfprintf.texi: Likewise.
2953         * doc/posix-functions/vprintf.texi: Likewise.
2954         * doc/posix-functions/write.texi: Likewise.
2955
2956 2011-04-10  Jim Meyering  <meyering@redhat.com>
2957
2958         maint.mk: prohibit doubled words
2959         Detect them also when they're separated by a newline.
2960         There are 3 ways to customize it:
2961           - disable the test on a per file basis, as usual with rules using
2962             $(VC_LIST_EXCEPT)
2963           - replace the default doubled-word-selecting regexp (affects all files)
2964           - ignore a particular file-vs-doubled-word match
2965         I nearly used that last one to ignore the "is is" match in
2966         coreutils' NEWS file, since the text was "ls -is is ..."
2967         To do that, I would have added this line to cfg.mk:
2968           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
2969         but it would have ignored any "is is" match in NEWS.
2970         Low probability, but still...
2971         Instead, I changed the text, slightly:
2972           -  ls -is is now consistent with ls -lis in ignoring values returned
2973           +  "ls -is" is now consistent with ls -lis in ignoring values returned
2974         * top/maint.mk (prohibit_double_word_RE_): Provide default.
2975         (prohibit_doubled_word_): Define.
2976         (sc_prohibit_doubled_word): New rule.
2977         (sc_prohibit_the_the): Remove.  Subsumed by the above.
2978
2979 2011-04-10  Jim Meyering  <meyering@redhat.com>
2980
2981         maint: fix doubled-word typo in comment
2982         * m4/gethostname.m4: s/is is/it is/
2983         * m4/getdomainname.m4: Likewise.
2984
2985 2011-04-10  Jim Meyering  <meyering@redhat.com>
2986
2987         maint: remove doubled word: s/it it/it/
2988         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
2989
2990 2011-04-10  Jim Meyering  <meyering@redhat.com>
2991
2992         maint.mk: remove useless semicolon and backslash
2993         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
2994         semicolon and backslash.
2995
2996 2011-04-10  Bruno Haible  <bruno@clisp.org>
2997
2998         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
2999         * modules/stdint-tests (Depends-on): Add wchar.
3000
3001 2011-04-10  Jim Meyering  <meyering@redhat.com>
3002
3003         maint: remove doubled words in comments, e.g., s/a a/a/
3004         * lib/strptime.c (day_of_the_week): s/the the/the/
3005         * tests/test-chown.h (test_chown): s/a a/a/
3006
3007         test-chown.h: correct a cast
3008         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3009         when the destination is a stat.st_gid.
3010
3011 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3012
3013         getaddrinfo: Fix test for sa_len member.
3014         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3015         include <sys/types.h> before <sys/socket.h>.
3016
3017 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3018
3019         maint: change "can not" to "cannot"
3020         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3021         boundaries.
3022
3023 2011-04-09  Jim Meyering  <meyering@redhat.com>
3024
3025         maint: change "a a" to "a"
3026         * tests/test-lchown.h (test_lchown): s/a a/a/
3027
3028         maint.mk: prohibit \<the the\>
3029         * top/maint.mk (sc_prohibit_the_the): New rule.
3030
3031         maint: fix "the the" in comment
3032         * lib/count-one-bits.h: s/the the/the/
3033
3034         maint: change "can not" to "cannot"
3035         But do not change the occurrences in maintain.texi or in
3036         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3037         * doc/gnulib-tool.texi: s/can not/cannot/
3038         * doc/posix-functions/accept.texi (accept): Likewise.
3039         * doc/posix-functions/socket.texi (socket): Likewise.
3040         * lib/mbrtowc.c: Likewise.
3041
3042         maint.mk: prohibit use of "can not"
3043         * top/maint.mk (sc_prohibit_can_not): New rule.
3044         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3045
3046 2011-04-09  Bruno Haible  <bruno@clisp.org>
3047
3048         careadlinkat: Guard against misuse of careadlinkatcwd.
3049         * lib/careadlinkat.c: Include <stdlib.h>.
3050         (careadlinkatcwd): Check that the fd argument is as expected.
3051
3052 2011-04-09  Bruno Haible  <bruno@clisp.org>
3053
3054         careadlinkat: Use common coding style.
3055         * lib/careadlinkat.c: Move gnulib includes after system includes.
3056
3057 2011-04-09  Bruno Haible  <bruno@clisp.org>
3058
3059         careadlinkat: Clarify specification.
3060         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3061         (careadlinkatcwd): Add comment.
3062         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3063
3064 2011-04-09  Bruno Haible  <bruno@clisp.org>
3065
3066         areadlinkat: Avoid link error on many platforms.
3067         * modules/areadlinkat (Depends-on): Add areadlink.
3068
3069 2011-04-09  Bruno Haible  <bruno@clisp.org>
3070
3071         allocator, careadlinkat: Fix double-inclusion guard.
3072         * lib/allocator.h: Fix double-inclusion guard.
3073         * lib/careadlinkat.h: Likewise.
3074
3075 2011-04-09  Bruno Haible  <bruno@clisp.org>
3076
3077         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3078         * lib/relocwrapper.c: Update dependencies hierarchy.
3079         * build-aux/install-reloc: Update list of files to be compiled.
3080         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3081         lib/allocator.[hc].
3082
3083 2011-04-08  Eric Blake  <eblake@redhat.com>
3084
3085         strftime: silence gnulib-tool warning
3086         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3087
3088 2011-04-08  Bruno Haible  <bruno@clisp.org>
3089
3090         verify: Fix syntax error with GCC 4.6 in C++ mode.
3091         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3092         (HAVE_STATIC_ASSERT): New macro.
3093         (verify_true, verify): Use 'static_assert' if it is supported and
3094         '_Static_assert' is not supported.
3095
3096 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3097
3098         allocator: New module.
3099         * modules/allocator, lib/allocator.c: New files.
3100         * lib/allocator.h (stdlib_allocator): New decl.
3101         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3102         Remove.  Do not include <stdlib.h>.
3103         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3104         * modules/careadlinkat (Files): Remove lib/allocator.h.
3105         (Depends-on): Add allocator.
3106
3107         stdlib: let modules use system malloc, realloc
3108         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3109         if !_GL_USE_STDLIB_ALLOC.
3110         (malloc, realloc): Limit this change to a smaller scope.
3111
3112         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3113         (malloc, realloc): Don't #undef; no longer needed.
3114         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3115         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3116         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3117         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3118         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3119         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3120         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3121         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3122
3123         careadlinkat: rename members to avoid problem
3124         * lib/allocator.h (struct allocator): Rename members from
3125         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3126         and realloc are #define'd.  Reported by Eric Blake in
3127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3128         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3129
3130 2011-04-08  Eric Blake  <eblake@redhat.com>
3131
3132         nonblocking: reduce dependency
3133         * tests/test-nonblocking.c: Only test sockets when in use.
3134         * modules/nonblocking-tests (Depends-on): Drop socket.
3135         (Makefile.am): Link even if sockets are not present.
3136         * modules/pipe2-tests (Makefile.am): Likewise.
3137         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3138
3139         pipe2: fix O_NONBLOCK support on mingw
3140         * modules/pipe2 (Depends-on): Add nonblocking.
3141         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3142         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3143         * tests/test-nonblocking.c (main): Likewise.
3144         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3145
3146         fcntl-h: fix O_ACCMODE on cygwin
3147         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3148         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3149
3150         pipe-filter: drop O_NONBLOCK workarounds
3151         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3152         * modules/pipe-filter-ii (Depends-on): Likewise.
3153         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3154
3155         nonblocking: provide O_NONBLOCK for mingw
3156         * modules/nonblocking (Depends-on): Add open.
3157         (configure.ac): Set new witness macro.
3158         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3159         * modules/fcntl-h (Makefile.am): Substitute it.
3160         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3161         nonblocking module is in use.
3162         * lib/nonblocking.c: Adjust portability test.
3163         * lib/open.c (open): Don't let native open see gnulib flag.
3164         * tests/test-fcntl-h.c (main): Enhance test.
3165         * tests/test-open.h (test_open): Likewise.
3166         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3167
3168         careadlinkat: fix compilation error on mingw
3169         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3170         within struct allocator.
3171
3172 2011-04-06  Eric Blake  <eblake@redhat.com>
3173
3174         binary-io: relicense under LGPLv2+
3175         * modules/binary-io (License): Relax to LGPLv2+.
3176         Requested for libvirt, and required by pipe2.
3177
3178 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3179
3180         verify: use _Static_assert if available
3181         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3182         (verify_true, verify): Use it if available.  This generates better
3183         diagnostics with GCC 4.6.0 and later.
3184
3185 2011-04-05  Bruno Haible  <bruno@clisp.org>
3186
3187         Remove leftover generated .h files after config.status changed.
3188
3189         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3190         GL_GENERATE_ALLOCA_H.
3191         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3192         GL_GENERATE_ALLOCA_H evaluates to false.
3193
3194         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3195         GL_GENERATE_ARGZ_H.
3196         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3197         evaluates to false.
3198
3199         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3200         GL_GENERATE_BYTESWAP_H.
3201         * modules/byteswap (Makefile.am): Remove byteswap.h if
3202         GL_GENERATE_BYTESWAP_H evaluates to false.
3203
3204         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3205         GL_GENERATE_ERRNO_H.
3206         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3207         evaluates to false.
3208
3209         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3210         GL_GENERATE_FLOAT_H.
3211         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3212         evaluates to false.
3213
3214         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3215         GL_GENERATE_FNMATCH_H.
3216         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3217         GL_GENERATE_FNMATCH_H evaluates to false.
3218
3219         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3220         GL_GENERATE_GLOB_H.
3221         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3222         evaluates to false.
3223
3224         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3225         automake conditional GL_GENERATE_ICONV_H.
3226         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3227         evaluates to false.
3228
3229         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3230         GL_GENERATE_NETINET_IN_H.
3231         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3232         GL_GENERATE_NETINET_IN_H evaluates to false.
3233
3234         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3235         conditional GL_GENERATE_PTHREAD_H.
3236         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3237         * modules/pthread (Makefile.am): Remove pthread.h if
3238         GL_GENERATE_PTHREAD_H evaluates to false.
3239
3240         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3241         GL_GENERATE_SCHED_H.
3242         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3243         evaluates to false.
3244
3245         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3246         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3247         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3248         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3249
3250         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3251         GL_GENERATE_STDARG_H.
3252         * modules/stdarg (Makefile.am): Remove stdarg.h if
3253         GL_GENERATE_STDARG_H evaluates to false.
3254
3255         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3256         GL_GENERATE_STDBOOL_H.
3257         * modules/stdbool (Makefile.am): Remove stdbool.h if
3258         GL_GENERATE_STDBOOL_H evaluates to false.
3259
3260         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3261         conditional GL_GENERATE_STDDEF_H.
3262         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3263         * modules/stddef (Makefile.am): Remove stddef.h if
3264         GL_GENERATE_STDDEF_H evaluates to false.
3265
3266         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3267         GL_GENERATE_STDINT_H.
3268         * modules/stdint (Makefile.am): Remove stdint.h if
3269         GL_GENERATE_STDINT_H evaluates to false.
3270
3271         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3272         GL_GENERATE_SYSEXITS_H.
3273         * modules/sysexits (Makefile.am): Remove sysexits.h if
3274         GL_GENERATE_SYSEXITS_H evaluates to false.
3275
3276         Reported by Karl Berry and Ralf Wildenhues.
3277
3278 2011-04-05  Bruno Haible  <bruno@clisp.org>
3279
3280         Ensure to rebuild generated .h files when config.status has changed.
3281         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3282         config.status.
3283         * modules/ctype (Makefile.am): Likewise.
3284         * modules/dirent (Makefile.am): Likewise.
3285         * modules/errno (Makefile.am): Likewise.
3286         * modules/fcntl-h (Makefile.am): Likewise.
3287         * modules/float (Makefile.am): Likewise.
3288         * modules/getopt-posix (Makefile.am): Likewise.
3289         * modules/glob (Makefile.am): Likewise.
3290         * modules/iconv-h (Makefile.am): Likewise.
3291         * modules/inttypes (Makefile.am): Likewise.
3292         * modules/langinfo (Makefile.am): Likewise.
3293         * modules/locale (Makefile.am): Likewise.
3294         * modules/math (Makefile.am): Likewise.
3295         * modules/netdb (Makefile.am): Likewise.
3296         * modules/netinet_in (Makefile.am): Likewise.
3297         * modules/poll-h (Makefile.am): Likewise.
3298         * modules/pthread (Makefile.am): Likewise.
3299         * modules/pty (Makefile.am): Likewise.
3300         * modules/sched (Makefile.am): Likewise.
3301         * modules/search (Makefile.am): Likewise.
3302         * modules/selinux-h (Makefile.am): Likewise.
3303         * modules/signal (Makefile.am): Likewise.
3304         * modules/spawn (Makefile.am): Likewise.
3305         * modules/stdarg (Makefile.am): Likewise.
3306         * modules/stdbool (Makefile.am): Likewise.
3307         * modules/stddef (Makefile.am): Likewise.
3308         * modules/stdint (Makefile.am): Likewise.
3309         * modules/stdio (Makefile.am): Likewise.
3310         * modules/stdlib (Makefile.am): Likewise.
3311         * modules/string (Makefile.am): Likewise.
3312         * modules/strings (Makefile.am): Likewise.
3313         * modules/sys_file (Makefile.am): Likewise.
3314         * modules/sys_ioctl (Makefile.am): Likewise.
3315         * modules/sys_select (Makefile.am): Likewise.
3316         * modules/sys_socket (Makefile.am): Likewise.
3317         * modules/sys_stat (Makefile.am): Likewise.
3318         * modules/sys_time (Makefile.am): Likewise.
3319         * modules/sys_times (Makefile.am): Likewise.
3320         * modules/sys_utsname (Makefile.am): Likewise.
3321         * modules/sys_wait (Makefile.am): Likewise.
3322         * modules/sysexits (Makefile.am): Likewise.
3323         * modules/termios (Makefile.am): Likewise.
3324         * modules/time (Makefile.am): Likewise.
3325         * modules/unistd (Makefile.am): Likewise.
3326         * modules/wchar (Makefile.am): Likewise.
3327         * modules/wctype-h (Makefile.am): Likewise.
3328         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3329
3330 2011-04-05  Bruno Haible  <bruno@clisp.org>
3331
3332         pipe2: Relicense under LGPLv2+.
3333         * modules/pipe2 (License): Change to LGPLv2+.
3334         Requested by Eric Blake, for libvirt.
3335
3336 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3337
3338         bootstrap: compute gnulib_extra_files after updating build_aux
3339         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3340         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3341
3342 2011-04-05  Eric Blake  <eblake@redhat.com>
3343
3344         bootstrap: preserve git whitelist item sorting
3345         * build-aux/bootstrap (sort_patterns): New function.
3346         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3347
3348 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3349
3350         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3351         sc_space_tab check.
3352
3353 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3354
3355         areadlink, areadlinkat: rewrite in terms of careadlinkat
3356         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3357         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3358         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3359         (malloc, realloc): Remove #undefs.
3360         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3361         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3362         readlink, ssize_t, stdint, unistd.
3363         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3364         areadlink, stdint.
3365
3366         careadlinkat: new module
3367         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3368         * modules/careadlinkat: New files, written by me with
3369         a review and feedback from Ben Pfaff in
3370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3371
3372 2011-04-01  Bruno Haible  <bruno@clisp.org>
3373
3374         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3375         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3376         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3377         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3378         Reported by Bruce Korb <bruce.korb@gmail.com>.
3379
3380 2011-04-01  Bruno Haible  <bruno@clisp.org>
3381
3382         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3383         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3384         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3385         * modules/wcpcpy (Depends-on): Add extensions.
3386         * modules/wcpncpy (Depends-on): Likewise.
3387         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3388         systems.
3389         * doc/posix-functions/wcpncpy.texi: Likewise.
3390         * doc/posix-functions/wcwidth.texi: Likewise.
3391
3392 2011-03-31  Eric Blake  <eblake@redhat.com>
3393
3394         nonblocking: fix mingw test failures
3395         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3396         non-blocking flag on regular file.
3397         (get_nonblocking_flag): Set errno on invalid fd.
3398         * tests/test-nonblocking.c (main): Avoid test failure on
3399         directories if fchdir is not active.
3400         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3401
3402 2011-03-31  Bruno Haible  <bruno@clisp.org>
3403
3404         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3405         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3406         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3407         Reported by Simon Josefsson <simon@josefsson.org>.
3408
3409 2011-03-31  Bruno Haible  <bruno@clisp.org>
3410         and Eric Blake  <eblake@redhat.com>
3411
3412         nonblocking: new module
3413         * modules/nonblocking: New module.
3414         * modules/nonblocking-tests: Likewise.
3415         * lib/nonblocking.h: New file.
3416         * lib/nonblocking.c: Likewise.
3417         * tests/test-nonblocking.c: New test.
3418         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3419
3420 2011-03-30  Bruno Haible  <bruno@clisp.org>
3421
3422         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3423         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3424         instead of 'printf' format for GCC >= 4.4.
3425         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3426         (fprintf, printf, vfprintf, vprintf): Declare with
3427         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3428         the system's vfprintf() function.
3429         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3430
3431 2011-03-30  Eric Blake  <eblake@redhat.com>
3432
3433         passfd: fix scoping bug
3434         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3435         before sendmsg/recvmsg.
3436
3437         passfd: standardize coding conventions
3438         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3439         can be learned at compile time.
3440         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3441         ifdefs.
3442         (sendfd, recvfd): Follow gnulib code conventions.
3443
3444         passfd: fix incorrect sendmsg arguments
3445         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3446         incorrect msg_controllen value.
3447         * modules/passfd-tests (Depends-on): Check for alarm.
3448         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3449         Reported by Bastien ROUCARIES.
3450
3451 2011-03-30  Bruno Haible  <bruno@clisp.org>
3452
3453         c-strcasestr: Relicense under LGPLv2+.
3454         * modules/c-strcasestr (License): Change to LGPLv2+.
3455         Requested by Eric Blake, for libvirt.
3456
3457 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3458
3459         * users.txt: Add libidn2.  Fix libtasn1 link.
3460
3461 2011-03-30  Jim Meyering  <meyering@redhat.com>
3462
3463         tests: readlink* ("",... fails with EINVAL on newer kernels
3464         readlink and readlinkat have typically failed with ENOENT for
3465         the invalid, empty file name,  "".  However, with the advent
3466         of linux-2.6.39, they fail with EINVAL.
3467         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3468         when operating on the empty file name.
3469         * tests/test-readlink.h (test_readlink): Likewise.
3470
3471 2011-03-29  Bruno Haible  <bruno@clisp.org>
3472
3473         Relicense some modules under LGPLv2+, for libidn2.
3474         * modules/array-mergesort (License): Change to LGPLv2+.
3475         * modules/c-strcaseeq (License): Likewise.
3476         * modules/striconveh (License): Likewise.
3477         * modules/striconveha (License): Likewise.
3478         * modules/uniconv/base (License): Likewise.
3479         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3480         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3481         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3482         * modules/unictype/base (License): Likewise.
3483         * modules/unictype/bidiclass-of (License): Likewise.
3484         * modules/unictype/category-M (License): Likewise.
3485         * modules/unictype/category-none (License): Likewise.
3486         * modules/unictype/category-of (License): Likewise.
3487         * modules/unictype/category-test (License): Likewise.
3488         * modules/unictype/category-test-withtable (License): Likewise.
3489         * modules/unictype/combining-class (License): Likewise.
3490         * modules/unictype/joiningtype-of (License): Likewise.
3491         * modules/unictype/scripts (License): Likewise.
3492         * modules/uninorm/base (License): Likewise.
3493         * modules/uninorm/canonical-decomposition (License): Likewise.
3494         * modules/uninorm/composition (License): Likewise.
3495         * modules/uninorm/decompose-internal (License): Likewise.
3496         * modules/uninorm/decomposition-table (License): Likewise.
3497         * modules/uninorm/nfc (License): Likewise.
3498         * modules/uninorm/nfd (License): Likewise.
3499         * modules/uninorm/u32-normalize (License): Likewise.
3500         * modules/unistr/base (License): Likewise.
3501         * modules/unistr/u32-cpy (License): Likewise.
3502         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3503         * modules/unistr/u32-to-u8 (License): Likewise.
3504         * modules/unistr/u32-uctomb (License): Likewise.
3505         * modules/unistr/u8-check (License): Likewise.
3506         * modules/unistr/u8-mblen (License): Likewise.
3507         * modules/unistr/u8-mbtouc (License): Likewise.
3508         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3509         * modules/unistr/u8-mbtoucr (License): Likewise.
3510         * modules/unistr/u8-prev (License): Likewise.
3511         * modules/unistr/u8-strlen (License): Likewise.
3512         * modules/unistr/u8-to-u32 (License): Likewise.
3513         * modules/unistr/u8-uctomb (License): Likewise.
3514         * modules/unitypes (License): Likewise.
3515         Requested by Simon Josefsson.
3516
3517 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3518
3519         lib-symbol-visibility: Add a notice.
3520         * modules/lib-symbol-visibility (Notice): New field.
3521
3522 2011-03-29  Bruno Haible  <bruno@clisp.org>
3523
3524         getaddrinfo: Doc fix.
3525         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
3526         section "fixed in Gnulib".
3527
3528 2011-03-28  Simon Josefsson  <simon@josefsson.org>
3529
3530         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
3531         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
3532
3533 2011-03-26  Bruno Haible  <bruno@clisp.org>
3534
3535         unictype/property-byname: Reduce the number of load-time relocations.
3536         * lib/unictype/pr_byname.c: Include <stdlib.h>.
3537         (UC_PROPERTY_INDEX_*): New enumeration values.
3538         (uc_property_byname): Convert an index from the lookup table to an
3539         uc_property_t.
3540         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
3541         values.
3542
3543 2011-03-26  Bruno Haible  <bruno@clisp.org>
3544
3545         unictype/property-byname: Allow omitted word separators and aliases.
3546         * lib/unictype/pr_byname.gperf: Add property names without word
3547         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
3548         for 'space'.
3549
3550 2011-03-26  Bruno Haible  <bruno@clisp.org>
3551
3552         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
3553         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
3554         also hyphens to space.
3555         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
3556         without spaces.
3557         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
3558
3559 2011-03-26  Bruno Haible  <bruno@clisp.org>
3560
3561         unictype/joiningtype-byname: Recognize long names as well.
3562         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
3563         a long name.
3564         * lib/unictype/joiningtype_byname.c: Include <string.h>,
3565         unictype/joiningtype_byname.h.
3566         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
3567         * lib/unictype/joiningtype_byname.gperf: New file.
3568         * modules/unictype/joiningtype-byname (Files): Add
3569         lib/unictype/joiningtype_byname.gperf.
3570         (Depends-on): Add gperf.
3571         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
3572         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
3573         long names.
3574
3575         Tests for module 'unictype/joiningtype-longname'.
3576         * modules/unictype/joiningtype-longname-tests: New file.
3577         * tests/unictype/test-joiningtype_longname.c: New file.
3578
3579         New module 'unictype/joiningtype-longname'.
3580         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
3581         * lib/unictype/joiningtype_longname.c: New file.
3582         * modules/unictype/joiningtype-longname: New file.
3583         * modules/unictype/joiningtype-all (Depends-on): Add
3584         unictype/joiningtype-longname.
3585
3586 2011-03-26  Bruno Haible  <bruno@clisp.org>
3587
3588         unictype/bidiclass-byname: Recognize long names as well.
3589         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
3590         name.
3591         * lib/unictype/bidi_byname.c: Include <string.h>,
3592         unictype/bidi_byname.h.
3593         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
3594         * lib/unictype/bidi_byname.gperf: New file.
3595         * modules/unictype/bidiclass-byname (Files): Add
3596         lib/unictype/bidi_byname.gperf.
3597         (Depends-on): Add gperf.
3598         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
3599         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
3600         long names.
3601
3602         Tests for module 'unictype/bidiclass-longname'.
3603         * modules/unictype/bidiclass-longname-tests: New file.
3604         * tests/unictype/test-bidi_longname.c: New file.
3605
3606         New module 'unictype/bidiclass-longname'.
3607         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
3608         * lib/unictype/bidi_longname.c: New file.
3609         * modules/unictype/bidiclass-longname: New file.
3610         * modules/unictype/bidiclass-all (Depends-on): Add
3611         unictype/bidiclass-longname.
3612
3613 2011-03-26  Bruno Haible  <bruno@clisp.org>
3614
3615         unictype/bidi*: Rename modules.
3616         * modules/unictype/bidiclass-all: Renamed from
3617         modules/unictype/bidicategory-all.
3618         * modules/unictype/bidiclass-name: Renamed from
3619         modules/unictype/bidiclass-name.
3620         (Description): Update.
3621         * modules/unictype/bidiclass-name-tests: Renamed from
3622         modules/unictype/bidicategory-name-tests.
3623         * modules/unictype/bidiclass-byname: Renamed from
3624         modules/unictype/bidicategory-byname.
3625         (Description): Update.
3626         * modules/unictype/bidiclass-byname-tests: Renamed from
3627         modules/unictype/bidicategory-byname-tests.
3628         * modules/unictype/bidiclass-of: Renamed from
3629         modules/unictype/bidicategory-of.
3630         (Description): Update.
3631         * modules/unictype/bidiclass-of-tests: Renamed from
3632         modules/unictype/bidicategory-of-tests.
3633         * modules/unictype/bidiclass-test: Renamed from
3634         modules/unictype/bidicategory-test.
3635         (Description): Update.
3636         * modules/unictype/bidiclass-test-tests: Renamed from
3637         modules/unictype/bidicategory-test-tests.
3638         * modules/unictype/bidicategory-all: New file, a simple redirection.
3639         * modules/unictype/bidicategory-name: Likewise.
3640         * modules/unictype/bidicategory-byname: Likewise.
3641         * modules/unictype/bidicategory-of: Likewise.
3642         * modules/unictype/bidicategory-test: Likewise.
3643         * modules/unictype/property-bidi-* (Dependencies): Update.
3644         * lib/unictype/bidi_*.c: Update comment.
3645
3646 2011-03-26  Bruno Haible  <bruno@clisp.org>
3647
3648         unictype/bidi*: Rename functions, part 2.
3649         * modules/unictype/bidicategory-name (configure.ac): Update required
3650         libunistring version.
3651         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
3652
3653 2011-03-25  Bruno Haible  <bruno@clisp.org>
3654
3655         New module 'unictype/combining-class-all'.
3656         * modules/unictype/combining-class-all: New file.
3657
3658         Tests for module 'unictype/combining-class-byname'.
3659         * modules/unictype/combining-class-byname-tests: New file.
3660         * tests/unictype/test-combiningclass_byname.c: New file.
3661
3662         New module 'unictype/combining-class-byname'.
3663         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
3664         * lib/unictype/combiningclass_byname.c: New file.
3665         * lib/unictype/combiningclass_byname.gperf: New file.
3666         * modules/unictype/combining-class-byname: New file.
3667
3668         Tests for module 'unictype/combining-class-longname'.
3669         * modules/unictype/combining-class-longname-tests: New file.
3670         * tests/unictype/test-combiningclass_longname.c: New file.
3671
3672         New module 'unictype/combining-class-longname'.
3673         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
3674         * lib/unictype/combiningclass_longname.c: New file.
3675         * modules/unictype/combining-class-longname: New file.
3676
3677         Tests for module 'unictype/combining-class-name'.
3678         * modules/unictype/combining-class-name-tests: New file.
3679         * tests/unictype/test-combiningclass_name.c: New file.
3680
3681         New module 'unictype/combining-class-name'.
3682         * lib/unictype.in.h (uc_combining_class_name): New declaration.
3683         * lib/unictype/combiningclass_name.c: New file.
3684         * modules/unictype/combining-class-name: New file.
3685
3686 2011-03-25  Bruno Haible  <bruno@clisp.org>
3687
3688         unictype/combining-class: Rename source files.
3689         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3690         of unictype/combining.h.
3691         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3692         Update.
3693         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3694         * modules/unictype/combining-class (Description): Fix.
3695         (Files, Makefile.am): Update.
3696         * tests/unictype/test-combiningclass.c: Renamed from
3697         tests/unictype/test-combining.c.
3698         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3699
3700 2011-03-25  Bruno Haible  <bruno@clisp.org>
3701
3702         unictype: Update list of canonical combining classes.
3703         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3704
3705 2011-03-25  Bruno Haible  <bruno@clisp.org>
3706
3707         unictype/category-byname: Recognize long names as well.
3708         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3709         a long name.
3710         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3711         unictype/categ_byname.h.
3712         (UC_CATEGORY_INDEX_*): New enumeration values.
3713         (uc_general_category_byname): Use uc_general_category_lookup and
3714         convert from index to value.
3715         * lib/unictype/categ_byname.gperf: New file.
3716         * modules/unictype/category-byname (Files): Add
3717         lib/unictype/categ_byname.gperf.
3718         (Depends-on): Add gperf.
3719         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3720         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3721         long names.
3722
3723         Tests for module 'unictype/category-longname'.
3724         * modules/unictype/category-longname-tests: New file.
3725         * tests/unictype/test-categ_longname.c: New file.
3726
3727         New module 'unictype/category-longname'.
3728         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3729         * lib/unictype/categ_longname.c: New file.
3730         * modules/unictype/category-longname: New file.
3731         * modules/unictype/category-all (Depends-on): Add it.
3732
3733 2011-03-25  Bruno Haible  <bruno@clisp.org>
3734
3735         Tests for module 'unictype/category-LC'.
3736         * modules/unictype/category-LC-tests: New file.
3737         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3738
3739         New module 'unictype/category-LC'.
3740         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3741         (UC_CATEGORY_LC): New declaration.
3742         (UC_CASED_LETTER): New macro.
3743         * lib/gen-uni-tables.c (is_category_LC): New function.
3744         (output_categories): Also handle category LC.
3745         (UC_CATEGORY_MASK_LC): New enumeration value.
3746         (general_category_byname): Also handle category LC.
3747         * lib/unictype/categ_LC.c: New file.
3748         * lib/unictype/categ_LC.h: New file, automatically generated.
3749         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3750         category LC.
3751         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3752         * modules/unictype/category-LC: New file.
3753         * modules/unictype/category-byname (Depends-on): Add
3754         unictype/category-LC.
3755         * modules/unictype/category-all (Depends-on): Likewise.
3756
3757 2011-03-25  Eric Blake  <eblake@redhat.com>
3758
3759         xmalloc: revert yesterday's regression
3760         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3761         realloc's underlying behavior (allowing allocation of zero-size
3762         objects, especially if malloc-gnu is also in use).
3763
3764 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3765
3766         maint.mk: add missing version to VC-tag
3767         * top/maint.mk: git tag was missing actual tag name; add it.
3768
3769         valgrind: do leak checking, and exit with code 1 on error (not 0)
3770         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3771         to VALGRIND.
3772
3773 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3774
3775         posix-modules: say what it does.
3776         * posix-modules: Add a line to the --help output saying what it does.
3777
3778 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3779
3780         xmalloc: Do not leak if underlying realloc is C99 compatible.
3781         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3782         This avoids a leak on C99-based systems.  See
3783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3784
3785 2011-03-24  Eric Blake  <eblake@redhat.com>
3786
3787         realloc: document portability problem
3788         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3789         passing 0 size to realloc.
3790
3791 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3792
3793         doc: update users.txt
3794         * users.txt: Add cvsps, tmpwatch
3795
3796 2011-03-23  Matt Rice  <ratmice@gmail.com>
3797
3798         doc: update users.txt
3799         * users.txt: Add gdb.
3800
3801 2011-03-23  Jim Meyering  <meyering@redhat.com>
3802
3803         doc: update users.txt
3804         Looking through matches up to the following URL (there are still
3805         several more pages), I found several projects that use gnulib:
3806         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
3807         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
3808         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
3809
3810 2011-03-22  Bruno Haible  <bruno@clisp.org>
3811
3812         unictype/bidi*: Rename functions.
3813         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
3814         uc_bidi_class, uc_is_bidi_class): New declarations.
3815         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
3816         uc_bidi_category_byname.
3817         (uc_bidi_category_byname): New function.
3818         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
3819         u_bidi_category_name.
3820         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
3821         (uc_bidi_category_name): New function.
3822         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
3823         uc_bidi_category.
3824         (uc_bidi_category): New function.
3825         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
3826         uc_is_bidi_category. Invoke uc_bidi_class.
3827         (uc_is_bidi_category): New function.
3828         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
3829         instead of uc_bidi_category_byname.
3830         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
3831         instead of uc_bidi_category_name.
3832         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
3833         uc_bidi_category.
3834         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
3835         instead of uc_is_bidi_category.
3836
3837 2011-03-21  Bruno Haible  <bruno@clisp.org>
3838
3839         New module 'unictype/joininggroup-all'.
3840         * modules/unictype/joininggroup-all: New file.
3841
3842         Tests for module 'unictype/joininggroup-of'.
3843         * modules/unictype/joininggroup-of-tests: New file.
3844         * tests/unictype/test-joininggroup_of.c: New file.
3845         * tests/unictype/test-joininggroup_of.h: New file, automatically
3846         generated by gen-uni-tables.
3847
3848         New module 'unictype/joininggroup-of'.
3849         * modules/unictype/joininggroup-of: New file.
3850         * lib/unictype/joininggroup_of.c: New file.
3851         * lib/unictype/joininggroup_of.h: New file, automatically generated by
3852         gen-uni-tables.
3853
3854         Tests for module 'unictype/joininggroup-byname'.
3855         * modules/unictype/joininggroup-byname-tests: New file.
3856         * tests/unictype/test-joininggroup_byname.c: New file.
3857
3858         New module 'unictype/joininggroup-byname'.
3859         * modules/unictype/joininggroup-byname: New file.
3860         * lib/unictype/joininggroup_byname.c: New file.
3861         * lib/unictype/joininggroup_byname.gperf: New file.
3862
3863         Tests for module 'unictype/joininggroup-name'.
3864         * modules/unictype/joininggroup-name-tests: New file.
3865         * tests/unictype/test-joininggroup_name.c: New file.
3866
3867         New module 'unictype/joininggroup-name'.
3868         * modules/unictype/joininggroup-name: New file.
3869         * lib/unictype/joininggroup_name.c: New file.
3870         * lib/unictype/joininggroup_name.h: New file.
3871
3872         New module 'unictype/joiningtype-all'.
3873         * modules/unictype/joiningtype-all: New file.
3874
3875         Tests for module 'unictype/joiningtype-of'.
3876         * modules/unictype/joiningtype-of-tests: New file.
3877         * tests/unictype/test-joiningtype_of.c: New file.
3878         * tests/unictype/test-joiningtype_of.h: New file, automatically
3879         generated by gen-uni-tables.
3880
3881         New module 'unictype/joiningtype-of'.
3882         * modules/unictype/joiningtype-of: New file.
3883         * lib/unictype/joiningtype_of.c: New file.
3884         * lib/unictype/joiningtype_of.h: New file, automatically generated by
3885         gen-uni-tables.
3886
3887         Tests for module 'unictype/joiningtype-byname'.
3888         * modules/unictype/joiningtype-byname-tests: New file.
3889         * tests/unictype/test-joiningtype_byname.c: New file.
3890
3891         New module 'unictype/joiningtype-byname'.
3892         * modules/unictype/joiningtype-byname: New file.
3893         * lib/unictype/joiningtype_byname.c: New file.
3894
3895         Tests for module 'unictype/joiningtype-name'.
3896         * modules/unictype/joiningtype-name-tests: New file.
3897         * tests/unictype/test-joiningtype_name.c: New file.
3898
3899         New module 'unictype/joiningtype-name'.
3900         * modules/unictype/joiningtype-name: New file.
3901         * lib/unictype/joiningtype_name.c: New file.
3902
3903         unictype: Add support for Arabic shaping properties.
3904         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
3905         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
3906         declarations.
3907         (UC_JOINING_GROUP_*): New enumeration values.
3908         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
3909         declarations.
3910         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
3911         (unicode_joining_type): New variable.
3912         (UC_JOINING_GROUP_*): New enumeration values.
3913         (unicode_joining_group): New variable.
3914         (fill_arabicshaping, joining_type_as_c_identifier,
3915         output_joining_type_test, output_joining_type,
3916         joining_group_as_c_identifier, output_joining_group_test,
3917         output_joining_group): New functions.
3918         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
3919         fill_arabicshaping and output_joining_type_test, output_joining_type,
3920         output_joining_group_test, output_joining_group.
3921         Reported by Simon Josefsson.
3922
3923 2011-03-21  Jim Meyering  <meyering@redhat.com>
3924
3925         strftime: fix a bug in yesterday's change
3926         * lib/strftime.c (add): Accommodate width's initial value of -1.
3927         Otherwise, nstrftime would copy uninitialized data into
3928         the result buffer.
3929
3930 2011-03-21  Jim Meyering  <meyering@redhat.com>
3931
3932         tests: add strftime-tests module
3933         * tests/test-strftime.c: New file.
3934         * modules/strftime-tests: New module.
3935
3936 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3937
3938         strftime: don't assume a byte count fits in 'int'
3939         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
3940         found this problem by static analysis, using gcc -Wstrict-overflow
3941         (GCC 4.5.2, x86-64).  This reported an optimization that depended
3942         on an integer overflow having undefined behavior, but it turns out
3943         that the argument is a size, which might not fit in 'int' anyway,
3944
3945 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3946
3947         stdio: don't require ignore_value around fwrite
3948
3949         This patch works around libc bug 11959
3950         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
3951         Without this patch, applications must often write
3952         ignore_value (fwrite (...)) even though the ignore_value is
3953         not helpful here.  It's common to write many objects, using
3954         fwrite/printf/etc., and then use ferror to detect output error.
3955
3956         I considered making this patch optional, but decided against it,
3957         because libc is obviously being inconsistent here: there is no
3958         reason libc should insist that user code must inspect fwrite
3959         return's value without also insisting that it inspect printf's,
3960         putchar's, etc.  If user code wants to have a strict style where
3961         all these functions' values are checked (so that ferror need not
3962         be checked), we could add support for that style in a new gnulib
3963         module, but in the meantime it's better to be consistent and to
3964         support common usage.
3965
3966         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
3967         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
3968         that we are compiling in checking mode, and if not C++, and
3969         if not already wrapping fwrite for some other reason.
3970         (fwrite): #define to rpl_fwrite if the latter is defined.
3971
3972 2011-03-20  Bruno Haible  <bruno@clisp.org>
3973
3974         verror: Fix compilation error introduced on 2011-02-13.
3975         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
3976         instead of __attribute__.
3977         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3978
3979 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3980             Bruno Haible  <bruno@clisp.org>
3981
3982         socklen: do not depend on sys_socket
3983         While trying to modify Emacs to use gnulib's socklen module,
3984         I discovered a circular dependency: socklen depends on sys_socket
3985         and vice versa.  Emacs can use socklen, but it does not need
3986         sys_socket because it has its own substitute for sys/socket.h.
3987         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
3988         gl_TYPE_SOCKLEN_T.
3989         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
3990         gl_PREREQ_SYS_H_SOCKET.
3991         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
3992         gl_PREREQ_SYS_H_SOCKET.
3993         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
3994         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
3995         * modules/socklen (Depends-on): Do not depend on sys_socket.
3996         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
3997
3998 2011-03-20  Jim Meyering  <meyering@redhat.com>
3999
4000         maint.mk: sort file names *after* new transformation
4001         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4002         prefix would have led to an unwarranted failure in GNU parted.
4003         Sort after that transformation.
4004
4005 2011-03-19  Jim Meyering  <meyering@redhat.com>
4006
4007         maint.mk: fix po-file syntax-check rule
4008         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4009         Patch by Bruno Haible.
4010
4011 2011-03-19  Bruno Haible  <bruno@clisp.org>
4012
4013         socklen: Update comment.
4014         * m4/socklen.m4: Update comment about platforms.
4015
4016 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4017             Bruno Haible  <bruno@clisp.org>
4018
4019         inet_ntop, inet_pton: Simplify.
4020         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4021         documented to provide socklen_t and we already depend on sys_socket.
4022         * modules/inet_pton (Depends-on): Likewise.
4023         * lib/arpa_inet.in.h: Adjust comment.
4024
4025 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4026             Bruno Haible  <bruno@clisp.org>
4027
4028         netdb: Simplify.
4029         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4030         documented to provide socklen_t and we already depend on sys_socket.
4031         * lib/netdb.in.h: Adjust comment.
4032
4033 2011-03-19  Bruno Haible  <bruno@clisp.org>
4034
4035         sys_socket, netdb: Document problem with socklen_t.
4036         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4037         platforms.
4038         * doc/posix-headers/netdb.texi: Likewise.
4039
4040 2011-03-18  Eric Blake  <eblake@redhat.com>
4041
4042         maint.mk: let po check work in VPATH build
4043         * top/maint.mk (po_file): Allow cfg.mk override.
4044         (sc_po_check): Allow VPATH use.
4045         Reported by Jiri Denemark.
4046
4047 2011-03-16  Jim Meyering  <meyering@redhat.com>
4048
4049         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4050         Before, you would have had to create one .x-sc_ file per rule in order
4051         to exempt offending files.  Now, you may instead use a Make variable --
4052         usually defined in cfg.mk -- whose name identifies the affected rule.
4053         * top/maint.mk (_sc_excl): Define.
4054         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4055         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4056
4057 2011-03-13  Bruno Haible  <bruno@clisp.org>
4058
4059         ignore-value tests: Avoid warnings.
4060         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4061         empty for gcc < 3.4.
4062
4063 2011-03-13  Bruno Haible  <bruno@clisp.org>
4064
4065         passfd: Fix link error on Solaris.
4066         * modules/passfd (Description): Correct.
4067         (Depends-on): Add socketlib.
4068         (Link): New section.
4069         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4070
4071 2011-03-13  Bruno Haible  <bruno@clisp.org>
4072
4073         passfd: Fix link error on AIX 5.2.
4074         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4075
4076 2011-03-13  Bruno Haible  <bruno@clisp.org>
4077
4078         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4079         * lib/sys_socket.in.h: Include <stddef.h>.
4080         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4081         CMSG_FIRSTHDR. Remove unused variable.
4082
4083 2011-03-13  Bruno Haible  <bruno@clisp.org>
4084
4085         passfd: Fix compilation error on OpenBSD.
4086         * lib/passfd.c: Include <sys/uio.h>.
4087
4088 2011-03-13  Bruno Haible  <bruno@clisp.org>
4089
4090         passfd test: Fix warnings.
4091         * tests/test-passfd.c: Include <sys/wait.h>.
4092         (main): Fix typo.
4093
4094 2011-03-13  Bruno Haible  <bruno@clisp.org>
4095
4096         passfd module, part 4, tweaks.
4097         * tests/test-passfd.c: Reorder includes.
4098         (main): Fix perror and printf calls.
4099
4100 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4101
4102         passfd module, part 4.
4103         * modules/passfd-tests: New file.
4104         * tests/test-passfd.c: New file.
4105
4106 2011-03-13  Jim Meyering  <meyering@redhat.com>
4107
4108         Makefile: rely on GNU make; derive syntax-check rule names
4109         Rather than requiring that each sc_ rule be listed as a dependent
4110         of "check", use features of GNU make to derive the list.
4111         * Makefile (syntax-check-rules): Define.
4112         (check): Depend on the new variable, not the hard-coded list.
4113
4114 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4115             Bruno Haible  <bruno@clisp.org>
4116
4117         passfd module, part 3.
4118         * lib/passfd.h (recvfd): Add a flags argument.
4119         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4120         (recvfd): Add a flags argument.
4121         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4122         exists.
4123         * modules/passfd (Depends-on): Add cloexec.
4124         Suggested by Eric Blake.
4125
4126 2011-03-13  Bruno Haible  <bruno@clisp.org>
4127
4128         passfd module, part 2, tweaks.
4129         * modules/passfd (Files): Reorder.
4130         (Depends-on): Remove errno.
4131         (Include): Remove <sys/socket.h>, <sys/un.h>.
4132         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4133         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4134         specification header. Include <sys/socket.h> always. Don't include
4135         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4136         (sendfd): Clarify that it sets errno when it fails.
4137         (recvfd): Fix specification.
4138
4139 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4140
4141         passfd module, part 2.
4142         * modules/passfd: New file.
4143         * lib/passfd.h: New file.
4144         * lib/passfd.c: New file.
4145
4146 2011-03-12  Bruno Haible  <bruno@clisp.org>
4147
4148         wcswidth, mbswidth: Avoid integer overflow.
4149         * lib/wcswidth.c: Include <limits.h>.
4150         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4151         * lib/mbswidth.c: Include <limits.h>.
4152         (mbsnwidth): Avoid 'int' overflow.
4153         Reported by Jim Meyering.
4154
4155 2011-03-12  Bruno Haible  <bruno@clisp.org>
4156
4157         futimens, utimensat: Avoid endless recursion on Solaris 10.
4158         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4159         Solaris.
4160         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4161         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4162
4163 2011-03-11  Jim Meyering  <meyering@redhat.com>
4164
4165         maint.mk: relax a regexp to accommodate other formatting styles
4166         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4167         between "ngettext" and the following "(".
4168
4169 2011-03-11  Pádraig Brady <P@draigBrady.com>
4170
4171         maint.mk: suppress a false positive warning
4172         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4173         diagnostics are marked with ngettext.
4174
4175 2011-03-10  Eric Blake  <eblake@redhat.com>
4176
4177         wchar: add explicit dependencies, for Tru64
4178         * modules/mbmemcasecoll (Depends-on): Add wchar.
4179         * modules/mbtowc (Depends-on): Likewise.
4180         * modules/vasnprintf (Depends-on): Likewise.
4181         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4182         * modules/wctomb (Depends-on): Likewise.
4183         Reported by Peter O'Gorman.
4184
4185 2011-03-08  Bruno Haible  <bruno@clisp.org>
4186
4187         passfd module, part 1, tweaks.
4188         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4189         Improve indentation. Improve AC_MSG_CHECKING messages.
4190         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4191         gl_SOCKET_FAMILIES.
4192
4193 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4194
4195         passfd module, part 1.
4196         * m4/afunix.m4: New file.
4197         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4198         sockets.
4199
4200 2011-03-08  Bruno Haible  <bruno@clisp.org>
4201
4202         regex-quote: New API.
4203         * lib/regex-quote.h: Include <stdbool.h>.
4204         (struct regex_quote_spec): New type.
4205         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4206         New declarations.
4207         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4208         'const struct regex_quote_spec *' argument.
4209         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4210         (pcre_special): New constant.
4211         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4212         New functions.
4213         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4214         'const struct regex_quote_spec *' argument.
4215         * modules/regex-quote (Depends-on): Add stdbool.
4216         * tests/test-regex-quote.c (check): Update for new API. Add test for
4217         anchored results.
4218         * NEWS: Mention the API change.
4219         Reported by Reuben Thomas and Eric Blake.
4220
4221 2011-03-06  Bruno Haible  <bruno@clisp.org>
4222
4223         regex-quote: Fix creation of POSIX extended regular expressions.
4224         * lib/regex-quote.c (ere_special): Add grouping and alternation
4225         operators.
4226
4227 2011-03-05  Bruno Haible  <bruno@clisp.org>
4228
4229         doc: Improve doc regarding autopoint vs. gnulib.
4230         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4231         disable autopoint while running autoreconf.
4232         Suggested by Ralf Wildenhues.
4233
4234 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4235
4236         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4237         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4238
4239 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4240
4241         parse-duration: remove xalloc.h dependency
4242         * lib/parse-duration.c (parse_period): handle NULL return from
4243         strdup instead of calling xstrdup().
4244         * modules/parse-duration: remove "xalloc" dependency
4245
4246 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4247
4248         bootstrap: honor m4_base when running aclocal
4249         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4250
4251 2011-03-02  Jim Meyering  <meyering@redhat.com>
4252
4253         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4254         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4255         on request from Matt Booth.
4256
4257 2011-03-01  Eric Blake  <eblake@redhat.com>
4258
4259         test-link: work on Hurd
4260         * tests/test-link.h (test_link): Hurd rejects linking directories
4261         with EISDIR instead of the POSIX-mandated EPERM.
4262
4263 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4264
4265         stdio: simplify by moving files to printf-posix, sigpipe
4266         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4267         since this symbol is needed only if printf is replaced.
4268         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4269         Require gl_ASM_SYMBOL_PREFIX.
4270         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4271         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4272         (Depends-on): Add 'raise'.
4273         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4274         * modules/stdio (Files): Remove lib/stdio-write.c,
4275         m4/asm-underscore.m4.
4276         (Depends-on): Remove 'raise'.
4277
4278         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4279         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4280         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4281         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4282
4283 2011-02-28  Bruno Haible  <bruno@clisp.org>
4284
4285         localcharset: Assume ANSI C behaviour of free().
4286         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4287         calling free().
4288         Suggested by Simon Josefsson <simon@josefsson.org>.
4289
4290 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4291             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4292             Bruno Haible  <bruno@clisp.org>  (tiny change)
4293
4294         On Cygwin, use /proc file system instead of win32 API.
4295         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4296         Win32 file names.
4297         (DllMain): Simplify by removing Cygwin specific code.
4298         (find_shared_library_fullname): Use Linux specific implementation also
4299         for Cygwin.
4300         (get_shared_library_fullname): Update accordingly.
4301         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4302         Win32 file names.
4303         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4304         Cygwin specific code.
4305
4306 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4307             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4308
4309         Fix OpenMP flag detection for various Fortran compilers.
4310         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4311         OpenMP-conditional compilation construct, to force compile
4312         failure with missing OpenMP flag.
4313         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4314
4315 2011-02-25  Eric Blake  <eblake@redhat.com>
4316
4317         strstr: expand test coverage
4318         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4319         compilation.
4320         * tests/test-memmem.c (main): Duplicate tests.
4321         * tests/test-strcasestr.c (main): Likewise.
4322         * tests/test-c-strcasestr.c (main): Likewise.
4323
4324 2011-02-25  Jim Meyering  <meyering@redhat.com>
4325
4326         maint.mk: detect missing-NL-at-EOF, too
4327         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4328         it also detects when a file lacks a newline at EOF.
4329         (require_exactly_one_NL_at_EOF_): Renamed from
4330         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4331         since people may well have .x-sc_... file names tied to the
4332         existing name.  Suggested by Eric Blake.
4333
4334 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4335
4336         dirname: move m4/dos.m4 functionality into lib/dosname.h
4337
4338         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4339         extracts symbols from it, puts them into config.h; but it's much
4340         easier to use the symbols directly.  filename.h already does this,
4341         but it disagrees with dos.m4 in some respects.  This patch
4342         introduces a different include file dosname.h that packages up
4343         dos.m4, and then later we can work on merging filename.h and
4344         dosname.h.  Applications that need only the easy-to-configure
4345         symbols should consider including dosname.h rather than dirname.h.
4346         * NEWS: Mention incompatible changes.
4347         * m4/dos.m4: Remove.
4348         * lib/dosname.h, modules/dosname: New files.
4349         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4350         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4351         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4352         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4353         Include dosname.h, not dirname.h.
4354         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4355         Include dosname.h, for definitions of symbols like ISSLASH
4356         that used to be in config.h.
4357         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4358         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4359         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4360         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4361         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4362         * modules/rmdir (Files): Likewise.
4363         * modules/stat (Files): Likewise.
4364         * modules/unlink (Files): Likewise.
4365         * modules/dirname-lgpl (Depends-on): Add dosname.
4366         * modules/lstat (Depends-on): Likewise.
4367         * modules/openat (Depends-on): Likewise.
4368         * modules/rmdir (Depends-on): Likewise.
4369         * modules/savewd (Depends-on): Likewise.
4370         * modules/stat (Depends-on): Likewise.
4371         * modules/unlink (Depends-on): Likewise.
4372         * modules/openat (Depends-on): Remove dirname-lgpl.
4373         * modules/savewd (Depends-on): Likewise.
4374         * tests/test-dirname.c: Do not use removed symbols like
4375         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4376         the remaining symbols, e.g., ISSLASH ('\\').
4377
4378 2011-02-25  Eric Blake  <eblake@redhat.com>
4379
4380         strstr: revert patches that introduced bug and pessimization
4381         * lib/str-two-way.h: Add another reference.
4382         (two_way_short_needle, two_way_long_needle): Revert changes from
4383         2011-02-24; they pessimize search speed.
4384         (critical_factorization): Partially revert changes from
4385         2010-06-22; they violate the requirement that the left half of the
4386         needle be smaller than the period of the needle.
4387
4388 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4389
4390         filenamecat: remove unnecessary dependency on dirname-lgpl
4391         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4392         is no direct dependency, just an indirect one via filenamecat-lgpl.
4393
4394         remove: remove unnecessary use of m4/dos.m4
4395         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4396         * modules/remove (FILES): Remove m4/dos.m4.
4397
4398         * lib/openat-proc.c: Don't include dirname.h; not needed.
4399
4400         backupfile: remove unnecessary use of m4/dos.m4
4401         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4402         of its symbols are used by the backupfile code.  backupfile.c does
4403         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4404         for the rare case of programs that want all their backup file
4405         names to live within 8+3 limits, and dos.m4 doesn't address that.
4406         * modules/backupfile (Files): Remove m4/dos.m4.
4407
4408 2011-02-24  Jim Meyering  <meyering@redhat.com>
4409
4410         strstr: fix a bug whereby strstr would mistakenly return NULL
4411         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4412         in period calculation.
4413         (two_way_long_needle): Likewise.
4414         The original problem was reported by Mike Stump in
4415         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4416         Ralf Wildenhues provided the short needle and haystack.
4417         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4418         Add a more involved test to trigger the bug in two_way_long_needle.
4419
4420 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4421
4422         gnulib-tool: remove use of bold display in help screen
4423         * gnulib-tool (func_usage): Do not use bold display anymore in the
4424         help screen.  That was just meant to be a temporary emphasis for a
4425         backward-incompatible change.
4426
4427 2011-02-23  Bruno Haible  <bruno@clisp.org>
4428
4429         Fix misindentation of preprocessor directives.
4430         * lib/argp-namefrob.h: Reindent preprocessor directives.
4431         * lib/getopt_int.h (struct _getopt_data): Likewise.
4432         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4433         * lib/vasnprintf.c (decode_long_double): Likewise.
4434         * tests/test-argmatch.c: Insert blank lines, for clarity.
4435         * tests/test-exclude.c: Likewise.
4436
4437 2011-02-22  Bruno Haible  <bruno@clisp.org>
4438
4439         ioctl: Fix for MacOS X in 64-bit mode.
4440         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4441         value.
4442         Suggested by Eric Blake.
4443         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4444
4445 2011-02-22  Jim Meyering  <meyering@redhat.com>
4446
4447         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4448         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4449         in lib/.
4450
4451 2011-02-22  Eric Blake  <eblake@redhat.com>
4452
4453         maint: avoid any CDPATH issue
4454         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4455
4456         maint: adjust cpp indentation for my modules, as well
4457         * Makefile (sc_cpp_indent_check): Add my name.
4458         * lib/fbufmode.c: Filter through cppi.
4459         * lib/fpurge.c: Likewise.
4460         * lib/freadable.c: Likewise.
4461         * lib/freading.c: Likewise.
4462         * lib/fwritable.c: Likewise.
4463         * lib/fwriting.c: Likewise.
4464         * lib/sigaction.c: Likewise.
4465
4466 2011-02-22  Jim Meyering  <meyering@redhat.com>
4467
4468         maint: adjust cpp indentation to reflect nesting depth
4469         I.e., in a block of code that begins with an unnested "#if",
4470         put one space between the "#" in column 1 and following token.
4471         For example,
4472         -#include <sys/vfs.h>
4473         +# include <sys/vfs.h>
4474         Do this only in .c files that are part of a module I maintain.
4475         * lib/linkat.c: Filter through cppi.
4476         * lib/nanosleep.c: Likewise.
4477         * lib/openat.c: Likewise.
4478         * lib/openat-die.c: Likewise.
4479         * lib/dup3.c: Likewise.
4480         * lib/fchownat.c: Likewise.
4481         * lib/flock.c: Likewise.
4482         * lib/fsync.c: Likewise.
4483         * lib/fts.c: Likewise.
4484         * lib/getpass.c: Likewise.
4485         * lib/gettimeofday.c: Likewise.
4486         * lib/userspec.c: Likewise.
4487         * Makefile (sc_cpp_indent_check): New rule, to check this.
4488
4489 2011-02-22  Bruno Haible  <bruno@clisp.org>
4490
4491         New module 'wctomb'.
4492         * lib/stdlib.in.h (wctomb): New declaration.
4493         * lib/wctomb.c: New file.
4494         * lib/wctomb-impl.h: New file.
4495         * m4/wctomb.m4: New file.
4496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4497         REPLACE_WCTOMB.
4498         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4499         REPLACE_WCTOMB.
4500         * modules/wctomb: New file.
4501         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4502         * doc/posix-functions/wctomb.texi: Mention the new module.
4503         * modules/wctob (Depends-on): Add wctomb.
4504
4505 2011-02-22  Bruno Haible  <bruno@clisp.org>
4506
4507         New module 'mbtowc'.
4508         * lib/stdlib.in.h (mbtowc): New declaration.
4509         * lib/mbtowc.c: New file.
4510         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4511         * m4/mbtowc.m4: New file.
4512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4513         REPLACE_MBTOWC.
4514         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4515         REPLACE_MBTOWC.
4516         * modules/mbtowc: New file.
4517         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4518         * doc/posix-functions/mbtowc.texi: Mention the new module.
4519         * modules/btowc (Depends-on): Add mbtowc.
4520
4521 2011-02-22  Bruno Haible  <bruno@clisp.org>
4522
4523         wcrtomb: Add more tests for native Windows platforms.
4524         * tests/test-wcrtomb-w32-1.sh: New file.
4525         * tests/test-wcrtomb-w32-2.sh: New file.
4526         * tests/test-wcrtomb-w32-3.sh: New file.
4527         * tests/test-wcrtomb-w32-4.sh: New file.
4528         * tests/test-wcrtomb-w32-5.sh: New file.
4529         * tests/test-wcrtomb-w32.c: New file.
4530         * modules/wcrtomb-tests (Files): Add them.
4531         (Makefile.am): Arrange to run these tests.
4532         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
4533         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
4534
4535 2011-02-20  Bruno Haible  <bruno@clisp.org>
4536
4537         wcrtomb: Enhance test.
4538         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
4539
4540 2011-02-20  Bruno Haible  <bruno@clisp.org>
4541
4542         mbrtowc: Tiny optimization.
4543         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
4544
4545 2011-02-20  Jim Meyering  <meyering@redhat.com>
4546
4547         test-exclude.c: remove unmatched #endif
4548         * tests/test-exclude.c: Remove stray #endif, left over from
4549         the change of a week ago.
4550
4551 2011-02-19  Jim Meyering  <meyering@redhat.com>
4552
4553         git-version-gen: skip "-dirty" check when appropriate
4554         * build-aux/git-version-gen: Don't run any git commands when the
4555         version string comes from .tarball-version.  Prior to this, we
4556         would run git update-index --refresh even from a just-unpacked
4557         tarball directory, and that could affect a .git/ directory in a
4558         parent of the build directory.  Reported by Mike Frysinger.
4559
4560 2011-02-19  Bruno Haible  <bruno@clisp.org>
4561
4562         unictype/property-byname: Reduce the size of the 'data' segment.
4563         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
4564
4565 2011-02-19  Bruno Haible  <bruno@clisp.org>
4566
4567         unictype/scripts: Reduce the size of the 'data' segment.
4568         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
4569         '%pic'.
4570         * lib/unictype/scripts_byname.gperf: Regenerated.
4571
4572 2011-02-19  Bruno Haible  <bruno@clisp.org>
4573
4574         stdint: Update documentation.
4575         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
4576
4577 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4578
4579         stdint: omit redundant check for wchar.h
4580         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
4581         always tests whether wchar.h exists, so remove the now-redundant test.
4582
4583 2011-02-18  Bruno Haible  <bruno@clisp.org>
4584
4585         stdint: Cut dependency to module 'wchar'.
4586         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
4587         include the necessary prerequisites.
4588         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
4589         * modules/stdint (Depends-on): Remove wchar.
4590         (Makefile.am): Substitute HAVE_WCHAR_H.
4591         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
4592
4593 2011-02-18  Eric Blake  <eblake@redhat.com>
4594
4595         longlong: skip, rather than fail, on cross-compilation
4596         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
4597         when cross-compiling; regression from 2011-02-16.
4598
4599 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4600
4601         * NEWS: Mention 2011-02-08 change to stdlib.
4602
4603 2011-02-17  Bruno Haible  <bruno@clisp.org>
4604
4605         getloadavg: Add comments about platforms.
4606         * m4/getloadavg.m4: Add comment.
4607         * lib/getloadavg.c: Likewise.
4608
4609 2011-02-17  Bruno Haible  <bruno@clisp.org>
4610
4611         getloadavg: Fix link error on Solaris 2.6.
4612         * modules/getloadavg (Link): New section.
4613         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
4614         linking test-getloadavg.
4615         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
4616         getloadavg.
4617
4618 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4619
4620         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
4621         It was 'int', but this doesn't match the IRIX 6.5 manual.
4622         Suggested by Bruno Haible in
4623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
4624
4625 2011-02-17  Bruno Haible  <bruno@clisp.org>
4626
4627         havelib: Fix comments.
4628         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
4629         change.
4630
4631 2011-02-17  Bruno Haible  <bruno@clisp.org>
4632
4633         havelib: Update config.rpath.
4634         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
4635
4636 2011-02-17  Bruno Haible  <bruno@clisp.org>
4637
4638         getloadavg test: Add some plausibility checks.
4639         * tests/test-getloadavg.c (check_avg): Print a warning when the value
4640         is improbable.
4641
4642 2011-02-16  Eric Blake  <eblake@redhat.com>
4643
4644         maintainer-makefile: make syntax-check a no-op from tarballs
4645         * top/maint.mk (no-vc-detected): New rule.
4646         (local-checks-available): Use it to avoid hanging if someone tries
4647         'make syntax-check' from a tarball.  Also append to any non-syntax
4648         checks already defined in cfg.mk.
4649
4650 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4651
4652         longlong: tune, particularly for common case of c99
4653
4654         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
4655         or running anything if c99, or if unsigned long long int does not
4656         work.  In either case, we know the answer without further tests.
4657         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
4658         it at most once, and use its results for both long long int and
4659         unsigned long long int.  This is more likely to be efficient in
4660         the common case where the program wants to check for both long
4661         long int and unsigned long long int.
4662         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
4663         since the answer is already known.
4664
4665 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4666
4667         getloadavg: set errno
4668         * lib/getloadavg.c: Set errno when returning -1.  If no other
4669         error number looks appropriate, set it to ENOSYS if the getloadavg
4670         looks like it can't possibly ever work, ENOTSUP otherwise.
4671         Suggested by Bruno Haible in
4672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
4673
4674         getloadavg: trim unused parts and speed up 'configure'
4675         * NEWS: Document this.
4676         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
4677         always compiled if getloadavg is absent.
4678         Move test code to ...
4679         * tests/test-getloadavg.c: New file, containing previous
4680         contents of test from lib/getloadavg.c.  It also contains
4681         suggestions by Bruno Haible in
4682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
4683         * modules/getloadavg-tests: New file.
4684         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
4685         Do tests in the same order as they're needed for getloadavg.c.
4686         Omit setgid-related tests that generate symbols KMEM_GROUP,
4687         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
4688         Do only the tests that are needed to see whether the system has
4689         getloadavg, moving the other tests into ...
4690         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4691         NLIST_NAME_UNION; nobody should be using it.  Do not define
4692         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4693         relevant, as the user of this module shouldn't care how getloadavg
4694         is implemented.
4695
4696         getloadavg: omit unused var
4697         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4698
4699 2011-02-15  Jim Meyering  <meyering@redhat.com>
4700
4701         doc: update users.txt
4702         * users.txt: Update iwhd's URL.
4703
4704 2011-02-13  Bruno Haible  <bruno@clisp.org>
4705
4706         Consistent macro naming for macros that use GCC __attribute__.
4707         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4708         _ATTRIBUTE_NONNULL_.
4709         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4710         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4711         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4712         ATTRIBUTE_DEPRECATED.
4713         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4714         ATTRIBUTE_NORETURN.
4715         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4716         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4717         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4718         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4719         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4720         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4721         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4722         ATTRIBUTE_SENTINEL.
4723         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4724         ATTRIBUTE_RETURN_CHECK.
4725         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4726         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4727         ATTRIBUTE_NORETURN.
4728         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4729         Reported by Paul Eggert.
4730
4731 2011-02-13  Bruno Haible  <bruno@clisp.org>
4732
4733         Don't interfere with a program's definition of __attribute__.
4734         * lib/argp.h (__attribute__): Remove definition.
4735         (_GL_ATTRIBUTE_FORMAT): New macro.
4736         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4737         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4738         (_GL_ATTRIBUTE_FORMAT): New macro.
4739         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4740         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4741         GCC 3 or newer.
4742         * lib/error.h (__attribute__): Remove definition.
4743         (_GL_ATTRIBUTE_FORMAT): New macro.
4744         (error, error_at_line): Use it.
4745         * lib/hash.h (__attribute__): Remove definition.
4746         (ATTRIBUTE_WUR): Update definition. Define always.
4747         * lib/openat.h (__attribute__): Remove definition.
4748         (ATTRIBUTE_NORETURN): Update definition. Define always.
4749         * lib/sigpipe-die.h (__attribute__): Remove definition.
4750         (ATTRIBUTE_NORETURN): Update definition. Define always.
4751         * lib/vasnprintf.h (__attribute__): Remove definition.
4752         (_GL_ATTRIBUTE_FORMAT): New macro.
4753         (asnprintf, vasnprintf): Use it.
4754         * lib/xalloc.h (__attribute__): Remove definition.
4755         (ATTRIBUTE_NORETURN): Update definition. Define always.
4756         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4757         * lib/xmemdup0.h (__attribute__): Remove definition.
4758         (ATTRIBUTE_NORETURN): Update definition. Define always.
4759         * lib/xprintf.h (__attribute__): Remove definition.
4760         (_GL_ATTRIBUTE_FORMAT): New macro.
4761         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4762         * lib/xstrtol.h (__attribute__): Remove definition.
4763         (ATTRIBUTE_NORETURN): Update definition. Define always.
4764         * lib/xvasprintf.h (__attribute__): Remove definition.
4765         (_GL_ATTRIBUTE_FORMAT): New macro.
4766         (xasprintf, xvasprintf): Use it.
4767         * tests/test-argmatch.c (__attribute__): Remove definition.
4768         (ATTRIBUTE_NORETURN): Update definition. Define always.
4769         * tests/test-exclude.c (__attribute__): Remove definition.
4770         (ATTRIBUTE_NORETURN): Update definition. Define always.
4771         Reported by Paul Eggert.
4772
4773 2011-02-13  Bruno Haible  <bruno@clisp.org>
4774
4775         mbrtowc: Add more tests for native Windows platforms.
4776         * tests/test-mbrtowc-w32-1.sh: New file.
4777         * tests/test-mbrtowc-w32-2.sh: New file.
4778         * tests/test-mbrtowc-w32-3.sh: New file.
4779         * tests/test-mbrtowc-w32-4.sh: New file.
4780         * tests/test-mbrtowc-w32-5.sh: New file.
4781         * tests/test-mbrtowc-w32.c: New file.
4782         * modules/mbrtowc-tests (Files): Add them.
4783         (Makefile.am): Arrange to run these tests.
4784         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4785         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4786
4787 2011-02-13  Bruno Haible  <bruno@clisp.org>
4788
4789         mbrtowc: Work around native Windows bug.
4790         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4791         guess when no suitable locale for testing was found.
4792         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
4793
4794 2011-02-13  Bruno Haible  <bruno@clisp.org>
4795
4796         mbsinit: Work around mingw bug.
4797         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
4798         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
4799         Windows.
4800         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
4801
4802 2011-02-13  Bruno Haible  <bruno@clisp.org>
4803
4804         mbsinit: Don't crash for a NULL argument.
4805         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
4806         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
4807
4808 2011-02-13  Bruno Haible  <bruno@clisp.org>
4809
4810         Don't interfere with a program's definition of __attribute__.
4811         * lib/stdio.in.h (__attribute__): Remove definition.
4812         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
4813         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
4814         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
4815         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
4816         * lib/string.in.h (__attribute__): Remove definition.
4817         Reported by Paul Eggert.
4818
4819 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4820
4821         stdlib: don't get in the way of non-GCC __attribute__
4822         See thread starting at
4823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
4824         Revert previous stdlib change, installing the following instead:
4825         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
4826         to get in the way of a non-GCC compiler that supports __attribute__.
4827         (_GL_ATTRIBUTE_RETURN): New macro.
4828         (_Exit): Use it instead of __attribute__.
4829
4830 2011-02-12  Bruno Haible  <bruno@clisp.org>
4831
4832         quotearg test: Avoid test failure on mingw.
4833         * tests/test-quotearg.sh: Convert the locale identifier from native
4834         Windows syntax to Unix syntax.
4835
4836 2011-02-12  Bruno Haible  <bruno@clisp.org>
4837
4838         setlocale: Prefer gnulib's override over libintl's override.
4839         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
4840         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
4841         GNULIB_defined_setlocale is set.
4842
4843 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4844
4845         stdlib: support non-GCC __attribute__
4846
4847         Fix a serious and tricky problem encountered when attempting to
4848         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
4849         5.5, but it crashed due to memory corruption on Solaris 10 with
4850         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
4851         bits that are otherwise zero.  This tagging is optional inside
4852         Emacs but is preferred and is used when __attribute__ ((__aligned
4853         (8))) works, as it does with both recent-enough GCC and with Sun C
4854         5.11.  However, Sun C 5.11 is not GCC and does not #define
4855         __GNUC__ and __GNUC_MINOR__.
4856
4857         When I added the getloadavg module to Emacs, it brought in
4858         stdlib.in.h, which contained this fragment:
4859
4860            #ifndef __attribute__
4861            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
4862            #  define __attribute__(Spec)   /* empty */
4863            # endif
4864            #endif
4865
4866         When files that include <stdlib.h> were compiled with Sun C 5.11,
4867         the above code disabled __attribute__ ((__aligned (8))), which
4868         caused variables to not be properly aligned, which eventually led
4869         to the pointer corruption mentioned above.  (This was a bit hard
4870         to diagnose, unfortunately.)
4871
4872         Several "#define __attribute__(X) /* empty */" code snippets need
4873         to be eradicated from Gnulib to work with non-GCC compilers that
4874         support __attribute__.  The Autoconf way to do this is to test for
4875         each kind of attribute that we want support for, and selectively
4876         enable that in source code.
4877
4878         Fix this problem just for stdlib.h, by adding a test for the
4879         __noreturn__ attribute, and change stdlib.in.h to use that test
4880         when needed.  This technique can be easily generalized to the
4881         other *.in.h files and attributes, and a similar technique can be
4882         used for *.h and *.c files.  This patch is enough to solve the
4883         problem for Emacs + getloadavg, and I thought I'd publish it for
4884         feedback before undertaking further, similar fixes in other
4885         modules.
4886
4887         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
4888         because it's not needed for stdlib.h.  It merely substitutes the
4889         value directly into stdlib.h.  We may well need to #define it, or
4890         similar symbols, for other modules, but it's nice to also have an
4891         option to not #define it for applications like Emacs that do not
4892         need it.
4893
4894         * lib/stdlib.in.h (__attribute__): Do not #define.
4895         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
4896         be defined only if the _Exit module is also used.
4897         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
4898         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
4899         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
4900         platforms.
4901         * modules/_Exit (Files): Add m4/attribute.m4.
4902         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
4903         * m4/attribute.m4: New file.
4904
4905 2011-02-12  Bruno Haible  <bruno@clisp.org>
4906
4907         wcsrtombs: Work around bug on native Windows.
4908         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
4909         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
4910         instead of len.
4911         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
4912
4913 2011-02-12  Bruno Haible  <bruno@clisp.org>
4914
4915         mbsrtowcs: Work around bug on native Windows.
4916         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
4917         against mingw bug.
4918         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
4919
4920 2011-02-12  Bruno Haible  <bruno@clisp.org>
4921
4922         Avoid setlocale bugs in tests.
4923         * modules/btowc (Dependencies): Add setlocale.
4924         * modules/c-strcase (Dependencies): Likewise.
4925         * modules/mbmemcasecmp (Dependencies): Likewise.
4926         * modules/mbmemcasecoll (Dependencies): Likewise.
4927         * modules/mbrtowc (Dependencies): Likewise.
4928         * modules/mbscasecmp (Dependencies): Likewise.
4929         * modules/mbscasestr (Dependencies): Likewise.
4930         * modules/mbschr (Dependencies): Likewise.
4931         * modules/mbscspn (Dependencies): Likewise.
4932         * modules/mbsinit (Dependencies): Likewise.
4933         * modules/mbsncasecmp (Dependencies): Likewise.
4934         * modules/mbsnrtowcs (Dependencies): Likewise.
4935         * modules/mbspbrk (Dependencies): Likewise.
4936         * modules/mbspcasecmp (Dependencies): Likewise.
4937         * modules/mbsrchr (Dependencies): Likewise.
4938         * modules/mbsrtowcs (Dependencies): Likewise.
4939         * modules/mbsspn (Dependencies): Likewise.
4940         * modules/mbsstr (Dependencies): Likewise.
4941         * modules/nl_langinfo (Dependencies): Likewise.
4942         * modules/quotearg (Dependencies): Likewise.
4943         * modules/unicase/locale-language (Dependencies): Likewise.
4944         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
4945         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
4946         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
4947         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
4948         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
4949         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
4950         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
4951         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
4952         * modules/vasnprintf-posix (Dependencies): Likewise.
4953         * modules/wcrtomb (Dependencies): Likewise.
4954         * modules/wcsnrtombs (Dependencies): Likewise.
4955         * modules/wcsrtombs (Dependencies): Likewise.
4956
4957 2011-02-12  Bruno Haible  <bruno@clisp.org>
4958
4959         setlocale: Workaround native Windows bug.
4960         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
4961         succeeds but sets LC_CTYPE to "C", report a failure.
4962         * tests/test-setlocale2.sh: New file.
4963         * tests/test-setlocale2.c: New file.
4964         * modules/setlocale-tests (Files): Add the new files.
4965         (Makefile.am): Enable test-setlocale2.sh test.
4966         * doc/posix-functions/setlocale.texi: Mention workaround.
4967
4968 2011-02-11  Bruno Haible  <bruno@clisp.org>
4969
4970         Tests for module 'setlocale'.
4971         * modules/setlocale-tests: New file.
4972         * tests/test-setlocale1.sh: New file.
4973         * tests/test-setlocale1.c: New file.
4974
4975         New module 'setlocale'.
4976         * lib/locale.in.h (setlocale): New declaration.
4977         * lib/setlocale.c: New file, based on
4978         gettext/gettext-runtime/intl/setlocale.c.
4979         * m4/setlocale.m4: New file.
4980         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
4981         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
4982         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
4983         REPLACE_SETLOCALE.
4984         * modules/setlocale: New file.
4985         * tests/test-locale-c++.cc: Test the declaration of setlocale.
4986         * doc/posix-functions/setlocale.texi: Mention the new module.
4987
4988 2011-02-11  Bruno Haible  <bruno@clisp.org>
4989
4990         Prepare for locale dependent tests on mingw.
4991         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
4992         because it has the wrong locale encoding.
4993         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
4994         French_France.1252 instead of "fr".
4995         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
4996         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
4997         because it has the wrong locale encoding.
4998         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
4999         native Windows, try Turkish_Turkey.65001.
5000         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5001         Chinese_China.54936.
5002
5003         Prepare for locale dependent tests on mingw.
5004         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5005         differently.
5006         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5007         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5008         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5009         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5010
5011 2011-02-11  Eric Blake  <eblake@redhat.com>
5012
5013         strptime: avoid compiler warnings
5014         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5015         compiler warnings about dead code.
5016         Reported by Daniel P. Berrange.
5017
5018 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5019
5020         doc: update users.txt
5021         * users.txt: Add rcs.
5022
5023 2011-02-10  John W. Eaton  <jwe@gnu.org>
5024
5025         doc: update users.txt
5026         * users.txt: Add octave.
5027
5028 2011-02-10  Jim Meyering  <meyering@redhat.com>
5029
5030         doc: update users.txt
5031         * users.txt: Add iwhd.
5032
5033 2011-02-09  Bruno Haible  <bruno@clisp.org>
5034
5035         gnulib-tool: Make copyright notice adjustment more robust.
5036         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5037         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5038         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5039         License".
5040         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5041
5042 2011-02-06  Bruno Haible  <bruno@clisp.org>
5043
5044         New module 'towctrans'.
5045         * modules/towctrans: New file.
5046         * lib/wctype.in.h (towctrans): New declaration.
5047         * lib/towctrans.c: New file.
5048         * lib/towctrans-impl.h: New file.
5049         * m4/towctrans.m4: New file.
5050         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5051         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5052         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5053         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5054         * doc/posix-functions/towctrans.texi: Mention the new module.
5055
5056 2011-02-06  Bruno Haible  <bruno@clisp.org>
5057
5058         New module 'wctrans'.
5059         * modules/wctrans: New file.
5060         * lib/wctype.in.h (wctrans): New declaration.
5061         * lib/wctrans.c: New file.
5062         * lib/wctrans-impl.h: New file.
5063         * m4/wctrans.m4: New file.
5064         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5065         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5066         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5067         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5068         * doc/posix-functions/wctrans.texi: Mention the new module.
5069
5070 2011-02-06  Bruno Haible  <bruno@clisp.org>
5071
5072         New module 'iswctype'.
5073         * modules/iswctype: New file.
5074         * lib/wctype.in.h (iswctype): New declaration.
5075         * lib/iswctype.c: New file.
5076         * lib/iswctype-impl.h: New file.
5077         * m4/iswctype.m4: New file.
5078         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5079         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5080         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5081         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5082         * doc/posix-functions/iswctype.texi: Mention the new module and the
5083         HP-UX 11.00 problem.
5084
5085 2011-02-06  Bruno Haible  <bruno@clisp.org>
5086
5087         New module 'wctype'.
5088         * modules/wctype: Change to represent the wctype() substitute.
5089         * lib/wctype.in.h (wctype): New declaration.
5090         * lib/wctype.c: New file.
5091         * lib/wctype-impl.h: New file.
5092         * m4/wctype.m4: New file.
5093         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5094         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5095         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5096         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5097         * doc/posix-functions/wctype.texi: Mention the new module and the
5098         HP-UX 11.00 problem.
5099
5100 2011-02-06  Bruno Haible  <bruno@clisp.org>
5101
5102         wctype-h: Ensure wctype_t and wctrans_t are defined.
5103         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5104         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5105         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5106         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5107         HAVE_WCTRANS_T.
5108         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5109
5110 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5111
5112         flock: fix license typo
5113
5114         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5115         omitted.
5116
5117 2011-02-08  Bruno Haible  <bruno@clisp.org>
5118
5119         Split large sed scripts, for HP-UX sed.
5120         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5121         to avoid HP-UX limit of 99 commands, in the near future.
5122         * modules/stdlib (Makefile.am): Likewise.
5123         * modules/unistd (Makefile.am): Likewise.
5124         * modules/wchar (Makefile.am): Likewise.
5125         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5126         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5127         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5128
5129 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5130             Bruno Haible  <bruno@clisp.org>
5131
5132         stdlib: improve random_r modularization
5133         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5134         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5135         you also need the random_r module to get this material right.
5136         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5137         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5138         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5139
5140 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5141
5142         stdlib: don't depend on stdint
5143         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5144         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5145         be independent of whether stdint.h is needed.
5146         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5147         here, instead of ...
5148         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5149         struct random_data should be using the random_r module, not just
5150         the stdlib module (which wouldn't make sense: what package needs
5151         just struct random_data without also needing random_r?).
5152         * modules/stdlib (Depends-on): Remove stdint.
5153
5154         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5155         See the thread rooted at
5156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5157         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5158         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5159         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5160         __VMS)); previously it was always included (via fcntl--.h).
5161         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5162         hand; this is good enough for load averages.  Also, do not use
5163         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5164         flags directly if available and don't bother otherwise.  (Packages
5165         that need the extra reliability should use the modules that define
5166         these flags on older platforms that lack them.)
5167         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5168         fcntl-safer.
5169
5170 2011-02-08  Jim Meyering  <meyering@redhat.com>
5171
5172         di-set.h, ino-map.h: add multiple-inclusion guard
5173         Technically, the guard is required only for ino-map.h, due to its
5174         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5175         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5176         * lib/ino-map.h: Likewise.
5177
5178 2011-02-06  Bruno Haible  <bruno@clisp.org>
5179
5180         iswblank: Ensure declaration on glibc systems.
5181         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5182         * modules/iswblank (Dependencies): Add 'extensions'.
5183         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5184
5185 2011-02-06  Bruno Haible  <bruno@clisp.org>
5186
5187         New module 'iswblank'.
5188         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5189         * modules/iswblank: New file.
5190         * modules/wctype-h (Files): Remove lib/iswblank.c.
5191         (Makefile.am): Substitute GNULIB_ISWBLANK.
5192         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5193         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5194         (gl_WCTYPE_H_DEFAULTS): New macro.
5195         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5196         * modules/iswblank-tests: New file.
5197         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5198         * tests/test-wctype-h.c (main): Remove iswblank tests.
5199         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5200         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5201         of 'wctype-h'.
5202         * NEWS: Mention the change.
5203         * modules/mbchar (Depends-on): Add iswblank.
5204
5205 2011-02-08  Bruno Haible  <bruno@clisp.org>
5206
5207         di-set tests: Refactor.
5208         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5209         unnecessary includes.
5210         (ASSERT): Remove macro.
5211         (main): Make C90 compliant by avoiding variable declaration after
5212         statement.
5213         * modules/di-set-tests (Files): Add tests/macros.h.
5214
5215 2011-02-08  Bruno Haible  <bruno@clisp.org>
5216
5217         ino-map tests: Refactor.
5218         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5219         unnecessary includes.
5220         (ASSERT): Remove macro.
5221         (main): Make C90 compliant by avoiding variable declaration after
5222         statement.
5223         * modules/ino-map-tests (Files): Add tests/macros.h.
5224
5225 2011-02-08  Jim Meyering  <meyering@redhat.com>
5226
5227         di-set: add "const" to a cast
5228         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5229         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5230
5231 2011-02-06  Bruno Haible  <bruno@clisp.org>
5232
5233         Rename module 'wctype' to 'wctype-h'.
5234         * modules/wctype-h: Renamed from modules/wctype.
5235         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5236         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5237         (Files, Depends-on, Makefile.am): Update.
5238         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5239         (Files, Makefile.am): Update.
5240         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5241         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5242         * doc/posix-headers/wctype.texi: Update.
5243         * doc/posix-functions/iswalnum.texi: Update.
5244         * doc/posix-functions/iswalpha.texi: Update.
5245         * doc/posix-functions/iswblank.texi: Update.
5246         * doc/posix-functions/iswcntrl.texi: Update.
5247         * doc/posix-functions/iswdigit.texi: Update.
5248         * doc/posix-functions/iswgraph.texi: Update.
5249         * doc/posix-functions/iswlower.texi: Update.
5250         * doc/posix-functions/iswprint.texi: Update.
5251         * doc/posix-functions/iswpunct.texi: Update.
5252         * doc/posix-functions/iswspace.texi: Update.
5253         * doc/posix-functions/iswupper.texi: Update.
5254         * doc/posix-functions/iswxdigit.texi: Update.
5255         * doc/posix-functions/towlower.texi: Update.
5256         * doc/posix-functions/towupper.texi: Update.
5257         * NEWS: Mention the change.
5258         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5259         * modules/mbchar (Dependencies): Likewise.
5260         * modules/mbswidth (Dependencies): Likewise.
5261         * modules/quotearg (Dependencies): Likewise.
5262         * modules/regex (Dependencies): Likewise.
5263         * modules/wcscasecmp (Dependencies): Likewise.
5264         * modules/wcsncasecmp (Dependencies): Likewise.
5265         * modules/wcwidth (Dependencies): Likewise.
5266
5267 2011-02-06  Bruno Haible  <bruno@clisp.org>
5268
5269         New module 'wcswidth'.
5270         * modules/wcswidth: New file.
5271         * lib/wchar.in.h (wcswidth): New declaration.
5272         * lib/wcswidth.c: New file.
5273         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5274         * m4/wcswidth.m4: New file.
5275         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5276         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5277         REPLACE_WCSWIDTH.
5278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5279         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5280         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5281         * doc/posix-functions/wcswidth.texi: Mention the new module.
5282
5283 2011-02-06  Bruno Haible  <bruno@clisp.org>
5284
5285         New module 'wcstok'.
5286         * modules/wcstok: New file.
5287         * lib/wchar.in.h (wcstok): New declaration.
5288         * lib/wcstok.c: New file.
5289         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5290         * m4/wcstok.m4: New file.
5291         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5292         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5293         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5294         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5295         * doc/posix-functions/wcstok.texi: Mention the new module.
5296
5297 2011-02-06  Bruno Haible  <bruno@clisp.org>
5298
5299         New module 'wcsstr'.
5300         * modules/wcsstr: New file.
5301         * lib/wchar.in.h (wcsstr): New declaration.
5302         * lib/wcsstr.c: New file.
5303         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5304         * m4/wcsstr.m4: New file.
5305         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5306         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5307         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5308         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5309         * doc/posix-functions/wcsstr.texi: Mention the new module.
5310
5311 2011-02-06  Bruno Haible  <bruno@clisp.org>
5312
5313         New module 'wcspbrk'.
5314         * modules/wcspbrk: New file.
5315         * lib/wchar.in.h (wcspbrk): New declaration.
5316         * lib/wcspbrk.c: New file.
5317         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5318         * m4/wcspbrk.m4: New file.
5319         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5320         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5321         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5322         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5323         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5324
5325 2011-02-06  Bruno Haible  <bruno@clisp.org>
5326
5327         New module 'wcsspn'.
5328         * modules/wcsspn: New file.
5329         * lib/wchar.in.h (wcsspn): New declaration.
5330         * lib/wcsspn.c: New file.
5331         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5332         * m4/wcsspn.m4: New file.
5333         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5334         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5335         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5336         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5337         * doc/posix-functions/wcsspn.texi: Mention the new module.
5338
5339 2011-02-06  Bruno Haible  <bruno@clisp.org>
5340
5341         New module 'wcscspn'.
5342         * modules/wcscspn: New file.
5343         * lib/wchar.in.h (wcscspn): New declaration.
5344         * lib/wcscspn.c: New file.
5345         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5346         * m4/wcscspn.m4: New file.
5347         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5348         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5349         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5350         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5351         * doc/posix-functions/wcscspn.texi: Mention the new module.
5352
5353 2011-02-06  Bruno Haible  <bruno@clisp.org>
5354
5355         New module 'wcsrchr'.
5356         * modules/wcsrchr: New file.
5357         * lib/wchar.in.h (wcsrchr): New declaration.
5358         * lib/wcsrchr.c: New file.
5359         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5360         * m4/wcsrchr.m4: New file.
5361         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5362         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5363         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5364         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5365         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5366
5367 2011-02-06  Bruno Haible  <bruno@clisp.org>
5368
5369         New module 'wcschr'.
5370         * modules/wcschr: New file.
5371         * lib/wchar.in.h (wcschr): New declaration.
5372         * lib/wcschr.c: New file.
5373         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5374         * m4/wcschr.m4: New file.
5375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5377         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5378         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5379         * doc/posix-functions/wcschr.texi: Mention the new module.
5380
5381 2011-02-06  Bruno Haible  <bruno@clisp.org>
5382
5383         New module 'wcsdup'.
5384         * modules/wcsdup: New file.
5385         * lib/wchar.in.h (wcsdup): New declaration.
5386         * lib/wcsdup.c: New file.
5387         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5388         * m4/wcsdup.m4: New file.
5389         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5390         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5391         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5392         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5393         * doc/posix-functions/wcsdup.texi: Mention the new module.
5394
5395 2011-02-06  Bruno Haible  <bruno@clisp.org>
5396
5397         New module 'wcsxfrm'.
5398         * modules/wcsxfrm: New file.
5399         * lib/wchar.in.h (wcsxfrm): New declaration.
5400         * lib/wcsxfrm.c: New file.
5401         * lib/wcsxfrm-impl.h: New file.
5402         * m4/wcsxfrm.m4: New file.
5403         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5404         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5405         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5406         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5407         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5408
5409 2011-02-06  Bruno Haible  <bruno@clisp.org>
5410
5411         New module 'wcscoll'.
5412         * modules/wcscoll: New file.
5413         * lib/wchar.in.h (wcscoll): New declaration.
5414         * lib/wcscoll.c: New file.
5415         * lib/wcscoll-impl.h: New file.
5416         * m4/wcscoll.m4: New file.
5417         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5418         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5420         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5421         * doc/posix-functions/wcscoll.texi: Mention the new module.
5422
5423 2011-02-06  Bruno Haible  <bruno@clisp.org>
5424
5425         New module 'wcsncasecmp'.
5426         * modules/wcsncasecmp: New file.
5427         * lib/wchar.in.h (wcsncasecmp): New declaration.
5428         * lib/wcsncasecmp.c: New file.
5429         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5430         * m4/wcsncasecmp.m4: New file.
5431         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5432         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5433         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5434         HAVE_WCSNCASECMP.
5435         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5436         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5437
5438 2011-02-06  Bruno Haible  <bruno@clisp.org>
5439
5440         New module 'wcscasecmp'.
5441         * modules/wcscasecmp: New file.
5442         * lib/wchar.in.h (wcscasecmp): New declaration.
5443         * lib/wcscasecmp.c: New file.
5444         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5445         * m4/wcscasecmp.m4: New file.
5446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5449         HAVE_WCSCASECMP.
5450         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5451         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5452
5453 2011-02-05  Bruno Haible  <bruno@clisp.org>
5454
5455         New module 'wcsncmp'.
5456         * modules/wcsncmp: New file.
5457         * lib/wchar.in.h (wcsncmp): New declaration.
5458         * lib/wcsncmp.c: New file.
5459         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5460         * m4/wcsncmp.m4: New file.
5461         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5462         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5463         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5464         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5465         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5466
5467 2011-02-05  Bruno Haible  <bruno@clisp.org>
5468
5469         New module 'wcscmp'.
5470         * modules/wcscmp: New file.
5471         * lib/wchar.in.h (wcscmp): New declaration.
5472         * lib/wcscmp.c: New file.
5473         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5474         * m4/wcscmp.m4: New file.
5475         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5476         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5477         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5478         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5479         * doc/posix-functions/wcscmp.texi: Mention the new module.
5480
5481 2011-02-05  Bruno Haible  <bruno@clisp.org>
5482
5483         New module 'wcsncat'.
5484         * modules/wcsncat: New file.
5485         * lib/wchar.in.h (wcsncat): New declaration.
5486         * lib/wcsncat.c: New file.
5487         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5488         * m4/wcsncat.m4: New file.
5489         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5490         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5491         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5492         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5493         * doc/posix-functions/wcsncat.texi: Mention the new module.
5494
5495 2011-02-05  Bruno Haible  <bruno@clisp.org>
5496
5497         New module 'wcscat'.
5498         * modules/wcscat: New file.
5499         * lib/wchar.in.h (wcscat): New declaration.
5500         * lib/wcscat.c: New file.
5501         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5502         * m4/wcscat.m4: New file.
5503         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5504         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5505         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5506         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5507         * doc/posix-functions/wcscat.texi: Mention the new module.
5508
5509 2011-02-05  Bruno Haible  <bruno@clisp.org>
5510
5511         New module 'wcpncpy'.
5512         * modules/wcpncpy: New file.
5513         * lib/wchar.in.h (wcpncpy): New declaration.
5514         * lib/wcpncpy.c: New file.
5515         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5516         * m4/wcpncpy.m4: New file.
5517         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5518         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5519         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
5520         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
5521         * doc/posix-functions/wcpncpy.texi: Mention the new module.
5522
5523 2011-02-05  Bruno Haible  <bruno@clisp.org>
5524
5525         New module 'wcsncpy'.
5526         * modules/wcsncpy: New file.
5527         * lib/wchar.in.h (wcsncpy): New declaration.
5528         * lib/wcsncpy.c: New file.
5529         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
5530         * m4/wcsncpy.m4: New file.
5531         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
5532         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
5533         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
5534         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
5535         * doc/posix-functions/wcsncpy.texi: Mention the new module.
5536
5537 2011-02-05  Bruno Haible  <bruno@clisp.org>
5538
5539         New module 'wcpcpy'.
5540         * modules/wcpcpy: New file.
5541         * lib/wchar.in.h (wcpcpy): New declaration.
5542         * lib/wcpcpy.c: New file.
5543         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
5544         * m4/wcpcpy.m4: New file.
5545         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
5546         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
5547         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
5548         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
5549         * doc/posix-functions/wcpcpy.texi: Mention the new module.
5550
5551 2011-02-05  Bruno Haible  <bruno@clisp.org>
5552
5553         New module 'wcscpy'.
5554         * modules/wcscpy: New file.
5555         * lib/wchar.in.h (wcscpy): New declaration.
5556         * lib/wcscpy.c: New file.
5557         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
5558         * m4/wcscpy.m4: New file.
5559         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
5560         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
5561         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
5562         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
5563         * doc/posix-functions/wcscpy.texi: Mention the new module.
5564
5565 2011-02-05  Bruno Haible  <bruno@clisp.org>
5566
5567         New module 'wcsnlen'.
5568         * modules/wcsnlen: New file.
5569         * lib/wchar.in.h (wcsnlen): New declaration.
5570         * lib/wcsnlen.c: New file.
5571         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
5572         * m4/wcsnlen.m4: New file.
5573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
5574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
5575         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
5576         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5577         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5578
5579 2011-02-05  Bruno Haible  <bruno@clisp.org>
5580
5581         New module 'wcslen'.
5582         * modules/wcslen: New file.
5583         * lib/wchar.in.h (wcslen): New declaration.
5584         * lib/wcslen.c: New file.
5585         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
5586         * m4/wcslen.m4: New file.
5587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
5588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
5589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
5590         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
5591         * doc/posix-functions/wcslen.texi: Mention the new module.
5592
5593 2011-02-05  Bruno Haible  <bruno@clisp.org>
5594
5595         New module 'wmemset'.
5596         * modules/wmemset: New file.
5597         * lib/wchar.in.h (wmemset): New declaration.
5598         * lib/wmemset.c: New file.
5599         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
5600         * m4/wmemset.m4: New file.
5601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
5602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
5603         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
5604         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
5605         * doc/posix-functions/wmemset.texi: Mention the new module.
5606
5607 2011-02-05  Bruno Haible  <bruno@clisp.org>
5608
5609         New module 'wmemmove'.
5610         * modules/wmemmove: New file.
5611         * lib/wchar.in.h (wmemmove): New declaration.
5612         * lib/wmemmove.c: New file.
5613         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
5614         * m4/wmemmove.m4: New file.
5615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
5616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
5617         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
5618         HAVE_WMEMMOVE.
5619         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
5620         * doc/posix-functions/wmemmove.texi: Mention the new module.
5621
5622 2011-02-05  Bruno Haible  <bruno@clisp.org>
5623
5624         New module 'wmemcpy'.
5625         * modules/wmemcpy: New file.
5626         * lib/wchar.in.h (wmemcpy): New declaration.
5627         * lib/wmemcpy.c: New file.
5628         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
5629         * m4/wmemcpy.m4: New file.
5630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
5631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
5632         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
5633         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
5634         * doc/posix-functions/wmemcpy.texi: Mention the new module.
5635
5636 2011-02-05  Bruno Haible  <bruno@clisp.org>
5637
5638         New module 'wmemcmp'.
5639         * modules/wmemcmp: New file.
5640         * lib/wchar.in.h (wmemcmp): New declaration.
5641         * lib/wmemcmp.c: New file.
5642         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
5643         * m4/wmemcmp.m4: New file.
5644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
5645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
5646         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
5647         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
5648         * doc/posix-functions/wmemcmp.texi: Mention the new module.
5649
5650 2011-02-07  Jim Meyering  <meyering@redhat.com>
5651
5652         di-set, ino-map: new modules, from coreutils
5653         * lib/di-set.c: New file.
5654         * lib/di-set.h: Likewise.
5655         * lib/ino-map.c: Likewise.
5656         * lib/ino-map.h: Likewise.
5657         * modules/di-set: Likewise.
5658         * modules/di-set-tests: Likewise.
5659         * modules/ino-map: Likewise.
5660         * modules/ino-map-tests: Likewise.
5661         * tests/test-di-set.c: Likewise.
5662         * tests/test-ino-map.c: Likewise.
5663
5664 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5665
5666         getloadavg: merge minor changes from Emacs
5667
5668         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
5669         (getloadavg): Use memset, not bzero.
5670
5671         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
5672         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5673         clash (bug#86).
5674
5675 2010-11-14  Bruno Haible  <bruno@clisp.org>
5676
5677         Allow multiple gnulib generated replacements to coexist.
5678         * lib/getopt.in.h (struct option): Avoid identical redefinition.
5679         * lib/inttypes.in.h (imaxdiv_t): Likewise.
5680         * lib/langinfo.in.h (nl_item): Likewise.
5681         * lib/math.in.h (_NaN, NAN): Likewise.
5682         * lib/netdb.in.h (struct addrinfo): Likewise.
5683         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
5684         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
5685         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
5686         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
5687         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
5688         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
5689         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5690         pthread_mutexattr_init, pthread_mutexattr_settype,
5691         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5692         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5693         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5694         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5695         * lib/sched.in.h (struct sched_param): Likewise.
5696         * lib/se-selinux.in.h (security_class_t, security_context_t,
5697         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5698         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5699         lsetfilecon, fsetfilecon, security_check_context,
5700         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5701         Likewise.
5702         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5703         Likewise.
5704         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5705         _gl_function_taking_int_returning_void_t, union sigval,
5706         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5707         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5708         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5709         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5710         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5711         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5712         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5713         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5714         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5715         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5716         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5717         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5718         socklen_t, rpl_fd_isset): Likewise.
5719         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5720         * lib/sys_time.in.h (struct timeval): Likewise.
5721         * lib/sys_times.in.h (struct tms): Likewise.
5722         * lib/sys_utsname.in.h (struct utsname):
5723         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5724         * lib/unistd.in.h (getpagesize): Likewise.
5725         * lib/wchar.in.h (mbstate_t): Likewise.
5726         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5727         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5728         towlower, towupper): Likewise.
5729         Reported by Sam Steingold <sds@gnu.org>.
5730
5731 2011-02-05  Eric Blake  <eblake@redhat.com>
5732
5733         unsetenv: work around Haiku issues
5734         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5735         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5736
5737 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5738
5739         libposix: avoid calling error() within libposix
5740         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5741         is defined.
5742
5743 2011-02-05  Eric Blake  <eblake@redhat.com>
5744
5745         strerror_r-posix: port to cygwin
5746         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5747         implementation.
5748         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5749         * tests/test-strerror_r.c (main): Fix test.
5750         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5751         issue.
5752
5753 2011-02-05  Bruno Haible  <bruno@clisp.org>
5754
5755         New module 'wmemchr'.
5756         * modules/wmemchr: New file.
5757         * lib/wchar.in.h (wmemchr): New declaration.
5758         * lib/wmemchr.c: New file.
5759         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5760         * m4/wmemchr.m4: New file.
5761         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5762         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5763         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5764         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5765         * doc/posix-functions/wmemchr.texi: Mention the new module.
5766
5767 2011-02-04  Eric Blake  <eblake@redhat.com>
5768
5769         fdopendir: detect FreeBSD bug
5770         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5771         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5772
5773 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5774
5775         stdbool: do not define HAVE_STDBOOL_H
5776         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5777         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5778         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5779         imported from the latest Autoconf git.  It was motivated by Emacs,
5780         which uses gnulib but does not need HAVE_STDBOOL_H.
5781
5782 2011-02-04  Bruno Haible  <bruno@clisp.org>
5783
5784         wcsnrtombs: Prepare for new module wwcsnrtombs.
5785         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5786         * lib/wcsnrtombs.c: Include it.
5787         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5788
5789         wcsrtombs: Prepare for new module wwcsrtombs.
5790         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5791         * lib/wcsrtombs.c: Include it.
5792         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
5793
5794         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
5795         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
5796         * lib/mbsnrtowcs.c: Include it.
5797         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
5798
5799         mbsrtowcs: Prepare for new module mbsrtowwcs.
5800         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5801         * lib/mbsrtowcs.c: Include it.
5802         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
5803
5804 2011-02-04  Bruno Haible  <bruno@clisp.org>
5805
5806         vasnprintf: Reduce use of malloc for small format strings.
5807         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
5808         (arguments): Add room for the first 7 arguments.
5809         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
5810         (char_directives, u8_directives, u16_directives, u32_directives): Add
5811         room for the first 7 directives.
5812         * lib/printf-parse.c: Include <string.h>.
5813         (PRINTF_PARSE): Change memory handling code so that it uses the first
5814         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
5815         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
5816         Reported by Pádraig Brady <P@draigbrady.com>.
5817
5818 2011-01-31  Eric Blake  <eblake@redhat.com>
5819
5820         dup2: work around Haiku bug
5821         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
5822         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
5823         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5824         * tests/test-dup2.c (main): Enhance test.
5825
5826 2011-01-31  Simon Josefsson  <simon@josefsson.org>
5827
5828         doc: off_t is not available in eglibc 2.11.2 stdio.h.
5829         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
5830         declared by eglibc 2.11.2.
5831         * lib/stdio.in.h: Likewise.
5832
5833 2011-01-31  Eric Blake  <eblake@redhat.com>
5834
5835         ignore-value: add missing test dependency
5836         * tests/test-ignore-value.c: Revert previous change; stdio.h
5837         provides off_t.
5838         * modules/ignore-value-tests (Depends-on): Add missing dependency.
5839
5840 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5841
5842         mktime: clarify long_int width checking
5843         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
5844         the top level, to make it clearer that the assumption about
5845         long_int width is being checked.  See
5846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
5847
5848 2011-01-30  Simon Josefsson  <simon@josefsson.org>
5849
5850         ignore-value: Fix self-test.
5851         * tests/test-ignore-value.c: Include sys/types.h for off_t.
5852
5853 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5854
5855         TYPE_MAXIMUM: avoid theoretically undefined behavior
5856         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
5857         negative number, which the C Standard says has undefined behavior.
5858         In practice this is not a problem, but might as well do it by the book.
5859         Reported by Rich Felker and Eric Blake; see
5860         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
5861         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
5862         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5863         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5864         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
5865         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5866         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
5867
5868         mktime: #undef mktime before #defining it
5869         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
5870
5871         mktime: systematically normalize tm_isdst comparisons
5872         * lib/mktime.c (isdst_differ): New function.
5873         (__mktime_internal): Use it systematically for all isdst comparisons.
5874         This completes the fix for libc BZ #6723, and removes the need for
5875         normalizing tm_isdst.  See
5876         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
5877         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
5878
5879         mktime: fix some integer overflow issues and sidestep the rest
5880
5881         This was prompted by a bug report by Benjamin Lindner for MinGW
5882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
5883         His bug is due to signed integer overflow (0 - INT_MIN), and I
5884         I scanned through mktime.c looking for other integer overflow
5885         problems, fixing all the bugs I found.
5886
5887         Although the C Standard says the resulting code is still not safe
5888         in the presence of integer overflow, in practice it should be good
5889         enough for all real-world two's-complement implementations, except
5890         for debugging environments that deliberately trap on integer
5891         overflow (e.g., gcc -ftrapv).
5892
5893         * lib/mktime.c (WRAPV): New macro.
5894         (SHR): Also check that long_int and time_t shift right in the
5895         usual way, before using the fast-but-unportable method.
5896         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
5897         used.  The code already assumed two's complement, so there's
5898         no need to test for alternatives.  All uses removed.
5899         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
5900         the C standard.  Problem reported by Rich Felker in
5901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
5902         (twos_complement_arithmetic): Also check long_int and time_t.
5903         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
5904         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
5905         (__mktime_internal): Avoid integer overflow with unary subtraction
5906         in two instances where -1 - X is an adequate replacement for -X,
5907         since the calculations are approximate.
5908
5909 2011-01-29  Eric Blake  <eblake@redhat.com>
5910
5911         mktime: avoid infinite loop
5912         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
5913         type; behavior is still undefined but portable to all known targets.
5914         Reported by Rich Felker.
5915
5916 2011-01-29  Simon Josefsson  <simon@josefsson.org>
5917
5918         rename, unlink, same-inode: Relicense.
5919         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
5920         * modules/unlink (License): Likewise.
5921         * modules/same-inode (License): Likewise.
5922
5923 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5924
5925         mktime: avoid problems on NetBSD 5 / i386
5926         * lib/mktime.c (long_int): New type.  This works around a problem
5927         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
5928         but time_t is 64 bits, and where I expect the existing code is
5929         wrong in some cases.
5930         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
5931         (ydhms_diff): Bring back the compile-time check for wide-enough
5932         year and yday.
5933
5934         mktime: fix misspelling in comment
5935         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
5936         This merges all recent glibc changes of importance.
5937
5938 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5939
5940         move-if-change: cope with concurrent mv of identical file.
5941         * build-aux/move-if-change (CMPPROG): Accept environment
5942         variable as an override for `cmp'.
5943         (usage): Document CMPPROG.
5944         Adjust comparison to drop stdout.  Cope with failure of mv if
5945         the target file exists and is identical to the source, for
5946         parallel builds.
5947         Report from H.J. Lu against binutils in PR binutils/12283.
5948
5949 2011-01-28  Bruce Korb  <bkorb@gnu.org>
5950
5951         * users.txt: Mention sharutils.
5952
5953 2011-01-28  Simon Josefsson  <simon@josefsson.org>
5954
5955         * users.txt: Mention OATH Toolkit.
5956
5957 2011-01-27  Bruno Haible  <bruno@clisp.org>
5958
5959         Prepare for supporting FreeBSD 10.
5960         * build-aux/config.libpath: Remove handling of freebsd1*.
5961
5962 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
5963
5964         Prepare for supporting FreeBSD 10.
5965         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
5966         match FreeBSD 10.0.
5967
5968 2011-01-27  Bruno Haible  <bruno@clisp.org>
5969
5970         vma-iter, get-rusage-as: Add OpenBSD support.
5971         * modules/vma-iter (configure.ac): Test for mquery.
5972         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
5973         * lib/vma-iter.c: Include <sys/mman.h>.
5974         (vma_iterate): Add an implementation based on mquery().
5975         * lib/resource-ext.h (get_rusage_as): Update comments.
5976         * lib/get-rusage-as.c: Likewise.
5977         * lib/get-rusage-data.c: Likewise.
5978
5979 2011-01-26  Karl Berry  <karl@gnu.org>
5980
5981         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
5982         variables to make it easier to override the makeinfo program used.
5983
5984 2011-01-26  Eric Blake  <eblake@redhat.com>
5985
5986         fcntl: work around Haiku F_DUPFD bugs
5987         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
5988         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
5989         cloexec bit on duplication.
5990         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
5991
5992 2011-01-26  Bruno Haible  <bruno@clisp.org>
5993
5994         Enable memory leak tests on AIX.
5995         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
5996         * tests/test-fprintf-posix3.c (main): Likewise.
5997
5998 2011-01-26  Bruno Haible  <bruno@clisp.org>
5999
6000         Tests for module 'get-rusage-data'.
6001         * modules/get-rusage-data-tests: New file.
6002         * tests/test-get-rusage-data.c: New file.
6003
6004         New module 'get-rusage-data'.
6005         * lib/resource-ext.h (get_rusage_data): New declaration.
6006         * lib/get-rusage-data.c: New file.
6007         * modules/get-rusage-data: New file.
6008
6009 2011-01-25  Bruno Haible  <bruno@clisp.org>
6010
6011         get-rusage-as: Allow for easier testing.
6012         * lib/resource-ext.h (get_rusage_as): Add comment.
6013         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6014         (main): New function for interactive testing.
6015
6016 2011-01-25  Bruno Haible  <bruno@clisp.org>
6017
6018         vma-iter: Treat Haiku like BeOS.
6019         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6020         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6021
6022 2011-01-25  Eric Blake  <eblake@redhat.com>
6023
6024         c-stack: fix regression on cygwin when libsigsegv is present
6025         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6026
6027 2011-01-24  Bruno Haible  <bruno@clisp.org>
6028
6029         vma-iter: Avoid empty intervals.
6030         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6031         on an empty interval.
6032
6033 2011-01-24  Jim Meyering  <meyering@redhat.com>
6034
6035         u64: remove unnecessary #include
6036         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6037
6038 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6039
6040         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6041         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6042
6043 2011-01-23  Bruno Haible  <bruno@clisp.org>
6044
6045         New module 'vma-iter'.
6046         * lib/vma-iter.h: New file.
6047         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6048         * modules/vma-iter: New file.
6049         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6050         for get_rusage_as_via_iterator.
6051         (vma_iterate_callback): New function.
6052         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6053         * modules/get-rusage-as (Depends-on): Add vma-iter.
6054
6055 2011-01-23  Bruno Haible  <bruno@clisp.org>
6056
6057         uninorm: Tweak includes.
6058         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6059         Reported by Jim Meyering.
6060
6061 2011-01-23  Bruno Haible  <bruno@clisp.org>
6062
6063         get-rusage-as: Improve on NetBSD.
6064         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6065         /proc, like on FreeBSD.
6066
6067 2011-01-23  Jim Meyering  <meyering@redhat.com>
6068
6069         xreadlink.h: remove unnecessary #include
6070         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6071
6072         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6073         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6074
6075 2011-01-23  Bruno Haible  <bruno@clisp.org>
6076
6077         get-rusage-as: Fix bug.
6078         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6079         original limit when aborting the first loop.
6080
6081 2011-01-23  Bruno Haible  <bruno@clisp.org>
6082
6083         wctype: Ensure valid C syntax.
6084         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6085         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6086
6087 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6088
6089         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6091         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6092         as they are needed only for configure's test case.
6093         This removes two unnecessary symbols from config.h.
6094
6095         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6096         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6097         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6098         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6099         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6100         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6101         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6102         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6103         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6104         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6105         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6106         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6107         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6108         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6109         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6110         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6111         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6112         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6113
6114 2011-01-21  Eric Blake  <eblake@redhat.com>
6115
6116         maintainer-makefile: work with older git for submodule check
6117         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6118         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6119         Reported by Matthias Bolte.
6120
6121         bootstrap: minor portability fixes
6122         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6123         (usage): Omit leading capital and trailing . on help phrases, per
6124         GNU Coding Standards.
6125         (check_versions, top level): Prefix messages with script name.
6126
6127 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6128
6129         bootstrap: support --no-git option
6130         * build-aux/bootstrap: Add --no-git option, to be used when
6131         --gnulib-srcdir points to the exact desired checkout.
6132
6133 2011-01-21  Eric Blake  <eblake@redhat.com>
6134
6135         strerror_r-posix: work with glibc 2.13
6136         * lib/strerror_r.c (strerror_r): Fix return type.
6137
6138 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6139             Bruno Haible  <bruno@clisp.org>
6140
6141         uN_strstr: New unit tests.
6142         * modules/unistr/u8-strstr-tests: New file.
6143         * modules/unistr/u16-strstr-tests: New file.
6144         * modules/unistr/u32-strstr-tests: New file.
6145         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6146         * tests/unistr/test-u8-strstr.c: New file.
6147         * tests/unistr/test-u16-strstr.c: New file.
6148         * tests/unistr/test-u32-strstr.c: New file.
6149
6150 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6151             Bruno Haible  <bruno@clisp.org>
6152
6153         Make uN_strstr functions O(n) worst-case.
6154         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6155         16-bit and 32-bit unit cases, use the unibyte algorithm from
6156         lib/mbsstr.c.
6157         * lib/unistr/u8-strstr.c: Include <string.h>.
6158         (UNIT_IS_UINT8_T): New macro.
6159         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6160         (U_STRLEN, U_STRNLEN): New macros.
6161         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6162         (U_STRLEN, U_STRNLEN): New macros.
6163         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6164         (configure.ac): Update required libunistring version.
6165         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6166         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6167         malloca.
6168         (configure.ac): Update required libunistring version.
6169         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6170         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6171         malloca.
6172         (configure.ac): Update required libunistring version.
6173
6174 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6175             Bruno Haible  <bruno@clisp.org>
6176
6177         Prepare for faster uN_strstr functions.
6178         * lib/str-kmp.h: Support definable UNITs.
6179         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6180         needle_len argument.
6181         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6182         * lib/mbscasestr.c (mbscasestr): Likewise.
6183
6184 2011-01-21  Pádraig Brady <P@draigBrady.com>
6185
6186         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6187         * tests/test-malloca.c (main): Unset the environment variable
6188         to greatly speed up the test.
6189         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6190         * modules/malloca-tests: Depend on unsetenv.
6191
6192 2011-01-21  Pádraig Brady <P@draigBrady.com>
6193
6194         ignore-value: remove stdint dependency
6195         * lib/ignore-value.h: Remove <stdint.h>
6196         * modules/ignore-value: Remove stdint dependency.
6197
6198 2011-01-21  Jim Meyering  <meyering@redhat.com>
6199
6200         maint.mk: adjust variable name to be consistent with other gl_ vars
6201         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6202         to be lower case.
6203
6204 2011-01-20  Jim Meyering  <meyering@redhat.com>
6205
6206         maint.mk: make "check" depend on public-submodule-commit by default
6207         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6208
6209 2011-01-20  Bruno Haible  <bruno@clisp.org>
6210
6211         mbfile, mbiter: Complete change from 2008-12-21.
6212         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6213         * m4/mbiter.m4 (gl_MBITER): Likewise.
6214
6215 2011-01-20  Jim Meyering  <meyering@redhat.com>
6216
6217         init.sh: insert space between each function name and "()"
6218         * tests/init.sh: Make it a little easier to see that a function's
6219         name is "warn_", and not "warn" when looking at the first part of
6220         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6221
6222 2011-01-20  Jim Meyering  <meyering@redhat.com>
6223
6224         mountlist: clean up code formatting
6225         * lib/mountlist.c (read_file_system_list): Split a long line,
6226         correct bracing style, use NULL in place of "(struct statfs *)0",
6227         don't parenthesize return value, add spaces around "=" and after
6228         ";-in-for-stmt".
6229
6230 2011-01-14  Markus Duft <mduft@gentoo.org>
6231
6232         mountlist: add support for Interix
6233         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6234         Apply statvfs to all entries of /dev/fs.
6235         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6236         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6237
6238 2011-01-20  Jim Meyering  <meyering@redhat.com>
6239
6240         maint.mk: improve the public-submodule-commit rule
6241         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6242         to suppress printing of its commands... unless V=1.
6243         Add git submodule's --quiet option to suppress printing of e.g.,
6244         "Entering gnulib" output.
6245         "cd" into $(srcdir) before running git submodule.
6246
6247 2011-01-20  Bruno Haible  <bruno@clisp.org>
6248
6249         include_next: Fix bug introduced on 2011-01-18.
6250         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6251         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6252         ac_cv_header_... variable if the second argument is not 'check'.
6253         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6254         gl_NEXT_HEADERS_INTERNAL.
6255
6256 2011-01-20  Bruno Haible  <bruno@clisp.org>
6257
6258         Allow the user to avoid the GNULIB_TEST_* macros.
6259         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6260         Suggested by Paul Eggert.
6261
6262 2011-01-14  Jim Meyering  <meyering@redhat.com>
6263
6264         bootstrap: avoid failure when there is no .gitmodules file
6265         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6266         has been assigned to, even when its value is the empty string.
6267         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6268         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6269         Reported by John W. Eaton <jwe@gnu.org>.
6270
6271 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6272
6273         assume <ctype.h>, ..., <time.h> exist
6274         For years gnulib has been assuming the existence of the headers
6275         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6276         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6277         them, since they don't appear to be needed.
6278         * README (Portability guidelines): Document this.
6279         * lib/flock.c: Assume <fcntl.h> exists.
6280         * lib/regex_internal.h: Assume <locale.h> exists.
6281         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6282         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6283         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6284         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6285         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6286         * m4/regex.m4 (gl_REGEX): Likewise.
6287         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6288         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6289         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6290         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6291         * tests/test-argp.c: Likewise.
6292         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6293
6294         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6295         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6296         AA_APPLE_UNIVERSAL_BUILD.  See
6297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6298         * NEWS: Document this.
6299
6300 2011-01-19  Eric Blake  <eblake@redhat.com>
6301
6302         c-stack: assume stack overflow if SA_SIGINFO unsupported
6303         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6304         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6305         sigaction will work.
6306         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6307         behavior match Linux.
6308         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6309
6310         stdbool-tests: accomodate Haiku
6311         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6312
6313         binary-io: fix O_TEXT on Haiku
6314         * modules/binary-io (Depends-on): Add fcntl-h.
6315         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6316         than blindly undefining O_TEXT.
6317         Reported by Scott McCreary.
6318
6319 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6320
6321         include_next: do not check for standard headers like stddef.h
6322
6323         I found this problem when modifying Emacs to use gnulib.
6324         I noticed that it added HAVE_STDDEF_H to config.h, even though
6325         gnulib always assumes <stddef.h> exists as per README and this
6326         symbol is unnecessary.
6327         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6328         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6329         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6330         faster for headers like stddef.h that are known to exist.
6331         (gl_CHECK_NEXT_HEADERS): Use it.
6332         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6333         rather than gl_CHECK_NEXT_HEADERS.
6334         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6335         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6336
6337 2011-01-18  Eric Blake  <eblake@redhat.com>
6338
6339         ansi-c++-opt: skip C++ dependency style if C++ is unused
6340         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6341         tests when we know C++ compilation is not desired.
6342         Reported by Scott McCreary.
6343
6344 2011-01-18  Bruno Haible  <bruno@clisp.org>
6345
6346         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6347         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6348         (main): Perform test also when getrlimit and setrlimit don't exist or
6349         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6350         limiting the address space size using setrlimit, compare the address
6351         space size before and after the the test.
6352         * tests/test-dprintf-posix2.c: Likewise.
6353         * tests/test-fprintf-posix3.sh: Update skip messages.
6354         * tests/test-dprintf-posix2.sh: Likewise.
6355         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6356         * modules/dprintf-posix-tests (Depends-on): Likewise.
6357         Reported by Bruce Korb <bkorb@gnu.org> and
6358         Gary V. Vaughan <gary@gnu.org>.
6359
6360 2011-01-18  Bruno Haible  <bruno@clisp.org>
6361
6362         get-rusage-as: Improvement for Cygwin.
6363         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6364         areas that are merely reserved.
6365
6366 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6367
6368         strftime: remove dependencies on multibyte modules
6369
6370         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6371         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6372         only if __osf__ is defined, and I suspect OSF doesn't need these
6373         other modules.  If my guess is wrong, we'll need to come up with a
6374         variant of strftime that doesn't need the multibyte modules.
6375
6376         I discovered this problem when attempting modify Emacs to use the
6377         strftime module.  With the previous gnulib, this caused Emacs to
6378         need 31 new files, ranging from lib/config.charset to
6379         m4/wint_t.m4.  This was overkill and I expect would be offputting
6380         to the Emacs maintainers.  After this change, only 6 new files are
6381         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6382         stdbool.m4, and tm_gmtoff.m4.
6383
6384         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6385         Suggested by Bruno Haible in
6386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6387         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6388         and do not check for wchar.h.
6389         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6390         (Depends-on): Remove mbrlen, mbsinit, wchar.
6391
6392 2011-01-18  Bruno Haible  <bruno@clisp.org>
6393
6394         Tests for module 'get-rusage-as'.
6395         * modules/get-rusage-as-tests: New file.
6396         * tests/test-get-rusage-as.c: New file.
6397
6398         New module 'get-rusage-as'.
6399         * modules/get-rusage-as: New file.
6400         * lib/resource-ext.h: New file.
6401         * lib/get-rusage-as.c: New file.
6402
6403 2011-01-17  Eric Blake  <eblake@redhat.com>
6404
6405         sigaction: relax license from LGPLv3+ to LGPLv2+
6406         * modules/sigaction (License): Relax to LGPLv2+.
6407
6408 2011-01-14  Bruno Haible  <bruno@clisp.org>
6409
6410         filemode: Make function declarations usable in C++ mode.
6411         * lib/filemode.h: Enclose function declarations in extern "C" block.
6412         Reported by John W. Eaton <jwe@gnu.org>.
6413
6414 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6415
6416         save-cwd: no longer include "xgetcwd.h"
6417         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6418         This avoids a compilation failure in projects that use save-cwd
6419         without also using the xgetcwd module.
6420
6421 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6422
6423         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6424         This is so that a program like Emacs, which needs only dtoastr,
6425         does not have to bother with distributing and compiling ftoastr
6426         and ldtoastr.
6427         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6428         * modules/dtoastr, modules/ldtoastr: New files.
6429         * modules/ftoastr: Now works just for 'float'.
6430         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6431         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6432         dtoastr.c, ldtoastr.c.
6433
6434 2011-01-11  Jim Meyering  <meyering@redhat.com>
6435
6436         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6437         There is no need to work around the lack of the fchdir function,
6438         since gnulib can now provide a replacement when required.
6439         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6440         * modules/save-cwd (Depends-on): Add fchdir.
6441
6442 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6443
6444         openat, save-cwd: avoid xmalloc
6445
6446         This removes a direct (but undocumented) dependency of openat on
6447         xalloc, along with an indirect dependency via save-cwd.  It also
6448         removes a dependency of save-cwd on xgetcwd, and thereby
6449         indirectly on xalloc.  This change causes the openat substitute
6450         to fall back on save_cwd when memory is tight, and for save_cwd to
6451         fail instead of dying when memory is tight, but that's good enough.
6452         Problem and initial idea for fix reported by Bastien Roucaries in
6453         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6454
6455         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6456         xalloc.h (for xmalloc).
6457         (openat_proc_name): Use malloc, not xmalloc.
6458         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6459         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6460
6461         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6462         This avoids heap allocation for file names whose lengths are in
6463         the range 512..1023, with the upper bound increasing to at most
6464         4031 depending on the platform's PATH_MAX.  (We do not want
6465         pathmax.h here as it might supply a non-constant PATH_MAX.)
6466         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6467         Perhaps they should be moved to malloca.h?
6468         (OPENAT_BUFFER_SIZE): Use them.
6469
6470 2011-01-10  Bruno Haible  <bruno@clisp.org>
6471
6472         doc: Update users.txt.
6473         * users.txt: Add recutils.
6474
6475 2011-01-09  Karl Berry  <karl@gnu.org>
6476
6477         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6478
6479         * doc/configmake.texi: New file.
6480         * doc/gnulib.texi: Include it.
6481         * modules/configmake: Move documentation from here.
6482
6483 2011-01-09  Bruno Haible  <bruno@clisp.org>
6484
6485         Update to Unicode 6.0.0.
6486         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6487         (get_lbp): Update for Unicode 6.0.0.
6488         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6489         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6490         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6491         U+11001, U+11038..U+11046. Remove U+06DE.
6492         (uc_width): Fix bounds of planes.
6493         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6494         lib/uniwidth/width.c.
6495         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6496         trailing whitespace removed.
6497         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6498         without comments, but with the original copyright notice.
6499         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6500         * lib/unicase/ignorable.h: Likewise.
6501         * lib/unicase/tocasefold.h: Likewise.
6502         * lib/unicase/tolower.h: Likewise.
6503         * lib/unicase/totitle.h: Likewise.
6504         * lib/unicase/toupper.h: Likewise.
6505         * lib/unictype/bidi_of.h: Likewise.
6506         * lib/unictype/blocks.h: Likewise.
6507         * lib/unictype/categ_C.h: Likewise.
6508         * lib/unictype/categ_Cn.h: Likewise.
6509         * lib/unictype/categ_L.h: Likewise.
6510         * lib/unictype/categ_Ll.h: Likewise.
6511         * lib/unictype/categ_Lm.h: Likewise.
6512         * lib/unictype/categ_Lo.h: Likewise.
6513         * lib/unictype/categ_Lu.h: Likewise.
6514         * lib/unictype/categ_M.h: Likewise.
6515         * lib/unictype/categ_Mc.h: Likewise.
6516         * lib/unictype/categ_Me.h: Likewise.
6517         * lib/unictype/categ_Mn.h: Likewise.
6518         * lib/unictype/categ_N.h: Likewise.
6519         * lib/unictype/categ_Nd.h: Likewise.
6520         * lib/unictype/categ_No.h: Likewise.
6521         * lib/unictype/categ_P.h: Likewise.
6522         * lib/unictype/categ_Po.h: Likewise.
6523         * lib/unictype/categ_S.h: Likewise.
6524         * lib/unictype/categ_Sc.h: Likewise.
6525         * lib/unictype/categ_Sk.h: Likewise.
6526         * lib/unictype/categ_Sm.h: Likewise.
6527         * lib/unictype/categ_So.h: Likewise.
6528         * lib/unictype/categ_of.h: Likewise.
6529         * lib/unictype/combining.h: Likewise.
6530         * lib/unictype/ctype_alnum.h: Likewise.
6531         * lib/unictype/ctype_alpha.h: Likewise.
6532         * lib/unictype/ctype_graph.h: Likewise.
6533         * lib/unictype/ctype_lower.h: Likewise.
6534         * lib/unictype/ctype_print.h: Likewise.
6535         * lib/unictype/ctype_punct.h: Likewise.
6536         * lib/unictype/ctype_upper.h: Likewise.
6537         * lib/unictype/decdigit.h: Likewise.
6538         * lib/unictype/digit.h: Likewise.
6539         * lib/unictype/numeric.h: Likewise.
6540         * lib/unictype/pr_alphabetic.h: Likewise.
6541         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6542         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6543         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6544         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6545         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6546         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6547         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6548         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6549         * lib/unictype/pr_case_ignorable.h: Likewise.
6550         * lib/unictype/pr_cased.h: Likewise.
6551         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
6552         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
6553         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
6554         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
6555         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
6556         * lib/unictype/pr_combining.h: Likewise.
6557         * lib/unictype/pr_composite.h: Likewise.
6558         * lib/unictype/pr_currency_symbol.h: Likewise.
6559         * lib/unictype/pr_decimal_digit.h: Likewise.
6560         * lib/unictype/pr_deprecated.h: Likewise.
6561         * lib/unictype/pr_format_control.h: Likewise.
6562         * lib/unictype/pr_grapheme_base.h: Likewise.
6563         * lib/unictype/pr_grapheme_extend.h: Likewise.
6564         * lib/unictype/pr_grapheme_link.h: Likewise.
6565         * lib/unictype/pr_id_continue.h: Likewise.
6566         * lib/unictype/pr_id_start.h: Likewise.
6567         * lib/unictype/pr_ideographic.h: Likewise.
6568         * lib/unictype/pr_lowercase.h: Likewise.
6569         * lib/unictype/pr_math.h: Likewise.
6570         * lib/unictype/pr_numeric.h: Likewise.
6571         * lib/unictype/pr_other_alphabetic.h: Likewise.
6572         * lib/unictype/pr_other_id_continue.h: Likewise.
6573         * lib/unictype/pr_other_math.h: Likewise.
6574         * lib/unictype/pr_punctuation.h: Likewise.
6575         * lib/unictype/pr_sentence_terminal.h: Likewise.
6576         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6577         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6578         * lib/unictype/pr_unified_ideograph.h: Likewise.
6579         * lib/unictype/pr_uppercase.h: Likewise.
6580         * lib/unictype/pr_xid_continue.h: Likewise.
6581         * lib/unictype/pr_xid_start.h: Likewise.
6582         * lib/unictype/scripts.h: Likewise.
6583         * lib/unictype/scripts_byname.gperf: Likewise.
6584         * lib/unictype/sy_java_ident.h: Likewise.
6585         * lib/unigbrk/gbrkprop.h: Likewise.
6586         * lib/unilbrk/lbrkprop1.h: Likewise.
6587         * lib/unilbrk/lbrkprop2.h: Likewise.
6588         * lib/uninorm/decomposition-table2.h: Likewise.
6589         * lib/uniwbrk/wbrkprop.h: Likewise.
6590         * tests/unicase/test-cased.c: Likewise.
6591         * tests/unicase/test-ignorable.c: Likewise.
6592         * tests/unicase/test-uc_tolower.c: Likewise.
6593         * tests/unicase/test-uc_totitle.c: Likewise.
6594         * tests/unicase/test-uc_toupper.c: Likewise.
6595         * tests/unictype/test-categ_C.c: Likewise.
6596         * tests/unictype/test-categ_Cn.c: Likewise.
6597         * tests/unictype/test-categ_L.c: Likewise.
6598         * tests/unictype/test-categ_Ll.c: Likewise.
6599         * tests/unictype/test-categ_Lm.c: Likewise.
6600         * tests/unictype/test-categ_Lo.c: Likewise.
6601         * tests/unictype/test-categ_Lu.c: Likewise.
6602         * tests/unictype/test-categ_M.c: Likewise.
6603         * tests/unictype/test-categ_Mc.c: Likewise.
6604         * tests/unictype/test-categ_Me.c: Likewise.
6605         * tests/unictype/test-categ_Mn.c: Likewise.
6606         * tests/unictype/test-categ_N.c: Likewise.
6607         * tests/unictype/test-categ_Nd.c: Likewise.
6608         * tests/unictype/test-categ_No.c: Likewise.
6609         * tests/unictype/test-categ_P.c: Likewise.
6610         * tests/unictype/test-categ_Po.c: Likewise.
6611         * tests/unictype/test-categ_S.c: Likewise.
6612         * tests/unictype/test-categ_Sc.c: Likewise.
6613         * tests/unictype/test-categ_Sk.c: Likewise.
6614         * tests/unictype/test-categ_Sm.c: Likewise.
6615         * tests/unictype/test-categ_So.c: Likewise.
6616         * tests/unictype/test-ctype_alnum.c: Likewise.
6617         * tests/unictype/test-ctype_alpha.c: Likewise.
6618         * tests/unictype/test-ctype_graph.c: Likewise.
6619         * tests/unictype/test-ctype_lower.c: Likewise.
6620         * tests/unictype/test-ctype_print.c: Likewise.
6621         * tests/unictype/test-ctype_punct.c: Likewise.
6622         * tests/unictype/test-ctype_upper.c: Likewise.
6623         * tests/unictype/test-decdigit.h: Likewise.
6624         * tests/unictype/test-digit.h: Likewise.
6625         * tests/unictype/test-numeric.h: Likewise.
6626         * tests/unictype/test-pr_alphabetic.c: Likewise.
6627         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6628         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6629         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6630         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6631         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6632         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6633         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6634         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6635         * tests/unictype/test-pr_case_ignorable.c: Likewise.
6636         * tests/unictype/test-pr_cased.c: Likewise.
6637         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
6638         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
6639         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
6640         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
6641         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
6642         * tests/unictype/test-pr_combining.c: Likewise.
6643         * tests/unictype/test-pr_composite.c: Likewise.
6644         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6645         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6646         * tests/unictype/test-pr_deprecated.c: Likewise.
6647         * tests/unictype/test-pr_format_control.c: Likewise.
6648         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6649         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6650         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6651         * tests/unictype/test-pr_id_continue.c: Likewise.
6652         * tests/unictype/test-pr_id_start.c: Likewise.
6653         * tests/unictype/test-pr_ideographic.c: Likewise.
6654         * tests/unictype/test-pr_lowercase.c: Likewise.
6655         * tests/unictype/test-pr_math.c: Likewise.
6656         * tests/unictype/test-pr_numeric.c: Likewise.
6657         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6658         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6659         * tests/unictype/test-pr_other_math.c: Likewise.
6660         * tests/unictype/test-pr_punctuation.c: Likewise.
6661         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6662         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6663         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6664         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6665         * tests/unictype/test-pr_uppercase.c: Likewise.
6666         * tests/unictype/test-pr_xid_continue.c: Likewise.
6667         * tests/unictype/test-pr_xid_start.c: Likewise.
6668         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6669         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6670         changes.
6671         * lib/unictype/categ_Cc.h: Likewise.
6672         * lib/unictype/categ_Cf.h: Likewise.
6673         * lib/unictype/categ_Co.h: Likewise.
6674         * lib/unictype/categ_Cs.h: Likewise.
6675         * lib/unictype/categ_Lt.h: Likewise.
6676         * lib/unictype/categ_Nl.h: Likewise.
6677         * lib/unictype/categ_Pc.h: Likewise.
6678         * lib/unictype/categ_Pd.h: Likewise.
6679         * lib/unictype/categ_Pe.h: Likewise.
6680         * lib/unictype/categ_Pf.h: Likewise.
6681         * lib/unictype/categ_Pi.h: Likewise.
6682         * lib/unictype/categ_Ps.h: Likewise.
6683         * lib/unictype/categ_Z.h: Likewise.
6684         * lib/unictype/categ_Zl.h: Likewise.
6685         * lib/unictype/categ_Zp.h: Likewise.
6686         * lib/unictype/categ_Zs.h: Likewise.
6687         * lib/unictype/ctype_blank.h: Likewise.
6688         * lib/unictype/ctype_cntrl.h: Likewise.
6689         * lib/unictype/ctype_digit.h: Likewise.
6690         * lib/unictype/ctype_space.h: Likewise.
6691         * lib/unictype/ctype_xdigit.h: Likewise.
6692         * lib/unictype/mirror.h: Likewise.
6693         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6694         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6695         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6696         * lib/unictype/pr_bidi_control.h: Likewise.
6697         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6698         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6699         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6700         * lib/unictype/pr_bidi_pdf.h: Likewise.
6701         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6702         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6703         * lib/unictype/pr_dash.h: Likewise.
6704         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6705         * lib/unictype/pr_diacritic.h: Likewise.
6706         * lib/unictype/pr_extender.h: Likewise.
6707         * lib/unictype/pr_hex_digit.h: Likewise.
6708         * lib/unictype/pr_hyphen.h: Likewise.
6709         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6710         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6711         * lib/unictype/pr_ignorable_control.h: Likewise.
6712         * lib/unictype/pr_iso_control.h: Likewise.
6713         * lib/unictype/pr_join_control.h: Likewise.
6714         * lib/unictype/pr_left_of_pair.h: Likewise.
6715         * lib/unictype/pr_line_separator.h: Likewise.
6716         * lib/unictype/pr_logical_order_exception.h: Likewise.
6717         * lib/unictype/pr_non_break.h: Likewise.
6718         * lib/unictype/pr_not_a_character.h: Likewise.
6719         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6720         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6721         * lib/unictype/pr_other_id_start.h: Likewise.
6722         * lib/unictype/pr_other_lowercase.h: Likewise.
6723         * lib/unictype/pr_other_uppercase.h: Likewise.
6724         * lib/unictype/pr_paired_punctuation.h: Likewise.
6725         * lib/unictype/pr_paragraph_separator.h: Likewise.
6726         * lib/unictype/pr_pattern_syntax.h: Likewise.
6727         * lib/unictype/pr_pattern_white_space.h: Likewise.
6728         * lib/unictype/pr_private_use.h: Likewise.
6729         * lib/unictype/pr_quotation_mark.h: Likewise.
6730         * lib/unictype/pr_radical.h: Likewise.
6731         * lib/unictype/pr_soft_dotted.h: Likewise.
6732         * lib/unictype/pr_space.h: Likewise.
6733         * lib/unictype/pr_titlecase.h: Likewise.
6734         * lib/unictype/pr_variation_selector.h: Likewise.
6735         * lib/unictype/pr_white_space.h: Likewise.
6736         * lib/unictype/pr_zero_width.h: Likewise.
6737         * lib/unictype/sy_c_ident.h: Likewise.
6738         * lib/unictype/sy_c_whitespace.h: Likewise.
6739         * lib/unictype/sy_java_whitespace.h: Likewise.
6740         * lib/uninorm/composition-table.gperf: Likewise.
6741         * lib/uninorm/decomposition-table1.h: Likewise.
6742         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6743         LB8.
6744         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6745         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6746         * modules/unictype/*: Bump version number of expected libunistring
6747         version.
6748
6749 2011-01-09  Bruno Haible  <bruno@clisp.org>
6750
6751         Update to Unicode 5.2.0.
6752         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6753         trailing whitespace removed.
6754
6755 2011-01-09  Bruno Haible  <bruno@clisp.org>
6756
6757         New Unicode character properties, from Unicode 5.2.0.
6758         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6759         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6760         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6761         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6762         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6763         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6764         uc_is_property_cased, uc_is_property_case_ignorable,
6765         uc_is_property_changes_when_lowercased,
6766         uc_is_property_changes_when_uppercased,
6767         uc_is_property_changes_when_titlecased,
6768         uc_is_property_changes_when_casefolded,
6769         uc_is_property_changes_when_casemapped): New declarations.
6770         * lib/unictype/pr_byname.gperf: Add the new properties.
6771         * modules/unictype/property-byname (Depends-on): Depend on the new
6772         properties modules.
6773         * modules/unictype/property-all (Depends-on): Likewise.
6774         * MODULES.html.sh (Unicode string functions): Add
6775         unictype/property-case-ignorable, unictype/property-cased,
6776         unictype/property-changes-when-casefolded,
6777         unictype/property-changes-when-casemapped,
6778         unictype/property-changes-when-lowercased,
6779         unictype/property-changes-when-titlecased,
6780         unictype/property-changes-when-uppercased.
6781
6782         New module 'unictype/property-changes-when-casemapped'.
6783         * modules/unictype/property-changes-when-casemapped: New file.
6784         * lib/unictype/pr_changes_when_casemapped.c: New file.
6785         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6786         generated by gen-uni-tables.
6787         * modules/unictype/property-changes-when-casemapped-tests: New file.
6788         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6789         automatically generated by gen-uni-tables.
6790
6791         New module 'unictype/property-changes-when-casefolded'.
6792         * modules/unictype/property-changes-when-casefolded: New file.
6793         * lib/unictype/pr_changes_when_casefolded.c: New file.
6794         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
6795         generated by gen-uni-tables.
6796         * modules/unictype/property-changes-when-casefolded-tests: New file.
6797         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
6798         automatically generated by gen-uni-tables.
6799
6800         New module 'unictype/property-changes-when-titlecased'.
6801         * modules/unictype/property-changes-when-titlecased: New file.
6802         * lib/unictype/pr_changes_when_titlecased.c: New file.
6803         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
6804         generated by gen-uni-tables.
6805         * modules/unictype/property-changes-when-titlecased-tests: New file.
6806         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
6807         automatically generated by gen-uni-tables.
6808
6809         New module 'unictype/property-changes-when-uppercased'.
6810         * modules/unictype/property-changes-when-uppercased: New file.
6811         * lib/unictype/pr_changes_when_uppercased.c: New file.
6812         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
6813         generated by gen-uni-tables.
6814         * modules/unictype/property-changes-when-uppercased-tests: New file.
6815         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
6816         automatically generated by gen-uni-tables.
6817
6818         New module 'unictype/property-changes-when-lowercased'.
6819         * modules/unictype/property-changes-when-lowercased: New file.
6820         * lib/unictype/pr_changes_when_lowercased.c: New file.
6821         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
6822         generated by gen-uni-tables.
6823         * modules/unictype/property-changes-when-lowercased-tests: New file.
6824         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
6825         automatically generated by gen-uni-tables.
6826
6827         New module 'unictype/property-case-ignorable'.
6828         * modules/unictype/property-case-ignorable: New file.
6829         * lib/unictype/pr_case_ignorable.c: New file.
6830         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
6831         by gen-uni-tables.
6832         * modules/unictype/property-case-ignorable-tests: New file.
6833         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
6834         generated by gen-uni-tables.
6835
6836         New module 'unictype/property-cased'.
6837         * modules/unictype/property-cased: New file.
6838         * lib/unictype/pr_cased.c: New file.
6839         * lib/unictype/pr_cased.h: New file, automatically generated by
6840         gen-uni-tables.
6841         * modules/unictype/property-cased-tests: New file.
6842         * tests/unictype/test-pr_cased.c: New file, automatically generated by
6843         gen-uni-tables.
6844
6845 2011-01-09  Bruno Haible  <bruno@clisp.org>
6846
6847         Update to Unicode 5.2.0.
6848         * lib/gen-uni-tables.c (output_predicate, output_category,
6849         output_combclass, output_bidi_category, output_decimal_digit_test,
6850         output_decimal_digit, output_digit_test, output_digit,
6851         output_numeric_test, output_numeric, output_mirror, output_scripts,
6852         output_scripts_byname, output_blocks, output_ident_category): Fix
6853         comment header.
6854         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
6855         get_wbp.
6856         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
6857         items.
6858         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
6859         Changes_When_Lowercased, Changes_When_Uppercased,
6860         Changes_When_Titlecased, Changes_When_Casefolded,
6861         Changes_When_Casemapped.
6862         (is_property_alphabetic, is_property_default_ignorable_code_point):
6863         Update for Unicode 5.2.0.
6864         (is_property_cased, is_property_case_ignorable,
6865         is_property_changes_when_lowercased,
6866         is_property_changes_when_uppercased,
6867         is_property_changes_when_titlecased,
6868         is_property_changes_when_casefolded,
6869         is_property_changes_when_casemapped): New functions.
6870         (output_properties): Output also the properties cased, case_ignorable,
6871         changes_when_lowercased, changes_when_uppercased,
6872         changes_when_titlecased, changes_when_casefolded,
6873         changes_when_casemapped.
6874         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
6875         Unicode TR#11 revision 17 -> 19.
6876         (LBP_CP): New enumeration value.
6877         (LBP_*): Adjust values accordingly.
6878         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6879         TR#14 revision 22 -> 24.
6880         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
6881         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
6882         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6883         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
6884         is_WBP_MIDLETTER.
6885         (output_composition_tables): Allow for 24 bits instead of 16 bits in
6886         the code1 and code2 of each composition rule.
6887         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
6888         * lib/unicase/ignorable.h: Likewise.
6889         * lib/unicase/tocasefold.h: Likewise.
6890         * lib/unicase/tolower.h: Likewise.
6891         * lib/unicase/totitle.h: Likewise.
6892         * lib/unicase/toupper.h: Likewise.
6893         * lib/unictype/bidi_of.h: Likewise.
6894         * lib/unictype/blocks.h: Likewise.
6895         * lib/unictype/categ_C.h: Likewise.
6896         * lib/unictype/categ_Cf.h: Likewise.
6897         * lib/unictype/categ_Cn.h: Likewise.
6898         * lib/unictype/categ_L.h: Likewise.
6899         * lib/unictype/categ_Ll.h: Likewise.
6900         * lib/unictype/categ_Lm.h: Likewise.
6901         * lib/unictype/categ_Lo.h: Likewise.
6902         * lib/unictype/categ_Lu.h: Likewise.
6903         * lib/unictype/categ_M.h: Likewise.
6904         * lib/unictype/categ_Mc.h: Likewise.
6905         * lib/unictype/categ_Mn.h: Likewise.
6906         * lib/unictype/categ_N.h: Likewise.
6907         * lib/unictype/categ_Nd.h: Likewise.
6908         * lib/unictype/categ_Nl.h: Likewise.
6909         * lib/unictype/categ_No.h: Likewise.
6910         * lib/unictype/categ_P.h: Likewise.
6911         * lib/unictype/categ_Pd.h: Likewise.
6912         * lib/unictype/categ_Po.h: Likewise.
6913         * lib/unictype/categ_S.h: Likewise.
6914         * lib/unictype/categ_Sc.h: Likewise.
6915         * lib/unictype/categ_So.h: Likewise.
6916         * lib/unictype/categ_of.h: Likewise.
6917         * lib/unictype/combining.h: Likewise.
6918         * lib/unictype/ctype_alnum.h: Likewise.
6919         * lib/unictype/ctype_alpha.h: Likewise.
6920         * lib/unictype/ctype_graph.h: Likewise.
6921         * lib/unictype/ctype_lower.h: Likewise.
6922         * lib/unictype/ctype_print.h: Likewise.
6923         * lib/unictype/ctype_punct.h: Likewise.
6924         * lib/unictype/ctype_upper.h: Likewise.
6925         * lib/unictype/decdigit.h: Likewise.
6926         * lib/unictype/digit.h: Likewise.
6927         * lib/unictype/numeric.h: Likewise.
6928         * lib/unictype/pr_alphabetic.h: Likewise.
6929         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6930         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6931         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6932         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6933         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6934         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6935         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6936         * lib/unictype/pr_combining.h: Likewise.
6937         * lib/unictype/pr_composite.h: Likewise.
6938         * lib/unictype/pr_currency_symbol.h: Likewise.
6939         * lib/unictype/pr_dash.h: Likewise.
6940         * lib/unictype/pr_decimal_digit.h: Likewise.
6941         * lib/unictype/pr_deprecated.h: Likewise.
6942         * lib/unictype/pr_diacritic.h: Likewise.
6943         * lib/unictype/pr_extender.h: Likewise.
6944         * lib/unictype/pr_grapheme_base.h: Likewise.
6945         * lib/unictype/pr_grapheme_extend.h: Likewise.
6946         * lib/unictype/pr_grapheme_link.h: Likewise.
6947         * lib/unictype/pr_id_continue.h: Likewise.
6948         * lib/unictype/pr_id_start.h: Likewise.
6949         * lib/unictype/pr_ideographic.h: Likewise.
6950         * lib/unictype/pr_ignorable_control.h: Likewise.
6951         * lib/unictype/pr_logical_order_exception.h: Likewise.
6952         * lib/unictype/pr_lowercase.h: Likewise.
6953         * lib/unictype/pr_numeric.h: Likewise.
6954         * lib/unictype/pr_other_alphabetic.h: Likewise.
6955         * lib/unictype/pr_punctuation.h: Likewise.
6956         * lib/unictype/pr_sentence_terminal.h: Likewise.
6957         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6958         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6959         * lib/unictype/pr_unified_ideograph.h: Likewise.
6960         * lib/unictype/pr_uppercase.h: Likewise.
6961         * lib/unictype/pr_xid_continue.h: Likewise.
6962         * lib/unictype/pr_xid_start.h: Likewise.
6963         * lib/unictype/pr_zero_width.h: Likewise.
6964         * lib/unictype/scripts.h: Likewise.
6965         * lib/unictype/scripts_byname.gperf: Likewise.
6966         * lib/unictype/sy_java_ident.h: Likewise.
6967         * lib/unigbrk/gbrkprop.h: Likewise.
6968         * lib/unilbrk/lbrkprop1.h: Likewise.
6969         * lib/unilbrk/lbrkprop2.h: Likewise.
6970         * lib/unilbrk/lbrktables.h: Likewise.
6971         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
6972         LBP_CP. Implement rule LB30.
6973         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
6974         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
6975         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
6976         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
6977         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
6978         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
6979         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
6980         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
6981         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
6982         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
6983         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
6984         bits instead of 16 bits in the code1 and code2 of each composition
6985         rule.
6986         (uc_composition): Update for Unicode 5.2.0.
6987         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
6988         * lib/uninorm/decomposition-table2.h: Likewise.
6989         * lib/uniwbrk/wbrkprop.h: Likewise.
6990         * tests/unicase/test-cased.c: Likewise.
6991         * tests/unicase/test-ignorable.c: Likewise.
6992         * tests/unicase/test-uc_tolower.c: Likewise.
6993         * tests/unicase/test-uc_totitle.c: Likewise.
6994         * tests/unicase/test-uc_toupper.c: Likewise.
6995         * tests/unictype/test-categ_C.c: Likewise.
6996         * tests/unictype/test-categ_Cf.c: Likewise.
6997         * tests/unictype/test-categ_Cn.c: Likewise.
6998         * tests/unictype/test-categ_L.c: Likewise.
6999         * tests/unictype/test-categ_Ll.c: Likewise.
7000         * tests/unictype/test-categ_Lm.c: Likewise.
7001         * tests/unictype/test-categ_Lo.c: Likewise.
7002         * tests/unictype/test-categ_Lu.c: Likewise.
7003         * tests/unictype/test-categ_M.c: Likewise.
7004         * tests/unictype/test-categ_Mc.c: Likewise.
7005         * tests/unictype/test-categ_Mn.c: Likewise.
7006         * tests/unictype/test-categ_N.c: Likewise.
7007         * tests/unictype/test-categ_Nd.c: Likewise.
7008         * tests/unictype/test-categ_Nl.c: Likewise.
7009         * tests/unictype/test-categ_No.c: Likewise.
7010         * tests/unictype/test-categ_P.c: Likewise.
7011         * tests/unictype/test-categ_Pd.c: Likewise.
7012         * tests/unictype/test-categ_Po.c: Likewise.
7013         * tests/unictype/test-categ_S.c: Likewise.
7014         * tests/unictype/test-categ_Sc.c: Likewise.
7015         * tests/unictype/test-categ_So.c: Likewise.
7016         * tests/unictype/test-ctype_alnum.c: Likewise.
7017         * tests/unictype/test-ctype_alpha.c: Likewise.
7018         * tests/unictype/test-ctype_graph.c: Likewise.
7019         * tests/unictype/test-ctype_lower.c: Likewise.
7020         * tests/unictype/test-ctype_print.c: Likewise.
7021         * tests/unictype/test-ctype_punct.c: Likewise.
7022         * tests/unictype/test-ctype_upper.c: Likewise.
7023         * tests/unictype/test-decdigit.h: Likewise.
7024         * tests/unictype/test-digit.h: Likewise.
7025         * tests/unictype/test-numeric.h: Likewise.
7026         * tests/unictype/test-pr_alphabetic.c: Likewise.
7027         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7028         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7029         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7030         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7031         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7032         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7033         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7034         * tests/unictype/test-pr_combining.c: Likewise.
7035         * tests/unictype/test-pr_composite.c: Likewise.
7036         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7037         * tests/unictype/test-pr_dash.c: Likewise.
7038         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7039         * tests/unictype/test-pr_deprecated.c: Likewise.
7040         * tests/unictype/test-pr_diacritic.c: Likewise.
7041         * tests/unictype/test-pr_extender.c: Likewise.
7042         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7043         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7044         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7045         * tests/unictype/test-pr_id_continue.c: Likewise.
7046         * tests/unictype/test-pr_id_start.c: Likewise.
7047         * tests/unictype/test-pr_ideographic.c: Likewise.
7048         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7049         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7050         * tests/unictype/test-pr_lowercase.c: Likewise.
7051         * tests/unictype/test-pr_numeric.c: Likewise.
7052         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7053         * tests/unictype/test-pr_punctuation.c: Likewise.
7054         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7055         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7056         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7057         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7058         * tests/unictype/test-pr_uppercase.c: Likewise.
7059         * tests/unictype/test-pr_xid_continue.c: Likewise.
7060         * tests/unictype/test-pr_xid_start.c: Likewise.
7061         * tests/unictype/test-pr_zero_width.c: Likewise.
7062         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7063         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7064         changed behaviour: line breaking is now disallowed between a letter
7065         or '=' and '('.
7066         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7067         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7068         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7069         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7070         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7071         lib/uniwidth/width.c.
7072         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7073         without comments, but with the original copyright notice.
7074         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7075         changes.
7076         * lib/unictype/categ_Cc.h: Likewise.
7077         * lib/unictype/categ_Co.h: Likewise.
7078         * lib/unictype/categ_Cs.h: Likewise.
7079         * lib/unictype/categ_Lt.h: Likewise.
7080         * lib/unictype/categ_Me.h: Likewise.
7081         * lib/unictype/categ_Pc.h: Likewise.
7082         * lib/unictype/categ_Pe.h: Likewise.
7083         * lib/unictype/categ_Pf.h: Likewise.
7084         * lib/unictype/categ_Pi.h: Likewise.
7085         * lib/unictype/categ_Ps.h: Likewise.
7086         * lib/unictype/categ_Sk.h: Likewise.
7087         * lib/unictype/categ_Sm.h: Likewise.
7088         * lib/unictype/categ_Z.h: Likewise.
7089         * lib/unictype/categ_Zl.h: Likewise.
7090         * lib/unictype/categ_Zp.h: Likewise.
7091         * lib/unictype/categ_Zs.h: Likewise.
7092         * lib/unictype/ctype_blank.h: Likewise.
7093         * lib/unictype/ctype_cntrl.h: Likewise.
7094         * lib/unictype/ctype_digit.h: Likewise.
7095         * lib/unictype/ctype_space.h: Likewise.
7096         * lib/unictype/ctype_xdigit.h: Likewise.
7097         * lib/unictype/mirror.h: Likewise.
7098         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7099         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7100         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7101         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7102         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7103         * lib/unictype/pr_bidi_control.h: Likewise.
7104         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7105         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7106         * lib/unictype/pr_bidi_pdf.h: Likewise.
7107         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7108         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7109         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7110         * lib/unictype/pr_format_control.h: Likewise.
7111         * lib/unictype/pr_hex_digit.h: Likewise.
7112         * lib/unictype/pr_hyphen.h: Likewise.
7113         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7114         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7115         * lib/unictype/pr_iso_control.h: Likewise.
7116         * lib/unictype/pr_join_control.h: Likewise.
7117         * lib/unictype/pr_left_of_pair.h: Likewise.
7118         * lib/unictype/pr_line_separator.h: Likewise.
7119         * lib/unictype/pr_math.h: Likewise.
7120         * lib/unictype/pr_non_break.h: Likewise.
7121         * lib/unictype/pr_not_a_character.h: Likewise.
7122         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7123         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7124         * lib/unictype/pr_other_id_continue.h: Likewise.
7125         * lib/unictype/pr_other_id_start.h: Likewise.
7126         * lib/unictype/pr_other_lowercase.h: Likewise.
7127         * lib/unictype/pr_other_math.h: Likewise.
7128         * lib/unictype/pr_other_uppercase.h: Likewise.
7129         * lib/unictype/pr_paired_punctuation.h: Likewise.
7130         * lib/unictype/pr_paragraph_separator.h: Likewise.
7131         * lib/unictype/pr_pattern_syntax.h: Likewise.
7132         * lib/unictype/pr_pattern_white_space.h: Likewise.
7133         * lib/unictype/pr_private_use.h: Likewise.
7134         * lib/unictype/pr_quotation_mark.h: Likewise.
7135         * lib/unictype/pr_radical.h: Likewise.
7136         * lib/unictype/pr_soft_dotted.h: Likewise.
7137         * lib/unictype/pr_space.h: Likewise.
7138         * lib/unictype/pr_titlecase.h: Likewise.
7139         * lib/unictype/pr_variation_selector.h: Likewise.
7140         * lib/unictype/pr_white_space.h: Likewise.
7141         * lib/unictype/sy_c_ident.h: Likewise.
7142         * lib/unictype/sy_c_whitespace.h: Likewise.
7143         * lib/unictype/sy_java_whitespace.h: Likewise.
7144         * modules/uni*/*: Bump version number of expected libunistring version.
7145         Reported by Simon Josefsson.
7146
7147 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7148
7149         useless-if-before-free: fix typo in --help and make the internal,
7150         automatic version date update process work once again.
7151         --help output contained a NUL character instead of the
7152         backslash-zero that was intended.  Also, the "must lie within
7153         the first 8 lines" line is on line 9, and hence not getting
7154         automatically updated.
7155         * build-aux/useless-if-before-free: Fix the former by adding a
7156         backslash, and the latter by condensing the three lines of what-it-does
7157         to a single line, leaving one line of slack for the future.
7158
7159 2011-01-09  Bruno Haible  <bruno@clisp.org>
7160
7161         uniwidth/width: Fix width of U+1D173..U+1D17A.
7162         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7163         symbolic_width, output_width_property_test): New functions.
7164         (main): Invoke output_nonspacing_property, output_width_property_test.
7165         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7166         U+1D173..U+1D17A.
7167         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7168         1.
7169         * modules/uniwidth/*: Bump version number of expected libunistring
7170         version.
7171         * modules/unilbrk/*: Likewise.
7172
7173 2011-01-08  Bruno Haible  <bruno@clisp.org>
7174
7175         uninorm tests: Preserve copyright of Unicode data file.
7176         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7177         Mention modifications.
7178
7179 2011-01-08  Bruno Haible  <bruno@clisp.org>
7180
7181         gen-uni-tables: Prepare for Unicode 5.2.0.
7182         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7183         (debug_output_lbp, output_lbp): Update.
7184
7185 2011-01-08  Bruno Haible  <bruno@clisp.org>
7186
7187         unilbrk: Clarify gen-uni-tables.c code.
7188         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7189         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7190         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7191
7192 2011-01-07  Bruno Haible  <bruno@clisp.org>
7193
7194         strtod: Restore errno when successfully parsing Infinity or NaN.
7195         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7196         restore the original errno.
7197
7198 2011-01-07  Bruno Haible  <bruno@clisp.org>
7199
7200         remove test: Avoid failure on HP-UX 11.
7201         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7202
7203 2011-01-07  Bruno Haible  <bruno@clisp.org>
7204
7205         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7206         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7207         error code.
7208
7209 2011-01-07  Pádraig Brady <P@draigBrady.com>
7210
7211         ignore-value: fixup comments, and add Eric Blake
7212         as an author since he rewrote the macros.
7213         * lib/ignore-value.h (ignore_value):  State that
7214         we now support aggregates.  Also specify exactly
7215         when the GCC warn_unused_result feature was added.
7216
7217 2011-01-06  Eric Blake  <eblake@redhat.com>
7218
7219         ignore-value: support aggregate types
7220         * lib/ignore-value.h (ignore_value): Provide separate gcc
7221         definition.
7222         * modules/ignore-value-tests: New test module.
7223         * tests/test-ignore-value.c: New test.
7224
7225         maint.mk: improve sc_prohibit_strcmp regex
7226         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7227         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7228         definition of STRNEQ.
7229
7230         signal: work around Haiku issue with SIGBUS
7231         * lib/siglist.h: Add comment.
7232         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7233         strsignal's favoring of SIGSEGV.
7234         * tests/test-signal.c (main): Avoid test failure.
7235         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7236         Reported by Scott McCreary.
7237
7238         maint.mk: add pre-release check to ensure submodule commits are public
7239         * top/maint.mk (public-submodule-commit): New rule.
7240         (submodule-checks): New variable.
7241         (alpha beta stable): Depend on the variable.
7242
7243 2011-01-05  Pádraig Brady <P@draigBrady.com>
7244         and Jim Meyering  <meyering@redhat.com>
7245
7246         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7247         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7248         (ATTRIBUTE_DEPRECATED): Define.
7249         (_ignore_case): New function.
7250         (ignore_value): New macro, to replace the old function.
7251         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7252         * modules/ignore-value (Depends-on): Add stdint.
7253
7254 2011-01-04  Eric Blake  <eblake@redhat.com>
7255
7256         doc: regenerate INSTALL
7257         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7258         @firstparagraphindent support, now that autoconf dropped it.
7259         (INSTALL_PRELUDE): Reinstate old macro.
7260         * doc/install.texi: Resync from autoconf.
7261         * doc/INSTALL: Reflect recent autoconf update.
7262         * doc/INSTALL.ISO: Likewise.
7263         * doc/INSTALL.UTF-8: Likewise.
7264         Reported by Karl Berry.
7265
7266 2011-01-04  Bruce Korb  <address@hidden>
7267
7268         git-version-gen: avoid a sub-shell
7269         * build-aux/git-version-gen: Redirect stderr in `...` via
7270         "exec 2>...", rather than via an added sub-shell.
7271
7272 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7273
7274         git-version-gen: use (...) rather than sh -c '...'
7275         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7276         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7277
7278 2011-01-03  Jim Meyering  <meyering@redhat.com>
7279
7280         git-version-gen: convert leading TABs to spaces
7281         * build-aux/git-version-gen: Expand leading TABs.
7282
7283         git-version-gen: handle failed "git rev-list"
7284         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7285         from git and proceeding as if it had succeeded but printed no SHA1
7286         checksums, suppress the diagnostic and handle the failure.
7287         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7288
7289         git-version-gen: include command name in one more diagnostic
7290         * build-aux/git-version-gen: When the required .tarball-version file
7291         was missing or unreadable, you might see the diagnostic from "cat",
7292         but no trace of the name of the invoking script.  Now, you still see
7293         the diagnostic from cat, but also get one from "git-version-gen: ".
7294         Inspired by a patch from Bruce Korb.
7295
7296         update-copyright: adjust test to match changed code
7297         * tests/test-update-copyright.sh: Change test's expected output
7298         to match new actual output.
7299
7300 2011-01-02  Bruno Haible  <bruno@clisp.org>
7301
7302         getlogin_r: Avoid test failure on HP-UX 11.
7303         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7304         ERANGE when the second argument is zero.
7305         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7306         portability problem.
7307
7308 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7309
7310         * build-aux/update-copyright: doc Simon's changes
7311
7312 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7313
7314         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7315         environment variable.
7316
7317 2011-01-02  Bruno Haible  <bruno@clisp.org>
7318
7319         unigbrk: Avoid gcc warnings.
7320         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7321         unused variable.
7322         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7323         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7324         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7325         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7326         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7327         Change type of first argument to 'const char *'.
7328         (main): Remove unused variable.
7329         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7330         type of first argument to 'const char *'.
7331         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7332         Likewise.
7333         (main): Change type of variable 's'.
7334         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7335         to 'int'.
7336
7337 2011-01-02  Bruno Haible  <bruno@clisp.org>
7338
7339         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7340         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7341         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7342         bug.
7343         * lib/pwrite.c: Undo 2010-12-31 patch.
7344         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7345
7346 2011-01-02  Bruno Haible  <bruno@clisp.org>
7347
7348         pread: Fix test whether it works.
7349         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7350
7351 2011-01-02  Bruno Haible  <bruno@clisp.org>
7352
7353         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7354         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7355         ends in "6". Don't require a specific month name. Try also the locale
7356         names found on HP-UX 11 and Solaris 7.
7357
7358 2011-01-02  Bruno Haible  <bruno@clisp.org>
7359
7360         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7361         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7362         C linkage.
7363         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7364
7365 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7366
7367         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7368         for consistency, since the "cluster" term is not used elsewhere.
7369         * lib/unigbrk.in.h: Update name.
7370         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7371         * lib/unigbrk/u16-grapheme-next.c: Update name.
7372         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7373         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7374         * lib/unigbrk/u32-grapheme-next.c: Update name.
7375         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7376         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7377         * lib/unigbrk/u8-grapheme-next.c: Update name.
7378         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7379         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7380         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7381         Suggested by Bruno Haible.
7382
7383 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7384
7385         Remove module 'u8-grapheme-len' as too redundant with
7386         'u8-grapheme-next'.
7387         * modules/unigbrk/u8-grapheme-len: Delete file.
7388         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7389         * lib/unigbrk.in.h: Remove prototype for deleted function.
7390         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7391         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7392
7393         Remove module 'u16-grapheme-len' as too redundant with
7394         'u16-grapheme-next'.
7395         * modules/unigbrk/u16-grapheme-len: Delete file.
7396         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7397         * lib/unigbrk.in.h: Remove prototype for deleted function.
7398         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7399         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7400
7401         Remove module 'u32-grapheme-len' as too redundant with
7402         'u32-grapheme-next'.
7403         * modules/unigbrk/u32-grapheme-len: Delete file.
7404         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7405         * lib/unigbrk.in.h: Remove prototype for deleted function.
7406         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7407         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7408
7409         Suggested by Bruno Haible.
7410
7411 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7412
7413         * unigbrk.in.h: Fix typo: "ben" => "been".
7414         Reported by Bruno Haible.
7415
7416 2011-01-01  Jim Meyering  <meyering@redhat.com>
7417
7418         maint: update almost all copyright ranges to include 2011
7419         Run the new "make update-copyright" rule.
7420
7421 2011-01-01  Jim Meyering  <meyering@redhat.com>
7422
7423         maint: update-copyright: exempt doc/INSTALL*
7424         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7425         since they are generated.  Suggested by Bruno Haible.
7426
7427 2011-01-01  Jim Meyering  <meyering@redhat.com>
7428
7429         maint: refine the update-copyright rule
7430         * Makefile (update-copyright): Also exclude any file that includes
7431         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7432         code that merely generates the comment.
7433
7434 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7435
7436         New module 'u8-grapheme-len'.
7437         * modules/unigbrk/u8-grapheme-len: New file.
7438         * modules/unigbrk/u8-grapheme-len-tests: New file.
7439         * lib/unigbrk.in.h: Add prototype for new function.
7440         * lib/unigbrk/u8-grapheme-len.c: New file.
7441         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7442
7443         New module 'u16-grapheme-len'.
7444         * modules/unigbrk/u16-grapheme-len: New file.
7445         * modules/unigbrk/u16-grapheme-len-tests: New file.
7446         * lib/unigbrk.in.h: Add prototype for new function.
7447         * lib/unigbrk/u16-grapheme-len.c: New file.
7448         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7449
7450         New module 'u32-grapheme-len'.
7451         * modules/unigbrk/u32-grapheme-len: New file.
7452         * modules/unigbrk/u32-grapheme-len-tests: New file.
7453         * lib/unigbrk.in.h: Add prototype for new function.
7454         * lib/unigbrk/u32-grapheme-len.c: New file.
7455         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7456
7457         New module 'u8-grapheme-next'.
7458         * modules/unigbrk/u8-grapheme-next: New file.
7459         * modules/unigbrk/u8-grapheme-next-tests: New file.
7460         * lib/unigbrk.in.h: Add prototype for new function.
7461         * lib/unigbrk/u8-grapheme-next.c: New file.
7462         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7463
7464         New module 'u16-grapheme-next'.
7465         * modules/unigbrk/u16-grapheme-next: New file.
7466         * modules/unigbrk/u16-grapheme-next-tests: New file.
7467         * lib/unigbrk.in.h: Add prototype for new function.
7468         * lib/unigbrk/u16-grapheme-next.c: New file.
7469         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7470
7471         New module 'u32-grapheme-next'.
7472         * modules/unigbrk/u32-grapheme-next: New file.
7473         * modules/unigbrk/u32-grapheme-next-tests: New file.
7474         * lib/unigbrk.in.h: Add prototype for new function.
7475         * lib/unigbrk/u32-grapheme-next.c: New file.
7476         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7477
7478         New module 'u8-grapheme-prev'.
7479         * modules/unigbrk/u8-grapheme-prev: New file.
7480         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7481         * lib/unigbrk.in.h: Add prototype for new function.
7482         * lib/unigbrk/u8-grapheme-prev.c: New file.
7483         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7484
7485         New module 'u16-grapheme-prev'.
7486         * modules/unigbrk/u16-grapheme-prev: New file.
7487         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7488         * lib/unigbrk.in.h: Add prototype for new function.
7489         * lib/unigbrk/u16-grapheme-prev.c: New file.
7490         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7491
7492         New module 'u32-grapheme-prev'.
7493         * modules/unigbrk/u32-grapheme-prev: New file.
7494         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7495         * lib/unigbrk.in.h: Add prototype for new function.
7496         * lib/unigbrk/u32-grapheme-prev.c: New file.
7497         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7498
7499         New module 'u8-grapheme-breaks'.
7500         * modules/unigbrk/u8-grapheme-breaks: New file.
7501         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7502         * lib/unigbrk.in.h: Add prototype for new function.
7503         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7504         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7505
7506         New module 'u16-grapheme-breaks'.
7507         * modules/unigbrk/u16-grapheme-breaks: New file.
7508         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7509         * lib/unigbrk.in.h: Add prototype for new function.
7510         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7511         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7512
7513         New module 'u32-grapheme-breaks'.
7514         * modules/unigbrk/u32-grapheme-breaks: New file.
7515         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7516         * lib/unigbrk.in.h: Add prototype for new function.
7517         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7518         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7519
7520         New module 'ulc-grapheme-breaks'.
7521         * modules/unigbrk/ulc-grapheme-breaks: New file.
7522         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
7523         * m4/locale-ar.m4: New file.
7524         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
7525         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
7526         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
7527
7528 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7529
7530         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
7531         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
7532         modified how this file was generated before I initially submitted
7533         the module, but failed to regenerate it.  This meant that several
7534         of the level2 entries were wrong.
7535         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
7536         Remove the division-by-2 that is folded into the table now that
7537         gbrkprop.h has been regenerated properly.  Now -1 entries are
7538         handled correctly.
7539
7540         New module 'unigbrk/uc-gbrk-prop-tests'.
7541         * modules/unigbrk/uc-gbrk-prop-tests: New file.
7542         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
7543         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
7544         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
7545
7546 2011-01-01  Bruno Haible  <bruno@clisp.org>
7547
7548         Avoid use of hexadecimal escapes.
7549         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
7550         instead of hexadecimal escapes.
7551
7552 2011-01-01  Jim Meyering  <meyering@redhat.com>
7553
7554         maint: new rule to update copyright year ranges
7555         * Makefile (update-copyright): New rule.
7556
7557         maint: indent with TABs in Makefile
7558         * Makefile: Expand leading sequences of spaces to TABs
7559
7560         version-etc: update the copyright year it reports
7561         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
7562
7563 2010-12-31  Bruno Haible  <bruno@clisp.org>
7564
7565         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
7566         * lib/isfinite.c (zerof, zerod, zerol): New variables.
7567         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
7568         zero.
7569
7570 2010-12-31  Bruno Haible  <bruno@clisp.org>
7571
7572         pwrite: Work around HP-UX 11.11 bug.
7573         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
7574         works and set REPLACE_PWRITE if not.
7575         * lib/pwrite.c (pwrite): Add an implementation that uses the system
7576         function.
7577         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7578
7579 2010-12-31  Bruno Haible  <bruno@clisp.org>
7580
7581         pread: Work around HP-UX 11 bugs.
7582         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
7583         and set REPLACE_PREAD if not.
7584         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
7585
7586 2010-12-31  Eric Blake  <eblake@redhat.com>
7587
7588         nl_langinfo: fix YESEXPR on Irix 6.5
7589         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
7590         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
7591         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
7592         it.
7593
7594 2010-12-31  Bruno Haible  <bruno@clisp.org>
7595
7596         iconv: Document HP-UX 11 bug.
7597         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
7598
7599 2010-12-31  Bruno Haible  <bruno@clisp.org>
7600
7601         ldexpl: Fix link error on HP-UX 11.
7602         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
7603         LDEXPL_LIBM, using $ISNANL_LIBM.
7604
7605 2010-12-31  Eric Blake  <eblake@redhat.com>
7606
7607         ftello: avoid compilation failure with SunStudio c89
7608         * lib/ftello.c (ftello): Use lseek, not llseek.
7609
7610         tests: avoid failing coreutils tests on cygwin
7611         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
7612         (create_exe_shims_): Return 0 when skipping.
7613
7614 2010-12-31  Bruno Haible  <bruno@clisp.org>
7615
7616         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
7617         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
7618
7619 2010-12-31  Bruno Haible  <bruno@clisp.org>
7620
7621         waitpid: Fix link error in C++ mode.
7622         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
7623
7624 2010-12-31  Bruno Haible  <bruno@clisp.org>
7625
7626         isnan: Use GCC built-ins when possible.
7627         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
7628         __builtin_isnan.
7629         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
7630         (isnan): Define using GCC built-ins for GCC >= 4.0.
7631
7632 2010-12-31  Bruno Haible  <bruno@clisp.org>
7633
7634         isnand: Fix mistake.
7635         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
7636         __builtin_isnand.
7637
7638 2010-12-31  Bruno Haible  <bruno@clisp.org>
7639
7640         open: Avoid C++ error on HP-UX 11.
7641         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
7642
7643 2010-12-31  Bruno Haible  <bruno@clisp.org>
7644
7645         time_r: Add missing declarations on HP-UX 11.
7646         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
7647         instead of HAVE_LOCALTIME_R.
7648         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
7649         HAVE_LOCALTIME_R always.
7650         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
7651         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
7652         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
7653         HAVE_LOCALTIME_R.
7654         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
7655         * doc/posix-functions/localtime_r.texi: Likewise.
7656
7657 2010-12-29  Eric Blake  <eblake@redhat.com>
7658
7659         mountlist: tweak previous commit
7660         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
7661         Reported by Paul Eggert.
7662
7663         mountlist: fix local drive detection on cygwin
7664         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
7665         that works for cygwin.
7666
7667 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7668
7669         ftoastr, snprintf: ftoastr + snprintf module
7670         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
7671         since the snprintf module now should be good enough here.
7672         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
7673         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
7674         and gl_MODULE_INDICATOR([snprintf]), but the former enables
7675         GNULIB_SNPRINTF only for the test directory, and the latter
7676         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
7677         seems to suffice by itself.
7678
7679 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7680
7681         alloca: one step towards thread-safety
7682         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
7683         need for a static variable.  All callers changed.  This does not
7684         make the alloca replacement thread-safe, but it's one step.
7685
7686         tests: minor indenting change
7687         * tests/init.sh: Sync from coreutils housekeeping patch
7688         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
7689         to keep lines within 80 columns.
7690
7691 2010-12-28  Jim Meyering  <meyering@redhat.com>
7692
7693         regex: don't infloop on persistent failing calloc
7694         * lib/regexec.c (build_trtable): Return failure indication upon
7695         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7696         In glibc, this was fixed for version 2.13:
7697         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7698
7699 2010-12-28  Bruno Haible  <bruno@clisp.org>
7700             Paul Eggert <eggert@cs.ucla.edu>
7701
7702         linkat: Make implementation robust against system behaviour variations.
7703         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7704         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7705         way, and to -2 if it needs a generic runtime test.
7706         * lib/linkat.c (solaris_optimized_link_immediate,
7707         solaris_optimized_link_follow): New functions.
7708         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7709         (check_same_link): Use it.
7710
7711 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7712
7713         New module 'unigbrk/base'.
7714         * modules/unigbrk/base: New file.
7715         * lib/unigbrk.in.h: New file.
7716
7717         New module 'unigbrk/uc-gbrk-prop'.
7718         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7719         * modules/unigbrk/uc-gbrk-prop: New file.
7720         * lib/unigbrk/gbrkprop.h: New file.
7721         * lib/unigbrk/uc-gbrk-prop.c: New file.
7722
7723         New module 'unigbrk/uc-is-grapheme-break'.
7724         * modules/unigbrk/uc-is-grapheme-break: New file.
7725         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7726         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7727         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7728         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7729         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7730
7731         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7732
7733 2010-12-27  Bruno Haible  <bruno@clisp.org>
7734
7735         linkat test: Avoid failure on Solaris 11 2010-11.
7736         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7737
7738 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7739
7740         utimens: work around glibc rounding bug on more platforms
7741         * lib/utimens.c (fdutimens): Work around rounding bug even if
7742         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7743         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7744
7745 2010-12-27  Bruno Haible  <bruno@clisp.org>
7746
7747         select tests: Improve comments.
7748         * tests/test-select.c (do_select): Add comments.
7749
7750 2010-12-27  Bruno Haible  <bruno@clisp.org>
7751
7752         select tests: Safer way of handling timeout.
7753         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7754         at every invocation.
7755
7756 2010-12-27  Bruno Haible  <bruno@clisp.org>
7757
7758         select tests: Use 'bool' where appropriate.
7759         * tests/test-select.c (connect_to_socket): Change argument type to
7760         'bool'.
7761
7762 2010-12-27  Bruno Haible  <bruno@clisp.org>
7763
7764         select tests: Use existing modules.
7765         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7766         (configure.ac): Don't test for unistd.h.
7767         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7768         declared in <unistd.h>.
7769
7770 2010-12-27  Bruno Haible  <bruno@clisp.org>
7771
7772         mbrtowc: Work around a Solaris 7 bug.
7773         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7774         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7775         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7776         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7777         MBRTOWC_NULL_ARG1_BUG.
7778         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7779         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7780         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7781         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7782
7783 2010-12-27  Jim Meyering  <meyering@redhat.com>
7784
7785         read-file.c: tweak syntax
7786         * lib/read-file.c (fread_file): Remove space after "*" in function
7787         definitions.
7788
7789 2010-12-27  Bruno Haible  <bruno@clisp.org>
7790
7791         times test: Avoid gcc warnings on OSF/1.
7792         * tests/test-times.c (main): Cast printf arguments from clock_t to
7793         'long int'.
7794
7795 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7796
7797         utimens: work around glibc rounding bug on older Linux kernels
7798         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
7799         on Linux with a glibc whose utimes might not work, then work
7800         around a longstanding glibc bug involving rounding rather than
7801         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
7802         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7803
7804 2010-12-26  Bruno Haible  <bruno@clisp.org>
7805
7806         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
7807         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
7808         _GL_CXXALIAS_SYS.
7809         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7810
7811 2010-12-26  Bruno Haible  <bruno@clisp.org>
7812
7813         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
7814         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
7815         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7816         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
7817         looking for the declaration.
7818         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7819         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
7820         problem.
7821         * doc/posix-functions/inet_pton.texi: Likewise.
7822
7823 2010-12-26  Bruno Haible  <bruno@clisp.org>
7824
7825         arpa_inet: Use the common idioms with C++ support.
7826         * lib/arpa_inet.in.h: Include c++defs.h.
7827         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
7828         support.
7829         * modules/arpa_inet (Depends-on): Add c++defs.
7830         (Makefile.am): Substitute the contents of c++defs.h.
7831         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
7832         * modules/arpa_inet-c++-tests: New file.
7833         * tests/test-arpa_inet-c++.cc: New file.
7834
7835 2010-12-25  Bruno Haible  <bruno@clisp.org>
7836
7837         Fix more C++ link errors on Solaris 8.
7838         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
7839         $(LIB_EACCESS).
7840         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
7841         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
7842         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
7843         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
7844         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
7845
7846 2010-12-25  Bruno Haible  <bruno@clisp.org>
7847
7848         printf-posix: Fix link error when a non-GCC compiler is used.
7849         * lib/stdio.in.h (printf): When not using GCC, override printf
7850         correctly.
7851         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7852
7853 2010-12-25  Bruno Haible  <bruno@clisp.org>
7854
7855         strerror_r-posix: Update doc.
7856         * doc/posix-functions/strerror_r.texi: Update doc about the return
7857         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
7858
7859 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7860
7861         utimens: simplify the logic of the previous change
7862         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
7863         This should not affect whether the test succeeds or fails.
7864
7865         utimens: configure better on hosts with NFS clock skew
7866         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
7867         uses the clock of the local host.  It might use the clock of the
7868         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
7869         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7870
7871 2010-12-25  Bruno Haible  <bruno@clisp.org>
7872
7873         ptsname test: Avoid failure on Solaris.
7874         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
7875         open a pseudo-terminal; don't use BSD-style ptys.
7876         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
7877
7878 2010-12-25  Bruno Haible  <bruno@clisp.org>
7879
7880         ptsname: Avoid ERANGE failure on some systems.
7881         * lib/ptsname.c (buffer): Increase size.
7882
7883 2010-12-25  Bruno Haible  <bruno@clisp.org>
7884
7885         rename, renameat: Avoid test failures at NFS mounted locations.
7886         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
7887         so that subsequent mkdir calls succeed.
7888
7889 2010-12-25  Bruno Haible  <bruno@clisp.org>
7890
7891         iswblank: Fix C++ link error on Solaris 8.
7892         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
7893         _GL_FUNCDECL_SYS.
7894
7895 2010-12-25  Bruno Haible  <bruno@clisp.org>
7896
7897         unistd: Fix C++ link error on Solaris 8.
7898         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
7899
7900 2010-12-25  Bruno Haible  <bruno@clisp.org>
7901
7902         readlink doc: Mention an old glibc bug.
7903         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
7904
7905 2010-12-25  Bruno Haible  <bruno@clisp.org>
7906
7907         fcntl-h: Fix for use of C++ on glibc systems.
7908         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7909         also on glibc systems in C++ mode.
7910         Reported by Gary V. Vaughan <gary@gnu.org>.
7911
7912 2010-12-25  Bruno Haible  <bruno@clisp.org>
7913
7914         roundl-ieee: Make it work on OSF/1 5.1 with cc.
7915         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
7916
7917 2010-12-25  Bruno Haible  <bruno@clisp.org>
7918
7919         truncl-ieee: Make it work on OSF/1 5.1 with cc.
7920         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
7921         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
7922         test whether truncl works according to ISO C 99 with IEC 60559.
7923         * m4/truncl-ieee.m4: New file.
7924         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
7925         m4/signbit.m4.
7926         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
7927
7928 2010-12-25  Bruno Haible  <bruno@clisp.org>
7929
7930         ceill-ieee: Make it work on OSF/1 5.1 with cc.
7931         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
7932         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
7933         test whether ceill works according to ISO C 99 with IEC 60559.
7934         * m4/ceill-ieee.m4: New file.
7935         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
7936         m4/signbit.m4.
7937         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
7938
7939 2010-12-25  Bruno Haible  <bruno@clisp.org>
7940
7941         Ensure all prerequisites of <wchar.h> are included.
7942         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
7943         before <wchar.h>.
7944         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7945         gl_MBRLEN_NUL_RETVAL): Likewise.
7946         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7947         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
7948         AC_FUNC_MBRTOWC): Likewise.
7949         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7950         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
7951         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7952         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7953         Likewise.
7954         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7955         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
7956         (gl_WCHAR_H): Improve comments.
7957         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7958
7959 2010-12-25  Bruno Haible  <bruno@clisp.org>
7960
7961         strtok_r: Fix C syntax error in autoconf macro.
7962         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
7963         characters in test program.
7964
7965 2010-12-24  Bruno Haible  <bruno@clisp.org>
7966
7967         ceil, trunc, round: Fix gcc warnings.
7968         * lib/ceil.c (MIN): Undefine before redefining.
7969         * lib/trunc.c (MIN): Likewise.
7970         * lib/round.c (MIN): Likewise.
7971         Include <math.h> first.
7972
7973 2010-12-24  Bruno Haible  <bruno@clisp.org>
7974
7975         select tests: Avoid failures on OSF/1 5.1.
7976         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
7977         failure of closing the last socket; it may fail with ECONNRESET.
7978
7979 2010-12-24  Eric Blake  <eblake@redhat.com>
7980
7981         stdint: avoid HP-UX 10.20 preprocessor bug
7982         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
7983         than #if.
7984         * tests/test-floor2.c (main): Likewise.
7985         Reported by Peter O'Gorman.
7986
7987         pipe: make obsoletion transition easier
7988         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
7989         * modules/pipe (Files): Include revived file.
7990         (Include): Drop reference, to mirror getdate's behavior.
7991
7992 2010-12-24  Bruno Haible  <bruno@clisp.org>
7993
7994         sys_socket: Hide mismatch of declarations on NonStop Kernel.
7995         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
7996         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7997         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7998
7999 2010-12-24  Bruno Haible  <bruno@clisp.org>
8000
8001         gethostname: Ensure declaration on NonStop Kernel.
8002         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8003         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8004
8005 2010-12-24  Bruno Haible  <bruno@clisp.org>
8006
8007         sys_select: Ensure all necessary types on NonStop Kernel.
8008         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8009         include <sys/time.h>.
8010         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8011         NonStop Kernel.
8012         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8013
8014 2010-12-24  Bruno Haible  <bruno@clisp.org>
8015
8016         sys_select: Remove unneeded include.
8017         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8018         have <sys/select.h>.
8019
8020 2010-12-24  Bruno Haible  <bruno@clisp.org>
8021
8022         gethostname: Provide a fallback for HOST_NAME_MAX.
8023         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8024         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8025         instead.
8026         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8027
8028 2010-12-24  Bruno Haible  <bruno@clisp.org>
8029
8030         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8031         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8032         (SA_RESTART): Likewise.
8033         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8034
8035 2010-12-24  Bruno Haible  <bruno@clisp.org>
8036
8037         signal: Define NSIG.
8038         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8039         * tests/test-signal.c (nsig): New variable.
8040         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8041
8042 2010-12-24  Bruno Haible  <bruno@clisp.org>
8043
8044         rename, renameat: Avoid test failures on OSF/1 5.1.
8045         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8046         alternative error codes.
8047         * tests/test-renameat.c (main): Likewise.
8048
8049 2010-12-24  Bruno Haible  <bruno@clisp.org>
8050
8051         *printf: Detect large precisions bug on Solaris 10/SPARC.
8052         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8053         by Paul Eggert.
8054         * tests/test-snprintf-posix.h (test_function): Add this test code here
8055         too.
8056         * tests/test-sprintf-posix.h (test_function): Likewise.
8057         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8058         * tests/test-vasprintf-posix.c (test_function): Likewise.
8059         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8060         around by gnulib.
8061         * doc/posix-functions/printf.texi: Likewise.
8062         * doc/posix-functions/snprintf.texi: Likewise.
8063         * doc/posix-functions/sprintf.texi: Likewise.
8064         * doc/posix-functions/vfprintf.texi: Likewise.
8065         * doc/posix-functions/vprintf.texi: Likewise.
8066         * doc/posix-functions/vsnprintf.texi: Likewise.
8067         * doc/posix-functions/vsprintf.texi: Likewise.
8068         * doc/posix-functions/dprintf.texi: Undo last commit.
8069         * doc/posix-functions/vdprintf.texi: Likewise.
8070
8071 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8072
8073         tests: port test-fdutimensat.c to Solaris 8
8074         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8075         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8076         On Solaris 8, it fails with errno == ENOSYS, because there is no
8077         futimens (so it can't use the fd), and there is no lutimens (so it
8078         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8079
8080         vsnprintf: make more consistent with snprintf; doc fixes
8081
8082         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8083         the byte count return problem was promoted from the snprintf-posix
8084         to the snprintf module.
8085         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8086         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8087         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8088         * tests/test-snprintf.c (main): Check the byte count returned.
8089         * tests/test-vsnprintf.c (main): Likewise.
8090
8091 2010-12-23  Eric Blake  <eblake@redhat.com>
8092
8093         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8094         * modules/sigpipe (License): Relax license.
8095
8096 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8097
8098         doc: document Solaris printf bug with large float precisions
8099         * doc/posix-functions/dprintf.texi (dprintf):
8100         * doc/posix-functions/fprintf.texi (fprintf):
8101         * doc/posix-functions/printf.texi (printf):
8102         * doc/posix-functions/snprintf.texi (snprintf):
8103         * doc/posix-functions/sprintf.texi (sprintf):
8104         * doc/posix-functions/vdprintf.texi (vdprintf):
8105         * doc/posix-functions/vfprintf.texi (vfprintf):
8106         * doc/posix-functions/vprintf.texi (vprintf):
8107         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8108         * doc/posix-functions/vsprintf.texi (vsprintf):
8109         Mention that these functions mishandle large floating point
8110         precisions on Solaris 10.  The same bug is also present in Solaris
8111         8, and I assume earlier.  This causes "cd gnulib-tests; make
8112         check" to fail on Solaris 8 (and I assume, later) when building
8113         the latest coreutils, in test-vasprintf-posix's call to
8114         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8115         the wide flavors (e.g., wprintf) so this patch just updates the
8116         documentation for the narrow ones.
8117
8118         test-posixtm.c: add two tests
8119         * tests/test-posixtm.c: Add two tests, to highlight the
8120         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8121         around this bug; this is merely to document it.
8122
8123 2010-12-22  Bruno Haible  <bruno@clisp.org>
8124
8125         getlogin_r: Work around portability problem on OSF/1.
8126         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8127         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8128         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8129         test for a truncated result.
8130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8131         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8132         * modules/getlogin_r (Depends-on): Add memchr.
8133         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8134
8135 2010-12-22  Bruno Haible  <bruno@clisp.org>
8136
8137         ptsname: Avoid test failure on OSF/1 5.1.
8138         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8139         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8140         (same_slave): New function.
8141         (main): Use it to compare ptsname's result with the expected file name.
8142
8143 2010-12-22  Bruno Haible  <bruno@clisp.org>
8144
8145         Port extended stdio modules to HP NonStop Kernel.
8146         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8147         macros.
8148         * lib/fbufmode.c: Update comments.
8149         * lib/fflush.c: Likewise.
8150         * lib/fpurge.c: Likewise.
8151         * lib/freadable.c: Likewise.
8152         * lib/freadahead.c: Likewise.
8153         * lib/freading.c: Likewise.
8154         * lib/freadptr.c: Likewise.
8155         * lib/freadseek.c: Likewise.
8156         * lib/fseeko.c: Likewise.
8157         * lib/fseterr.c: Likewise.
8158         * lib/fwritable.c: Likewise.
8159         * lib/fwriting.c: Likewise.
8160         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8161
8162 2010-12-22  Bruno Haible  <bruno@clisp.org>
8163
8164         ttyname_r: Work around bug on OSF/1 5.1.
8165         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8166         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8167         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8168         present.
8169         * lib/ttyname_r.c (ttyname_r): Update comments.
8170
8171 2010-12-22  Bruno Haible  <bruno@clisp.org>
8172
8173         round: Implement result sign according to IEEE 754.
8174         * lib/round.c (MIN, MINUS_ZERO): New macros.
8175         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8176         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8177         * tests/test-round-ieee.c (main): Likewise.
8178         * tests/test-roundl-ieee.c (main): Likewise.
8179
8180         trunc: Implement result sign according to IEEE 754.
8181         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8182         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8183         * tests/test-trunc2.c: Include minus-zero.h.
8184         (MINUS_ZERO): New macro.
8185         (trunc_reference): Keep in sync with lib/trunc.c.
8186         * tests/test-truncf2.c: Include minus-zero.h.
8187         (MINUS_ZERO): New macro.
8188         (truncf_reference): Keep in sync with lib/trunc.c.
8189         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8190         * tests/test-trunc-ieee.c (main): Likewise.
8191         * tests/test-truncl-ieee.c (main): Likewise.
8192
8193         ceil: Implement result sign according to IEEE 754.
8194         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8195         (FUNC): Return -0.0 for -1 < x < 0.
8196         * tests/test-ceil2.c: Include minus-zero.h.
8197         (MINUS_ZERO): New macro.
8198         (ceil_reference): Keep in sync with lib/ceil.c.
8199         * tests/test-ceilf2.c: Include minus-zero.h.
8200         (MINUS_ZERO): New macro.
8201         (ceilf_reference): Keep in sync with lib/ceil.c.
8202         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8203         * tests/test-ceil-ieee.c (main): Likewise.
8204         * tests/test-ceill-ieee.c (main): Likewise.
8205
8206         floor: Implement result sign according to IEEE 754.
8207         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8208         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8209         * tests/test-floorf2.c (floorf_reference): Likewise.
8210         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8211         * tests/test-floor-ieee.c (main): Likewise.
8212         * tests/test-floorl-ieee.c (main): Likewise.
8213
8214 2010-12-22  Bruno Haible  <bruno@clisp.org>
8215
8216         getaddrinfo: Update doc.
8217         * doc/posix-functions/gai_strerror.texi: Return type is also different
8218         on AIX and HP-UX.
8219
8220 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8221
8222         getaddrinfo, inet_ntop: Update doc for Solaris.
8223         * doc/posix-functions/gai_strerror.texi: Return type is also an
8224         issue on Solaris 9 and earlier.
8225         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8226         on Solaris 10 and earlier.
8227
8228 2010-12-21  Bruno Haible  <bruno@clisp.org>
8229
8230         New module 'roundl-ieee'.
8231         * modules/roundl-ieee: New file.
8232         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8233         test whether roundl works according to ISO C 99 with IEC 60559.
8234         * m4/roundl-ieee.m4: New file.
8235         * modules/roundl-ieee-tests: New file.
8236         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8237         * tests/test-roundl.c (main): Remove signbit tests.
8238         * modules/roundl-tests (Depends-on): Remove signbit.
8239         * doc/posix-functions/roundl.texi: Mention the new module.
8240
8241 2010-12-21  Bruno Haible  <bruno@clisp.org>
8242
8243         New module 'truncl-ieee'.
8244         * modules/truncl-ieee: New file.
8245         * modules/truncl-ieee-tests: New file.
8246         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8247         * tests/test-truncl.c (main): Remove signbit tests.
8248         * modules/truncl-tests (Depends-on): Remove signbit.
8249         * doc/posix-functions/truncl.texi: Mention the new module.
8250
8251 2010-12-21  Bruno Haible  <bruno@clisp.org>
8252
8253         New module 'ceill-ieee'.
8254         * modules/ceill-ieee: New file.
8255         * modules/ceill-ieee-tests: New file.
8256         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8257         * tests/test-ceill.c (main): Remove signbit tests.
8258         * modules/ceill-tests (Depends-on): Remove signbit.
8259         * doc/posix-functions/ceill.texi: Mention the new module.
8260
8261 2010-12-21  Bruno Haible  <bruno@clisp.org>
8262
8263         New module 'floorl-ieee'.
8264         * modules/floorl-ieee: New file.
8265         * modules/floorl-ieee-tests: New file.
8266         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8267         * tests/test-floorl.c (main): Remove signbit tests.
8268         * modules/floorl-tests (Depends-on): Remove signbit.
8269         * doc/posix-functions/floorl.texi: Mention the new module.
8270
8271 2010-12-21  Bruno Haible  <bruno@clisp.org>
8272
8273         New module 'round-ieee'.
8274         * modules/round-ieee: New file.
8275         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8276         whether round works according to ISO C 99 with IEC 60559.
8277         * m4/round-ieee.m4: New file.
8278         * modules/round-ieee-tests: New file.
8279         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8280         * tests/test-round1.c (main): Remove signbit tests.
8281         * modules/round-tests (Depends-on): Remove 'signbit'.
8282         * doc/posix-functions/round.texi: Mention the new module.
8283
8284 2010-12-21  Bruno Haible  <bruno@clisp.org>
8285
8286         New module 'trunc-ieee'.
8287         * modules/trunc-ieee: New file.
8288         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8289         whether trunc works according to ISO C 99 with IEC 60559.
8290         * m4/trunc-ieee.m4: New file.
8291         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8293         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8294         * modules/trunc-ieee-tests: New file.
8295         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8296         * tests/test-trunc1.c (main): Remove signbit tests.
8297         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8298         * doc/posix-functions/trunc.texi: Mention the new module.
8299
8300 2010-12-21  Bruno Haible  <bruno@clisp.org>
8301
8302         New module 'ceil-ieee'.
8303         * modules/ceil-ieee: New file.
8304         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8305         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8306         ISO C 99 with IEC 60559.
8307         * m4/ceil-ieee.m4: New file.
8308         * modules/ceil (Files): Add lib/ceil.c.
8309         (Depends-on): Add 'float'.
8310         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8311         * lib/math.in.h (ceil): New declaration.
8312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8313         REPLACE_CEIL.
8314         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8315         * modules/ceil-ieee-tests: New file.
8316         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8317         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8318         * doc/posix-functions/ceil.texi: Mention the new module.
8319
8320 2010-12-21  Bruno Haible  <bruno@clisp.org>
8321
8322         New module 'floor-ieee'.
8323         * modules/floor-ieee: New file.
8324         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8325         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8326         ISO C 99 with IEC 60559.
8327         * m4/floor-ieee.m4: New file.
8328         * modules/floor (Files): Add lib/floor.c.
8329         (Depends-on): Add 'float'.
8330         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8331         * lib/math.in.h (floor): New declaration.
8332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8333         REPLACE_FLOOR.
8334         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8335         * modules/floor-ieee-tests: New file.
8336         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8337         * tests/test-math-c++.cc: Check the signature of 'floor'.
8338         * doc/posix-functions/floor.texi: Mention the new module.
8339
8340 2010-12-21  Bruno Haible  <bruno@clisp.org>
8341
8342         New module 'roundf-ieee'.
8343         * modules/roundf-ieee: New file.
8344         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8345         test whether roundf works according to ISO C 99 with IEC 60559.
8346         * m4/roundf-ieee.m4: New file.
8347         * modules/roundf-ieee-tests: New file.
8348         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8349         * tests/test-roundf1.c (main): Remove signbit tests.
8350         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8351         * doc/posix-functions/roundf.texi: Mention the new module.
8352
8353 2010-12-21  Bruno Haible  <bruno@clisp.org>
8354
8355         New module 'truncf-ieee'.
8356         * modules/truncf-ieee: New file.
8357         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8358         test whether truncf works according to ISO C 99 with IEC 60559.
8359         * m4/truncf-ieee.m4: New file.
8360         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8362         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8363         * modules/truncf-ieee-tests: New file.
8364         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8365         * tests/test-truncf1.c (main): Remove signbit tests.
8366         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8367         * doc/posix-functions/truncf.texi: Mention the new module.
8368
8369 2010-12-21  Bruno Haible  <bruno@clisp.org>
8370
8371         New module 'ceilf-ieee'.
8372         * modules/ceilf-ieee: New file.
8373         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8374         test whether ceilf works according to ISO C 99 with IEC 60559.
8375         * m4/ceilf-ieee.m4: New file.
8376         * modules/ceilf-ieee-tests: New file.
8377         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8378         * tests/test-ceilf1.c (main): Remove signbit tests.
8379         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8380         * doc/posix-functions/ceilf.texi: Mention the new module.
8381
8382 2010-12-21  Bruno Haible  <bruno@clisp.org>
8383
8384         New module 'floorf-ieee'.
8385         * modules/floorf-ieee: New file.
8386         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8387         test whether floorf works according to ISO C 99 with IEC 60559.
8388         * m4/floorf-ieee.m4: New file.
8389         * modules/floorf-ieee-tests: New file.
8390         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8391         * tests/test-floorf1.c (main): Remove signbit tests.
8392         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8393         * doc/posix-functions/floorf.texi: Mention the new module.
8394
8395 2010-12-21  Bruno Haible  <bruno@clisp.org>
8396
8397         Support for minus zero in autoconf macros.
8398         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8399         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8400         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8401         * tests/minus-zero.h: Update comments.
8402
8403 2010-12-21  Bruno Haible  <bruno@clisp.org>
8404
8405         Tests for module 'ceil'.
8406         * modules/ceil-tests: New file.
8407         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8408         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8409
8410 2010-12-21  Bruno Haible  <bruno@clisp.org>
8411
8412         Tests for module 'floor'.
8413         * modules/floor-tests: New file.
8414         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8415         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8416
8417 2010-12-21  Bruno Haible  <bruno@clisp.org>
8418
8419         math: Fix indentation.
8420         * lib/math.in.h (floorf): Fix indentation.
8421
8422 2010-12-21  Bruno Haible  <bruno@clisp.org>
8423
8424         Fix cross-compilation guesses on Solaris.
8425         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8426         not match "solaris2.10".
8427         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8428         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8429         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8430
8431 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8432
8433         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8434         This fixes a problem observed with the latest coreutils snapshot
8435         that caused a test to fail on Solaris 8.  src/csplit.c's call
8436         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8437         earlier, instead of returning the number of bytes that would have
8438         been generated; this causes csplit to incorrectly report memory
8439         exhaustion.
8440         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8441         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8442         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8443         comments to match.
8444         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8445         Fix typo in matching older versions of Solaris: "solaris2.10"
8446         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8447         only for guessing while cross-compiling.
8448         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8449
8450 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8451
8452         ftoastr: fix comment again
8453         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8454         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8455         Also, simplify example a bit by using flags = 0.
8456
8457 2010-12-20  Bruno Haible  <bruno@clisp.org>
8458
8459         round*, trunc*: Update documentation regarding glibc.
8460         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8461         * doc/posix-functions/round.texi: Likewise.
8462         * doc/posix-functions/roundl.texi: Likewise.
8463         * doc/posix-functions/truncf.texi: Likewise.
8464         * doc/posix-functions/trunc.texi: Likewise.
8465         * doc/posix-functions/truncl.texi: Likewise.
8466
8467 2010-12-20  Bruno Haible  <bruno@clisp.org>
8468
8469         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8470         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8471         * doc/posix-functions/round.texi: Likewise.
8472         * doc/posix-functions/roundl.texi: Likewise.
8473
8474 2010-12-20  Bruno Haible  <bruno@clisp.org>
8475
8476         ttyname_r: Add missing declaration on HP-UX 11.
8477         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8478         HAVE_TTYNAME_R.
8479         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8480         declared. Set HAVE_TTYNAME_R always.
8481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8482         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8483         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8484         HAVE_TTYNAME_R.
8485         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8486
8487 2010-12-20  Bruno Haible  <bruno@clisp.org>
8488
8489         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8490         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8491         * doc/posix-functions/getlogin_r.texi: Likewise.
8492         * tests/test-getlogin.c: Include <errno.h>.
8493         (main): Avoid test failure on HP-UX 11.11.
8494         * tests/test-getlogin_r.c (main): Likewise.
8495
8496 2010-12-20  Bruno Haible  <bruno@clisp.org>
8497
8498         getlogin_r: Add missing declaration on HP-UX 11.
8499         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8500         declared also when it exists as a function.
8501         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8502
8503 2010-12-20  Bruno Haible  <bruno@clisp.org>
8504
8505         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8506         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8507         through wcrtomb.
8508
8509 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8510
8511         ftoastr: fix comment
8512         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8513         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8514
8515 2010-12-19  Bruno Haible  <bruno@clisp.org>
8516
8517         isnan: Ensure it is a macro.
8518         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8519         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
8520         Solaris.
8521
8522 2010-12-19  Bruno Haible  <bruno@clisp.org>
8523
8524         ldexpl test: Fix link error on OSF/1 5.1.
8525         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
8526
8527 2010-12-19  Bruno Haible  <bruno@clisp.org>
8528
8529         wctype: Make it work in C++ mode on OSF/1 5.1.
8530         * lib/wctype.in.h (iswblank): Declare but not define here.
8531         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
8532         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
8533         * modules/wctype (Files): Add lib/iswblank.c.
8534
8535 2010-12-19  Bruno Haible  <bruno@clisp.org>
8536
8537         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
8538         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
8539         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
8540
8541 2010-12-19  Bruno Haible  <bruno@clisp.org>
8542
8543         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
8544         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
8545         _POSIX_PII_SOCKET.
8546         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
8547         * doc/posix-functions/recvfrom.texi: Likewise.
8548         * doc/posix-functions/send.texi: Likewise.
8549         * doc/posix-functions/sendto.texi: Likewise.
8550
8551 2010-12-19  Bruno Haible  <bruno@clisp.org>
8552
8553         tcgetsid: Add missing declaration on OSF/1 5.1.
8554         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
8555         HAVE_TCGETSID.
8556         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
8557         Don't set HAVE_TCGETSID.
8558         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
8559         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
8560         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
8561         HAVE_TCGETSID.
8562         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
8563
8564 2010-12-19  Bruno Haible  <bruno@clisp.org>
8565
8566         stdio: Fix problem with popen() declaration on OSF/1 5.1.
8567         * lib/stdio.in.h: During the include_next statement, let recursive
8568         includes of this file include only the system header file.
8569
8570 2010-12-19  Bruno Haible  <bruno@clisp.org>
8571
8572         iconv_open: Fix regression from 2010-12-04.
8573         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
8574         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
8575
8576 2010-12-19  Bruno Haible  <bruno@clisp.org>
8577
8578         stdbool test: Avoid a gcc warning.
8579         * tests/test-stdbool.c (main): Fail if e1 is false.
8580         Reported by Jim Meyering.
8581
8582 2010-12-19  Jim Meyering  <meyering@redhat.com>
8583
8584         setenv: restore to working order
8585         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
8586         mistakenly removed.
8587         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
8588         HAVE_SETENV.
8589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
8590         HAVE_SETENV.
8591
8592 2010-12-19  Bruno Haible  <bruno@clisp.org>
8593
8594         Document some different function declarations on OSF/1 5.1.
8595         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
8596         * doc/posix-functions/inet_ntop.texi: Likewise.
8597         * doc/posix-functions/gethostname.texi: Likewise.
8598         * lib/unistd.in.h (gethostname): Update comment.
8599
8600 2010-12-19  Bruno Haible  <bruno@clisp.org>
8601
8602         doc: Mention vasprintf-posix module.
8603         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
8604         the 'vasprintf-posix' module.
8605         * doc/glibc-functions/vasprintf.texi: Likewise.
8606
8607 2010-12-19  Bruno Haible  <bruno@clisp.org>
8608
8609         unsetenv: Add missing declaration on OSF/1 5.1.
8610         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
8611         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
8612         Don't set HAVE_UNSETENV. In the test program, set _BSD.
8613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
8614         not HAVE_UNSETENV.
8615         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
8616         HAVE_UNSETENV.
8617         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
8618
8619 2010-12-19  Bruno Haible  <bruno@clisp.org>
8620
8621         setenv: Add missing declaration on OSF/1 5.1.
8622         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
8623         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
8624         declared. Don't set HAVE_SETENV.
8625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
8626         not HAVE_SETENV.
8627         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
8628         HAVE_SETENV.
8629         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
8630
8631 2010-12-19  Bruno Haible  <bruno@clisp.org>
8632
8633         nl_langinfo tests: Avoid gcc warning.
8634         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
8635
8636 2010-12-19  Bruno Haible  <bruno@clisp.org>
8637
8638         mknod: Avoid error in C++ mode on OSF/1 with GCC.
8639         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
8640         _GL_CXXALIAS_SYS.
8641
8642 2010-12-19  Bruno Haible  <bruno@clisp.org>
8643
8644         stdbool: Relax test.
8645         * tests/test-stdbool.c (e): Don't require that casts from a variable's
8646         address to 'bool' work in static initializer, for compilers other than
8647         GCC.
8648
8649 2010-12-19  Bruno Haible  <bruno@clisp.org>
8650
8651         ftello: Add missing declaration on OSF/1 5.1.
8652         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
8653         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
8654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
8655         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
8656         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
8657
8658 2010-12-19  Bruno Haible  <bruno@clisp.org>
8659
8660         fseeko: Add missing declaration on OSF/1 5.1.
8661         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
8662         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
8663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
8664         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
8665         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
8666
8667 2010-12-19  Bruno Haible  <bruno@clisp.org>
8668
8669         fchdir: Add missing declaration on OSF/1 5.1.
8670         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
8671         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
8672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
8673         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
8674         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
8675
8676 2010-12-19  Bruno Haible  <bruno@clisp.org>
8677
8678         relocatable-prog-wrapper: Separate from relocatable-prog.
8679         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
8680         uninstall-relocwrapper rule here.
8681         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
8682         Reported by Ian Beckwith <ianb@erislabs.net>.
8683
8684 2010-12-19  Bruno Haible  <bruno@clisp.org>
8685
8686         unistr/u8-mbsnlen: Add missing dependency.
8687         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
8688         Reported by Ian Beckwith <ianb@erislabs.net>.
8689
8690 2010-12-19  Bruno Haible  <bruno@clisp.org>
8691
8692         iconv: Make it possible again to use this module without 'iconv-h'.
8693         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8694         if it is not defined.
8695         Reported by Ian Beckwith <ianb@erislabs.net>.
8696
8697 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8698
8699         acl: port to Solaris 8 when copying from tmpfs to ufs
8700         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8701         error number.  Problem observed on Solaris 8 with latest
8702         coreutils, with "mv A B", where A is on a tmpfs file system and B
8703         is on a ufs file system.  This caused coreutils' mv/part-symlink
8704         test to fail.
8705
8706         tests: set fail=0 at start
8707         * tests/init.sh (setup_): Move fail=0 initialization here ...
8708         (mktempd_): ... from here, so that tests can rely on fail being
8709         set to 0 initially.  This fixes a problem in coreutils; see:
8710         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8711
8712 2010-12-18  Bruno Haible  <bruno@clisp.org>
8713
8714         memmem-simple: Stylistic changes.
8715         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8716         Fix preprocessor directive indentation.
8717
8718 2010-12-15  Pádraig Brady <P@draigBrady.com>
8719
8720         memmem, memmem-simple: reorganize and expand empty needle check
8721         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8722         functional checks to memmem-simple so that one has a fully functional
8723         memmem by using just this module.
8724         Restrict the performance only check to the memmem module.
8725         Also expand the empty needle check to ensure the correct
8726         pointer is returned, not just a non NULL pointer.
8727         * doc/glibc-functions/memmem.texi: Rearrange the portability
8728         documentation to correlate with the rearranged checks.
8729         Clarify exactly how the memmem and memmem-simple modules
8730         relate to each other.
8731
8732 2010-12-15  Pádraig Brady <P@draigBrady.com>
8733             Bruno Haible  <bruno@clisp.org>
8734
8735         Improve cross-compilation guesses for uClibc.
8736         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8737         that uClibc does not have the glibc bug.
8738         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8739         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8740
8741 2010-12-14  Eric Blake  <eblake@redhat.com>
8742
8743         configmake: provide fallbacks for oldest supported autotools
8744         * m4/configmake.m4: New file.
8745         * modules/configmake (Files): Ship it.
8746         (configure.ac): Use it to guarantee fallbacks.
8747
8748 2010-12-13  Pádraig Brady <P@draigBrady.com>
8749
8750         read-file: Improve handling of large files
8751         * lib/read-file.c (fread_file): Minimize realloc()s
8752         for regular files, and better manage sizes around SIZE_MAX.
8753
8754 2010-12-13  Eric Blake  <eblake@redhat.com>
8755
8756         cloexec, fcntl: relax license
8757         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8758         consent from all contributors.
8759         * modules/fcntl (License): Likewise.
8760
8761 2010-12-10  Bruno Haible  <bruno@clisp.org>
8762
8763         Tests for module 'pipe-posix'.
8764         * modules/pipe-posix-tests: New file.
8765         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8766
8767 2010-12-10  Bruno Haible  <bruno@clisp.org>
8768
8769         pipe-posix: Make it work in C++ mode.
8770         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8771         (pipe): Use common idiom, not a macro definition.
8772         * lib/pipe.c: New file.
8773         * m4/pipe.m4: New file.
8774         * modules/pipe-posix (Description): Enhance.
8775         (Files): Add lib/pipe.c, m4/pipe.m4.
8776         (configure.ac): Invoke gl_FUNC_PIPE.
8777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8778         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8779         * tests/test-unistd-c++.cc: Check the signature of pipe.
8780
8781 2010-12-10  Bruno Haible  <bruno@clisp.org>
8782
8783         Rename module 'pipe' to 'spawn-pipe'.
8784         * modules/spawn-pipe: New file, renamed from modules/pipe.
8785         (Files, configure.ac, Makefile.am): Update.
8786         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8787         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8788         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8789         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8790         "spawn-pipe.h" instead of "pipe.h".
8791         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8792         to gl_SPAWN_PIPE.
8793         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
8794         (Files, Makefile.am): Update.
8795         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
8796         Update.
8797         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
8798         Include "spawn-pipe.h" instead of "pipe.h".
8799         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
8800         * lib/javacomp.c: Likewise.
8801         * lib/javaversion.c: Likewise.
8802         * lib/pipe-filter-gi.c: Likewise.
8803         * lib/pipe-filter-ii.c: Likewise.
8804         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
8805         * modules/javacomp (Depends-on): Likewise.
8806         * modules/javaversion (Depends-on): Likewise.
8807         * modules/pipe-filter-gi (Depends-on): Likewise.
8808         * modules/pipe-filter-ii (Depends-on): Likewise.
8809         * MODULES.html.sh (Executing programs): Update.
8810         * NEWS: Mention the change.
8811
8812 2010-12-10  Eric Blake  <eblake@redhat.com>
8813
8814         pipe-posix: new module
8815         * modules/pipe-posix: New file.
8816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
8817         (gl_UNISTD_H): Check for declaration.
8818         * modules/unistd (Makefile.am): Substitute it.
8819         * lib/unistd.in.h (pipe): Provide it for mingw.
8820         * doc/posix-functions/pipe.texi (pipe): Update documentation.
8821         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
8822
8823 2010-12-07  Bruno Haible  <bruno@clisp.org>
8824
8825         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
8826         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
8827         u8_strcmp_gnu.
8828         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
8829
8830 2010-12-06  Bruno Haible  <bruno@clisp.org>
8831
8832         Update internal documentation.
8833         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
8834
8835 2010-12-04  Bruno Haible  <bruno@clisp.org>
8836
8837         Put more information about failed tests into the test return codes.
8838         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
8839         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
8840         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8841         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8842         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8843         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8844         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8845         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8846         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
8847         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8848         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
8849         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8850         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8851         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8852         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
8853         returns a bit mask.
8854         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
8855         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
8856         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
8857         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
8858         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8859         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8860         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8861         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8862         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8863         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8864         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8865         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8866         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8867         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8868         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8869         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8870         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
8871         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
8872         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8873         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
8874         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8875         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8876         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
8877         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8878         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8879         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8880         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
8881         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8882         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8883         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
8884         gl_PRINTF_PRECISION): Likewise.
8885         * m4/regex.m4 (gl_REGEX): Likewise.
8886         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8887         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8888         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
8889         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8890         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8891         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8892         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8893         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
8894         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8895         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8896         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8897         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8898         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8899         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
8900         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8901         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8902         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8903         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8905         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
8906         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
8907         enumerated value.
8908         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
8909
8910 2010-12-04  Bruno Haible  <bruno@clisp.org>
8911
8912         Update for Solaris 11 2010-11.
8913         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
8914         Express, released in November 2010.
8915
8916 2010-12-04  Bruno Haible  <bruno@clisp.org>
8917
8918         nproc: Relax license.
8919         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
8920         and Paul Eggert.
8921         Requested by Ludovic Courtès <ludo@gnu.org>.
8922
8923 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8924
8925         utimecmp: fine-grained src to nearby coarse-grained dest
8926
8927         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
8928         and the source is on a file system with higher-resolution time
8929         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
8930         not work, and the time stamps are close together, the algorithm to
8931         determine the exact resolution from the read-back mtime was buggy:
8932         it had a "!=" where it should have had an "==".  This bug has been
8933         in the code ever since it was introduced to gnulib.
8934         Problem reported by Dan Jacobson in
8935         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
8936
8937 2010-11-30  Bruno Haible  <bruno@clisp.org>
8938
8939         strerror_r-posix: Fix autoconf test.
8940         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
8941
8942 2010-11-28  Bruno Haible  <bruno@clisp.org>
8943             Paul Eggert  <eggert@cs.ucla.edu>
8944
8945         Tests for module 'getdomainname'.
8946         * modules/getdomainname-tests: New file.
8947         * tests/test-getdomainname.c: New file, based on
8948         tests/test-gethostname.c.
8949
8950 2010-11-28  Bruno Haible  <bruno@clisp.org>
8951             Paul Eggert  <eggert@cs.ucla.edu>
8952
8953         getdomainname: Use the system function when possible.
8954         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
8955         (getdomainname): Replace if needed. Provide the declaration if it is
8956         missing. Don't use _GL_CXXALIAS_SYS_CAST.
8957         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
8958         (getdomainname): When the system has getdomainname, call the system
8959         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
8960         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8961         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
8962         found in libnsl. Look for the declaration also in <netdb.h>. Replace
8963         the function if its second argument is of type 'int' or if it is found
8964         in libnsl.
8965         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
8966         <sys/systeminfo.h> and sysinfo().
8967         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
8968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8969         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
8970         HAVE_GETDOMAINNAME.
8971         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
8972         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
8973         * doc/glibc-functions/getdomainname.texi: Document the problems with
8974         the getdomainname declaration.
8975
8976 2010-11-28  Bruno Haible  <bruno@clisp.org>
8977
8978         sys_socket: Ensure ss_family field on AIX.
8979         * lib/sys_socket.in.h (ss_family): New macro definition.
8980         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
8981         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
8982         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8983         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8984         * modules/sys_socket (Makefile.am): Substitute
8985         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8986         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
8987
8988 2010-11-27  Bruno Haible  <bruno@clisp.org>
8989
8990         readline: Improve configure output.
8991         * m4/readline.m4 (gl_FUNC_READLINE): Make the
8992         "checking for readline..." result understandable.
8993
8994 2010-11-27  Bruno Haible  <bruno@clisp.org>
8995
8996         *printf-posix: Detect a bug on Solaris 10/x86.
8997         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
8998         for floating-point output.
8999         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9000         directive.
9001         * tests/test-snprintf-posix.h (test_function): Likewise.
9002         * tests/test-sprintf-posix.h (test_function): Likewise.
9003         * tests/test-vasprintf-posix.c (test_function): Likewise.
9004         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9005         * doc/posix-functions/printf.texi: Likewise.
9006         * doc/posix-functions/snprintf.texi: Likewise.
9007         * doc/posix-functions/sprintf.texi: Likewise.
9008         * doc/posix-functions/vfprintf.texi: Likewise.
9009         * doc/posix-functions/vprintf.texi: Likewise.
9010         * doc/posix-functions/vsnprintf.texi: Likewise.
9011         * doc/posix-functions/vsprintf.texi: Likewise.
9012         * doc/glibc-functions/obstack_printf.texi: Likewise.
9013         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9014
9015 2010-11-27  Bruno Haible  <bruno@clisp.org>
9016
9017         Fix link error when module libunistring-optional is in use.
9018         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9019         * modules/striconveha-tests (Makefile.am): Likewise.
9020
9021 2010-11-27  Bruno Haible  <bruno@clisp.org>
9022
9023         regex: Mention link dependencies.
9024         * modules/regex (Link): New section.
9025         * modules/rpmatch (Link): Likewise.
9026         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9027
9028 2010-11-27  Bruno Haible  <bruno@clisp.org>
9029
9030         ftoastr: Fix compilation error on Solaris.
9031         * lib/ftoastr.c: Include <config.h>.
9032
9033 2010-11-27  Bruno Haible  <bruno@clisp.org>
9034
9035         getloadavg: Update documentation.
9036         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9037
9038 2010-11-27  Bruno Haible  <bruno@clisp.org>
9039
9040         sys_socket: Fix test whether the functions are declared.
9041         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9042         not <sys/select.h>.
9043
9044 2010-11-27  Bruno Haible  <bruno@clisp.org>
9045
9046         getpass: Make sure to get system declaration on some platforms.
9047         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9048         gl_USE_SYSTEM_EXTENSIONS.
9049         * modules/getpass (Depends-on): Add extensions.
9050
9051 2010-11-26  Bruno Haible  <bruno@clisp.org>
9052
9053         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9054         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9055         'iconv' module is present.
9056         (ICONV_CONST): New macro.
9057         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9058         ICONV_CONST.
9059         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9060         set ICONV_CONST.
9061         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9062         here.
9063         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9064         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9065         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9066         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9067         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9068         present.
9069
9070 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9071
9072         ftoastr: comment fix
9073         * lib/ftoastr.c: "little" -> "little or no" in comment
9074
9075 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9076
9077         stdint: port to GCC 4.3 + OSX + Octave
9078         On this platform, stdint.h is buggy and defines int64_t to long
9079         long int.  The replacement defined it to long int, causing
9080         problems with C++ style name mangling.  Instead, trust the system
9081         definition if INT64_MAX is defined, and likewise for the unsigned
9082         variant.   Problem reported by Jarno Rajahalme in
9083         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9084         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9085         and don't mess with int64_t and INT64_MAX in this case.
9086         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9087
9088 2010-11-24  Bruno Haible  <bruno@clisp.org>
9089
9090         doc: Corrections regarding MacOS X 10.4 and 10.5.
9091         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9092         MacOS X.
9093         Reported by Simon Josefsson.
9094
9095 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9096
9097         Uninstall ".bin" files installed by relocwrapper.
9098         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9099         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9100         unless it is already there.
9101
9102 2010-11-21  Bruno Haible  <bruno@clisp.org>
9103
9104         Update for NetBSD 5.0.
9105         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9106         NetBSD; the test fails on NetBSD 5.0.
9107         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9108         about NetBSD.
9109
9110 2010-11-21  Bruno Haible  <bruno@clisp.org>
9111
9112         Update for HP-UX 11.23 and HP-UX 11.31.
9113         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9114         HP-UX.
9115
9116 2010-11-21  Bruno Haible  <bruno@clisp.org>
9117
9118         Update for MacOS X 10.5.
9119         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9120         MacOS X; the test fails on MacOS X 10.5.8.
9121         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9122         about MacOS X.
9123
9124 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9125
9126         bootstrap: add bootstrap_sync option.
9127         See discussion at
9128         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9129         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9130         * build-aux/bootstrap: Accept --bootstrap-sync to update
9131         bootstrap if it is not identical to the local gnulib's
9132         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9133         enable this by default.  Accept --no-bootstrap-sync to disable
9134         it.
9135
9136 2010-11-20  Bruno Haible  <bruno@clisp.org>
9137
9138         Ensure that <features.h> is included before __GLIBC__ is tested.
9139         * lib/printf-parse.h: Include <features.h>.
9140         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9141         Reported by Mike Frysinger <vapier@gentoo.org>.
9142
9143         Ensure that <features.h> is included before __GLIBC__ is tested.
9144         * lib/wchar.in.h: Include <features.h>.
9145         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9146         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9147         Reported by Mike Frysinger <vapier@gentoo.org>.
9148
9149         Ensure that <features.h> is included before __GLIBC__ is tested.
9150         * lib/arpa_inet.in.h: Include <features.h>.
9151         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9152         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9153         Reported by Mike Frysinger <vapier@gentoo.org>.
9154
9155         Ensure that <features.h> is included before __GLIBC__ is tested.
9156         * build-aux/link-warning.h: Include <features.h>.
9157         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9158         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9159         Reported by Mike Frysinger <vapier@gentoo.org>.
9160
9161         Ensure that <features.h> is included before __GLIBC__ is tested.
9162         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9163         Reported by Mike Frysinger <vapier@gentoo.org>.
9164
9165 2010-11-20  Bruno Haible  <bruno@clisp.org>
9166
9167         memmem: Fix autoconf test.
9168         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9169
9170 2010-11-20  Bruno Haible  <bruno@clisp.org>
9171
9172         Port to uClibc.
9173         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9174         * lib/fcntl.in.h: Likewise.
9175         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9176         * lib/mbrtowc.c (mbrtowc): Likewise.
9177         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9178         * lib/strerror_r.c: Likewise.
9179         * lib/unistr/u8-strnlen.c: Likewise.
9180         * lib/vasnprintf.c (decimal_point_char): Likewise.
9181         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9182         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9183         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9184         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9185         * tests/test-sigaction.c (handler, main): Likewise.
9186         * lib/freading.h: Treat uClibc like a non-glibc platform.
9187         * lib/freading.c: Likewise.
9188         * lib/gettext.h: Likewise.
9189         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9190         Likewise.
9191         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9192         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9193         * lib/propername.c (proper_name_utf8): Likewise.
9194         * lib/spawn.in.h: Likewise.
9195         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9196         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9197         mem_cd_iconveh_internal): Likewise.
9198         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9199         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9200         strstr, strcasestr): Likewise.
9201         * lib/unicodeio.c (unicode_to_mb): Likewise.
9202         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9203         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9204         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9205         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9206         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9207         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9208         * lib/unistr/u8-stpncpy.c: Likewise.
9209         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9210         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9211         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9212         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9213         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9214         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9215         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9216         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9217         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9218         Likewise.
9219         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9220         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9221         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9222         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9223         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9224         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9225         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9226         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9227         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9228         * tests/test-striconveha.c (main): Likewise.
9229         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9230         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9231         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9232         * doc/posix-functions/getline.texi: Likewise.
9233         Reported by Mike Frysinger <vapier@gentoo.org>.
9234
9235 2010-11-20  Bruno Haible  <bruno@clisp.org>
9236
9237         nproc: Fix condition.
9238         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9239         HAVE_PTHREAD_AFFINITY_NP.
9240
9241 2010-11-20  Bruno Haible  <bruno@clisp.org>
9242
9243         Fix a comment.
9244         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9245
9246 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9247
9248         ftoastr: don't assume snprintf
9249         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9250         Implement a subset of snprintf here, by using sprintf safely.
9251         * modules/ftoastr (Depends-on): Remove snprintf.
9252
9253 2010-11-19  Jim Meyering  <meyering@redhat.com>
9254
9255         test-rename.h: fix compilation failure
9256         * tests/test-rename.h (test_rename): Add omitted "}".
9257
9258 2010-11-17  Jim Meyering  <meyering@redhat.com>
9259
9260         maint.mk: add a URL discussing the no-@acronym policy
9261         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9262
9263 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9264
9265         ftoastr: depend on snprintf, improve comments
9266         * lib/ftoastr.c: Also mention Loitsch's draft.
9267         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9268         needed in the current implementation, but it might simplify
9269         speeding up the code later.
9270         * modules/ftoastr: Depend on snprintf; this improves portability.
9271         Suggested by Bruno Haible in the same email.
9272
9273         ftoastr: port to hosts lacking strtof and strtold
9274         Problem reported by Bruno Haible in
9275         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9276         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9277         environment and strtold (and presumably strtof) are not available.
9278         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9279         (configure.ac): Require gl_C99_STRTOLD.
9280
9281 2010-11-18  Bruno Haible  <bruno@clisp.org>
9282
9283         c-strtold: Avoid link error on AIX 7.
9284         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9285         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9286         (gl_C_STRTOLD): Test whether strtold_l exists.
9287         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9288
9289 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9290
9291         intprops: new macro INT_BITS_STRLEN_BOUND
9292         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9293         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9294         not exposed.  Also, it uses a slightly tighter bound than before;
9295         though this makes no practical difference, we might as well be as
9296         tight as we easily can.
9297
9298         ftoastr: new module, for lossless conversion of floats to short strings
9299         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9300         * modules/ftoastr: New files.
9301
9302 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9303
9304         bootstrap: port to Solaris sed
9305         * build-aux/bootstrap (get_version): Port to Solaris sed.
9306         See Ralf Wildenhues's note in
9307         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9308
9309 2010-11-14  Jim Meyering  <meyering@redhat.com>
9310
9311         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9312         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9313         and move definition closer to sole use.
9314
9315 2010-11-13  Jim Meyering  <meyering@redhat.com>
9316
9317         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9318         Now we require at least autoconf-2.59, which means the work-around
9319         is no longer needed.
9320         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9321         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9322         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9323         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9324         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9325
9326 2010-11-13  Bruno Haible  <bruno@clisp.org>
9327
9328         rename, renameat: Avoid test failures at NFS mounted locations.
9329         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9330         functions.
9331         (test_rename): Use assert_nonexistent.
9332         * tests/test-rename.c: Include <dirent.h>.
9333         * tests/test-renameat.c: Likewise.
9334         Reported by Gary V. Vaughan <gary@gnu.org>.
9335
9336         rename, renameat: Document Linux bug with NFS
9337         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9338         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9339         * doc/posix-functions/renameat.texi: Likewise.
9340         Suggested by Eric Blake.
9341
9342 2010-11-13  Bruno Haible  <bruno@clisp.org>
9343
9344         rename test: Add comments.
9345         * tests/test-rename.h (test_rename): Add structure and comments.
9346
9347 2010-11-13  Eric Blake  <eblake@redhat.com>
9348
9349         maintainer-makefile: cover a few more files
9350         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9351         scripts generated within C files, for libvirt.
9352
9353 2010-11-13  Bruno Haible  <bruno@clisp.org>
9354
9355         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9356         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9357         character, return the number of bytes that belong together, not always
9358         1.
9359         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9360         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9361         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9362         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9363         number of bytes of an invalid character.
9364         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9365         (main): Invoke it.
9366         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9367         results.
9368         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9369         malformed byte sequences.
9370         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9371         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9372         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9373         Reported by Ben Pfaff and Paolo Bonzini.
9374
9375 2010-11-13  Bruno Haible  <bruno@clisp.org>
9376
9377         openat: Work around glibc bug with fchownat() and empty file names.
9378         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9379         (gl_FUNC_FCHOWNAT): Invoke it.
9380         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9381         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9382         Reported by Gary V. Vaughan <gary@gnu.org>.
9383
9384 2010-11-13  Bruno Haible  <bruno@clisp.org>
9385
9386         openat: Ensure autoconf macro ordering.
9387         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9388         gl_USE_SYSTEM_EXTENSIONS.
9389         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9390
9391 2010-11-13  Bruno Haible  <bruno@clisp.org>
9392
9393         Update comments.
9394         * lib/unistr/u8-check.c: Update file name in comments.
9395         * lib/unistr/u8-mblen.c: Likewise.
9396         * lib/unistr/u8-prev.c: Likewise.
9397         * lib/unistr/u8-strmblen.c: Likewise.
9398         * lib/unistr/u8-strmbtouc.c: Likewise.
9399
9400 2010-11-13  Jim Meyering  <meyering@redhat.com>
9401
9402         tests: avoid test failure on Solaris 10 due to lack of PATH export
9403         * tests/test-update-copyright.sh: Don't forget to export PATH.
9404
9405         init.sh: ensure that IFS is defined, just in case...
9406         * tests/init.sh (setup_): Ensure that IFS is defined,
9407         so that saving and restoring it works as expected.  This
9408         appears to be useful at least for an old version of dash
9409         from a long time ago (RH 6).  See here for details:
9410         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9411
9412         maint.mk: tighten "test a == b" check
9413         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9414         test to files that contain something like #!/bin/sh.
9415         Without this, coreutils would get two false positives in
9416         the comments of C source files.
9417
9418 2010-11-12  Eric Blake  <eblake@redhat.com>
9419
9420         bootstrap: fix typo in previous attempt
9421         * build-aux/bootstrap (buildreq): Correct the grouping.
9422         Reported by Paul Eggert.
9423
9424         maintainer-makefile: prohibit test x == x
9425         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9426         Based on a report by Matthias Bolte.
9427
9428         bootstrap: allow FreeBSD gzip
9429         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9430         which has no '.' and goes to stderr.
9431         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9432         Reported by Matthias Bolte.
9433
9434         maintainer-makefile: check for i18n setup
9435         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9436         will likely work.
9437
9438 2010-11-12  Bruno Haible  <bruno@clisp.org>
9439
9440         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9441         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9442         * lib/nanosleep.c (nanosleep): Likewise.
9443
9444 2010-11-11  Bruno Haible  <bruno@clisp.org>
9445
9446         fcntl-h: Fix for use of C++ on glibc systems.
9447         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9448         also on glibc systems in C++ mode.
9449         Reported by Gary V. Vaughan <gary@gnu.org>.
9450
9451 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9452
9453         mknod: avoid false failure with dash
9454         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9455
9456 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9457
9458         unlink: Fix "is it should" typo in diagnostic.
9459         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9460         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9461
9462 2010-11-11  Bruno Haible  <bruno@clisp.org>
9463
9464         Tests for module 'strerror_r-posix'.
9465         * modules/strerror_r-posix-tests: New file.
9466         * tests/test-strerror_r.c: New file.
9467         * tests/test-string-c++.cc: Check the signature of strerror_r.
9468
9469         New module 'strerror_r-posix'.
9470         * lib/string.in.h (strerror_r): New declaration.
9471         * lib/strerror_r.c: New file.
9472         * m4/strerror_r.m4: New file.
9473         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9474         of strerror_r.
9475         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9476         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9477         * modules/strerror_r-posix: New file.
9478         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9479         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9480         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9481         portability problems.
9482
9483 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9484
9485         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9486         line is also considered for output. Quoted function name in shell
9487         command, so temporary files for functions like MyClass::operator()
9488         are removed correctly without errors.
9489
9490 2010-11-09  Bruno Haible  <bruno@clisp.org>
9491
9492         * doc/posix-functions/strerror.texi: List more failing platforms.
9493
9494         * doc/posix-functions/strerror.texi: Add a comment.
9495
9496 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9497
9498         fdopendir: fix bug on MacOS X when low on file descriptors
9499
9500         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9501         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9502         All callers changed.
9503         (fdopendir): Invoke save_cwd at the top level, not after using
9504         multiple dup() calls to use up file descriptors.  Then retry
9505         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9506         less than the maximum number of open file descriptors, because
9507         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9508         on Mac OS X 10.6.4 for tar 1.24
9509         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9510         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9511         and for tar 1.25
9512         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9513
9514 2010-11-07  Bruno Haible  <bruno@clisp.org>
9515
9516         vasnprintf: Support I flag on glibc systems.
9517         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9518         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9519         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
9520         snprintf function.
9521         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9522         glibc systems.
9523         * tests/test-vasnprintf-posix3.c: New file.
9524         * modules/vasnprintf-posix-tests (Files): Add it.
9525         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
9526
9527 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9528
9529         [html] Fix copy/paste bug: Use unique name for compiler warnings.
9530         * MODULES.html.sh: For compiler warnings, use name
9531         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
9532
9533 2010-11-05  Eric Blake  <eblake@redhat.com>
9534
9535         ceil, floor: avoid spurious failure with icc
9536         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
9537         [denormals-as-zero] when optimizing without -mieee-fp option.
9538         * tests/test-floorf2.c (floorf_reference): Likewise.
9539         * tests/test-ceilf1.c (dummy): New function.
9540         (main): Use it to outsmart icc's optimization.
9541         * tests/test-floorf1.c (dummy, main): Likewise.
9542
9543         tests: require working signbit
9544         * modules/ceilf-tests (Depends-on): Add signbit.
9545         * modules/ceill-tests (Depends-on): Likewise.
9546         * modules/floorf-tests (Depends-on): Likewise.
9547         * modules/floorl-tests (Depends-on): Likewise.
9548         * modules/round-tests (Depends-on): Likewise.
9549         * modules/roundf-tests (Depends-on): Likewise.
9550         * modules/roundl-tests (Depends-on): Likewise.
9551         * modules/trunc-tests (Depends-on): Likewise.
9552         * modules/truncf-tests (Depends-on): Likewise.
9553         * modules/truncl-tests (Depends-on): Likewise.
9554
9555         strtod: work around icc bug
9556         * lib/strtod.c (minus_zero): Define to working value.
9557         (strtod): Use it to avoid icc bug.
9558
9559         copysign: enhance tests
9560         * modules/copysign-tests (Files): Add minus-zero.h.
9561         * tests/test-copysign.c (main): Also test zeros.
9562
9563 2010-11-04  Eric Blake  <eblake@redhat.com>
9564
9565         ceil, floor, round, trunc: enhance tests of -0
9566         * tests/test-ceilf1.c (main): Ensure correct sign of result.
9567         * tests/test-ceill.c (main): Likewise.
9568         * tests/test-floorf1.c (main): Likewise.
9569         * tests/test-floorl.c (main): Likewise.
9570         * tests/test-round1.c (main): Likewise.
9571         * tests/test-roundf1.c (main): Likewise.
9572         * tests/test-roundl.c (main): Likewise.
9573         * tests/test-trunc1.c (main): Likewise.
9574         * tests/test-truncf1.c (main): Likewise.
9575         * tests/test-truncl.c (main): Likewise.
9576
9577 2010-11-04  Eric Blake  <eblake@redhat.com>
9578
9579         frexp, tests: work around ICC bug with -zero
9580         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
9581         works with more compilers.
9582         * tests/minus-zero.h: New file.
9583         * modules/ceilf-tests (Files): Include it.
9584         * modules/ceill-tests (Files): Likewise.
9585         * modules/floorf-tests (Files): Likewise.
9586         * modules/floorl-tests (Files): Likewise.
9587         * modules/frexp-nolibm-tests (Files): Likewise.
9588         * modules/frexp-tests (Files): Likewise.
9589         * modules/frexpl-nolibm-tests (Files): Likewise.
9590         * modules/frexpl-tests (Files): Likewise.
9591         * modules/isnan-tests (Files): Likewise.
9592         * modules/isnand-nolibm-tests (Files): Likewise.
9593         * modules/isnand-tests (Files): Likewise.
9594         * modules/isnanf-nolibm-tests (Files): Likewise.
9595         * modules/isnanf-tests (Files): Likewise.
9596         * modules/isnanl-nolibm-tests (Files): Likewise.
9597         * modules/isnanl-tests (Files): Likewise.
9598         * modules/round-tests (Files): Likewise.
9599         * modules/roundf-tests (Files): Likewise.
9600         * modules/roundl-tests (Files): Likewise.
9601         * modules/ldexpl-tests (Files): Likewise.
9602         * modules/signbit-tests (Files): Likewise.
9603         * modules/snprintf-posix-tests (Files): Likewise.
9604         * modules/sprintf-posix-tests (Files): Likewise.
9605         * modules/strtod-tests (Files): Likewise.
9606         * modules/trunc-tests (Files): Likewise.
9607         * modules/truncf-tests (Files): Likewise.
9608         * modules/truncl-tests (Files): Likewise.
9609         * modules/vsnprintf-posix-tests (Files): Likewise.
9610         * modules/vsprintf-posix-tests (Files): Likewise.
9611         * modules/vasnprintf-posix-tests (Files): Likewise.
9612         * modules/vasprintf-posix-tests (Files): Likewise.
9613         * tests/test-ceilf1.c (main): Use it.
9614         * tests/test-ceill.c (main): Likewise.
9615         * tests/test-floorf1.c (main): Likewise.
9616         * tests/test-floorl.c (main): Likewise.
9617         * tests/test-frexp.c (main): Likewise.
9618         * tests/test-frexpl.c (main): Likewise.
9619         * tests/test-isnan.c (main): Likewise.
9620         * tests/test-isnand.h (main): Likewise.
9621         * tests/test-isnanf.h (main): Likewise.
9622         * tests/test-isnanl.h (main): Likewise.
9623         * tests/test-ldexpl.c (main): Likewise.
9624         * tests/test-round.c (main): Likewise.
9625         * tests/test-roundf.c (main): Likewise.
9626         * tests/test-roundl.c (main): Likewise.
9627         * tests/test-signbit.c (test_signbitf, test_signbitd)
9628         (test_signbitl): Likewise.
9629         * tests/test-snprintf-posix.h (test_function): Likewise.
9630         * tests/test-sprintf-posix.h (test_function): Likewise.
9631         * tests/test-strtod.c (main): Likewise.
9632         * tests/test-trunc1.c (main): Likewise.
9633         * tests/test-truncf1.c (main): Likewise.
9634         * tests/test-truncl.c (main): Likewise.
9635
9636         isnanl: work around icc bug
9637         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
9638
9639 2010-11-03  Eric Blake  <eblake@redhat.com>
9640
9641         tests: fix compiler warnings
9642         * tests/test-getopt.h (test_getopt): Fix condition.
9643         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9644         * tests/test-pipe2.c (main): Likewise.
9645         * tests/test-quotearg-simple.c (main): Avoid icc warning.
9646
9647         utimens: fix broken m4 test
9648         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
9649
9650 2010-10-28  Bruno Haible  <bruno@clisp.org>
9651
9652         posix_spawn*, getdtablesize: Relax license.
9653         * modules/posix_spawn (License): Change to LGPLv2+.
9654         * modules/posix_spawnp (License): Likewise.
9655         * modules/posix_spawn-internal (License): Likewise.
9656         * modules/posix_spawnattr_init (License): Likewise.
9657         * modules/posix_spawnattr_getflags (License): Likewise.
9658         * modules/posix_spawnattr_setflags (License): Likewise.
9659         * modules/posix_spawnattr_getpgroup (License): Likewise.
9660         * modules/posix_spawnattr_setpgroup (License): Likewise.
9661         * modules/posix_spawnattr_getschedparam (License): Likewise.
9662         * modules/posix_spawnattr_setschedparam (License): Likewise.
9663         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
9664         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
9665         * modules/posix_spawnattr_getsigdefault (License): Likewise.
9666         * modules/posix_spawnattr_setsigdefault (License): Likewise.
9667         * modules/posix_spawnattr_getsigmask (License): Likewise.
9668         * modules/posix_spawnattr_setsigmask (License): Likewise.
9669         * modules/posix_spawnattr_destroy (License): Likewise.
9670         * modules/posix_spawn_file_actions_init (License): Likewise.
9671         * modules/posix_spawn_file_actions_addclose (License): Likewise.
9672         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
9673         * modules/posix_spawn_file_actions_addopen (License): Likewise.
9674         * modules/posix_spawn_file_actions_destroy (License): Likewise.
9675         * modules/getdtablesize (License): Likewise.
9676         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
9677
9678 2010-10-26  Bruno Haible  <bruno@clisp.org>
9679
9680         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
9681         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
9682         Cygwin and mingw.
9683         Suggested by Eric Blake.
9684
9685 2010-10-26  Bruno Haible  <bruno@clisp.org>
9686
9687         stdio: Work around compilation error due to renameat() on Solaris 10.
9688         * lib/stdio.in.h: Include <unistd.h> on Solaris.
9689         * lib/renameat.c: Don't include <unistd.h> here.
9690         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9691         Reported by Paul Eggert and Eric Blake.
9692
9693 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9694
9695         renameat: port to Solaris 10, which declares renameat in unistd.h
9696
9697         * lib/renameat.c: Include unistd.h before stdio.h, because
9698         Solaris 10 declares renameat in unistd.h.  Problem encountered
9699         when building GNU tar 1.24 on Solaris 10.
9700
9701 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9702
9703         fdopendir: fix C89 compilation
9704         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9705         compilers.
9706
9707 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9708
9709         inttostr: simplify by removing unnecessary redundancy
9710         * lib/anytostr.c: Don't include verify.h.
9711         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9712         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9713         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9714         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9715         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9716         Likewise.
9717         * modules/inttostr (Depends-on): Remove 'verify'.
9718
9719 2010-10-23  Bruno Haible  <bruno@clisp.org>
9720
9721         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9722         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9723         Reported by Eric Blake.
9724
9725 2010-10-23  Bruno Haible  <bruno@clisp.org>
9726
9727         Tests: Fix LOCALE_JA on MirBSD 10.
9728         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9729         to an UTF-8 locale.
9730         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9731         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9732         Reported by Eric Blake.
9733
9734 2010-10-21  Bruno Haible  <bruno@clisp.org>
9735
9736         nl_langinfo test: Avoid test failure on NetBSD 5.
9737         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9738         Reported by Eric Blake.
9739
9740 2010-10-21  Eric Blake  <eblake@redhat.com>
9741
9742         c-stack: work around libsigsegv 2.8 bug
9743         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9744         overflow on at least PowerPC64.
9745
9746 2010-10-17  Bruno Haible  <bruno@clisp.org>
9747
9748         userspec: Drop redundant file.
9749         * modules/userspec (Files): Remove lib/inttostr.h.
9750
9751 2010-10-17  Bruno Haible  <bruno@clisp.org>
9752
9753         nl_langinfo tests: Silence some warnings.
9754         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9755         Reported by Jim Meyering.
9756
9757 2010-10-17  Bruno Haible  <bruno@clisp.org>
9758
9759         Make use of GCC's attribute __alloc_size__.
9760         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9761         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9762         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9763         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9764         __alloc_size__.
9765         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9766         Suggested by Jim Meyering.
9767
9768 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9769
9770         bootstrap: anchor .gitignore entries.
9771         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9772         with...
9773         (insert_vc_ignore): ... this new function, which prepends `/' to
9774         all .gitignore entries before passing them to
9775         insert_sorted_if_absent.
9776
9777 2010-10-16  Bruno Haible  <bruno@clisp.org>
9778
9779         nextafter: Fix configure check.
9780         * modules/nextafter (configure.ac): Correct expected prototype.
9781
9782 2010-10-16  Bruno Haible  <bruno@clisp.org>
9783
9784         termios: Update documentation.
9785         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9786
9787 2010-10-16  Bruno Haible  <bruno@clisp.org>
9788
9789         tests: Make them compile with TinyCC.
9790         * tests/test-strstr.c (main): Remove parentheses around array
9791         initializer.
9792
9793 2010-10-15  Eric Blake  <eblake@redhat.com>
9794
9795         ignore-value: make header idempotent
9796         * lib/ignore-value.h: Add double-inclusion guards.
9797         Reported by Stefan Berger.
9798
9799 2010-10-15  Jim Meyering  <meyering@redhat.com>
9800
9801         GNUmakefile: handle "stable" target, not "major"
9802         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
9803         lists in maint.mk and announce-gen.  Without this, "make stable"
9804         would fail to ensure that $(VERSION) is up to date.
9805
9806 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
9807
9808         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
9809         & co.
9810
9811 2010-10-14  Bruno Haible  <bruno@clisp.org>
9812
9813         vasnprintf: Don't set errno to 0.
9814         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
9815         block that sets it to 0.
9816         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
9817
9818 2010-10-14  Bruno Haible  <bruno@clisp.org>
9819
9820         socketlib: Fix.
9821         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
9822         gl_PREREQ_SYS_H_WINSOCK2.
9823         Reported by Ian Beckwith <ianb@erislabs.net>.
9824
9825 2010-10-13  Jim Meyering  <meyering@redhat.com>
9826
9827         test-select-stdin.c: avoid warn_unused_result warnings
9828         * tests/test-select-stdin.c: Include "macros.h".
9829         ASSERT that read and fflush succeed.
9830
9831 2010-10-13  Jim Meyering  <meyering@redhat.com>
9832
9833         git-version-gen: do require git-VC'd files in cwd
9834         * build-aux/git-version-gen: Reject a git version string
9835         if there are no commits associated with the current directory.
9836         This avoids an unlikely false-positive (unrelated dir whose parent
9837         repository also contains a tag matching v*), as pointed out
9838         by Giuseppe Scrivano in
9839         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
9840
9841 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9842
9843         argv-iter: omit nonconforming declaration
9844         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
9845         enum arg_iter_err declaration, which doesn't conform to C99.
9846         Solaris 10 cc warns about this.
9847
9848 2010-10-13  Eric Blake  <eblake@redhat.com>
9849
9850         termios: fix compilation on mingw
9851         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
9852         (gl_TERMIOS_H): Adjust it on mingw.
9853         * modules/termios (Makefile.am): Substitute new key.
9854         * lib/termios.in.h (includes): Make include_next conditional.
9855         * doc/posix-headers/termios.texi (termios.h): Update
9856         documentation.
9857         Reported by Daniel P. Berrange.
9858
9859 2010-10-13  Jim Meyering  <meyering@redhat.com>
9860
9861         git-version-gen: don't require that .git/ be in the current dir
9862         * build-aux/git-version-gen: Adjust this script so that it works
9863         when run from any working directory beneath the top-level .git/-
9864         containing directory.  Inspired by a patch from Giuseppe Scrivano,
9865         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
9866
9867         test-select: avoid warn_unused_result warnings
9868         * tests/test-select.c: Include "macros.h".
9869         ASSERT that each call to read, write, and pipe succeeds.
9870         While not technically required, also check each "close".
9871         * modules/select-tests (Files): Add tests/macros.h.
9872
9873         test-symlinkat: remove declaration of unused local
9874         * tests/test-symlinkat.c (main): Remove unused local, "buf".
9875
9876         test-inttostr: avoid shadowing warnings
9877         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
9878         and use malloc rather than the stack for the same reason as
9879         mentioned in the comment justifying the other allocation.
9880
9881 2010-10-11  Bruno Haible  <bruno@clisp.org>
9882
9883         stdlib: Allow multiple gnulib generated replacements to coexist.
9884         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
9885         Reported by Sam Steingold <sds@gnu.org>.
9886
9887 2010-10-11  Jim Meyering  <meyering@redhat.com>
9888
9889         fix a documentation typo
9890         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
9891
9892 2010-10-11  Eric Blake  <eblake@redhat.com>
9893
9894         futimens: work around Solaris 11 bug
9895         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
9896         * tests/test-futimens.h (test_futimens): Enhance, rather than
9897         weaken test.
9898         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9899
9900 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9901
9902         Indentation.
9903         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
9904         higher-level operators more to the left.
9905
9906 2010-10-11  Jim Meyering  <meyering@redhat.com>
9907
9908         test-futimens: avoid unwarranted test failure on Solaris 5.11
9909         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
9910         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
9911         because it tries to dereference the NULL name argument.
9912
9913 2010-10-11  Bruno Haible  <bruno@clisp.org>
9914
9915         Indentation.
9916         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
9917         indentation.
9918
9919 2010-10-11  Jim Meyering  <meyering@redhat.com>
9920
9921         spawn.in.h: make indentation consistent with parentheses
9922         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
9923         Make indentation consistent with parentheses.
9924
9925 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
9926
9927         Fix mismatched parens in previous commit
9928         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
9929         parens.
9930
9931 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9932
9933         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
9934
9935         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
9936         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
9937         * lib/malloca.c: Include "verify.h".
9938         (verify1): Remove, replacing with a verify call.
9939         * lib/relocwrapper.c (verify1): Likewise.
9940         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
9941         Likewise.
9942         * modules/malloca (Depends-on): Add 'verify'.
9943         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
9944         * modules/vasnprintf (Depends-on): Add 'verify'.
9945         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9946         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9947         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9948         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9949         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9950         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9951         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9952
9953         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
9954
9955         Formerly the style was sometimes 2*X - 1, because the C standard
9956         was wrongly thought to disallow ?: in integral constant expressions.
9957         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
9958         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
9959         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9960         * lib/stdint.in.h (_verify_intmax_size): Likewise.
9961         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
9962         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
9963         verify that time_t cannot be floating.
9964
9965 2010-10-08  Eric Blake  <eblake@redhat.com>
9966
9967         time: enforce recent POSIX ruling that time_t is integral
9968         * lib/time.in.h (__time_t_must_be_integral): Detect any
9969         problematic systems, allowing the rest of gnulib to assume POSIX.
9970
9971 2010-10-08  Jim Meyering  <meyering@redhat.com>
9972
9973         fdopendir: fix a bug on systems lacking openat and /proc support
9974         OpenBSD 4.7 is one such system.  The most noticeable effect was
9975         failure of any application making nontrivial use of fts: rm, du,
9976         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
9977           ./rm: traversal failed: `a': Bad file descriptor
9978         Debugging that, you see that even though FD 6 was closed just
9979         prior to the opendir call in fd_clone_opendir, its resulting
9980         dir->dd_fd was 8, rather than the expected value of 6:
9981
9982         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
9983         93                close (fd);
9984         (gdb) n
9985         94                dir = fd_clone_opendir (dupfd);
9986         (gdb) n
9987         95                saved_errno = errno;
9988         (gdb) p dir->dd_fd
9989         $11 = 8
9990
9991         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
9992         The problem is that on OpenBSD, fd_clone_opendir has to resort
9993         to using the old-style save/restore CWD mechanism, due to its
9994         lack of openat/proc support, and *that* would steal the FD (6)
9995         that opendir was supposed to use.
9996
9997         The fix is to squirrel away the desired FD so that save_cwd uses a
9998         different one, and then free the dest FD right before calling opendir.
9999         That guarantees opendir will use the required file descriptor.
10000
10001         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10002
10003 2010-10-08  Bruno Haible  <bruno@clisp.org>
10004
10005         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10006         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10007
10008 2010-10-08  Bruno Haible  <bruno@clisp.org>
10009
10010         nanosleep: Make replacement POSIX compliant.
10011         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10012         is out of range.
10013         Reported by Jim Meyering.
10014
10015 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10016
10017         bootstrap: add hook for altering gnulib.mk, for Bison
10018         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10019         the Bison bootstrapping process can rewrite file names and variables
10020         in this file before later parts of 'bootstrap' use the file.
10021         Bison wants to include lib/gnulib.mk from the top-level makefile,
10022         so it needs the file names in this file to be relative to the top
10023         level, not relative to lib; plus it needs variable names to be
10024         rewritten.
10025         (slurp): Use the new function.
10026
10027         bootstrap: reformat for readability
10028         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10029
10030 2010-10-08  Eric Blake  <eblake@redhat.com>
10031
10032         docs: update cygwin progress
10033         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10034         1.7.7.
10035         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10036         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10037         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10038         * doc/posix-functions/carg.texi (carg): Likewise.
10039         * doc/posix-functions/cargf.texi (cargf): Likewise.
10040         * doc/posix-functions/casin.texi (casin): Likewise.
10041         * doc/posix-functions/casinf.texi (casinf): Likewise.
10042         * doc/posix-functions/casinh.texi (casinh): Likewise.
10043         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10044         * doc/posix-functions/catan.texi (catan): Likewise.
10045         * doc/posix-functions/catanf.texi (catanf): Likewise.
10046         * doc/posix-functions/catanh.texi (catanh): Likewise.
10047         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10048         * doc/posix-functions/ccos.texi (ccos): Likewise.
10049         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10050         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10051         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10052         * doc/posix-functions/cexp.texi (cexp): Likewise.
10053         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10054         * doc/posix-functions/cimag.texi (cimag): Likewise.
10055         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10056         * doc/posix-functions/clog.texi (clog): Likewise.
10057         * doc/posix-functions/clogf.texi (clogf): Likewise.
10058         * doc/posix-functions/conj.texi (conj): Likewise.
10059         * doc/posix-functions/conjf.texi (conjf): Likewise.
10060         * doc/posix-functions/cpow.texi (cpow): Likewise.
10061         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10062         * doc/posix-functions/cproj.texi (cproj): Likewise.
10063         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10064         * doc/posix-functions/creal.texi (creal): Likewise.
10065         * doc/posix-functions/crealf.texi (crealf): Likewise.
10066         * doc/posix-functions/csin.texi (csin): Likewise.
10067         * doc/posix-functions/csinf.texi (csinf): Likewise.
10068         * doc/posix-functions/csinh.texi (csinh): Likewise.
10069         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10070         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10071         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10072         * doc/posix-functions/ctan.texi (ctan): Likewise.
10073         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10074         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10075         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10076         * doc/posix-headers/complex.texi (complex.h): Likewise.
10077
10078 2010-10-07  Jim Meyering  <meyering@redhat.com>
10079
10080         parse-datetime: avoid compilation failure on OpenBSD 4.7
10081         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10082         This works around a compilation failure on OpenBSD 4.7:
10083         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10084
10085 2010-10-07  Eric Blake  <eblake@redhat.com>
10086
10087         docs: update cygwin progress
10088         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10089         1.7.6.
10090         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10091         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10092         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10093         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10094         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10095         Likewise.
10096         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10097         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10098         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10099         Likewise.
10100         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10101         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10102         Likewise.
10103         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10104         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10105         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10106         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10107         Likewise.
10108         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10109         Likewise.
10110         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10111
10112         docs: update parse-datetime history
10113         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10114         documentation of this function's history and alternatives.
10115
10116         cygwin: use more robust version check
10117         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10118         exclude an eventual cygwin 1.9.1.
10119         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10120         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10121         (gl_FUNC_STRCASESTR): Likewise.
10122         Reported by Bruno Haible.
10123
10124 2010-10-06  Bruno Haible  <bruno@clisp.org>
10125
10126         string, sys_select: Avoid #including large headers unless necessary.
10127         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10128         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10129         OSF/1, BeOS, Haiku.
10130         Reported by Jim Meyering.
10131
10132 2010-10-05  Eric Blake  <eblake@redhat.com>
10133
10134         memmem, strstr, strcasestr: fix bug with long periodic needle
10135         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10136         periodic needle having false positive.
10137         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10138         and cygwin 1.7.7.
10139         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10141         (gl_FUNC_STRCASESTR): Likewise.
10142         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10143         * tests/test-memmem.c (main): Expose the bug.
10144         * tests/test-strcasestr.c (main): Likewise.
10145         * tests/test-strstr.c (main): Likewise.
10146         * tests/test-c-strcasestr.c (main): Likewise.
10147         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10148         * doc/posix-functions/strstr.texi (strstr): Likewise.
10149         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10150         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10151
10152 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10153
10154         parse-datetime: do some more renaming
10155         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10156         parse_datetime, not get_date.  Mention the renaming.
10157         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10158         in comments.
10159         * m4/bison.m4: Likewise.
10160
10161 2010-10-05  Eric Blake  <eblake@redhat.com>
10162
10163         parse-datetime: better name than get_date
10164         * NEWS: Reword the deprecation notice.
10165         * modules/get_date: Rename to modules/parse-datetime.
10166         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10167         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10168         * lib/get_date.y: Rename to lib/parse-datetime.y.
10169         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10170         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10171         * doc/getdate.texi: Provide fallback wrapper.
10172         * lib/getdate.h: Move guts, and wrap...
10173         * lib/parse-datetime.h: ...new file.
10174         * lib/parse-datetime.y (get_date): Rename...
10175         (parse_datetime): ...to this.
10176         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10177         (gl_PARSE_DATETIME): ...to this.
10178         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10179         documentation.
10180         * modules/getdate (Files): Provide fallback docs and header.
10181         (Notice, Depends-on): Update references.
10182         * tests/test-parse-datetime.c: Likewise.
10183         * DEPENDENCIES: Likewise.
10184         * MODULES.html.sh (Date and time <time.h>): Likewise.
10185         * doc/parse-datetime.texi (Date input formats)
10186         (Authors of parse_datetime): Likewise.
10187         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10188         (Include): Likewise.
10189         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10190         * gnulib-tool: Likewise.
10191         * m4/bison.m4 (gl_BISON): Likewise.
10192         Suggested by Bruno Haible.
10193
10194 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10195
10196         more ports to Solaris tr, which needs [] around ranges
10197         * gnulib-tool: Solaris tr needs [] around ranges.
10198         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10199         * tests/test-pipe-filter-gi1.c (main): Likewise.
10200         * tests/test-pipe-filter-ii1.c (main): Likewise.
10201
10202 2010-10-05  Eric Blake  <eblake@redhat.com>
10203
10204         bootstrap: fix Solaris regression
10205         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10206         around ranges.
10207         Reported by Pádraig Brady.
10208
10209         bootstrap: work with pkg-config
10210         * build-aux/bootstrap (check_versions): Also transliterate - in
10211         prerequisite name.
10212         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10213         prerequisites that were already found, to avoid confusion.
10214         Reported by Justin Clift.
10215
10216         faccessat: remove unused wrappers
10217         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10218         presence of these wrappers dragged in -lgen on Solaris.
10219         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10220
10221 2010-10-05  Jim Meyering  <meyering@redhat.com>
10222
10223         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10224         * Makefile (sc_pragma_columns): New syntax-check rule.
10225
10226 2010-10-04  Bruno Haible  <bruno@clisp.org>
10227
10228         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10229         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10230         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10231         Reported by Bruce Korb and Eric Blake.
10232
10233 2010-10-04  Bruno Haible  <bruno@clisp.org>
10234
10235         threadlib: Make option --with-libpth-prefix work.
10236         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10237         use $LIBPTH, not just -lpth.
10238
10239 2010-10-04  Bruno Haible  <bruno@clisp.org>
10240
10241         Avoid line length limitation from HP NonStop system header files.
10242         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10243         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10244         * lib/ctype.in.h: Likewise.
10245         * lib/dirent.in.h: Likewise.
10246         * lib/errno.in.h: Likewise.
10247         * lib/fcntl.in.h: Likewise.
10248         * lib/float.in.h: Likewise.
10249         * lib/getopt.in.h: Likewise.
10250         * lib/iconv.in.h: Likewise.
10251         * lib/inttypes.in.h: Likewise.
10252         * lib/langinfo.in.h: Likewise.
10253         * lib/locale.in.h: Likewise.
10254         * lib/math.in.h: Likewise.
10255         * lib/netdb.in.h: Likewise.
10256         * lib/netinet_in.in.h: Likewise.
10257         * lib/poll.in.h: Likewise.
10258         * lib/pthread.in.h: Likewise.
10259         * lib/pty.in.h: Likewise.
10260         * lib/sched.in.h: Likewise.
10261         * lib/se-selinux.in.h: Likewise.
10262         * lib/search.in.h: Likewise.
10263         * lib/signal.in.h: Likewise.
10264         * lib/spawn.in.h: Likewise.
10265         * lib/stdarg.in.h: Likewise.
10266         * lib/stddef.in.h: Likewise.
10267         * lib/stdint.in.h: Likewise.
10268         * lib/stdio.in.h: Likewise.
10269         * lib/stdlib.in.h: Likewise.
10270         * lib/string.in.h: Likewise.
10271         * lib/strings.in.h: Likewise.
10272         * lib/sys_file.in.h: Likewise.
10273         * lib/sys_ioctl.in.h: Likewise.
10274         * lib/sys_select.in.h: Likewise.
10275         * lib/sys_socket.in.h: Likewise.
10276         * lib/sys_stat.in.h: Likewise.
10277         * lib/sys_time.in.h: Likewise.
10278         * lib/sys_times.in.h: Likewise.
10279         * lib/sys_utsname.in.h: Likewise.
10280         * lib/sys_wait.in.h: Likewise.
10281         * lib/sysexits.in.h: Likewise.
10282         * lib/termios.in.h: Likewise.
10283         * lib/time.in.h: Likewise.
10284         * lib/unistd.in.h: Likewise.
10285         * lib/wchar.in.h: Likewise.
10286         * lib/wctype.in.h: Likewise.
10287         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10288         * modules/ctype (Makefile.am): Likewise.
10289         * modules/dirent (Makefile.am): Likewise.
10290         * modules/errno (Makefile.am): Likewise.
10291         * modules/fcntl-h (Makefile.am): Likewise.
10292         * modules/float (Makefile.am): Likewise.
10293         * modules/getopt-posix (Makefile.am): Likewise.
10294         * modules/iconv-h (Makefile.am): Likewise.
10295         * modules/inttypes (Makefile.am): Likewise.
10296         * modules/langinfo (Makefile.am): Likewise.
10297         * modules/locale (Makefile.am): Likewise.
10298         * modules/math (Makefile.am): Likewise.
10299         * modules/netdb (Makefile.am): Likewise.
10300         * modules/netinet_in (Makefile.am): Likewise.
10301         * modules/poll-h (Makefile.am): Likewise.
10302         * modules/pthread (Makefile.am): Likewise.
10303         * modules/pty (Makefile.am): Likewise.
10304         * modules/sched (Makefile.am): Likewise.
10305         * modules/search (Makefile.am): Likewise.
10306         * modules/selinux-h (Makefile.am): Likewise.
10307         * modules/signal (Makefile.am): Likewise.
10308         * modules/spawn (Makefile.am): Likewise.
10309         * modules/stdarg (Makefile.am): Likewise.
10310         * modules/stddef (Makefile.am): Likewise.
10311         * modules/stdint (Makefile.am): Likewise.
10312         * modules/stdio (Makefile.am): Likewise.
10313         * modules/stdlib (Makefile.am): Likewise.
10314         * modules/string (Makefile.am): Likewise.
10315         * modules/strings (Makefile.am): Likewise.
10316         * modules/sys_file (Makefile.am): Likewise.
10317         * modules/sys_ioctl (Makefile.am): Likewise.
10318         * modules/sys_select (Makefile.am): Likewise.
10319         * modules/sys_socket (Makefile.am): Likewise.
10320         * modules/sys_stat (Makefile.am): Likewise.
10321         * modules/sys_time (Makefile.am): Likewise.
10322         * modules/sys_times (Makefile.am): Likewise.
10323         * modules/sys_utsname (Makefile.am): Likewise.
10324         * modules/sys_wait (Makefile.am): Likewise.
10325         * modules/sysexits (Makefile.am): Likewise.
10326         * modules/termios (Makefile.am): Likewise.
10327         * modules/time (Makefile.am): Likewise.
10328         * modules/unistd (Makefile.am): Likewise.
10329         * modules/wchar (Makefile.am): Likewise.
10330         * modules/wctype (Makefile.am): Likewise.
10331
10332 2010-10-04  Bruno Haible  <bruno@clisp.org>
10333
10334         read-file tests: Avoid a test failure on NonStop Kernel.
10335         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10336         a regular file.
10337         Reported by Joachim Schmitz <schmitz@hp.com>.
10338
10339 2010-10-03  Bruno Haible  <bruno@clisp.org>
10340
10341         gnulib-tool: Fixes for --create-testdir with --libtool.
10342         * gnulib-tool (func_get_automake_snippet): Don't augment
10343         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10344         an executable.
10345         (func_create_testdir): Handle module 'alloca' like func_import.
10346         Reported by Bruce Korb <bruce.korb@gmail.com>.
10347
10348 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10349
10350         Avoid some lines longer than 80 characters.
10351         * lib/stdint.in.h: Break long comment lines.
10352         * lib/math.in.h: Likewise.
10353         (_GL_NUM_UINT_WORDS): New macro, for readability.
10354         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10355         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10356         * lib/stdlib.in.h: Likewise.
10357         * lib/spawn.in.h: Likewise.
10358         * lib/sys_socket.in.h: Update an URL.
10359         * lib/sys_stat.in.h: Break long line.
10360
10361 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10362
10363         Improve pmccabe2html.
10364         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10365         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10366         when the sources change. Remove the line in the HTML about "Used
10367         ranges" (which implied that there might be other unused ranges),
10368         rename "Resume" to "Summary" (easier to understand for more users).
10369         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10370         styles, and some unnecessary blank lines.
10371
10372 2010-10-03  Bruno Haible  <bruno@clisp.org>
10373             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10374
10375         acl: Add support for ACLs on NonStop Kernel.
10376         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10377         Check whether the function aclsort() exists.
10378         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10379         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10380         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10381         (acl_nontrivial [HAVE_ACLSORT]: New function.
10382         (file_has_acl): Implement for NonStop Kernel.
10383         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10384         (qset_acl): Implement for NonStop Kernel.
10385         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10386         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10387         (main): Implement for NonStop Kernel.
10388         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10389         Kernel. Handle this flavor.
10390         * tests/test-set-mode-acl.sh: Likewise.
10391         * tests/test-copy-acl.sh: Likewise.
10392         * tests/test-copy-file.sh: Likewise.
10393
10394 2010-10-03  Bruno Haible  <bruno@clisp.org>
10395
10396         Info about ACLs on NonStop Kernel.
10397         * doc/acl-resources.txt: Add info about NonStop Kernel.
10398         References by Joachim Schmitz <schmitz@hp.com>.
10399
10400 2010-10-02  Bruno Haible  <bruno@clisp.org>
10401
10402         Define missing EDQUOT on NonStop Kernel.
10403         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10404         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10405         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10406         missing.
10407         * doc/posix-headers/errno.texi: Mention the NSK bug.
10408         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10409         Reported by Joachim Schmitz <schmitz@hp.com>.
10410
10411 2010-10-02  Bruno Haible  <bruno@clisp.org>
10412
10413         Update doc for POSIX:2008.
10414         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10415         Update URL of POSIX specification.
10416
10417 2010-10-02  Bruno Haible  <bruno@clisp.org>
10418
10419         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10420         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10421         from gnulib, not from Automake.
10422
10423 2010-10-02  Bruno Haible  <bruno@clisp.org>
10424
10425         New module 'system-posix'.
10426         * modules/system-posix: New file.
10427         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10428         module is present.
10429         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10430         GNULIB_SYSTEM_POSIX.
10431         * modules/stdlib (Depends-on): Remove sys_wait.
10432         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10433         * doc/posix-functions/system.texi: Mention the new module.
10434         * doc/posix-headers/stdlib.texi: Likewise.
10435         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10436         define test_sys_wait_macros to a no-op.
10437         Reported by Sam Steingold <sds@gnu.org>.
10438
10439 2010-09-30  Bruno Haible  <bruno@clisp.org>
10440
10441         More renaming from 'getdate' to 'get_date'.
10442         * doc/get_date.texi: Renamed from doc/getdate.texi.
10443         * modules/get_date (Files): Update.
10444         * MODULES.html.sh (Date and time <time.h>): Update.
10445         * DEPENDENCIES: Update.
10446         * gnulib-tool: Update comment.
10447         * m4/bison.m4 (gl_BISON): Likewise.
10448         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10449
10450 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10451
10452         bootstrap: support ACLOCAL_FLAGS during aclocal
10453         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10454         can add additional -I dir for third-party .m4 files.
10455
10456 2010-09-30  Eric Blake  <eblake@redhat.com>
10457
10458         bootstrap: use glibtoolize on MacOS
10459         * build-aux/bootstrap (check_versions): Convert libtool into
10460         libtoolize.
10461         (tool search): Move libtool check earlier, and look for
10462         glibtoolize for MacOS.
10463         (gnulib_tool_options): Auto-add --libtool when appropriate.
10464         Reported by Justin Clift.
10465
10466         poll: fix typo that broke test on MacOS
10467         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10468         Reported by Justin Clift.
10469
10470         getdate: rename to get_date
10471         Note: getdate.h is not renamed, to minimize client impact.
10472         * modules/getdate: Mark obsolete.  Move old contents...
10473         * modules/get_date: ...to new module name.
10474         * modules/getdate-tests: Move...
10475         * modules/get_date-tests: ...here.
10476         * m4/getdate.m4: Move...
10477         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10478         * lib/getdate.y: Move...
10479         * lib/get_date.y: ...here.
10480         * tests/test-getdate.c: Move...
10481         * tests/test-get_date.c: ...here.
10482         * doc/posix-functions/getdate.texi (getdate): Update name.
10483         * NEWS: Mention the change.
10484
10485 2010-09-29  Bruno Haible  <bruno@clisp.org>
10486
10487         Separate the module 'waitpid' from the module 'sys_wait'.
10488         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10489         present.
10490         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10491         gl_MODULE_INDICATOR_FOR_TESTS.
10492         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10493         * modules/sys_wait (Depends-on): Remove waitpid.
10494         (Makefile.am): Substitute GNULIB_WAITPID.
10495         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10496         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10497         signature only if the 'waitpid' module is present.
10498         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10499         * NEWS: Mention the change.
10500         * modules/grantpt (Depends-on): Add waitpid.
10501         * modules/wait-process (Depends-on): Likewise.
10502
10503 2010-09-29  Bruno Haible  <bruno@clisp.org>
10504
10505         More tests for module 'sys_wait'.
10506         * modules/sys_wait-c++-tests: New file.
10507         * tests/test-sys_wait-c++.cc: New file.
10508         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10509         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10510
10511 2010-09-29  Bruno Haible  <bruno@clisp.org>
10512
10513         New module 'waitpid'.
10514         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10515         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10516         Don't include <process.h>.
10517         (waitpid): Declare only, using modern idiom.
10518         * m4/waitpid.m4: New file.
10519         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
10520         * modules/waitpid: New file.
10521         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
10522         (Makefile.am): Update.
10523         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10524
10525 2010-09-28  Bruno Haible  <bruno@clisp.org>
10526
10527         poll: Assume ANSI C.
10528         * lib/poll.c (poll): Use an ANSI C declaration.
10529
10530 2010-09-28  Bruno Haible  <bruno@clisp.org>
10531
10532         poll-h: Create poll.h on all platforms.
10533         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
10534         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
10535         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
10536         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
10537         (gl_REPLACE_POLL_H): Don't set POLL_H.
10538         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
10539         * modules/poll-h (Depends-on): Add include_next.
10540         (Makefile.am): Create poll.h unconditionally. Substitute also
10541         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
10542
10543 2010-09-28  Bruno Haible  <bruno@clisp.org>
10544
10545         Tests for module 'poll-h'.
10546         * modules/poll-h-c++-tests: New file.
10547         * tests/test-poll-h-c++.cc: New file.
10548
10549         Tests for module 'poll-h'.
10550         * modules/poll-h-tests: New file.
10551         * tests/test-poll-h.c: New file.
10552
10553 2010-09-28  Bruno Haible  <bruno@clisp.org>
10554
10555         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10556         * modules/poll-h (Depends-on): Add 'extensions'.
10557
10558 2010-09-28  Bruno Haible  <bruno@clisp.org>
10559
10560         New module 'poll-h'.
10561         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
10562         (poll): Use modern idiom.
10563         * modules/poll-h: New file.
10564         * modules/poll (Files): Remove lib/poll.in.h.
10565         (Depends-on): Add poll-h.
10566         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
10567         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
10568         * m4/poll_h.m4: New file.
10569         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
10570         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
10571         and invoke gl_REPLACE_POLL_H.
10572         * lib/poll.c: Use common idiom.
10573         * tests/test-poll.c: Likewise.
10574         * doc/posix-headers/poll.texi: Mention the poll-h module.
10575         Suggested by Eric Blake.
10576
10577 2010-09-26  Bruno Haible  <bruno@clisp.org>
10578
10579         sys_wait: Implement WSTOPSIG.
10580         * lib/sys_wait.in.h (WSTOPSIG): New macro.
10581         Reported by Simon Josefsson.
10582
10583 2010-09-26  Simon Josefsson  <simon@josefsson.org>
10584
10585         stdlib, sys_wait: Avoid compilation error on mingw.
10586         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
10587
10588 2010-09-26  Bruno Haible  <bruno@clisp.org>
10589
10590         stdlib tests: Avoid code duplication.
10591         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
10592         * modules/sys_wait-tests (Files): Likewise.
10593         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
10594         * tests/test-stdlib.c: Include test-sys_wait.h.
10595         (main): Invoke test_sys_wait_macros.
10596         * tests/test-sys_wait.c: Include test-sys_wait.h.
10597         (main): Invoke test_sys_wait_macros.
10598
10599 2010-09-25  Simon Josefsson  <simon@josefsson.org>
10600
10601         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
10602         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
10603         sure Windows sockets are working before calling getaddrinfo.
10604         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
10605         * doc/gnulib.texi (Windows sockets): Fix typo.
10606
10607 2010-09-25  Bruno Haible  <bruno@clisp.org>
10608
10609         Tests for module 'regex-quote'.
10610         * modules/regex-quote-tests: New file.
10611         * tests/test-regex-quote.c: New file.
10612
10613         New module 'regex-quote'.
10614         * lib/regex-quote.h: New file.
10615         * lib/regex-quote.c: New file.
10616         * modules/regex-quote: New file.
10617         Suggested by Reuben Thomas <rrt@sc3d.org>.
10618
10619 2010-09-24  Bruno Haible  <bruno@clisp.org>
10620
10621         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
10622         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
10623
10624 2010-09-23  Bruno Haible  <bruno@clisp.org>
10625
10626         setenv: Relax license.
10627         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10628         Blake.
10629         Requested by Eric Blake.
10630
10631 2010-09-22  Bruno Haible  <bruno@clisp.org>
10632
10633         termios: Relax license.
10634         * modules/termios (License): Change to LGPLv2+.
10635         Requested by Eric Blake.
10636
10637 2010-09-22  Bruno Haible  <bruno@clisp.org>
10638
10639         threadlib: Allow the package to change the default to 'no'.
10640         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
10641         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
10642         Reported by Paul Eggert.
10643
10644 2010-09-22  Pádraig Brady  <P@draigbrady.com>
10645             Bruno Haible  <bruno@clisp.org>
10646
10647         Fix endless loop in mbmemcasecoll.
10648         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
10649         byte.
10650         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
10651
10652 2010-09-22  Bruno Haible  <bruno@clisp.org>
10653
10654         Tests for module 'memcoll'.
10655         * modules/memcoll-tests: New file.
10656         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
10657
10658         memcoll, xmemcoll: Clarify size vs. length.
10659         * modules/memcoll.c (memcoll0): Clarify specification.
10660         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
10661         passed to collate_error.
10662
10663 2010-09-22  Bruno Haible  <bruno@clisp.org>
10664
10665         Tests for module 'memcasecmp'.
10666         * modules/memcasecmp-tests: New file.
10667         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
10668
10669 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10670
10671         * lib/pthread.in.h: Add split double-inclusion guard, and include
10672         system <pthread.h> if there is one.  Use @@-style as in other
10673         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
10674         pthread.h doesn't.
10675         (pthread_mutexattr_destroy, pthread_mutexattr_init):
10676         (pthread_mutexattr_settype, pthread_mutex_trylock):
10677         New static inline functions, if there's no system <pthread.h>.
10678         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
10679         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
10680         Approximate with mutexes if the system lacks spinlocks, as in
10681         MacOS.
10682         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
10683         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
10684         @@-style.  Check for spinlocks separately.
10685         (gl_PTHREAD_DEFAULTS): New macro.
10686         * modules/pthread: Redo to use a more typical style for in.h files.
10687
10688 2010-09-21  Eric Blake  <eblake@redhat.com>
10689
10690         net_if: enhance tests
10691         * tests/test-net_if.c (main): Move signature checks earlier.
10692         Print failures to stderr.
10693         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10694         Document the bug that we do not yet fix.
10695
10696 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10697
10698         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10699         about gnulib, not GSS.
10700
10701 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10702
10703         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10704         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10705         for Emacs.
10706         * build-aux/pmccabe2html: Make Makefile.am example code more
10707         cut-and-paste friendly.
10708
10709 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10710
10711         * tests/test-net_if.c: New file.
10712         * modules/net_if-tests: New file.
10713
10714 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10715
10716         pthread: add pthread_spin_destroy
10717         * lib/pthread.in.h (pthread_spin_destroy): New function.
10718
10719 2010-09-19  Bruno Haible  <bruno@clisp.org>
10720
10721         gnulib-tool: Fix --help output.
10722         * gnulib-tool (func_usage): Fix help message.
10723         Reported by Reuben Thomas <rrt@sc3d.org>.
10724
10725 2010-09-18  Jim Meyering  <meyering@redhat.com>
10726
10727         maint.mk: avoid unexpanded \n in two diagnostics
10728         * top/maint.mk (sc_prohibit_always_true_header_tests):
10729         Don't use a literal \n in a halt=... assignment.  It would not be
10730         expanded, and the two \n bytes would appear in the diagnostic output
10731         rather than the desired newline.  Use halt=$$(printf ... instead.
10732         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10733
10734 2010-09-18  Bruno Haible  <bruno@clisp.org>
10735
10736         netinet_in: Doc tweak.
10737         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10738         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10739
10740 2010-09-18  Jim Meyering  <meyering@redhat.com>
10741
10742         init.sh: correct an outdated comment
10743         * tests/init.sh (create_exe_shims_):  s/function/alias/
10744
10745         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10746         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10747         a file named "*.exe" is removed between the glob expansion and the
10748         processing of that oddly named file.
10749
10750 2010-09-17  Eric Blake  <eblake@redhat.com>
10751
10752         mirbsd: add some more support
10753         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10754         in BSD family.
10755         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10756         devices as OpenBSD.
10757         * m4/host-os.m4 (mirbsd): Add MirBSD.
10758
10759         tests: fix unportable assumption on sys/wait.h
10760         * tests/test-sys_wait.c (main): Relax test.
10761         * tests/test-stdlib.c (main): Likewise.
10762
10763         init.sh: accomodate directory with no .exes
10764         * tests/init.sh: Accomodate directory containing only scripts.
10765
10766         tests: avoid compiler warning
10767         * tests/test-stdlib.c (main): Use the variable.
10768
10769         fdutimens, fdutimensat: update signature, again
10770         * lib/utimens.h (gl_futimens): Delete, and move signature...
10771         (fdutimens): ...here.
10772         (fdutimensat): Rearrange signature.
10773         (lutimensat): Rename variable for clarity.
10774         * lib/fdutimensat.c (fdutimensat): Update signature.
10775         * lib/utimens.c (fdutimens): Likewise.
10776         (gl_futimens): Delete.
10777         (utimens, lutimens): Update callers.
10778         * lib/futimens.c (futimens): Likewise.
10779         * tests/test-fdutimensat.c: Likewise.
10780         * tests/test-utimens.c: Likewise.
10781         * tests/test-futimens.h: Update comment.
10782         * NEWS: Mention this.
10783         Suggested by Paul Eggert.
10784
10785 2010-09-17  Bruno Haible  <bruno@clisp.org>
10786
10787         Take over the maintenance of some older macros from Autoconf.
10788         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10789         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10790         GNU Autoconf.
10791         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10792         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
10793
10794 2010-09-17  Eric Blake  <eblake@redhat.com>
10795
10796         fdutimensat: drop atflag validation
10797         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
10798         with valid fd, to close a race scenario where futimens is
10799         unsupported and FILE was replaced by a symlink.
10800         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
10801         accordingly.
10802         Suggested by Paul Eggert.
10803
10804 2010-09-16  Bruno Haible  <bruno@clisp.org>
10805
10806         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
10807         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
10808
10809 2010-09-16  Bruno Haible  <bruno@clisp.org>
10810
10811         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
10812         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
10813         login_tty exists.
10814         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10815
10816 2010-09-16  Bruno Haible  <bruno@clisp.org>
10817
10818         login_tty: Make the replacement code work on BSD systems.
10819         * lib/login_tty.c: Include <sys/ioctl.h>.
10820         (login_tty): Use ioctl TIOCSCTTY when available.
10821         * modules/login_tty (Depends-on): Add sys_ioctl.
10822         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10823
10824 2010-09-16  Bruno Haible  <bruno@clisp.org>
10825
10826         login_tty: Stricter unit test.
10827         * modules/login_tty-tests (Depends-on): Add tcgetsid.
10828         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
10829         and tcgetsid() after login_tty.
10830         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10831
10832 2010-09-16  Bruno Haible  <bruno@clisp.org>
10833
10834         New module 'tcgetsid'.
10835         * lib/tcgetsid.c: New file.
10836         * m4/tcgetsid.m4: New file.
10837         * modules/tcgetsid: New file.
10838         * modules/termios (Depends-on): Add c++defs, warn-on-use.
10839         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
10840         GNULIB_TCGETSID, HAVE_TCGETSID.
10841         * lib/termios.in.h: Include <sys/types.h>.
10842         (tcgetsid): New declaration.
10843         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
10844         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
10845         * doc/posix-functions/tcgetsid.texi: Mention the new module.
10846         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
10847
10848 2010-09-16  Bruno Haible  <bruno@clisp.org>
10849
10850         Tests for module 'termios'.
10851         * modules/termios-c++-tests: New file.
10852         * modules/termios-tests: New file.
10853         * tests/test-termios-c++.cc: New file.
10854         * tests/test-termios.c: New file.
10855
10856         New module 'termios'.
10857         * modules/termios: New file.
10858         * lib/termios.in.h: New file.
10859         * m4/termios_h.m4: New file.
10860         * doc/posix-headers/termios.texi: Mention the new module.
10861
10862 2010-09-16  Eric Blake  <eblake@redhat.com>
10863
10864         fdutimensat: add an atflag parameter
10865         * lib/fdutimensat.c (fdutimensat): Add new parameter.
10866         * lib/utimens.h (fdutimensat): Update prototype.
10867         * tests/test-fdutimensat.c: Adjust test to match.
10868         * NEWS: Document the change.
10869         Suggested by Paul Eggert.
10870
10871 2010-09-16  Bruno Haible  <bruno@clisp.org>
10872
10873         Fix typos in comments.
10874         * lib/striconveh.h: Fix typo in comment.
10875         * lib/login_tty.c (login_tty): Likewise.
10876
10877 2010-09-15  Bruno Haible  <bruno@clisp.org>
10878
10879         stdlib: clarify MirBSD WEXITSTATUS bug
10880         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
10881         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10882
10883 2010-09-15  Eric Blake  <eblake@redhat.com>
10884
10885         stdlib: work around MirBSD WEXITSTATUS bug
10886         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
10887         * modules/stdlib (Depends-on): Add sys_wait.
10888         * tests/test-sys_wait.c (main): Enhance test.
10889         * tests/test-stdlib.c (main): Likewise.
10890         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
10891
10892         docs: mention MacOS issue with WEXITSTATUS(constant)
10893         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
10894         issue.
10895         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10896
10897         strnlen: add tests
10898         * modules/strnlen-tests: New file.
10899         * tests/test-strnlen.c: Likewise.
10900
10901 2010-09-14  Bruno Haible  <bruno@clisp.org>
10902
10903         unistr/base: Avoid link errors when module 'libunistring' is also used.
10904         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
10905         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
10906         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
10907         Declare also when HAVE_LIBUNISTRING is set.
10908         Reported by Pádraig Brady <P@draigbrady.com>.
10909
10910 2010-09-14  Eric Blake  <eblake@redhat.com>
10911
10912         test-rawmemchr: make more robust
10913         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
10914         (Depends-on, configure.ac): Add needed prerequisites to use it.
10915         * modules/memchr-tests (Files, Depends-on, configure.ac):
10916         Likewise, to avoid implicit reliance on memchr module prereqs.
10917         * tests/test-memchr.c (main): Ensure proper masking.
10918         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
10919         reads.
10920
10921         memchr: detect glibc Alpha bug
10922         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
10923         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
10924         Alpha.
10925         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
10926         * tests/test-memchr.c (main): Enhance test.
10927         Reported by Nelson H. F. Beebe.
10928
10929 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10930
10931         fts, getcwd, glob: audit for dirfd returning -1
10932         * lib/fts.c (opendir): Remove #define; no longer used.
10933         (opendirat): New arg PDIR_FD.  All callers changed.
10934         (fts_build, _opendir2): Use new opendirat to avoid the need for
10935         dirfd, or for checking whether dirfd returns a negative value.
10936         Don't use opendir; always use openat followed by fdopendir.
10937         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
10938         it.
10939         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
10940         returns -1 here.
10941         * modules/fts (Depends-on): Remove dirfd.
10942         * modules/getcwd (Depends-on): Likewise.
10943
10944 2010-09-13  Eric Blake  <eblake@redhat.com>
10945
10946         float: fix broken MirBSD header
10947         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
10948         * doc/posix-headers/float.texi (float.h): Document it.
10949
10950 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10951
10952         fts: use O_NOFOLLOW to avoid race condition when opening a directory
10953         * lib/fts.c (opendirat): New arg extra_flags.
10954         (__opendir2): Use it to avoid following symlinks when opening
10955         a directory, if symlinks are not supposed to be followed.  See
10956         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
10957
10958         fdopendir: preserve argument fd before returning
10959         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
10960         (fdopendir_with_dup, fd_clone_opendir): New static functions.
10961         (fdopendir): Use them, arranging for FD to be open to the same
10962         directory that it was when it started.  (It might be temporarily
10963         closed while fdopendir is running, so this not thread- or
10964         signal-safe.)  Be careful to do the right thing even when file
10965         descriptors are scarce and dup fails with errno == EMFILE.  See
10966         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
10967
10968 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
10969
10970         regex: Pass the system regex if its only problem is 32-bit regoff_t.
10971         * NEWS: Document change.
10972         * m4/regex.m4: Disable test for regoff_t size.
10973
10974 2010-09-13  Jim Meyering  <meyering@redhat.com>
10975
10976         fts: don't operate on an invalid file descriptor after failed dup
10977         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
10978         negative file descriptor.
10979
10980 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10981
10982         savedir: add streamsavedir, deprecate fdsavedir
10983         * NEWS: Mention deprecation of fdsavedir.
10984         * lib/savedir.c (streamsavedir): New extern function, whose name
10985         ends in "savedir" to be consistent with the others.  This differs
10986         from savedirstream in that it doesn't close its argument.  The
10987         next version of GNU tar will use this instead of fdsavedir, to
10988         avoid some race conditions and conserve file descriptors.
10989         (savedirstream): Reimplement as a wrapper around streamsavedir.
10990         (fdsavedir): Add a comment deprecating this function.  As far as
10991         I know, only GNU tar used it, and GNU tar doesn't need it any more.
10992         * lib/savedir.h (streamsavedir): New decl.
10993         (fdsavedir): Add a comment deprecating this.
10994
10995 2010-09-10  Bruno Haible  <bruno@clisp.org>
10996
10997         langinfo: Fix last commit.
10998         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
10999         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11001
11002 2010-09-10  Bruno Haible  <bruno@clisp.org>
11003
11004         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11005         * lib/progreloc.c (O_EXEC): Define fallback.
11006
11007 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11008
11009         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11010         * NEWS: Document recent changes to fcntl-h.
11011         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11012         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11013         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11014         Similarly for O_SEARCH; this last was already true, but not documented.
11015         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11016         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11017         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11018         Likewise.
11019         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11020         is zero, not whether it is defined.
11021         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11022         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11023         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11024
11025 2010-09-10  Bruno Haible  <bruno@clisp.org>
11026
11027         langinfo, nl_langinfo: Fix for IRIX 5.3.
11028         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11029         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11030         HAVE_LANGINFO_YESEXPR.
11031         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11032         HAVE_LANGINFO_YESEXPR.
11033         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11034         HAVE_LANGINFO_T_FMT_AMPM is 0.
11035         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11036         HAVE_LANGINFO_YESEXPR is 0.
11037         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11038         NOEXPR.
11039         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11040         * doc/posix-functions/nl_langinfo.texi: Likewise.
11041         Reported by Eric Blake.
11042
11043 2010-09-10  Bruno Haible  <bruno@clisp.org>
11044
11045         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11046         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11047         on FreeBSD 8.0 and OpenBSD 4.6.
11048         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11049         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11050         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11051         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11052         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11053         ac_includes_default.
11054         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11055
11056 2010-09-09  Eric Blake  <eblake@redhat.com>
11057
11058         strsignal: work around NetBSD bug
11059         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11060         * lib/string.in.h (includes): Likewise.
11061         * doc/posix-functions/strsignal.texi (strsignal): Document the
11062         bug.
11063         Reported by Nelson H. F. Beebe.
11064
11065         gnulib-tool: work with NetBSD /bin/sh
11066         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11067         (func_get_description, func_get_comment, func_get_status)
11068         (func_get_notice, func_get_applicability, func_get_filelist)
11069         (func_get_dependencies, func_get_autoconf_early_snippet)
11070         (func_get_autoconf_snippet, func_get_automake_snippet)
11071         (func_get_include_directive, func_get_link_directive)
11072         (func_get_license, func_get_maintainer, func_import): Avoid
11073         shell syntax errors from parsing syntax extensions.
11074
11075 2010-09-09  Bruno Haible  <bruno@clisp.org>
11076
11077         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11078         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11079         a reliable way to determine whether the 'alias' command works.
11080
11081 2010-09-08  Jim Meyering  <meyering@redhat.com>
11082
11083         init.sh: penalize a set-x-impaired shell; don't disqualify it
11084         * tests/init.sh: Too many shells corrupt application stderr when
11085         you set -x, so we can't afford to disqualify them, since at least
11086         on Irix-6.5, that would disqualify all bourne shells.
11087         Instead, use a two-pass approach.
11088         On the first pass, try to find a shell that meets the stricter
11089         condition that set -x does not corrupt stderr.
11090         If no shell meets the stricter condition, retest each candidate
11091         shell, but without that extra condition.  Finally, when
11092         VERBOSE=yes is requested and set -x might cause trouble, simply
11093         issue a warning and refrain from enabling debug output.
11094
11095 2010-09-08  Eric Blake  <eblake@redhat.com>
11096
11097         unsetenv: fix OpenBSD bug
11098         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11099         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11100         documentation.
11101         Reported by Jim Meyering.
11102
11103         strtod: work around IRIX 6.5 bug
11104         * lib/strtod.c (strtod): Reparse number on shorter string if
11105         exponent parse was invalid.
11106         * tests/test-strtod.c (main): Add check for "0x1p 2".
11107         Reported by Tom G. Christensen.
11108
11109         getopt: optimize previous patch
11110         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11111         empty variable.  Speed up awk script.
11112         Reported by Paolo Bonzini.
11113
11114 2010-09-08  Jim Meyering  <meyering@redhat.com>
11115
11116         test.sh: disqualify shells for which set -x corrupts stderr
11117         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11118         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11119         appear in stderr output.  For example, this command:
11120             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11121         prints "P=1" on those two systems:
11122
11123 2010-09-08  Bruno Haible  <bruno@clisp.org>
11124
11125         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11126         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11127         commands, because some shells ignore redirections when there is an
11128         error in the command lookup.
11129         Reported by Eric Blake.
11130
11131 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11132
11133         * lib/regex.h: Fix a mention of `regex_compile' (should be
11134         `re_compile_pattern').
11135         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11136         (re_set_registers): Correct name of parameter in comment.
11137
11138         * doc/regex.texi: Add documentation for missing syntax flags.
11139         Remove commented-out documentation of defunct syntax option
11140         RE_NO_EMPTY_ALTS.
11141         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11142         Add documentation of re_set_registers.
11143         Document trick to re-use a pattern buffer by setting fastmap manually.
11144         Update documentation of struct re_pattern_buffer per public members.
11145         Uncomment documentation of equivalence class operators and
11146         collating symbol operators, since they are now implemented,
11147         Explain leftmost-longest matching in relation to alternatives.
11148         Tidy documentation of substring matching.
11149         Remove POSIX documentation, which is done better in
11150         glibc, and refer the reader there. Keep BSD API documentation, as
11151         that is not readily available elsewhere.
11152
11153 2010-09-07  Eric Blake  <eblake@redhat.com>
11154
11155         getopt: handle POSIXLY_CORRECT set but not exported
11156         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11157         export state of POSIXLY_CORRECT, due to bash set -o posix.
11158         Reported by Dustin J. Mitchell.
11159
11160 2010-09-05  Bruno Haible  <bruno@clisp.org>
11161
11162         gnulib-tool: Highlight the changed options.
11163         * gnulib-tool (func_usage): Display the --import, --add-import,
11164         --remove-import explanations in bold font.
11165
11166 2010-09-06  Karl Berry  <karl@gnu.org>
11167
11168         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11169
11170 2010-09-05  Bruno Haible  <bruno@clisp.org>
11171
11172         uniwidth/width: Update comment.
11173         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11174         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11175
11176 2010-09-05  Bruno Haible  <bruno@clisp.org>
11177
11178         isinf, isnan: Relax license.
11179         * modules/isinf (License): Change from GPL to LGPL, with consent from
11180         Ben Pfaff.
11181         * modules/isnan (License): Likewise.
11182         Requested by Ludovic Courtès.
11183
11184 2010-09-04  Bruno Haible  <bruno@clisp.org>
11185
11186         gnulib-tool: Help migration from --import to --add-import or --update.
11187         * gnulib-tool: Emit a verbose error message when --import is used
11188         without any module name.
11189
11190 2010-09-04  Bruno Haible  <bruno@clisp.org>
11191
11192         Update doc about gnulib-tool.
11193         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11194         'gnulib-tool --update' in more detail.
11195         Reported by Eric Blake.
11196
11197 2010-09-04  Bruno Haible  <bruno@clisp.org>
11198
11199         gnulib-tool: Change --import. New options --add/remove-import.
11200         * gnulib-tool: New options --add-import, --remove-import.
11201         (func_usage): Document them.
11202         (have_associative): Define always.
11203         (func_import): In import mode, don't merge the specified settings with
11204         the cached settings. Implement remove-import mode.
11205         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11206         Explain when to use them versus --import.
11207         (Simple update): Use --add-import instead of --import.
11208         * NEWS: Mention the change.
11209
11210 2010-09-04  Bruno Haible  <bruno@clisp.org>
11211
11212         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11213         separate gnulib.mk.
11214
11215 2010-09-04  Bruno Haible  <bruno@clisp.org>
11216
11217         gnulib-tool: Don't talk about CVS any more.
11218         * gnulib-tool (func_usage, func_import): Write "version control"
11219         instead of CVS.
11220
11221 2010-09-04  Jim Meyering  <meyering@redhat.com>
11222
11223         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11224         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11225         false positives (whose names may be ill-chosen) when searching
11226         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11227         would cause a false-positive.
11228
11229         avoid coreutils "make distcheck" failure
11230         Coreutils tests with an absolute build directory name that contains
11231         a space.  Not quoting this directory name caused a failure.
11232         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11233         * tests/test-vc-list-files-cvs.sh: Likewise.
11234
11235 2010-09-04  Bruno Haible  <bruno@clisp.org>
11236
11237         gnulib-tool: Avoid error when run in a package without Makefile.am.
11238         * gnulib-tool: When collecting the m4dirs in a package that does not
11239         have a Makefile.am, eliminate those directories that contain no
11240         gnulib-cache.m4. Fix expression that counts these directories.
11241
11242 2010-09-04  Bruno Haible  <bruno@clisp.org>
11243
11244         update-copyright test: Improve output when perl is missing or too old.
11245         * tests/test-update-copyright.sh: Move test of Perl version down after
11246         the test whether Perl exists. Provide an explanation relating Perl's
11247         error message to Automake's SKIP: message.
11248
11249 2010-09-04  Bruno Haible  <bruno@clisp.org>
11250
11251         Don't augment PATH in TESTS_ENVIRONMENT.
11252         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11253         set abs_aux_dir instead of augmenting PATH.
11254         * modules/vc-list-files-tests (Makefile.am): Likewise.
11255         * tests/test-update-copyright.sh: Augment PATH here.
11256         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11257         path_prepend_.
11258         * tests/test-vc-list-files-git.sh: Likewise.
11259
11260 2010-09-04  Jim Meyering  <meyering@redhat.com>
11261
11262         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11263         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11264
11265 2010-09-04  Bruno Haible  <bruno@clisp.org>
11266
11267         strdup: Fix compilation error in C++ mode.
11268         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11269         the macro.
11270
11271 2010-09-04  Bruno Haible  <bruno@clisp.org>
11272
11273         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11274         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11275         macro into a function.
11276         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11277
11278 2010-09-04  Bruno Haible  <bruno@clisp.org>
11279
11280         Set PATH_SEPARATOR the same way autoconf does.
11281         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11282         the value of PATH_SEPARATOR the same way autoconf-generated configure
11283         scripts do.
11284         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11285         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11286
11287 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11288
11289         Set PATH_SEPARATOR the same way autoconf does.
11290         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11291         the same way autoconf-generated configure scripts do.
11292         * posix-modules: Likewise.
11293
11294 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11295
11296         hash: fix safe_hasher const typo
11297         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11298         const; otherwise, there is a type error later.
11299
11300 2010-09-02  Jim Meyering  <meyering@redhat.com>
11301
11302         test-update-copyright.sh: require perl 5.8.0
11303         * tests/test-update-copyright.sh: Require 5.8.0,
11304         which Tom G. Christensen has confirmed is adequate,
11305         while 5.6.1 is not.
11306
11307 2010-09-02  Eric Blake  <eblake@redhat.com>
11308
11309         tests: init.sh improvements for re-exec'ing with zsh
11310         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11311         -vx through shell re-exec.
11312         Reported by Tom G. Christensen.
11313
11314         wctype: fix typo in previous commit
11315         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11316         Reported by Ludovic Courtès.
11317
11318 2010-09-02  Jim Meyering  <meyering@redhat.com>
11319
11320         test-update-copyright.sh: skip test if Perl is too old
11321         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11322         Reported by Tom G. Christensen.
11323
11324 2010-09-02  Bruno Haible  <bruno@clisp.org>
11325
11326         wctype: Avoid compilation error on IRIX 6.5.30.
11327         * lib/wctype.in.h (iswblank): Declare with a replacement if
11328         REPLACE_ISWBLANK is set.
11329         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11330         declared. Set REPLACE_ISWBLANK.
11331         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11332         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11333         * doc/posix-headers/wctype.texi: Likewise.
11334         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11335
11336 2010-09-01  Bruno Haible  <bruno@clisp.org>
11337
11338         New module 'socketlib'.
11339         * modules/socketlib: New file.
11340         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11341         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11342         * modules/sockets (Depends-on): Add socketlib.
11343         Suggested by Sam Steingold <sds@gnu.org>.
11344
11345 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11346
11347         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11348
11349         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11350         when one needs search access to a directory but not read access.
11351         On systems where it is available, it works in some cases where
11352         O_RDONLY does not, namely on directories that are searchable but
11353         not readable, and which need only to be searchable.  If O_SEARCH
11354         is not available, fall back to the traditional method of using
11355         O_RDONLY.
11356
11357         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11358         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11359         when opening a directory that needs only to be searchable.
11360         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11361         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11362         * lib/openat-proc.c (openat_proc_name): Likewise.
11363         * lib/openat.c (openat_needs_fchdir): Likewise.
11364         * lib/save-cwd.c (save_cwd): Likewise.
11365         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11366
11367 2010-08-28  Bruno Haible  <bruno@clisp.org>
11368
11369         New module 'host-cpu-c-abi'.
11370         * modules/host-cpu-c-abi: New file.
11371         * m4/host-cpu-c-abi.m4: New file, based on part of
11372         clisp/src/m4/general.m4.
11373         Requested by Sam Steingold <sds@gnu.org>.
11374
11375 2010-08-31  Eric Blake  <eblake@redhat.com>
11376         and Jim Meyering  <meyering@redhat.com>
11377
11378         hash: factor, and guard against misbehaving hasher function
11379         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11380         of table->hasher's return value.  Also protect against a hash value
11381         so large that adding it to table->bucket results in a NULL pointer.
11382         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11383         Use it in place of open-coded check-and-abort.
11384
11385 2010-08-30  Bruno Haible  <bruno@clisp.org>
11386
11387         hash: silence spurious clang warning
11388         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11389         Reported by Eric Blake.
11390
11391 2010-08-30  Eric Blake  <eblake@redhat.com>
11392
11393         strstr, memmem, strcasestr: avoid leaked shell message
11394         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11395         FreeBSD.
11396         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11397         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11398
11399         tests: silence clang warning
11400         * tests/test-malloca.c (do_allocation): Avoid dead store.
11401
11402 2010-08-29  Bruno Haible  <bruno@clisp.org>
11403
11404         gettext: Fix recent mistake.
11405         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11406
11407 2010-08-29  Bruno Haible  <bruno@clisp.org>
11408
11409         selinux-h: Offer a --without-selinux option.
11410         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11411         --without-selinux was specified, skip all tests and define
11412         HAVE_SELINUX_SELINUX_H to 0.
11413         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11414         set LIB_SELINUX to empty.
11415         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11416         gl_LIBSELINUX. If --without-selinux was specified, replace
11417         selinux/context.h.
11418         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11419
11420 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11421             Bruno Haible  <bruno@clisp.org>
11422
11423         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11424         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11425         of HAVE_REALLOC.
11426         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11427         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11428         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11429         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11430
11431 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11432             Bruno Haible  <bruno@clisp.org>
11433
11434         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11435         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11436         HAVE_CALLOC.
11437         * lib/xmalloc.c: Update accordingly.
11438         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11439         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11440         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11441
11442 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11443             Bruno Haible  <bruno@clisp.org>
11444
11445         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11446         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11447         HAVE_MALLOC.
11448         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11449         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11450         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11451
11452 2010-08-29  Bruno Haible  <bruno@clisp.org>
11453
11454         Update modules list.
11455         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11456         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11457         (String handling <string.h>): Add astrxfrm.
11458         (File system functions): Add readlinkat.
11459
11460 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11461
11462         Tests for module 'realloc-gnu'.
11463         * modules/realloc-gnu-tests: New file.
11464         * tests/test-realloc-gnu.c: New file.
11465
11466         Tests for module 'calloc-gnu'.
11467         * modules/calloc-gnu-tests: New file.
11468         * tests/test-calloc-gnu.c: New file.
11469
11470         Tests for module 'malloc-gnu'.
11471         * modules/malloc-gnu-tests: New file.
11472         * tests/test-malloc-gnu.c: New file.
11473
11474 2010-08-28  Bruno Haible  <bruno@clisp.org>
11475
11476         Rename module 'realloc' -> 'realloc-gnu'.
11477         * modules/realloc-gnu: New file, copied from modules/realloc.
11478         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11479         obsolete.
11480         * modules/mgetgroups (Depends-on): Update.
11481         * doc/posix-functions/realloc.texi: Update.
11482         * NEWS: Mention the change.
11483
11484         Rename module 'calloc' -> 'calloc-gnu'.
11485         * modules/calloc-gnu: New file, copied from modules/calloc.
11486         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11487         obsolete.
11488         * doc/posix-functions/calloc.texi: Update.
11489         * NEWS: Mention the change.
11490
11491         Rename module 'malloc' -> 'malloc-gnu'.
11492         * modules/malloc-gnu: New file, copied from modules/malloc.
11493         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11494         obsolete.
11495         * modules/argp (Depends-on): Update.
11496         * modules/regex (Depends-on): Update.
11497         * doc/posix-functions/malloc.texi: Update.
11498         * NEWS: Mention the change.
11499
11500 2010-08-28  Eric Blake  <eblake@redhat.com>
11501
11502         pread, pwrite: add missing dependency
11503         * modules/pread (Depends-on): Add extensions.
11504         * modules/pwrite (Depends-on): Likewise.
11505
11506 2010-08-28  Bruno Haible  <bruno@clisp.org>
11507
11508         unistr/u*-strchr: Fix tests dependencies.
11509         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11510         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11511         Reported by Ian Beckwith <ianb@erislabs.net>.
11512
11513 2010-08-28  Bruno Haible  <bruno@clisp.org>
11514
11515         read-file: Don't occupy too much unused memory.
11516         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11517
11518 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11519             Eric Blake  <eblake@redhat.com>
11520             Bruno Haible  <bruno@clisp.org>
11521
11522         read-file: Avoid memory reallocations with regular files.
11523         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
11524         (fread_file): With regular files, use the remaining length as the
11525         initial buffer size.  Check against overflow.
11526         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
11527         sys_stat.
11528
11529 2010-08-28  Bruno Haible  <bruno@clisp.org>
11530
11531         ftello: Relax license.
11532         * modules/ftello (License): Relax to LGPLv2+.
11533         Reported by Eric Blake.
11534
11535 2010-08-28  Bruno Haible  <bruno@clisp.org>
11536
11537         Avoid relocwrapper link errors due to gnulib replacement functions.
11538         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
11539         function.
11540         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11541
11542 2010-08-28  Bruno Haible  <bruno@clisp.org>
11543
11544         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
11545         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
11546         defined.
11547         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
11548         Suggested by Eric Blake.
11549
11550 2010-08-28  Bruno Haible  <bruno@clisp.org>
11551
11552         sys_socket, netdb: Ensure socklen_t gets defined.
11553         * modules/sys_socket (Depends-on): Add socklen.
11554         * modules/netdb (Depends-on): Likewise.
11555         * modules/getaddrinfo (Depends-on): Remove socklen.
11556         * modules/getsockopt (Depends-on): Likewise.
11557         * modules/setsockopt (Depends-on): Likewise.
11558         * tests/test-sys_socket.c: Check that socklen_t is defined.
11559         * tests/test-netdb.c: Likewise.
11560         * m4/socklen.m4: Update comments.
11561         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11562
11563 2010-08-27  Eric Blake  <eblake@redhat.com>
11564
11565         login_tty: add missing dependency
11566         * modules/login_tty (Depends-on): Add pty.
11567
11568 2010-08-26  Eric Blake  <eblake@redhat.com>
11569
11570         lib-symbol-versions: fix m4 quoting
11571         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
11572         format for AC_LINK_IFELSE.
11573
11574         glob: fix compile test
11575         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
11576
11577         btowc: fix missing file
11578         * modules/btowc (Files): Also ship locale-fr.m4.
11579
11580         lseek: fix link test
11581         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
11582         AC_LINK_IFELSE.
11583
11584         include_next: silence autoconf 2.68 warning
11585         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
11586         AC_COMPILE_IFELSE as special.
11587         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
11588         autoconf < 2.68.
11589
11590         acl: fix compilation test
11591         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
11592         AC_COMPILE_IFELSE.
11593
11594 2010-08-26  Bruno Haible  <bruno@clisp.org>
11595
11596         Modernize AC_TRY_RUN invocations.
11597         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
11598         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11599         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
11600         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
11601         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11602         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11603         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11604         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11605         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11606         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11607         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11608         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11609         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11610         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11611         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11612         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11613         gl_MBRLEN_NUL_RETVAL): Likewise.
11614         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11615         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11616         Likewise.
11617         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11618         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11619         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11620         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11621         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11622         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11623         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
11624         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11625         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
11626         Likewise.
11627         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11628         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
11629         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11630         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11631         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11632         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11633         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11634         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
11635         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11636         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11637
11638 2010-08-26  Bruno Haible  <bruno@clisp.org>
11639
11640         Modernize AC_TRY_LINK invocations.
11641         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
11642         AC_TRY_LINK.
11643         * m4/argp.m4 (gl_ARGP): Likewise.
11644         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11645         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11646         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11647         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11648         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11649         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
11650         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11651         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11652         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11653         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11654         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11655         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
11656         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
11657         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11658         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11659         * m4/hostent.m4 (gl_HOSTENT): Likewise.
11660         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11661         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
11662         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11663         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
11664         Likewise.
11665         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
11666         Likewise.
11667         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
11668         Likewise.
11669         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11670         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
11671         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
11672         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11673         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11674         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11675         * m4/servent.m4 (gl_SERVENT): Likewise.
11676         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11677         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11678         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11679         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11680         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11681         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11682         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11683         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11684         * modules/tsearch-tests (configure.ac): Likewise.
11685
11686 2010-08-26  Bruno Haible  <bruno@clisp.org>
11687
11688         Modernize AC_TRY_COMPILE invocations.
11689         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11690         AC_TRY_COMPILE.
11691         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11692         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11693         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11694         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11695         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11696         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11697         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11698         * m4/lock.m4 (gl_LOCK): Likewise.
11699         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11700         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11701         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11702         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11703         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11704         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11705         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11706         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11707         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11708         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11709         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11710         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11711         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11712         extraneous semicolon.
11713
11714 2010-08-26  Jim Meyering  <meyering@redhat.com>
11715
11716         stat-time: relax license LGPL
11717         * modules/stat-time (License): Change from GPL to LGPL,
11718         with consent from all contributors, for use in libguile.
11719         Requested by Ludovic Courtès.
11720
11721 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11722
11723         poll: return immediately on POLLHUP.
11724         * lib/poll.c (poll): Always set timeout before wait_timeout is
11725         computed.
11726
11727 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11728
11729         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11730         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11731         rmdir ("dir/.//"), unlinkat.
11732
11733 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11734
11735         stdbool: avoid spurious failure with modern xlc
11736         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11737
11738 2010-08-24  Bruno Haible  <bruno@clisp.org>
11739
11740         getloadavg: simplify code
11741         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11742         gl_have_func. Update comments.
11743
11744 2010-08-24  Eric Blake  <eblake@redhat.com>
11745
11746         getloadavg: don't define SVR4 on cygwin
11747         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11748         only define SVR4 when -lkvm is required.
11749         Reported by Yaakov Selkowitz.
11750
11751 2010-08-24  Bruno Haible  <bruno@clisp.org>
11752
11753         priv-set: fix comment
11754         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11755
11756 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11757
11758         priv-set: fix comments
11759         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11760         to match code, as suggested by David Bartley in:
11761         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11762
11763 2010-08-23  Eric Blake  <eblake@redhat.com>
11764
11765         stdbool: avoid rejecting clang
11766         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11767         * tests/test-stdbool.c: Enable more tests if using the system
11768         <stdbool.h> instead of the gnulib replacement.
11769         (main): Move xlc bug test to a runtime test for all compilers.
11770         Reported by Anders Kaseorg.
11771
11772         argz: fix shell quoting issue
11773         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11774         Reported by Charles Wilson.
11775
11776 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11777             Erik Faye-Lund <kusmabite@gmail.com>
11778
11779         poll, select: handle ERROR_BROKEN_PIPE.
11780         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11781         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11782         * lib/select.c (win32_compute_revents): Do not mark a pipe
11783         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11784
11785 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11786
11787         fts: allow compilation with C++
11788         * lib/fts_.h: Specify extern "C" linkage with C++.
11789
11790 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11791
11792         Fix gnulib-tool sed script de-commentation for AIX sed.
11793         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
11794         sed.
11795
11796 2010-08-17  Eric Blake  <eblake@redhat.com>
11797
11798         test-stddef: test for (some) offsetof bugs
11799         * tests/test-stddef.c: Enhance test to ensure correct type of
11800         offsetof.
11801         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
11802         that we are not fixing at this time.
11803
11804 2010-08-15  Bruno Haible  <bruno@clisp.org>
11805
11806         stpncpy: Allow stpncpy to be defined as a macro.
11807         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
11808         if it's already correctly declared.
11809         * lib/string.in.h (stpncpy): Undefine before redefining.
11810         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
11811
11812 2010-08-14  Bruno Haible  <bruno@clisp.org>
11813
11814         Rename module 'memxfrm' to 'amemxfrm'.
11815         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
11816         (amemxfrm): Renamed from memxfrm.
11817         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
11818         (amemxfrm): Renamed from memxfrm.
11819         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
11820         * NEWS: Mention the change.
11821         * MODULES.html.sh (String handling <string.h>): Update.
11822         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
11823         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
11824         * lib/unicase/u16-casexfrm.c: Likewise.
11825         * lib/unicase/u32-casexfrm.c: Likewise.
11826         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
11827         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
11828         * lib/uninorm/u16-normxfrm.c: Likewise.
11829         * lib/uninorm/u32-normxfrm.c: Likewise.
11830         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
11831         memxfrm.
11832         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
11833         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
11834         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
11835         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
11836         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
11837         Suggested by Paul Eggert.
11838
11839 2010-08-14  Bruno Haible  <bruno@clisp.org>
11840
11841         Tests for module 'astrxfrm'.
11842         * modules/astrxfrm-tests: New file.
11843         * tests/test-astrxfrm.c: New file.
11844
11845         New module 'astrxfrm'.
11846         * lib/astrxfrm.h: New file.
11847         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
11848         * modules/astrxfrm: New file.
11849
11850 2010-08-14  Reuben Thomas <rrt@sc3d.org>
11851
11852         regex: Tweak doc.
11853         * doc/regex.texi (Overview): Don't mention regex.c.
11854         (GNU Regular Expression Compiling): Likewise.
11855         (Match-end-of-line Operator): Mention 'not_eol'.
11856
11857 2010-08-14  Brian Gough  <bjg@gnu.org>
11858             Bruno Haible  <bruno@clisp.org>
11859
11860         git-merge-changelog: add doc relating to use with bzr and hg.
11861         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
11862
11863 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
11864
11865         pthread: fix pthread.h creation for srcdir != builddir
11866         * modules/pthread (Makefile.am): Fix the rule to work also in a
11867         non-srcdir build.
11868
11869 2010-08-13  Karl Berry  <karl@gnu.org>
11870
11871         * doc/regex.texi (Predefined Syntaxes): @smallexample.
11872         * doc/posix-*/*: force line break before @url of POSIX
11873         specifications.
11874         Suggested by Werner Lemberg.
11875
11876 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11877
11878         strtod: fix const diagnostic
11879         * lib/strtod.c (strtod): Don't assign const char * to char *,
11880         as this elicits a warning from GCC when warnings are enabled.
11881
11882 2010-08-10  Pádraig Brady <P@draigbrady.com>
11883         and Eric Blake  <eblake@redhat.com>
11884
11885         copy-acl: ignore ENOTSUP on HP-UX
11886         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
11887         so that it is available for HP-UX.
11888         * lib/copy-acl.c (qcopy_acl): Use it.
11889         Reported by Patrick M. Callahan.
11890
11891 2010-08-10  Eric Blake  <eblake@redhat.com>
11892
11893         open, chown: relax license
11894         * modules/open (License): Change to LGPLv2+, with consent by all
11895         authors, for use in augeas.
11896         * modules/chown (License): Likewise.
11897         * modules/lchown (Likewise): Likewise.
11898         Requested by Adam Stokes.
11899
11900 2010-08-09  Karl Berry  <karl@gnu.org>
11901
11902         * build-aux/ar-lib: new file, import from Automake.
11903         * config/srclist.txt: autocheck for updates.
11904
11905 2010-08-09  Eric Blake  <eblake@redhat.com>
11906
11907         readlinkat: adjust client modules
11908         * modules/areadlinkat (Depends-on): Use readlinkat, not
11909         symlinkat.
11910         * modules/areadlinkat-with-size (Depends-on): Likewise.
11911
11912         mknod: be more vocal about danger of running tests as root
11913         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
11914         root, since that is just asking for problems.
11915         Suggested by Bruno Haible, based on a report by Rainer Tammer.
11916
11917         readlinkat: split into its own module
11918         * modules/symlinkat: Split readlinkat...
11919         * modules/readlinkat: ...into separate module.
11920         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
11921         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
11922         * lib/symlinkat.c (readlinkat): Move...
11923         * lib/readlinkat.c: ...into new file.
11924         * modules/symlinkat-tests: Split readlinkat test...
11925         * modules/readlinkat-tests: ...into separate module.
11926         * tests/test-symlinkat.c: Split...
11927         * tests/test-readlinkat.c: ...into new file.
11928         * NEWS: Document the split.
11929         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11930         * lib/unistd.in.h (readlinkat): Likewise.
11931         Suggested by Bruno Haible.
11932
11933 2010-08-08  Bruno Haible  <bruno@clisp.org>
11934
11935         memxfrm: Speed up.
11936         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
11937         that usually only one call to strxfrm is necessary for each string
11938         part.
11939         Reported by Paul Eggert <eggert@cs.ucla.edu>.
11940
11941 2010-08-07  Karl Berry  <karl@gnu.org>
11942
11943         * doc/posix-headers/limits.texi,
11944         * doc/posix-functions/malloc.texi,
11945         * doc/posix-functions/strsignal.texi: missing @item.
11946         * doc/ld-version-script.texi: spurious leading i.
11947         * doc/regex.texi (Interval Operators): no commas inside @var.
11948
11949 2010-08-01  Bruno Haible  <bruno@clisp.org>
11950
11951         Integrate the regex documentation.
11952         * doc/gnulib.texi: Define 'cn' index.
11953         (Regular expressions): New a chapter that includes regex.texi and
11954         regexprops-generic.texi.
11955         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
11956         syntax.
11957
11958         Whitespace cleanup.
11959         * doc/regex.texi: Remove trailing spaces.
11960
11961         Add regex documentation.
11962         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
11963         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
11964         Written by Kathy A. Hargreaves and Karl Berry.
11965
11966 2010-08-01  Bruno Haible  <bruno@clisp.org>
11967
11968         link: Update documentation.
11969         * doc/posix-functions/link.texi: Update regarding Solaris.
11970
11971 2010-07-31  Bruno Haible  <bruno@clisp.org>
11972
11973         Update modules list.
11974         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
11975         (String handling <string.h>): Add memcmp2, memxfrm.
11976         (Container data structures): Add xlist, xsublist, xoset.
11977         (Core language properties): Add alignof, unused-parameter.
11978         (Process control, Numeric conversion functions <stdlib.h>): Renamed
11979         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
11980         (Unibyte characters <ctype.h>): New section.
11981         (String handling <string.h>): New section.
11982         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
11983         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
11984         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
11985         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
11986         tan, tanh, tanl, y0, y1, yn.
11987         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
11988         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
11989         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
11990         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
11991         unlockpt, vdprintf, vdprintf-posix.
11992         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
11993         (File system functions): Add concat-filename, sys_file, sys_ioctl,
11994         xconcat-filename.
11995         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
11996         getdtablesize, pipe2, pipe2-safer.
11997         (Security): New section.
11998         (Networking functions): Add accept4.
11999         (Signal handling): Add sigpipe.
12000         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12001         mbmemcasecoll.
12002         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12003         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12004         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12005         pipe-filter-ii.
12006         (Misc): Add argp-version-etc, login_tty, parse-duration.
12007
12008 2010-07-31  Bruno Haible  <bruno@clisp.org>
12009
12010         Improve doc in MODULES.html.
12011         * modules/linkat (Description): Add the word "function".
12012         * modules/mkfifo (Description): Likewise.
12013         * modules/mknod (Description): Likewise.
12014         * modules/remove (Description): Likewise.
12015         * modules/renameat (Description): Likewise.
12016         * modules/stat (Description): Likewise.
12017         * modules/symlink (Description): Likewise.
12018         * modules/unlink (Description): Likewise.
12019
12020 2010-07-31  Bruno Haible  <bruno@clisp.org>
12021
12022         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12023         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12024         option --enable/disable-c++ instead of --enable/disable-cxx.
12025         * NEWS: Mention the change.
12026
12027 2010-07-31  Bruno Haible  <bruno@clisp.org>
12028
12029         readlink, areadlink: Relax test a bit.
12030         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12031         alternative to ENOTDIR.
12032         * tests/test-areadlink.h (test_areadlink): Likewise.
12033         Reported by Rainer Tammer.
12034
12035 2010-07-31  Bruno Haible  <bruno@clisp.org>
12036
12037         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12038         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12039         character, perform the search using U_STRCHR.
12040         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12041         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12042         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12043         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12044         Suggested by Paolo Bonzini.
12045
12046 2010-07-31  Bruno Haible  <bruno@clisp.org>
12047
12048         unistr/u*-strstr: Fix dependencies.
12049         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12050         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12051         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12052
12053 2010-07-31  Bruno Haible  <bruno@clisp.org>
12054
12055         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12056         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12057         the beginning of the loop.
12058         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12059         cases in 'switch' statement.
12060
12061         unistr/u8-strchr: Fix several bugs.
12062         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12063         the string. When not found, return NULL, not a pointer near the end.
12064
12065         More tests for unistr/u8-strchr.
12066         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12067         that the function does not read past the first occurrence of the byte
12068         being searched.
12069         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12070         * tests/unistr/test-u16-strchr.c (main): New function.
12071         * tests/unistr/test-u32-strchr.c (main): New function.
12072
12073 2010-07-31  Bruno Haible  <bruno@clisp.org>
12074
12075         posix-modules: Ignore backup files of documentation files.
12076         * posix-modules: grep only through files named *.texi.
12077
12078 2010-07-31  Bruno Haible  <bruno@clisp.org>
12079
12080         symlinkat: Fix documentation.
12081         * doc/posix-functions/readlinkat.texi: Fix module name.
12082
12083 2010-07-31  Bruno Haible  <bruno@clisp.org>
12084
12085         fchownat: Replace also when chown has the trailing slash bug.
12086         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12087         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12088         introduced on 2010-04-10.
12089         Reported by Rainer Tammer.
12090
12091 2010-07-31  Bruno Haible  <bruno@clisp.org>
12092
12093         linkat: Work around AIX 7.1 bug.
12094         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12095         whether linkat handles trailing slash correctly. If not, replace linkat
12096         and define LINKAT_TRAILING_SLASH_BUG.
12097         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12098         check whether (fd1,file1) points to a directory if file1 or file2 ends
12099         in a slash. Code taken from lib/link.c.
12100         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12101         Reported by Rainer Tammer.
12102
12103 2010-07-31  Bruno Haible  <bruno@clisp.org>
12104
12105         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12106         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12107         This disables an xlc optimization that was causing wrong test results.
12108         Reported by Rainer Tammer.
12109
12110 2010-07-31  Bruno Haible  <bruno@clisp.org>
12111
12112         iconv: Work around AIX 6.1..7.1 bug.
12113         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12114         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12115         cross-compiling, guess no on all versions of AIX.
12116         Reported by Rainer Tammer.
12117
12118 2010-07-31  Bruno Haible  <bruno@clisp.org>
12119
12120         readlink: Relax test a bit.
12121         * tests/test-readlink.h (test_readlink): Allow different errno value
12122         when readlink is called with a file name that ends in / and refers to
12123         a file.
12124         Suggested by Eric Blake.
12125         Reported by Rainer Tammer.
12126
12127 2010-07-31  Bruno Haible  <bruno@clisp.org>
12128
12129         copysign: Does not require -lm on glibc systems.
12130         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12131         gl_COMMON_DOUBLE_MATHFUNC.
12132         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12133
12134 2010-07-31  Bruno Haible  <bruno@clisp.org>
12135
12136         duplocale: Work around AIX 7.1 bug.
12137         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12138         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12139         * lib/duplocale.c (rpl_duplocale): Update comment.
12140         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12141         Reported by Rainer Tammer.
12142
12143 2010-07-30  Bruno Haible  <bruno@clisp.org>
12144
12145         dirfd: Avoid link error on AIX 7.1.
12146         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12147         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12148         exist, set REPLACE_DIRFD.
12149         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12150         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12151         * doc/posix-functions/dirfd.texi: Update.
12152         Reported by Rainer Tammer.
12153
12154 2010-07-30  Eric Blake  <eblake@redhat.com>
12155
12156         strtod: next round of AIX fixes
12157         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12158         exponent.
12159         * tests/test-strtod.c (main): Enhance tests.
12160         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12161         Reported by Rainer Tammer.
12162
12163         futimens: fix configure check
12164         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12165         Reported by Bruno Haible.
12166
12167 2010-07-30  Bruno Haible  <bruno@clisp.org>
12168
12169         getline: Update regarding AIX.
12170         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12171         Reported by Rainer Tammer.
12172
12173 2010-07-30  Bruno Haible  <bruno@clisp.org>
12174
12175         wcwidth: Drop replacement on AIX 7.
12176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12177         AIX 7.
12178         Reported by Rainer Tammer.
12179
12180 2010-07-30  Bruno Haible  <bruno@clisp.org>
12181
12182         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12183         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12184         a 'char *'.
12185         Reported by Rainer Tammer.
12186
12187 2010-07-30  Bruno Haible  <bruno@clisp.org>
12188
12189         unlink: Update regarding AIX.
12190         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12191         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12192         Reported by Rainer Tammer.
12193
12194 2010-07-30  Bruno Haible  <bruno@clisp.org>
12195
12196         symlink: Update regarding AIX.
12197         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12198         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12199         Reported by Rainer Tammer.
12200
12201 2010-07-30  Bruno Haible  <bruno@clisp.org>
12202
12203         strndup: Update regarding AIX.
12204         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12205         AIX 7.
12206         Reported by Rainer Tammer.
12207
12208 2010-07-30  Bruno Haible  <bruno@clisp.org>
12209
12210         stat: Update regarding AIX.
12211         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12212         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12213         Reported by Rainer Tammer.
12214
12215 2010-07-30  Bruno Haible  <bruno@clisp.org>
12216
12217         truncl: Fix autoconf test.
12218         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12219         whether truncl works.
12220         Reported by Rainer Tammer.
12221
12222 2010-07-30  Bruno Haible  <bruno@clisp.org>
12223
12224         round: Update regarding AIX.
12225         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12226         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12227         Reported by Rainer Tammer.
12228
12229 2010-07-30  Bruno Haible  <bruno@clisp.org>
12230
12231         rename: Update regarding AIX.
12232         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12233         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12234         Reported by Rainer Tammer.
12235
12236 2010-07-30  Bruno Haible  <bruno@clisp.org>
12237
12238         printf.m4: Update regarding AIX.
12239         * m4/printf.m4: Update comments regarding AIX.
12240         Reported by Rainer Tammer.
12241
12242 2010-07-30  Bruno Haible  <bruno@clisp.org>
12243
12244         iconv: Update regarding AIX.
12245         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12246         AIX 7.
12247         Reported by Rainer Tammer.
12248
12249 2010-07-30  Bruno Haible  <bruno@clisp.org>
12250
12251         getopt: Update regarding AIX.
12252         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12253         no on AIX.
12254         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12255         Reported by Rainer Tammer.
12256
12257 2010-07-30  Bruno Haible  <bruno@clisp.org>
12258
12259         ldexpl; Update regarding AIX.
12260         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12261         on AIX 7.
12262         Reported by Rainer Tammer.
12263
12264 2010-07-30  Bruno Haible  <bruno@clisp.org>
12265
12266         frexpl: Update regarding AIX.
12267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12268         on AIX 7.
12269         Reported by Rainer Tammer.
12270
12271 2010-07-30  Bruno Haible  <bruno@clisp.org>
12272
12273         open, fopen: Update regarding AIX.
12274         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12275         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12276         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12277         * doc/posix-functions/fopen.texi: Likewise.
12278         Reported by Rainer Tammer.
12279
12280 2010-07-30  Bruno Haible  <bruno@clisp.org>
12281
12282         chown: Update doc regarding AIX.
12283         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12284         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12285         Reported by Rainer Tammer.
12286
12287 2010-07-30  Eric Blake  <eblake@redhat.com>
12288
12289         strtod: fix bug in replacement function on AIX
12290         * lib/strtod.c (strtod): Special case broken "0x" parse in
12291         underlying strtod.
12292         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12293         * doc/posix-functions/strtod.texi (strtod): Likewise.
12294         Reported by Rainer Tammer.
12295
12296 2010-07-30  Bruno Haible  <bruno@clisp.org>
12297
12298         mbrlen: Fix cross-compilation guess for AIX.
12299         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12300         guess. Leftover from 2008-12-22.
12301
12302 2010-07-30  Bruno Haible  <bruno@clisp.org>
12303
12304         mbrtowc: Fix cross-compilation guess for AIX.
12305         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12306         guess. Leftover from 2008-12-21.
12307
12308 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12309
12310         init.sh: work around trap limitation of some shells
12311         * tests/init.sh (setup_): Move exit trap outside of shell function.
12312
12313 2010-07-29  Eric Blake  <eblake@redhat.com>
12314
12315         strtod: aid debugging
12316         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12317         understanding why strtod is rejected.
12318
12319 2010-07-28  Bruno Haible  <bruno@clisp.org>
12320
12321         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12322         * lib/unistr/u8-chr.c: Include <string.h>.
12323         * tests/unistr/test-u8-chr.c: Likewise.
12324         * tests/unistr/test-u16-chr.c: Likewise.
12325         * tests/unistr/test-u32-chr.c: Likewise.
12326         * tests/unistr/test-u8-strchr.c: Likewise.
12327         * tests/unistr/test-u16-strchr.c: Likewise.
12328         * tests/unistr/test-u32-strchr.c: Likewise.
12329         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12330         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12331         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12332         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12333
12334 2010-07-28  Bruno Haible  <bruno@clisp.org>
12335
12336         Use spaces for indentation, not tabs.
12337         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12338
12339 2010-07-27  Bruno Haible  <bruno@clisp.org>
12340
12341         mbspcasecmp: Fix function specification.
12342         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12343         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12344         Reported by Eric Blake <eblake@redhat.com>.
12345
12346 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12347
12348         timespec: use cast and not conditional, as truncation isn't possible
12349         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12350         instead of a conditional.  Comment about the situation in more detail.
12351         This undoes most of the 2009-10-29 patch.
12352
12353 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12354
12355         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12356         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12357         * lib/unistr/u8-strchr.c: Likewise.
12358         * modules/unistr/u8-chr: Depend on memchr.
12359
12360         unistr/u*-strchr: add tests
12361         * modules/unistr/u8-strchr-tests: New file.
12362         * modules/unistr/u16-strchr-tests: New file.
12363         * modules/unistr/u32-strchr-tests: New file.
12364         * tests/unistr/test-strchr.h: New file.
12365         * tests/unistr/test-u8-strchr.c: New file.
12366         * tests/unistr/test-u16-strchr.c: New file.
12367         * tests/unistr/test-u32-strchr.c: New file.
12368
12369         unistr/u*-chr: test multibyte sequences more
12370         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12371         test vector.
12372         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12373         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12374         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12375
12376         unistr/u*-chr: test multibyte sequences
12377         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12378
12379         unistr/u*-chr: prepare for multibyte tests
12380         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12381         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12382         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12383         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12384         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12385         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12386
12387 2010-07-18  Bruno Haible  <bruno@clisp.org>
12388
12389         unistr/u8-strchr: Optimize non-ASCII argument case.
12390         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12391         because the first byte often matches anyway.
12392         Reported by Pádraig Brady <P@draigbrady.com>.
12393
12394 2010-07-15  Karl Berry  <karl@gnu.org>
12395
12396         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12397
12398 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12399
12400         getcwd: on Solaris, work better if ancestors are inaccessible
12401         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12402         buffer and size, try again with a large buffer.  This works better
12403         on Solaris, since its getcwd succeeds even if the path to the root
12404         is inaccessible, and this is helpful in common cases such as .zfs
12405         hidden directories.  Problem reported by J Chapman Flack in
12406         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12407         Use system getcwd if it's declared, not merely if it's partly
12408         working; use the partly-working test only to avoid needless effort
12409         if the system getcwd fails.
12410         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12411         comment that was already obsolete and is now even more obsolete.
12412         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12413         now might call strdup.
12414
12415 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12416
12417         pthread: Add enough so that coreutils/src/sort.c compiles.
12418         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12419         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12420         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12421         Include <sys/types.h>, in case it defines pthread_t.
12422         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12423         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12424         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12425         (pthread_rwlockattr_t, pthread_spinlock_t):
12426         New typedefs, if HAVE_PTHREAD_T is not defined.
12427         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12428         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12429         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12430         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12431         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12432         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12433         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12434         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12435         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12436         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12437         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12438         New macros.
12439         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12440         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12441         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12442         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12443         (pthread_spin_unlock): New dummy functions.
12444         (pthread_create): Return EAGAIN; don't set errno.
12445         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12446         require AC_C_INLINE.
12447         * modules/pthread (Depends-on): Add sched, time.
12448         (pthread.h): Use AM_V_GEN.
12449
12450 2010-07-13  Bruno Haible  <bruno@clisp.org>
12451
12452         striconveh: Don't malloc memory if the result buffer is sufficient.
12453         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12454         buffer if its size is sufficient.
12455         Reported by Ludovic Courtès <ludo@gnu.org>.
12456
12457 2010-07-13  Bruno Haible  <bruno@clisp.org>
12458
12459         strtod: Add safety check.
12460         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12461
12462 2010-07-12  Bruno Haible  <bruno@clisp.org>
12463
12464         Unify tests that set gl_cv_func_ldexpl_no_libm.
12465         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12466         gl_FUNC_LDEXPL.
12467         (gl_FUNC_LDEXPL): Invoke it.
12468         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12469
12470 2010-07-12  Bruno Haible  <bruno@clisp.org>
12471
12472         Unify tests that set gl_cv_func_ldexp_no_libm.
12473         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12474         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12475         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12476         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12477         * modules/strtod (Files): Add m4/ldexp.m4.
12478
12479 2010-07-12  Bruno Haible  <bruno@clisp.org>
12480
12481         Unify tests that set gl_cv_func_frexpl_no_libm.
12482         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12483         gl_FUNC_FREXPL_NO_LIBM.
12484         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12485         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12486
12487 2010-07-12  Bruno Haible  <bruno@clisp.org>
12488
12489         Unify tests that set gl_cv_func_frexp_no_libm.
12490         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12491         gl_FUNC_FREXP_NO_LIBM.
12492         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12493         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12494
12495 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12496
12497         memcoll: clarify sizes versus lengths, document better, and tweak perf
12498         * lib/memcoll.c (strcoll_loop, memcoll0):
12499         Improve quality of descriptive comments.  Name variables
12500         consistently as to whether they are lengths (which do not include
12501         terminating null) versus sizes (which do).
12502         * lib/xmemcoll.c (xmemcoll0): Likewise.
12503         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12504         returned when s1size == 0; this is easier to compile and saves
12505         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12506
12507 2010-07-12  Bruno Haible  <bruno@clisp.org>
12508
12509         Tests for module '_Exit'.
12510         * modules/_Exit-tests: New file.
12511         * tests/test-_Exit.sh: New file.
12512         * tests/test-_Exit.c: New file.
12513
12514         New module '_Exit'.
12515         * lib/stdlib.in.h (__attribute__): New macro.
12516         (_Exit): New declaration.
12517         * lib/_Exit.c: New file.
12518         * m4/_Exit.m4: New file.
12519         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
12520         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
12521         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
12522         * modules/_Exit: New file.
12523         * tests/test-stdlib-c++.cc (_Exit): Check signature.
12524         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
12525
12526 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12527
12528         strtod: make it more-accurate typically, and don't require libm
12529         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
12530         Include limits.h.  Don't include string.h.
12531         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
12532         (locale_isspace): New function, so that no casts are needed to
12533         check whether *s is a space.
12534         (ldexp): Provide an unused dummy if not available.
12535         (scale_radix_exp, parse_number, underlying_strtod): New functions.
12536         (strtod): Use them.  This implementation prefers to use the
12537         underlying strtod if available, falling back on our own code
12538         only to fix known bugs.  This is more likely to produce an
12539         accurate result.  Also, it avoids the use of libm functions.
12540         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
12541         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
12542         was absent, but it caused a test failure with coreutils.
12543         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
12544         with libm.
12545         * modules/strtod (Makefile.am, Link): libm is no longer needed.
12546         * modules/strtod-tests (Makefile.am): Likewise.
12547
12548 2010-07-11  Pádraig Brady  <P@draigBrady.com>
12549             Bruno Haible  <bruno@clisp.org>
12550
12551         unistr/u8-strchr: Optimize ASCII argument case.
12552         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
12553
12554 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12555
12556         (x)memcoll: minor tweaks
12557         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
12558         is after the type that it qualifies.
12559         (memcoll0): Likewise.
12560         * lib/memcoll.h (memcoll0): Likewise.
12561         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
12562         * lib/xmemcoll.h (xmemcoll0): Likewise.
12563         * lib/memcoll.c (memcoll0): Correct the comment.  This function
12564         differs from memcoll in that the NUL byte is part of the argument.
12565         Omit the abort-checks, as performance is a real issue here.  Plus,
12566         the checks were wrong anyway (an off-by-one error).  Omit local
12567         variable 'diff', as it's a bit clearer that way.
12568         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
12569         no longer needed.
12570
12571 2010-07-08  Chen Guo <chenguo4@yahoo.com>
12572
12573         (x)memcoll: speedup when input is known to be NUL delimited
12574         * lib/memcoll.c: Include stdlib.
12575         (memcoll0): New function.
12576         (strcoll_loop): New function, refactored for use in both memcoll
12577         and memcoll0.
12578         * lib/memcoll.h (memcoll0): Add prototype.
12579         * lib/xmemcoll.c (xmemcoll0): New function.
12580         (collate_error): New function, refactored for use in both xmemcoll
12581         and xmemcoll0.
12582         * lib/xmemcoll.h (xmemcoll0): Add prototype.
12583         * m4/memcoll.m4: add inline invocation.
12584
12585 2010-07-06  Pádraig Brady  <P@draigBrady.com>
12586
12587         * build-aux/bootstrap: Remove any local translations
12588         from the translation project synchronization directory,
12589         so that local only translations are not distributed.
12590
12591 2010-07-04  Bruno Haible  <bruno@clisp.org>
12592
12593         fsusage: Clarify which code applies to which platforms.
12594         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
12595         platform.
12596         * lib/fsusage.c (get_fs_usage): Likewise.
12597
12598 2010-07-04  Bruno Haible  <bruno@clisp.org>
12599
12600         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
12601         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
12602         Reported by Martin Lambers <marlam@marlam.de>.
12603
12604 2010-07-04  Jim Meyering  <meyering@redhat.com>
12605
12606         hash: once again explicitly disallow insertion of NULL
12607         * lib/hash.c (hash_insert0): Reinstate just-removed test:
12608         inserting a NULL pointer cannot work with these functions.
12609         Add a comment with details.
12610         This reverts part of the 2010-07-01 commit, 5bef1a35
12611         "hash: extend module to deal with non-pointer keys".
12612
12613 2010-07-01  Bruno Haible  <bruno@clisp.org>
12614
12615         stdbool: Update doc.
12616         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
12617         Info from Christian Weisgerber <naddy@mips.inka.de>.
12618
12619 2010-07-01  Jim Meyering  <meyering@redhat.com>
12620
12621         hash: extend module to deal with non-pointer keys
12622         * lib/hash.c (hash_insert0): New interface, much like hash_insert
12623         but that allows insertion of non-pointer entries.
12624         Do not disallow an ENTRY value of NULL.
12625         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
12626         * lib/hash.h (hash_insert0): Declare.
12627
12628 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12629
12630         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
12631         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
12632         not present (i.e. with autoconf 2.59 and when using gettextize, not
12633         gnulib), require AC_GNU_SOURCE instead.
12634
12635 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
12636
12637         idpriv-drop: Fix tests.
12638         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
12639         not to the test-idpriv-droptemp program.
12640
12641 2010-06-29  Bruno Haible  <bruno@clisp.org>
12642
12643         string: Fix syntax error with g++ 2.96.
12644         * lib/string.in.h (__pure__): Remove definition.
12645         (_GL_ATTRIBUTE_PURE): New macro.
12646         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
12647         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
12648         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12649
12650 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
12651
12652         unitypes: Fix bug introduced on 2010-05-18.
12653         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
12654
12655 2010-06-22  Eric Blake  <eblake@redhat.com>
12656
12657         memmem: slight optimization
12658         * lib/str-two-way.h (critical_factorization): Update comments.
12659         Reduce work during factorization phase.
12660         Reported by Carlos Bueno <carlos@bueno.org>.
12661
12662 2010-06-21  Bruno Haible  <bruno@clisp.org>
12663
12664         Fix HAVE_CALLOC_POSIX misnomer.
12665         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
12666         !HAVE_CALLOC_POSIX.
12667         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
12668         HAVE_CALLOC_POSIX.
12669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
12670         instead of HAVE_CALLOC_POSIX.
12671         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
12672         HAVE_CALLOC_POSIX.
12673
12674         Use modern idiom for calloc() replacement.
12675         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
12676         AC_FUNC_CALLOC.
12677         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
12678         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
12679         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12680         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
12681         (gl_REPLACE_CALLOC): New macro.
12682
12683 2010-06-21  Bruno Haible  <bruno@clisp.org>
12684
12685         Fix HAVE_REALLOC_POSIX misnomer.
12686         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
12687         !HAVE_REALLOC_POSIX.
12688         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
12689         HAVE_REALLOC_POSIX.
12690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12691         instead of HAVE_REALLOC_POSIX.
12692         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12693         HAVE_REALLOC_POSIX.
12694
12695         Use modern idiom for realloc() replacement.
12696         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12697         AC_FUNC_REALLOC.
12698         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12699         Autoconf's AC_FUNC_REALLOC.
12700         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12701         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12702         (gl_REPLACE_REALLOC): New macro.
12703         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12704
12705 2010-06-21  Bruno Haible  <bruno@clisp.org>
12706
12707         Fix HAVE_MALLOC_POSIX misnomer.
12708         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12709         !HAVE_MALLOC_POSIX.
12710         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12711         HAVE_MALLOC_POSIX.
12712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12713         instead of HAVE_MALLOC_POSIX.
12714         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12715         HAVE_MALLOC_POSIX.
12716
12717         Use modern idiom for malloc() replacement.
12718         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12719         AC_FUNC_MALLOC.
12720         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12721         Autoconf's AC_FUNC_MALLOC.
12722         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12723         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12724         (gl_REPLACE_MALLOC): New macro.
12725         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12726
12727 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12728
12729         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12730         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12731         This macro takes 3 arguments, not 4.
12732
12733 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12734
12735         ipv6: fix detection under mingw
12736         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12737         in6_addr.
12738
12739 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12740
12741         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12742         that strtod() works when cross-compiling to a glibc version known
12743         to work.
12744
12745 2010-06-15  Bruno Haible  <bruno@clisp.org>
12746
12747         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12748
12749 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12750
12751         select: Correct timeout.
12752         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12753
12754 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12755
12756         git-version-gen: init shell var to avoid env var influence
12757         * build-aux/git-version-gen (v): Init shell var to empty.
12758
12759 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12760
12761         priv-set: Don't assume that priv.h exists merely because getppriv does.
12762         See Jan Andersen's bug report about AIX 5L in
12763         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12764         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12765         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12766         * lib/priv-set.h: Likewise.
12767         * tests/test-priv-set.c: Likewise.
12768
12769 2010-06-13  Bruno Haible  <bruno@clisp.org>
12770
12771         relocatable: Make it easier to test whether to install wrappers.
12772         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12773         RELOCATABLE_VIA_WRAPPER.
12774
12775 2010-06-13  Bruno Haible  <bruno@clisp.org>
12776
12777         gnulib-tool: Display specified modules and dependencies differently.
12778         * gnulib-tool (func_show_module_list): New function.
12779         (func_import, func_create_testdir): Invoke it.
12780         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12781
12782 2010-06-13  Bruno Haible  <bruno@clisp.org>
12783
12784         gnulib-tool: Align code of func_import and func_create_testdir.
12785         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12786         specified_modules.
12787
12788 2010-06-12  Jim Meyering  <meyering@redhat.com>
12789
12790         test-inttostr: avoid spurious failure on Solaris 9
12791         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12792         to accept "%ju".  Reported by Bruno Haible.
12793
12794 2010-06-11  Jim Meyering  <meyering@redhat.com>
12795
12796         test-sys_socket: mark variables as used more readably
12797         * tests/test-sys_socket.c (main): Mark otherwise unused variables
12798         as "used" explicitly via (void) statement casts.  This is more
12799         readable than using them in an artificial return expression.
12800         Suggestion from Bruno Haible.
12801
12802 2010-06-11  Bruno Haible  <bruno@clisp.org>
12803
12804         Avoid some more warnings from "gcc -Wwrite-strings".
12805         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
12806         to 'const char *'.
12807         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
12808         * tests/test-c-strcasestr.c (main): Likewise.
12809         * tests/test-mbscasestr1.c (main): Likewise.
12810         * tests/test-mbscasestr2.c (main): Likewise.
12811         * tests/test-memmem.c (main): Likewise.
12812         * tests/test-strstr.c (main): Likewise.
12813         * tests/test-strcasestr.c (main): Likewise.
12814
12815 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12816
12817         init.sh: change framework_failure_ to fail with status 99, not 1
12818         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
12819         automake's parallel-tests rule that this is an unexpected failure,
12820         even if the test is listed in XFAIL_TESTS.
12821
12822 2010-06-11  Jim Meyering  <meyering@redhat.com>
12823
12824         test-inttostr: avoid warnings about 4-6KB literal strings
12825         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
12826         Include "macros.h", for its definition of ASSERT.
12827         (CK): s/assert/ASSERT/
12828         * modules/inttostr-tests (Files): Add macros.h.
12829
12830         init.sh: don't use $ME_ or skip_ before they are defined
12831         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
12832         their first uses.  Also hoist their companions: warn_, fail_,
12833         framework_failure_, $stderr_fileno.  Prompted by a patch from
12834         Stefano Lattarini.
12835
12836         test-sys_socket: avoid set-but-not-used warnings from gcc
12837         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
12838         avoid warning about set-but-not-used variables.
12839
12840         test-xvasprintf: avoid 'const' discard warnings
12841         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
12842         "const" when assigning from literal strings.
12843         (test_xasprintf): Add "void" in function argument list to placate
12844         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
12845
12846         tests: avoid compilation warnings in argmatch and exclude tests...
12847         in packages that define ARGMATCH_DIE_DECL, like coreutils.
12848         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
12849         Since it always exits, declare with the "noreturn" attribute.
12850         * tests/test-argmatch.c: Likewise.
12851
12852         tests: avoid 'const' discard warnings in mbsstr tests
12853         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
12854         * tests/test-mbsstr2.c (main): Likewise.
12855
12856         test-verify: avoid warning from gcc's -Wmissing-declarations
12857         * tests/test-verify.c (function): Declare to be static.
12858
12859         test-inttostr.c: include <string.h> for use of strcmp
12860         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
12861
12862         test-linkat: avoid failed assertion on "other" architectures
12863         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
12864         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
12865         sparc: https://bugs.launchpad.net/bugs/591968
12866
12867 2010-06-11  Jim Meyering  <meyering@redhat.com>
12868
12869         printf.m4: avoid autoconf's "Expanded Before Required" warning
12870         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
12871         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
12872         autoconf warning.
12873
12874 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
12875
12876         Replacement header templates are now named with ".in", not "_".
12877         * doc/gnulib-intro.texi: Correct.
12878
12879 2010-06-10  Jim Meyering  <meyering@redhat.com>
12880
12881         inttostr-tests: depend on snprintf, not snprintf-posix
12882         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
12883         snprintf-posix, to avoid this aclocal failure:
12884           missing file gnulib-tests/vasnprintf.c
12885           configure.ac:45: error: expected source file, required through \
12886           AC_LIBSOURCES, not found
12887
12888 2010-06-10  Jim Meyering  <meyering@redhat.com>
12889
12890         inttostr: add a new function, inttostr, and tests
12891         The namesake function was not available.  The existence of the
12892         template file, inttostr.c makes its addition nontrivial.
12893         * lib/anytostr.c: Rename from inttostr.c.
12894         (anytostr): Rename from inttostr.
12895         * lib/inttostr.c: New file.
12896         * modules/inttostr (Files): Add anytostr.c.
12897         (Makefile.am): Set lib_SOURCES instead of ...
12898         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
12899         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
12900         * lib/offtostr.c: Likewise.
12901         * lib/uinttostr.c: Likewise.
12902         * lib/umaxtostr.c: Likewise.
12903         * modules/inttostr-tests: New file.
12904         * tests/test-inttostr.c: New file.  Test these functions.
12905
12906 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
12907             Bruno Haible  <bruno@clisp.org>
12908
12909         Add "Extending Gnulib" chapter to manual.
12910         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
12911         chapter.
12912         (Extending Gnulib): New chapter.
12913         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
12914         chapter.
12915
12916 2010-06-09  Bruno Haible  <bruno@clisp.org>
12917
12918         Avoid relocwrapper link errors due to gnulib replacement functions.
12919         * lib/areadlink.c: Use the system's malloc, realloc functions.
12920         (areadlink): Set errno to ENOMEM explicitly.
12921         * modules/areadlink (Depends-on): Remove malloc-posix.
12922         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12923
12924 2010-06-09  Bruno Haible  <bruno@clisp.org>
12925
12926         Avoid relocwrapper link errors due to gnulib replacement functions.
12927         * lib/canonicalize-lgpl.c: Use the system's malloc function.
12928         * lib/malloca.c: Likewise.
12929         * lib/relocatable.c: Likewise.
12930         * lib/progreloc.c: Use the system's malloc, sprintf functions.
12931         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
12932         * lib/setenv.c: Use the system's malloc, realloc functions.
12933         * lib/strerror.c: Use the system's sprintf function.
12934         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12935
12936 2010-06-04  Bruno Haible  <bruno@clisp.org>
12937
12938         Prefer documented low-level autoconf macro names.
12939         * m4/lib-link.m4: Use m4_translit instead of translit.
12940         * m4/environ.m4: Likewise.
12941         * m4/mathfunc.m4: Likewise.
12942         * m4/onceonly.m4: Likewise.
12943         * m4/stdint.m4: Likewise.
12944         Suggested by Eric Blake.
12945
12946 2010-06-04  Martin Lambers  <marlam@marlam.de>
12947             Bruno Haible  <bruno@clisp.org>
12948
12949         havelib: Allow library names with '+' characters.
12950         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12951         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
12952
12953 2010-06-09  Bruno Haible  <bruno@clisp.org>
12954
12955         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
12956         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
12957         realloc failed.
12958
12959 2010-06-08  Peter Simons  <simons@cryp.to>
12960
12961         maint.mk: make the news-check rule more configurable
12962         * top/maint.mk (news-check-lines-spec): New variable.
12963         (news-check): Use "sed -n 1,10p" in place of "head".
12964
12965 2010-06-07  Jim Meyering  <meyering@redhat.com>
12966
12967         do-release-commit-and-tag: fix typo in --help
12968         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
12969
12970         regex: avoid new dead-code warning with gcc-4.6.0
12971         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
12972         if-block containing a while-loop.  It's been unused for at least
12973         5 years.
12974
12975 2010-06-05  Bruno Haible  <bruno@clisp.org>
12976
12977         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
12978         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
12979
12980 2010-06-04  Bruno Haible  <bruno@clisp.org>
12981
12982         Update to GNU gettext 0.18.1.
12983         * modules/gettext (configure.ac): Require gettext infrastructure from
12984         version 0.18.1.
12985
12986 2010-06-03  Bruno Haible  <bruno@clisp.org>
12987
12988         Don't use AC_LIBOBJ with file names in subdirectories.
12989         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
12990         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
12991         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
12992         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
12993         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
12994         gl_LIBUNISTRING_LIBSOURCE.
12995         (Makefile.am): Augment lib_SOURCES here, conditionally.
12996         * NEWS: Drop requirement for Automake option 'subdir-objects'.
12997
12998 2010-06-03  Bruno Haible  <bruno@clisp.org>
12999
13000         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13001         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13002         expansion does not end with a newline.
13003         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13004         unnecessary newline.
13005
13006 2010-06-03  Bruno Haible  <bruno@clisp.org>
13007
13008         Reduce dependencies.
13009         * tests/test-quotearg.h: New file, extracted from
13010         tests/test-quotearg.c.
13011         * tests/test-quotearg-simple.c: New file, extracted from
13012         tests/test-quotearg.c.
13013         * tests/test-quotearg.c: Don't include <ctype.h>.
13014         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13015         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13016         use_quote_double_quotes, use_quotearg_colon): Moved to
13017         tests/test-quotearg.h.
13018         (results_g, flag_results, custom_quotes, custom_results): Moved
13019         to tests/test-quotearg-simple.c.
13020         (main): Moved the part that does not depend on gettext to
13021         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13022         performed.
13023         * modules/quotearg-simple: New file.
13024         * modules/quotearg-simple-tests: New file.
13025         * modules/quotearg (Depends-on): Add quotearg-simple.
13026         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13027         (Files): Add tests/test-quotearg.h.
13028         Reported by Paolo Bonzini.
13029
13030 2010-06-03  Bruno Haible  <bruno@clisp.org>
13031
13032         Reduce dependencies.
13033         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13034
13035 2010-06-03  Bruno Haible  <bruno@clisp.org>
13036
13037         time: Undefine more broken macros.
13038         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13039         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13040         Reported by Eric Blake.
13041
13042 2010-06-03  Bruno Haible  <bruno@clisp.org>
13043
13044         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13045         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13046         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13047         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13048         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13049         Reported by Ludovic Courtès <ludo@gnu.org>.
13050
13051 2010-06-02  Eric Blake  <eblake@redhat.com>
13052
13053         time: work with mingw + pthreads-win32 library
13054         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13055         if timespec is defined only in pthread.h.
13056         * modules/time (Makefile.am): Substitute it.
13057         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13058         <pthread.h>, when needed.
13059         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13060         from the library.
13061
13062 2010-05-31  Bruno Haible  <bruno@clisp.org>
13063
13064         Avoid expanding two macros in the wrong order.
13065         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13066         gl_LIBUNISTRING if it is defined.
13067         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13068         autoconf >= 2.64.
13069         Reported by Ludovic Courtès <ludo@gnu.org>.
13070
13071 2010-05-27  Jim Meyering  <meyering@redhat.com>
13072
13073         maint.mk: also prohibit "#undef" of always-defined symbols
13074         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13075         Allow more than one space before the symbol name.
13076         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13077         the regexp uses alternation.
13078
13079 2010-05-26  Eric Blake  <eblake@redhat.com>
13080
13081         maint.mk: avoid echo -e
13082         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13083         Convert all uses of echo -* to printf.
13084         Reported by Matthias Bolte.
13085
13086 2010-05-25  Bruno Haible  <bruno@clisp.org>
13087
13088         Update to GNU gettext 0.18, part 2.
13089         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13090         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13091
13092 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13093
13094         Add missing include in test-pwrite.c.
13095         * tests/test-pwrite.c: Include string.h, for strcmp.
13096
13097 2010-05-24  Bruno Haible  <bruno@clisp.org>
13098
13099         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13100
13101 2010-05-24  Bruno Haible  <bruno@clisp.org>
13102
13103         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13104         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13105         iconveh_error argument.
13106         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13107         U_STRCONV_TO_LOCALE.
13108         * lib/unistr/u16-strcoll.c: Likewise.
13109         * lib/unistr/u32-strcoll.c: Likewise.
13110         * modules/unistr/u8-strcoll (Depends-on): Add
13111         uniconv/u8-strconv-to-enc, localcharset. Remove
13112         uniconv/u8-strconv-to-locale.
13113         (configure.ac): Bump version number.
13114         * modules/unistr/u16-strcoll (Depends-on): Add
13115         uniconv/u16-strconv-to-enc, localcharset. Remove
13116         uniconv/u16-strconv-to-locale.
13117         (configure.ac): Bump version number.
13118         * modules/unistr/u32-strcoll (Depends-on): Add
13119         uniconv/u32-strconv-to-enc, localcharset. Remove
13120         uniconv/u32-strconv-to-locale.
13121         (configure.ac): Bump version number.
13122
13123 2010-05-24  Bruno Haible  <bruno@clisp.org>
13124
13125         Avoid a test failure on NetBSD 5.0.
13126         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13127         an iconv() bug.
13128
13129 2010-05-24  Bruno Haible  <bruno@clisp.org>
13130
13131         Adjust #include directive style.
13132         * modules/regex (Includes): Recommend to write <regex.h>.
13133
13134 2010-05-24  Bruno Haible  <bruno@clisp.org>
13135
13136         regex: Don't require alloca.
13137         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13138         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13139         only inside if (0).
13140
13141 2010-05-23  Jim Meyering  <meyering@redhat.com>
13142
13143         test-renameat.c: include <sys/stat.h>
13144         * tests/test-renameat.c: Include <sys/stat.h>; required for
13145         definition of S_IS* macros.
13146
13147 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13148
13149         Update maintainer documentation for 'relocatable-prog' module.
13150         * doc/relocatable-maint.texi: Update.
13151         Comments by Bruno Haible.
13152
13153 2010-05-23  Bruno Haible  <bruno@clisp.org>
13154
13155         git-merge-changelog: Enable --split-merged-entry by default.
13156         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13157         (usage): Don't mention this option any more.
13158         Reported by Ralf Wildenhues.
13159
13160 2010-05-23  Jim Meyering  <meyering@redhat.com>
13161
13162         test-pwrite: do not leave behind a test file named "out"
13163         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13164         The trivial-looking use of init.sh is really necessary.
13165         It ensures that the temporary file, "out", is created in
13166         a temporary directory, and removed upon termination.
13167         * tests/test-pwrite.sh: Re-add file.
13168         * modules/pwrite-tests: Reference it.
13169
13170 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13171
13172         Fix output redirection buglet in init.sh.
13173         * tests/init.sh: Fix redirection of stderr.
13174
13175 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13176
13177         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13178
13179 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13180
13181         * modules/valgrind-tests: New file.
13182         * m4/valgrind-tests.m4: New file.
13183         * doc/valgrind-tests.texi: New file.
13184         * doc/gnulib.texi (Running self-tests under valgrind): New
13185         section.
13186
13187 2010-05-19  Bruno Haible  <bruno@clisp.org>
13188
13189         Clean up dead code in recent commit.
13190         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13191         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13192         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13193         Suggested by Paolo Bonzini.
13194
13195 2010-05-19  Bruno Haible  <bruno@clisp.org>
13196
13197         Avoid valgrind error reports from libunistring.
13198         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13199         * modules/libunistring (Files): Add it.
13200         * modules/libunistring-optional (Files): Likewise.
13201
13202 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13203             Bruno Haible  <bruno@clisp.org>
13204
13205         New module 'libunistring-optional'.
13206         * modules/libunistring-optional: New file.
13207         * m4/libunistring-base.m4: New file.
13208         * m4/libunistring-optional.m4: New file.
13209         * lib/unicase.in.h: Renamed from lib/unicase.h.
13210         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13211         * lib/unictype.in.h: Renamed from lib/unictype.h.
13212         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13213         * lib/uniname.in.h: Renamed from lib/uniname.h.
13214         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13215         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13216         * lib/unistr.in.h: Renamed from lib/unistr.h.
13217         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13218         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13219         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13220         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13221         gl_LIBUNISTRING. If the library was found, determine the installed
13222         version and set LIBUNISTRING_VERSION.
13223         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13224         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13225         handle a configuration option --with-included-libunistring.
13226         * modules/libunistring (Files): Add m4/absolute-header.m4.
13227         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13228         Add m4/libunistring-base.m4.
13229         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13230         (Makefile.am): Build unicase.h from unicase.in.h.
13231         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13232         Add m4/libunistring-base.m4.
13233         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13234         (Makefile.am): Build uniconv.h from uniconv.in.h.
13235         * modules/unictype/base (Files): Use unictype.in.h instead of
13236         unictype.h. Add m4/libunistring-base.m4.
13237         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13238         (Makefile.am): Build unictype.h from unictype.in.h.
13239         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13240         Add m4/libunistring-base.m4.
13241         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13242         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13243         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13244         Add m4/libunistring-base.m4.
13245         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13246         (Makefile.am): Build uniname.h from uniname.in.h.
13247         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13248         Add m4/libunistring-base.m4.
13249         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13250         (Makefile.am): Build uninorm.h from uninorm.in.h.
13251         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13252         unistdio.h. Add m4/libunistring-base.m4.
13253         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13254         (Makefile.am): Build unistdio.h from unistdio.in.h.
13255         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13256         Add m4/libunistring-base.m4.
13257         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13258         (Makefile.am): Build unistr.h from unistr.in.h.
13259         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13260         Add m4/libunistring-base.m4.
13261         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13262         (Makefile.am): Build unitypes.h from unitypes.in.h.
13263         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13264         Add m4/libunistring-base.m4.
13265         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13266         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13267         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13268         uniwidth.h. Add m4/libunistring-base.m4.
13269         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13270         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13271         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13272         instead of augmenting lib_SOURCES.
13273         * modules/unicase/empty-suffix-context: Likewise.
13274         * modules/unicase/locale-language: Likewise.
13275         * modules/unicase/tolower: Likewise.
13276         * modules/unicase/totitle: Likewise.
13277         * modules/unicase/toupper: Likewise.
13278         * modules/unicase/u8-casecmp: Likewise.
13279         * modules/unicase/u8-casecoll: Likewise.
13280         * modules/unicase/u8-casefold: Likewise.
13281         * modules/unicase/u8-casexfrm: Likewise.
13282         * modules/unicase/u8-ct-casefold: Likewise.
13283         * modules/unicase/u8-ct-tolower: Likewise.
13284         * modules/unicase/u8-ct-totitle: Likewise.
13285         * modules/unicase/u8-ct-toupper: Likewise.
13286         * modules/unicase/u8-is-cased: Likewise.
13287         * modules/unicase/u8-is-casefolded: Likewise.
13288         * modules/unicase/u8-is-lowercase: Likewise.
13289         * modules/unicase/u8-is-titlecase: Likewise.
13290         * modules/unicase/u8-is-uppercase: Likewise.
13291         * modules/unicase/u8-prefix-context: Likewise.
13292         * modules/unicase/u8-suffix-context: Likewise.
13293         * modules/unicase/u8-tolower: Likewise.
13294         * modules/unicase/u8-totitle: Likewise.
13295         * modules/unicase/u8-toupper: Likewise.
13296         * modules/unicase/u16-casecmp: Likewise.
13297         * modules/unicase/u16-casecoll: Likewise.
13298         * modules/unicase/u16-casefold: Likewise.
13299         * modules/unicase/u16-casexfrm: Likewise.
13300         * modules/unicase/u16-ct-casefold: Likewise.
13301         * modules/unicase/u16-ct-tolower: Likewise.
13302         * modules/unicase/u16-ct-totitle: Likewise.
13303         * modules/unicase/u16-ct-toupper: Likewise.
13304         * modules/unicase/u16-is-cased: Likewise.
13305         * modules/unicase/u16-is-casefolded: Likewise.
13306         * modules/unicase/u16-is-lowercase: Likewise.
13307         * modules/unicase/u16-is-titlecase: Likewise.
13308         * modules/unicase/u16-is-uppercase: Likewise.
13309         * modules/unicase/u16-prefix-context: Likewise.
13310         * modules/unicase/u16-suffix-context: Likewise.
13311         * modules/unicase/u16-tolower: Likewise.
13312         * modules/unicase/u16-totitle: Likewise.
13313         * modules/unicase/u16-toupper: Likewise.
13314         * modules/unicase/u32-casecmp: Likewise.
13315         * modules/unicase/u32-casecoll: Likewise.
13316         * modules/unicase/u32-casefold: Likewise.
13317         * modules/unicase/u32-casexfrm: Likewise.
13318         * modules/unicase/u32-ct-casefold: Likewise.
13319         * modules/unicase/u32-ct-tolower: Likewise.
13320         * modules/unicase/u32-ct-totitle: Likewise.
13321         * modules/unicase/u32-ct-toupper: Likewise.
13322         * modules/unicase/u32-is-cased: Likewise.
13323         * modules/unicase/u32-is-casefolded: Likewise.
13324         * modules/unicase/u32-is-lowercase: Likewise.
13325         * modules/unicase/u32-is-titlecase: Likewise.
13326         * modules/unicase/u32-is-uppercase: Likewise.
13327         * modules/unicase/u32-prefix-context: Likewise.
13328         * modules/unicase/u32-suffix-context: Likewise.
13329         * modules/unicase/u32-tolower: Likewise.
13330         * modules/unicase/u32-totitle: Likewise.
13331         * modules/unicase/u32-toupper: Likewise.
13332         * modules/unicase/ulc-casecmp: Likewise.
13333         * modules/unicase/ulc-casecoll: Likewise.
13334         * modules/unicase/ulc-casexfrm: Likewise.
13335         * modules/uniconv/u8-conv-from-enc: Likewise.
13336         * modules/uniconv/u8-conv-to-enc: Likewise.
13337         * modules/uniconv/u8-strconv-from-enc: Likewise.
13338         * modules/uniconv/u8-strconv-from-locale: Likewise.
13339         * modules/uniconv/u8-strconv-to-enc: Likewise.
13340         * modules/uniconv/u8-strconv-to-locale: Likewise.
13341         * modules/uniconv/u16-conv-from-enc: Likewise.
13342         * modules/uniconv/u16-conv-to-enc: Likewise.
13343         * modules/uniconv/u16-strconv-from-enc: Likewise.
13344         * modules/uniconv/u16-strconv-from-locale: Likewise.
13345         * modules/uniconv/u16-strconv-to-enc: Likewise.
13346         * modules/uniconv/u16-strconv-to-locale: Likewise.
13347         * modules/uniconv/u32-conv-from-enc: Likewise.
13348         * modules/uniconv/u32-conv-to-enc: Likewise.
13349         * modules/uniconv/u32-strconv-from-enc: Likewise.
13350         * modules/uniconv/u32-strconv-from-locale: Likewise.
13351         * modules/uniconv/u32-strconv-to-enc: Likewise.
13352         * modules/uniconv/u32-strconv-to-locale: Likewise.
13353         * modules/unictype/bidicategory-byname: Likewise.
13354         * modules/unictype/bidicategory-name: Likewise.
13355         * modules/unictype/bidicategory-of: Likewise.
13356         * modules/unictype/bidicategory-test: Likewise.
13357         * modules/unictype/block-list: Likewise.
13358         * modules/unictype/block-test: Likewise.
13359         * modules/unictype/category-C: Likewise.
13360         * modules/unictype/category-Cc: Likewise.
13361         * modules/unictype/category-Cf: Likewise.
13362         * modules/unictype/category-Cn: Likewise.
13363         * modules/unictype/category-Co: Likewise.
13364         * modules/unictype/category-Cs: Likewise.
13365         * modules/unictype/category-L: Likewise.
13366         * modules/unictype/category-Ll: Likewise.
13367         * modules/unictype/category-Lm: Likewise.
13368         * modules/unictype/category-Lo: Likewise.
13369         * modules/unictype/category-Lt: Likewise.
13370         * modules/unictype/category-Lu: Likewise.
13371         * modules/unictype/category-M: Likewise.
13372         * modules/unictype/category-Mc: Likewise.
13373         * modules/unictype/category-Me: Likewise.
13374         * modules/unictype/category-Mn: Likewise.
13375         * modules/unictype/category-N: Likewise.
13376         * modules/unictype/category-Nd: Likewise.
13377         * modules/unictype/category-Nl: Likewise.
13378         * modules/unictype/category-No: Likewise.
13379         * modules/unictype/category-P: Likewise.
13380         * modules/unictype/category-Pc: Likewise.
13381         * modules/unictype/category-Pd: Likewise.
13382         * modules/unictype/category-Pe: Likewise.
13383         * modules/unictype/category-Pf: Likewise.
13384         * modules/unictype/category-Pi: Likewise.
13385         * modules/unictype/category-Po: Likewise.
13386         * modules/unictype/category-Ps: Likewise.
13387         * modules/unictype/category-S: Likewise.
13388         * modules/unictype/category-Sc: Likewise.
13389         * modules/unictype/category-Sk: Likewise.
13390         * modules/unictype/category-Sm: Likewise.
13391         * modules/unictype/category-So: Likewise.
13392         * modules/unictype/category-Z: Likewise.
13393         * modules/unictype/category-Zl: Likewise.
13394         * modules/unictype/category-Zp: Likewise.
13395         * modules/unictype/category-Zs: Likewise.
13396         * modules/unictype/category-and: Likewise.
13397         * modules/unictype/category-and-not: Likewise.
13398         * modules/unictype/category-byname: Likewise.
13399         * modules/unictype/category-name: Likewise.
13400         * modules/unictype/category-none: Likewise.
13401         * modules/unictype/category-of: Likewise.
13402         * modules/unictype/category-or: Likewise.
13403         * modules/unictype/category-test: Likewise.
13404         * modules/unictype/combining-class: Likewise.
13405         * modules/unictype/ctype-alnum: Likewise.
13406         * modules/unictype/ctype-alpha: Likewise.
13407         * modules/unictype/ctype-blank: Likewise.
13408         * modules/unictype/ctype-cntrl: Likewise.
13409         * modules/unictype/ctype-digit: Likewise.
13410         * modules/unictype/ctype-graph: Likewise.
13411         * modules/unictype/ctype-lower: Likewise.
13412         * modules/unictype/ctype-print: Likewise.
13413         * modules/unictype/ctype-punct: Likewise.
13414         * modules/unictype/ctype-space: Likewise.
13415         * modules/unictype/ctype-upper: Likewise.
13416         * modules/unictype/ctype-xdigit: Likewise.
13417         * modules/unictype/decimal-digit: Likewise.
13418         * modules/unictype/digit: Likewise.
13419         * modules/unictype/mirror: Likewise.
13420         * modules/unictype/numeric: Likewise.
13421         * modules/unictype/property-alphabetic: Likewise.
13422         * modules/unictype/property-ascii-hex-digit: Likewise.
13423         * modules/unictype/property-bidi-arabic-digit: Likewise.
13424         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13425         * modules/unictype/property-bidi-block-separator: Likewise.
13426         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13427         * modules/unictype/property-bidi-common-separator: Likewise.
13428         * modules/unictype/property-bidi-control: Likewise.
13429         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13430         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13431         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13432         * modules/unictype/property-bidi-european-digit: Likewise.
13433         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13434         * modules/unictype/property-bidi-left-to-right: Likewise.
13435         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13436         * modules/unictype/property-bidi-other-neutral: Likewise.
13437         * modules/unictype/property-bidi-pdf: Likewise.
13438         * modules/unictype/property-bidi-segment-separator: Likewise.
13439         * modules/unictype/property-bidi-whitespace: Likewise.
13440         * modules/unictype/property-byname: Likewise.
13441         * modules/unictype/property-combining: Likewise.
13442         * modules/unictype/property-composite: Likewise.
13443         * modules/unictype/property-currency-symbol: Likewise.
13444         * modules/unictype/property-dash: Likewise.
13445         * modules/unictype/property-decimal-digit: Likewise.
13446         * modules/unictype/property-default-ignorable-code-point: Likewise.
13447         * modules/unictype/property-deprecated: Likewise.
13448         * modules/unictype/property-diacritic: Likewise.
13449         * modules/unictype/property-extender: Likewise.
13450         * modules/unictype/property-format-control: Likewise.
13451         * modules/unictype/property-grapheme-base: Likewise.
13452         * modules/unictype/property-grapheme-extend: Likewise.
13453         * modules/unictype/property-grapheme-link: Likewise.
13454         * modules/unictype/property-hex-digit: Likewise.
13455         * modules/unictype/property-hyphen: Likewise.
13456         * modules/unictype/property-id-continue: Likewise.
13457         * modules/unictype/property-id-start: Likewise.
13458         * modules/unictype/property-ideographic: Likewise.
13459         * modules/unictype/property-ids-binary-operator: Likewise.
13460         * modules/unictype/property-ids-trinary-operator: Likewise.
13461         * modules/unictype/property-ignorable-control: Likewise.
13462         * modules/unictype/property-iso-control: Likewise.
13463         * modules/unictype/property-join-control: Likewise.
13464         * modules/unictype/property-left-of-pair: Likewise.
13465         * modules/unictype/property-line-separator: Likewise.
13466         * modules/unictype/property-logical-order-exception: Likewise.
13467         * modules/unictype/property-lowercase: Likewise.
13468         * modules/unictype/property-math: Likewise.
13469         * modules/unictype/property-non-break: Likewise.
13470         * modules/unictype/property-not-a-character: Likewise.
13471         * modules/unictype/property-numeric: Likewise.
13472         * modules/unictype/property-other-alphabetic: Likewise.
13473         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13474         * modules/unictype/property-other-grapheme-extend: Likewise.
13475         * modules/unictype/property-other-id-continue: Likewise.
13476         * modules/unictype/property-other-id-start: Likewise.
13477         * modules/unictype/property-other-lowercase: Likewise.
13478         * modules/unictype/property-other-math: Likewise.
13479         * modules/unictype/property-other-uppercase: Likewise.
13480         * modules/unictype/property-paired-punctuation: Likewise.
13481         * modules/unictype/property-paragraph-separator: Likewise.
13482         * modules/unictype/property-pattern-syntax: Likewise.
13483         * modules/unictype/property-pattern-white-space: Likewise.
13484         * modules/unictype/property-private-use: Likewise.
13485         * modules/unictype/property-punctuation: Likewise.
13486         * modules/unictype/property-quotation-mark: Likewise.
13487         * modules/unictype/property-radical: Likewise.
13488         * modules/unictype/property-sentence-terminal: Likewise.
13489         * modules/unictype/property-soft-dotted: Likewise.
13490         * modules/unictype/property-space: Likewise.
13491         * modules/unictype/property-terminal-punctuation: Likewise.
13492         * modules/unictype/property-test: Likewise.
13493         * modules/unictype/property-titlecase: Likewise.
13494         * modules/unictype/property-unassigned-code-value: Likewise.
13495         * modules/unictype/property-unified-ideograph: Likewise.
13496         * modules/unictype/property-uppercase: Likewise.
13497         * modules/unictype/property-variation-selector: Likewise.
13498         * modules/unictype/property-white-space: Likewise.
13499         * modules/unictype/property-xid-continue: Likewise.
13500         * modules/unictype/property-xid-start: Likewise.
13501         * modules/unictype/property-zero-width: Likewise.
13502         * modules/unictype/scripts: Likewise.
13503         * modules/unictype/syntax-c-ident: Likewise.
13504         * modules/unictype/syntax-c-whitespace: Likewise.
13505         * modules/unictype/syntax-java-ident: Likewise.
13506         * modules/unictype/syntax-java-whitespace: Likewise.
13507         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13508         * modules/unilbrk/u8-width-linebreaks: Likewise.
13509         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13510         * modules/unilbrk/u16-width-linebreaks: Likewise.
13511         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13512         * modules/unilbrk/u32-width-linebreaks: Likewise.
13513         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13514         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13515         * modules/uniname/uniname: Likewise.
13516         * modules/uninorm/canonical-decomposition: Likewise.
13517         * modules/uninorm/composition: Likewise.
13518         * modules/uninorm/decomposing-form: Likewise.
13519         * modules/uninorm/decomposition: Likewise.
13520         * modules/uninorm/filter: Likewise.
13521         * modules/uninorm/nfc: Likewise.
13522         * modules/uninorm/nfd: Likewise.
13523         * modules/uninorm/nfkc: Likewise.
13524         * modules/uninorm/nfkd: Likewise.
13525         * modules/uninorm/u8-normalize: Likewise.
13526         * modules/uninorm/u8-normcmp: Likewise.
13527         * modules/uninorm/u8-normcoll: Likewise.
13528         * modules/uninorm/u8-normxfrm: Likewise.
13529         * modules/uninorm/u16-normalize: Likewise.
13530         * modules/uninorm/u16-normcmp: Likewise.
13531         * modules/uninorm/u16-normcoll: Likewise.
13532         * modules/uninorm/u16-normxfrm: Likewise.
13533         * modules/uninorm/u32-normalize: Likewise.
13534         * modules/uninorm/u32-normcmp: Likewise.
13535         * modules/uninorm/u32-normcoll: Likewise.
13536         * modules/uninorm/u32-normxfrm: Likewise.
13537         * modules/unistdio/u8-asnprintf: Likewise.
13538         * modules/unistdio/u8-asprintf: Likewise.
13539         * modules/unistdio/u8-snprintf: Likewise.
13540         * modules/unistdio/u8-sprintf: Likewise.
13541         * modules/unistdio/u8-u8-asnprintf: Likewise.
13542         * modules/unistdio/u8-u8-asprintf: Likewise.
13543         * modules/unistdio/u8-u8-snprintf: Likewise.
13544         * modules/unistdio/u8-u8-sprintf: Likewise.
13545         * modules/unistdio/u8-u8-vasnprintf: Likewise.
13546         * modules/unistdio/u8-u8-vasprintf: Likewise.
13547         * modules/unistdio/u8-u8-vsnprintf: Likewise.
13548         * modules/unistdio/u8-u8-vsprintf: Likewise.
13549         * modules/unistdio/u8-vasnprintf: Likewise.
13550         * modules/unistdio/u8-vasprintf: Likewise.
13551         * modules/unistdio/u8-vsnprintf: Likewise.
13552         * modules/unistdio/u8-vsprintf: Likewise.
13553         * modules/unistdio/u16-asnprintf: Likewise.
13554         * modules/unistdio/u16-asprintf: Likewise.
13555         * modules/unistdio/u16-snprintf: Likewise.
13556         * modules/unistdio/u16-sprintf: Likewise.
13557         * modules/unistdio/u16-u16-asnprintf: Likewise.
13558         * modules/unistdio/u16-u16-asprintf: Likewise.
13559         * modules/unistdio/u16-u16-snprintf: Likewise.
13560         * modules/unistdio/u16-u16-sprintf: Likewise.
13561         * modules/unistdio/u16-u16-vasnprintf: Likewise.
13562         * modules/unistdio/u16-u16-vasprintf: Likewise.
13563         * modules/unistdio/u16-u16-vsnprintf: Likewise.
13564         * modules/unistdio/u16-u16-vsprintf: Likewise.
13565         * modules/unistdio/u16-vasnprintf: Likewise.
13566         * modules/unistdio/u16-vasprintf: Likewise.
13567         * modules/unistdio/u16-vsnprintf: Likewise.
13568         * modules/unistdio/u16-vsprintf: Likewise.
13569         * modules/unistdio/u32-asnprintf: Likewise.
13570         * modules/unistdio/u32-asprintf: Likewise.
13571         * modules/unistdio/u32-snprintf: Likewise.
13572         * modules/unistdio/u32-sprintf: Likewise.
13573         * modules/unistdio/u32-u32-asnprintf: Likewise.
13574         * modules/unistdio/u32-u32-asprintf: Likewise.
13575         * modules/unistdio/u32-u32-snprintf: Likewise.
13576         * modules/unistdio/u32-u32-sprintf: Likewise.
13577         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13578         * modules/unistdio/u32-u32-vasprintf: Likewise.
13579         * modules/unistdio/u32-u32-vsnprintf: Likewise.
13580         * modules/unistdio/u32-u32-vsprintf: Likewise.
13581         * modules/unistdio/u32-vasnprintf: Likewise.
13582         * modules/unistdio/u32-vasprintf: Likewise.
13583         * modules/unistdio/u32-vsnprintf: Likewise.
13584         * modules/unistdio/u32-vsprintf: Likewise.
13585         * modules/unistdio/ulc-asnprintf: Likewise.
13586         * modules/unistdio/ulc-asprintf: Likewise.
13587         * modules/unistdio/ulc-fprintf: Likewise.
13588         * modules/unistdio/ulc-snprintf: Likewise.
13589         * modules/unistdio/ulc-sprintf: Likewise.
13590         * modules/unistdio/ulc-vasnprintf: Likewise.
13591         * modules/unistdio/ulc-vasprintf: Likewise.
13592         * modules/unistdio/ulc-vfprintf: Likewise.
13593         * modules/unistdio/ulc-vsnprintf: Likewise.
13594         * modules/unistdio/ulc-vsprintf: Likewise.
13595         * modules/unistr/u8-check: Likewise.
13596         * modules/unistr/u8-chr: Likewise.
13597         * modules/unistr/u8-cmp: Likewise.
13598         * modules/unistr/u8-cmp2: Likewise.
13599         * modules/unistr/u8-cpy: Likewise.
13600         * modules/unistr/u8-cpy-alloc: Likewise.
13601         * modules/unistr/u8-endswith: Likewise.
13602         * modules/unistr/u8-mblen: Likewise.
13603         * modules/unistr/u8-mbsnlen: Likewise.
13604         * modules/unistr/u8-mbtouc: Likewise.
13605         * modules/unistr/u8-mbtouc-unsafe: Likewise.
13606         * modules/unistr/u8-mbtoucr: Likewise.
13607         * modules/unistr/u8-move: Likewise.
13608         * modules/unistr/u8-next: Likewise.
13609         * modules/unistr/u8-prev: Likewise.
13610         * modules/unistr/u8-set: Likewise.
13611         * modules/unistr/u8-startswith: Likewise.
13612         * modules/unistr/u8-stpcpy: Likewise.
13613         * modules/unistr/u8-stpncpy: Likewise.
13614         * modules/unistr/u8-strcat: Likewise.
13615         * modules/unistr/u8-strchr: Likewise.
13616         * modules/unistr/u8-strcmp: Likewise.
13617         * modules/unistr/u8-strcoll: Likewise.
13618         * modules/unistr/u8-strcpy: Likewise.
13619         * modules/unistr/u8-strcspn: Likewise.
13620         * modules/unistr/u8-strdup: Likewise.
13621         * modules/unistr/u8-strlen: Likewise.
13622         * modules/unistr/u8-strmblen: Likewise.
13623         * modules/unistr/u8-strmbtouc: Likewise.
13624         * modules/unistr/u8-strncat: Likewise.
13625         * modules/unistr/u8-strncmp: Likewise.
13626         * modules/unistr/u8-strncpy: Likewise.
13627         * modules/unistr/u8-strnlen: Likewise.
13628         * modules/unistr/u8-strpbrk: Likewise.
13629         * modules/unistr/u8-strrchr: Likewise.
13630         * modules/unistr/u8-strspn: Likewise.
13631         * modules/unistr/u8-strstr: Likewise.
13632         * modules/unistr/u8-strtok: Likewise.
13633         * modules/unistr/u8-to-u16: Likewise.
13634         * modules/unistr/u8-to-u32: Likewise.
13635         * modules/unistr/u8-uctomb: Likewise.
13636         * modules/unistr/u16-check: Likewise.
13637         * modules/unistr/u16-chr: Likewise.
13638         * modules/unistr/u16-cmp: Likewise.
13639         * modules/unistr/u16-cmp2: Likewise.
13640         * modules/unistr/u16-cpy: Likewise.
13641         * modules/unistr/u16-cpy-alloc: Likewise.
13642         * modules/unistr/u16-endswith: Likewise.
13643         * modules/unistr/u16-mblen: Likewise.
13644         * modules/unistr/u16-mbsnlen: Likewise.
13645         * modules/unistr/u16-mbtouc: Likewise.
13646         * modules/unistr/u16-mbtouc-unsafe: Likewise.
13647         * modules/unistr/u16-mbtoucr: Likewise.
13648         * modules/unistr/u16-move: Likewise.
13649         * modules/unistr/u16-next: Likewise.
13650         * modules/unistr/u16-prev: Likewise.
13651         * modules/unistr/u16-set: Likewise.
13652         * modules/unistr/u16-startswith: Likewise.
13653         * modules/unistr/u16-stpcpy: Likewise.
13654         * modules/unistr/u16-stpncpy: Likewise.
13655         * modules/unistr/u16-strcat: Likewise.
13656         * modules/unistr/u16-strchr: Likewise.
13657         * modules/unistr/u16-strcmp: Likewise.
13658         * modules/unistr/u16-strcoll: Likewise.
13659         * modules/unistr/u16-strcpy: Likewise.
13660         * modules/unistr/u16-strcspn: Likewise.
13661         * modules/unistr/u16-strdup: Likewise.
13662         * modules/unistr/u16-strlen: Likewise.
13663         * modules/unistr/u16-strmblen: Likewise.
13664         * modules/unistr/u16-strmbtouc: Likewise.
13665         * modules/unistr/u16-strncat: Likewise.
13666         * modules/unistr/u16-strncmp: Likewise.
13667         * modules/unistr/u16-strncpy: Likewise.
13668         * modules/unistr/u16-strnlen: Likewise.
13669         * modules/unistr/u16-strpbrk: Likewise.
13670         * modules/unistr/u16-strrchr: Likewise.
13671         * modules/unistr/u16-strspn: Likewise.
13672         * modules/unistr/u16-strstr: Likewise.
13673         * modules/unistr/u16-strtok: Likewise.
13674         * modules/unistr/u16-to-u32: Likewise.
13675         * modules/unistr/u16-to-u8: Likewise.
13676         * modules/unistr/u16-uctomb: Likewise.
13677         * modules/unistr/u32-check: Likewise.
13678         * modules/unistr/u32-chr: Likewise.
13679         * modules/unistr/u32-cmp: Likewise.
13680         * modules/unistr/u32-cmp2: Likewise.
13681         * modules/unistr/u32-cpy: Likewise.
13682         * modules/unistr/u32-cpy-alloc: Likewise.
13683         * modules/unistr/u32-endswith: Likewise.
13684         * modules/unistr/u32-mblen: Likewise.
13685         * modules/unistr/u32-mbsnlen: Likewise.
13686         * modules/unistr/u32-mbtouc: Likewise.
13687         * modules/unistr/u32-mbtouc-unsafe: Likewise.
13688         * modules/unistr/u32-mbtoucr: Likewise.
13689         * modules/unistr/u32-move: Likewise.
13690         * modules/unistr/u32-next: Likewise.
13691         * modules/unistr/u32-prev: Likewise.
13692         * modules/unistr/u32-set: Likewise.
13693         * modules/unistr/u32-startswith: Likewise.
13694         * modules/unistr/u32-stpcpy: Likewise.
13695         * modules/unistr/u32-stpncpy: Likewise.
13696         * modules/unistr/u32-strcat: Likewise.
13697         * modules/unistr/u32-strchr: Likewise.
13698         * modules/unistr/u32-strcmp: Likewise.
13699         * modules/unistr/u32-strcoll: Likewise.
13700         * modules/unistr/u32-strcpy: Likewise.
13701         * modules/unistr/u32-strcspn: Likewise.
13702         * modules/unistr/u32-strdup: Likewise.
13703         * modules/unistr/u32-strlen: Likewise.
13704         * modules/unistr/u32-strmblen: Likewise.
13705         * modules/unistr/u32-strmbtouc: Likewise.
13706         * modules/unistr/u32-strncat: Likewise.
13707         * modules/unistr/u32-strncmp: Likewise.
13708         * modules/unistr/u32-strncpy: Likewise.
13709         * modules/unistr/u32-strnlen: Likewise.
13710         * modules/unistr/u32-strpbrk: Likewise.
13711         * modules/unistr/u32-strrchr: Likewise.
13712         * modules/unistr/u32-strspn: Likewise.
13713         * modules/unistr/u32-strstr: Likewise.
13714         * modules/unistr/u32-strtok: Likewise.
13715         * modules/unistr/u32-to-u16: Likewise.
13716         * modules/unistr/u32-to-u8: Likewise.
13717         * modules/unistr/u32-uctomb: Likewise.
13718         * modules/uniwbrk/u8-wordbreaks: Likewise.
13719         * modules/uniwbrk/u16-wordbreaks: Likewise.
13720         * modules/uniwbrk/u32-wordbreaks: Likewise.
13721         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13722         * modules/uniwbrk/wordbreak-property: Likewise.
13723         * modules/uniwidth/u8-strwidth: Likewise.
13724         * modules/uniwidth/u8-width: Likewise.
13725         * modules/uniwidth/u16-strwidth: Likewise.
13726         * modules/uniwidth/u16-width: Likewise.
13727         * modules/uniwidth/u32-strwidth: Likewise.
13728         * modules/uniwidth/u32-width: Likewise.
13729         * modules/uniwidth/width: Likewise.
13730         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13731         with $(LIBUNISTRING).
13732         * modules/unicase/ignorable-tests: Likewise.
13733         * modules/unicase/locale-language-tests: Likewise.
13734         * modules/unicase/tolower-tests: Likewise.
13735         * modules/unicase/totitle-tests: Likewise.
13736         * modules/unicase/toupper-tests: Likewise.
13737         * modules/unicase/u8-casecmp-tests: Likewise.
13738         * modules/unicase/u8-casecoll-tests: Likewise.
13739         * modules/unicase/u8-casefold-tests: Likewise.
13740         * modules/unicase/u8-is-cased-tests: Likewise.
13741         * modules/unicase/u8-is-casefolded-tests: Likewise.
13742         * modules/unicase/u8-is-lowercase-tests: Likewise.
13743         * modules/unicase/u8-is-titlecase-tests: Likewise.
13744         * modules/unicase/u8-is-uppercase-tests: Likewise.
13745         * modules/unicase/u8-tolower-tests: Likewise.
13746         * modules/unicase/u8-totitle-tests: Likewise.
13747         * modules/unicase/u8-toupper-tests: Likewise.
13748         * modules/unicase/u16-casecmp-tests: Likewise.
13749         * modules/unicase/u16-casecoll-tests: Likewise.
13750         * modules/unicase/u16-casefold-tests: Likewise.
13751         * modules/unicase/u16-is-cased-tests: Likewise.
13752         * modules/unicase/u16-is-casefolded-tests: Likewise.
13753         * modules/unicase/u16-is-lowercase-tests: Likewise.
13754         * modules/unicase/u16-is-titlecase-tests: Likewise.
13755         * modules/unicase/u16-is-uppercase-tests: Likewise.
13756         * modules/unicase/u16-tolower-tests: Likewise.
13757         * modules/unicase/u16-totitle-tests: Likewise.
13758         * modules/unicase/u16-toupper-tests: Likewise.
13759         * modules/unicase/u32-casecmp-tests: Likewise.
13760         * modules/unicase/u32-casecoll-tests: Likewise.
13761         * modules/unicase/u32-casefold-tests: Likewise.
13762         * modules/unicase/u32-is-cased-tests: Likewise.
13763         * modules/unicase/u32-is-casefolded-tests: Likewise.
13764         * modules/unicase/u32-is-lowercase-tests: Likewise.
13765         * modules/unicase/u32-is-titlecase-tests: Likewise.
13766         * modules/unicase/u32-is-uppercase-tests: Likewise.
13767         * modules/unicase/u32-tolower-tests: Likewise.
13768         * modules/unicase/u32-totitle-tests: Likewise.
13769         * modules/unicase/u32-toupper-tests: Likewise.
13770         * modules/unicase/ulc-casecmp-tests: Likewise.
13771         * modules/unicase/ulc-casecoll-tests: Likewise.
13772         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13773         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13774         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13775         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13776         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13777         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13778         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13779         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13780         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13781         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13782         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13783         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13784         * modules/unictype/bidicategory-byname-tests: Likewise.
13785         * modules/unictype/bidicategory-name-tests: Likewise.
13786         * modules/unictype/bidicategory-of-tests: Likewise.
13787         * modules/unictype/bidicategory-test-tests: Likewise.
13788         * modules/unictype/block-list-tests: Likewise.
13789         * modules/unictype/block-of-tests: Likewise.
13790         * modules/unictype/block-test-tests: Likewise.
13791         * modules/unictype/category-C-tests: Likewise.
13792         * modules/unictype/category-Cc-tests: Likewise.
13793         * modules/unictype/category-Cf-tests: Likewise.
13794         * modules/unictype/category-Cn-tests: Likewise.
13795         * modules/unictype/category-Co-tests: Likewise.
13796         * modules/unictype/category-Cs-tests: Likewise.
13797         * modules/unictype/category-L-tests: Likewise.
13798         * modules/unictype/category-Ll-tests: Likewise.
13799         * modules/unictype/category-Lm-tests: Likewise.
13800         * modules/unictype/category-Lo-tests: Likewise.
13801         * modules/unictype/category-Lt-tests: Likewise.
13802         * modules/unictype/category-Lu-tests: Likewise.
13803         * modules/unictype/category-M-tests: Likewise.
13804         * modules/unictype/category-Mc-tests: Likewise.
13805         * modules/unictype/category-Me-tests: Likewise.
13806         * modules/unictype/category-Mn-tests: Likewise.
13807         * modules/unictype/category-N-tests: Likewise.
13808         * modules/unictype/category-Nd-tests: Likewise.
13809         * modules/unictype/category-Nl-tests: Likewise.
13810         * modules/unictype/category-No-tests: Likewise.
13811         * modules/unictype/category-P-tests: Likewise.
13812         * modules/unictype/category-Pc-tests: Likewise.
13813         * modules/unictype/category-Pd-tests: Likewise.
13814         * modules/unictype/category-Pe-tests: Likewise.
13815         * modules/unictype/category-Pf-tests: Likewise.
13816         * modules/unictype/category-Pi-tests: Likewise.
13817         * modules/unictype/category-Po-tests: Likewise.
13818         * modules/unictype/category-Ps-tests: Likewise.
13819         * modules/unictype/category-S-tests: Likewise.
13820         * modules/unictype/category-Sc-tests: Likewise.
13821         * modules/unictype/category-Sk-tests: Likewise.
13822         * modules/unictype/category-Sm-tests: Likewise.
13823         * modules/unictype/category-So-tests: Likewise.
13824         * modules/unictype/category-Z-tests: Likewise.
13825         * modules/unictype/category-Zl-tests: Likewise.
13826         * modules/unictype/category-Zp-tests: Likewise.
13827         * modules/unictype/category-Zs-tests: Likewise.
13828         * modules/unictype/category-and-not-tests: Likewise.
13829         * modules/unictype/category-and-tests: Likewise.
13830         * modules/unictype/category-byname-tests: Likewise.
13831         * modules/unictype/category-name-tests: Likewise.
13832         * modules/unictype/category-none-tests: Likewise.
13833         * modules/unictype/category-of-tests: Likewise.
13834         * modules/unictype/category-or-tests: Likewise.
13835         * modules/unictype/category-test-withtable-tests: Likewise.
13836         * modules/unictype/combining-class-tests: Likewise.
13837         * modules/unictype/ctype-alnum-tests: Likewise.
13838         * modules/unictype/ctype-alpha-tests: Likewise.
13839         * modules/unictype/ctype-blank-tests: Likewise.
13840         * modules/unictype/ctype-cntrl-tests: Likewise.
13841         * modules/unictype/ctype-digit-tests: Likewise.
13842         * modules/unictype/ctype-graph-tests: Likewise.
13843         * modules/unictype/ctype-lower-tests: Likewise.
13844         * modules/unictype/ctype-print-tests: Likewise.
13845         * modules/unictype/ctype-punct-tests: Likewise.
13846         * modules/unictype/ctype-space-tests: Likewise.
13847         * modules/unictype/ctype-upper-tests: Likewise.
13848         * modules/unictype/ctype-xdigit-tests: Likewise.
13849         * modules/unictype/decimal-digit-tests: Likewise.
13850         * modules/unictype/digit-tests: Likewise.
13851         * modules/unictype/mirror-tests: Likewise.
13852         * modules/unictype/numeric-tests: Likewise.
13853         * modules/unictype/property-alphabetic-tests: Likewise.
13854         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
13855         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
13856         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
13857         * modules/unictype/property-bidi-block-separator-tests: Likewise.
13858         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
13859         * modules/unictype/property-bidi-common-separator-tests: Likewise.
13860         * modules/unictype/property-bidi-control-tests: Likewise.
13861         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
13862         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
13863         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
13864         * modules/unictype/property-bidi-european-digit-tests: Likewise.
13865         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
13866         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
13867         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
13868         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
13869         * modules/unictype/property-bidi-pdf-tests: Likewise.
13870         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
13871         * modules/unictype/property-bidi-whitespace-tests: Likewise.
13872         * modules/unictype/property-byname-tests: Likewise.
13873         * modules/unictype/property-combining-tests: Likewise.
13874         * modules/unictype/property-composite-tests: Likewise.
13875         * modules/unictype/property-currency-symbol-tests: Likewise.
13876         * modules/unictype/property-dash-tests: Likewise.
13877         * modules/unictype/property-decimal-digit-tests: Likewise.
13878         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
13879         * modules/unictype/property-deprecated-tests: Likewise.
13880         * modules/unictype/property-diacritic-tests: Likewise.
13881         * modules/unictype/property-extender-tests: Likewise.
13882         * modules/unictype/property-format-control-tests: Likewise.
13883         * modules/unictype/property-grapheme-base-tests: Likewise.
13884         * modules/unictype/property-grapheme-extend-tests: Likewise.
13885         * modules/unictype/property-grapheme-link-tests: Likewise.
13886         * modules/unictype/property-hex-digit-tests: Likewise.
13887         * modules/unictype/property-hyphen-tests: Likewise.
13888         * modules/unictype/property-id-continue-tests: Likewise.
13889         * modules/unictype/property-id-start-tests: Likewise.
13890         * modules/unictype/property-ideographic-tests: Likewise.
13891         * modules/unictype/property-ids-binary-operator-tests: Likewise.
13892         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
13893         * modules/unictype/property-ignorable-control-tests: Likewise.
13894         * modules/unictype/property-iso-control-tests: Likewise.
13895         * modules/unictype/property-join-control-tests: Likewise.
13896         * modules/unictype/property-left-of-pair-tests: Likewise.
13897         * modules/unictype/property-line-separator-tests: Likewise.
13898         * modules/unictype/property-logical-order-exception-tests: Likewise.
13899         * modules/unictype/property-lowercase-tests: Likewise.
13900         * modules/unictype/property-math-tests: Likewise.
13901         * modules/unictype/property-non-break-tests: Likewise.
13902         * modules/unictype/property-not-a-character-tests: Likewise.
13903         * modules/unictype/property-numeric-tests: Likewise.
13904         * modules/unictype/property-other-alphabetic-tests: Likewise.
13905         * modules/unictype/property-other-default-ignorable-code-point-tests:
13906         Likewise.
13907         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
13908         * modules/unictype/property-other-id-continue-tests: Likewise.
13909         * modules/unictype/property-other-id-start-tests: Likewise.
13910         * modules/unictype/property-other-lowercase-tests: Likewise.
13911         * modules/unictype/property-other-math-tests: Likewise.
13912         * modules/unictype/property-other-uppercase-tests: Likewise.
13913         * modules/unictype/property-paired-punctuation-tests: Likewise.
13914         * modules/unictype/property-paragraph-separator-tests: Likewise.
13915         * modules/unictype/property-pattern-syntax-tests: Likewise.
13916         * modules/unictype/property-pattern-white-space-tests: Likewise.
13917         * modules/unictype/property-private-use-tests: Likewise.
13918         * modules/unictype/property-punctuation-tests: Likewise.
13919         * modules/unictype/property-quotation-mark-tests: Likewise.
13920         * modules/unictype/property-radical-tests: Likewise.
13921         * modules/unictype/property-sentence-terminal-tests: Likewise.
13922         * modules/unictype/property-soft-dotted-tests: Likewise.
13923         * modules/unictype/property-space-tests: Likewise.
13924         * modules/unictype/property-terminal-punctuation-tests: Likewise.
13925         * modules/unictype/property-test-tests: Likewise.
13926         * modules/unictype/property-titlecase-tests: Likewise.
13927         * modules/unictype/property-unassigned-code-value-tests: Likewise.
13928         * modules/unictype/property-unified-ideograph-tests: Likewise.
13929         * modules/unictype/property-uppercase-tests: Likewise.
13930         * modules/unictype/property-variation-selector-tests: Likewise.
13931         * modules/unictype/property-white-space-tests: Likewise.
13932         * modules/unictype/property-xid-continue-tests: Likewise.
13933         * modules/unictype/property-xid-start-tests: Likewise.
13934         * modules/unictype/property-zero-width-tests: Likewise.
13935         * modules/unictype/scripts-tests: Likewise.
13936         * modules/unictype/syntax-c-ident-tests: Likewise.
13937         * modules/unictype/syntax-c-whitespace-tests: Likewise.
13938         * modules/unictype/syntax-java-ident-tests: Likewise.
13939         * modules/unictype/syntax-java-whitespace-tests: Likewise.
13940         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
13941         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
13942         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
13943         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
13944         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
13945         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
13946         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
13947         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
13948         * modules/uniname/uniname-tests: Likewise.
13949         * modules/uninorm/canonical-decomposition-tests: Likewise.
13950         * modules/uninorm/compat-decomposition-tests: Likewise.
13951         * modules/uninorm/composition-tests: Likewise.
13952         * modules/uninorm/decomposing-form-tests: Likewise.
13953         * modules/uninorm/decomposition-tests: Likewise.
13954         * modules/uninorm/filter-tests: Likewise.
13955         * modules/uninorm/nfc-tests: Likewise.
13956         * modules/uninorm/nfd-tests: Likewise.
13957         * modules/uninorm/nfkc-tests: Likewise.
13958         * modules/uninorm/nfkd-tests: Likewise.
13959         * modules/uninorm/u8-normcmp-tests: Likewise.
13960         * modules/uninorm/u8-normcoll-tests: Likewise.
13961         * modules/uninorm/u16-normcmp-tests: Likewise.
13962         * modules/uninorm/u16-normcoll-tests: Likewise.
13963         * modules/uninorm/u32-normcmp-tests: Likewise.
13964         * modules/uninorm/u32-normcoll-tests: Likewise.
13965         * modules/unistdio/u8-asnprintf-tests: Likewise.
13966         * modules/unistdio/u8-vasnprintf-tests: Likewise.
13967         * modules/unistdio/u8-vasprintf-tests: Likewise.
13968         * modules/unistdio/u8-vsnprintf-tests: Likewise.
13969         * modules/unistdio/u8-vsprintf-tests: Likewise.
13970         * modules/unistdio/u16-asnprintf-tests: Likewise.
13971         * modules/unistdio/u16-vasnprintf-tests: Likewise.
13972         * modules/unistdio/u16-vasprintf-tests: Likewise.
13973         * modules/unistdio/u16-vsnprintf-tests: Likewise.
13974         * modules/unistdio/u16-vsprintf-tests: Likewise.
13975         * modules/unistdio/u32-asnprintf-tests: Likewise.
13976         * modules/unistdio/u32-vasnprintf-tests: Likewise.
13977         * modules/unistdio/u32-vasprintf-tests: Likewise.
13978         * modules/unistdio/u32-vsnprintf-tests: Likewise.
13979         * modules/unistdio/u32-vsprintf-tests: Likewise.
13980         * modules/unistdio/ulc-asnprintf-tests: Likewise.
13981         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
13982         * modules/unistdio/ulc-vasprintf-tests: Likewise.
13983         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
13984         * modules/unistdio/ulc-vsprintf-tests: Likewise.
13985         * modules/unistr/u8-check-tests: Likewise.
13986         * modules/unistr/u8-chr-tests: Likewise.
13987         * modules/unistr/u8-cmp-tests: Likewise.
13988         * modules/unistr/u8-cmp2-tests: Likewise.
13989         * modules/unistr/u8-cpy-alloc-tests: Likewise.
13990         * modules/unistr/u8-cpy-tests: Likewise.
13991         * modules/unistr/u8-mblen-tests: Likewise.
13992         * modules/unistr/u8-mbsnlen-tests: Likewise.
13993         * modules/unistr/u8-mbtouc-tests: Likewise.
13994         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
13995         * modules/unistr/u8-mbtoucr-tests: Likewise.
13996         * modules/unistr/u8-move-tests: Likewise.
13997         * modules/unistr/u8-next-tests: Likewise.
13998         * modules/unistr/u8-prev-tests: Likewise.
13999         * modules/unistr/u8-set-tests: Likewise.
14000         * modules/unistr/u8-stpcpy-tests: Likewise.
14001         * modules/unistr/u8-stpncpy-tests: Likewise.
14002         * modules/unistr/u8-strcat-tests: Likewise.
14003         * modules/unistr/u8-strcmp-tests: Likewise.
14004         * modules/unistr/u8-strcoll-tests: Likewise.
14005         * modules/unistr/u8-strcpy-tests: Likewise.
14006         * modules/unistr/u8-strdup-tests: Likewise.
14007         * modules/unistr/u8-strlen-tests: Likewise.
14008         * modules/unistr/u8-strmblen-tests: Likewise.
14009         * modules/unistr/u8-strmbtouc-tests: Likewise.
14010         * modules/unistr/u8-strncat-tests: Likewise.
14011         * modules/unistr/u8-strncmp-tests: Likewise.
14012         * modules/unistr/u8-strncpy-tests: Likewise.
14013         * modules/unistr/u8-strnlen-tests: Likewise.
14014         * modules/unistr/u8-to-u16-tests: Likewise.
14015         * modules/unistr/u8-to-u32-tests: Likewise.
14016         * modules/unistr/u8-uctomb-tests: Likewise.
14017         * modules/unistr/u16-check-tests: Likewise.
14018         * modules/unistr/u16-chr-tests: Likewise.
14019         * modules/unistr/u16-cmp-tests: Likewise.
14020         * modules/unistr/u16-cmp2-tests: Likewise.
14021         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14022         * modules/unistr/u16-cpy-tests: Likewise.
14023         * modules/unistr/u16-mblen-tests: Likewise.
14024         * modules/unistr/u16-mbsnlen-tests: Likewise.
14025         * modules/unistr/u16-mbtouc-tests: Likewise.
14026         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14027         * modules/unistr/u16-mbtoucr-tests: Likewise.
14028         * modules/unistr/u16-move-tests: Likewise.
14029         * modules/unistr/u16-next-tests: Likewise.
14030         * modules/unistr/u16-prev-tests: Likewise.
14031         * modules/unistr/u16-set-tests: Likewise.
14032         * modules/unistr/u16-stpcpy-tests: Likewise.
14033         * modules/unistr/u16-stpncpy-tests: Likewise.
14034         * modules/unistr/u16-strcat-tests: Likewise.
14035         * modules/unistr/u16-strcmp-tests: Likewise.
14036         * modules/unistr/u16-strcoll-tests: Likewise.
14037         * modules/unistr/u16-strcpy-tests: Likewise.
14038         * modules/unistr/u16-strdup-tests: Likewise.
14039         * modules/unistr/u16-strlen-tests: Likewise.
14040         * modules/unistr/u16-strmblen-tests: Likewise.
14041         * modules/unistr/u16-strmbtouc-tests: Likewise.
14042         * modules/unistr/u16-strncat-tests: Likewise.
14043         * modules/unistr/u16-strncmp-tests: Likewise.
14044         * modules/unistr/u16-strncpy-tests: Likewise.
14045         * modules/unistr/u16-strnlen-tests: Likewise.
14046         * modules/unistr/u16-to-u32-tests: Likewise.
14047         * modules/unistr/u16-to-u8-tests: Likewise.
14048         * modules/unistr/u16-uctomb-tests: Likewise.
14049         * modules/unistr/u32-check-tests: Likewise.
14050         * modules/unistr/u32-chr-tests: Likewise.
14051         * modules/unistr/u32-cmp-tests: Likewise.
14052         * modules/unistr/u32-cmp2-tests: Likewise.
14053         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14054         * modules/unistr/u32-cpy-tests: Likewise.
14055         * modules/unistr/u32-mblen-tests: Likewise.
14056         * modules/unistr/u32-mbsnlen-tests: Likewise.
14057         * modules/unistr/u32-mbtouc-tests: Likewise.
14058         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14059         * modules/unistr/u32-mbtoucr-tests: Likewise.
14060         * modules/unistr/u32-move-tests: Likewise.
14061         * modules/unistr/u32-next-tests: Likewise.
14062         * modules/unistr/u32-prev-tests: Likewise.
14063         * modules/unistr/u32-set-tests: Likewise.
14064         * modules/unistr/u32-stpcpy-tests: Likewise.
14065         * modules/unistr/u32-stpncpy-tests: Likewise.
14066         * modules/unistr/u32-strcat-tests: Likewise.
14067         * modules/unistr/u32-strcmp-tests: Likewise.
14068         * modules/unistr/u32-strcoll-tests: Likewise.
14069         * modules/unistr/u32-strcpy-tests: Likewise.
14070         * modules/unistr/u32-strdup-tests: Likewise.
14071         * modules/unistr/u32-strlen-tests: Likewise.
14072         * modules/unistr/u32-strmblen-tests: Likewise.
14073         * modules/unistr/u32-strmbtouc-tests: Likewise.
14074         * modules/unistr/u32-strncat-tests: Likewise.
14075         * modules/unistr/u32-strncmp-tests: Likewise.
14076         * modules/unistr/u32-strncpy-tests: Likewise.
14077         * modules/unistr/u32-strnlen-tests: Likewise.
14078         * modules/unistr/u32-to-u16-tests: Likewise.
14079         * modules/unistr/u32-to-u8-tests: Likewise.
14080         * modules/unistr/u32-uctomb-tests: Likewise.
14081         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14082         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14083         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14084         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14085         * modules/uniwidth/u8-strwidth-tests: Likewise.
14086         * modules/uniwidth/u8-width-tests: Likewise.
14087         * modules/uniwidth/u16-strwidth-tests: Likewise.
14088         * modules/uniwidth/u16-width-tests: Likewise.
14089         * modules/uniwidth/u32-strwidth-tests: Likewise.
14090         * modules/uniwidth/u32-width-tests: Likewise.
14091         * modules/uniwidth/width-tests: Likewise.
14092
14093 2010-05-18  Richard Jones  <rjones@redhat.com>
14094
14095         doc: users.txt: list hivex
14096         * users.txt: Add hivex.
14097
14098 2010-05-18  Richard Jones  <rjones@redhat.com>
14099
14100         doc: users.txt: list febootstrap
14101         * users.txt: Add febootstrap.
14102
14103 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14104
14105         bootstrap: fix an error when gnulib is not used as a git submodule
14106         * build-aux/bootstrap (gnulib_path): If its length is zero then
14107         assign "gnulib" to it.
14108         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14109
14110 2010-05-16  Bruno Haible  <bruno@clisp.org>
14111
14112         Avoid autoconf warnings about AM_ICONV.
14113         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14114         2.64.
14115
14116 2010-05-16  Bruno Haible  <bruno@clisp.org>
14117
14118         absolute-header: Make the macro usable in more situations.
14119         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14120         from gl_ABSOLUTE_HEADER.
14121         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14122
14123 2010-05-16  James Youngman  <jay@gnu.org>
14124
14125         doc: update users.txt
14126         * users.txt: Add CSSC.
14127
14128 2010-05-16  Jim Meyering  <meyering@redhat.com>
14129
14130         init.sh: fix an error in the previous change; add more comments
14131         * tests/init.sh: Compare exit code in loop against 9, not 2.
14132         Patch by Bruno Haible.
14133         Make the two tests more similar by adding an empty "then" clause.
14134         Add comments.
14135
14136         init.sh: avoid unnecessary shell re-exec
14137         * tests/init.sh: Improve the re-exec-required check to first test the
14138         current shell.  If it passes the test, do not search for a shell that
14139         does pass, and do not re-exec.  This test is particularly contorted to
14140         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14141         of $(...) evokes a syntax error and causes immediate shell exit with
14142         status 2.  Bruno Haible reported that the re-exec made it impossible
14143         to single-step through any init.sh-using script.
14144
14145 2010-05-16  Bruno Haible  <bruno@clisp.org>
14146
14147         Fix collision between gnulib's and libintl's printf replacements.
14148         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14149         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14150         (printf): When using GNU C, map the __printf__ function to rpl_printf
14151         via __asm__. When not using GNU C, define rpl_printf instead of
14152         __printf__.
14153         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14154         commit.
14155         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14156         commit.
14157         * m4/asm-underscore.m4: New file.
14158         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14159         * modules/stdio (Files): Add m4/asm-underscore.m4.
14160         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14161         Reported by Ben Pfaff.
14162
14163 2010-05-16  Bruno Haible  <bruno@clisp.org>
14164
14165         verify: Avoid skipping the test on openSUSE 11.0.
14166         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14167
14168 2010-05-13  Bruno Haible  <bruno@clisp.org>
14169
14170         Avoid useless warnings from G++.
14171         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14172         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14173         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14174
14175 2010-05-11  Jim Meyering  <meyering@redhat.com>
14176
14177         maint.mk: tweak preceding change
14178         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14179         regexps tighter by anchoring at EOL, and make the new group "shy"
14180         for slightly decreased overhead.
14181
14182 2010-05-11  Eric Blake  <eblake@redhat.com>
14183
14184         maint.mk: gnulib doesn't guarantee NSIG
14185         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14186
14187 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14188
14189         test-pwrite.c: Remove unused variable declaration.
14190         * tests/test-pwrite.c (main): Remove read_buf declaration.
14191
14192         Remove useless test-pwrite.sh file.
14193         * tests/test-pwrite.sh: Delete file.
14194         * modules/pwrite-tests: Remove references.
14195         Reported by Bruno Haible.
14196
14197 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14198
14199         init.sh: fix a typo
14200         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14201
14202 2010-05-10  Jim Meyering  <meyering@redhat.com>
14203
14204         maint.mk: avoid using a temporary file in the always-defined-macros check
14205         * top/maint.mk (.re-defmac): Remove rule.
14206         (gl_trap_): Remove definition.
14207         (sc_prohibit_always-defined_macros): Rewrite not to create and
14208         depend on a temporary file.  Instead, depend on GNU grep's ability
14209         to read a list of regular expressions from stdin when given "-f -".
14210
14211 2010-05-09  Bruno Haible  <bruno@clisp.org>
14212
14213         Update to GNU gettext 0.18, part 1.
14214         * m4/gettext.m4: Update to GNU gettext 0.18.
14215         * m4/intl.m4: Likewise.
14216         * m4/po.m4: Likewise.
14217         * modules/gettext (Files): Add m4/fcntl-o.m4.
14218         (configure.ac): Require gettext infrastructure from version 0.18.
14219
14220 2010-05-09  Jim Meyering  <meyering@redhat.com>
14221
14222         init.sh: enable MALLOC_PERTURB_
14223         * tests/init.sh: Enable glibc's malloc-perturbing option.
14224
14225         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14226         With my recent change in init.sh from the two-line form:
14227             -#   : ${srcdir=.}
14228             -#   . "$srcdir/init.sh"; path_prepend_ .
14229             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14230         I noticed that using the one-line form would cause this test
14231         to fail with a false-positive, or to stop working altogether,
14232         depending on whether help-version changed or all the tests did.
14233         * top/maint.mk (_hv_regex): Remove this definition.
14234         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14235         (_hv_regex_strong): Use a stronger regex to check for conformance.
14236         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14237         Give a separate diagnostic for lack of conforming use.
14238
14239         maint.mk: prohibit definition of symbols defined by gnulib
14240         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14241         definition of symbols defined by gnulib.
14242
14243 2010-05-09  Bruno Haible  <bruno@clisp.org>
14244
14245         acl: Avoid test failure on Cygwin-hosted mingw.
14246         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14247
14248 2010-05-09  Bruno Haible  <bruno@clisp.org>
14249
14250         error: Use system's fcntl function.
14251         * lib/error.c (fcntl): Undefine.
14252
14253 2010-05-09  Jim Meyering  <meyering@redhat.com>
14254
14255         verify: adjust formatting to be more consistent
14256         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14257         argument-list '('s, and after one comma.
14258
14259 2010-05-09  Bruno Haible  <bruno@clisp.org>
14260
14261         error: More reliable output on mingw.
14262         * lib/error.c: Include <windows.h>.
14263         (is_open): New function.
14264         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14265         defined.
14266
14267 2010-05-09  Bruno Haible  <bruno@clisp.org>
14268
14269         vasnprintf: Fix syntax errors in libintl build on mingw.
14270         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14271         pad_ourselves and prec_ourselves after use.
14272
14273 2010-05-08  Bruno Haible  <bruno@clisp.org>
14274
14275         * lib/config.charset: Update comments for Cygwin 1.7.
14276         * lib/localcharset.c: Likewise.
14277
14278 2010-05-07  Jim Meyering  <meyering@redhat.com>
14279
14280         init.sh: improve comments
14281         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14282         . "${srcdir=.}/init.sh"; path_prepend_ .
14283         Add a note about path_prepend_ and the alternative of using
14284         TESTS_ENVIRONMENT.
14285
14286 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14287
14288         exclude: Unescape hashed patterns in wildcard mode.
14289         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14290         to the hash list.
14291         * tests/test-exclude8.sh: New test case.
14292         * modules/exclude-tests: Add new test.
14293
14294 2010-05-05  Eric Blake  <eblake@redhat.com>
14295
14296         verify: automate tests
14297         * modules/verify-tests: New module.
14298         * tests/test-verify.sh: New file.
14299         * tests/test-verify.c: Guard each negative test with a unique id.
14300         Also avoid warning about unused left hand of comma expressions.
14301
14302 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14303
14304         Further improvements to verify.h, suggested by Eric Blake.
14305         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14306         the GL_* versions, to avoid collision with OpenGL.
14307         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14308         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14309         than testing merely whether it's defined.
14310
14311         Modify verify.h to pacify gcc -Wredundant_decls.
14312         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14313         These use the prefix "GL_" since they're likely to be useful elsewhere.
14314         We may need to break them out into a different .h file.
14315         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14316         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14317         of verify_function__.
14318
14319 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14320
14321         Tests for module pwrite.
14322         * modules/pwrite-tests: New file.
14323         * tests/test-pwrite.sh: New file.
14324         * tests/test-pwrite.c: New file.
14325
14326         New module pwrite.
14327         * lib/unistd.in.h (pwrite): New declaration.
14328         * lib/pwrite.c: New file, from glibc with modifications.
14329         * m4/pwrite.m4: New file.
14330         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14331         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14332         REPLACE_PWRITE.
14333         * modules/pwrite: New file.
14334         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14335         REPLACE_PWRITE.
14336         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14337         * doc/posix-functions/pwrite.texi: Mention the new module.
14338
14339 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14340
14341         pread: Update documentation.
14342         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14343
14344 2010-05-04  Eric Blake  <eblake@redhat.com>
14345
14346         docs: update cygwin progress
14347         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14348         this bug.
14349         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14350         Added in cygwin 1.7.2.
14351         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14352         Likewise.
14353         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14354         Likewise.
14355         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14356         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14357         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14358         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14359         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14360         Mention nproc module.
14361         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14362         bug in cygwin 1.7.5 addition.
14363         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14364         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14365         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14366         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14367         1.7.5.
14368         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14369         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14370         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14371         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14372         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14373         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14374         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14375         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14376         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14377         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14378         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14379         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14380         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14381         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14382         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14383         Likewise.
14384         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14385         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14386         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14387         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14388         Likewise.
14389         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14390         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14391         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14392         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14393         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14394         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14395         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14396         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14397         Likewise.
14398         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14399         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14400         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14401         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14402         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14403         Likewise.
14404         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14405         Likewise.
14406         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14407         Likewise.
14408         * doc/glibc-functions/xdrrec_endofrecord.texi
14409         (xdrrec_endofrecord): Likewise.
14410         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14411         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14412         Likewise.
14413         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14414         Likewise.
14415
14416 2010-05-04  Jim Meyering  <meyering@redhat.com>
14417
14418         gendocs.sh: make its "-s FILE" option more useful
14419         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14420         $PACKAGE to reflect the probably-different basename of "FILE".
14421
14422 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14423
14424         bootstrap: don't ignore download_po_files failure
14425         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14426         failure.
14427
14428 2010-05-03  Jim Meyering  <meyering@redhat.com>
14429
14430         maint.mk: allow to pass options to gendocs.sh
14431         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14432         (gendocs_options_): New overridable variable.
14433
14434         gnu-web-doc-update: don't ignore configure or build failure
14435         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14436
14437         announce-gen: backslash-escape '@'s in --help output
14438         * build-aux/announce-gen: Fix syntax errors.
14439
14440         maint.mk, announce-gen: allow project-specific announcement mail headers
14441         * top/maint.mk (translation_project_): Define default.
14442         (announcement_Cc_, announcement_mail_headers_): Likewise.
14443         (announcement): Invoke announce-gen with new --mail-headers option.
14444         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14445
14446         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14447         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14448         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14449         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14450         line in the "err2" output file when running "make check" in verbose
14451         mode (i.e., with set -x enabled).
14452
14453 2010-05-03  Bruno Haible  <bruno@clisp.org>
14454
14455         wctob: Fix for weird platforms.
14456         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14457         argument value.
14458
14459 2010-05-03  Jim Meyering  <meyering@redhat.com>
14460
14461         maint.mk: prohibit unwarranted use of <strings.h>
14462         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14463         strings.h in a file that does not also use strcasecmp, strncasecmp,
14464         ffs or ffsll.
14465
14466         maint.mk: remove obsolete comments
14467         * top/maint.mk: Remove stale, commented-out rules.
14468
14469 2010-05-02  Bruno Haible  <bruno@clisp.org>
14470
14471         wcwidth: Declare also when it's aliased.
14472         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14473         macro.
14474
14475 2010-05-02  Bruno Haible  <bruno@clisp.org>
14476
14477         Fix regression from 2010-04-25.
14478         * gnulib-tool (func_modules_transitive_closure): Check the status of
14479         all modules, not only of the tests that are of the form foo-tests where
14480         foo is a module.
14481
14482 2010-05-02  Bruno Haible  <bruno@clisp.org>
14483
14484         wctob: Work around nasty Cygwin 1.7.2 bug.
14485         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14486         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14487
14488 2010-05-01  Bruno Haible  <bruno@clisp.org>
14489
14490         fpurge: Sharper test.
14491         * tests/test-fpurge.c (main): Add one more ftell check.
14492         * modules/fpurge-tests (Depends-on): Add ftell.
14493         Suggested by Eric Blake.
14494
14495 2010-05-01  Bruno Haible  <bruno@clisp.org>
14496
14497         ftello: Another test.
14498         * tests/test-ftello3.c: New file.
14499         * modules/ftello-tests (Files): Add it.
14500         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14501         MOSTLYCLEANFILES.
14502
14503         ftell: Another test.
14504         * tests/test-ftell3.c: New file.
14505         * modules/ftell-tests (Files): Add it.
14506         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14507         MOSTLYCLEANFILES.
14508
14509 2010-05-01  Bruno Haible  <bruno@clisp.org>
14510
14511         ftell, ftello: Work around Solaris bug.
14512         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14513         * lib/ftello.c: Include stdio-impl.h.
14514         (ftello): On Solaris, when _IOWRT is set, compute the result without
14515         looking at _IOREAD.
14516         * modules/ftello (Files): Add lib/stdio-impl.h.
14517         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14518         * doc/posix-functions/ftello.texi: Likewise.
14519         Reported by Eric Blake.
14520
14521 2010-05-01  Bruno Haible  <bruno@clisp.org>
14522
14523         freading: Adapt to special meaning of _IOREAD flag on Solaris.
14524         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
14525         the _IOWRT flag is also set.
14526
14527 2010-05-01  Bruno Haible  <bruno@clisp.org>
14528
14529         Fix doc about a HP-UX stdio bug.
14530         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
14531         * doc/posix-functions/ftello.texi: Likewise.
14532
14533 2010-05-01  Bruno Haible  <bruno@clisp.org>
14534
14535         lseek test: Fix failure on Solaris.
14536         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
14537         output.
14538
14539 2010-04-30  Jim Meyering  <meyering@redhat.com>
14540
14541         bootstrap: don't ignore failure to generate po*/Makevars
14542         * build-aux/bootstrap (with_gettext): Don't ignore failure
14543         to create po/Makevars or runtime-po/Makevars.
14544
14545 2010-04-29  Eric Blake  <eblake@redhat.com>
14546
14547         headers: relax license to LGPLv2+
14548         * modules/fcntl-h (License): Relax license.
14549         * modules/getopt-posix (License): Likewise.
14550         * modules/locale (License): Likewise.
14551         * modules/math (License): Likewise.
14552         * modules/pty (License): Likewise.
14553         * modules/sched (License): Likewise.
14554         * modules/search (License): Likewise.
14555         * modules/spawn (License): Likewise.
14556         * modules/stdarg (License): Likewise.
14557         * modules/sysexits (License): Likewise.
14558
14559 2010-04-29  Jim Meyering  <meyering@redhat.com>
14560
14561         inttypes: relax license to LGPLv2+
14562         * modules/inttypes (License): Relax license.
14563
14564 2010-04-29  Simon Josefsson  <simon@josefsson.org>
14565
14566         * top/maint.mk (indent): Run twice to produce idempotent results.
14567
14568 2010-04-28  Bruno Haible  <bruno@clisp.org>
14569
14570         getdate: Generate getdate.c in the source directory.
14571         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
14572         MOSTLYCLEANFILES.
14573         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
14574
14575 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
14576
14577         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14578         is not declared as a const *; avoid warnings in that case.
14579
14580 2010-04-28  Eric Blake  <eblake@redhat.com>
14581
14582         canonicalize-lgpl: avoid compiler warning
14583         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
14584         declaration' / 'extraneous semicolon' warning with some compilers.
14585         Reported by Andreas Gruenbacher.
14586
14587 2010-04-28  Jim Meyering  <meyering@redhat.com>
14588
14589         init.sh: ensure a more reliable exit status when exiting via trap
14590         * tests/init.sh (setup_): Don't rely on $? in signal handler.
14591         Inspired by patches from Dmitry V. Levin.
14592         Also trap on signal 3 (SIGQUIT).
14593
14594 2010-04-27  Bruno Haible  <bruno@clisp.org>
14595
14596         Update doc about utimes().
14597         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
14598         'utimens' module.
14599         Reported by Andreas Gruenbacher <agruen@suse.de>.
14600
14601 2010-04-27  Eric Blake  <eblake@redhat.com>
14602
14603         full-read, full-write: relax license
14604         * modules/full-read (License): Drop to LGPLv2+.
14605         * modules/full-write (License): Likewise.
14606         * modules/safe-read (License): Likewise.
14607         * modules/safe-write (License): Likewise.
14608
14609         pthread: mention library for linking
14610         * modules/pthread (Link): Mention $(LIB_PTHREAD).
14611
14612 2010-04-27  Jim Meyering  <meyering@redhat.com>
14613
14614         maint.mk: fix a bug introduced in last change
14615         * top/maint.mk (gl_assured_headers_): Now that all names are on
14616         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
14617         is not anchored to end of word, it should be adequate.
14618
14619         maint.mk: avoid side-effect in latest syntax-check
14620         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
14621         to run commands via $(shell...), and hence to incur cost only when
14622         the new rule is actually run.
14623
14624         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
14625         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
14626         and use that to create a regexp used to detect all #if HAVE_..._H uses.
14627         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
14628         (gl_assured_headers_, az_, AZ_): Define.
14629         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
14630
14631 2010-04-26  Jim Meyering  <jim@meyering.net>
14632             Bruno Haible  <bruno@clisp.org>
14633
14634         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
14635         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
14636         Prompted by an exchange with Gilles Espinasse.
14637
14638 2010-04-26  Jim Meyering  <meyering@redhat.com>
14639
14640         git-version-gen: aesthetic tweak
14641         * build-aux/git-version-gen: Use "$nl" rather than a literal,
14642         so that the command remains on a single line.
14643
14644 2010-04-26  Eric Blake  <eblake@redhat.com>
14645
14646         git-version-gen: allow use on EBCDIC hosts
14647         * build-aux/git-version-gen (dirty): Use literal rather than tying
14648         ourselves to ascii.
14649         Reported by Steve Goetze.
14650
14651 2010-04-25  Bruno Haible  <bruno@clisp.org>
14652
14653         netdb: Add support for GNULIB_POSIXCHECK.
14654         * lib/netdb.in.h: Include warn-on-use.h.
14655         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
14656         functions are used when GNULIB_POSIXCHECK is defined and the
14657         getaddrinfo module is not in use.
14658         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
14659         freeaddrinfo, gai_strerror, getnameinfo are declared.
14660         * modules/netdb (Depends-on): Add warn-on-use.
14661         (Makefile.am): Include warn-on-use.h in netdb.h.
14662
14663 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
14664
14665         build: avoid "make check" failure without .git/ directory
14666         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
14667         there is no .git/ directory.
14668
14669 2010-04-25  Bruno Haible  <bruno@clisp.org>
14670
14671         ptsname: Fix misuse of ttyname_r.
14672         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
14673         of errno.
14674
14675 2010-04-25  Bruno Haible  <bruno@clisp.org>
14676
14677         ttyname_r: Make it work on Solaris 10.
14678         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
14679         if the system function has the POSIX declaration. Test whether the
14680         function fails if the buffer is less than 128 bytes large.
14681         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
14682         system's ttyname_r function. Provide a reasonably large buffer.
14683         * modules/ttyname_r (Depends-on): Add extensions.
14684         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
14685
14686 2010-04-25  Bruno Haible  <bruno@clisp.org>
14687
14688         Use the 'extensions' module for some more functions on Solaris.
14689         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14690         module.
14691         * doc/posix-functions/ctime_r.texi: Likewise.
14692         * doc/posix-functions/getgrgid_r.texi: Likewise.
14693         * doc/posix-functions/getgrnam_r.texi: Likewise.
14694         * doc/posix-functions/getpwnam_r.texi: Likewise.
14695         * doc/posix-functions/getpwuid_r.texi: Likewise.
14696         * doc/posix-functions/readdir_r.texi: Likewise.
14697         * doc/posix-functions/sigwait.texi: Likewise.
14698         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14699         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14700
14701 2010-04-25  Bruno Haible  <bruno@clisp.org>
14702
14703         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14704         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14705         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14706         * lib/ttyname_r.c: Include <limits.h>.
14707         (ttyname_r): Define using the system's ttyname_r function, if it exists
14708         and not on Solaris.
14709         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14710         set.
14711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14712         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14713         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14714         Reported by Simon Josefsson.
14715
14716 2010-04-25  Bruno Haible  <bruno@clisp.org>
14717
14718         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14719         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14720         * doc/posix-functions/ctime_r.texi: Likewise.
14721         * doc/posix-functions/getgrgid_r.texi: Likewise.
14722         * doc/posix-functions/getgrnam_r.texi: Likewise.
14723         * doc/posix-functions/getlogin_r.texi: Likewise.
14724         * doc/posix-functions/getpwnam_r.texi: Likewise.
14725         * doc/posix-functions/getpwuid_r.texi: Likewise.
14726         * doc/posix-functions/readdir_r.texi: Likewise.
14727         * doc/posix-functions/sigwait.texi: Likewise.
14728         * doc/posix-functions/ttyname_r.texi: Likewise.
14729         Reported by Simon Josefsson.
14730
14731 2010-04-25  Bruno Haible  <bruno@clisp.org>
14732
14733         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14734         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14735         also to --create-testdir.
14736         (func_acceptable): Don't consider the status of *-tests modules here.
14737         (func_modules_transitive_closure): Consider it here, before including a
14738         test module.
14739         (func_import, func_create_testdir): Set inc_all_direct_tests,
14740         inc_all_indirect_tests.
14741         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14742         --create-testdir and --create-megatestdir.
14743
14744 2010-04-25  Bruno Haible  <bruno@clisp.org>
14745
14746         gnulib-tool: Add --without-*-tests options.
14747         * gnulib-tool (func_usage): Document the --without-*-tests options.
14748         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14749         excl_unportable_tests): New variables.
14750         Fail if they are specified with --import or --update.
14751         (func_acceptable): Respect the excl_*_tests variables.
14752         (func_import): Set the excl_*_tests variables to empty.
14753
14754 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14755             Bruno Haible  <bruno@clisp.org>
14756
14757         Work around a MacOS X 10.4 bug with openpty.
14758         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14759         * tests/test-openpty.c (main): Close the master side explicitly.
14760
14761 2010-04-25  Bruno Haible  <bruno@clisp.org>
14762
14763         strnlen: Fix a C++ test error on MacOS X and Solaris.
14764         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14765         the function is not declared.
14766         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14767         Simon Josefsson.
14768
14769 2010-04-24  Bruno Haible  <bruno@clisp.org>
14770
14771         Avoid a gcc warning.
14772         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14773         of correct type for %08lx directive.
14774         Reported by Eric Blake.
14775
14776 2010-04-24  Bruno Haible  <bruno@clisp.org>
14777
14778         vasnprintf: Correct errno value in case of out-of-memory.
14779         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14780         or sprintf. Use the errno value from SNPRINTF or sprintf.
14781         Reported by Ian Beckwith <ianb@erislabs.net>.
14782
14783 2010-04-24  Bruno Haible  <bruno@clisp.org>
14784
14785         ansi-c++-opt: Find correct compiler when cross-compiling.
14786         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14787         AC_CHECK_PROGS.
14788         Reported by Simon Josefsson.
14789
14790 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14791
14792         vc-list-files: Add support for subversion
14793         * build-aux/vc-list-files: Use "svn list" to generate the list of
14794         files controlled by subversion.
14795
14796 2010-04-23  Jim Meyering  <meyering@redhat.com>
14797
14798         vc-list-files tests: convert to use init.sh
14799         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
14800         path_prepend_.
14801         Use Exit, not exit.
14802         Use skip_ rather than open coding it.
14803         Remove trap set-up and compare definitions.
14804         * tests/test-vc-list-files-git.sh: Likewise.
14805         * modules/vc-list-files-tests (Files): Add tests/init.sh.
14806
14807 2010-04-22  Simon Josefsson  <simon@josefsson.org>
14808
14809         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
14810         backup files.
14811
14812 2010-04-21  Simon Josefsson  <simon@josefsson.org>
14813
14814         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
14815
14816 2010-04-20  Eric Blake  <eblake@redhat.com>
14817
14818         tests: be robust to ignored SIGPIPE
14819         * tests/test-select-in.sh: Consume all output.
14820         * tests/test-lseek.sh: Check correct exit status, while avoiding
14821         EPIPE.
14822
14823 2010-04-20  Simon Josefsson  <simon@josefsson.org>
14824             Bruno Haible  <bruno@clisp.org>
14825
14826         visibility: Don't use -fvisibility if it leads to a warning.
14827         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
14828         yes, don't pretend that visibility works if it leads to a warning.
14829         Reported by Mike Gran <spk121@yahoo.com>.
14830
14831 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
14832
14833         * build-aux/bootstrap: Use "git -h" for testing for supported options
14834         instead of "git --help".  The short-form option only shows a summary,
14835         and doesn't layout the full man page.  Grep for the full option name
14836         in the summary, too.
14837
14838 2010-04-19  Bruno Haible  <bruno@clisp.org>
14839
14840         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
14841         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
14842         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
14843         mention of RELOCATABLE_STRIP.
14844         Reported by Sylvain Beucler <beuc@beuc.net>.
14845
14846 2010-04-19  Bruno Haible  <bruno@clisp.org>
14847
14848         * lib/diffseq.h: Fix typo in comment.
14849         Reported by Eric Blake.
14850
14851 2010-04-19  Bruno Haible  <bruno@clisp.org>
14852
14853         ioctl: Move autoconf macro to a .m4 file.
14854         * m4/ioctl.m4: New file, extracted from modules/ioctl.
14855         * modules/ioctl (Files): Add it.
14856         (configure.ac): Simply invoke gl_FUNC_IOCTL.
14857         Reported by Ian Beckwith <ianb@erislabs.net>.
14858
14859 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
14860             Bruno Haible  <bruno@clisp.org>
14861
14862         diffseq: Accommodate use-case with abstract arrays.
14863         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
14864         is not defined.
14865         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
14866         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
14867
14868 2010-04-18  Bruno Haible  <bruno@clisp.org>
14869
14870         * doc/posix-headers/stdbool.texi: More precise wording.
14871
14872 2010-04-17  Jim Meyering  <meyering@redhat.com>
14873
14874         maint.mk: use gnu-style indentation in an embedded perl script
14875         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
14876         Rename variable: s/two/last_two_bytes/
14877
14878 2010-04-16  Eric Blake  <eblake@redhat.com>
14879
14880         test-stdbool: skip test that fails with Solaris CC
14881         * tests/test-stdbool.c (f): Skip test that causes compilation
14882         error under buggy C++ compiler.
14883         * lib/stdbool.in.h: Document the limitation.
14884         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
14885
14886         setenv: allow compilation with C++
14887         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
14888         register keyword.
14889
14890         stdint: allow test to pass with C++
14891         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
14892
14893         getopt: allow compilation with C++
14894         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
14895         struct.
14896         * lib/getopt.c (_getopt_internal_r): Use correct type.
14897         Reported by Dagobert Michelson, via Joel E. Denny.
14898
14899 2010-04-16  Bruno Haible  <bruno@clisp.org>
14900
14901         Override netdb.h always.
14902         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
14903         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
14904         Reported by Ludovic Courtès <ludo@gnu.org>.
14905
14906 2010-04-15  Bruno Haible  <bruno@clisp.org>
14907
14908         openpty: Fix mistake from 2010-03-21.
14909         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
14910         Reported by Simon Josefsson.
14911
14912 2010-04-15  Eric Blake  <eblake@redhat.com>
14913
14914         test-forkpty: fix expected signature
14915         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
14916         Reported by Simon Josefsson.
14917
14918 2010-04-15  Jim Meyering  <meyering@redhat.com>
14919
14920         maint.mk: texinfo_suffix_re_: correct the default regexp
14921         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
14922
14923         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
14924         make it configurable via texinfo_suffix_re_.
14925
14926 2010-04-14  Eric Blake  <eblake@redhat.com>
14927
14928         strtok_r: relax license to LGPLv2+
14929         * modules/strtok_r (License): Relax license.
14930         Reported by Matthias Bolte.
14931
14932 2010-04-14  Simon Josefsson  <simon@josefsson.org>
14933
14934         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
14935         version 1.4.4 by default instead of requiring the libgcrypt
14936         version used during build.  This makes it possible to use the
14937         application with older but still binary compatible libgcrypt
14938         versions.
14939
14940 2010-04-13  Eric Blake  <eblake@redhat.com>
14941
14942         getopt-gnu: match recent glibc fixes and posix ruling
14943         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
14944         '+' handling, when requesting extensions.
14945         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
14946         'W;' handling.
14947         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
14948         * doc/posix-functions/getopt.texi (getopt): Document this.
14949         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14950         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14951         Likewise.
14952
14953         getopt: merge bug fixes from glibc
14954         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
14955         diagnostics.  Honor '+:' correctly.  Reject ';'.
14956
14957         getopt-posix: detect MacOS bug
14958         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
14959         optind when missing a required argument.
14960         * doc/posix-functions/getopt.texi (getopt): Document the bug.
14961         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14962         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14963         Likewise.
14964
14965         getopt-posix: avoid spurious failure on Solaris
14966         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
14967         an indicator that setting optind=1 is sufficient for reset.
14968
14969         getopt-posix: avoid spurious failure on FreeBSD
14970         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
14971         in POSIX mode, since the m4 test uses it.
14972
14973         gnulib-tool: silence warning on BSD sh
14974         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
14975
14976 2010-04-13  Jim Meyering  <meyering@redhat.com>
14977
14978         doc: users.txt: GNU patch now uses gnulib
14979         * users.txt: Add patch.
14980
14981 2010-04-12  Jim Meyering  <meyering@redhat.com>
14982
14983         maint.mk: generate more concise timing data for syntax-check rules
14984         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
14985         " done" from each line that reports a syntax-check test duration.
14986
14987 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
14988
14989         git-version-gen: use "git update-index..." rather than "git status"
14990         * build-aux/git-version-gen: Use git update-index --refresh, not
14991         "git status".  With some versions of git, "git status" would fail
14992         to update the index and result in an unwarranted "-dirty" suffix.
14993
14994 2010-04-11  Jim Meyering  <meyering@redhat.com>
14995
14996         openat: correct formatting (no semantic change)
14997         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
14998         Suggested by Bruno Haible.
14999
15000 2010-04-11  Bruno Haible  <bruno@clisp.org>
15001
15002         Stricter declaration checking in testdirs.
15003         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15004         If for_tests is true, augment AM_CPPFLAGS to define
15005         GNULIB_STRICT_CHECKING.
15006         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15007         GNULIB_STRICT_CHECKING is defined, verify that the function is
15008         declared.
15009
15010 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15011             Bruno Haible  <bruno@clisp.org>
15012
15013         libunistring: Improve configure output.
15014         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15015         Don't say "consider installing GNU libunistring" when checking again
15016         with libiconv.
15017
15018 2010-04-11  Bruno Haible  <bruno@clisp.org>
15019
15020         libunistring: Correct value of $LTLIBUNISTRING.
15021         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15022         correct the value of $LTLIBUNISTRING.
15023
15024 2010-04-11  Bruno Haible  <bruno@clisp.org>
15025
15026         havelib: Add static libraries to LIBS in the right order.
15027         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15028         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15029
15030 2010-04-11  Bruno Haible  <bruno@clisp.org>
15031
15032         libunistring: Detect libunistring also when it depends on libiconv.
15033         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15034         the second AC_LIB_HAVE_LINKFLAGS invocation.
15035
15036 2010-04-11  James Youngman  <jay@gnu.org>
15037
15038         close-stream: declare local scalars to be "const"
15039         * lib/close-stream.c (close_stream): Make boolean variables const
15040         to document the fact that we set but do not change them.
15041
15042 2010-04-11  Bruno Haible  <bruno@clisp.org>
15043
15044         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15045
15046 2010-04-11  Jim Meyering  <meyering@redhat.com>
15047
15048         maint.mk: don't include dist-check.mk
15049         * top/maint.mk: Remove bogus include directive.
15050
15051         maint.mk: improve empty-line-at-EOF check
15052         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15053         solution, rather than tail+Perl-based one.  The latter would read
15054         a few kilobytes from the end of each file, and did not handle empty
15055         files properly.
15056
15057         maint.mk: print the elapsed time for each syntax-check rule
15058         * top/maint.mk (sc_m_rules_): Save start time in a file.
15059         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15060         (local-check): Interpose the .z rules
15061
15062 2010-04-11  Jim Meyering  <meyering@redhat.com>
15063
15064         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15065         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15066         empty file with one that ends in an empty line.
15067
15068 2010-04-10  Bruno Haible  <bruno@clisp.org>
15069
15070         mkdir: Make it work on mingw64.
15071         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15072         * lib/mkdir.c: Update comment.
15073         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15074
15075 2010-04-10  Bruno Haible  <bruno@clisp.org>
15076
15077         Don't override improved macro from newer autoconf.
15078         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15079         autoconf >= 2.62.
15080         Reported by Joel E. Denny <jdenny@clemson.edu>.
15081
15082 2010-04-10  Jim Meyering  <meyering@redhat.com>
15083
15084         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15085         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15086
15087         maint.mk: correct a diagnostic
15088         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15089         in diagnostic; now use $prohibit.
15090
15091 2010-04-10  Bruno Haible  <address@hidden>
15092
15093         fchownat: Fix a C++ test error on Solaris 8.
15094         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15095         the function does not exist.
15096
15097 2010-04-10  Bruno Haible  <bruno@clisp.org>
15098
15099         vasnprintf: Add more tests.
15100         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15101         (test_function): Test converting an invalid wide string.
15102
15103         vasnprintf: Correct handling of unconvertible wide string arguments.
15104         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15105         VASNPRINTF.
15106         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15107         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15108         smaller than the expected maximum need for the directive. Set errno to
15109         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15110         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15111         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15112         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15113         * modules/vasnprintf (Files): Add m4/printf.m4.
15114         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15115
15116 2010-04-10  Bruno Haible  <bruno@clisp.org>
15117
15118         vasnprintf: Fix crash in %ls directive.
15119         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15120         string is passed as argument to %ls, with no precision and no width.
15121         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15122
15123 2010-04-10  Bruno Haible  <bruno@clisp.org>
15124
15125         vasnprintf: Fix multiple test failures on mingw.
15126         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15127         _snprintf, or snwprintf, not _snwprintf.
15128
15129 2010-04-10  Bruno Haible  <bruno@clisp.org>
15130
15131         write: Fix a C++ test error on mingw.
15132         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15133
15134 2010-04-10  Bruno Haible  <bruno@clisp.org>
15135
15136         vasnprintf test: Reduce code duplication.
15137         * tests/test-vasnprintf.c (test_function): New function, extracted from
15138         test_vasnprintf.
15139         (test_vasnprintf, test_asnprintf): Invoke it.
15140
15141 2010-04-10  Bruno Haible  <bruno@clisp.org>
15142
15143         strnlen: Fix warning in C++ mode on MacOS X.
15144         * lib/string.in.h (strnlen): Use the modern idiom.
15145         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15146         defining strnlen as a macro already in <config.h>.
15147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15148         REPLACE_STRNLEN.
15149         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15150         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15151
15152 2010-04-08  James Youngman  <jay@gnu.org>
15153
15154         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15155         the example.
15156
15157 2010-04-09  Jim Meyering  <meyering@redhat.com>
15158
15159         maint.mk: print better diagnostic when there is no $(_hv_file)
15160         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15161         announce that when $(_hv_file) (aka help-version) does not exist.
15162
15163         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15164         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15165         not try to interpret its random input bytes.  Jarno Rajahalme reported
15166         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15167         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15168         (mktempd_): Likewise, just in case.
15169
15170         ftruncate: add two years to projected module removal date: 2012
15171         * m4/ftruncate.m4: Adjust comments.
15172
15173         ftruncate: mark module as obsolete; even MinGW provides it, now
15174         * modules/ftruncate (Status): Obsolete.
15175         (Notice): Say that.
15176         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15177         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15178
15179 2010-04-08  Bruno Haible  <bruno@clisp.org>
15180
15181         Fix side effects from tests-related modules.
15182         * modules/dprintf-posix (Comment): New section.
15183         * modules/fprintf-posix (Comment): Likewise.
15184         * modules/obstack-printf-posix (Comment): Likewise.
15185         * modules/printf-posix (Comment): Likewise.
15186         * modules/snprintf-posix (Comment): Likewise.
15187         * modules/sprintf-posix (Comment): Likewise.
15188         * modules/vasnprintf-posix (Comment): Likewise.
15189         * modules/vasprintf-posix (Comment): Likewise.
15190         * modules/vdprintf-posix (Comment): Likewise.
15191         * modules/vfprintf-posix (Comment): Likewise.
15192         * modules/vprintf-posix (Comment): Likewise.
15193         * modules/vsnprintf-posix (Comment): Likewise.
15194         * modules/vsprintf-posix (Comment): Likewise.
15195         * modules/xprintf-posix (Comment): Likewise.
15196         * modules/xvasprintf-posix (Comment): Likewise.
15197         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15198         * modules/floorf-tests (Depends-on): Likewise.
15199         * modules/round-tests (Depends-on): Likewise.
15200         * modules/roundf-tests (Depends-on): Likewise.
15201         * modules/trunc-tests (Depends-on): Likewise.
15202         * modules/truncf-tests (Depends-on): Likewise.
15203         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15204         'fprintf-posix' module is not present.
15205         * tests/test-floorf2.c (check): Likewise.
15206         * tests/test-trunc2.c (check): Likewise.
15207         * tests/test-truncf2.c (check): Likewise.
15208         * tests/test-round2.c (equal): Likewise.
15209         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15210
15211 2010-04-07  Karl Berry  <karl@gnu.org>
15212
15213         * config/srclist.txt,
15214         * config/srclistvars.sh,
15215         * config/srclist-update: doc fixes.
15216
15217 2010-04-07  Jim Meyering  <meyering@redhat.com>
15218
15219         maint.mk: add a PATH crosschecking syntax-check rule
15220         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15221         Useful if you use a test like the one in help-version (coreutils,
15222         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15223         printed by prog --version.
15224
15225 2010-04-06  Bruno Haible  <bruno@clisp.org>
15226
15227         Fix link error on mingw.
15228         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15229         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15230
15231 2010-04-06  Bruno Haible  <bruno@clisp.org>
15232
15233         Assume rmdir exists.
15234         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15235
15236 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15237
15238         doc: update users.txt
15239         * users.txt: Add gcal.
15240
15241 2010-04-06  Jim Meyering  <meyering@redhat.com>
15242
15243         init.sh: simply unset TMPDIR rather than risking env -i
15244         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15245         although it probably works fine on all Unix-based systems, some
15246         systems (Cygwin?) cannot tolerate a totally cleared environment.
15247         Suggestion from Eric Blake.
15248
15249 2010-04-06  Jim Meyering  <meyering@redhat.com>
15250
15251         init.sh: portability fix: use env's POSIX-specified -i option not -u
15252         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15253         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15254
15255 2010-04-05  Bruno Haible  <bruno@clisp.org>
15256
15257         btowc: Work around Cygwin 1.7.2 bug.
15258         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15259         does not map NUL to 0.
15260         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15261
15262 2010-04-05  Bruno Haible  <bruno@clisp.org>
15263
15264         Make the multithread modules work on Cygwin 1.7.2.
15265         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15266         imported symbols can be declared weak, so that it returns "no" on
15267         Cygwin 1.7.2.
15268
15269 2010-04-05  Bruno Haible  <bruno@clisp.org>
15270
15271         Use the module 'strncat'.
15272         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15273
15274         Tests for module 'strncat'.
15275         * modules/strncat-tests: New file.
15276         * tests/test-strncat.c: New file.
15277
15278         New module 'strncat'.
15279         * lib/string.in.h (strncat): New declaration.
15280         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15281         * m4/strncat.m4: New file, based on m4/memchr.m4.
15282         * modules/strncat: New file.
15283         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15284         is declared.
15285         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15286         REPLACE_STRNCAT.
15287         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15288         REPLACE_STRNCAT.
15289         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15290         module.
15291         * tests/test-string-c++.cc: Check signature of strncat.
15292
15293 2010-04-05  Jim Meyering  <meyering@redhat.com>
15294
15295         xstrtoumax-tests: convert to use init.sh
15296         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15297         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15298         Use Exit, not exit.
15299         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15300
15301         xstrtoimax-tests: convert to use init.sh
15302         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15303         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15304         Use Exit, not exit.
15305         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15306
15307 2010-04-05  Bruno Haible  <bruno@clisp.org>
15308
15309         sys_socket: Avoid #define replacements in C++ mode.
15310         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15311         warning to the function if possible, rather than #defining the symbol
15312         to a dysfunctional alias.
15313
15314 2010-04-05  Bruno Haible  <bruno@clisp.org>
15315
15316         fseeko: Fix C++ test error on mingw.
15317         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15318         gl_FUNC_FSEEKO.
15319         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15320         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15321         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15322         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15323
15324 2010-04-05  Bruno Haible  <bruno@clisp.org>
15325
15326         duplocale: Improve test output.
15327         * tests/test-duplocale.c (main): Print reason for skipped test.
15328
15329 2010-04-05  Bruno Haible  <bruno@clisp.org>
15330
15331         Assume rmdir exists.
15332         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15333         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15334
15335 2010-04-05  Bruno Haible  <bruno@clisp.org>
15336
15337         Fix link error on Solaris 8 with cc.
15338         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15339
15340 2010-04-05  Bruno Haible  <bruno@clisp.org>
15341
15342         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15343         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15344
15345 2010-04-05  Bruno Haible  <bruno@clisp.org>
15346
15347         vasprintf: Update documentation.
15348         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15349
15350 2010-04-05  Bruno Haible  <bruno@clisp.org>
15351
15352         ptsname: Improve test.
15353         * tests/test-ptsname.c (main): Also try the various master names of BSD
15354         systems.
15355
15356 2010-04-05  Bruno Haible  <bruno@clisp.org>
15357
15358         memchr: Avoid a possible C++ test error.
15359         * lib/string.in.h (memchr): Provide declaration if function is missing.
15360         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15361         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15363         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15364
15365 2010-04-05  Bruno Haible  <bruno@clisp.org>
15366
15367         strtok_r: Improve idiom.
15368         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15369         AC_LIBOBJ is used.
15370
15371 2010-04-05  Bruno Haible  <bruno@clisp.org>
15372
15373         strdup: Improve idiom.
15374         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15375         AC_LIBOBJ is used.
15376         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15377         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15378         when AC_LIBOBJ is used.
15379
15380 2010-04-05  Bruno Haible  <bruno@clisp.org>
15381
15382         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15383         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15384         don't set REPLACE_MBSINIT to 1.
15385         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15386         don't set REPLACE_MBRTOWC to 1.
15387         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15388         exist, don't set REPLACE_MBSRTOWCS to 1.
15389         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15390         exist, don't set REPLACE_MBSNRTOWCS to 1.
15391         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15392         don't set REPLACE_WCRTOMB to 1.
15393         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15394         exist, don't set REPLACE_WCSRTOMBS to 1.
15395         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15396         exist, don't set REPLACE_WCSNRTOMBS to 1.
15397
15398 2010-04-05  Bruno Haible  <bruno@clisp.org>
15399
15400         ldexpl: Improve idiom.
15401         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15402         make sure to set HAVE_DECL_LDEXPL to 0.
15403
15404 2010-04-05  Jim Meyering  <meyering@redhat.com>
15405
15406         xstrtol-tests: convert to use init.sh
15407         * modules/xstrtol-tests (Files): Add tests/init.sh.
15408         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15409         Use Exit, not exit.
15410         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15411
15412         atexit-tests: convert to use init.sh
15413         * modules/atexit-tests (Files): Add tests/init.sh.
15414         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15415         Use Exit, not exit.
15416         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15417
15418         init.sh: fix typo
15419         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15420
15421         init.sh: make it easier for a test script to write to the tty, ...
15422         when using automake's parallel-tests mode.
15423         * tests/init.sh (stderr_fileno_): Define overridable variable.
15424         (warn_): New function, to use it.
15425         (fail_, skip_, framework_failure_): Use warn_.
15426
15427 2010-04-04  Bruno Haible  <bruno@clisp.org>
15428
15429         btowc: Avoid warning.
15430         * lib/btowc.c: Include <stdlib.h>.
15431         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15432
15433 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15434             Bruno Haible  <bruno@clisp.org>
15435
15436         wchar: Port to NetBSD 1.5.
15437         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15438         * lib/wctype.in.h (WEOF): Likewise.
15439
15440 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15441             Bruno Haible  <bruno@clisp.org>
15442
15443         Port extended stdio to NetBSD 1.5.
15444         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15445         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15446         older.
15447
15448 2010-04-04  Bruno Haible  <bruno@clisp.org>
15449
15450         string: Remove unused substitution.
15451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15452         HAVE_DECL_STRERROR.
15453         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15454
15455 2010-04-04  Bruno Haible  <bruno@clisp.org>
15456
15457         strtod: Avoid a possible C++ test error.
15458         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15459         set REPLACE_STRTOD.
15460
15461 2010-04-04  Bruno Haible  <bruno@clisp.org>
15462
15463         strerror: Update documentation.
15464         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15465
15466 2010-04-04  Bruno Haible  <bruno@clisp.org>
15467
15468         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15469         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15470         _GL_CXXALIAS_SYS_CAST.
15471
15472 2010-04-04  Bruno Haible  <bruno@clisp.org>
15473
15474         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15475         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15476         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15477         REPLACE_FREXPL to 1.
15478         * doc/posix-functions/frexpl.texi: Update documentation.
15479
15480 2010-04-04  Bruno Haible  <bruno@clisp.org>
15481
15482         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15483         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15484
15485 2010-04-04  Bruno Haible  <bruno@clisp.org>
15486
15487         Implement nanosleep for native Windows.
15488         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15489
15490 2010-04-04  Bruno Haible  <bruno@clisp.org>
15491
15492         math: Fix some C++ test errors on Solaris 8.
15493         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15494
15495 2010-04-04  Bruno Haible  <bruno@clisp.org>
15496
15497         math: Fix some C++ test errors on Cygwin.
15498         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15499         truncl): Provide declaration if the system does not have it.
15500         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15501         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15502         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15503         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15504         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15505         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15506         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15507         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15508         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15509         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15510         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15511         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15512         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15513         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15514         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15515         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15517         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15518         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15519         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
15520         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15521         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15522
15523 2010-04-04  Bruno Haible  <bruno@clisp.org>
15524
15525         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
15526         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15527         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15528         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15529         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15530         * m4/isinf.m4 (gl_ISINF): Likewise.
15531         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15532
15533 2010-04-04  Bruno Haible  <bruno@clisp.org>
15534
15535         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
15536         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15537
15538 2010-04-04  Bruno Haible  <bruno@clisp.org>
15539
15540         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
15541         * modules/tmpfile (configure.ac): Update.
15542
15543         tmpfile: Fix C++ test error on mingw.
15544         * lib/stdio.in.h (tmpfile): New declaration.
15545         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
15546         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
15547         * modules/tmpfile (Depends-on): Add stdio.
15548         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15549         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
15550         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
15551         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
15552         REPLACE_TMPFILE.
15553         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
15554
15555 2010-04-04  Bruno Haible  <bruno@clisp.org>
15556
15557         ioctl: Fix C++ test error on mingw.
15558         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
15559         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
15560         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
15561
15562 2010-04-03  Bruno Haible  <bruno@clisp.org>
15563
15564         wcwidth: Fix C++ test error on mingw.
15565         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
15566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
15567         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
15568
15569 2010-04-03  Bruno Haible  <bruno@clisp.org>
15570
15571         nanosleep: Fix C++ test error on mingw.
15572         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
15573         * lib/time.in.h (nanosleep): Use modern idiom.
15574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
15575         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
15576         REPLACE_NANOSLEEP to 1.
15577         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15578         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
15579
15580 2010-04-03  Bruno Haible  <bruno@clisp.org>
15581
15582         strptime: Fix C++ test error on mingw.
15583         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
15584         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
15585         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
15586         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
15587         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
15588         not REPLACE_STRPTIME.
15589         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
15590         REPLACE_STRPTIME.
15591
15592 2010-04-03  Bruno Haible  <bruno@clisp.org>
15593
15594         timegm: Fix C++ test error on mingw.
15595         * lib/time.in.h (timegm): Use modern idiom.
15596         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
15597         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
15598         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
15599         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
15600
15601 2010-04-03  Bruno Haible  <bruno@clisp.org>
15602
15603         timegm: Assume declaration if function exists.
15604         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
15605         if it exists. Don't clobber ac_cv_func_timegm.
15606
15607 2010-04-03  Bruno Haible  <bruno@clisp.org>
15608
15609         time_r: Fix C++ test error on mingw.
15610         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
15611         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
15612         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
15613         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
15614         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15615
15616 2010-04-03  Bruno Haible  <bruno@clisp.org>
15617
15618         time_r: Minor updates.
15619         * modules/time_r (Description): Mention the provided functions.
15620         * lib/time_r.c: Don't include <string.h>.
15621         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
15622         * doc/posix-functions/localtime_r.texi: Likewise.
15623
15624 2010-04-03  Bruno Haible  <bruno@clisp.org>
15625
15626         time: Fix regression introduced on 2010-03-08.
15627         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
15628         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
15629
15630 2010-04-03  Jim Meyering  <meyering@redhat.com>
15631
15632         maint.mk: don't silently disable project-specific syntax-check rules
15633         * top/maint.mk (_prohibit_regexp): Define, to help people realize
15634         that they need to convert their project-specific syntax-check rules
15635         to use the new _sc_search_regexp.
15636
15637 2010-04-03  Bruno Haible  <bruno@clisp.org>
15638
15639         fchdir: Fix regression introduced on 2010-03-08.
15640         * lib/unistd.in.h (fchdir): Fix declaration.
15641         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
15642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
15643         REPLACE_FCHDIR.
15644         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
15645         REPLACE_FCHDIR.
15646
15647 2010-04-03  Bruno Haible  <bruno@clisp.org>
15648
15649         getpagesize: Fix C++ test error on mingw.
15650         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
15651         system does not declare the function.
15652         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
15653         declared.
15654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15655         HAVE_DECL_GETPAGESIZE.
15656         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
15657
15658 2010-04-03  Bruno Haible  <bruno@clisp.org>
15659
15660         stdio: Make C++ tests work on mingw.
15661         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
15662         does not declare the function.
15663
15664 2010-04-03  Bruno Haible  <bruno@clisp.org>
15665
15666         ftello: Fix C++ test error on mingw.
15667         * lib/stdio.in.h (ftello): Use modern idiom.
15668         * lib/ftello.c (ftello): Renamed from rpl_ftello.
15669         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
15670         is missing and that it needs to be replaced.
15671         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
15672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
15673         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
15674
15675 2010-04-03  Bruno Haible  <bruno@clisp.org>
15676
15677         fseeko: Fix C++ test error on mingw.
15678         * lib/stdio.in.h (fseeko): Use modern idiom.
15679         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
15680         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
15681         is missing and that it needs to be replaced.
15682         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
15683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
15684         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
15685
15686 2010-04-03  Bruno Haible  <bruno@clisp.org>
15687
15688         mkstemp: Fix C++ test error on mingw.
15689         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15690         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15691         function is missing and that it needs to be replaced.
15692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15693         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15694
15695 2010-04-03  Bruno Haible  <bruno@clisp.org>
15696
15697         stpncpy: Fix C++ test error on mingw.
15698         * lib/string.in.h (stpncpy): Use modern idiom.
15699         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15700         function is missing and that it needs to be replaced.
15701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15702         REPLACE_STPNCPY.
15703         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15704
15705 2010-04-03  Bruno Haible  <bruno@clisp.org>
15706
15707         sys_stat: Fix C++ test error on mingw.
15708         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15709         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15710
15711 2010-04-03  Bruno Haible  <bruno@clisp.org>
15712
15713         pty: Update doc.
15714         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15715
15716 2010-04-03  Bruno Haible  <bruno@clisp.org>
15717
15718         unistd: Fix C++ test error on mingw.
15719         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15720
15721 2010-04-03  Bruno Haible  <bruno@clisp.org>
15722
15723         Update doc regarding mingw.
15724         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15725         * doc/glibc-functions/login_tty.texi: Likewise.
15726         * doc/glibc-functions/forkpty.texi: Likewise.
15727
15728 2010-04-03  Bruno Haible  <bruno@clisp.org>
15729
15730         stdlib: Avoid compilation failure of c-strtold on mingw.
15731         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15732
15733 2010-04-03  Bruno Haible  <bruno@clisp.org>
15734
15735         locale: Make C++ tests work on Cygwin and mingw.
15736         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15737         cannot provide the function.
15738         Reported by Simon Josefsson.
15739
15740 2010-04-03  Bruno Haible  <bruno@clisp.org>
15741
15742         localename: Port to MacOS X 10.6.
15743         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15744         memory layout of the locales in MacOS X 10.6 as well.
15745         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15746
15747 2010-04-02  Bruno Haible  <bruno@clisp.org>
15748
15749         gnulib-tool: Ensure that long-running tests are executed last.
15750         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15751         running tests after the one for the other tests.
15752
15753 2010-04-02  Bruno Haible  <bruno@clisp.org>
15754
15755         gnulib-tool: Ensure the tests in the main directory are executed first.
15756         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15757         start with the current directory.
15758
15759 2010-04-02  Bruno Haible  <bruno@clisp.org>
15760
15761         Tests for module 'havelib', moved here from GNU gettext.
15762         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15763         modifications.
15764         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15765         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15766         with modifications.
15767         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15768         modifications.
15769         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15770         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15771         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15772         with modifications.
15773         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15774         with modifications.
15775         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15776         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15777         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15778         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15779         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15780         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15781         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15782         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15783         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15784         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15785         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15786         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15787         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15788         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15789         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15790         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15791         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15792         with modifications.
15793         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
15794         with modifications.
15795         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
15796         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
15797         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
15798         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
15799         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
15800         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
15801         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
15802         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
15803         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
15804         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
15805         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
15806         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
15807         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
15808         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
15809         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
15810         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
15811         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
15812         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
15813         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
15814         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
15815         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
15816         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
15817         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
15818         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
15819         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
15820         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
15821         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
15822         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
15823         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
15824         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
15825         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
15826         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
15827         * tests/havelib/rpathx/rpathx.c: New file, from
15828         gettext/autoconf-lib-link.
15829         * tests/havelib/rpathx/Makefile.am: New file, from
15830         gettext/autoconf-lib-link.
15831         * tests/havelib/rpathx/configure.ac: New file, from
15832         gettext/autoconf-lib-link with modifications.
15833         * tests/havelib/rpathy/rpathy.c: New file, from
15834         gettext/autoconf-lib-link.
15835         * tests/havelib/rpathy/Makefile.am: New file, from
15836         gettext/autoconf-lib-link.
15837         * tests/havelib/rpathy/configure.ac: New file, from
15838         gettext/autoconf-lib-link with modifications.
15839         * tests/havelib/rpathz/rpathz.c: New file, from
15840         gettext/autoconf-lib-link.
15841         * tests/havelib/rpathz/Makefile.am: New file, from
15842         gettext/autoconf-lib-link.
15843         * tests/havelib/rpathz/configure.ac: New file, from
15844         gettext/autoconf-lib-link with modifications.
15845         * tests/havelib/rpathlx/usex.c: New file, from
15846         gettext/autoconf-lib-link.
15847         * tests/havelib/rpathlx/Makefile.am: New file, from
15848         gettext/autoconf-lib-link.
15849         * tests/havelib/rpathlx/configure.ac: New file, from
15850         gettext/autoconf-lib-link with modifications.
15851         * tests/havelib/rpathly/usey.c: New file, from
15852         gettext/autoconf-lib-link.
15853         * tests/havelib/rpathly/Makefile.am: New file, from
15854         gettext/autoconf-lib-link.
15855         * tests/havelib/rpathly/configure.ac: New file, from
15856         gettext/autoconf-lib-link with modifications.
15857         * tests/havelib/rpathlz/usez.c: New file, from
15858         gettext/autoconf-lib-link.
15859         * tests/havelib/rpathlz/Makefile.am: New file, from
15860         gettext/autoconf-lib-link.
15861         * tests/havelib/rpathlz/configure.ac: New file, from
15862         gettext/autoconf-lib-link with modifications.
15863         * tests/havelib/rpathlyx/usey.c: New file, from
15864         gettext/autoconf-lib-link.
15865         * tests/havelib/rpathlyx/Makefile.am: New file, from
15866         gettext/autoconf-lib-link.
15867         * tests/havelib/rpathlyx/configure.ac: New file, from
15868         gettext/autoconf-lib-link with modifications.
15869         * tests/havelib/rpathlzyx/usez.c: New file, from
15870         gettext/autoconf-lib-link.
15871         * tests/havelib/rpathlzyx/Makefile.am: New file, from
15872         gettext/autoconf-lib-link.
15873         * tests/havelib/rpathlzyx/configure.ac: New file, from
15874         gettext/autoconf-lib-link with modifications.
15875         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
15876         with modifications.
15877
15878 2010-04-02  Bruno Haible  <bruno@clisp.org>
15879
15880         gnulib-tool: Create distributed built sources also for the tests.
15881         * gnulib-tool (func_create_testdir): Also generate distributed built
15882         sources in the tests directory.
15883
15884 2010-04-02  Bruno Haible  <bruno@clisp.org>
15885
15886         gnulib-tool: Obey user's environment variables.
15887         * gnulib-tool (func_create_testdir): When creating built sources,
15888         respect the environment variables for autoconf, automake, etc. given by
15889         the user.
15890
15891 2010-04-02  Bruno Haible  <bruno@clisp.org>
15892
15893         gnulib-tool: Provide the value of --m4-base to modules.
15894         * gnulib-tool (func_import, func_create_testdir): Emit a definition
15895         of gl_m4_base.
15896
15897 2010-04-02  Eric Blake  <eblake@redhat.com>
15898
15899         maint.mk: fix some fallout
15900         * NEWS: Document the incompatible change, and its effect on cfg.mk.
15901         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
15902
15903 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15904
15905         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
15906         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
15907         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
15908         (sc_cast_of_x_alloc_return_value): Likewise.
15909         (sc_cast_of_alloca_return_value): Likewise.
15910         (sc_space_tab): Likewise.
15911         (sc_prohibit_atoi_atof): Likewise.
15912         (sc_prohibit_magic_number_exit): Likewise.
15913         (sc_error_exit_success): Likewise.
15914         (sc_file_system): Likewise.
15915         (sc_prohibit_have_config_h): Likewise.
15916         (sc_require_config_h): Likewise.
15917         (sc_prohibit_HAVE_MBRTOWC): Likewise.
15918         (sc_obsolete_symbols): Likewise.
15919         (sc_changelog): Likewise.
15920         (sc_program_name): Likewise.
15921         (sc_the_the): Likewise.
15922         (sc_trailing_blank): Likewise.
15923         (sc_two_space_separator_in_usage): Likewise.
15924         (sc_useless_cpp_parens): Likewise.
15925         (sc_GPL_version): Likewise.
15926         (sc_GFDL_version): Likewise.
15927         (sc_texinfo_acronym): Likewise.
15928         (sc_prohibit_cvs_keyword): Likewise.
15929         (sc_prohibit_stat_st_blocks): Likewise.
15930         (sc_prohibit_S_IS_definition): Likewise.
15931         (sc_redundant_const): Likewise.
15932         (sc_makefile_TAB_only_indentation): Likewise.
15933         (sc_m4_quote_check): Likewise.
15934         (sc_makefile_path_separator_check): Likewise.
15935         (sc_copyright_check): Likewise.
15936         (sc_Wundef_boolean): Likewise.
15937         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15938
15939         maint.mk: match 0 or more whitespace-before-function-call '('
15940         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
15941         that have zero or two-and-more spaces between the function name
15942         and the open parenthesis.
15943         (sc_error_message_warn_fatal): Likewise.
15944         (sc_error_message_uppercase): Likewise.
15945         (sc_error_message_period): Likewise.
15946
15947 2010-03-31  Eric Blake  <eblake@redhat.com>
15948
15949         maint.mk: check for [ as well as test
15950         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
15951         Based on a libvirt report by Matthias Bolte.
15952
15953         gnumakefile: don't squelch _version output
15954         * top/GNUmakefile (_version): Create one-shot dependency rather
15955         than using $(shell) when version must be regenerated.
15956         (_autoreconf): Run verbosely, by default.
15957
15958         sys_time: avoid compiler warnings
15959         * lib/sys_time.in.h (includes): Ensure gcc pragma is
15960         unconditional, fixing regression from 2010-03-29.
15961         Reported by Simon Josefsson.
15962
15963 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15964
15965         maint.mk: s/_header_without_use/_sc_header_without_use/
15966         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
15967         (sc_prohibit_assert_without_use): Use the new name.
15968         (sc_prohibit_close_stream_without_use): Likewise.
15969         (sc_prohibit_getopt_without_use): Likewise.
15970         (sc_prohibit_quotearg_without_use): Likewise.
15971         (sc_prohibit_quote_without_use): Likewise.
15972         (sc_prohibit_long_options_without_use): Likewise.
15973         (sc_prohibit_inttostr_without_use): Likewise.
15974         (sc_prohibit_ignore_value_without_use): Likewise.
15975         (sc_prohibit_error_without_use): Likewise.
15976         (sc_prohibit_xalloc_without_use): Likewise.
15977         (sc_prohibit_hash_without_use): Likewise.
15978         (sc_prohibit_hash_pjw_without_use): Likewise.
15979         (sc_prohibit_safe_read_without_use): Likewise.
15980         (sc_prohibit_argmatch_without_use): Likewise.
15981         (sc_prohibit_canonicalize_without_use): Likewise.
15982         (sc_prohibit_root_dev_ino_without_use): Likewise.
15983         (sc_prohibit_openat_without_use): Likewise.
15984         (sc_prohibit_c_ctype_without_use): Likewise.
15985         (sc_prohibit_signal_without_use): Likewise.
15986         (sc_prohibit_intprops_without_use): Likewise.
15987
15988 2010-03-30  Eric Blake  <eblake@redhat.com>
15989
15990         maint: improve module indicators
15991         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
15992         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
15993         columns, and avoid extra macro expansion.
15994
15995         fdopendir: work around FreeBSD bug
15996         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15997         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
15998         * modules/dirent (Makefile.am): Substitute it.
15999         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16000         declaration.
16001         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16002         fix.
16003         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16004
16005 2010-03-29  Bruno Haible  <bruno@clisp.org>
16006
16007         Emit #pragma system_header after the inclusion guard, not before.
16008         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16009         guard that spans the entire file, not before. This enables an
16010         optimization in GCC's preprocessor.
16011         * lib/ctype.in.h: Likewise.
16012         * lib/dirent.in.h: Likewise.
16013         * lib/errno.in.h: Likewise.
16014         * lib/float.in.h: Likewise.
16015         * lib/getopt.in.h: Likewise.
16016         * lib/iconv.in.h: Likewise.
16017         * lib/langinfo.in.h: Likewise.
16018         * lib/locale.in.h: Likewise.
16019         * lib/math.in.h: Likewise.
16020         * lib/netdb.in.h: Likewise.
16021         * lib/netinet_in.in.h: Likewise.
16022         * lib/pty.in.h: Likewise.
16023         * lib/sched.in.h: Likewise.
16024         * lib/se-selinux.in.h: Likewise.
16025         * lib/search.in.h: Likewise.
16026         * lib/spawn.in.h: Likewise.
16027         * lib/stdarg.in.h: Likewise.
16028         * lib/stdint.in.h: Likewise.
16029         * lib/string.in.h: Likewise.
16030         * lib/strings.in.h: Likewise.
16031         * lib/sys_file.in.h: Likewise.
16032         * lib/sys_ioctl.in.h: Likewise.
16033         * lib/sys_time.in.h: Likewise.
16034         * lib/sys_times.in.h: Likewise.
16035         * lib/sys_utsname.in.h: Likewise.
16036         * lib/sys_wait.in.h: Likewise.
16037         * lib/sysexits.in.h: Likewise.
16038         * lib/wctype.in.h: Likewise.
16039
16040 2010-03-28  James Youngman  <jay@gnu.org>
16041
16042         save-cwd: don't leak a file descriptor when the caller execs.
16043         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16044         saved file descriptor.
16045         * modules/save-cwd (Depends-on): Depend on cloexec.
16046
16047 2010-03-29  Bruno Haible  <bruno@clisp.org>
16048
16049         Remove vestiges of fts-lgpl module.
16050         * lib/fts_.h: Assume GNULIB_FTS is 1.
16051         * lib/fts.c: Likewise.
16052         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16053
16054 2010-03-28  Bruno Haible  <bruno@clisp.org>
16055
16056         Fix definition of tests witness macro.
16057         * gnulib-tool (func_import): Fix definition of witness macro.
16058
16059 2010-03-28  Bruno Haible  <bruno@clisp.org>
16060
16061         Fix ioctl's protoype on glibc systems.
16062         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16063         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16064         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16065         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16066         signature. If not, arrange to replace the ioctl function.
16067         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16068         REPLACE_IOCTL.
16069         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16070         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16071         Reported by Ludovic Courtès <ludo@gnu.org>.
16072
16073 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16074
16075         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16076         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16077         made it so grep -r --include=GLOB* ... did not work.
16078
16079 2010-03-26  Jim Meyering  <meyering@redhat.com>
16080             Eric Blake  <eblake@redhat.com>
16081
16082         maint.mk: prohibit use of test's -o and -a operators
16083         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16084
16085 2010-03-28  Bruno Haible  <bruno@clisp.org>
16086
16087         Remove unused GNULIB_XYZ macro definitions.
16088         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16089         invocation.
16090
16091 2010-03-28  Bruno Haible  <bruno@clisp.org>
16092
16093         Mark privileged tests modules.
16094         * modules/idpriv-drop-tests (Status): New section.
16095         * modules/idpriv-droptemp-tests (Status): New section.
16096
16097 2010-03-28  Bruno Haible  <bruno@clisp.org>
16098
16099         Split C++ tests into separate tests modules.
16100         * modules/dirent-c++-tests: New file, extracted from
16101         modules/dirent-tests.
16102         * modules/dirent-tests: Depend on it.
16103         * modules/fcntl-h-c++-tests: New file, extracted from
16104         modules/fcntl-h-tests.
16105         * modules/fcntl-h-tests: Depend on it.
16106         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16107         * modules/glob-tests: Depend on it.
16108         * modules/iconv-h-c++-tests: New file, extracted from
16109         modules/iconv-h-tests.
16110         * modules/iconv-h-tests: Depend on it.
16111         * modules/langinfo-c++-tests: New file, extracted from
16112         modules/langinfo-tests.
16113         * modules/langinfo-tests: Depend on it.
16114         * modules/locale-c++-tests: New file, extracted from
16115         modules/locale-tests.
16116         * modules/locale-tests: Depend on it.
16117         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16118         * modules/math-tests: Depend on it.
16119         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16120         * modules/pty-tests: Depend on it.
16121         * modules/search-c++-tests: New file, extracted from
16122         modules/search-tests.
16123         * modules/search-tests: Depend on it.
16124         * modules/signal-c++-tests: New file, extracted from
16125         modules/signal-tests.
16126         * modules/signal-tests: Depend on it.
16127         * modules/spawn-c++-tests: New file, extracted from
16128         modules/spawn-tests.
16129         * modules/spawn-tests: Depend on it.
16130         * modules/stdio-c++-tests: New file, extracted from
16131         modules/stdio-tests.
16132         * modules/stdio-tests: Depend on it.
16133         * modules/stdlib-c++-tests: New file, extracted from
16134         modules/stdlib-tests.
16135         * modules/stdlib-tests: Depend on it.
16136         * modules/string-c++-tests: New file, extracted from
16137         modules/string-tests.
16138         * modules/string-tests: Depend on it.
16139         * modules/sys_ioctl-c++-tests: New file, extracted from
16140         modules/sys_ioctl-tests.
16141         * modules/sys_ioctl-tests: Depend on it.
16142         * modules/sys_select-c++-tests: New file, extracted from
16143         modules/sys_select-tests.
16144         * modules/sys_select-tests: Depend on it.
16145         * modules/sys_socket-c++-tests: New file, extracted from
16146         modules/sys_socket-tests.
16147         * modules/sys_socket-tests: Depend on it.
16148         * modules/sys_stat-c++-tests: New file, extracted from
16149         modules/sys_stat-tests.
16150         * modules/sys_stat-tests: Depend on it.
16151         * modules/sys_time-c++-tests: New file, extracted from
16152         modules/sys_time-tests.
16153         * modules/sys_time-tests: Depend on it.
16154         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16155         * modules/time-tests: Depend on it.
16156         * modules/unistd-c++-tests: New file, extracted from
16157         modules/unistd-tests.
16158         * modules/unistd-tests: Depend on it.
16159         * modules/wchar-c++-tests: New file, extracted from
16160         modules/wchar-tests.
16161         * modules/wchar-tests: Depend on it.
16162         * modules/wctype-c++-tests: New file, extracted from
16163         modules/wctype-tests.
16164         * modules/wctype-tests: Depend on it.
16165         Reported by Simon Josefsson.
16166
16167 2010-03-28  Bruno Haible  <bruno@clisp.org>
16168
16169         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16170         * gnulib-tool (func_exists_module): New function, extracted from
16171         func_verify_module.
16172         (func_verify_module): Use it.
16173         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16174         'foo' only if 'foo' exists.
16175         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16176         module.
16177
16178 2010-03-28  Bruno Haible  <bruno@clisp.org>
16179
16180         gnulib-tool: Add support for special categories of tests.
16181         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16182         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16183         (func_usage): Document them.
16184         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16185         inc_unportable_tests, inc_all_tests): New variables.
16186         (func_acceptable): Consider these variables.
16187         (func_modules_transitive_closure): Make it work when the 'Status' field
16188         consists of multiple words.
16189         (func_import): Store and restore the values of inc_cxx_tests,
16190         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16191         inc_all_tests in gnulib-comp.m4.
16192         (func_create_testdir): Set inc_all_tests to true.
16193         * doc/gnulib.texi (Extra tests modules): New section.
16194         Suggested by Jim Meyering.
16195
16196 2010-03-28  Bruno Haible  <bruno@clisp.org>
16197
16198         ansi-c++-opt: Allow turning off the C++ build by default.
16199         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16200         gl_CXX_CHOICE_DEFAULT_NO is defined.
16201         Requested by Eric Blake.
16202
16203 2010-03-28  Bruno Haible  <bruno@clisp.org>
16204
16205         unistd: Avoid #define replacements in C++ mode.
16206         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16207         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16208         setsockopt, shutdown, select): In C++, attach a warning to the function
16209         if possible, rather than #defining the symbol to a dysfunctional alias.
16210         Reported by John W. Eaton <jwe@gnu.org>.
16211
16212 2010-03-28  Bruno Haible  <bruno@clisp.org>
16213
16214         Fix link errors on mingw.
16215         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16216         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16217         $(LIBSOCKET).
16218         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16219         $(LIBSOCKET).
16220
16221 2010-03-28  Bruno Haible  <bruno@clisp.org>
16222             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16223
16224         lib-ignore: Determine different options for different compilers.
16225         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16226         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16227         Add comments.
16228         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16229         * NEWS: Mention the change.
16230
16231 2010-03-27  Bruno Haible  <bruno@clisp.org>
16232
16233         Remove unused GNULIB_XYZ macro definitions.
16234         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16235         * modules/fseek (configure.ac): Likewise.
16236         * modules/ioctl (configure.ac): Likewise.
16237         * modules/open (configure.ac): Likewise.
16238         * modules/stdlib-safer (configure.ac): Likewise.
16239
16240 2010-03-27  Bruno Haible  <bruno@clisp.org>
16241
16242         Add a remark about certain modules.
16243         * modules/malloc (Comment): New section.
16244         * modules/realloc (Comment): Likewise.
16245         * modules/sigpipe (Comment): Likewise.
16246
16247 2010-03-27  Bruno Haible  <bruno@clisp.org>
16248
16249         Resolve conflict between the two kinds of module indicators.
16250         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16251         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16252         * modules/canonicalize (configure.ac): Invoke
16253         gl_MODULE_INDICATOR_FOR_TESTS.
16254         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16255         GNULIB_XYZ.
16256         * tests/test-dirent-c++.cc: Likewise.
16257         * tests/test-dirent-safer.c: Likewise.
16258         * tests/test-dup2.c: Likewise.
16259         * tests/test-fchdir.c: Likewise.
16260         * tests/test-fcntl-h-c++.cc: Likewise.
16261         * tests/test-getopt.c: Likewise.
16262         * tests/test-getopt.h: Likewise.
16263         * tests/test-langinfo-c++.cc: Likewise.
16264         * tests/test-locale-c++.cc: Likewise.
16265         * tests/test-math-c++.cc: Likewise.
16266         * tests/test-pty-c++.cc: Likewise.
16267         * tests/test-search-c++.cc: Likewise.
16268         * tests/test-signal-c++.cc: Likewise.
16269         * tests/test-spawn-c++.cc: Likewise.
16270         * tests/test-stdio-c++.cc: Likewise.
16271         * tests/test-stdlib-c++.cc: Likewise.
16272         * tests/test-string-c++.cc: Likewise.
16273         * tests/test-sys_ioctl-c++.cc: Likewise.
16274         * tests/test-sys_select-c++.cc: Likewise.
16275         * tests/test-sys_socket-c++.cc: Likewise.
16276         * tests/test-sys_stat-c++.cc: Likewise.
16277         * tests/test-sys_time-c++.cc: Likewise.
16278         * tests/test-time-c++.cc: Likewise.
16279         * tests/test-unistd-c++.cc: Likewise.
16280         * tests/test-wchar-c++.cc: Likewise.
16281         * tests/uninorm/test-u8-nfc.c: Likewise.
16282         * tests/uninorm/test-u8-nfd.c: Likewise.
16283         * tests/uninorm/test-u8-nfkc.c: Likewise.
16284         * tests/uninorm/test-u8-nfkd.c: Likewise.
16285         * tests/uninorm/test-u16-nfc.c: Likewise.
16286         * tests/uninorm/test-u16-nfd.c: Likewise.
16287         * tests/uninorm/test-u16-nfkc.c: Likewise.
16288         * tests/uninorm/test-u16-nfkd.c: Likewise.
16289         * tests/uninorm/test-u32-nfc.c: Likewise.
16290         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16291         * tests/uninorm/test-u32-nfd.c: Likewise.
16292         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16293         * tests/uninorm/test-u32-nfkc.c: Likewise.
16294         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16295         * tests/uninorm/test-u32-nfkd.c: Likewise.
16296         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16297         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16298
16299 2010-03-27  Bruno Haible  <bruno@clisp.org>
16300
16301         Distinguish two kinds of module indicators.
16302         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16303         gl_MODULE_INDICATOR.
16304         (gl_MODULE_INDICATOR): New macro.
16305         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16306         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16307         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16308         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16309         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16310         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16311         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16312         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16313         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16314         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16315         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16316         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16317         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16318         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16319         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16320         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16321         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16322         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16323         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16324         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16325         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16326         * modules/cloexec (configure.ac): Likewise.
16327         * modules/getopt-gnu (configure.ac): Likewise.
16328         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16329         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16330         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16331         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16332
16333 2010-03-27  Bruno Haible  <bruno@clisp.org>
16334
16335         New module description field 'Comment'.
16336         * gnulib-tool: New option --extract-comment.
16337         (func_usage): Document it.
16338         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16339         (func_get_comment): New function.
16340         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16341
16342 2010-03-27  Bruno Haible  <bruno@clisp.org>
16343
16344         Addendum to 2010-02-07 commit.
16345         * gnulib-tool (func_usage): Document --extract-applicability option.
16346
16347 2010-03-27  Bruno Haible  <bruno@clisp.org>
16348
16349         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16350         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16351         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16352         rather than link errors.
16353
16354 2010-03-27  Bruno Haible  <bruno@clisp.org>
16355
16356         Avoid side effects from tests-related modules on the compilation of lib.
16357         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16358         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16359         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16360         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16361         macro.
16362         (func_import): Define a witness macro. Assign it a value that depends
16363         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16364         tests-related modules.
16365         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16366         Reported by Jim Meyering.
16367
16368 2010-03-27  Bruno Haible  <bruno@clisp.org>
16369
16370         Factorize common .m4 code.
16371         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16372         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16373         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16374         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16375         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16376         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16377         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16378         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16379         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16380         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16381         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16382         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16383         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16384         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16385         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16386         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16387         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16388         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16389         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16390         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16391         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16392         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16393         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16394         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16395         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16396         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16397         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16398         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16399         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16400         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16401         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16402         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16403
16404 2010-03-27  Bruno Haible  <bruno@clisp.org>
16405
16406         Fix a compilation error on Cygwin with g++ >= 4.3.
16407         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16408         if it is undefined or if we alias it to chmod.
16409         (lstat): Don't warn about the use of this function if it is undefined
16410         or if we alias it to stat.
16411         Reported by Simon Josefsson.
16412
16413 2010-03-27  Bruno Haible  <bruno@clisp.org>
16414
16415         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16416         * modules/getlogin (configure.ac): Update.
16417
16418         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16419         * modules/getlogin_r (configure.ac): Update.
16420
16421         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16423         * modules/inet_ntop (configure.ac): Update.
16424
16425         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16426         * modules/inet_pton (configure.ac): Update.
16427
16428         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16429         * modules/mbslen (configure.ac): Update.
16430
16431         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16432         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16433         * modules/forkpty (configure.ac): Update.
16434         * modules/openpty (configure.ac): Update.
16435
16436 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16437
16438         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16439         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16440
16441 2010-03-25  Eric Blake  <eblake@redhat.com>
16442
16443         maint: use pragma consistently across replacement headers
16444         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16445         * lib/dirent.in.h (system_header): Likewise.
16446         * lib/errno.in.h (system_header): Likewise.
16447         * lib/float.in.h (system_header): Likewise.
16448         * lib/getopt.in.h (system_header): Likewise.
16449         * lib/iconv.in.h (system_header): Likewise.
16450         * lib/inttypes.in.h (system_header): Likewise.
16451         * lib/langinfo.in.h (system_header): Likewise.
16452         * lib/locale.in.h (system_header): Likewise.
16453         * lib/math.in.h (system_header): Likewise.
16454         * lib/netdb.in.h (system_header): Likewise.
16455         * lib/netinet_in.in.h (system_header): Likewise.
16456         * lib/pty.in.h (system_header): Likewise.
16457         * lib/sched.in.h (system_header): Likewise.
16458         * lib/se-selinux.in.h (system_header): Likewise.
16459         * lib/search.in.h (system_header): Likewise.
16460         * lib/spawn.in.h (system_header): Likewise.
16461         * lib/stdarg.in.h (system_header): Likewise.
16462         * lib/stdint.in.h (system_header): Likewise.
16463         * lib/string.in.h (system_header): Likewise.
16464         * lib/strings.in.h (system_header): Likewise.
16465         * lib/sys_file.in.h (system_header): Likewise.
16466         * lib/sys_ioctl.in.h (system_header): Likewise.
16467         * lib/sys_socket.in.h (system_header): Likewise.
16468         * lib/sys_times.in.h (system_header): Likewise.
16469         * lib/sys_utsname.in.h (system_header): Likewise.
16470         * lib/sys_wait.in.h (system_header): Likewise.
16471         * lib/sysexits.in.h (system_header): Likewise.
16472         * lib/unistd.in.h (system_header): Likewise.
16473         * lib/wctype.in.h (system_header): Likewise.
16474
16475         arpa/inet: fix mingw compilation warning
16476         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16477         Reported by Matthew Bolte.
16478
16479 2010-03-25  Bruno Haible  <bruno@clisp.org>
16480
16481         Avoid collision between gnulib wrapper and libintl wrapper.
16482         * lib/printf.c (printf): Don't define if a printf wrapper is already
16483         defined in intl/printf.c.
16484         Reported by Michel Boaventura <michel@michelboaventura.com>.
16485
16486 2010-03-25  Bruno Haible  <bruno@clisp.org>
16487
16488         Use ANSI C.
16489         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16490
16491 2010-03-25  Bruno Haible  <bruno@clisp.org>
16492
16493         Minor formatting changes.
16494         * lib/acosl.c: Insert space before function argument list.
16495         * lib/argz.c: Likewise.
16496         * lib/asinl.c: Likewise.
16497         * lib/expl.c: Likewise.
16498         * lib/gen-uni-tables.c: Likewise.
16499         * lib/gettext.h: Likewise.
16500         * lib/glthread/lock.h: Likewise.
16501         * lib/tanl.c: Likewise.
16502         * lib/uniname/uniname.c: Likewise.
16503         * tests/test-idpriv-drop.c: Likewise.
16504         * tests/test-idpriv-droptemp.c: Likewise.
16505         * tests/test-lock.c: Likewise.
16506         * tests/test-tls.c: Likewise.
16507         * lib/argp-help.c: Insert space before function-like macro argument
16508         list.
16509         * lib/memcmp.c: Likewise.
16510         * tests/test-base64.c: Likewise.
16511         * lib/localename.c: Insert space before sizeof's argument list.
16512         * lib/safe-alloc.h: Likewise.
16513         * lib/file-set.h: Insert space before macro argument list.
16514         * tests/test-argp.c: Likewise.
16515         * lib/argp-namefrob.h: Insert space before function parameter list.
16516         * lib/getaddrinfo.c: Likewise.
16517         * lib/netdb.in.h: Likewise.
16518         * lib/parse-duration.h: Likewise.
16519         * lib/parse-duration.c: Likewise.
16520         * lib/poll.c: Likewise.
16521         * lib/select.c: Likewise.
16522         * lib/trim.h: Likewise.
16523         * tests/test-usleep.c: Likewise.
16524         * lib/ldexpl.c: Insert space before function parameter list and before
16525         function argument list.
16526         * lib/logl.c: Likewise.
16527         * lib/sqrtl.c: Likewise.
16528         * lib/trim.c: Likewise.
16529         * lib/cosl.c: Use GNU style indentation. Insert space before function
16530         argument list.
16531         * lib/sinl.c: Likewise.
16532         * lib/tsearch.c: Insert space after 'for'.
16533         Reported by Jim Meyering.
16534
16535 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
16536
16537         * maint.mk (sc_Wundef_boolean): Check for the presence of the
16538         config header before grepping, as it's not present before
16539         autoreconf/configure are run.  Reported by Simon Josefsson.
16540
16541 2010-03-23  Bruno Haible  <bruno@clisp.org>
16542
16543         pt_chown: Make it work with automake < 1.11.
16544         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
16545         Reported by Simon Josefsson.
16546
16547 2010-03-23  Bruno Haible  <bruno@clisp.org>
16548
16549         pt_chown: Don't depend on GPLed modules.
16550         * lib/pt_chown.c: Don't include idpriv.h.
16551         (main): Don't drop privileges.
16552         * modules/pt_chown (Depends-on): Remove idpriv-drop.
16553         Reported by Simon Josefsson.
16554
16555 2010-03-24  Simon Josefsson  <simon@josefsson.org>
16556
16557         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
16558         suggestions from karl@freefriends.org (Karl Berry).
16559
16560 2010-03-22  Eric Blake  <eblake@redhat.com>
16561
16562         gethostname: further tweaks
16563         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
16564         are overriding gethostname.
16565         Suggested by Bruno Haible.
16566
16567 2010-03-21  Bruno Haible  <bruno@clisp.org>
16568
16569         Fix comments.
16570         * lib/forkpty.c (rpl_forkpty): Fix comment.
16571         * lib/openpty.c (rpl_openpty): Likewise.
16572         Reported by Eric Blake.
16573
16574 2010-03-22  Eric Blake  <eblake@redhat.com>
16575
16576         gethostname: fix build on mingw
16577         * lib/unistd.in.h (includes): Work around fact that mingw
16578         <winsock2.h> re-includes <unistd.h>, by avoiding any
16579         redeclarations if we are being included by <winsock2.h>.
16580         Reported by Matthias Bolte.
16581
16582 2010-03-21  Bruno Haible  <bruno@clisp.org>
16583
16584         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16585         * lib/forkpty.c (forkpty): New replacement function, from glibc with
16586         modifications.
16587         * lib/pty.in.h (forkpty): Update declaration. Add comments.
16588         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
16589         provide the replacement.
16590         * modules/forkpty (Depends-on): Add openpty, login_tty.
16591         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
16592         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
16593         * doc/glibc-functions/forkpty.texi: More supported platforms.
16594         * config/srclist.txt: Add forkpty.c (commented).
16595
16596 2010-03-21  Bruno Haible  <bruno@clisp.org>
16597
16598         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
16599         (Makefile.am): Verify that PTY_LIB is defined.
16600
16601         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
16602
16603 2010-03-21  Bruno Haible  <bruno@clisp.org>
16604
16605         Tests for module 'login_tty'.
16606         * modules/login_tty-tests: New file.
16607         * tests/test-login_tty.c: New file.
16608
16609         New module 'login_tty'.
16610         * lib/login_tty.c: New file.
16611         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
16612         * modules/login_tty: New file.
16613         * doc/glibc-functions/login_tty.texi: Mention the new module.
16614
16615 2010-03-21  Bruno Haible  <bruno@clisp.org>
16616
16617         login_tty: Documentation.
16618         * doc/glibc-functions/login_tty.texi: New file.
16619         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
16620
16621 2010-03-21  Bruno Haible  <bruno@clisp.org>
16622
16623         pty: Consistent macro naming.
16624         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
16625         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
16626         * modules/pty (configure.ac): Update.
16627
16628 2010-03-21  Bruno Haible  <bruno@clisp.org>
16629
16630         Tests for openpty: Make stricter.
16631         * tests/test-openpty.c (main): Add test of canonical processing and
16632         erase.
16633         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
16634
16635         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16636         * lib/openpty.c (openpty): New replacement function.
16637         * lib/pty.in.h: Include <termios.h>.
16638         (openpty): Update declaration. Add comments.
16639         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
16640         is not declared, arrange to provide the replacement. Check for _getpty
16641         and posix_openpt.
16642         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
16643         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
16644         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
16645         * modules/pty-tests (test_pty_c___LDADD): New variable.
16646         * doc/glibc-functions/openpty.texi: More supported platforms.
16647
16648 2010-03-21  Bruno Haible  <bruno@clisp.org>
16649
16650         setenv: Tweaks.
16651         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
16652         the test program.
16653         * doc/posix-functions/setenv.texi: Update platforms list.
16654
16655 2010-03-21  Bruno Haible  <bruno@clisp.org>
16656
16657         New module 'unlockpt'.
16658         * lib/unlockpt.c: New file, from glibc with modifications.
16659         * m4/unlockpt.m4: New file.
16660         * modules/unlockpt: New file.
16661         * lib/stdlib.in.h (unlockpt): New declaration.
16662         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
16663         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
16664         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
16665         HAVE_UNLOCKPT.
16666         * doc/posix-functions/unlockpt.texi: Mention the new module.
16667         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
16668         * config/srclist.txt: Add unlockpt.c (commented).
16669
16670 2010-03-21  Jim Meyering  <meyering@redhat.com>
16671
16672         maint.mk: prohibit inclusion of "intprops.h" without use
16673         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
16674
16675 2010-03-21  Bruno Haible  <bruno@clisp.org>
16676
16677         New module 'grantpt'.
16678         * lib/grantpt.c: New file, from glibc with modifications.
16679         * m4/grantpt.m4: New file.
16680         * modules/grantpt: New file.
16681         * lib/stdlib.in.h (grantpt): New declaration.
16682         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
16683         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
16684         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
16685         HAVE_GRANTPT.
16686         * doc/posix-functions/grantpt.texi: Mention the new module.
16687         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
16688         * config/srclist.txt: Add grantpt.c (commented).
16689
16690 2010-03-21  Bruno Haible  <bruno@clisp.org>
16691
16692         New module 'pt_chown'.
16693         * lib/pt_chown.c: New file, from glibc with modifications.
16694         * lib/pty-private.h: New file, from glibc with modifications.
16695         * modules/pt_chown: New file.
16696         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16697
16698 2010-03-21  Bruno Haible  <bruno@clisp.org>
16699
16700         Tests for module 'ptsname'.
16701         * modules/ptsname-tests: New file.
16702         * tests/test-ptsname.c: New file.
16703
16704         New module 'ptsname'.
16705         * lib/ptsname.c: New file, from glibc with modifications.
16706         * m4/ptsname.m4: New file.
16707         * modules/ptsname: New file.
16708         * lib/stdlib.in.h (ptsname): New declaration.
16709         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16710         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16711         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16712         HAVE_PTSNAME.
16713         * doc/posix-functions/ptsname.texi: Mention the new module.
16714         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16715         * config/srclist.txt: Add ptsname.c (commented).
16716
16717 2010-03-21  Bruno Haible  <bruno@clisp.org>
16718
16719         Tests for module 'ttyname_r'.
16720         * modules/ttyname_r-tests: New file.
16721         * tests/test-ttyname_r.c: New file.
16722
16723         New module 'ttyname_r'.
16724         * lib/ttyname_r.c: New file.
16725         * m4/ttyname_r.m4: New file.
16726         * modules/ttyname_r: New file.
16727         * lib/unistd.in.h (ttyname_r): New declaration.
16728         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16729         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16730         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16731         HAVE_TTYNAME_R.
16732         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16733         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16734
16735 2010-03-20  Bruno Haible  <bruno@clisp.org>
16736
16737         signal: Undefine macro definitions in C++ mode.
16738         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16739         sigfillset): Undefine macro definitions from the system header in C++
16740         mode.
16741         Reported by John W. Eaton <jwe@gnu.org>.
16742
16743 2010-03-20  Bruno Haible  <bruno@clisp.org>
16744
16745         Ensure no #include statements inside extern "C" { ... }.
16746         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16747         contain #include statements.
16748         * lib/time.in.h: Likewise.
16749
16750 2010-03-20  Bruno Haible  <bruno@clisp.org>
16751
16752         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16753         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16754         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16755         Reported by John W. Eaton <jwe@gnu.org>.
16756
16757 2010-03-20  Bruno Haible  <bruno@clisp.org>
16758
16759         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16760         Reported by Jim Meyering.
16761
16762 2010-03-20  Bruno Haible  <bruno@clisp.org>
16763
16764         pipe: Set errno upon failure.
16765         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16766         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16767         errno value in error message.
16768
16769 2010-03-20  Bruno Haible  <bruno@clisp.org>
16770             Jim Meyering  <meyering@redhat.com>
16771
16772         lchown: Avoid "unused variable" warning.
16773         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16774
16775 2010-03-20  Bruno Haible  <bruno@clisp.org>
16776
16777         Work around unlink() bug on MacOS X 10.5.6.
16778         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16779         attempting to unlink a parent directory.
16780         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16781         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16782         activate for the replacement function.
16783         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16784
16785 2010-03-20  Bruno Haible  <bruno@clisp.org>
16786
16787         Fix link errors on Solaris 8.
16788         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16789         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16790
16791 2010-03-19  Jim Meyering  <meyering@redhat.com>
16792
16793         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
16794         The _LIBC implementation of build_range_exp correctly honors the
16795         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
16796         However, the non-_LIBC implementation would ignore that syntax-bit
16797         flag and return REG_ERANGE unconditionally.
16798         This change makes it honor that flag.
16799         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
16800         Make two pointer parameters "const".
16801         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
16802         (parse_bracket_exp): Update caller.
16803
16804         regex.m4: correct the reversed range endpoint ([b-a]) test
16805         * m4/regex.m4: When requiring that [b-a] evoke failure,
16806         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
16807         test pass once again for x86-based systems.
16808
16809 2010-03-19  Bruno Haible  <bruno@clisp.org>
16810
16811         scandir: Fix link error on Solaris 8.
16812         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
16813         macros.
16814
16815 2010-03-19  Bruno Haible  <bruno@clisp.org>
16816
16817         getusershell: Fix documentation.
16818         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
16819         module.
16820         * doc/glibc-functions/setusershell.texi: Likewise.
16821
16822         getusershell: Provide declaration, missing on Solaris 9.
16823         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
16824         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
16825         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
16826         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
16827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16828         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
16829         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
16830         HAVE_GETUSERSHELL.
16831         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
16832
16833 2010-03-19  Bruno Haible  <bruno@clisp.org>
16834
16835         wctype: Provide iswblank function.
16836         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
16837         exists and is fine.
16838         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
16839         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
16840         * tests/test-wctype.c (main): Re-enable the iswblank tests.
16841         * doc/posix-functions/iswblank.texi: Update.
16842
16843 2010-03-19  Bruno Haible  <bruno@clisp.org>
16844
16845         Tests of module 'pty' in C++ mode.
16846         * modules/pty-tests: New file.
16847         * tests/test-pty-c++.cc: New file.
16848         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16849
16850 2010-03-19  Eric Blake  <eblake@redhat.com>
16851
16852         logb: fix documentation
16853         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
16854         1.5 declaration bug.
16855
16856         forkpty, openpty: prefer glibc's const-safe prototype
16857         * lib/forkpty.c (rpl_forkpty): New file.
16858         * lib/openpty.c (rpl_openpty): Likewise.
16859         * modules/forkpty (Files): Distribute it.
16860         * modules/openpty (Files): Likewise.
16861         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
16862         check...
16863         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
16864         replacement for for non-const BSD signature.
16865         * modules/pty (Makefile.am): Substitute witnesses.
16866         * lib/pty.in.h (forkpty, openpty): Declare replacements.
16867         * tests/test-forkpty.c: Update signature check.
16868         * tests/test-openpty.c: Likewise.
16869         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
16870         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16871
16872         forkpty, openpty: split functions into new modules
16873         * modules/pty (Makefile.am): Substitute new witnesses.
16874         (Libraries): Move library detection...
16875         * modules/forkpty: ...into new module.
16876         * modules/openpty: Another new module.
16877         * modules/pty-tests: Rename and split...
16878         * modules/forkpty-tests: ...to this...
16879         * modules/openpty-tests: ...and this.
16880         * tests/test-pty.c: Rename and split...
16881         * tests/test-forkpty.c: ...to this...
16882         * tests/test-openpty.c: ...and this.
16883         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
16884         (gl_PTY): Split library searching...
16885         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
16886         (gl_FORKPTY, gl_OPENPTY): New macros.
16887         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
16888         * NEWS: Mention the split.
16889         * MODULES.html.sh (Misc): Document the modules.
16890         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
16891         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16892
16893         pty: improve replacement header
16894         * lib/pty.in.h: New file.
16895         * modules/pty (Files): Ship it.
16896         (Makefile.am): Always build replacement.
16897         * m4/pty.m4: Rename...
16898         * m4/pty_h.m4: ...to this.
16899         (gl_PTY): Modernize setting of witness macros; update check of
16900         forkpty to take proper advantage of cache.
16901         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
16902
16903         getopt: avoid compiler warning
16904         * lib/getopt.c (attribute_hidden): Remove unused macro.
16905
16906 2010-03-18  Bruno Haible  <bruno@clisp.org>
16907
16908         Fix link errors on Solaris 8.
16909         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
16910         * modules/search-tests (test_search_c___LDADD): Likewise.
16911         * modules/signal-tests (test_signal_c___LDADD): Likewise.
16912         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
16913         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
16914         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
16915         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
16916         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
16917         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
16918
16919 2010-03-18  Bruno Haible  <bruno@clisp.org>
16920
16921         Fix bug introduced on 2010-03-14.
16922         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
16923         (gl_SPAWN_H): Require it.
16924         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
16925         Reported by Simon Josefsson.
16926
16927 2010-03-18  Bruno Haible  <bruno@clisp.org>
16928
16929         Fix typo introduced on 2009-12-31.
16930         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
16931         posix_spawn_file_actions_adddup2.
16932
16933 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
16934         and Eric Blake  <eblake@redhat.com>
16935
16936         test-vc-list-files-git: make more robust
16937         * tests/test-vc-list-files-git.sh: Unset problematic environment
16938         variables.  Chain commands together.
16939
16940 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
16941
16942         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
16943         `AC_CHECK_DECL' invocation.
16944
16945 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
16946
16947         * lib/inttostr.c (inttostr): Make sure the invocation of verify
16948         appears before executable statements. Suggested by Petr Sumbera
16949         <Petr.Sumbera@Sun.COM>.
16950
16951 2010-03-14  Bruno Haible  <bruno@clisp.org>
16952
16953         * tests/test-flock.c (test_exclusive): Comment out a test that causes
16954         portability problems. Instead use a simpler test.
16955         (main): Check that invalid arguments are rejected only on Linux.
16956
16957 2010-03-14  Bruno Haible  <bruno@clisp.org>
16958
16959         Fix bug introduced on 2009-12-31.
16960         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16961         gl_PREREQ_SYS_H_WINSOCK2 always.
16962         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
16963         SYS_SOCKET_H variable.
16964         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
16965         Update comments.
16966         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
16967         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16968         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16969         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16970         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
16971
16972 2010-03-14  Bruno Haible  <bruno@clisp.org>
16973
16974         Fix values returned by sinl, cosl.
16975         * lib/trigl.h: Add specification comments.
16976         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
16977         that combines the values from the precomputed table with the values of
16978         the Chebyshev polynomials.
16979
16980 2010-03-14  Bruno Haible  <bruno@clisp.org>
16981
16982         Fix compilation error when modules 'posix_spawn[p]' are not used.
16983         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
16984         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
16985
16986 2010-03-14  Bruno Haible  <bruno@clisp.org>
16987
16988         Fix compilation error on mingw when module 'time_r' is not used.
16989         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
16990         is 1.
16991         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
16992         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16993         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
16994         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
16995
16996 2010-03-14  Bruno Haible  <bruno@clisp.org>
16997
16998         Fix compilation error with Sun C.
16999         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17000         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17001         instead of GCC specific ULONG_LONG_MAX.
17002         * lib/xstrtoll.c: Likewise.
17003         * lib/xstrtoull.c: Likewise.
17004
17005 2010-03-13  Bruno Haible  <bruno@clisp.org>
17006
17007         Allow the user to disable C++ code and tests.
17008         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17009         (gl_PROG_ANSI_CXX): Require it.
17010
17011 2010-03-13  Bruno Haible  <bruno@clisp.org>
17012
17013         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17014         cases.
17015
17016 2010-03-13  Bruno Haible  <bruno@clisp.org>
17017
17018         Test that gnulib does not break the standard C++ headers.
17019         * tests/test-locale-c++2.cc: New file.
17020         * modules/locale-tests (Files): Add it.
17021         (Makefile.am): Compile it for test-locale-c++.
17022         * tests/test-math-c++2.cc: New file.
17023         * modules/math-tests (Files): Add it.
17024         (Makefile.am): Compile it for test-math-c++.
17025         * tests/test-signal-c++2.cc: New file.
17026         * modules/signal-tests (Files): Add it.
17027         (Makefile.am): Compile it for test-signal-c++.
17028         * tests/test-stdio-c++2.cc: New file.
17029         * modules/stdio-tests (Files): Add it.
17030         (Makefile.am): Compile it for test-stdio-c++.
17031         * tests/test-stdlib-c++2.cc: New file.
17032         * modules/stdlib-tests (Files): Add it.
17033         (Makefile.am): Compile it for test-stdlib-c++.
17034         * tests/test-string-c++2.cc: New file.
17035         * modules/string-tests (Files): Add it.
17036         (Makefile.am): Compile it for test-string-c++.
17037         * tests/test-time-c++2.cc: New file.
17038         * modules/time-tests (Files): Add it.
17039         (Makefile.am): Compile it for test-time-c++.
17040         Reported by John W. Eaton <jwe@gnu.org>.
17041
17042 2010-03-13  Bruno Haible  <bruno@clisp.org>
17043
17044         * gnulib-tool (func_usage): Clarify which options are available for
17045         --create-testdir and --create-megatestdir.
17046
17047 2010-03-13  Bruno Haible  <bruno@clisp.org>
17048
17049         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17050         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17051         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17052         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17053         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17054         when appropriate.
17055         Reported by Jim Meyering.
17056
17057 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17058
17059         * gnulib-tool (func_import): Explain origin of code.
17060
17061 2010-03-12  Bruno Haible  <bruno@clisp.org>
17062
17063         Fix problem with automake's definition of CXXLINK.
17064         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17065         Reported by Simon Josefsson and Ludovic Courtès.
17066
17067 2010-03-12  Bruno Haible  <bruno@clisp.org>
17068
17069         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17070         stable releases.
17071
17072 2010-03-11  Bruno Haible  <bruno@clisp.org>
17073
17074         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17075         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17076         whether the system provides one variant or multiple variants of the
17077         function.
17078         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17079         C++ compilers.
17080         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17081         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17082         Reported by Jim Meyering.
17083
17084 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17085
17086         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17087
17088 2010-03-08  Bruno Haible  <bruno@clisp.org>
17089
17090         gnulib-tool: Add support for --libtool in --create-testdir.
17091         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17092         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17093
17094 2010-03-08  Eric Blake  <eblake@redhat.com>
17095
17096         gnulib-tool.texi: mention possibility of git submodule
17097         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17098         submodules.
17099         * doc/.gitignore: Ignore another generated file.
17100
17101 2010-03-08  Karl Berry  <karl@gnu.org>
17102
17103         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17104         of committing gnulib files while skipping others.
17105
17106 2010-03-07  Bruno Haible  <bruno@clisp.org>
17107
17108         Tests of module 'wctype' in C++ mode.
17109         * tests/test-wctype-c++.cc: New file.
17110         * modules/wctype-tests (Files): Add it and tests/signature.h.
17111         (Depends-on): Add ansi-c++-opt.
17112         (Makefile.am): Arrange to compile and run test-wctype-c++.
17113
17114         Tests of module 'wchar' in C++ mode.
17115         * tests/test-wchar-c++.cc: New file.
17116         * modules/wchar-tests (Files): Add it and tests/signature.h.
17117         (Depends-on): Add ansi-c++-opt.
17118         (Makefile.am): Arrange to compile and run test-wchar-c++.
17119         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17120         gl_MODULE_INDICATOR.
17121
17122         Tests of module 'unistd' in C++ mode.
17123         * tests/test-unistd-c++.cc: New file.
17124         * modules/unistd-tests (Files): Add it and tests/signature.h.
17125         (Depends-on): Add ansi-c++-opt.
17126         (Makefile.am): Arrange to compile and run test-unistd-c++.
17127         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17128         gl_MODULE_INDICATOR.
17129
17130         Tests of module 'time' in C++ mode.
17131         * tests/test-time-c++.cc: New file.
17132         * modules/time-tests (Files): Add it and tests/signature.h.
17133         (Depends-on): Add ansi-c++-opt.
17134         (Makefile.am): Arrange to compile and run test-time-c++.
17135         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17136
17137         Tests of module 'sys_time' in C++ mode.
17138         * tests/test-sys_time-c++.cc: New file.
17139         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17140         (Depends-on): Add ansi-c++-opt.
17141         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17142         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17143         gl_MODULE_INDICATOR.
17144
17145         Tests of module 'sys_stat' in C++ mode.
17146         * tests/test-sys_stat-c++.cc: New file.
17147         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17148         (Depends-on): Add ansi-c++-opt.
17149         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17150         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17151         gl_MODULE_INDICATOR.
17152
17153         Tests of module 'sys_socket' in C++ mode.
17154         * tests/test-sys_socket-c++.cc: New file.
17155         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17156         (Depends-on): Add ansi-c++-opt.
17157         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17158         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17159         gl_MODULE_INDICATOR.
17160
17161         Tests of module 'sys_select' in C++ mode.
17162         * tests/test-sys_select-c++.cc: New file.
17163         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17164         (Depends-on): Add ansi-c++-opt.
17165         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17166         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17167         gl_MODULE_INDICATOR.
17168
17169         Tests of module 'sys_ioctl' in C++ mode.
17170         * tests/test-sys_ioctl-c++.cc: New file.
17171         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17172         (Depends-on): Add ansi-c++-opt.
17173         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17174         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17175         gl_MODULE_INDICATOR.
17176
17177         Tests of module 'string' in C++ mode.
17178         * tests/test-string-c++.cc: New file.
17179         * modules/string-tests (Files): Add it and tests/signature.h.
17180         (Depends-on): Add ansi-c++-opt.
17181         (Makefile.am): Arrange to compile and run test-string-c++.
17182         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17183         gl_MODULE_INDICATOR.
17184
17185         Tests of module 'stdlib' in C++ mode.
17186         * tests/test-stdlib-c++.cc: New file.
17187         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17188         (Depends-on): Add ansi-c++-opt.
17189         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17190         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17191         gl_MODULE_INDICATOR.
17192
17193         Tests of module 'stdio' in C++ mode.
17194         * tests/test-stdio-c++.cc: New file.
17195         * modules/stdio-tests (Files): Add it and tests/signature.h.
17196         (Depends-on): Add ansi-c++-opt.
17197         (Makefile.am): Arrange to compile and run test-stdio-c++.
17198         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17199         gl_MODULE_INDICATOR.
17200
17201         Tests of module 'spawn' in C++ mode.
17202         * tests/test-spawn-c++.cc: New file.
17203         * modules/spawn-tests (Files): Add it and tests/signature.h.
17204         (Depends-on): Add ansi-c++-opt.
17205         (Makefile.am): Arrange to compile and run test-spawn-c++.
17206         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17207         gl_MODULE_INDICATOR.
17208
17209         Tests of module 'signal' in C++ mode.
17210         * tests/test-signal-c++.cc: New file.
17211         * modules/signal-tests (Files): Add it and tests/signature.h.
17212         (Depends-on): Add ansi-c++-opt.
17213         (Makefile.am): Arrange to compile and run test-signal-c++.
17214         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17215         gl_MODULE_INDICATOR.
17216
17217         Tests of module 'search' in C++ mode.
17218         * tests/test-search-c++.cc: New file.
17219         * modules/search-tests (Files): Add it and tests/signature.h.
17220         (Depends-on): Add ansi-c++-opt.
17221         (Makefile.am): Arrange to compile and run test-search-c++.
17222         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17223         gl_MODULE_INDICATOR.
17224
17225         Tests of module 'math' in C++ mode.
17226         * tests/test-math-c++.cc: New file.
17227         * modules/math-tests (Files): Add it and tests/signature.h.
17228         (Depends-on): Add ansi-c++-opt.
17229         (Makefile.am): Arrange to compile and run test-math-c++.
17230         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17231
17232         Tests of module 'locale' in C++ mode.
17233         * tests/test-locale-c++.cc: New file.
17234         * modules/locale-tests (Files): Add it and tests/signature.h.
17235         (Depends-on): Add ansi-c++-opt.
17236         (Makefile.am): Arrange to compile and run test-locale-c++.
17237         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17238         gl_MODULE_INDICATOR.
17239
17240         Tests of module 'langinfo' in C++ mode.
17241         * tests/test-langinfo-c++.cc: New file.
17242         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17243         (Depends-on): Add ansi-c++-opt.
17244         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17245         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17246         gl_MODULE_INDICATOR.
17247
17248         Tests of module 'iconv-h' in C++ mode.
17249         * tests/test-iconv-h-c++.cc: New file.
17250         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17251         (Depends-on): Add ansi-c++-opt.
17252         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17253
17254         Tests of module 'glob' in C++ mode.
17255         * tests/test-glob-c++.cc: New file.
17256         * modules/glob-tests (Files): Add it.
17257         (Depends-on): Add ansi-c++-opt.
17258         (Makefile.am): Arrange to compile and run test-glob-c++.
17259
17260         Tests of module 'fcntl-h' in C++ mode.
17261         * tests/test-fcntl-h-c++.cc: New file.
17262         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17263         (Depends-on): Add ansi-c++-opt.
17264         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17265         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17266         gl_MODULE_INDICATOR.
17267
17268         Tests of module 'dirent' in C++ mode.
17269         * tests/test-dirent-c++.cc: New file.
17270         * modules/dirent-tests (Files): Add it and tests/signature.h.
17271         (Depends-on): Add ansi-c++-opt.
17272         (Makefile.am): Arrange to compile and run test-dirent-c++.
17273         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17274         gl_MODULE_INDICATOR.
17275
17276         New module 'ansi-c++-opt'.
17277         * modules/ansi-c++-opt: New file.
17278         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17279
17280         Document C++ namespace mode.
17281         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17282
17283         wctype: Avoid #define replacements in C++ mode.
17284         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17285         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17286         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17287         In C++, define a namespaced alias symbol.
17288         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17289         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17290         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17291         rule.
17292
17293         wchar: Avoid #define replacements in C++ mode.
17294         * lib/wchar.in.h: Include c++defs.h.
17295         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17296         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17297         symbol.
17298         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17299         * modules/wchar (Depends-on): Add c++defs.
17300         (Makefile.am): Update wchar.h rule.
17301
17302         unistd: Avoid #define replacements in C++ mode.
17303         * lib/unistd.in.h: Include c++defs.h.
17304         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17305         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17306         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17307         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17308         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17309         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17310         symbol.
17311         (environ): Update.
17312         * modules/unistd (Depends-on): Add c++defs.
17313         (Makefile.am): Update unistd.h rule.
17314
17315         time: Avoid #define replacements in C++ mode.
17316         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17317         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17318         define a namespaced alias symbol.
17319         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17320         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17321         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17322         * modules/time (Depends-on): Add c++defs, warn-on-use.
17323         (Makefile.am): Update time.h rule.
17324         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17325         * modules/nanosleep (configure.ac): Likewise.
17326         * modules/strptime (configure.ac): Likewise.
17327         * modules/timegm (configure.ac): Likewise.
17328
17329         sys_time: Avoid #define replacements in C++ mode.
17330         * lib/sys_time.in.h: Include c++defs.h.
17331         (gettimeofday): In C++, define a namespaced alias symbol.
17332         * modules/sys_time (Depends-on): Add c++defs.
17333         (Makefile.am): Update sys/time.h rule.
17334
17335         sys_stat: Avoid #define replacements in C++ mode.
17336         * lib/sys_stat.in.h: Include c++defs.h.
17337         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17338         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17339         namespaced alias symbol.
17340         In C++, define a namespaced alias symbol.
17341         * modules/sys_stat (Depends-on): Add c++defs.
17342         (Makefile.am): Update sys/stat.h rule.
17343
17344         sys_socket: Avoid #define replacements in C++ mode.
17345         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17346         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17347         definitions also when the system has a <sys/socket.h>.
17348         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17349         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17350         In C++, define a namespaced alias symbol.
17351         * modules/sys_socket (Depends-on): Add c++defs.
17352         (Makefile.am): Update sys/socket.h rule.
17353
17354         sys_select: Avoid #define replacements in C++ mode.
17355         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17356         definitions also when the system has a <sys/select.h>.
17357         (select): In C++, define a namespaced alias symbol.
17358         * modules/sys_select (Depends-on): Add c++defs.
17359         (Makefile.am): Update sys/select.h rule.
17360
17361         sys_ioctl: Avoid #define replacements in C++ mode.
17362         * lib/sys_ioctl.in.h: Include c++defs.h.
17363         (ioctl): In C++, define a namespaced alias symbol.
17364         * modules/sys_ioctl (Depends-on): Add c++defs.
17365         (Makefile.am): Update sys/ioctl.h rule.
17366
17367         string: Avoid #define replacements in C++ mode.
17368         * lib/string.in.h: Include c++defs.h.
17369         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17370         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17371         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17372         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17373         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17374         * modules/string (Depends-on): Add c++defs.
17375         (Makefile.am): Update string.h rule.
17376
17377         stdlib: Avoid #define replacements in C++ mode.
17378         * lib/stdlib.in.h: Include c++defs.h.
17379         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17380         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17381         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17382         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17383         symbol.
17384         * modules/stdlib (Depends-on): Add c++defs.
17385         (Makefile.am): Update stdlib.h rule.
17386
17387         stdio: Avoid #define replacements in C++ mode.
17388         * lib/stdio.in.h: Include c++defs.h.
17389         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17390         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17391         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17392         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17393         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17394         namespaced alias symbol.
17395         * modules/stdio (Depends-on): Add c++defs.
17396         (Makefile.am): Update stdio.h rule.
17397
17398         spawn: Avoid #define replacements in C++ mode.
17399         * lib/spawn.in.h: Include c++defs.h.
17400         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17401         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17402         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17403         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17404         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17405         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17406         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17407         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17408         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17409         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17410         In C++, define a namespaced alias symbol.
17411         * modules/spawn (Depends-on): Add c++defs.
17412         (Makefile.am): Update spawn.h rule.
17413
17414         signal: Avoid #define replacements in C++ mode.
17415         * lib/signal.in.h: Include c++defs.h.
17416         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17417         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17418         namespaced alias symbol.
17419         * modules/signal (Depends-on): Add c++defs.
17420         (Makefile.am): Update signal.h rule.
17421
17422         search: Avoid #define replacements in C++ mode.
17423         * lib/search.in.h: Include c++defs.h.
17424         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17425         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17426         symbol.
17427         * modules/search (Depends-on): Add c++defs.
17428         (Makefile.am): Update search.h rule.
17429
17430         math: Avoid #define replacements in C++ mode.
17431         * lib/math.in.h: Include c++defs.h.
17432         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17433         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17434         trunc, truncl): In C++, define a namespaced alias symbol.
17435         * modules/math (Depends-on): Add c++defs.
17436         (Makefile.am): Update math.h rule.
17437
17438         locale: Avoid #define replacements in C++ mode.
17439         * lib/locale.in.h: Include c++defs.h.
17440         (duplocale): In C++, define a namespaced alias symbol.
17441         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17442         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17443         * modules/locale (Depends-on): Add c++defs.
17444         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17445
17446         langinfo: Avoid #define replacements in C++ mode.
17447         * lib/langinfo.in.h: Include c++defs.h.
17448         (nl_langinfo): In C++, define a namespaced alias symbol.
17449         * modules/langinfo (Depends-on): Add c++defs.
17450         (Makefile.am): Update langinfo.h rule.
17451
17452         iconv-h: Avoid #define replacements in C++ mode.
17453         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17454         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17455         symbol.
17456         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17457         whenever iconv is present.
17458         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17459         (Makefile.am): Update iconv.h rule.
17460
17461         glob: Avoid #define replacements in C++ mode.
17462         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17463         (_gl_glob_errfunc_fn): New type.
17464         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17465         symbol.
17466         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17467         (Makefile.am): Update glob.h rule.
17468
17469         fcntl-h: Avoid #define replacements in C++ mode.
17470         * lib/fcntl.in.h: Include c++defs.h.
17471         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17472         * modules/fcntl-h (Depends-on): Add c++defs.
17473         (Makefile.am): Update fcntl.h rule.
17474
17475         dirent: Avoid #define replacements in C++ mode.
17476         * lib/dirent.in.h: Include c++defs.h.
17477         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17478         namespaced alias symbol.
17479         (dirfd): Update declaration.
17480         * modules/dirent (Depends-on): Add c++defs.
17481         (Makefile.am): Update dirent.h rule.
17482
17483         ctype: Make it usable in C++ code.
17484         * lib/ctype.in.h: Include c++defs.h.
17485         (isblank): Declare as extern "C".
17486         * modules/ctype (Depends-on): Add c++defs.
17487         (Makefile.am): Update ctype.h rule.
17488
17489         New module 'c++defs'.
17490         * modules/c++defs: New file.
17491         * build-aux/c++defs.h: New file.
17492         Reported by John W. Eaton <jwe@gnu.org>.
17493
17494 2010-03-07  Bruno Haible  <bruno@clisp.org>
17495
17496         logb: Provide missing declaration for Cygwin.
17497         * lib/math.in.h (logb): New declaration.
17498         * m4/logb.m4: New file.
17499         * modules/logb (Files): Add m4/logb.m4.
17500         (Depends-on): Add math.
17501         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17502         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17503         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17504         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17505         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17506
17507 2010-03-07  Bruno Haible  <bruno@clisp.org>
17508
17509         Fix test-cond link error.
17510         * tests/test-cond.c: Include <stdio.h>.
17511
17512 2010-03-07  Bruno Haible  <bruno@clisp.org>
17513
17514         Fix test-dirent-safer link error.
17515         * modules/dirent-safer-tests (Makefile.am): Define
17516         test_dirent_safer_LDADD.
17517
17518 2010-03-07  Bruno Haible  <bruno@clisp.org>
17519
17520         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
17521         among default module list.
17522
17523 2010-03-07  Bruno Haible  <bruno@clisp.org>
17524
17525         Fix link error on platforms with GNU libiconv.
17526         * modules/unistr/u8-strcoll-tests (Makefile): Define
17527         test_u8_strcoll_LDADD.
17528         * modules/unistr/u16-strcoll-tests (Makefile): Define
17529         test_u16_strcoll_LDADD.
17530         * modules/unistr/u32-strcoll-tests (Makefile): Define
17531         test_u32_strcoll_LDADD.
17532
17533 2010-03-07  Bruno Haible  <bruno@clisp.org>
17534
17535         Use POSIX declarations for socket functions.
17536         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
17537         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
17538         rpl_sendto): Change declaration to match POSIX.
17539         * lib/connect.c (rpl_connect): Likewise.
17540         * lib/accept.c (rpl_accept): Likewise.
17541         * lib/bind.c (rpl_bind): Likewise.
17542         * lib/getpeername.c (rpl_getpeername): Likewise.
17543         * lib/getsockname.c (rpl_getsockname): Likewise.
17544         * lib/recv.c (rpl_recv): Likewise.
17545         * lib/send.c (rpl_send): Likewise.
17546         * lib/recvfrom.c (rpl_recvfrom): Likewise.
17547         * lib/sendto.c (rpl_sendto): Likewise.
17548
17549 2010-03-06  Bruno Haible  <bruno@clisp.org>
17550
17551         Clarify access, euidaccess, faccessat.
17552         * doc/posix-functions/faccessat.texi: Mention security problem under
17553         "Other problems", not "Portability problems".
17554         * doc/posix-functions/access.texi: Likewise. Mention a related security
17555         problem.
17556         * doc/glibc-functions/euidaccess.texi: Mention security problems.
17557         * lib/euidaccess.c: Add comments about platforms.
17558         * lib/unistd.in.h (access, euidaccess): Add warnings.
17559
17560 2010-03-07  Bruno Haible  <bruno@clisp.org>
17561
17562         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
17563         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
17564         (POSIX_SPAWN_SETSCHEDULER): Likewise.
17565         (POSIX_SPAWN_USEVFORK): Define in a way that works when
17566         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17567         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
17568         declare when POSIX_SPAWN_SETSCHEDULER is zero.
17569         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
17570         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
17571         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
17572         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
17573         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
17574         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
17575         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
17576         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17577         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17578         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
17579         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
17580         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
17581         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
17582         Likewise.
17583         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
17584         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
17585         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
17586         Likewise.
17587         * tests/test-spawn.c (main): Make it work when
17588         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17589
17590 2010-03-07  Bruno Haible  <bruno@clisp.org>
17591
17592         Fix incorrect Makefile.am generation in German locale.
17593         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17594         Execute sed command with character range in C locale.
17595
17596 2010-03-06  Bruno Haible  <bruno@clisp.org>
17597
17598         Tests for module 'iconv-h'.
17599         * modules/iconv-h-tests: New file.
17600         * tests/test-iconv-h.c: New file.
17601
17602         New module 'iconv-h'.
17603         * modules/iconv-h: New file.
17604         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
17605         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
17606         (configure.ac): Remove gl_ICONV_H.
17607         (Makefile.am): Remove rule for iconv.h.
17608
17609 2010-03-06  Bruno Haible  <bruno@clisp.org>
17610
17611         More consistent naming of *.m4 files.
17612         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
17613         * modules/wctype (Files): Update.
17614
17615         More consistent naming of *.m4 files.
17616         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
17617         * modules/wchar (Files): Update.
17618
17619 2010-03-06  Jim Meyering  <meyering@redhat.com>
17620
17621         euidaccess: relax license to LGPLv2+
17622         * modules/euidaccess (License): Relax to LGPLv2+.
17623
17624 2010-03-06  Bruno Haible  <bruno@clisp.org>
17625
17626         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
17627         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
17628         (Makefile.am): Augment lib_SOURCES instead.
17629
17630 2010-03-04  Jim Meyering  <meyering@redhat.com>
17631
17632         utime: remove obsolete module
17633         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
17634         unnecessary for years, and has been marked as obsolete for 10 months.
17635         * modules/utime: Remove file.
17636         * lib/utime.c: Remove file.
17637         * m4/utime.m4: Remove file.
17638         * m4/utimes-null.m4: Remove file.
17639         * doc/posix-functions/utime.texi (utime): Remove reference to
17640         the module.  Move the sole "fixed by gnulib" item into the
17641         "problems not fixed by Gnulib" list.
17642         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
17643
17644 2010-03-05  Simon Josefsson  <simon@josefsson.org>
17645
17646         * modules/exit (License): Relax license to LGPLv2+.
17647         (Status): Mark as obsolete.
17648         * NEWS: Mention deprecated 'exit' module.
17649         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
17650         of now obsolete 'exit'.
17651
17652 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17653
17654         fts-lgpl: remove unused module
17655         * modules/fts-lgpl: Remove.
17656         * MODULES.html.sh (func_all_modules): Adjust.
17657         * check-module (find_included_lib_files): Adjust.
17658         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
17659
17660 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
17661
17662         copy-acl: enhance Solaris ACL error handling
17663         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
17664         * lib/set-mode-acl.c (qset_acl): Likewise.
17665
17666 2010-03-02  Bruno Haible  <bruno@clisp.org>
17667
17668         spawn: Don't override the system defined values on FreeBSD 8.
17669         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
17670         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
17671         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
17672         if HAVE_POSIX_SPAWN is 1.
17673         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
17674
17675 2010-03-01  Bruno Haible  <bruno@clisp.org>
17676
17677         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
17678         regarding Automake.
17679
17680 2010-02-25  Bruno Haible  <bruno@clisp.org>
17681
17682         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
17683         * gnulib-tool: Define 'echo' as a function only before the ksh alias
17684         setting, not afterwards.
17685         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17686
17687 2010-02-24  Eric Blake  <eblake@redhat.com>
17688
17689         bootstrap, git-version-gen: use timestamp
17690         * build-aux/git-version-gen (scriptversion): Force UTC.
17691         * build-aux/bootstrap (scriptversion): New variable.
17692
17693         bootstrap: allow older git
17694         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17695         older than 1.6.4.  Requested by the libvirt project.
17696
17697 2010-02-23  Eric Blake  <eblake@redhat.com>
17698
17699         warn-on-use: work with old autoconf
17700         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17701         AS_VAR semantics of autoconf 2.60.
17702         Reported by Bruno Haible.
17703
17704         bootstrap: improve some comments
17705         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17706         clarification comments.
17707
17708         gettimeofday: provide correct function
17709         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17710         when replacement is declared, otherwise provide gettimeofday.
17711         Reported by Michael Goffioul.
17712
17713 2010-02-23  Jim Meyering  <meyering@redhat.com>
17714
17715         lib-ignore: relax license to "unlimited", not LGPLv2+
17716         * modules/lib-ignore (License): Relax to "unlimited".
17717
17718 2010-02-23  Jim Meyering  <meyering@redhat.com>
17719
17720         lib-ignore: relax license to LGPLv2+
17721         * modules/lib-ignore (License): Relax to LGPLv2+.
17722
17723 2010-02-22  Eric Blake  <eblake@redhat.com>
17724
17725         lseek: avoid bash 3.2 broken pipe bug
17726         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17727         warning from bash 3.2.
17728         Reported by Ben Pfaff, with analysis from Bruno Haible.
17729
17730         bootstrap: support non-FSF copyright holder
17731         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17732         bootstrap.conf override of COPYRIGHT_HOLDER.
17733         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17734
17735         bootstrap: interoperate with gettext 0.14.1
17736         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17737
17738         bootstrap: allow for alternate submodule location
17739         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17740         hardcoding submodule location.
17741         (gnulib_mk): Allow direct use of Makefile.am.
17742
17743         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17744         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17745         rather than reconfiguring where the submodule points.
17746
17747         gettimeofday: restore support for platforms that lack function
17748         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17749         replacement if function is missing.
17750         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17751         * modules/sys_time (Makefile.am): Substitute it.
17752         * lib/sys_time.in.h (gettimeofday): Check it.
17753         Reported by Michael Goffioul.
17754
17755 2010-02-21  Bruno Haible  <bruno@clisp.org>
17756
17757         * lib/stdio.in.h (obstack_printf): Fix typo.
17758
17759 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17760
17761         vc-list-files: use bzr ls's -R option
17762         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17763         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17764
17765 2010-02-21  Jim Meyering  <meyering@redhat.com>
17766
17767         init.sh: fix EXEEXT shims to work also for names like test-prog
17768         * tests/init.sh: Re-exec a better shell, when needed.
17769         If the current shell lacks support for posix $(...), an init.sh-using
17770         test will now try to find a shell that supports that.  If EXEEXT is
17771         nonempty, we also require support for hyphen-in-alias-name and shell
17772         substitutions like ${var#glob}.  Failure to find such a shell results
17773         in a skipped test.
17774
17775 2010-02-21  Bruno Haible  <bruno@clisp.org>
17776
17777         Really work around around "broken pipe" error message from bash 3.2.
17778         * gnulib-tool (func_reset_sigpipe): Remove function.
17779         (echo): In bash 3.2, define to a function that uses printf.
17780         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17781
17782 2010-02-20  Bruno Haible  <bruno@clisp.org>
17783
17784         Restore support for automake 1.9.6 with autoconf 2.61.
17785         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17786         Reported by James Youngman <jay@gnu.org>.
17787
17788 2010-02-20  Bruno Haible  <bruno@clisp.org>
17789
17790         Improve *printf warning condition.
17791         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17792         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
17793         and the function is overridden due to SIGPIPE emulation.
17794
17795 2010-02-20  Bruno Haible  <bruno@clisp.org>
17796
17797         * lib/stdio.in.h: Tweak comments.
17798
17799 2010-02-19  Bruno Haible  <bruno@clisp.org>
17800
17801         Make it easier to find modules. New gnulib-tool option '--find'.
17802         * gnulib-tool: New option --find.
17803         (func_usage): Document it.
17804         (func_sanitize_modulelist): New function, extracted from
17805         func_all_modules.
17806         (func_all_modules): Invoke it.
17807         * doc/gnulib-tool.texi (Which modules?): New node.
17808
17809 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
17810
17811         * lib/sys_select.in.h: Provide select replacement even if
17812         sys/select.h exists on a system, for Interix.
17813
17814 2010-02-18  Jim Meyering  <meyering@redhat.com>
17815
17816         init.sh: don't use $(...) just yet
17817         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
17818         to accommodate e.g., Solaris' /bin/sh.
17819
17820 2010-02-17  Bruno Haible  <bruno@clisp.org>
17821
17822         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
17823         Reported by Ludovic Courtès <ludo@gnu.org>.
17824
17825 2010-02-16  Simon Josefsson  <simon@josefsson.org>
17826
17827         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
17828         linking with -lintl.
17829
17830 2010-02-17  Simon Josefsson  <simon@josefsson.org>
17831
17832         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
17833         if not provided by the system's netdb.h.  Reported by
17834         ludo@gnu.org (Ludovic Courtès).
17835
17836 2010-02-15  Jim Meyering  <meyering@redhat.com>
17837
17838         init.sh: improve portability and efficiency
17839         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
17840         "dummy" in a for loop.
17841         Use '!', not '^' to select the complement of a character set used
17842         in a "case" statement.
17843         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
17844         Suggestions from Eric Blake.
17845
17846         init.sh: automatically accommodate programs with the .exe suffix
17847         Automatically arrange for an invocation of "prog" to execute the
17848         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
17849         may use the simpler "prog", yet still work when built on a system
17850         that requires specifying the added suffix.
17851         Do this by constructing a function named "prog" that invokes
17852         "prog.exe" for each .exe file in selected directories.
17853         * tests/init.sh (find_exe_basenames_): New function.
17854         (create_exe_shim_functions_): New function.
17855         (path_prepend_): Use it.
17856
17857         maint.mk: mark syntax-check sc_*.m rules as .PHONY
17858         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
17859         "make -t syntax-check" doesn't create a ton of sc_*.m files.
17860
17861 2010-02-14  Jim Meyering  <meyering@redhat.com>
17862
17863         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
17864         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
17865         (sc_prohibit_hash_pjw_without_use): New rule.
17866
17867         maint.mk: allow the default upload destination dir to be overridden
17868         * top/maint.mk (upload_dest_dir_): Define with a default that
17869         preserves the status quo.
17870         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
17871         Reported by Peter Simons.
17872
17873         maint.mk: prohibit inclusion of "hash.h" without_use
17874         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
17875
17876 2010-02-10  Jim Meyering  <meyering@redhat.com>
17877
17878         maint.mk: prohibit inclusion of "ignore-value.h" without_use
17879         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
17880
17881 2010-02-09  Eric Blake  <ebb9@byu.net>
17882         and Bruno Haible  <bruno@clisp.org>
17883
17884         obstack-printf-posix: ensure declaration
17885         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
17886         extracted from gl_FUNC_OBSTACK_PRINTF.
17887         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
17888         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
17889         Likewise.
17890         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
17891         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
17892         0.
17893
17894 2010-02-08  Bruno Haible  <bruno@clisp.org>
17895
17896         gnulib-tool: Fix typo in 2010-02-07 commit.
17897         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
17898         Reported by Eric Blake.
17899
17900 2010-02-07  Bruno Haible  <bruno@clisp.org>
17901
17902         gnulib-tool: Fix up caching patches.
17903         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
17904         option --no-cache. Use associative arrays when supported by the shell.
17905         (sed_comments): New variable.
17906         (modcache): Renamed from do_cache.
17907         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
17908         abbreviate unnecessarily.
17909         (have_associative): New variable.
17910         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
17911         way also for ksh and zsh.
17912         (func_init_sed_convert_to_cache_statements): New function, extracted
17913         from func_cache_lookup_module. Add support for associative arrays.
17914         Don't set the c_MODULE_cached variable here. Ignore all lines before
17915         the first field header. Remove only the final newline, not all trailing
17916         newlines. Support empty fields correctly. Limit the use of 'eval' to
17917         assignments.
17918         (func_get_description, func_get_status, func_get_notice,
17919         func_get_applicability, func_get_filelist, func_get_dependencies,
17920         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
17921         func_get_automake_snippet, func_get_include_directive,
17922         func_get_link_directive, func_get_license, func_get_maintainer):
17923         Update documentation. List the unoptimized code first. Add support for
17924         associative arrays. Limit the use of 'eval' to assignments.
17925         (func_get_applicability): Undo stylistic pessimisations.
17926         (func_get_automake_snippet, func_get_include_directive): Reduce code
17927         duplication.
17928         (func_modules_transitive_closure, func_modules_add_dummy,
17929         func_modules_notice, func_modules_to_filelist, func_add_file,
17930         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
17931         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
17932         func_create_testdir, func_create_megatestdir): Update documentation.
17933
17934 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17935
17936         * gnulib-tool (func_cache_lookup_module): Store the module name
17937         belonging to the cache variable; error out if two different
17938         module names map to the same cache variable name.
17939
17940 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17941
17942         gnulib-tool: Make caching optional.
17943         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
17944         Update matching short versions of --no-changelog.
17945         (func_usage): Update.
17946         (sed_extract_cache_prog): Renamed from ...
17947         (sed_extract_prog): ... this; revert to old extraction script.
17948         (func_get_description, func_get_status)
17949         (func_get_notice, func_get_applicability, func_get_filelist)
17950         (func_get_dependencies, func_get_autoconf_early_snippet)
17951         (func_get_autoconf_snippet, func_get_automake_snippet)
17952         (func_get_include_directive, func_get_link_directive)
17953         (func_get_license, func_get_maintainer): If $do_cache is false,
17954         use old, non-caching extraction scripts.
17955         Suggestion by Bruno Haible.
17956
17957 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17958
17959         gnulib-tool: cache module metainformation.
17960         * gnulib-tool (sed_extract_prog): Match newline before each
17961         header, and rewrite header to a shell variable suffix.
17962         (func_cache_var, func_cache_lookup_module): New functions,
17963         to turn a module name into a cache variable prefix, and to
17964         look up and cache module metainformation.
17965         (func_get_description, func_get_status)
17966         (func_get_notice, func_get_applicability, func_get_filelist)
17967         (func_get_dependencies, func_get_autoconf_early_snippet)
17968         (func_get_autoconf_snippet, func_get_automake_snippet)
17969         (func_get_include_directive, func_get_link_directive)
17970         (func_get_license, func_get_maintainer): Use
17971         func_cache_lookup_module.
17972
17973 2010-02-07  Bruno Haible  <bruno@clisp.org>
17974
17975         fnctl: Fix missing dependency.
17976         * modules/fcntl (Depends-on): Add getdtablesize.
17977         Reported by John W. Eaton <jwe@gnu.org>.
17978
17979 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17980
17981         Argp: fix recognition of short alias options.
17982
17983         * lib/argp-parse.c (convert_options): Fix improper use of
17984         `|' between character values.
17985         * tests/test-argp.c (group1_option): New alias option
17986         --read (-r).
17987         (group1_parser): Special handling for 'r'.
17988         (test15): New test case.
17989         (test_fun): Add test15.
17990         * tests/test-argp-2.sh: Update expected --help and --usage
17991         outputs.
17992
17993 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17994
17995         * tests/test-argp.c: Fix indentation.
17996
17997 2010-02-04  Eric Blake  <ebb9@byu.net>
17998
17999         gettimeofday: expose type of second argument
18000         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18001         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18002         * tests/test-gettimeofday.c: Use it to silence warning.
18003         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18004         the issue.
18005
18006 2010-02-03  Jim Meyering  <meyering@redhat.com>
18007
18008         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18009         * lib/regcomp.c (TYPE_SIGNED): Define.
18010         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18011
18012         regcomp.c: avoid a new -Wshadow warning
18013         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18014
18015 2010-02-01  Jim Meyering  <meyering@redhat.com>
18016
18017         removing useless parentheses in cpp #define directives
18018         For motivation, see commit c0221df4, "define STREQ(a,b)
18019         consistently, removing useless parentheses"
18020         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18021         * lib/mountlist.c (MNT_IGNORE): Likewise.
18022         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18023
18024 2010-02-01  Eric Blake  <ebb9@byu.net>
18025
18026         sys_time: use link-warning
18027         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18028         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18029         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18030         * modules/sys_time (Depends-on): Add warn-on-use.
18031         (Makefile.am): Always build replacement.
18032         (configure.ac): Update substitutions.
18033         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18034         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18035         bother with SYS_TIME_H.
18036         * modules/gettimeofday (configure.ac): Declare indicator.
18037         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18038         in use.
18039
18040         closein-tests: silence compiler warning
18041         * tests/test-closein.c (main): Ignore fread result.
18042         * modules/closein-tests (Depends-on): Add ignore-value.
18043
18044         tests: silence warning about system return
18045         * tests/test-areadlink-with-size.c (main): Ignore system result.
18046         * tests/test-areadlink.c (main): Likewise.
18047         * tests/test-areadlinkat-with-size.c (main): Likewise.
18048         * tests/test-areadlinkat.c (main): Likewise.
18049         * tests/test-canonicalize-lgpl.c (main): Likewise.
18050         * tests/test-canonicalize.c (main): Likewise.
18051         * tests/test-chown.c (main): Likewise.
18052         * tests/test-fchownat.c (main): Likewise.
18053         * tests/test-fdutimensat.c (main): Likewise.
18054         * tests/test-fstatat.c (main): Likewise.
18055         * tests/test-futimens.c (main): Likewise.
18056         * tests/test-lchown.c (main): Likewise.
18057         * tests/test-link.c (main): Likewise.
18058         * tests/test-linkat.c (main): Likewise.
18059         * tests/test-lstat.c (main): Likewise.
18060         * tests/test-mkdir.c (main): Likewise.
18061         * tests/test-mkdirat.c (main): Likewise.
18062         * tests/test-mkfifo.c (main): Likewise.
18063         * tests/test-mkfifoat.c (main): Likewise.
18064         * tests/test-mknod.c (main): Likewise.
18065         * tests/test-readlink.c (main): Likewise.
18066         * tests/test-remove.c (main): Likewise.
18067         * tests/test-rename.c (main): Likewise.
18068         * tests/test-renameat.c (main): Likewise.
18069         * tests/test-rmdir.c (main): Likewise.
18070         * tests/test-symlink.c (main): Likewise.
18071         * tests/test-symlinkat.c (main): Likewise.
18072         * tests/test-unlink.c (main): Likewise.
18073         * tests/test-unlinkat.c (main): Likewise.
18074         * tests/test-utimens.c (main): Likewise.
18075         * tests/test-utimensat.c (main): Likewise.
18076         * modules/areadlink-tests (Depends-on): Add ignore-value.
18077         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18078         * modules/areadlinkat-tests (Depends-on): Likewise.
18079         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18080         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18081         * modules/canonicalize-tests (Depends-on): Likewise.
18082         * modules/chown-tests (Depends-on): Likewise.
18083         * modules/fdutimensat-tests (Depends-on): Likewise.
18084         * modules/futimens-tests (Depends-on): Likewise.
18085         * modules/lchown-tests (Depends-on): Likewise.
18086         * modules/link-tests (Depends-on): Likewise.
18087         * modules/linkat-tests (Depends-on): Likewise.
18088         * modules/lstat-tests (Depends-on): Likewise.
18089         * modules/mkdir-tests (Depends-on): Likewise.
18090         * modules/mkfifo-tests (Depends-on): Likewise.
18091         * modules/mkfifoat-tests (Depends-on): Likewise.
18092         * modules/mknod-tests (Depends-on): Likewise.
18093         * modules/openat-tests (Depends-on): Likewise.
18094         * modules/readlink-tests (Depends-on): Likewise.
18095         * modules/remove-tests (Depends-on): Likewise.
18096         * modules/rename-tests (Depends-on): Likewise.
18097         * modules/renameat-tests (Depends-on): Likewise.
18098         * modules/rmdir-tests (Depends-on): Likewise.
18099         * modules/symlink-tests (Depends-on): Likewise.
18100         * modules/symlinkat-tests (Depends-on): Likewise.
18101         * modules/unlink-tests (Depends-on): Likewise.
18102         * modules/utimens-tests (Depends-on): Likewise.
18103         * modules/utimensat-tests (Depends-on): Likewise.
18104
18105 2010-01-31  Bruno Haible  <bruno@clisp.org>
18106
18107         Perform the same test for many <math.h> functions.
18108         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18109         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18110         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18111         of gl_MATHFUNC.
18112         * modules/acos (configure.ac): Likewise.
18113         * modules/asin (configure.ac): Likewise.
18114         * modules/atan (configure.ac): Likewise.
18115         * modules/atan2 (configure.ac): Likewise.
18116         * modules/cbrt (configure.ac): Likewise.
18117         * modules/copysign (configure.ac): Likewise.
18118         * modules/cos (configure.ac): Likewise.
18119         * modules/cosh (configure.ac): Likewise.
18120         * modules/erf (configure.ac): Likewise.
18121         * modules/erfc (configure.ac): Likewise.
18122         * modules/exp (configure.ac): Likewise.
18123         * modules/fmod (configure.ac): Likewise.
18124         * modules/hypot (configure.ac): Likewise.
18125         * modules/j0 (configure.ac): Likewise.
18126         * modules/j1 (configure.ac): Likewise.
18127         * modules/jn (configure.ac): Likewise.
18128         * modules/lgamma (configure.ac): Likewise.
18129         * modules/log (configure.ac): Likewise.
18130         * modules/log10 (configure.ac): Likewise.
18131         * modules/log1p (configure.ac): Likewise.
18132         * modules/pow (configure.ac): Likewise.
18133         * modules/remainder (configure.ac): Likewise.
18134         * modules/sin (configure.ac): Likewise.
18135         * modules/sinh (configure.ac): Likewise.
18136         * modules/tan (configure.ac): Likewise.
18137         * modules/tanh (configure.ac): Likewise.
18138         * modules/y0 (configure.ac): Likewise.
18139         * modules/y1 (configure.ac): Likewise.
18140         * modules/yn (configure.ac): Likewise.
18141         Suggested by Paolo Bonzini.
18142
18143 2010-01-31  Bruno Haible  <bruno@clisp.org>
18144
18145         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18146
18147 2010-01-31  Bruno Haible  <bruno@clisp.org>
18148
18149         Work around getdelim() bug on FreeBSD 8.0.
18150         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18151         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18152         not work.
18153         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18154         is 1.
18155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18156         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18157         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18158         a non-zero size.
18159         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18160
18161 2010-01-31  Bruno Haible  <bruno@clisp.org>
18162
18163         Work around getline() bug on FreeBSD 8.0.
18164         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18165         and a non-zero size.
18166         * tests/test-getline.c (main): Likewise.
18167         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18168         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18169
18170 2010-01-28  Eric Blake  <ebb9@byu.net>
18171
18172         regex: fix build failure
18173         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18174         platforms.
18175
18176 2010-01-28  Jim Meyering  <meyering@redhat.com>
18177
18178         regex: do not ignore memory allocation failure
18179         * lib/regex_internal.c (create_cd_newstate): Detect
18180         re_node_set_init_copy failure.   Extracted from glibc commit
18181         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18182
18183         regex: sync more white-space changes from libc
18184         * lib/regex_internal.c: White-space only changes.
18185         * lib/regexec.c: Likewise.
18186
18187         regex: add many uses of __attribute_warn_unused_result__
18188         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18189         * lib/regexec.c: Likewise.
18190         Extracted from a messy glibc commit.
18191
18192         regcomp.c: spelling and merge-artifact from glibc
18193         * lib/regcomp.c: Merge remainder of glibc's
18194         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18195
18196         regcomp.c: sync white-space changes from glibc
18197         * lib/regcomp.c: Merge to accommodate white space
18198         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18199
18200         regcomp.c: do not ignore internal return values
18201         * lib/regcomp.c: Do not ignore internal return values.
18202         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18203         but without its white-space changes and spelling fixes.
18204
18205         regex_internal.h: define __attribute_warn_unused_result__
18206         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18207
18208         maint: add a syntax-check rule to check for vulnerable Makefile.in
18209         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18210
18211 2010-01-27  Jim Meyering  <meyering@redhat.com>
18212
18213         ncftpput-ftp: clean up spaces
18214         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18215         Remove trailing blanks.
18216
18217 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18218
18219         * build-aux/git-version-gen: Fix copyright statement.
18220         * build-aux/gnupload: Likewise.
18221         * tests/test-arcfour.c: Likewise.
18222         * tests/test-arctwo.c: Likewise.
18223         * tests/test-count-one-bits.c: Likewise.
18224         * tests/test-crc.c: Likewise.
18225         * tests/test-des.c: Likewise.
18226         * tests/test-gc-arcfour.c: Likewise.
18227         * tests/test-gc-arctwo.c: Likewise.
18228         * tests/test-gc-des.c: Likewise.
18229         * tests/test-gc-hmac-md5.c: Likewise.
18230         * tests/test-gc-hmac-sha1.c: Likewise.
18231         * tests/test-gc-md2.c: Likewise.
18232         * tests/test-gc-md4.c: Likewise.
18233         * tests/test-gc-md5.c: Likewise.
18234         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18235         * tests/test-gc-rijndael.c: Likewise.
18236         * tests/test-gc-sha1.c: Likewise.
18237         * tests/test-gc.c: Likewise.
18238         * tests/test-gethostname.c: Likewise.
18239         * tests/test-gettimeofday.c: Likewise.
18240         * tests/test-hash.c: Likewise.
18241         * tests/test-hmac-md5.c: Likewise.
18242         * tests/test-hmac-sha1.c: Likewise.
18243         * tests/test-md2.c: Likewise.
18244         * tests/test-md4.c: Likewise.
18245         * tests/test-md5.c: Likewise.
18246         * tests/test-memchr.c: Likewise.
18247         * tests/test-memchr2.c: Likewise.
18248         * tests/test-memcmp.c: Likewise.
18249         * tests/test-memmem.c: Likewise.
18250         * tests/test-memrchr.c: Likewise.
18251         * tests/test-rawmemchr.c: Likewise.
18252         * tests/test-read-file.c: Likewise.
18253         * tests/test-rijndael.c: Likewise.
18254         * tests/test-sockets.c: Likewise.
18255         * tests/test-strchrnul.c: Likewise.
18256         * tests/test-strstr.c: Likewise.
18257         * tests/test-strtod.c: Likewise.
18258         * build-aux/ncftpput-ftp: Likewise.
18259
18260 2010-01-26  Eric Blake  <ebb9@byu.net>
18261
18262         ignore-value: update recommended header name
18263         * modules/ignore-value (Include): Only use <> for headers that
18264         exist in glibc.
18265
18266 2010-01-26  Jim Meyering  <meyering@redhat.com>
18267
18268         test-userspec.c: avoid compiler warnings
18269         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18270         and "initialization discards qualifiers..." warnings.
18271         Put the first "uid" in its own scope, and make char* members "const".
18272
18273 2010-01-25  Bruno Haible  <bruno@clisp.org>
18274
18275         gnulib-tool: Make warning diagnostics consistent.
18276         * gnulib-tool (func_warning): New function.
18277         Use it everywhere where gnulib-tool produces output to stderr and it is
18278         not a fatal error.
18279
18280 2010-01-25  Bruno Haible  <bruno@clisp.org>
18281
18282         Fix test dependencies.
18283         * modules/xstrtol-tests (Depends-on): Add inttypes.
18284         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18285
18286 2010-01-25 Pádraig Brady <P@draigBrady.com>
18287
18288         syntax-check: detect incorrect boolean macro values in config.h
18289         * modules/maintainer-makefile (configure.ac): Parameterize the location
18290         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18291         The logic is from Eric Blake and the location indicated by Jim Meyering.
18292         Note the more natural CONFIG_HEADER name is prohibited by automake
18293         for backwards compatibility reasons.
18294         * top/maint.mk (sc_Wundef_boolean): New rule.
18295
18296 2010-01-25  Jim Meyering  <meyering@redhat.com>
18297
18298         bootstrap: detect MacOS 10.6's shasum, too
18299         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18300         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18301
18302 2010-01-23  Jim Meyering  <meyering@redhat.com>
18303
18304         xstrtoll: new module
18305         * modules/xstrtoll: New file.
18306         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18307         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18308         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18309         ./configure fails if you use this module and lack "long long".
18310         * modules/xstrtoll-tests: New module.
18311         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18312         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18313         new init.sh-based test framework.
18314
18315 2010-01-24  Bruno Haible  <bruno@clisp.org>
18316
18317         Tests for module 'yn'.
18318         * modules/yn-tests: New file.
18319         * tests/test-yn.c: New file.
18320
18321         Tests for module 'y1'.
18322         * modules/y1-tests: New file.
18323         * tests/test-y1.c: New file.
18324
18325         Tests for module 'y0'.
18326         * modules/y0-tests: New file.
18327         * tests/test-y0.c: New file.
18328
18329         Tests for module 'tanh'.
18330         * modules/tanh-tests: New file.
18331         * tests/test-tanh.c: New file.
18332
18333         Tests for module 'tan'.
18334         * modules/tan-tests: New file.
18335         * tests/test-tan.c: New file.
18336
18337         Tests for module 'sqrt'.
18338         * modules/sqrt-tests: New file.
18339         * tests/test-sqrt.c: New file.
18340
18341         Tests for module 'sinh'.
18342         * modules/sinh-tests: New file.
18343         * tests/test-sinh.c: New file.
18344
18345         Tests for module 'sin'.
18346         * modules/sin-tests: New file.
18347         * tests/test-sin.c: New file.
18348
18349         Tests for module 'rint'.
18350         * modules/rint-tests: New file.
18351         * tests/test-rint.c: New file.
18352
18353         Tests for module 'remainder'.
18354         * modules/remainder-tests: New file.
18355         * tests/test-remainder.c: New file.
18356
18357         Tests for module 'pow'.
18358         * modules/pow-tests: New file.
18359         * tests/test-pow.c: New file.
18360
18361         Tests for module 'nextafter'.
18362         * modules/nextafter-tests: New file.
18363         * tests/test-nextafter.c: New file.
18364
18365         Tests for module 'modf'.
18366         * modules/modf-tests: New file.
18367         * tests/test-modf.c: New file.
18368
18369         Tests for module 'logb'.
18370         * modules/logb-tests: New file.
18371         * tests/test-logb.c: New file.
18372
18373         Tests for module 'log1p'.
18374         * modules/log1p-tests: New file.
18375         * tests/test-log1p.c: New file.
18376
18377         Tests for module 'log10'.
18378         * modules/log10-tests: New file.
18379         * tests/test-log10.c: New file.
18380
18381         Tests for module 'log'.
18382         * modules/log-tests: New file.
18383         * tests/test-log.c: New file.
18384
18385         Tests for module 'lgamma'.
18386         * modules/lgamma-tests: New file.
18387         * tests/test-lgamma.c: New file.
18388
18389         Tests for module 'ldexp'.
18390         * modules/ldexp-tests: New file.
18391         * tests/test-ldexp.c: New file.
18392
18393         Tests for module 'jn'.
18394         * modules/jn-tests: New file.
18395         * tests/test-jn.c: New file.
18396
18397         Tests for module 'j1'.
18398         * modules/j1-tests: New file.
18399         * tests/test-j1.c: New file.
18400
18401         Tests for module 'j0'.
18402         * modules/j0-tests: New file.
18403         * tests/test-j0.c: New file.
18404
18405         Tests for module 'hypot'.
18406         * modules/hypot-tests: New file.
18407         * tests/test-hypot.c: New file.
18408
18409         Tests for module 'fmod'.
18410         * modules/fmod-tests: New file.
18411         * tests/test-fmod.c: New file.
18412
18413         Tests for module 'fabs'.
18414         * modules/fabs-tests: New file.
18415         * tests/test-fabs.c: New file.
18416
18417         Tests for module 'exp'.
18418         * modules/exp-tests: New file.
18419         * tests/test-exp.c: New file.
18420
18421         Tests for module 'erfc'.
18422         * modules/erfc-tests: New file.
18423         * tests/test-erfc.c: New file.
18424
18425         Tests for module 'erf'.
18426         * modules/erf-tests: New file.
18427         * tests/test-erf.c: New file.
18428
18429         Tests for module 'cosh'.
18430         * modules/cosh-tests: New file.
18431         * tests/test-cosh.c: New file.
18432
18433         Tests for module 'cos'.
18434         * modules/cos-tests: New file.
18435         * tests/test-cos.c: New file.
18436
18437         Tests for module 'copysign'.
18438         * modules/copysign-tests: New file.
18439         * tests/test-copysign.c: New file.
18440
18441         Tests for module 'cbrt'.
18442         * modules/cbrt-tests: New file.
18443         * tests/test-cbrt.c: New file.
18444
18445         Tests for module 'atan2'.
18446         * modules/atan2-tests: New file.
18447         * tests/test-atan2.c: New file.
18448
18449         Tests for module 'atan'.
18450         * modules/atan-tests: New file.
18451         * tests/test-atan.c: New file.
18452
18453         Tests for module 'asin'.
18454         * modules/asin-tests: New file.
18455         * tests/test-asin.c: New file.
18456
18457         Tests for module 'acos'.
18458         * modules/acos-tests: New file.
18459         * tests/test-acos.c: New file.
18460
18461 2010-01-24  Bruno Haible  <bruno@clisp.org>
18462
18463         Fix tests for common <math.h> functions.
18464         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18465         code snippet that references the function pointer, rather than merely
18466         calling the function. Substitute the FUNC_LIBM variable.
18467         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18468         * modules/acos (configure.ac): Likewise.
18469         * modules/asin (configure.ac): Likewise.
18470         * modules/atan (configure.ac): Likewise.
18471         * modules/atan2 (configure.ac): Likewise.
18472         * modules/cbrt (configure.ac): Likewise.
18473         * modules/copysign (configure.ac): Likewise.
18474         * modules/cos (configure.ac): Likewise.
18475         * modules/cosh (configure.ac): Likewise.
18476         * modules/erf (configure.ac): Likewise.
18477         * modules/erfc (configure.ac): Likewise.
18478         * modules/exp (configure.ac): Likewise.
18479         * modules/fabs (configure.ac): Likewise.
18480         * modules/fmod (configure.ac): Likewise.
18481         * modules/hypot (configure.ac): Likewise.
18482         * modules/j0 (configure.ac): Likewise.
18483         * modules/j1 (configure.ac): Likewise.
18484         * modules/jn (configure.ac): Likewise.
18485         * modules/ldexp (configure.ac): Likewise.
18486         * modules/lgamma (configure.ac): Likewise.
18487         * modules/log (configure.ac): Likewise.
18488         * modules/log10 (configure.ac): Likewise.
18489         * modules/log1p (configure.ac): Likewise.
18490         * modules/logb (configure.ac): Likewise.
18491         * modules/modf (configure.ac): Likewise.
18492         * modules/nextafter (configure.ac): Likewise.
18493         * modules/pow (configure.ac): Likewise.
18494         * modules/remainder (configure.ac): Likewise.
18495         * modules/rint (configure.ac): Likewise.
18496         * modules/sin (configure.ac): Likewise.
18497         * modules/sinh (configure.ac): Likewise.
18498         * modules/tan (configure.ac): Likewise.
18499         * modules/tanh (configure.ac): Likewise.
18500         * modules/y0 (configure.ac): Likewise.
18501         * modules/y1 (configure.ac): Likewise.
18502         * modules/yn (configure.ac): Likewise.
18503
18504 2010-01-24  Bruno Haible  <bruno@clisp.org>
18505
18506         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18507         * tests/test-acosl.c (x): New variable.
18508         (main): Store argument in x and fetch it from x.
18509         * tests/test-asinl.c (x): New variable.
18510         (main): Store argument in x and fetch it from x.
18511         * tests/test-atanl.c (x): New variable.
18512         (main): Store argument in x and fetch it from x.
18513         * tests/test-cosl.c (x): New variable.
18514         (main): Store argument in x and fetch it from x.
18515         * tests/test-expl.c (x): New variable.
18516         (main): Store argument in x and fetch it from x.
18517         * tests/test-logl.c (x): New variable.
18518         (main): Store argument in x and fetch it from x.
18519         * tests/test-sinl.c (x): New variable.
18520         (main): Store argument in x and fetch it from x.
18521         * tests/test-sqrtl.c (x): New variable.
18522         (main): Store argument in x and fetch it from x.
18523         * tests/test-tanl.c (x): New variable.
18524         (main): Store argument in x and fetch it from x.
18525
18526 2010-01-24  Bruno Haible  <bruno@clisp.org>
18527
18528         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
18529         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
18530         assignments to the initial TESTS_ENVIRONMENT.
18531         * doc/gnulib.texi (Unit test modules): Document it.
18532         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
18533         TESTS_ENVIRONMENT.
18534         * modules/btowc-tests (Makefile.am): Likewise.
18535         * modules/c-stack-tests (Makefile.am): Likewise.
18536         * modules/c-strcase-tests (Makefile.am): Likewise.
18537         * modules/copy-file-tests (Makefile.am): Likewise.
18538         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
18539         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
18540         * modules/mbrtowc-tests (Makefile.am): Likewise.
18541         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18542         * modules/mbscasestr-tests (Makefile.am): Likewise.
18543         * modules/mbschr-tests (Makefile.am): Likewise.
18544         * modules/mbscspn-tests (Makefile.am): Likewise.
18545         * modules/mbsinit-tests (Makefile.am): Likewise.
18546         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18547         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
18548         * modules/mbspbrk-tests (Makefile.am): Likewise.
18549         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18550         * modules/mbsrchr-tests (Makefile.am): Likewise.
18551         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
18552         * modules/mbsspn-tests (Makefile.am): Likewise.
18553         * modules/mbsstr-tests (Makefile.am): Likewise.
18554         * modules/nl_langinfo-tests (Makefile.am): Likewise.
18555         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
18556         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18557         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18558         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18559         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18560         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
18561         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18562         * modules/wcrtomb-tests (Makefile.am): Likewise.
18563         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
18564         * modules/wcsrtombs-tests (Makefile.am): Likewise.
18565         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
18566         assignments from TESTS_ENVIRONMENT.
18567         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
18568         augmentation.
18569         * modules/argp-version-etc-tests (Makefile.am): Likewise.
18570         * modules/atexit-tests (Makefile.am): Likewise.
18571         * modules/binary-io-tests (Makefile.am): Likewise.
18572         * modules/closein-tests (Makefile.am): Likewise.
18573         * modules/dprintf-posix-tests (Makefile.am): Likewise.
18574         * modules/exclude-tests (Makefile.am): Likewise.
18575         * modules/fflush-tests (Makefile.am): Likewise.
18576         * modules/fpending-tests (Makefile.am): Likewise.
18577         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18578         * modules/freadahead-tests (Makefile.am): Likewise.
18579         * modules/freadptr-tests (Makefile.am): Likewise.
18580         * modules/freadseek-tests (Makefile.am): Likewise.
18581         * modules/fseek-tests (Makefile.am): Likewise.
18582         * modules/fseeko-tests (Makefile.am): Likewise.
18583         * modules/ftell-tests (Makefile.am): Likewise.
18584         * modules/ftello-tests (Makefile.am): Likewise.
18585         * modules/idpriv-drop-tests (Makefile.am): Likewise.
18586         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
18587         * modules/lseek-tests (Makefile.am): Likewise.
18588         * modules/parse-duration-tests (Makefile.am): Likewise.
18589         * modules/perror-tests (Makefile.am): Likewise.
18590         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
18591         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
18592         * modules/pipe-tests (Makefile.am): Likewise.
18593         * modules/pread-tests (Makefile.am): Likewise.
18594         * modules/printf-posix-tests (Makefile.am): Likewise.
18595         * modules/select-tests (Makefile.am): Likewise.
18596         * modules/sigpipe-tests (Makefile.am): Likewise.
18597         * modules/tsearch-tests (Makefile.am): Likewise.
18598         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
18599         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
18600         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18601         * modules/uniwidth/width-tests (Makefile.am): Likewise.
18602         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
18603         * modules/version-etc-tests (Makefile.am): Likewise.
18604         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18605         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18606         * modules/xalloc-die-tests (Makefile.am): Likewise.
18607         * modules/xprintf-posix-tests (Makefile.am): Likewise.
18608         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18609         * modules/xstrtol-tests (Makefile.am): Likewise.
18610         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18611         * modules/yesno-tests (Makefile.am): Likewise.
18612         Suggested by Jim Meyering.
18613
18614 2010-01-24  Bruno Haible  <bruno@clisp.org>
18615
18616         More documentation.
18617         * doc/gnulib.texi (Writing modules): New chapter.
18618         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
18619         the new chapter.
18620
18621 2010-01-24  Jim Meyering  <meyering@redhat.com>
18622
18623         maint.mk: do not prepend "./" after filtering
18624         * top/maint.mk (_prepend_srcdir_prefix): New variable
18625         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
18626         "./" when $(srcdir) is ".".
18627
18628         define STREQ(a,b) consistently, removing useless parentheses
18629         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
18630         since the only risk is that "a" or "b" contains an unparenthesized
18631         comma, but if either did that, STREQ would have 3 or more arguments.
18632         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
18633         * lib/fts.c (STREQ): Remove unnecessary parentheses.
18634         * lib/hash-triple.c (STREQ): Likewise.
18635         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
18636         * lib/getugroups.c (STREQ): Likewise.
18637
18638 2010-01-23  Jim Meyering  <meyering@redhat.com>
18639
18640         maint.mk: fix syntax-check in a non-srcdir build directory
18641         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
18642         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
18643
18644 2010-01-22  Jim Meyering  <meyering@redhat.com>
18645
18646         userspec: add unit tests
18647         * tests/test-userspec.c: New file.
18648         * modules/userspec-tests: Likewise.
18649
18650 2010-01-21  Jim Meyering  <meyering@redhat.com>
18651
18652         maint.mk: handle source file names containing "." robustly
18653         * top/maint.mk (_dot_escaped_srcdir): Define.
18654         (VC_LIST): Use it in LHS of sed substitution.
18655
18656 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
18657
18658         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
18659         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
18660         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
18661         from a non-srcdir build.
18662
18663 2010-01-20  Eric Blake  <ebb9@byu.net>
18664
18665         warn-on-use: use instead of link-warning
18666         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
18667         * modules/unistd (Depends-on, Makefile.am): Likewise.
18668         * modules/arpa_inet (Depends-on): Replace link-warning with
18669         warn-on-use.
18670         (Makefile.am): Update rules accordingly.
18671         * modules/ctype (Depends-on, Makefile.am): Likewise.
18672         * modules/dirent (Depends-on, Makefile.am): Likewise.
18673         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
18674         * modules/inttypes (Depends-on, Makefile.am): Likewise.
18675         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18676         * modules/locale (Depends-on, Makefile.am): Likewise.
18677         * modules/math (Depends-on, Makefile.am): Likewise.
18678         * modules/search (Depends-on, Makefile.am): Likewise.
18679         * modules/signal (Depends-on, Makefile.am): Likewise.
18680         * modules/spawn (Depends-on, Makefile.am): Likewise.
18681         * modules/stdlib (Depends-on, Makefile.am): Likewise.
18682         * modules/string (Depends-on, Makefile.am): Likewise.
18683         * modules/strings (Depends-on, Makefile.am): Likewise.
18684         * modules/sys_file (Depends-on, Makefile.am): Likewise.
18685         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
18686         * modules/sys_select (Depends-on, Makefile.am): Likewise.
18687         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
18688         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
18689         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18690         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18691         * modules/wchar (Depends-on, Makefile.am): Likewise.
18692         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18693         should be poisoned.
18694         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18695         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18696         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18697         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18698         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18699         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18700         * m4/math_h.m4 (gl_MATH_H): Likewise.
18701         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18702         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18703         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18704         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18705         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18706         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18707         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18708         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18709         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18710         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18711         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18712         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18713         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18714         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18715         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18716         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18717         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18718         GL_LINK_WARNING.
18719         * lib/ctype.in.h: Likewise.
18720         * lib/dirent.in.h: Likewise.
18721         * lib/fcntl.in.h: Likewise.
18722         * lib/inttypes.in.h: Likewise.
18723         * lib/langinfo.in.h: Likewise.
18724         * lib/locale.in.h: Likewise.
18725         * lib/math.in.h: Likewise.
18726         * lib/search.in.h: Likewise.
18727         * lib/signal.in.h: Likewise.
18728         * lib/spawn.in.h: Likewise.
18729         * lib/stdio.in.h: Likewise.
18730         * lib/stdlib.in.h: Likewise.
18731         * lib/string.in.h: Likewise.
18732         * lib/strings.in.h: Likewise.
18733         * lib/sys_file.in.h: Likewise.
18734         * lib/sys_ioctl.in.h: Likewise.
18735         * lib/sys_select.in.h: Likewise.
18736         * lib/sys_socket.in.h: Likewise.
18737         * lib/sys_stat.in.h: Likewise.
18738         * lib/sys_times.in.h: Likewise.
18739         * lib/sys_utsname.in.h: Likewise.
18740         * lib/unistd.in.h: Likewise.
18741         * lib/wchar.in.h: Likewise.
18742
18743 2010-01-20  Bruno Haible  <bruno@clisp.org>
18744
18745         Avoid duplicate -lm.
18746         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18747         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18748         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18749         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18750         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18751         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18752         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18753         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18754         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18755         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18756         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18757         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18758         Reported by Paolo Bonzini.
18759
18760 2010-01-19  Bruno Haible  <bruno@clisp.org>
18761
18762         langinfo, nl_langinfo: Relicense under LGPLv2+.
18763         * modules/langinfo (License): Change to LGPLv2+.
18764         * modules/nl_langinfo (License): Likewise.
18765         Patch by David Lutterkort <lutter@redhat.com>.
18766
18767 2010-01-19  Bruno Haible  <bruno@clisp.org>
18768
18769         Avoid compilation error with cc on OSF/1 5.1.
18770         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18771         statement, not before.
18772         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18773
18774 2010-01-18  Bruno Haible  <bruno@clisp.org>
18775
18776         Avoid a link error due to the __printf__ symbol.
18777         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18778         and 2.6.x.
18779         (__format__, __printf__): Remove definitions.
18780         * lib/argp-fmtstream.h: Likewise.
18781         * lib/argp.h: Likewise.
18782         * lib/error.h: Likewise.
18783         * lib/vasnprintf.h: Likewise.
18784         * lib/xprintf.h: Likewise.
18785         * lib/xvasprintf.h: Likewise.
18786         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18787
18788 2010-01-18  Bruno Haible  <bruno@clisp.org>
18789
18790         Tests for module 'tanl'.
18791         * modules/tanl-tests: New file.
18792         * tests/test-tanl.c: New file.
18793
18794         Tests for module 'sqrtl'.
18795         * modules/sqrtl-tests: New file.
18796         * tests/test-sqrtl.c: New file.
18797
18798         Tests for module 'sinl'.
18799         * modules/sinl-tests: New file.
18800         * tests/test-sinl.c: New file.
18801
18802         Tests for module 'logl'.
18803         * modules/logl-tests: New file.
18804         * tests/test-logl.c: New file.
18805
18806         Tests for module 'expl'.
18807         * modules/expl-tests: New file.
18808         * tests/test-expl.c: New file.
18809
18810         Tests for module 'cosl'.
18811         * modules/cosl-tests: New file.
18812         * tests/test-cosl.c: New file.
18813
18814         Tests for module 'atanl'.
18815         * modules/atanl-tests: New file.
18816         * tests/test-atanl.c: New file.
18817
18818         Tests for module 'asinl'.
18819         * modules/asinl-tests: New file.
18820         * tests/test-asinl.c: New file.
18821
18822         Tests for module 'acosl'.
18823         * modules/acosl-tests: New file.
18824         * tests/test-acosl.c: New file.
18825
18826         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18827         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18828         tanl): Use the standard gnulib idiom.
18829         * lib/cosl.c: Don't include trigl.c and sincosl.c.
18830         * lib/sinl.c: Likewise.
18831         * lib/tanl.c: Don't include trigl.c.
18832         (kernel_tanl): Make static.
18833         * lib/sincosl.c: Include trigl.h first.
18834         * lib/trigl.c: Likewise.
18835         * m4/acosl.m4: New file.
18836         * m4/asinl.m4: New file.
18837         * m4/atanl.m4: New file.
18838         * m4/cosl.m4: New file.
18839         * m4/expl.m4: New file.
18840         * m4/logl.m4: New file.
18841         * m4/sinl.m4: New file.
18842         * m4/sqrtl.m4: New file.
18843         * m4/tanl.m4: New file.
18844         * m4/mathl.m4: Remove file.
18845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
18846         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18847         Don't initialize GNULIB_MATHL.
18848         * modules/acosl: New file.
18849         * modules/asinl: New file.
18850         * modules/atanl: New file.
18851         * modules/cosl: New file.
18852         * modules/expl: New file.
18853         * modules/logl: New file.
18854         * modules/sinl: New file.
18855         * modules/sqrtl: New file.
18856         * modules/tanl: New file.
18857         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
18858         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
18859         substitute GNULIB_MATHL.
18860         * modules/mathl: Rewritten.
18861         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
18862         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
18863         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
18864         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
18865         * doc/posix-functions/expl.texi: Mention the 'expl' module.
18866         * doc/posix-functions/logl.texi: Mention the 'logl' module.
18867         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
18868         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
18869         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
18870
18871 2010-01-18  Bruno Haible  <bruno@clisp.org>
18872
18873         sqrt: Make gl_FUNC_SQRT requirable.
18874         * m4/sqrt.m4: New file.
18875         * modules/sqrt (Files): Add it.
18876         (configure.ac): Invoke gl_FUNC_SQRT.
18877
18878 2010-01-18  Bruno Haible  <bruno@clisp.org>
18879
18880         New modules for common <math.h> functions.
18881         * m4/mathfunc.m4: New file.
18882         * modules/acos: New file.
18883         * modules/asin: New file.
18884         * modules/atan: New file.
18885         * modules/atan2: New file.
18886         * modules/cbrt: New file.
18887         * modules/copysign: New file.
18888         * modules/cos: New file.
18889         * modules/cosh: New file.
18890         * modules/erf: New file.
18891         * modules/erfc: New file.
18892         * modules/exp: New file.
18893         * modules/fabs: New file.
18894         * modules/fmod: New file.
18895         * modules/hypot: New file.
18896         * modules/j0: New file.
18897         * modules/j1: New file.
18898         * modules/jn: New file.
18899         * modules/ldexp: New file.
18900         * modules/lgamma: New file.
18901         * modules/log: New file.
18902         * modules/log10: New file.
18903         * modules/log1p: New file.
18904         * modules/logb: New file.
18905         * modules/modf: New file.
18906         * modules/nextafter: New file.
18907         * modules/pow: New file.
18908         * modules/remainder: New file.
18909         * modules/rint: New file.
18910         * modules/sin: New file.
18911         * modules/sinh: New file.
18912         * modules/sqrt: New file.
18913         * modules/tan: New file.
18914         * modules/tanh: New file.
18915         * modules/y0: New file.
18916         * modules/y1: New file.
18917         * modules/yn: New file.
18918         * doc/posix-functions/acos.texi: Mention the 'acos' module.
18919         * doc/posix-functions/asin.texi: Mention the 'asin' module.
18920         * doc/posix-functions/atan.texi: Mention the 'atan' module.
18921         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
18922         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
18923         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
18924         * doc/posix-functions/cos.texi: Mention the 'cos' module.
18925         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
18926         * doc/posix-functions/erf.texi: Mention the 'erf' module.
18927         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
18928         * doc/posix-functions/exp.texi: Mention the 'exp' module.
18929         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
18930         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
18931         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
18932         * doc/posix-functions/j0.texi: Mention the 'j0' module.
18933         * doc/posix-functions/j1.texi: Mention the 'j1' module.
18934         * doc/posix-functions/jn.texi: Mention the 'jn' module.
18935         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
18936         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
18937         * doc/posix-functions/log.texi: Mention the 'log' module.
18938         * doc/posix-functions/log10.texi: Mention the 'log10' module.
18939         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
18940         * doc/posix-functions/logb.texi: Mention the 'logb' module.
18941         * doc/posix-functions/modf.texi: Mention the 'modf' module.
18942         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
18943         * doc/posix-functions/pow.texi: Mention the 'pow' module.
18944         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
18945         * doc/posix-functions/rint.texi: Mention the 'rint' module.
18946         * doc/posix-functions/sin.texi: Mention the 'sin' module.
18947         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
18948         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
18949         * doc/posix-functions/tan.texi: Mention the 'tan' module.
18950         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
18951         * doc/posix-functions/y0.texi: Mention the 'y0' module.
18952         * doc/posix-functions/y1.texi: Mention the 'y1' module.
18953         * doc/posix-functions/yn.texi: Mention the 'yn' module.
18954
18955 2010-01-18  Jim Meyering  <meyering@redhat.com>
18956
18957         ignore-value: relax license to LGPLv2+
18958         * modules/ignore-value (License): Relax to LGPLv2+.
18959
18960         getdate: don't leak when TZ contains two or more '"'s
18961         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
18962         double quote in TZ after the first one.
18963
18964         readtokens: do not leak internal token_lengths buffer
18965         * lib/readtokens.c (readtokens): Free the local, lengths,
18966         when the supplied "token_lengths" parameter is NULL.
18967
18968 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18969
18970         Fix a couple of missing LIBTHREAD link failures on AIX.
18971         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
18972         $(LIBTHREAD).
18973         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
18974
18975         Link test-poll against INET_PTON_LIB.
18976         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
18977         for inet_pton on Solaris 10.
18978
18979 2010-01-17  Bruno Haible  <bruno@clisp.org>
18980
18981         unistdio/*-sprintf: Fix typo in module description.
18982         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
18983         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
18984         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
18985         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
18986         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
18987         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
18988         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
18989         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18990
18991 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18992
18993         gnulib-tool: fix filelist for AIX, HP-UX ksh.
18994         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
18995         variables in shell case patterns, for AIX and HP-UX ksh.
18996
18997         Split large sed scripts, for HP-UX sed.
18998         * modules/stdio: Split sed scripts around 50 sed commands,
18999         to avoid HP-UX limit of 99 commands, in the near future.
19000         * modules/string: Likewise.
19001         * modules/unistd: Likewise.
19002
19003         gnulib-tool: avoid writing in the current directory.
19004         * gnulib-tool (func_emit_lib_Makefile_am)
19005         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19006         not in the current directory, so concurrent gnulib-tool
19007         instances do not interfere.
19008
19009 2010-01-16  Jim Meyering  <meyering@redhat.com>
19010
19011         doc: update users.txt
19012         * users.txt: Add grep.
19013         (diffutils, gzip): Update URLs.
19014
19015 2010-01-12  Bruno Haible  <bruno@clisp.org>
19016
19017         posix_spawn: Avoid test failure on Cygwin.
19018         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19019         characters.
19020         Reported by Simon Josefsson.
19021
19022 2010-01-12  Bruno Haible  <bruno@clisp.org>
19023
19024         * tests/test-cond.c (main): When skipping the test, show the reason.
19025
19026 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19027
19028         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19029
19030 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19031
19032         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19033         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19034
19035 2010-01-12  Eric Blake  <ebb9@byu.net>
19036
19037         build: guarantee AS_VAR_IF
19038         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19039         (gl_AS_VAR_IF): Move...
19040         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19041         Reported by Simon Josefsson.
19042
19043 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19044
19045         * lib/stdio.in.h: Fix typo.
19046
19047 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19048
19049         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19050         libgpg-error.
19051
19052 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19053
19054         * tests/test-xalloc-die.sh: Use $EXEEXT.
19055
19056 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19057             Bruno Haible  <bruno@clisp.org>
19058
19059         getlogin, getlogin_r: Avoid test failure.
19060         * tests/test-getlogin.c: Include <stdio.h>.
19061         (main): Skip the test when the function fails because stdin is not a
19062         tty.
19063         * tests/test-getlogin_r.c: Include <stdio.h>.
19064         (main): Skip the test when the function fails because stdin is not a
19065         tty.
19066
19067 2010-01-11  Eric Blake  <ebb9@byu.net>
19068
19069         tests: avoid more large file warnings
19070         * tests/test-fflush.c: Avoid warning about ftell use.
19071         * tests/test-fseek.c: Avoid warning about fseek use.
19072
19073 2010-01-10  Bruno Haible  <bruno@clisp.org>
19074
19075         nproc: Work better on Linux when /proc and /sys are not mounted.
19076         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19077         as lower bound when, on glibc/Linux systems,
19078         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19079         Suggested by Pádraig Brady <P@draigbrady.com>.
19080         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19081
19082         nproc: Refactor.
19083         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19084         extracted from num_processors.
19085         (num_processors): Call it.
19086
19087 2010-01-11  Jim Meyering  <meyering@redhat.com>
19088
19089         utimecmp: avoid new warning from upcoming gcc-4.5.0
19090         * lib/utimecmp.c (BILLION): Define using #define rather than an
19091         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19092
19093 2010-01-11  Eric Blake  <ebb9@byu.net>
19094
19095         math: add portability warnings for classification macros
19096         * modules/math (Depends-on): Add warn-on-use.
19097         (Makefile.am): Provide new substitutions.
19098         * m4/math_h.m4 (gl_MATH_H): Require inline.
19099         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19100         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19101         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19102         implement warnings.
19103
19104         unistd: warn on use of environ without module
19105         * modules/unistd (Depends-on): Add warn-on-use.
19106         (Makefile.am): Provide new substitutions.
19107         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19108         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19109
19110         stdio: warn on suspicious uses
19111         * modules/stdio (Depends-on): Add warn-on-use.
19112         (Makefile.am): Provide new substitutions.
19113         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19114         fseeko.
19115         * lib/stdio.in.h (gets): Always warn on use.
19116         (fseek, ftell): Adjust when warnings are issued, and honor
19117         _GL_NO_LARGE_FILES as a way to silence the warning.
19118         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19119         any warning about large file offsets.
19120         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19121         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19122         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19123         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19124         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19125         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19126         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19127         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19128
19129         warn-on-use: new module
19130         * modules/warn-on-use: New file.
19131         * build-aux/warn-on-use.h: Likewise.
19132         * m4/warn-on-use.m4: Likewise.
19133         * MODULES.html.sh (Support for building): Mention it.
19134
19135 2010-01-10  Bruno Haible  <bruno@clisp.org>
19136
19137         Tests for module 'unistr/u32-strdup'.
19138         * modules/unistr/u32-strdup-tests: New file.
19139         * tests/unistr/test-u32-strdup.c: New file.
19140
19141         Tests for module 'unistr/u16-strdup'.
19142         * modules/unistr/u16-strdup-tests: New file.
19143         * tests/unistr/test-u16-strdup.c: New file.
19144
19145         Tests for module 'unistr/u8-strdup'.
19146         * modules/unistr/u8-strdup-tests: New file.
19147         * tests/unistr/test-u8-strdup.c: New file.
19148         * tests/unistr/test-strdup.h: New file.
19149
19150         Tests for module 'unistr/u32-strncmp'.
19151         * modules/unistr/u32-strncmp-tests: New file.
19152         * tests/unistr/test-u32-strncmp.c: New file.
19153
19154         Tests for module 'unistr/u16-strncmp'.
19155         * modules/unistr/u16-strncmp-tests: New file.
19156         * tests/unistr/test-u16-strncmp.c: New file.
19157
19158         Tests for module 'unistr/u8-strncmp'.
19159         * modules/unistr/u8-strncmp-tests: New file.
19160         * tests/unistr/test-u8-strncmp.c: New file.
19161         * tests/unistr/test-strncmp.h: New file.
19162
19163         Tests for module 'unistr/u32-strcoll'.
19164         * modules/unistr/u32-strcoll-tests: New file.
19165         * tests/unistr/test-u32-strcoll.c: New file.
19166
19167         Tests for module 'unistr/u16-strcoll'.
19168         * modules/unistr/u16-strcoll-tests: New file.
19169         * tests/unistr/test-u16-strcoll.c: New file.
19170
19171         Tests for module 'unistr/u8-strcoll'.
19172         * modules/unistr/u8-strcoll-tests: New file.
19173         * tests/unistr/test-u8-strcoll.c: New file.
19174
19175         Tests for module 'unistr/u32-strcmp'.
19176         * modules/unistr/u32-strcmp-tests: New file.
19177         * tests/unistr/test-u32-strcmp.c: New file.
19178         * tests/unistr/test-u32-strcmp.h: New file.
19179
19180         Tests for module 'unistr/u16-strcmp'.
19181         * modules/unistr/u16-strcmp-tests: New file.
19182         * tests/unistr/test-u16-strcmp.c: New file.
19183         * tests/unistr/test-u16-strcmp.h: New file.
19184
19185         Tests for module 'unistr/u8-strcmp'.
19186         * modules/unistr/u8-strcmp-tests: New file.
19187         * tests/unistr/test-u8-strcmp.c: New file.
19188         * tests/unistr/test-u8-strcmp.h: New file.
19189         * tests/unistr/test-strcmp.h: New file.
19190
19191         Tests for module 'unistr/u32-strncat'.
19192         * modules/unistr/u32-strncat-tests: New file.
19193         * tests/unistr/test-u32-strncat.c: New file.
19194
19195         Tests for module 'unistr/u16-strncat'.
19196         * modules/unistr/u16-strncat-tests: New file.
19197         * tests/unistr/test-u16-strncat.c: New file.
19198
19199         Tests for module 'unistr/u8-strncat'.
19200         * modules/unistr/u8-strncat-tests: New file.
19201         * tests/unistr/test-u8-strncat.c: New file.
19202         * tests/unistr/test-strncat.h: New file.
19203
19204         Tests for module 'unistr/u32-strcat'.
19205         * modules/unistr/u32-strcat-tests: New file.
19206         * tests/unistr/test-u32-strcat.c: New file.
19207
19208         Tests for module 'unistr/u16-strcat'.
19209         * modules/unistr/u16-strcat-tests: New file.
19210         * tests/unistr/test-u16-strcat.c: New file.
19211
19212         Tests for module 'unistr/u8-strcat'.
19213         * modules/unistr/u8-strcat-tests: New file.
19214         * tests/unistr/test-u8-strcat.c: New file.
19215         * tests/unistr/test-strcat.h: New file.
19216
19217         Tests for module 'unistr/u32-stpncpy'.
19218         * modules/unistr/u32-stpncpy-tests: New file.
19219         * tests/unistr/test-u32-stpncpy.c: New file.
19220
19221         Tests for module 'unistr/u16-stpncpy'.
19222         * modules/unistr/u16-stpncpy-tests: New file.
19223         * tests/unistr/test-u16-stpncpy.c: New file.
19224
19225         Tests for module 'unistr/u8-stpncpy'.
19226         * modules/unistr/u8-stpncpy-tests: New file.
19227         * tests/unistr/test-u8-stpncpy.c: New file.
19228         * tests/unistr/test-stpncpy.h: New file.
19229
19230         Tests for module 'unistr/u32-strncpy'.
19231         * modules/unistr/u32-strncpy-tests: New file.
19232         * tests/unistr/test-u32-strncpy.c: New file.
19233
19234         Tests for module 'unistr/u16-strncpy'.
19235         * modules/unistr/u16-strncpy-tests: New file.
19236         * tests/unistr/test-u16-strncpy.c: New file.
19237
19238         Tests for module 'unistr/u8-strncpy'.
19239         * modules/unistr/u8-strncpy-tests: New file.
19240         * tests/unistr/test-u8-strncpy.c: New file.
19241         * tests/unistr/test-strncpy.h: New file.
19242
19243         Tests for module 'unistr/u32-stpcpy'.
19244         * modules/unistr/u32-stpcpy-tests: New file.
19245         * tests/unistr/test-u32-stpcpy.c: New file.
19246
19247         Tests for module 'unistr/u16-stpcpy'.
19248         * modules/unistr/u16-stpcpy-tests: New file.
19249         * tests/unistr/test-u16-stpcpy.c: New file.
19250
19251         Tests for module 'unistr/u8-stpcpy'.
19252         * modules/unistr/u8-stpcpy-tests: New file.
19253         * tests/unistr/test-u8-stpcpy.c: New file.
19254         * tests/unistr/test-stpcpy.h: New file.
19255
19256         Tests for module 'unistr/u32-strcpy'.
19257         * modules/unistr/u32-strcpy-tests: New file.
19258         * tests/unistr/test-u32-strcpy.c: New file.
19259
19260         Tests for module 'unistr/u16-strcpy'.
19261         * modules/unistr/u16-strcpy-tests: New file.
19262         * tests/unistr/test-u16-strcpy.c: New file.
19263
19264         Tests for module 'unistr/u8-strcpy'.
19265         * modules/unistr/u8-strcpy-tests: New file.
19266         * tests/unistr/test-u8-strcpy.c: New file.
19267         * tests/unistr/test-strcpy.h: New file.
19268
19269         Tests for module 'unistr/u32-strnlen'.
19270         * modules/unistr/u32-strnlen-tests: New file.
19271         * tests/unistr/test-u32-strnlen.c: New file.
19272
19273         Tests for module 'unistr/u16-strnlen'.
19274         * modules/unistr/u16-strnlen-tests: New file.
19275         * tests/unistr/test-u16-strnlen.c: New file.
19276
19277         Tests for module 'unistr/u8-strnlen'.
19278         * modules/unistr/u8-strnlen-tests: New file.
19279         * tests/unistr/test-u8-strnlen.c: New file.
19280         * tests/unistr/test-strnlen.h: New file.
19281
19282         Tests for module 'unistr/u32-strlen'.
19283         * modules/unistr/u32-strlen-tests: New file.
19284         * tests/unistr/test-u32-strlen.c: New file.
19285
19286         Tests for module 'unistr/u16-strlen'.
19287         * modules/unistr/u16-strlen-tests: New file.
19288         * tests/unistr/test-u16-strlen.c: New file.
19289
19290         Tests for module 'unistr/u8-strlen'.
19291         * modules/unistr/u8-strlen-tests: New file.
19292         * tests/unistr/test-u8-strlen.c: New file.
19293
19294         Tests for module 'unistr/u32-prev'.
19295         * modules/unistr/u32-prev-tests: New file.
19296         * tests/unistr/test-u32-prev.c: New file.
19297
19298         Tests for module 'unistr/u16-prev'.
19299         * modules/unistr/u16-prev-tests: New file.
19300         * tests/unistr/test-u16-prev.c: New file.
19301
19302         Tests for module 'unistr/u8-prev'.
19303         * modules/unistr/u8-prev-tests: New file.
19304         * tests/unistr/test-u8-prev.c: New file.
19305
19306         Tests for module 'unistr/u32-next'.
19307         * modules/unistr/u32-next-tests: New file.
19308         * tests/unistr/test-u32-next.c: New file.
19309
19310         Tests for module 'unistr/u16-next'.
19311         * modules/unistr/u16-next-tests: New file.
19312         * tests/unistr/test-u16-next.c: New file.
19313
19314         Tests for module 'unistr/u8-next'.
19315         * modules/unistr/u8-next-tests: New file.
19316         * tests/unistr/test-u8-next.c: New file.
19317
19318         Tests for module 'unistr/u32-strmbtouc'.
19319         * modules/unistr/u32-strmbtouc-tests: New file.
19320         * tests/unistr/test-u32-strmbtouc.c: New file.
19321
19322         Tests for module 'unistr/u16-strmbtouc'.
19323         * modules/unistr/u16-strmbtouc-tests: New file.
19324         * tests/unistr/test-u16-strmbtouc.c: New file.
19325
19326         Tests for module 'unistr/u8-strmbtouc'.
19327         * modules/unistr/u8-strmbtouc-tests: New file.
19328         * tests/unistr/test-u8-strmbtouc.c: New file.
19329
19330         Tests for module 'unistr/u32-strmblen'.
19331         * modules/unistr/u32-strmblen-tests: New file.
19332         * tests/unistr/test-u32-strmblen.c: New file.
19333
19334         Tests for module 'unistr/u16-strmblen'.
19335         * modules/unistr/u16-strmblen-tests: New file.
19336         * tests/unistr/test-u16-strmblen.c: New file.
19337
19338         Tests for module 'unistr/u8-strmblen'.
19339         * modules/unistr/u8-strmblen-tests: New file.
19340         * tests/unistr/test-u8-strmblen.c: New file.
19341
19342         Tests for module 'unistr/u32-cpy-alloc'.
19343         * modules/unistr/u32-cpy-alloc-tests: New file.
19344         * tests/unistr/test-u32-cpy-alloc.c: New file.
19345
19346         Tests for module 'unistr/u16-cpy-alloc'.
19347         * modules/unistr/u16-cpy-alloc-tests: New file.
19348         * tests/unistr/test-u16-cpy-alloc.c: New file.
19349
19350         Tests for module 'unistr/u8-cpy-alloc'.
19351         * modules/unistr/u8-cpy-alloc-tests: New file.
19352         * tests/unistr/test-u8-cpy-alloc.c: New file.
19353         * tests/unistr/test-cpy-alloc.h: New file.
19354
19355         Tests for module 'unistr/u32-mbsnlen'.
19356         * modules/unistr/u32-mbsnlen-tests: New file.
19357         * tests/unistr/test-u32-mbsnlen.c: New file.
19358
19359         Tests for module 'unistr/u16-mbsnlen'.
19360         * modules/unistr/u16-mbsnlen-tests: New file.
19361         * tests/unistr/test-u16-mbsnlen.c: New file.
19362
19363         Tests for module 'unistr/u8-mbsnlen'.
19364         * modules/unistr/u8-mbsnlen-tests: New file.
19365         * tests/unistr/test-u8-mbsnlen.c: New file.
19366
19367         Tests for module 'unistr/u32-chr'.
19368         * modules/unistr/u32-chr-tests: New file.
19369         * tests/unistr/test-u32-chr.c: New file.
19370
19371         Tests for module 'unistr/u16-chr'.
19372         * modules/unistr/u16-chr-tests: New file.
19373         * tests/unistr/test-u16-chr.c: New file.
19374
19375         Tests for module 'unistr/u8-chr'.
19376         * modules/unistr/u8-chr-tests: New file.
19377         * tests/unistr/test-u8-chr.c: New file.
19378         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19379
19380         Tests for module 'unistr/u32-cmp2'.
19381         * modules/unistr/u32-cmp2-tests: New file.
19382         * tests/unistr/test-u32-cmp2.c: New file.
19383
19384         Tests for module 'unistr/u16-cmp2'.
19385         * modules/unistr/u16-cmp2-tests: New file.
19386         * tests/unistr/test-u16-cmp2.c: New file.
19387
19388         Tests for module 'unistr/u8-cmp2'.
19389         * modules/unistr/u8-cmp2-tests: New file.
19390         * tests/unistr/test-u8-cmp2.c: New file.
19391         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19392
19393         Tests for module 'unistr/u32-cmp'.
19394         * modules/unistr/u32-cmp-tests: New file.
19395         * tests/unistr/test-u32-cmp.c: New file.
19396
19397         Tests for module 'unistr/u16-cmp'.
19398         * modules/unistr/u16-cmp-tests: New file.
19399         * tests/unistr/test-u16-cmp.c: New file.
19400
19401         Tests for module 'unistr/u8-cmp'.
19402         * modules/unistr/u8-cmp-tests: New file.
19403         * tests/unistr/test-u8-cmp.c: New file.
19404         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19405
19406         Tests for module 'unistr/u32-set'.
19407         * modules/unistr/u32-set-tests: New file.
19408         * tests/unistr/test-u32-set.c: New file.
19409
19410         Tests for module 'unistr/u16-set'.
19411         * modules/unistr/u16-set-tests: New file.
19412         * tests/unistr/test-u16-set.c: New file.
19413
19414         Tests for module 'unistr/u8-set'.
19415         * modules/unistr/u8-set-tests: New file.
19416         * tests/unistr/test-u8-set.c: New file.
19417         * tests/unistr/test-set.h: New file.
19418
19419         Tests for module 'unistr/u32-move'.
19420         * modules/unistr/u32-move-tests: New file.
19421         * tests/unistr/test-u32-move.c: New file.
19422
19423         Tests for module 'unistr/u16-move'.
19424         * modules/unistr/u16-move-tests: New file.
19425         * tests/unistr/test-u16-move.c: New file.
19426
19427         Tests for module 'unistr/u8-move'.
19428         * modules/unistr/u8-move-tests: New file.
19429         * tests/unistr/test-u8-move.c: New file.
19430         * tests/unistr/test-move.h: New file.
19431
19432         Tests for module 'unistr/u32-cpy'.
19433         * modules/unistr/u32-cpy-tests: New file.
19434         * tests/unistr/test-u32-cpy.c: New file.
19435
19436         Tests for module 'unistr/u16-cpy'.
19437         * modules/unistr/u16-cpy-tests: New file.
19438         * tests/unistr/test-u16-cpy.c: New file.
19439
19440         Tests for module 'unistr/u8-cpy'.
19441         * modules/unistr/u8-cpy-tests: New file.
19442         * tests/unistr/test-u8-cpy.c: New file.
19443         * tests/unistr/test-cpy.h: New file.
19444
19445 2010-01-09  Bruno Haible  <bruno@clisp.org>
19446
19447         Tests for module 'unistr/u32-uctomb'.
19448         * modules/unistr/u32-uctomb-tests: New file.
19449         * tests/unistr/test-u32-uctomb.c: New file.
19450
19451         Tests for module 'unistr/u16-uctomb'.
19452         * modules/unistr/u16-uctomb-tests: New file.
19453         * tests/unistr/test-u16-uctomb.c: New file.
19454
19455         Tests for module 'unistr/u8-uctomb'.
19456         * modules/unistr/u8-uctomb-tests: New file.
19457         * tests/unistr/test-u8-uctomb.c: New file.
19458
19459         Tests for module 'unistr/u32-mbtoucr'.
19460         * modules/unistr/u32-mbtoucr-tests: New file.
19461         * tests/unistr/test-u32-mbtoucr.c: New file.
19462
19463         Tests for module 'unistr/u16-mbtoucr'.
19464         * modules/unistr/u16-mbtoucr-tests: New file.
19465         * tests/unistr/test-u16-mbtoucr.c: New file.
19466
19467         Tests for module 'unistr/u8-mbtoucr'.
19468         * modules/unistr/u8-mbtoucr-tests: New file.
19469         * tests/unistr/test-u8-mbtoucr.c: New file.
19470
19471         Tests for module 'unistr/u32-mbtouc'.
19472         * modules/unistr/u32-mbtouc-tests: New file.
19473         * tests/unistr/test-u32-mbtouc.c: New file.
19474
19475         Tests for module 'unistr/u16-mbtouc'.
19476         * modules/unistr/u16-mbtouc-tests: New file.
19477         * tests/unistr/test-u16-mbtouc.c: New file.
19478
19479         Tests for module 'unistr/u8-mbtouc'.
19480         * modules/unistr/u8-mbtouc-tests: New file.
19481         * tests/unistr/test-u8-mbtouc.c: New file.
19482
19483         Tests for module 'unistr/u32-mbtouc-unsafe'.
19484         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19485         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19486         * tests/unistr/test-u32-mbtouc.h: New file.
19487
19488         Tests for module 'unistr/u16-mbtouc-unsafe'.
19489         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19490         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19491         * tests/unistr/test-u16-mbtouc.h: New file.
19492
19493         Tests for module 'unistr/u8-mbtouc-unsafe'.
19494         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19495         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19496         * tests/unistr/test-u8-mbtouc.h: New file.
19497
19498         Tests for module 'unistr/u32-mblen'.
19499         * modules/unistr/u32-mblen-tests: New file.
19500         * tests/unistr/test-u32-mblen.c: New file.
19501
19502         Tests for module 'unistr/u16-mblen'.
19503         * modules/unistr/u16-mblen-tests: New file.
19504         * tests/unistr/test-u16-mblen.c: New file.
19505
19506         Tests for module 'unistr/u8-mblen'.
19507         * modules/unistr/u8-mblen-tests: New file.
19508         * tests/unistr/test-u8-mblen.c: New file.
19509
19510         Tests for module 'unistr/u32-to-u16'.
19511         * modules/unistr/u32-to-u16-tests: New file.
19512         * tests/unistr/test-u32-to-u16.c: New file.
19513
19514         Tests for module 'unistr/u32-to-u8'.
19515         * modules/unistr/u32-to-u8-tests: New file.
19516         * tests/unistr/test-u32-to-u8.c: New file.
19517
19518         Tests for module 'unistr/u16-to-u32'.
19519         * modules/unistr/u16-to-u32-tests: New file.
19520         * tests/unistr/test-u16-to-u32.c: New file.
19521
19522         Tests for module 'unistr/u16-to-u8'.
19523         * modules/unistr/u16-to-u8-tests: New file.
19524         * tests/unistr/test-u16-to-u8.c: New file.
19525
19526         Tests for module 'unistr/u8-to-u32'.
19527         * modules/unistr/u8-to-u32-tests: New file.
19528         * tests/unistr/test-u8-to-u32.c: New file.
19529
19530         Tests for module 'unistr/u8-to-u16'.
19531         * modules/unistr/u8-to-u16-tests: New file.
19532         * tests/unistr/test-u8-to-u16.c: New file.
19533
19534         Tests for module 'unistr/u32-check'.
19535         * modules/unistr/u32-check-tests: New file.
19536         * tests/unistr/test-u32-check.c: New file.
19537
19538         Tests for module 'unistr/u16-check'.
19539         * modules/unistr/u16-check-tests: New file.
19540         * tests/unistr/test-u16-check.c: New file.
19541
19542         Tests for module 'unistr/u8-check'.
19543         * modules/unistr/u8-check-tests: New file.
19544         * tests/unistr/test-u8-check.c: New file.
19545
19546         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
19547         (category_equals): New function.
19548         (main): Add more tests.
19549         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
19550
19551         * tests/unictype/test-bidi_byname.c (main): Add more tests.
19552
19553 2010-01-10  Bruno Haible  <bruno@clisp.org>
19554
19555         unistr/u*-strcoll: Try harder to distinguish different strings.
19556         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
19557         compare s1 and s2 to see if they are different.
19558
19559 2010-01-10  Bruno Haible  <bruno@clisp.org>
19560
19561         unistr/u*-stpncpy: Fix the return value.
19562         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
19563         description of the return value consistent with stpncpy in glibc.
19564         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
19565         written non-NUL unit.
19566
19567 2010-01-10  Bruno Haible  <bruno@clisp.org>
19568
19569         unistr/u*-next: Add missing dependencies.
19570         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
19571         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
19572         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
19573
19574 2010-01-10  Bruno Haible  <bruno@clisp.org>
19575
19576         unistr/u8-mbsnlen: Fix return value for incomplete character.
19577         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19578         u8_mblen.
19579         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
19580         Remove unistr/u8-mblen.
19581         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
19582         u16_mblen.
19583         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
19584         Remove unistr/u16-mblen.
19585
19586 2010-01-10  Bruno Haible  <bruno@clisp.org>
19587
19588         wchar: Fix compilation error when <wchar.h> is used from coreutils.
19589         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
19590         Reported by Brian Gough <bjg@gnu.org> and
19591         Chris Clayton <chris2553@googlemail.com> via
19592         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
19593
19594 2010-01-09  Bruno Haible  <bruno@clisp.org>
19595
19596         unistr/u16-to-u32: Reject invalid input.
19597         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
19598         u16_mbtouc.
19599         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
19600         Remove unistr/u16-mbtouc.
19601
19602         unistr/u16-to-u8: Reject invalid input.
19603         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
19604         u16_mbtouc.
19605         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
19606         Remove unistr/u16-mbtouc.
19607
19608         unistr/u8-to-u32: Reject invalid input.
19609         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
19610         u8_mbtouc.
19611         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
19612         Remove unistr/u8-mbtouc.
19613
19614         unistr/u8-to-u16: Reject invalid input.
19615         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
19616         u8_mbtouc.
19617         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
19618         Remove unistr/u8-mbtouc.
19619
19620 2010-01-09  Bruno Haible  <bruno@clisp.org>
19621
19622         Tests for module 'getlogin'.
19623         * modules/getlogin-tests: New file.
19624         * tests/test-getlogin.c: New file.
19625
19626         New module 'getlogin'.
19627         * lib/unistd.in.h (getlogin): New declaration.
19628         * lib/getlogin.c: New file.
19629         * m4/getlogin.m4: New file.
19630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
19631         HAVE_GETLOGIN.
19632         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
19633         HAVE_GETLOGIN.
19634         * modules/getlogin: New file.
19635         * doc/posix-functions/getlogin.texi: Mention the new module.
19636         Reported by John W. Eaton <jwe@gnu.org>.
19637
19638 2010-01-09  Bruno Haible  <bruno@clisp.org>
19639
19640         getlogin_r: Support for native Windows.
19641         * lib/getlogin_r.c: Include <windows.h>
19642         (getlogin_r): Implement for native Windows.
19643         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
19644         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
19645         via John W. Eaton <jwe@gnu.org>.
19646
19647 2010-01-09  Bruno Haible  <bruno@clisp.org>
19648
19649         getlogin_r: Small fixes.
19650         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
19651         succeeds.
19652         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
19653         before testing whether getlogin_r is declared. No need to set
19654         HAVE_DECL_GETLOGIN_R to 1.
19655         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
19656
19657 2010-01-09  Bruno Haible  <bruno@clisp.org>
19658
19659         * lib/unistd.in.h (getlogin_r): Add comment.
19660
19661 2010-01-09  Bruno Haible  <bruno@clisp.org>
19662
19663         Tests for module 'getlogin_r'.
19664         * modules/getlogin_r-tests: New file.
19665         * tests/test-getlogin_r.c: New file.
19666
19667 2010-01-09  Jim Meyering  <meyering@redhat.com>
19668
19669         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
19670         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
19671         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
19672
19673 2010-01-08  Simon Josefsson  <simon@josefsson.org>
19674
19675         * lib/dup2.c (rpl_dup2): Improve comment.
19676
19677 2010-01-08  Eric Blake  <ebb9@byu.net>
19678
19679         maint.mk: allow packages to add makefile @@ exceptions
19680         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
19681         (sc_makefile_check): Rename...
19682         (sc_makefile_at_at_check): ...to this, and use hook.
19683
19684         dup2: work around mingw bug
19685         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
19686         Reported by Simon Josefsson.
19687
19688 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
19689
19690         glob: Fix C++ compilation.
19691         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19692         C++.
19693
19694 2010-01-07  Bruno Haible  <bruno@clisp.org>
19695
19696         Fix indentation of wctype.in.h, broken since 2007-01-06.
19697         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19698
19699 2010-01-07  Bruno Haible  <bruno@clisp.org>
19700
19701         mbslen: Avoid collision with system function.
19702         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19703         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19704         * m4/mbslen.m4: New file.
19705         * modules/mbslen (Files): Add it.
19706         (configure.ac): Invoke gl_MBSLEN.
19707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19708         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19709         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19710         via Ian Beckwith <ianb@erislabs.net>.
19711
19712 2010-01-07  Bruno Haible  <bruno@clisp.org>
19713
19714         dirent: Document the last fix.
19715         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19716
19717 2010-01-07  Bruno Haible  <bruno@clisp.org>
19718
19719         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19720         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19721         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19722         va_list are defined.
19723         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19724         Reported by Eric Blake.
19725
19726 2010-01-07  Bruno Haible  <bruno@clisp.org>
19727
19728         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19729         * modules/xlist (Depends-on): Add 'list',
19730         * modules/xoset (Depends-on): Add 'oset'.
19731         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19732
19733 2010-01-07  Bruno Haible  <bruno@clisp.org>
19734
19735         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19736         * doc/posix-functions/strncasecmp.texi: Likewise.
19737
19738 2010-01-07  Bruno Haible  <bruno@clisp.org>
19739
19740         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19741
19742 2010-01-07  John W. Eaton  <jwe@octave.org>
19743
19744         wctype: allow C++ use
19745         * lib/wctype.in.h: Add extern "C" block for C++.
19746
19747 2010-01-06  Eric Blake  <ebb9@byu.net>
19748
19749         maint.mk: detect incorrect GFDL usage
19750         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19751
19752 2010-01-06  Jim Meyering  <meyering@redhat.com>
19753         and Eric Blake  <ebb9@byu.net>
19754
19755         maint.mk: ignore multi-line copyright in NEWS
19756         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19757
19758 2010-01-06  Eric Blake  <ebb9@byu.net>
19759
19760         select: add missing dependency
19761         * modules/select-tests (Depends-on): Move sockets dependency...
19762         * modules/select (Depends-on): ...here.
19763         Reported by Ian Beckwith.
19764
19765         doc: regenerate INSTALL
19766         * doc/INSTALL: Reflect recent autoconf update.
19767         * doc/INSTALL.ISO: Likewise.
19768         * doc/INSTALL.UTF-8: Likewise.
19769
19770         pread: fix compilation on glibc
19771         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19772         Reported by Ralf Wildenhues.
19773
19774         dirent: fix test failure
19775         * lib/dirent.in.h (includes): Guarantee ino_t.
19776         Reported by Ralf Wildenhues.
19777
19778 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19779
19780         linkat, renameat: avoid bad free
19781         * lib/at-func2.c (at_func2): Fix typo.
19782         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19783
19784 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19785
19786         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19787         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19788         to avoid failure of symlink test later.
19789
19790 2010-01-06  Eric Blake  <ebb9@byu.net>
19791
19792         stdio, unistd: guarantee ssize_t
19793         * lib/unistd.in.h (includes): Ensure that types required by POSIX
19794         2008 are exposed when needed.
19795         * lib/stdio.in.h (includes): Likewise.
19796         Reported by Ralf Wildenhues.
19797
19798 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
19799
19800         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
19801         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
19802         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
19803
19804 2010-01-06  Jim Meyering  <meyering@redhat.com>
19805
19806         readtokens: this module *does* require xalloc.h
19807         It uses only functions that were omitted by the old syntax-check rule.
19808         * lib/readtokens.c: Include "xalloc.h" once again.
19809         * modules/readtokens (Depends-on): Add xalloc.
19810         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
19811
19812 2010-01-05  Eric Blake  <ebb9@byu.net>
19813
19814         maint: support 'make announcement' from a VPATH build
19815         * top/maint.mk (announcement): Look for correct NEWS file.
19816
19817 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
19818
19819         utimens (fdutimens): ignore a negative FD, per contract
19820         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
19821         when we have a valid file descriptor.  Otherwise, using a brand
19822         new glibc (with just-patched futimens that now fails with EBADF)
19823         would cause this function to fail with ENOSYS.
19824         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
19825         See also http://bugzilla.redhat.com/552320.
19826
19827 2010-01-05  Eric Blake  <ebb9@byu.net>
19828
19829         strcase: document what it provides
19830         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
19831         gnulib module.
19832         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
19833         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
19834
19835 2010-01-05  Jim Meyering  <meyering@redhat.com>
19836
19837         maint: remove useless inclusions of "xalloc.h"
19838         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
19839         * lib/readtokens.c: Likewise.
19840         * lib/same.c: Likewise.
19841         * modules/getloadavg (Depends-on): Remove xalloc.
19842         * modules/readtokens: Likewise.
19843         * modules/same: Likewise.
19844
19845         maint.mk: include 4 more function names in alloca.h-checking regexp
19846         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
19847         regexp.  Before, we would give a false-positive (saying alloca.h
19848         is included unnecessarily) when the only uses involved omitted symbols.
19849
19850         xalloc.h: use consistent formatting
19851         * lib/xalloc.h: Move declarations to start in the first column.
19852
19853 2010-01-05  Eric Blake  <ebb9@byu.net>
19854
19855         mkdir: avoid xalloc
19856         * lib/mkdir.c (includes): Drop unused header.
19857         Reported by John W. Eaton.
19858
19859 2010-01-04  Jim Meyering  <meyering@redhat.com>
19860
19861         nl_langinfo: avoid configure-time syntax error
19862         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
19863         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
19864         the empty string.  Don't let that provoke a shell syntax error.
19865
19866         regcomp, regexec, fnmatch: avoid array bounds read error
19867         * lib/regcomp.c (build_equiv_class): From glibc:
19868         Use only the low 24 bits of a findidx return value as an index
19869         into the weights array.  Patch by Ulrich Drepper:
19870         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
19871         * lib/regexec.c (check_node_accept_bytes): Likewise.
19872         * lib/fnmatch_loop.c (FCT): Likewise.
19873
19874         regcomp: skip collseq lookup when there are no rules
19875         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
19876         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
19877
19878         regcomp: recognize ill-formed { } expressions
19879         * lib/regcomp.c (parse_dup_op): From glibc:
19880         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
19881
19882         regcomp: fix typo in comment
19883         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
19884         s/satisfy/satisfies/.
19885
19886         regcomp: sync from glibc: remove dead store
19887         * lib/regcomp.c (duplicate_node_closure): Remove useless
19888         search_duplicated_node call and dead store.
19889
19890         regcomp: sync from glibc; always use nl_langinfo
19891         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
19892         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
19893         * modules/regex (Depends-on): Add nl_langinfo.
19894
19895 2010-01-04  Eric Blake  <ebb9@byu.net>
19896
19897         fdopendir: fix configure test
19898         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
19899
19900 2010-01-01  Bruno Haible  <bruno@clisp.org>
19901
19902         wchar: Remove unused configure check.
19903         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
19904
19905 2010-01-01  Eric Blake  <ebb9@byu.net>
19906
19907         headers: make check of system header explicit
19908         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
19909         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
19910         ourselves.
19911         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19912         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19913         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19914         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
19915         internals.
19916         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
19917         missing.
19918         Suggested by Bruno Haible.
19919
19920 2010-01-01  Jim Meyering  <meyering@redhat.com>
19921
19922         ChangeLog: tweak to eliminate unnecessary copyright line
19923         * ChangeLog: Remove a copyright line that was mistakenly updated
19924         by today's update-copyright run.  Reported by Eric Blake.
19925
19926         test-update-copyright: don't let envvar setting cause test failure
19927         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19928
19929 2010-01-01  Bruno Haible  <bruno@clisp.org>
19930
19931         localename: Avoid gcc warning.
19932         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
19933         function if it is not used.
19934
19935 2010-01-01  Jim Meyering  <meyering@redhat.com>
19936
19937         update nearly all FSF copyright year lists to include 2010
19938         Use the same procedure as for 2009, outlined in
19939         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
19940
19941         version-etc: set COPYRIGHT_YEAR to 2010
19942         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
19943
19944 2009-12-31  Eric Blake  <ebb9@byu.net>
19945
19946         doc: correct availability of cygwin 1.5.x getopt
19947         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
19948         variables.
19949         * doc/posix-functions/opterr.texi (opterr): Likewise.
19950         * doc/posix-functions/optind.texi (optind): Likewise.
19951         * doc/posix-functions/optopt.texi (optopt): Likewise.
19952         * doc/posix-functions/tzname.texi (tzname): Likewise.
19953
19954         openat: update maintainer
19955         * modules/openat (Maintainer): Add myself.
19956
19957         utimens: avoid shadowing warning
19958         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
19959         buffers into one, to avoid shadowing, as well as avoiding a
19960         redundant stat.
19961         Reported by Jim Meyering.
19962
19963         test-dup2: avoid compiler warning
19964         * tests/test-dup2.c (is_inheritable): Only define if used.
19965
19966 2010-01-01  Bruno Haible  <bruno@clisp.org>
19967
19968         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
19969         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
19970         defined, use wctomb instead of wcrtomb.
19971
19972 2010-01-01  Bruno Haible  <bruno@clisp.org>
19973
19974         iconv: Reject native Solaris iconv.
19975         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
19976         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
19977
19978 2009-12-31  Bruno Haible  <bruno@clisp.org>
19979
19980         * tests/test-signal.c (main): Remove test of 'SIG'.
19981
19982 2009-12-31  Bruno Haible  <bruno@clisp.org>
19983
19984         spawn: Fix incomplete fix.
19985         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19986         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19987         warnings for GNULIB_POSIXCHECK again.
19988         Reported by Eric Blake.
19989
19990 2009-12-31  Bruno Haible  <bruno@clisp.org>
19991
19992         Avoid namespace pollution on glibc systems.
19993         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
19994         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
19995         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
19996         glibc systems.
19997
19998 2009-12-31  Bruno Haible  <bruno@clisp.org>
19999
20000         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20001         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20002         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20003         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20004         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20005         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20006         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20007
20008 2009-12-31  Bruno Haible  <bruno@clisp.org>
20009
20010         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20011         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20012         afterwards.
20013
20014 2009-12-31  Bruno Haible  <bruno@clisp.org>
20015
20016         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20017         SYS_UTSNAME_H.
20018
20019 2009-12-31  Bruno Haible  <bruno@clisp.org>
20020
20021         spawn: Fix misapplied patch.
20022         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20023         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20024         warnings for GNULIB_POSIXCHECK.
20025
20026 2009-12-31  Bruno Haible  <bruno@clisp.org>
20027
20028         times: Update after sys_times changed.
20029         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20030         * modules/times (Files): Add it.
20031         (configure.ac): Invoke gl_FUNC_TIMES.
20032
20033 2009-12-31  Bruno Haible  <bruno@clisp.org>
20034
20035         Use AC_C_INLINE where necessary.
20036         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20037         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20038         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20039         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20040         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20041         * m4/mbiter.m4 (gl_MBITER): Likewise.
20042         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20043         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20044         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20045         * modules/u64 (configure.ac): Likewise.
20046
20047 2009-12-31  Bruno Haible  <bruno@clisp.org>
20048
20049         Use AC_C_INLINE instead of module 'inline' where possible.
20050         * modules/inline (Description): Clarify purpose.
20051         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20052         * modules/count-one-bits (Depends-on): Remove inline.
20053         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20054         * modules/openat (Depends-on): Remove inline.
20055         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20056         instead of depending on module 'inline'.
20057         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20058         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20059         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20060         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20061         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20062         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20063         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20064         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20065         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20066         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20067         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20068         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20069         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20070         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20071         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20072         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20073         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20074         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20075         Likewise.
20076         * modules/unictype/property-ascii-hex-digit (Depends-on,
20077         configure.ac): Likewise.
20078         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20079         configure.ac): Likewise.
20080         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20081         configure.ac): Likewise.
20082         * modules/unictype/property-bidi-block-separator (Depends-on,
20083         configure.ac): Likewise.
20084         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20085         configure.ac): Likewise.
20086         * modules/unictype/property-bidi-common-separator (Depends-on,
20087         configure.ac): Likewise.
20088         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20089         Likewise.
20090         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20091         configure.ac): Likewise.
20092         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20093         configure.ac): Likewise.
20094         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20095         configure.ac): Likewise.
20096         * modules/unictype/property-bidi-european-digit (Depends-on,
20097         configure.ac): Likewise.
20098         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20099         configure.ac): Likewise.
20100         * modules/unictype/property-bidi-left-to-right (Depends-on,
20101         configure.ac): Likewise.
20102         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20103         configure.ac): Likewise.
20104         * modules/unictype/property-bidi-other-neutral (Depends-on,
20105         configure.ac): Likewise.
20106         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20107         Likewise.
20108         * modules/unictype/property-bidi-segment-separator (Depends-on,
20109         configure.ac): Likewise.
20110         * modules/unictype/property-bidi-whitespace (Depends-on,
20111         configure.ac): Likewise.
20112         * modules/unictype/property-combining (Depends-on, configure.ac):
20113         Likewise.
20114         * modules/unictype/property-composite (Depends-on, configure.ac):
20115         Likewise.
20116         * modules/unictype/property-currency-symbol (Depends-on,
20117         configure.ac): Likewise.
20118         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20119         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20120         Likewise.
20121         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20122         configure.ac): Likewise.
20123         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20124         Likewise.
20125         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20126         Likewise.
20127         * modules/unictype/property-extender (Depends-on, configure.ac):
20128         Likewise.
20129         * modules/unictype/property-format-control (Depends-on, configure.ac):
20130         Likewise.
20131         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20132         Likewise.
20133         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20134         Likewise.
20135         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20136         Likewise.
20137         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20138         Likewise.
20139         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20140         Likewise.
20141         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20142         Likewise.
20143         * modules/unictype/property-id-start (Depends-on, configure.ac):
20144         Likewise.
20145         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20146         Likewise.
20147         * modules/unictype/property-ids-binary-operator (Depends-on,
20148         configure.ac): Likewise.
20149         * modules/unictype/property-ids-trinary-operator (Depends-on,
20150         configure.ac): Likewise.
20151         * modules/unictype/property-ignorable-control (Depends-on,
20152         configure.ac): Likewise.
20153         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20154         Likewise.
20155         * modules/unictype/property-join-control (Depends-on, configure.ac):
20156         Likewise.
20157         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20158         Likewise.
20159         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20160         Likewise.
20161         * modules/unictype/property-logical-order-exception (Depends-on,
20162         configure.ac): Likewise.
20163         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20164         Likewise.
20165         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20166         * modules/unictype/property-non-break (Depends-on, configure.ac):
20167         Likewise.
20168         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20169         Likewise.
20170         * modules/unictype/property-numeric (Depends-on, configure.ac):
20171         Likewise.
20172         * modules/unictype/property-other-alphabetic (Depends-on,
20173         configure.ac): Likewise.
20174         * modules/unictype/property-other-default-ignorable-code-point
20175         (Depends-on, configure.ac): Likewise.
20176         * modules/unictype/property-other-grapheme-extend (Depends-on,
20177         configure.ac): Likewise.
20178         * modules/unictype/property-other-id-continue (Depends-on,
20179         configure.ac): Likewise.
20180         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20181         Likewise.
20182         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20183         Likewise.
20184         * modules/unictype/property-other-math (Depends-on, configure.ac):
20185         Likewise.
20186         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20187         Likewise.
20188         * modules/unictype/property-paired-punctuation (Depends-on,
20189         configure.ac): Likewise.
20190         * modules/unictype/property-paragraph-separator (Depends-on,
20191         configure.ac): Likewise.
20192         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20193         Likewise.
20194         * modules/unictype/property-pattern-white-space (Depends-on,
20195         configure.ac): Likewise.
20196         * modules/unictype/property-private-use (Depends-on, configure.ac):
20197         Likewise.
20198         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20199         Likewise.
20200         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20201         Likewise.
20202         * modules/unictype/property-radical (Depends-on, configure.ac):
20203         Likewise.
20204         * modules/unictype/property-sentence-terminal (Depends-on,
20205         configure.ac): Likewise.
20206         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20207         Likewise.
20208         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20209         * modules/unictype/property-terminal-punctuation (Depends-on,
20210         configure.ac): Likewise.
20211         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20212         Likewise.
20213         * modules/unictype/property-unassigned-code-value (Depends-on,
20214         configure.ac): Likewise.
20215         * modules/unictype/property-unified-ideograph (Depends-on,
20216         configure.ac): Likewise.
20217         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20218         Likewise.
20219         * modules/unictype/property-variation-selector (Depends-on,
20220         configure.ac): Likewise.
20221         * modules/unictype/property-white-space (Depends-on, configure.ac):
20222         Likewise.
20223         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20224         Likewise.
20225         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20226         Likewise.
20227         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20228         Likewise.
20229         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20230         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20231         Likewise.
20232
20233 2009-12-31  Bruno Haible  <bruno@clisp.org>
20234
20235         Remove unnecessary AC_C_INLINE invocation.
20236         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20237         since 2009-08-21.
20238
20239 2009-12-31  Jim Meyering  <meyering@redhat.com>
20240
20241         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20242         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20243         With this change, we can all remove the gpg_key_ID = ... definition
20244         from our respective cfg.mk files.
20245
20246         maint.mk: create announcement template in ~/, not in /tmp
20247         * top/maint.mk (emit_upload_commands): Adjust.
20248         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20249         Remove temporary file, .ci-msg.
20250
20251 2009-12-31  Eric Blake  <ebb9@byu.net>
20252
20253         link-warning: always build headers with link warnings
20254         * modules/arpa_inet (Makefile.am): Always build replacement
20255         header.
20256         * modules/ctype (Makefile.am): Likewise.
20257         * modules/dirent (Makefile.am): Likewise.
20258         * modules/inttypes (Makefile.am): Likewise.
20259         * modules/langinfo (Makefile.am): Likewise.
20260         * modules/locale (Makefile.am): Likewise.
20261         * modules/spawn (Makefile.am): Likewise.
20262         * modules/sys_file (Makefile.am): Likewise.
20263         * modules/sys_ioctl (Makefile.am): Likewise.
20264         * modules/sys_select (Makefile.am): Likewise.
20265         * modules/sys_socket (Makefile.am): Likewise.
20266         * modules/sys_times (Makefile.am): Likewise.
20267         * modules/sys_utsname (Makefile.am): Likewise.
20268         * modules/sys_wait (Makefile.am): Likewise.
20269         * modules/wchar (Makefile.am): Likewise.
20270         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20271         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20272         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20273         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20274         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20275         Likewise.
20276         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20277         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20278         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20279         Likewise.
20280         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20281         Likewise.
20282         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20283         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20284         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20285         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20286         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20287         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20288         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20289         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20290         (gl_WCHAR_H_DEFAULTS): Likewise.
20291
20292 2009-12-31  Eric Blake  <ebb9@byu.net>
20293
20294         signal, spawn: use link warnings
20295         * lib/signal.in.h (sigset_t): Make unconditional.
20296         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20297         (sigpending, sigprocmask, sigaction): Add link warnings.
20298         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20299         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20300         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20301         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20302         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20303         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20304         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20305         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20306         (posix_spawn_file_actions_destroy)
20307         (posix_spawn_file_actions_addopen)
20308         (posix_spawn_file_actions_addclose)
20309         (posix_spawn_file_actions_adddup2): Likewise.
20310         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20311         * tests/test-signal.c (main): Enhance test.
20312
20313         spawn: improve wrapper support
20314         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20315         (gl_SPAWN_H_DEFAULTS): New defaults.
20316         * modules/spawn (Makefile.am): Substitute them.
20317         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20318         Only declare if missing or broken.
20319
20320         sys_times, sys_utsname: use include_next
20321         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20322         header.
20323         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20324         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20325         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20326         * modules/sys_times (Depends-on): Add include_next.
20327         (Makefile.am): Substitute additional values.
20328         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20329         * lib/sys_times.in.h (includes): Include native header, if
20330         available.
20331         * lib/sys_utsname.in.h (includes): Likewise.
20332         * tests/test-sys_times.c (main): Enhance test.
20333
20334         fdutimensat: revert prior patch
20335         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20336         utimens.h.
20337         Reported by Bruno Haible.
20338
20339 2009-12-30  Eric Blake  <ebb9@byu.net>
20340
20341         sys_wait: drop link-warning dependency
20342         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20343         link-warning efforts.
20344         * lib/sys_wait.in.h: Likewise.
20345
20346         fdutimensat: remove bogus dependency
20347         * modules/fdutimensat (Depends-on): Drop inline.
20348
20349         unistd: fix typo
20350         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20351
20352 2009-12-30  Bruno Haible  <bruno@clisp.org>
20353
20354         Fix compilation error with Solaris cc.
20355         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20356         * lib/unicase/u16-is-invariant.c: Likewise.
20357         * lib/unicase/u32-is-invariant.c: Likewise.
20358         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20359
20360 2009-12-30  Bruno Haible  <bruno@clisp.org>
20361
20362         Fix test crash.
20363         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20364         locales.
20365         Reported by Simon Josefsson <simon@josefsson.org>.
20366
20367 2009-12-30  Bruno Haible  <bruno@clisp.org>
20368
20369         Fix compilation error on most platforms.
20370         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20371         Reported by Simon Josefsson <simon@josefsson.org>
20372         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20373
20374 2009-12-30  Eric Blake  <ebb9@byu.net>
20375
20376         futimens, utimensat: work around ntfs-3g bug
20377         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20378         a ctime bug is present, and expand workaround to cover ntfs-3g.
20379         * lib/utimens.c (fdutimens, lutimens): Likewise.
20380         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20381         (validate_timespec): Adjust return value.
20382         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20383         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20384         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20385
20386 2009-12-29  Eric Blake  <ebb9@byu.net>
20387
20388         link-warning: make usage consistent
20389         * modules/ctype (Depends-on): Add link-warning.
20390         (Makefile.am): Update rules accordingly.
20391         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20392         * modules/locale (Depends-on, Makefile.am): Likewise.
20393         * modules/sys_file (Makefile.am): Likewise.
20394         * modules/getopt-posix (Makefile.am): Delete unused link warning
20395         efforts.
20396         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20397         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20398         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20399         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20400
20401         stdio: remove unused variables
20402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20403         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20404         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20405
20406         tests: test more substitute headers
20407         * modules/ctype-tests: New file.
20408         * modules/dirent-tests: Likewise.
20409         * modules/spawn-tests: Likewise.
20410         * modules/sys_file-tests: Likewise.
20411         * modules/sys_ioctl-tests: Likewise.
20412         * modules/sys_wait-tests: Likewise.
20413         * tests/test-ctype.c: Likewise.
20414         * tests/test-dirent.c: Likewise.
20415         * tests/test-spawn.c: Likewise.
20416         * tests/test-sys_file.c: Likewise.
20417         * tests/test-sys_ioctl.c: Likewise.
20418         * tests/test-sys_wait.c: Likewise.
20419         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20420         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20421         whether or not flock is in use.
20422
20423         tests: remove License section from module
20424         * modules/arpa_inet-tests: Remove unneeded section.
20425         * modules/byteswap-tests: Likewise.
20426         * modules/ceilf-tests: Likewise.
20427         * modules/ceill-tests: Likewise.
20428         * modules/crypto/des-tests: Likewise.
20429         * modules/crypto/gc-arcfour-tests: Likewise.
20430         * modules/crypto/gc-arctwo-tests: Likewise.
20431         * modules/crypto/gc-des-tests: Likewise.
20432         * modules/crypto/gc-hmac-md5-tests: Likewise.
20433         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20434         * modules/crypto/gc-md2-tests: Likewise.
20435         * modules/crypto/gc-md4-tests: Likewise.
20436         * modules/crypto/gc-md5-tests: Likewise.
20437         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20438         * modules/crypto/gc-rijndael-tests: Likewise.
20439         * modules/crypto/gc-sha1-tests: Likewise.
20440         * modules/crypto/gc-tests: Likewise.
20441         * modules/crypto/md2-tests: Likewise.
20442         * modules/crypto/md4-tests: Likewise.
20443         * modules/fcntl-h-tests: Likewise.
20444         * modules/floorf-tests: Likewise.
20445         * modules/floorl-tests: Likewise.
20446         * modules/frexp-nolibm-tests: Likewise.
20447         * modules/frexp-tests: Likewise.
20448         * modules/frexpl-nolibm-tests: Likewise.
20449         * modules/frexpl-tests: Likewise.
20450         * modules/getaddrinfo-tests: Likewise.
20451         * modules/inttypes-tests: Likewise.
20452         * modules/isfinite-tests: Likewise.
20453         * modules/isinf-tests: Likewise.
20454         * modules/ldexpl-tests: Likewise.
20455         * modules/locale-tests: Likewise.
20456         * modules/math-tests: Likewise.
20457         * modules/netdb-tests: Likewise.
20458         * modules/netinet_in-tests: Likewise.
20459         * modules/printf-frexp-tests: Likewise.
20460         * modules/printf-frexpl-tests: Likewise.
20461         * modules/priv-set-tests: Likewise.
20462         * modules/random_r-tests: Likewise.
20463         * modules/round-tests: Likewise.
20464         * modules/roundf-tests: Likewise.
20465         * modules/roundl-tests: Likewise.
20466         * modules/search-tests: Likewise.
20467         * modules/select-tests: Likewise.
20468         * modules/signal-tests: Likewise.
20469         * modules/stdbool-tests: Likewise.
20470         * modules/stddef-tests: Likewise.
20471         * modules/stdint-tests: Likewise.
20472         * modules/stdio-tests: Likewise.
20473         * modules/stdlib-tests: Likewise.
20474         * modules/string-tests: Likewise.
20475         * modules/strings-tests: Likewise.
20476         * modules/sys_select-tests: Likewise.
20477         * modules/sys_socket-tests: Likewise.
20478         * modules/sys_stat-tests: Likewise.
20479         * modules/sys_time-tests: Likewise.
20480         * modules/sys_utsname-tests: Likewise.
20481         * modules/sysexits-tests: Likewise.
20482         * modules/time-tests: Likewise.
20483         * modules/trunc-tests: Likewise.
20484         * modules/truncf-tests: Likewise.
20485         * modules/truncl-tests: Likewise.
20486         * modules/tsearch-tests: Likewise.
20487         * modules/unistd-tests: Likewise.
20488         * modules/wchar-tests: Likewise.
20489         * modules/wctype-tests: Likewise.
20490
20491         tests: fix license on several tests
20492         * tests/test-des.c: Update to GPLv3+.
20493         * tests/test-flock.c: Likewise.
20494         * tests/test-fsync.c: Likewise.
20495         * tests/test-futimens.h: Likewise.
20496         * tests/test-gc-arcfour.c: Likewise.
20497         * tests/test-gc-arctwo.c: Likewise.
20498         * tests/test-gc-des.c: Likewise.
20499         * tests/test-gc-hmac-md5.c: Likewise.
20500         * tests/test-gc-hmac-sha1.c: Likewise.
20501         * tests/test-gc-md2.c: Likewise.
20502         * tests/test-gc-md4.c: Likewise.
20503         * tests/test-gc-md5.c: Likewise.
20504         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20505         * tests/test-gc-rijndael.c: Likewise.
20506         * tests/test-gc-sha1.c: Likewise.
20507         * tests/test-gc.c: Likewise.
20508         * tests/test-getcwd.c: Likewise.
20509         * tests/test-link.c: Likewise.
20510         * tests/test-link.h: Likewise.
20511         * tests/test-lutimens.h: Likewise.
20512         * tests/test-md2.c: Likewise.
20513         * tests/test-md4.c: Likewise.
20514         * tests/test-mkdir.h: Likewise.
20515         * tests/test-rename.c: Likewise.
20516         * tests/test-rename.h: Likewise.
20517         * tests/test-safe-alloc.c: Likewise.
20518         * tests/test-utimens-common.h: Likewise.
20519         * tests/test-utimens.h: Likewise.
20520
20521         maint: sync license texts
20522         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
20523         * doc/gpl-3.0.texi: Revert copyright year update.
20524         * doc/lgpl-3.0.texi: Likewise.
20525
20526 2009-12-29  Jim Meyering  <meyering@redhat.com>
20527
20528         update nearly all FSF copyright year lists to include 2009
20529         The files named by the following are exempted:
20530             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
20531               test -f "$dst" && { echo "$dst"; continue; }
20532               test -d "$dst" || continue
20533               echo "$dst"/$(basename "$src")
20534             done > exempt
20535             git ls-files tests/unictype >> exempt
20536         In the remaining files, convert to all-interval notation if
20537         - there is already at least one year interval like 2000-2003
20538         - the file is maintained by me
20539         - the file is in lib/uni*/, where that style already prevails
20540         Otherwise, use update-copyright's default.
20541
20542 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20543         and Eric Blake  <ebb9@byu.net>
20544
20545         tests: don't require debug system() to pass
20546         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
20547         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20548         * tests/test-unlink.h (test_unlink_func): Likewise.
20549         * tests/test-fstatat.c (main): ...into callers.
20550         * tests/test-lstat.c (main): Likewise.
20551         * tests/test-rmdir.c (main): Likewise.
20552         * tests/test-unlink.c (main): Likewise.
20553         * tests/test-unlinkat.c (main): Likewise.
20554         * tests/test-areadlink-with-size.c (main): Don't require a
20555         debug-only system call to pass, aiding cross-testing to mingw.
20556         * tests/test-areadlink.c (main): Likewise.
20557         * tests/test-areadlinkat-with-size.c (main): Likewise.
20558         * tests/test-areadlinkat.c (main): Likewise.
20559         * tests/test-canonicalize-lgpl.c (main): Likewise.
20560         * tests/test-canonicalize.c (main): Likewise.
20561         * tests/test-chown.c (main): Likewise.
20562         * tests/test-fchownat.c (main): Likewise.
20563         * tests/test-lchown.c (main): Likewise.
20564         * tests/test-fdutimensat.c (main): Likewise.
20565         * tests/test-futimens.c (main): Likewise.
20566         * tests/test-link.c (main): Likewise.
20567         * tests/test-linkat.c (main): Likewise.
20568         * tests/test-mkdir.c (main): Likewise.
20569         * tests/test-mkdirat.c (main): Likewise.
20570         * tests/test-mkfifo.c (main): Likewise.
20571         * tests/test-mkfifoat.c (main): Likewise.
20572         * tests/test-mknod.c (main): Likewise.
20573         * tests/test-readlink.c (main): Likewise.
20574         * tests/test-remove.c (main): Likewise.
20575         * tests/test-rename.c (main): Likewise.
20576         * tests/test-renameat.c (main): Likewise.
20577         * tests/test-symlink.c (main): Likewise.
20578         * tests/test-symlinkat.c (main): Likewise.
20579         * tests/test-utimens.c (main): Likewise.
20580         * tests/test-utimensat.c (main): Likewise.
20581
20582 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20583
20584         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
20585         on $(UNUSED_PARAMETER_H) to avoid build failure.
20586
20587 2009-12-28  Jim Meyering  <meyering@redhat.com>
20588
20589         update-copyright: you may specify a max. line length other than 72
20590         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20591
20592         maint: use consistent FSF copyright line syntax
20593         * lib/posixtm.c: Add missing comma in FSF copyright line.
20594         * lib/posixtm.h: Likewise.
20595         * lib/getugroups.c: Add missing ", Inc.".
20596
20597         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
20598         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
20599         FSF copyright line.  Remove trailing blanks.
20600
20601 2009-12-28  Eric Blake  <ebb9@byu.net>
20602
20603         test-dup2: reduce dependencies
20604         * modules/cloexec (Configure.ac): Set witness.
20605         * modules/dup2-tests (Depends-on): Drop cloexec.
20606         * tests/test-dup2.c (main): Skip portion of test if cloexec module
20607         not present.
20608         Suggested by Bruno Haible.
20609
20610 2009-12-26  Bruno Haible  <bruno@clisp.org>
20611
20612         Remove an unneeded dependency.
20613         * modules/fseterr (Depends-on): Remove dup2.
20614
20615 2009-12-26  Eric Blake  <ebb9@byu.net>
20616
20617         tests: use macros.h in more places
20618         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
20619         (ASSERT_STREAM): Provide default of stderr.
20620         * tests/test-dirent-safer.c: Include macros.h, using alternate
20621         stream for assertions.
20622         * tests/test-dup-safer.c: Likewise.
20623         * tests/test-freopen-safer.c: Likewise.
20624         * tests/test-getopt.c: Likewise.
20625         * tests/test-openat-safer.c: Likewise.
20626         * tests/test-pipe.c: Likewise.
20627         * tests/test-popen-safer.c: Likewise.
20628         * modules/dirent-safer-tests (Files): Include macros.h.
20629         * modules/unistd-safer-tests (Files): Likewise.
20630         * modules/freopen-safer-tests (Files): Likewise.
20631         * modules/getopt-posix-tests (Files): Likewise.
20632         * modules/openat-safer-tests (Files): Likewise.
20633         * modules/pipe-tests (Files): Likewise.
20634
20635 2009-12-26  Bruno Haible  <bruno@clisp.org>
20636
20637         javacomp: Portability fix.
20638         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
20639         that it also works on Solaris.
20640
20641 2009-12-26  Bruno Haible  <bruno@clisp.org>
20642
20643         localename: Fix storage allocation of gl_locale_name_thread's result.
20644         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
20645         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
20646         all platforms that have 'uselocale'.
20647         (gl_locale_name_thread_unsafe): New function, extracted from
20648         gl_locale_name_thread.
20649         (gl_locale_name_thread): Call struniq on all platforms that have
20650         'uselocale'.
20651         * tests/test-localename.c (test_locale_name_thread): Check that the
20652         resulting strings are permanently allocated.
20653         * modules/localename-tests (Depends-on): Add strdup.
20654
20655 2009-12-26  Bruno Haible  <bruno@clisp.org>
20656
20657         * tests/test-localename.c (categories): Fill in the strings.
20658
20659 2009-12-26  Jim Meyering  <meyering@redhat.com>
20660
20661         isdir: complete the removal of m4/isdir.m4
20662         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
20663
20664         isdir: clean up, since at least grep still uses it
20665         * lib/isdir.c: Include "isdir.h".
20666         (S_ISDIR): Remove now-unneeded definition.
20667         * modules/isdir (Files): Add lib/isdir.h.
20668         * lib/isdir.h: New file, with declaration.
20669         * m4/isdir.m4: Remove file -- unneeded.
20670
20671 2009-12-25  Bruno Haible  <bruno@clisp.org>
20672
20673         selinux-h: Make generated .h files standalone.
20674         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
20675         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
20676         * lib/se-selinux.in.h: Likewise.
20677         * modules/selinux-h (Depends-on): Add unused-parameter.
20678         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
20679         selinux/selinux.h and selinux/context.h.
20680         Suggested by Eric Blake.
20681
20682 2009-12-25  Bruno Haible  <bruno@clisp.org>
20683
20684         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
20685         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
20686         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
20687         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
20688         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
20689
20690 2009-12-24  Bruno Haible  <bruno@clisp.org>
20691
20692         openat: Fix warning.
20693         * lib/openat-proc.c: Include <unistd.h>.
20694
20695 2009-12-24  Bruno Haible  <bruno@clisp.org>
20696
20697         New module 'unused-parameter'.
20698         * build-aux/unused-parameter.h: New file, extracted from earlier
20699         gnulib-common.m4.
20700         * modules/unused-parameter: New file.
20701         * lib/unistr.h: Include unused-parameter.h.
20702         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20703         _GL_UNUSED.
20704         * modules/unistr/base (Depends-on): Add unused-parameter.
20705
20706 2009-12-24  Bruno Haible  <bruno@clisp.org>
20707
20708         Add missing dependencies to 'extensions' module.
20709         * m4/extensions.m4: Add comment.
20710         * modules/accept4 (Depends-on): Add extensions.
20711         * modules/dup3 (Depends-on): Likewise.
20712         * modules/fcntl (Depends-on): Likewise.
20713         * modules/futimens (Depends-on): Likewise.
20714         * modules/mknod (Depends-on): Likewise.
20715         * modules/pipe2 (Depends-on): Likewise.
20716         * modules/stat-time (Depends-on): Likewise.
20717         * modules/strcasestr-simple (Depends-on): Likewise.
20718         * modules/strsignal (Depends-on): Likewise.
20719         * modules/utimensat (Depends-on): Likewise.
20720         * modules/localcharset (Depends-on): Likewise. Needed because of
20721         gl_FCNTL_O_FLAGS.
20722         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20723         AC_TYPE_MBSTATE_T.
20724         * modules/wcsnrtombs (Depends-on): Likewise.
20725         * modules/wcsrtombs (Depends-on): Likewise.
20726
20727 2009-12-24  Bruno Haible  <bruno@clisp.org>
20728
20729         binary-io: Avoid gcc warning due to SET_BINARY.
20730         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20731         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20732
20733 2009-12-24  Bruno Haible  <bruno@clisp.org>
20734
20735         Avoid future namespace pollution on glibc systems.
20736         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20737         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20738         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20739         glibc systems.
20740
20741 2009-12-24  Bruno Haible  <bruno@clisp.org>
20742
20743         Refactor common macros used in tests.
20744         * tests/macros.h: New file.
20745         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20746         and/or <stdlib.h>, if appropriate.
20747         (ASSERT, SIZEOF): Remove macros.
20748         * tests/test-areadlink-with-size.c: Likewise.
20749         * tests/test-areadlinkat.c: Likewise.
20750         * tests/test-areadlinkat-with-size.c: Likewise.
20751         * tests/test-argmatch.c: Likewise.
20752         * tests/test-argv-iter.c: Likewise.
20753         * tests/test-array-mergesort.c: Likewise.
20754         * tests/test-array_list.c: Likewise.
20755         * tests/test-array_oset.c: Likewise.
20756         * tests/test-avltree_list.c: Likewise.
20757         * tests/test-avltree_oset.c: Likewise.
20758         * tests/test-avltreehash_list.c: Likewise.
20759         * tests/test-base64.c: Likewise.
20760         * tests/test-binary-io.c: Likewise.
20761         * tests/test-bitrotate.c: Likewise.
20762         * tests/test-btowc.c: Likewise.
20763         * tests/test-byteswap.c: Likewise.
20764         * tests/test-c-ctype.c: Likewise.
20765         * tests/test-c-stack.c: Likewise.
20766         * tests/test-c-strcasecmp.c: Likewise.
20767         * tests/test-c-strcasestr.c: Likewise.
20768         * tests/test-c-strncasecmp.c: Likewise.
20769         * tests/test-c-strstr.c: Likewise.
20770         * tests/test-canonicalize-lgpl.c: Likewise.
20771         * tests/test-canonicalize.c: Likewise.
20772         * tests/test-carray_list.c: Likewise.
20773         * tests/test-ceilf1.c: Likewise.
20774         * tests/test-ceilf2.c: Likewise.
20775         * tests/test-ceill.c: Likewise.
20776         * tests/test-chown.c: Likewise.
20777         * tests/test-cloexec.c: Likewise.
20778         * tests/test-copy-acl.c: Likewise.
20779         * tests/test-copy-file.c: Likewise.
20780         * tests/test-count-one-bits.c: Likewise.
20781         * tests/test-dprintf-posix.c: Likewise.
20782         * tests/test-dup2.c: Likewise.
20783         * tests/test-dup3.c: Likewise.
20784         * tests/test-duplocale.c: Likewise.
20785         * tests/test-fbufmode.c: Likewise.
20786         * tests/test-fchdir.c: Likewise.
20787         * tests/test-fchownat.c: Likewise.
20788         * tests/test-fcntl-safer.c: Likewise.
20789         * tests/test-fcntl.c: Likewise.
20790         * tests/test-fdopendir.c: Likewise.
20791         * tests/test-fdutimensat.c: Likewise.
20792         * tests/test-fflush2.c: Likewise.
20793         * tests/test-file-has-acl.c: Likewise.
20794         * tests/test-filevercmp.c: Likewise.
20795         * tests/test-flock.c: Likewise.
20796         * tests/test-floorf1.c: Likewise.
20797         * tests/test-floorf2.c: Likewise.
20798         * tests/test-floorl.c: Likewise.
20799         * tests/test-fnmatch.c: Likewise.
20800         * tests/test-fopen.h: Likewise.
20801         * tests/test-fpending.c: Likewise.
20802         * tests/test-fprintf-posix.c: Likewise.
20803         * tests/test-fpurge.c: Likewise.
20804         * tests/test-freadable.c: Likewise.
20805         * tests/test-freadahead.c: Likewise.
20806         * tests/test-freading.c: Likewise.
20807         * tests/test-freadptr.c: Likewise.
20808         * tests/test-freadptr2.c: Likewise.
20809         * tests/test-freadseek.c: Likewise.
20810         * tests/test-freopen.c: Likewise.
20811         * tests/test-frexp.c: Likewise.
20812         * tests/test-frexpl.c: Likewise.
20813         * tests/test-fseek.c: Likewise.
20814         * tests/test-fseeko.c: Likewise.
20815         * tests/test-fstatat.c: Likewise.
20816         * tests/test-fstrcmp.c: Likewise.
20817         * tests/test-fsync.c: Likewise.
20818         * tests/test-ftell.c: Likewise.
20819         * tests/test-ftello.c: Likewise.
20820         * tests/test-func.c: Likewise.
20821         * tests/test-futimens.c: Likewise.
20822         * tests/test-fwritable.c: Likewise.
20823         * tests/test-fwriting.c: Likewise.
20824         * tests/test-getcwd.c: Likewise.
20825         * tests/test-getdate.c: Likewise.
20826         * tests/test-getdelim.c: Likewise.
20827         * tests/test-getdtablesize.c: Likewise.
20828         * tests/test-getgroups.c: Likewise.
20829         * tests/test-getline.c: Likewise.
20830         * tests/test-getndelim2.c: Likewise.
20831         * tests/test-glob.c: Likewise.
20832         * tests/test-hash.c: Likewise.
20833         * tests/test-i-ring.c: Likewise.
20834         * tests/test-iconv-utf.c: Likewise.
20835         * tests/test-iconv.c: Likewise.
20836         * tests/test-idpriv-drop.c: Likewise.
20837         * tests/test-idpriv-droptemp.c: Likewise.
20838         * tests/test-inet_ntop.c: Likewise.
20839         * tests/test-inet_pton.c: Likewise.
20840         * tests/test-isblank.c: Likewise.
20841         * tests/test-isfinite.c: Likewise.
20842         * tests/test-isinf.c: Likewise.
20843         * tests/test-isnan.c: Likewise.
20844         * tests/test-isnand.h: Likewise.
20845         * tests/test-isnanf.h: Likewise.
20846         * tests/test-isnanl.h: Likewise.
20847         * tests/test-lchown.c: Likewise.
20848         * tests/test-ldexpl.c: Likewise.
20849         * tests/test-link.c: Likewise.
20850         * tests/test-linkat.c: Likewise.
20851         * tests/test-linked_list.c: Likewise.
20852         * tests/test-linkedhash_list.c: Likewise.
20853         * tests/test-localename.c: Likewise.
20854         * tests/test-lseek.c: Likewise.
20855         * tests/test-lstat.c: Likewise.
20856         * tests/test-mbmemcasecmp.c: Likewise.
20857         * tests/test-mbmemcasecoll.c: Likewise.
20858         * tests/test-mbrtowc.c: Likewise.
20859         * tests/test-mbscasecmp.c: Likewise.
20860         * tests/test-mbscasestr1.c: Likewise.
20861         * tests/test-mbscasestr2.c: Likewise.
20862         * tests/test-mbscasestr3.c: Likewise.
20863         * tests/test-mbscasestr4.c: Likewise.
20864         * tests/test-mbschr.c: Likewise.
20865         * tests/test-mbscspn.c: Likewise.
20866         * tests/test-mbsinit.c: Likewise.
20867         * tests/test-mbsncasecmp.c: Likewise.
20868         * tests/test-mbsnrtowcs.c: Likewise.
20869         * tests/test-mbspbrk.c: Likewise.
20870         * tests/test-mbspcasecmp.c: Likewise.
20871         * tests/test-mbsrchr.c: Likewise.
20872         * tests/test-mbsrtowcs.c: Likewise.
20873         * tests/test-mbsspn.c: Likewise.
20874         * tests/test-mbsstr1.c: Likewise.
20875         * tests/test-mbsstr2.c: Likewise.
20876         * tests/test-mbsstr3.c: Likewise.
20877         * tests/test-memchr.c: Likewise.
20878         * tests/test-memchr2.c: Likewise.
20879         * tests/test-memcmp.c: Likewise.
20880         * tests/test-memmem.c: Likewise.
20881         * tests/test-memrchr.c: Likewise.
20882         * tests/test-mkdir.c: Likewise.
20883         * tests/test-mkdirat.c: Likewise.
20884         * tests/test-mkfifo.c: Likewise.
20885         * tests/test-mkfifoat.c: Likewise.
20886         * tests/test-mknod.c: Likewise.
20887         * tests/test-nanosleep.c: Likewise.
20888         * tests/test-nl_langinfo.c: Likewise.
20889         * tests/test-obstack-printf.c: Likewise.
20890         * tests/test-open.c: Likewise.
20891         * tests/test-openat.c: Likewise.
20892         * tests/test-pipe-filter-gi1.c: Likewise.
20893         * tests/test-pipe-filter-gi2-main.c: Likewise.
20894         * tests/test-pipe-filter-ii1.c: Likewise.
20895         * tests/test-pipe-filter-ii2-main.c: Likewise.
20896         * tests/test-pipe2.c: Likewise.
20897         * tests/test-popen.h: Likewise.
20898         * tests/test-posixtm.c: Likewise.
20899         * tests/test-pread.c: Likewise.
20900         * tests/test-printf-frexp.c: Likewise.
20901         * tests/test-printf-frexpl.c: Likewise.
20902         * tests/test-printf-posix.c: Likewise.
20903         * tests/test-priv-set.c: Likewise.
20904         * tests/test-quotearg.c: Likewise.
20905         * tests/test-random_r.c: Likewise.
20906         * tests/test-rawmemchr.c: Likewise.
20907         * tests/test-rbtree_list.c: Likewise.
20908         * tests/test-rbtree_oset.c: Likewise.
20909         * tests/test-rbtreehash_list.c: Likewise.
20910         * tests/test-readlink.c: Likewise.
20911         * tests/test-remove.c: Likewise.
20912         * tests/test-rename.c: Likewise.
20913         * tests/test-renameat.c: Likewise.
20914         * tests/test-rmdir.c: Likewise.
20915         * tests/test-round1.c: Likewise.
20916         * tests/test-roundf1.c: Likewise.
20917         * tests/test-roundl.c: Likewise.
20918         * tests/test-safe-alloc.c: Likewise.
20919         * tests/test-sameacls.c: Likewise.
20920         * tests/test-set-mode-acl.c: Likewise.
20921         * tests/test-setenv.c: Likewise.
20922         * tests/test-sigaction.c: Likewise.
20923         * tests/test-signbit.c: Likewise.
20924         * tests/test-sleep.c: Likewise.
20925         * tests/test-snprintf-posix.c: Likewise.
20926         * tests/test-snprintf.c: Likewise.
20927         * tests/test-sprintf-posix.c: Likewise.
20928         * tests/test-stat-time.c: Likewise.
20929         * tests/test-stat.c: Likewise.
20930         * tests/test-strcasestr.c: Likewise.
20931         * tests/test-strchrnul.c: Likewise.
20932         * tests/test-strerror.c: Likewise.
20933         * tests/test-striconv.c: Likewise.
20934         * tests/test-striconveh.c: Likewise.
20935         * tests/test-striconveha.c: Likewise.
20936         * tests/test-strsignal.c: Likewise.
20937         * tests/test-strstr.c: Likewise.
20938         * tests/test-strtod.c: Likewise.
20939         * tests/test-strverscmp.c: Likewise.
20940         * tests/test-symlink.c: Likewise.
20941         * tests/test-symlinkat.c: Likewise.
20942         * tests/test-trunc1.c: Likewise.
20943         * tests/test-trunc2.c: Likewise.
20944         * tests/test-truncf1.c: Likewise.
20945         * tests/test-truncf2.c: Likewise.
20946         * tests/test-truncl.c: Likewise.
20947         * tests/test-uname.c: Likewise.
20948         * tests/test-unlink.c: Likewise.
20949         * tests/test-unlinkat.c: Likewise.
20950         * tests/test-unsetenv.c: Likewise.
20951         * tests/test-usleep.c: Likewise.
20952         * tests/test-utimens.c: Likewise.
20953         * tests/test-utimensat.c: Likewise.
20954         * tests/test-vasnprintf-posix.c: Likewise.
20955         * tests/test-vasnprintf-posix2.c: Likewise.
20956         * tests/test-vasnprintf.c: Likewise.
20957         * tests/test-vasprintf-posix.c: Likewise.
20958         * tests/test-vasprintf.c: Likewise.
20959         * tests/test-vdprintf-posix.c: Likewise.
20960         * tests/test-vfprintf-posix.c: Likewise.
20961         * tests/test-vprintf-posix.c: Likewise.
20962         * tests/test-vsnprintf-posix.c: Likewise.
20963         * tests/test-vsnprintf.c: Likewise.
20964         * tests/test-vsprintf-posix.c: Likewise.
20965         * tests/test-wcrtomb.c: Likewise.
20966         * tests/test-wcsnrtombs.c: Likewise.
20967         * tests/test-wcsrtombs.c: Likewise.
20968         * tests/test-wctype.c: Likewise.
20969         * tests/test-wcwidth.c: Likewise.
20970         * tests/test-xfprintf-posix.c: Likewise.
20971         * tests/test-xmemdup0.c: Likewise.
20972         * tests/test-xprintf-posix.c: Likewise.
20973         * tests/test-xvasprintf.c: Likewise.
20974         * tests/unicase/test-locale-language.c: Likewise.
20975         * tests/unicase/test-mapping-part1.h: Likewise.
20976         * tests/unicase/test-predicate-part1.h: Likewise.
20977         * tests/unicase/test-u8-casecmp.c: Likewise.
20978         * tests/unicase/test-u8-casecoll.c: Likewise.
20979         * tests/unicase/test-u8-casefold.c: Likewise.
20980         * tests/unicase/test-u8-is-cased.c: Likewise.
20981         * tests/unicase/test-u8-is-casefolded.c: Likewise.
20982         * tests/unicase/test-u8-is-lowercase.c: Likewise.
20983         * tests/unicase/test-u8-is-titlecase.c: Likewise.
20984         * tests/unicase/test-u8-is-uppercase.c: Likewise.
20985         * tests/unicase/test-u8-tolower.c: Likewise.
20986         * tests/unicase/test-u8-totitle.c: Likewise.
20987         * tests/unicase/test-u8-toupper.c: Likewise.
20988         * tests/unicase/test-u16-casecmp.c: Likewise.
20989         * tests/unicase/test-u16-casecoll.c: Likewise.
20990         * tests/unicase/test-u16-casefold.c: Likewise.
20991         * tests/unicase/test-u16-is-cased.c: Likewise.
20992         * tests/unicase/test-u16-is-casefolded.c: Likewise.
20993         * tests/unicase/test-u16-is-lowercase.c: Likewise.
20994         * tests/unicase/test-u16-is-titlecase.c: Likewise.
20995         * tests/unicase/test-u16-is-uppercase.c: Likewise.
20996         * tests/unicase/test-u16-tolower.c: Likewise.
20997         * tests/unicase/test-u16-totitle.c: Likewise.
20998         * tests/unicase/test-u16-toupper.c: Likewise.
20999         * tests/unicase/test-u32-casecmp.c: Likewise.
21000         * tests/unicase/test-u32-casecoll.c: Likewise.
21001         * tests/unicase/test-u32-casefold.c: Likewise.
21002         * tests/unicase/test-u32-is-cased.c: Likewise.
21003         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21004         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21005         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21006         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21007         * tests/unicase/test-u32-tolower.c: Likewise.
21008         * tests/unicase/test-u32-totitle.c: Likewise.
21009         * tests/unicase/test-u32-toupper.c: Likewise.
21010         * tests/unicase/test-ulc-casecmp.c: Likewise.
21011         * tests/unicase/test-ulc-casecoll.c: Likewise.
21012         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21013         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21014         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21015         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21016         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21017         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21018         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21019         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21020         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21021         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21022         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21023         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21024         * tests/unictype/test-bidi_byname.c: Likewise.
21025         * tests/unictype/test-bidi_name.c: Likewise.
21026         * tests/unictype/test-bidi_of.c: Likewise.
21027         * tests/unictype/test-bidi_test.c: Likewise.
21028         * tests/unictype/test-block_list.c: Likewise.
21029         * tests/unictype/test-block_of.c: Likewise.
21030         * tests/unictype/test-block_test.c: Likewise.
21031         * tests/unictype/test-categ_and.c: Likewise.
21032         * tests/unictype/test-categ_and_not.c: Likewise.
21033         * tests/unictype/test-categ_byname.c: Likewise.
21034         * tests/unictype/test-categ_name.c: Likewise.
21035         * tests/unictype/test-categ_none.c: Likewise.
21036         * tests/unictype/test-categ_of.c: Likewise.
21037         * tests/unictype/test-categ_or.c: Likewise.
21038         * tests/unictype/test-categ_test_withtable.c: Likewise.
21039         * tests/unictype/test-combining.c: Likewise.
21040         * tests/unictype/test-decdigit.c: Likewise.
21041         * tests/unictype/test-digit.c: Likewise.
21042         * tests/unictype/test-mirror.c: Likewise.
21043         * tests/unictype/test-numeric.c: Likewise.
21044         * tests/unictype/test-pr_byname.c: Likewise.
21045         * tests/unictype/test-pr_test.c: Likewise.
21046         * tests/unictype/test-predicate-part1.h: Likewise.
21047         * tests/unictype/test-scripts.c: Likewise.
21048         * tests/unictype/test-sy_c_ident.c: Likewise.
21049         * tests/unictype/test-sy_java_ident.c: Likewise.
21050         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21051         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21052         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21053         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21054         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21055         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21056         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21057         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21058         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21059         * tests/uninorm/test-compat-decomposition.c: Likewise.
21060         * tests/uninorm/test-composition.c: Likewise.
21061         * tests/uninorm/test-decomposing-form.c: Likewise.
21062         * tests/uninorm/test-decomposition.c: Likewise.
21063         * tests/uninorm/test-u8-nfc.c: Likewise.
21064         * tests/uninorm/test-u8-nfd.c: Likewise.
21065         * tests/uninorm/test-u8-nfkc.c: Likewise.
21066         * tests/uninorm/test-u8-nfkd.c: Likewise.
21067         * tests/uninorm/test-u8-normcmp.c: Likewise.
21068         * tests/uninorm/test-u8-normcoll.c: Likewise.
21069         * tests/uninorm/test-u16-nfc.c: Likewise.
21070         * tests/uninorm/test-u16-nfd.c: Likewise.
21071         * tests/uninorm/test-u16-nfkc.c: Likewise.
21072         * tests/uninorm/test-u16-nfkd.c: Likewise.
21073         * tests/uninorm/test-u16-normcmp.c: Likewise.
21074         * tests/uninorm/test-u16-normcoll.c: Likewise.
21075         * tests/uninorm/test-u32-nfc.c: Likewise.
21076         * tests/uninorm/test-u32-nfd.c: Likewise.
21077         * tests/uninorm/test-u32-nfkc.c: Likewise.
21078         * tests/uninorm/test-u32-nfkd.c: Likewise.
21079         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21080         * tests/uninorm/test-u32-normcmp.c: Likewise.
21081         * tests/uninorm/test-u32-normcoll.c: Likewise.
21082         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21083         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21084         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21085         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21086         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21087         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21088         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21089         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21090         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21091         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21092         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21093         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21094         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21095         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21096         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21097         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21098         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21099         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21100         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21101         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21102         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21103         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21104         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21105         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21106         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21107         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21108         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21109         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21110         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21111         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21112         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21113         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21114         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21115         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21116         * tests/uniwidth/test-u8-width.c: Likewise.
21117         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21118         * tests/uniwidth/test-u16-width.c: Likewise.
21119         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21120         * tests/uniwidth/test-u32-width.c: Likewise.
21121         * tests/uniwidth/test-uc_width.c: Likewise.
21122         * tests/uniwidth/test-uc_width2.c: Likewise.
21123         * modules/acl-tests (Files): Add tests/macros.h.
21124         * modules/areadlink-tests (Files): Likewise.
21125         * modules/areadlink-with-size-tests (Files): Likewise.
21126         * modules/areadlinkat-tests (Files): Likewise.
21127         * modules/areadlinkat-with-size-tests (Files): Likewise.
21128         * modules/argmatch-tests (Files): Likewise.
21129         * modules/argv-iter-tests (Files): Likewise.
21130         * modules/array-list-tests (Files): Likewise.
21131         * modules/array-mergesort-tests (Files): Likewise.
21132         * modules/array-oset-tests (Files): Likewise.
21133         * modules/avltree-list-tests (Files): Likewise.
21134         * modules/avltree-oset-tests (Files): Likewise.
21135         * modules/avltreehash-list-tests (Files): Likewise.
21136         * modules/base64-tests (Files): Likewise.
21137         * modules/binary-io-tests (Files): Likewise.
21138         * modules/bitrotate-tests (Files): Likewise.
21139         * modules/btowc-tests (Files): Likewise.
21140         * modules/byteswap-tests (Files): Likewise.
21141         * modules/c-ctype-tests (Files): Likewise.
21142         * modules/c-stack-tests (Files): Likewise.
21143         * modules/c-strcase-tests (Files): Likewise.
21144         * modules/c-strcasestr-tests (Files): Likewise.
21145         * modules/c-strstr-tests (Files): Likewise.
21146         * modules/canonicalize-lgpl-tests (Files): Likewise.
21147         * modules/canonicalize-tests (Files): Likewise.
21148         * modules/carray-list-tests (Files): Likewise.
21149         * modules/ceilf-tests (Files): Likewise.
21150         * modules/ceill-tests (Files): Likewise.
21151         * modules/chown-tests (Files): Likewise.
21152         * modules/cloexec-tests (Files): Likewise.
21153         * modules/copy-file-tests (Files): Likewise.
21154         * modules/count-one-bits-tests (Files): Likewise.
21155         * modules/dprintf-posix-tests (Files): Likewise.
21156         * modules/dup2-tests (Files): Likewise.
21157         * modules/dup3-tests (Files): Likewise.
21158         * modules/duplocale-tests (Files): Likewise.
21159         * modules/fbufmode-tests (Files): Likewise.
21160         * modules/fchdir-tests (Files): Likewise.
21161         * modules/fcntl-safer-tests (Files): Likewise.
21162         * modules/fcntl-tests (Files): Likewise.
21163         * modules/fdopendir-tests (Files): Likewise.
21164         * modules/fdutimensat-tests (Files): Likewise.
21165         * modules/fflush-tests (Files): Likewise.
21166         * modules/filevercmp-tests (Files): Likewise.
21167         * modules/flock-tests (Files): Likewise.
21168         * modules/floorf-tests (Files): Likewise.
21169         * modules/floorl-tests (Files): Likewise.
21170         * modules/fnmatch-tests (Files): Likewise.
21171         * modules/fopen-safer-tests (Files): Likewise.
21172         * modules/fopen-tests (Files): Likewise.
21173         * modules/fpending-tests (Files): Likewise.
21174         * modules/fprintf-posix-tests (Files): Likewise.
21175         * modules/fpurge-tests (Files): Likewise.
21176         * modules/freadable-tests (Files): Likewise.
21177         * modules/freadahead-tests (Files): Likewise.
21178         * modules/freading-tests (Files): Likewise.
21179         * modules/freadptr-tests (Files): Likewise.
21180         * modules/freadseek-tests (Files): Likewise.
21181         * modules/freopen-tests (Files): Likewise.
21182         * modules/frexp-nolibm-tests (Files): Likewise.
21183         * modules/frexp-tests (Files): Likewise.
21184         * modules/frexpl-nolibm-tests (Files): Likewise.
21185         * modules/frexpl-tests (Files): Likewise.
21186         * modules/fseek-tests (Files): Likewise.
21187         * modules/fseeko-tests (Files): Likewise.
21188         * modules/fstrcmp-tests (Files): Likewise.
21189         * modules/fsync-tests (Files): Likewise.
21190         * modules/ftell-tests (Files): Likewise.
21191         * modules/ftello-tests (Files): Likewise.
21192         * modules/func-tests (Files): Likewise.
21193         * modules/futimens-tests (Files): Likewise.
21194         * modules/fwritable-tests (Files): Likewise.
21195         * modules/fwriting-tests (Files): Likewise.
21196         * modules/getcwd-tests (Files): Likewise.
21197         * modules/getdate-tests (Files): Likewise.
21198         * modules/getdelim-tests (Files): Likewise.
21199         * modules/getdtablesize-tests (Files): Likewise.
21200         * modules/getgroups-tests (Files): Likewise.
21201         * modules/getline-tests (Files): Likewise.
21202         * modules/getndelim2-tests (Files): Likewise.
21203         * modules/glob-tests (Files): Likewise.
21204         * modules/hash-tests (Files): Likewise.
21205         * modules/i-ring-tests (Files): Likewise.
21206         * modules/iconv-tests (Files): Likewise.
21207         * modules/iconv_open-utf-tests (Files): Likewise.
21208         * modules/idpriv-drop-tests (Files): Likewise.
21209         * modules/idpriv-droptemp-tests (Files): Likewise.
21210         * modules/inet_ntop-tests (Files): Likewise.
21211         * modules/inet_pton-tests (Files): Likewise.
21212         * modules/isblank-tests (Files): Likewise.
21213         * modules/isfinite-tests (Files): Likewise.
21214         * modules/isinf-tests (Files): Likewise.
21215         * modules/isnan-tests (Files): Likewise.
21216         * modules/isnand-nolibm-tests (Files): Likewise.
21217         * modules/isnand-tests (Files): Likewise.
21218         * modules/isnanf-nolibm-tests (Files): Likewise.
21219         * modules/isnanf-tests (Files): Likewise.
21220         * modules/isnanl-nolibm-tests (Files): Likewise.
21221         * modules/isnanl-tests (Files): Likewise.
21222         * modules/lchown-tests (Files): Likewise.
21223         * modules/ldexpl-tests (Files): Likewise.
21224         * modules/link-tests (Files): Likewise.
21225         * modules/linkat-tests (Files): Likewise.
21226         * modules/linked-list-tests (Files): Likewise.
21227         * modules/linkedhash-list-tests (Files): Likewise.
21228         * modules/localename-tests (Files): Likewise.
21229         * modules/lseek-tests (Files): Likewise.
21230         * modules/lstat-tests (Files): Likewise.
21231         * modules/mbmemcasecmp-tests (Files): Likewise.
21232         * modules/mbmemcasecoll-tests (Files): Likewise.
21233         * modules/mbrtowc-tests (Files): Likewise.
21234         * modules/mbscasecmp-tests (Files): Likewise.
21235         * modules/mbscasestr-tests (Files): Likewise.
21236         * modules/mbschr-tests (Files): Likewise.
21237         * modules/mbscspn-tests (Files): Likewise.
21238         * modules/mbsinit-tests (Files): Likewise.
21239         * modules/mbsncasecmp-tests (Files): Likewise.
21240         * modules/mbsnrtowcs-tests (Files): Likewise.
21241         * modules/mbspbrk-tests (Files): Likewise.
21242         * modules/mbspcasecmp-tests (Files): Likewise.
21243         * modules/mbsrchr-tests (Files): Likewise.
21244         * modules/mbsrtowcs-tests (Files): Likewise.
21245         * modules/mbsspn-tests (Files): Likewise.
21246         * modules/mbsstr-tests (Files): Likewise.
21247         * modules/memchr-tests (Files): Likewise.
21248         * modules/memchr2-tests (Files): Likewise.
21249         * modules/memcmp-tests (Files): Likewise.
21250         * modules/memmem-tests (Files): Likewise.
21251         * modules/memrchr-tests (Files): Likewise.
21252         * modules/mkdir-tests (Files): Likewise.
21253         * modules/mkfifo-tests (Files): Likewise.
21254         * modules/mkfifoat-tests (Files): Likewise.
21255         * modules/mknod-tests (Files): Likewise.
21256         * modules/nanosleep-tests (Files): Likewise.
21257         * modules/nl_langinfo-tests (Files): Likewise.
21258         * modules/obstack-printf-tests (Files): Likewise.
21259         * modules/open-tests (Files): Likewise.
21260         * modules/openat-tests (Files): Likewise.
21261         * modules/pipe-filter-gi-tests (Files): Likewise.
21262         * modules/pipe-filter-ii-tests (Files): Likewise.
21263         * modules/pipe2-tests (Files): Likewise.
21264         * modules/popen-safer-tests (Files): Likewise.
21265         * modules/popen-tests (Files): Likewise.
21266         * modules/posixtm-tests (Files): Likewise.
21267         * modules/pread-tests (Files): Likewise.
21268         * modules/printf-frexp-tests (Files): Likewise.
21269         * modules/printf-frexpl-tests (Files): Likewise.
21270         * modules/printf-posix-tests (Files): Likewise.
21271         * modules/priv-set-tests (Files): Likewise.
21272         * modules/quotearg-tests (Files): Likewise.
21273         * modules/random_r-tests (Files): Likewise.
21274         * modules/rawmemchr-tests (Files): Likewise.
21275         * modules/rbtree-list-tests (Files): Likewise.
21276         * modules/rbtree-oset-tests (Files): Likewise.
21277         * modules/rbtreehash-list-tests (Files): Likewise.
21278         * modules/readlink-tests (Files): Likewise.
21279         * modules/remove-tests (Files): Likewise.
21280         * modules/rename-tests (Files): Likewise.
21281         * modules/renameat-tests (Files): Likewise.
21282         * modules/rmdir-tests (Files): Likewise.
21283         * modules/round-tests (Files): Likewise.
21284         * modules/roundf-tests (Files): Likewise.
21285         * modules/roundl-tests (Files): Likewise.
21286         * modules/safe-alloc-tests (Files): Likewise.
21287         * modules/setenv-tests (Files): Likewise.
21288         * modules/sigaction-tests (Files): Likewise.
21289         * modules/signbit-tests (Files): Likewise.
21290         * modules/sleep-tests (Files): Likewise.
21291         * modules/snprintf-posix-tests (Files): Likewise.
21292         * modules/snprintf-tests (Files): Likewise.
21293         * modules/sprintf-posix-tests (Files): Likewise.
21294         * modules/stat-tests (Files): Likewise.
21295         * modules/stat-time-tests (Files): Likewise.
21296         * modules/strcasestr-tests (Files): Likewise.
21297         * modules/strchrnul-tests (Files): Likewise.
21298         * modules/strerror-tests (Files): Likewise.
21299         * modules/striconv-tests (Files): Likewise.
21300         * modules/striconveh-tests (Files): Likewise.
21301         * modules/striconveha-tests (Files): Likewise.
21302         * modules/strsignal-tests (Files): Likewise.
21303         * modules/strstr-tests (Files): Likewise.
21304         * modules/strtod-tests (Files): Likewise.
21305         * modules/strverscmp-tests (Files): Likewise.
21306         * modules/symlink-tests (Files): Likewise.
21307         * modules/symlinkat-tests (Files): Likewise.
21308         * modules/trunc-tests (Files): Likewise.
21309         * modules/truncf-tests (Files): Likewise.
21310         * modules/truncl-tests (Files): Likewise.
21311         * modules/uname-tests (Files): Likewise.
21312         * modules/unicase/cased-tests (Files): Likewise.
21313         * modules/unicase/ignorable-tests (Files): Likewise.
21314         * modules/unicase/locale-language-tests (Files): Likewise.
21315         * modules/unicase/tolower-tests (Files): Likewise.
21316         * modules/unicase/totitle-tests (Files): Likewise.
21317         * modules/unicase/toupper-tests (Files): Likewise.
21318         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21319         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21320         * modules/unicase/u8-casefold-tests (Files): Likewise.
21321         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21322         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21323         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21324         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21325         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21326         * modules/unicase/u8-tolower-tests (Files): Likewise.
21327         * modules/unicase/u8-totitle-tests (Files): Likewise.
21328         * modules/unicase/u8-toupper-tests (Files): Likewise.
21329         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21330         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21331         * modules/unicase/u16-casefold-tests (Files): Likewise.
21332         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21333         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21334         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21335         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21336         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21337         * modules/unicase/u16-tolower-tests (Files): Likewise.
21338         * modules/unicase/u16-totitle-tests (Files): Likewise.
21339         * modules/unicase/u16-toupper-tests (Files): Likewise.
21340         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21341         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21342         * modules/unicase/u32-casefold-tests (Files): Likewise.
21343         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21344         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21345         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21346         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21347         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21348         * modules/unicase/u32-tolower-tests (Files): Likewise.
21349         * modules/unicase/u32-totitle-tests (Files): Likewise.
21350         * modules/unicase/u32-toupper-tests (Files): Likewise.
21351         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21352         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21353         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21354         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21355         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21356         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21357         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21358         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21359         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21360         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21361         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21362         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21363         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21364         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21365         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21366         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21367         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21368         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21369         * modules/unictype/block-list-tests (Files): Likewise.
21370         * modules/unictype/block-of-tests (Files): Likewise.
21371         * modules/unictype/block-test-tests (Files): Likewise.
21372         * modules/unictype/category-C-tests (Files): Likewise.
21373         * modules/unictype/category-Cc-tests (Files): Likewise.
21374         * modules/unictype/category-Cf-tests (Files): Likewise.
21375         * modules/unictype/category-Cn-tests (Files): Likewise.
21376         * modules/unictype/category-Co-tests (Files): Likewise.
21377         * modules/unictype/category-Cs-tests (Files): Likewise.
21378         * modules/unictype/category-L-tests (Files): Likewise.
21379         * modules/unictype/category-Ll-tests (Files): Likewise.
21380         * modules/unictype/category-Lm-tests (Files): Likewise.
21381         * modules/unictype/category-Lo-tests (Files): Likewise.
21382         * modules/unictype/category-Lt-tests (Files): Likewise.
21383         * modules/unictype/category-Lu-tests (Files): Likewise.
21384         * modules/unictype/category-M-tests (Files): Likewise.
21385         * modules/unictype/category-Mc-tests (Files): Likewise.
21386         * modules/unictype/category-Me-tests (Files): Likewise.
21387         * modules/unictype/category-Mn-tests (Files): Likewise.
21388         * modules/unictype/category-N-tests (Files): Likewise.
21389         * modules/unictype/category-Nd-tests (Files): Likewise.
21390         * modules/unictype/category-Nl-tests (Files): Likewise.
21391         * modules/unictype/category-No-tests (Files): Likewise.
21392         * modules/unictype/category-P-tests (Files): Likewise.
21393         * modules/unictype/category-Pc-tests (Files): Likewise.
21394         * modules/unictype/category-Pd-tests (Files): Likewise.
21395         * modules/unictype/category-Pe-tests (Files): Likewise.
21396         * modules/unictype/category-Pf-tests (Files): Likewise.
21397         * modules/unictype/category-Pi-tests (Files): Likewise.
21398         * modules/unictype/category-Po-tests (Files): Likewise.
21399         * modules/unictype/category-Ps-tests (Files): Likewise.
21400         * modules/unictype/category-S-tests (Files): Likewise.
21401         * modules/unictype/category-Sc-tests (Files): Likewise.
21402         * modules/unictype/category-Sk-tests (Files): Likewise.
21403         * modules/unictype/category-Sm-tests (Files): Likewise.
21404         * modules/unictype/category-So-tests (Files): Likewise.
21405         * modules/unictype/category-Z-tests (Files): Likewise.
21406         * modules/unictype/category-Zl-tests (Files): Likewise.
21407         * modules/unictype/category-Zp-tests (Files): Likewise.
21408         * modules/unictype/category-Zs-tests (Files): Likewise.
21409         * modules/unictype/category-and-not-tests (Files): Likewise.
21410         * modules/unictype/category-and-tests (Files): Likewise.
21411         * modules/unictype/category-byname-tests (Files): Likewise.
21412         * modules/unictype/category-name-tests (Files): Likewise.
21413         * modules/unictype/category-none-tests (Files): Likewise.
21414         * modules/unictype/category-of-tests (Files): Likewise.
21415         * modules/unictype/category-or-tests (Files): Likewise.
21416         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21417         * modules/unictype/combining-class-tests (Files): Likewise.
21418         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21419         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21420         * modules/unictype/ctype-blank-tests (Files): Likewise.
21421         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21422         * modules/unictype/ctype-digit-tests (Files): Likewise.
21423         * modules/unictype/ctype-graph-tests (Files): Likewise.
21424         * modules/unictype/ctype-lower-tests (Files): Likewise.
21425         * modules/unictype/ctype-print-tests (Files): Likewise.
21426         * modules/unictype/ctype-punct-tests (Files): Likewise.
21427         * modules/unictype/ctype-space-tests (Files): Likewise.
21428         * modules/unictype/ctype-upper-tests (Files): Likewise.
21429         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21430         * modules/unictype/decimal-digit-tests (Files): Likewise.
21431         * modules/unictype/digit-tests (Files): Likewise.
21432         * modules/unictype/mirror-tests (Files): Likewise.
21433         * modules/unictype/numeric-tests (Files): Likewise.
21434         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21435         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21436         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21437         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21438         Likewise.
21439         * modules/unictype/property-bidi-block-separator-tests (Files):
21440         Likewise.
21441         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21442         Likewise.
21443         * modules/unictype/property-bidi-common-separator-tests (Files):
21444         Likewise.
21445         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21446         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21447         Likewise.
21448         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21449         Likewise.
21450         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21451         Likewise.
21452         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21453         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21454         Likewise.
21455         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21456         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21457         Likewise.
21458         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21459         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21460         * modules/unictype/property-bidi-segment-separator-tests (Files):
21461         Likewise.
21462         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21463         * modules/unictype/property-byname-tests (Files): Likewise.
21464         * modules/unictype/property-combining-tests (Files): Likewise.
21465         * modules/unictype/property-composite-tests (Files): Likewise.
21466         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21467         * modules/unictype/property-dash-tests (Files): Likewise.
21468         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21469         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21470         Likewise.
21471         * modules/unictype/property-deprecated-tests (Files): Likewise.
21472         * modules/unictype/property-diacritic-tests (Files): Likewise.
21473         * modules/unictype/property-extender-tests (Files): Likewise.
21474         * modules/unictype/property-format-control-tests (Files): Likewise.
21475         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21476         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21477         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21478         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21479         * modules/unictype/property-hyphen-tests (Files): Likewise.
21480         * modules/unictype/property-id-continue-tests (Files): Likewise.
21481         * modules/unictype/property-id-start-tests (Files): Likewise.
21482         * modules/unictype/property-ideographic-tests (Files): Likewise.
21483         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21484         * modules/unictype/property-ids-trinary-operator-tests (Files):
21485         Likewise.
21486         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21487         * modules/unictype/property-iso-control-tests (Files): Likewise.
21488         * modules/unictype/property-join-control-tests (Files): Likewise.
21489         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21490         * modules/unictype/property-line-separator-tests (Files): Likewise.
21491         * modules/unictype/property-logical-order-exception-tests (Files):
21492         Likewise.
21493         * modules/unictype/property-lowercase-tests (Files): Likewise.
21494         * modules/unictype/property-math-tests (Files): Likewise.
21495         * modules/unictype/property-non-break-tests (Files): Likewise.
21496         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21497         * modules/unictype/property-numeric-tests (Files): Likewise.
21498         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21499         * modules/unictype/property-other-default-ignorable-code-point-tests
21500         (Files): Likewise.
21501         * modules/unictype/property-other-grapheme-extend-tests (Files):
21502         Likewise.
21503         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21504         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21505         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21506         * modules/unictype/property-other-math-tests (Files): Likewise.
21507         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21508         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21509         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21510         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21511         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21512         * modules/unictype/property-private-use-tests (Files): Likewise.
21513         * modules/unictype/property-punctuation-tests (Files): Likewise.
21514         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21515         * modules/unictype/property-radical-tests (Files): Likewise.
21516         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21517         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21518         * modules/unictype/property-space-tests (Files): Likewise.
21519         * modules/unictype/property-terminal-punctuation-tests (Files):
21520         Likewise.
21521         * modules/unictype/property-test-tests (Files): Likewise.
21522         * modules/unictype/property-titlecase-tests (Files): Likewise.
21523         * modules/unictype/property-unassigned-code-value-tests (Files):
21524         Likewise.
21525         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
21526         * modules/unictype/property-uppercase-tests (Files): Likewise.
21527         * modules/unictype/property-variation-selector-tests (Files): Likewise.
21528         * modules/unictype/property-white-space-tests (Files): Likewise.
21529         * modules/unictype/property-xid-continue-tests (Files): Likewise.
21530         * modules/unictype/property-xid-start-tests (Files): Likewise.
21531         * modules/unictype/property-zero-width-tests (Files): Likewise.
21532         * modules/unictype/scripts-tests (Files): Likewise.
21533         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
21534         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
21535         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
21536         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
21537         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
21538         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
21539         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
21540         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
21541         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
21542         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
21543         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
21544         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
21545         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
21546         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
21547         * modules/uninorm/composition-tests (Files): Likewise.
21548         * modules/uninorm/decomposing-form-tests (Files): Likewise.
21549         * modules/uninorm/decomposition-tests (Files): Likewise.
21550         * modules/uninorm/filter-tests (Files): Likewise.
21551         * modules/uninorm/nfc-tests (Files): Likewise.
21552         * modules/uninorm/nfd-tests (Files): Likewise.
21553         * modules/uninorm/nfkc-tests (Files): Likewise.
21554         * modules/uninorm/nfkd-tests (Files): Likewise.
21555         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
21556         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
21557         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
21558         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
21559         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
21560         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
21561         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
21562         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21563         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
21564         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
21565         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
21566         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
21567         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21568         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
21569         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
21570         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
21571         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
21572         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21573         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
21574         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
21575         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
21576         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21577         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21578         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
21579         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
21580         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
21581         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
21582         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
21583         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
21584         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
21585         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
21586         * modules/uniwidth/u8-width-tests (Files): Likewise.
21587         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
21588         * modules/uniwidth/u16-width-tests (Files): Likewise.
21589         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
21590         * modules/uniwidth/u32-width-tests (Files): Likewise.
21591         * modules/uniwidth/width-tests (Files): Likewise.
21592         * modules/unlink-tests (Files): Likewise.
21593         * modules/unsetenv-tests (Files): Likewise.
21594         * modules/usleep-tests (Files): Likewise.
21595         * modules/utimens-tests (Files): Likewise.
21596         * modules/utimensat-tests (Files): Likewise.
21597         * modules/vasnprintf-posix-tests (Files): Likewise.
21598         * modules/vasnprintf-tests (Files): Likewise.
21599         * modules/vasprintf-posix-tests (Files): Likewise.
21600         * modules/vasprintf-tests (Files): Likewise.
21601         * modules/vdprintf-posix-tests (Files): Likewise.
21602         * modules/vfprintf-posix-tests (Files): Likewise.
21603         * modules/vprintf-posix-tests (Files): Likewise.
21604         * modules/vsnprintf-posix-tests (Files): Likewise.
21605         * modules/vsnprintf-tests (Files): Likewise.
21606         * modules/vsprintf-posix-tests (Files): Likewise.
21607         * modules/wcrtomb-tests (Files): Likewise.
21608         * modules/wcsnrtombs-tests (Files): Likewise.
21609         * modules/wcsrtombs-tests (Files): Likewise.
21610         * modules/wctype-tests (Files): Likewise.
21611         * modules/wcwidth-tests (Files): Likewise.
21612         * modules/xmemdup0-tests (Files): Likewise.
21613         * modules/xprintf-posix-tests (Files): Likewise.
21614         * modules/xvasprintf-tests (Files): Likewise.
21615
21616 2009-12-24  Eric Blake  <ebb9@byu.net>
21617
21618         test-nanosleep: fix typo
21619         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
21620         patch.
21621         Reported by Bruno Haible.
21622
21623 2009-12-24  Bruno Haible  <bruno@clisp.org>
21624
21625         Reduce namespace pollution on glibc systems.
21626         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
21627         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
21628         systems.
21629         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
21630         <getopt.h> on glibc systems.
21631         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
21632         systems.
21633         * lib/fcntl.c: Include <unistd.h> here instead.
21634
21635 2009-12-24  Bruno Haible  <bruno@clisp.org>
21636
21637         * lib/stdlib.in.h (includes): Fix typo in today's commit.
21638
21639 2009-12-24  Eric Blake  <ebb9@byu.net>
21640
21641         tests: add signature checks
21642         * tests/signature.h (SIGNATURE_CHECK): New file.
21643         * modules/atexit-tests (Files): Use it.
21644         * modules/btowc-tests (Files): Likewise.
21645         * modules/canonicalize-lgpl-tests (Files): Likewise.
21646         * modules/ceilf-tests (Files): Likewise.
21647         * modules/ceill-tests (Files): Likewise.
21648         * modules/chown-tests (Files): Likewise.
21649         * modules/dprintf-posix-tests (Files): Likewise.
21650         * modules/dup2-tests (Files): Likewise.
21651         * modules/dup3-tests (Files): Likewise.
21652         * modules/duplocale-tests (Files): Likewise.
21653         * modules/fchdir-tests (Files): Likewise.
21654         * modules/fcntl-tests (Files): Likewise.
21655         * modules/fdopendir-tests (Files): Likewise.
21656         * modules/fflush-tests (Files): Likewise.
21657         * modules/flock-tests (Files): Likewise.
21658         * modules/floorf-tests (Files): Likewise.
21659         * modules/floorl-tests (Files): Likewise.
21660         * modules/fnmatch-tests (Files): Likewise.
21661         * modules/fopen-tests (Files): Likewise.
21662         * modules/fprintf-posix-tests (Files): Likewise.
21663         * modules/freopen-tests (Files): Likewise.
21664         * modules/frexp-nolibm-tests (Files): Likewise.
21665         * modules/frexp-tests (Files): Likewise.
21666         * modules/frexpl-nolibm-tests (Files): Likewise.
21667         * modules/frexpl-tests (Files): Likewise.
21668         * modules/fseek-tests (Files): Likewise.
21669         * modules/fseeko-tests (Files): Likewise.
21670         * modules/fsync-tests (Files): Likewise.
21671         * modules/ftell-tests (Files): Likewise.
21672         * modules/ftello-tests (Files): Likewise.
21673         * modules/futimens-tests (Files): Likewise.
21674         * modules/getaddrinfo-tests (Files): Likewise.
21675         * modules/getcwd-tests (Files): Likewise.
21676         * modules/getdelim-tests (Files): Likewise.
21677         * modules/getdtablesize-tests (Files): Likewise.
21678         * modules/getgroups-tests (Files): Likewise.
21679         * modules/gethostname-tests (Files): Likewise.
21680         * modules/getline-tests (Files): Likewise.
21681         * modules/getopt-posix-tests (Files): Likewise.
21682         * modules/gettimeofday-tests (Files): Likewise.
21683         * modules/glob-tests (Files): Likewise.
21684         * modules/iconv-tests (Files): Likewise.
21685         * modules/inet_ntop-tests (Files): Likewise.
21686         * modules/inet_pton-tests (Files): Likewise.
21687         * modules/isblank-tests (Files): Likewise.
21688         * modules/lchown-tests (Files): Likewise.
21689         * modules/ldexpl-tests (Files): Likewise.
21690         * modules/link-tests (Files): Likewise.
21691         * modules/linkat-tests (Files): Likewise.
21692         * modules/lseek-tests (Files): Likewise.
21693         * modules/lstat-tests (Files): Likewise.
21694         * modules/mbrtowc-tests (Files): Likewise.
21695         * modules/mbsinit-tests (Files): Likewise.
21696         * modules/mbsnrtowcs-tests (Files): Likewise.
21697         * modules/mbsrtowcs-tests (Files): Likewise.
21698         * modules/memchr-tests (Files): Likewise.
21699         * modules/memcmp-tests (Files): Likewise.
21700         * modules/memmem-tests (Files): Likewise.
21701         * modules/memrchr-tests (Files): Likewise.
21702         * modules/mkdir-tests (Files): Likewise.
21703         * modules/mkfifo-tests (Files): Likewise.
21704         * modules/mkfifoat-tests (Files): Likewise.
21705         * modules/mknod-tests (Files): Likewise.
21706         * modules/nanosleep-tests (Files): Likewise.
21707         * modules/nl_langinfo-tests (Files): Likewise.
21708         * modules/obstack-printf-tests (Files): Likewise.
21709         * modules/open-tests (Files): Likewise.
21710         * modules/openat-tests (Files): Likewise.
21711         * modules/perror-tests (Files): Likewise.
21712         * modules/pipe2-tests (Files): Likewise.
21713         * modules/poll-tests (Files): Likewise.
21714         * modules/popen-tests (Files): Likewise.
21715         * modules/posix_spawn-tests (Files): Likewise.
21716         * modules/posix_spawnp-tests (Files): Likewise.
21717         * modules/pread-tests (Files): Likewise.
21718         * modules/printf-posix-tests (Files): Likewise.
21719         * modules/pty-tests (Files): Likewise.
21720         * modules/random_r-tests (Files): Likewise.
21721         * modules/rawmemchr-tests (Files): Likewise.
21722         * modules/readlink-tests (Files): Likewise.
21723         * modules/remove-tests (Files): Likewise.
21724         * modules/rename-tests (Files): Likewise.
21725         * modules/renameat-tests (Files): Likewise.
21726         * modules/rmdir-tests (Files): Likewise.
21727         * modules/round-tests (Files): Likewise.
21728         * modules/roundf-tests (Files): Likewise.
21729         * modules/roundl-tests (Files): Likewise.
21730         * modules/select-tests (Files): Likewise.
21731         * modules/setenv-tests (Files): Likewise.
21732         * modules/sigaction-tests (Files): Likewise.
21733         * modules/sleep-tests (Files): Likewise.
21734         * modules/snprintf-posix-tests (Files): Likewise.
21735         * modules/snprintf-tests (Files): Likewise.
21736         * modules/sprintf-posix-tests (Files): Likewise.
21737         * modules/stat-tests (Files): Likewise.
21738         * modules/strcasestr-tests (Files): Likewise.
21739         * modules/strchrnul-tests (Files): Likewise.
21740         * modules/strerror-tests (Files): Likewise.
21741         * modules/strsignal-tests (Files): Likewise.
21742         * modules/strstr-tests (Files): Likewise.
21743         * modules/strtod-tests (Files): Likewise.
21744         * modules/strverscmp-tests (Files): Likewise.
21745         * modules/symlink-tests (Files): Likewise.
21746         * modules/symlinkat-tests (Files): Likewise.
21747         * modules/times-tests (Files): Likewise.
21748         * modules/trunc-tests (Files): Likewise.
21749         * modules/truncf-tests (Files): Likewise.
21750         * modules/truncl-tests (Files): Likewise.
21751         * modules/tsearch-tests (Files): Likewise.
21752         * modules/uname-tests (Files): Likewise.
21753         * modules/unlink-tests (Files): Likewise.
21754         * modules/unsetenv-tests (Files): Likewise.
21755         * modules/usleep-tests (Files): Likewise.
21756         * modules/utimensat-tests (Files): Likewise.
21757         * modules/vasprintf-tests (Files): Likewise.
21758         * modules/vdprintf-posix-tests (Files): Likewise.
21759         * modules/vfprintf-posix-tests (Files): Likewise.
21760         * modules/vprintf-posix-tests (Files): Likewise.
21761         * modules/vsnprintf-posix-tests (Files): Likewise.
21762         * modules/vsnprintf-tests (Files): Likewise.
21763         * modules/vsprintf-posix-tests (Files): Likewise.
21764         * modules/wcrtomb-tests (Files): Likewise.
21765         * modules/wcsnrtombs-tests (Files): Likewise.
21766         * modules/wcsrtombs-tests (Files): Likewise.
21767         * modules/wcwidth-tests (Files): Likewise.
21768         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21769         * tests/test-isinf.c (isinf): Likewise.
21770         * tests/test-isnan.c (isnan): Likewise.
21771         * tests/test-signbit.c (signbit): Likewise.
21772         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21773         declaration, either as macro or with correct signature.
21774         (select): Ensure function under test is declared with correct
21775         signature in correct header.
21776         * tests/test-atexit.c (atexit): Likewise.
21777         * tests/test-btowc.c (btowc): Likewise.
21778         * tests/test-canonicalize-lgpl.c (realpath)
21779         (canonicalize_file_name): Likewise.
21780         * tests/test-ceilf1.c (ceilf): Likewise.
21781         * tests/test-ceill.c (ceill): Likewise.
21782         * tests/test-chown.c (chown): Likewise.
21783         * tests/test-dprintf-posix.c (dprintf): Likewise.
21784         * tests/test-dup2.c (dup2): Likewise.
21785         * tests/test-dup3.c (dup3): Likewise.
21786         * tests/test-duplocale.c (duplocale): Likewise.
21787         * tests/test-fchdir.c (fchdir): Likewise.
21788         * tests/test-fchownat.c (fchownat): Likewise.
21789         * tests/test-fcntl.c (fcntl): Likewise.
21790         * tests/test-fdopendir.c (fdopendir): Likewise.
21791         * tests/test-fflush.c (fflush): Likewise.
21792         * tests/test-flock.c (flock): Likewise.
21793         * tests/test-floorf1.c (floorf): Likewise.
21794         * tests/test-floorl.c (floorl): Likewise.
21795         * tests/test-fnmatch.c (fnmatch): Likewise.
21796         * tests/test-fopen.c (fopen): Likewise.
21797         * tests/test-fprintf-posix.c (fprintf): Likewise.
21798         * tests/test-freopen.c (freopen): Likewise.
21799         * tests/test-frexp.c (frexp): Likewise.
21800         * tests/test-frexpl.c (frexpl): Likewise.
21801         * tests/test-fseek.c (fseek): Likewise.
21802         * tests/test-fseeko.c (fseeko): Likewise.
21803         * tests/test-fstatat.c (fstatat): Likewise.
21804         * tests/test-fsync.c (fsync): Likewise.
21805         * tests/test-ftell.c (ftell): Likewise.
21806         * tests/test-ftello.c (ftello): Likewise.
21807         * tests/test-futimens.c (futimens): Likewise.
21808         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
21809         (gai_strerror): Likewise.
21810         * tests/test-getcwd.c (getcwd): Likewise.
21811         * tests/test-getdelim.c (getdelim): Likewise.
21812         * tests/test-getdtablesize.c (getdtablesize): Likewise.
21813         * tests/test-getgroups.c (getgroups): Likewise.
21814         * tests/test-gethostname.c (gethostname): Likewise.
21815         * tests/test-getline.c (getline): Likewise.
21816         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
21817         Likewise.
21818         * tests/test-gettimeofday.c (gettimeofday): Likewise.
21819         * tests/test-glob.c (glob, globfree): Likewise.
21820         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
21821         * tests/test-inet_ntop.c (inet_ntop): Likewise.
21822         * tests/test-inet_pton.c (inet_pton): Likewise.
21823         * tests/test-isblank.c (isblank): Likewise.
21824         * tests/test-lchown.c (lchown): Likewise.
21825         * tests/test-ldexpl.c (ldexpl): Likewise.
21826         * tests/test-link.c (link): Likewise.
21827         * tests/test-linkat.c (linkat): Likewise.
21828         * tests/test-lseek.c (lseek): Likewise.
21829         * tests/test-lstat.c (lstat): Likewise.
21830         * tests/test-mbrtowc.c (mbrtowc): Likewise.
21831         * tests/test-mbsinit.c (mbsinit): Likewise.
21832         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
21833         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
21834         * tests/test-memchr.c (memchr): Likewise.
21835         * tests/test-memcmp.c (memcmp): Likewise.
21836         * tests/test-memmem.c (memmem): Likewise.
21837         * tests/test-memrchr.c (memrchr): Likewise.
21838         * tests/test-mkdir.c (mkdir): Likewise.
21839         * tests/test-mkdirat.c (mkdirat): Likewise.
21840         * tests/test-mkfifo.c (mkfifo): Likewise.
21841         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
21842         * tests/test-mknod.c (mknod): Likewise.
21843         * tests/test-nanosleep.c (nanosleep): Likewise.
21844         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
21845         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
21846         Likewise.
21847         * tests/test-open.c (open): Likewise.
21848         * tests/test-openat.c (openat): Likewise.
21849         * tests/test-perror.c (perror): Likewise.
21850         * tests/test-pipe2.c (pipe2): Likewise.
21851         * tests/test-poll.c (poll): Likewise.
21852         * tests/test-popen.c (popen, pclose): Likewise.
21853         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
21854         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
21855         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
21856         (posix_spawn_file_actions_destroy)
21857         (posix_spawn_file_actions_addclose)
21858         (posix_spawn_file_actions_addopen)
21859         (posix_spawn_file_actions_adddup2): Likewise.
21860         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
21861         * tests/test-pread.c (pread): Likewise.
21862         * tests/test-printf-posix.c (printf): Likewise.
21863         * tests/test-pty.c (openpty, forkpty): Likewise.
21864         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
21865         (random_r): Likewise.
21866         * tests/test-rawmemchr.c (rawmemchr): Likewise.
21867         * tests/test-readlink.c (readlink): Likewise.
21868         * tests/test-remove.c (remove): Likewise.
21869         * tests/test-rename.c (rename): Likewise.
21870         * tests/test-renameat.c (renameat): Likewise.
21871         * tests/test-rmdir.c (rmdir): Likewise.
21872         * tests/test-round1.c (round): Likewise.
21873         * tests/test-roundf1.c (roundf): Likewise.
21874         * tests/test-roundl.c (roundl): Likewise.
21875         * tests/test-setenv.c (setenv): Likewise.
21876         * tests/test-sigaction.c (sigaction): Likewise.
21877         * tests/test-sleep.c (sleep): Likewise.
21878         * tests/test-snprintf.c (snprintf): Likewise.
21879         * tests/test-sprintf-posix.c (sprintf): Likewise.
21880         * tests/test-stat.c (stat): Likewise.
21881         * tests/test-stpncpy.c (stpncpy): Likewise.
21882         * tests/test-strcasestr.c (strcasestr): Likewise.
21883         * tests/test-strchrnul.c (strchrnul): Likewise.
21884         * tests/test-strerror.c (strerror): Likewise.
21885         * tests/test-strsignal.c (strsignal): Likewise.
21886         * tests/test-strstr.c (strstr): Likewise.
21887         * tests/test-strtod.c (strtod): Likewise.
21888         * tests/test-strverscmp.c (strverscmp): Likewise.
21889         * tests/test-symlink.c (symlink): Likewise.
21890         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
21891         * tests/test-times.c (times): Likewise.
21892         * tests/test-trunc1.c (trunc): Likewise.
21893         * tests/test-truncf1.c (truncf): Likewise.
21894         * tests/test-truncl.c (truncl): Likewise.
21895         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
21896         Likewise.
21897         * tests/test-uname.c (uname): Likewise.
21898         * tests/test-unlink.c (unlink): Likewise.
21899         * tests/test-unlinkat.c (unlinkat): Likewise.
21900         * tests/test-unsetenv.c (unsetenv): Likewise.
21901         * tests/test-usleep.c (usleep): Likewise.
21902         * tests/test-utimensat.c (utimensat): Likewise.
21903         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
21904         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
21905         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
21906         * tests/test-vprintf-posix.c (vprintf): Likewise.
21907         * tests/test-vsnprintf.c (vsnprintf): Likewise.
21908         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
21909         * tests/test-wcrtomb.c (wcrtomb): Likewise.
21910         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
21911         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
21912         * tests/test-wcwidth.c (wcwidth): Likewise.
21913
21914         build: pull in conditional headers during GNULIB_POSIXCHECK
21915         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
21916         definitions from any conditionally-included headers.
21917         * lib/stdlib.in.h (includes): Likewise.
21918         * lib/unistd.in.h (includes): Likewise.
21919
21920 2009-12-24  Bruno Haible  <bruno@clisp.org>
21921
21922         * tests/test-argv-iter.c: Include header file being tested immediately
21923         after config.h.
21924         * tests/test-base64.c: Likewise.
21925         * tests/test-flock.c: Likewise.
21926         * tests/test-fsync.c: Likewise.
21927         * tests/test-getdate.c: Likewise.
21928         * tests/test-getndelim2.c: Likewise.
21929         * tests/test-isfinite.c: Likewise.
21930         * tests/test-isinf.c: Likewise.
21931         * tests/test-strerror.c: Likewise.
21932         * tests/test-strsignal.c: Likewise.
21933
21934 2009-12-23  Eric Blake  <ebb9@byu.net>
21935
21936         unistd: work around cygwin bug
21937         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
21938         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
21939         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21940
21941 2009-12-23  Bruno Haible  <bruno@clisp.org>
21942
21943         localename: More tests.
21944         * tests/test-localename.c (SIZEOF): New macro.
21945         (categories): New variable.
21946         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
21947         test_locale_name_default): Add test w.r.t. thread locale.
21948         (test_locale_name_thread): New function.
21949         (main): Invoke it.
21950
21951         localename: Make aware of thread locale.
21952         * lib/localename.h (gl_locale_name_thread): New declaration.
21953         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
21954         behaviour with respect to thread locale.
21955         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
21956         <langinfo.h>, glthread/lock.h.
21957         (SIZE_BITS): New macro.
21958         (string_hash): New function.
21959         (struct hash_node): New type.
21960         (HASH_TABLE_SIZE): New macro.
21961         (struniq_hash_table, struniq_lock): New variables.
21962         (struniq): New function.
21963         (gl_locale_name_thread): New function.
21964         (gl_locale_name): Invoke it.
21965         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
21966         * modules/localename (Depends-on): Add lock.
21967         Reported by Mike Gran <spk121@yahoo.com>.
21968
21969 2009-12-23  Eric Blake  <ebb9@byu.net>
21970
21971         va-args: new module
21972         * modules/va-args: New file.
21973         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
21974         * MODULES.html.sh (Core language properties): Mention it.
21975
21976         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
21977         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
21978         named alias for __attribute__((__unused__)).
21979         * lib/chown.c: Update client.
21980         * lib/fchmodat.c: Likewise.
21981         * lib/fts.c: Likewise.
21982         * lib/getdate.y: Likewise.
21983         * lib/getgroups.c: Likewise.
21984         * lib/getopt.c: Likewise.
21985         * lib/getugroups.c: Likewise.
21986         * lib/mkdir.c: Likewise.
21987         * lib/mkfifo.c: Likewise.
21988         * lib/mkfifoat.c: Likewise.
21989         * lib/mknod.c: Likewise.
21990         * lib/mknodat.c: Likewise.
21991         * lib/readlink.c: Likewise.
21992         * lib/se-context.in.h: Likewise.
21993         * lib/se-selinux.in.h: Likewise.
21994         * lib/sockets.c: Likewise.
21995         * lib/symlink.c: Likewise.
21996         * lib/symlinkat.c: Likewise.
21997         * lib/unicodeio.c: Likewise.
21998         * lib/unistr.h: Likewise.
21999         * tests/test-areadlink.c: Likewise.
22000         * tests/test-areadlinkat.c: Likewise.
22001         * tests/test-filenamecat.c: Likewise.
22002         * tests/test-fseeko.c: Likewise.
22003         * tests/test-ftello.c: Likewise.
22004         * tests/test-getdate.c: Likewise.
22005         * tests/test-getgroups.c: Likewise.
22006         * tests/test-gethostname.c: Likewise.
22007         * tests/test-quotearg.c: Likewise.
22008         * tests/test-version-etc.c: Likewise.
22009         * tests/test-xalloc-die.c: Likewise.
22010         * tests/test-xfprintf-posix.c: Likewise.
22011         * tests/test-xprintf-posix.c: Likewise.
22012         * tests/test-xvasprintf.c: Likewise.
22013
22014         tests: avoid compiler warnings
22015         * tests/test-fcntl.c (main): Delete unused parameters.
22016         * tests/test-freopen-safer.c (main): Likewise.
22017         * tests/test-xalloc-die.c (main): Mark unused parameters.
22018         * tests/test-fseeko.c (main): Likewise.
22019         * tests/test-ftello.c (main): Likewise.
22020         * tests/test-nanosleep.c (main): Avoid declaration warning.
22021         * tests/test-sleep.c (main): Likewise.
22022         * tests/test-unsetenv.c (main): Silence warning about string
22023         literal.
22024         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22025
22026 2009-12-23  Bruno Haible  <bruno@clisp.org>
22027
22028         * tests/test-localename.c (test_locale_name): New function, extracted
22029         from main. Also test mixed situations.
22030         (test_locale_name_posix, test_locale_name_environ,
22031         test_locale_name_default): New functions.
22032         (main): Invoke them all.
22033         * modules/localename-tests (configure.ac): Test for newlocale.
22034
22035 2009-12-23  Bruno Haible  <bruno@clisp.org>
22036
22037         unistd: Ensure getcwd gets declared before being overridden.
22038         * lib/unistd.in.h: Conditionally include <io.h>.
22039
22040 2009-12-22  Bruno Haible  <bruno@clisp.org>
22041
22042         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22043         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22044         (gl_WCHAR_H): Invoke it.
22045         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22046         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22047         Reported by Karl Berry <karl@freefriends.org>.
22048
22049 2009-12-22  Eric Blake  <ebb9@byu.net>
22050
22051         math, unistd: avoid redundant includes
22052         * lib/math.in.h (isnan): No need to re-include <math.h>.
22053         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22054
22055         getsubopt: work around cygwin bug
22056         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22057         avoid conflicting with system getsubopt.
22058         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22059         bug.
22060
22061         getopt: synchronize from glibc
22062         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22063         parameter order.  Adjust all callers.
22064         (_getopt_internal_r, main): Adjust quoting in error messages.
22065         Drop considerations for outdated POSIX 1003.2 error message.
22066         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22067         callers.
22068         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22069
22070         test-getopt: test stderr behavior
22071         * modules/getopt-posix-tests (Depends-on): Add dup2.
22072         * tests/test-getopt.c (ASSERT): Avoid stderr.
22073         (main): Move stderr to a temporary file.
22074         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22075         Instead, add parameter to inform caller if output occurred.
22076         (test_getopt): Adjust all existing tests to expect silence, and
22077         add new tests of leading ":".
22078         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22079         glibc shortcomings with leading "-:" or "+:" in optstring.
22080         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22081         Likewise.
22082         * doc/posix-functions/getopt.texi (getopt): Likewise.
22083
22084         test-getopt: enhance test
22085         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22086         supports optind=0.
22087         * tests/test-getopt.c (OPTIND_MIN): Move...
22088         * tests/test-getopt.h (OPTIND_MIN): ...here.
22089         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22090         Require that optind=0 works, since modern BSD supports it in
22091         addition to optreset, and since coreutils expects it.
22092         (test_getopt_long_only): New test.
22093         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22094         glibc shortcomings with 'W;', and enforcement of optind=0.
22095         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22096         Likewise.
22097
22098 2009-12-21  Bruno Haible  <bruno@clisp.org>
22099
22100         localename: Improvements for MacOS X and Cygwin.
22101         * lib/localename.h (gl_locale_name_environ): New declaration.
22102         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22103         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22104         (gl_locale_name_posix): Invoke it.
22105         (gl_locale_name_default): Add comments. Use Windows native API also on
22106         Cygwin.
22107
22108 2009-12-21  Bruno Haible  <bruno@clisp.org>
22109
22110         Update list of Win32 locale ids.
22111         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22112         (LANG_SAMI): Renamed from LANG_SAAMI.
22113         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22114         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22115         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22116         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22117         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22118         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22119         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22120         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22121         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22122         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22123         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22124         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22125         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22126         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22127         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22128         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22129         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22130         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22131         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22132         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22133         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22134         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22135         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22136         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22137         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22138         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22139         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22140         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22141         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22142         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22143         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22144         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22145         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22146         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22147         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22148         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22149         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22150         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22151         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22152         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22153         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22154         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22155         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22156         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22157         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22158         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22159         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22160         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22161         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22162         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22163         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22164         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22165         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22166         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22167         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22168         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22169         Add more languages and countries for Sami, Sorbian. Add more countries
22170         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22171         for Pashto. Change country for Syriac, Tswana.
22172
22173 2009-12-21  Eric Blake  <ebb9@byu.net>
22174
22175         test-utimens: avoid spurious failure
22176         * tests/test-chown.h (nap): Factor...
22177         * tests/nap.h: ...into new file.
22178         * tests/test-lchown.h (nap): Avoid duplication.
22179         * tests/test-utimens-common.h (nap): Use shared implementation,
22180         necessary on file systems with 1-second resolution.
22181         * modules/chown-tests (Files): Include new file.
22182         * modules/fdutimensat-tests (Files): Likewise.
22183         * modules/futimens-tests (Files): Likewise.
22184         * modules/lchown-tests (Files): Likewise.
22185         * modules/openat-tests (Files): Likewise.
22186         * modules/utimens-tests (Files): Likewise.
22187         * modules/utimensat-tests (Files): Likewise.
22188
22189 2009-12-19  Eric Blake  <ebb9@byu.net>
22190
22191         futimens, utimensat: work around Linux bug
22192         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22193         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22194         * lib/utimensat.c (rpl_utimensat): Work around it.
22195         * lib/futimens.c (rpl_futimens): Adjust comment.
22196
22197         utimens: work around Linux ctime bug
22198         * lib/utimens.c (detect_ctime_bug): New helper function.
22199         (update_timespec): Differentiate between workaround needed for
22200         this bug vs. what is needed for systems that lack utimensat.
22201         (fdutimens, lutimens): Work around bug.
22202
22203         utimens: check for ctime update
22204         * tests/test-utimens-common.h (check_ctime): Define.
22205         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22206         * tests/test-futimens.h (test_futimens): Likewise.
22207         * tests/test-lutimens.h (test_lutimens): Likewise.
22208         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22209         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22210
22211 2009-12-19  Bruno Haible  <bruno@clisp.org>
22212
22213         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22214         * tests/test-dprintf-posix2.sh: New file.
22215         * tests/test-dprintf-posix2.c: New file.
22216         * modules/dprintf-posix-tests (Files): Add them.
22217         (configure.ac): Check for getrlimit and setrlimit.
22218         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22219
22220 2009-12-19  Bruno Haible  <bruno@clisp.org>
22221
22222         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22223         * tests/test-fprintf-posix3.sh: New file.
22224         * tests/test-fprintf-posix3.c: New file.
22225         * modules/fprintf-posix-tests (Files): Add them.
22226         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22227
22228 2009-12-19  Eric Blake  <ebb9@byu.net>
22229
22230         dirfd: fix prototype
22231         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22232         * lib/dirfd.c (dirfd): Likewise.
22233
22234         canonicalize: reduce memory usage
22235         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22236         allocation to size.
22237         Reported by Solar Designer <solar@openwall.com>.
22238
22239 2009-12-19  Bruno Haible  <bruno@clisp.org>
22240
22241         New module attribute 'Applicability'.
22242         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22243         * gnulib-tool: New option --extract-applicability.
22244         (func_usage): Document it.
22245         (sed_extract_prog): Recognize it.
22246         (func_get_applicability): New function.
22247         (func_import): Generalize handling of 'link-warning' module.
22248         * modules/link-warning (Applicability): New section.
22249         * modules/arg-nonnull (Applicability): New section.
22250         Repoted by Simon Josefsson <simon@josefsson.org>.
22251
22252 2009-12-19  Bruno Haible  <bruno@clisp.org>
22253
22254         fflush: tweak
22255         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22256         * lib/fseeko.c (rpl_fseeko): Likewise.
22257
22258 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22259
22260         * lib/gl_list.h: Fix typo in comment.
22261
22262 2009-12-16  Eric Blake  <ebb9@byu.net>
22263
22264         fcntl: use to simplify other modules
22265         * modules/cloexec (Depends-on): Add fcntl.
22266         * modules/fchdir (Depends-on): Likewise.
22267         * modules/fd-safer-flag (Depends-on): Likewise.
22268         * modules/unistd-safer (Depends-on): Likewise.
22269         * modules/dup3 (configure.ac): Set module indicator.
22270         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22271         missing.
22272         * lib/fchdir.c (_gl_register_dup): Fix comment.
22273         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22274         * lib/dup-safer.c (dup_safer): Likewise.
22275         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22276         * lib/dup3.c (dup3): Likewise.
22277         * tests/test-fchdir.c (main): Enhance test.
22278         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22279
22280         fcntl: port portions of fcntl to mingw
22281         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22282         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22283         replacement for mingw.
22284         * modules/fcntl (Description): Update.
22285         (Depends-on): Add dup2.
22286         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22287         * modules/fcntl-h (Makefile.am): Substitute it.
22288         * lib/fcntl.in.h (fcntl): Update declaration.
22289         (F_DUPFD, F_GETFD): New macros, when needed.
22290         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22291         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22292         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22293         we now guarantee.
22294
22295         fcntl: work around cygwin bug in F_DUPFD
22296         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22297         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22298         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22299         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22300         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22301
22302         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22303         * modules/fcntl (Files): List new files.
22304         (configure.ac): Run a test.
22305         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22306         * lib/fcntl.c (rpl_fcntl): Likewise.
22307         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22308         (gl_FCNTL_H): Always replace fcntl.h.
22309         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22310         * lib/fcntl.in.h (fcntl): Declare replacement.
22311         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22312         needed, plus a witness.
22313         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22314         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22315         * tests/test-fcntl.c: New file.
22316         * modules/fcntl-tests: Likewise.
22317
22318         binary-io: avoid potential compilation warning
22319         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22320         directives.
22321
22322         fflush: avoid compilation error on NetBSD
22323         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22324         between off_t and fpos_t, since the latter is sometimes a struct.
22325         * lib/fseeko.c (rpl_fseeko): Likewise.
22326         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22327
22328 2009-12-15  Eric Blake  <ebb9@byu.net>
22329
22330         fcntl-h, stdio, sys_ioctl: fix declarations
22331         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22332         function must not take arguments.
22333         * lib/sys_ioctl.in.h (ioctl): Likewise.
22334         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22335         (open): Add a link warning.
22336
22337 2009-12-15  Jim Meyering  <meyering@redhat.com>
22338
22339         areadlink, areadlink-with-size: relax license to LGPLv2+
22340         * modules/areadlink (License): Relax to LGPLv2+.
22341         * modules/areadlink-with-size (License): Likewise.
22342
22343 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22344             Bruno Haible  <bruno@clisp.org>
22345
22346         *printf: Fix memory leak.
22347         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22348         * lib/vfprintf.c (vfprintf): Likewise.
22349         * lib/dprintf.c (dprintf): Likewise.
22350         * lib/vdprintf.c (vdprintf): Likewise.
22351
22352 2009-12-14  Eric Blake  <ebb9@byu.net>
22353
22354         accept4: adjust module dependencies
22355         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22356
22357         utimens: one more try at avoiding compiler warning
22358         * lib/utimens.c (lutimens): Lower scope of result.
22359
22360 2009-12-13  Bruno Haible  <bruno@clisp.org>
22361
22362         Move the malloc checking from module 'list' to new module 'xlist'.
22363         * modules/xlist: New file.
22364         * lib/gl_xlist.h: New file.
22365         * lib/gl_xlist.c: New file.
22366         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22367         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22368         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22369         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22370         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22371         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22372         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22373         gl_sortedlist_nx_add): New declarations.
22374         (struct gl_list_implementation): Rename and change methods accordingly.
22375         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22376         (gl_list_nx_create): Renamed from gl_list_create.
22377         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22378         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22379         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22380         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22381         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22382         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22383         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22384         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22385         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22386         gl_list_create_empty.
22387         (gl_list_nx_create): Renamed from gl_list_create.
22388         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22389         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22390         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22391         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22392         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22393         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22394         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22395         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22396         * lib/gl_array_list.c: Don't include xalloc.h.
22397         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22398         NULL upon out-of-memory.
22399         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22400         out-of-memory.
22401         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22402         Change return type to 'int'.
22403         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22404         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22405         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22406         upon out-of-memory.
22407         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22408         upon out-of-memory.
22409         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22410         upon out-of-memory.
22411         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22412         upon out-of-memory.
22413         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22414         out-of-memory.
22415         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22416         Update.
22417         (gl_array_list_implementation): Update.
22418         * lib/gl_carray_list.c: Don't include xalloc.h.
22419         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22420         Return NULL upon out-of-memory.
22421         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22422         out-of-memory.
22423         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22424         Change return type to 'int'.
22425         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22426         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22427         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22428         upon out-of-memory.
22429         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22430         upon out-of-memory.
22431         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22432         out-of-memory.
22433         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22434         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22435         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22436         Update.
22437         (gl_carray_list_implementation): Update.
22438         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22439         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22440         gl_linked_create_empty. Return NULL upon out-of-memory.
22441         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22442         out-of-memory.
22443         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22444         Change return type to 'int'. Return -1 upon out-of-memory.
22445         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22446         out-of-memory.
22447         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22448         upon out-of-memory.
22449         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22450         upon out-of-memory.
22451         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22452         NULL upon out-of-memory.
22453         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22454         upon out-of-memory.
22455         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22456         out-of-memory.
22457         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22458         Update.
22459         * lib/gl_linked_list.c: Don't include xalloc.h.
22460         (gl_linked_list_implementation): Update.
22461         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22462         (add_to_bucket): Change return type to 'int'.
22463         (gl_linkedhash_list_implementation): Update.
22464         * lib/gl_anytree_list1.h (free_subtree): New function.
22465         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22466         gl_tree_create_empty. Return NULL upon out-of-memory.
22467         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22468         Change return type to 'int'. Return -1 upon out-of-memory.
22469         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22470         out-of-memory.
22471         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22472         (gl_tree_remove_node): New function, moved here from
22473         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22474         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22475         Update.
22476         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22477         malloc, not xmalloc. Return NULL upon out-of-memory.
22478         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22479         out-of-memory.
22480         (gl_tree_remove_node_from_tree): New function, extracted from
22481         gl_tree_remove_node.
22482         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22483         upon out-of-memory.
22484         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22485         out-of-memory.
22486         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22487         upon out-of-memory.
22488         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22489         upon out-of-memory.
22490         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22491         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22492         not xmalloc. Return NULL upon out-of-memory.
22493         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22494         out-of-memory.
22495         (gl_tree_remove_node_from_tree): New function, extracted from
22496         gl_tree_remove_node.
22497         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22498         upon out-of-memory.
22499         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22500         out-of-memory.
22501         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22502         upon out-of-memory.
22503         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22504         upon out-of-memory.
22505         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22506         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22507         gl_anytree_list1.h before gl_anyavltree_list2.h.
22508         (gl_avltree_list_implementation): Update.
22509         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22510         gl_anytree_list1.h before gl_anyavltree_list2.h.
22511         (gl_rbtree_list_implementation): Update.
22512         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22513         Change return type to 'int'. Return -1 upon out-of-memory. Use
22514         __builtin_expect.
22515         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22516         (gl_avltreehash_list_implementation): Update.
22517         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22518         (gl_rbtreehash_list_implementation): Update.
22519         * modules/array-list (Depends-on): Remove xalloc.
22520         * modules/carray-list (Depends-on): Likewise.
22521         * modules/linked-list (Depends-on): Likewise.
22522         * modules/linkedhash-list (Depends-on): Likewise.
22523         * modules/avltree-list (Depends-on): Likewise.
22524         * modules/rbtree-list (Depends-on): Likewise.
22525         * modules/avltreehash-list (Depends-on): Likewise.
22526         * modules/rbtreehash-list (Depends-on): Likewise.
22527
22528         * modules/xsublist: New file.
22529         * lib/gl_xsublist.h: New file.
22530         * lib/gl_xsublist.c: New file.
22531         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
22532         (gl_sublist_nx_create): New declaration.
22533         * lib/gl_sublist.c: Don't include xalloc.h.
22534         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
22535         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
22536         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
22537         Change return type to 'int'. Return -1 upon out-of-memory.
22538         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
22539         upon out-of-memory.
22540         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
22541         NULL upon out-of-memory.
22542         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
22543         upon out-of-memory.
22544         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
22545         NULL upon out-of-memory.
22546         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
22547         NULL upon out-of-memory.
22548         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
22549         upon out-of-memory.
22550         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
22551         (gl_sublist_list_implementation): Update.
22552         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
22553         upon out-of-memory.
22554         * modules/sublist (Depends-on): Remove xalloc.
22555
22556         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
22557         * tests/test-carray_list.c: Likewise.
22558         * tests/test-linked_list.c: Likewise.
22559         * tests/test-linkedhash_list.c: Likewise.
22560         * tests/test-avltree_list.c: Likewise.
22561         * tests/test-rbtree_list.c: Likewise.
22562         * tests/test-avltreehash_list.c: Likewise.
22563         * tests/test-rbtreehash_list.c: Likewise.
22564         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
22565         * modules/carray-list-tests (Makefile.am): Likewise.
22566         * modules/linked-list-tests (Makefile.am): Likewise.
22567         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22568         * modules/avltree-list-tests (Makefile.am): Likewise.
22569         * modules/rbtree-list-tests (Makefile.am): Likewise.
22570         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22571         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22572
22573         * NEWS: Mention the changes.
22574
22575         * lib/clean-temp.c: Include gl_xlist.h.
22576         * modules/clean-temp (Depends-on): Add xlist.
22577
22578         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
22579         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
22580
22581         * tests/test-array_oset.c: Include gl_xlist.h.
22582         * modules/array-oset-tests (Depends-on): Add xlist.
22583
22584         Reported by José E. Marchesi <jemarch@gnu.org>.
22585
22586 2009-12-13  Bruno Haible  <bruno@clisp.org>
22587
22588         Move the malloc checking from module 'oset' to new module 'xoset'.
22589         * modules/xoset: New file.
22590         * lib/gl_xoset.h: New file.
22591         * lib/gl_xoset.c: New file.
22592         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
22593         declarations.
22594         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
22595         (struct gl_oset_implementation): Rename and change methods accordingly.
22596         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
22597         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22598         'int'. Mark as __warn_unused_result__.
22599         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
22600         gl_oset_create_empty.
22601         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22602         'int'.
22603         * lib/gl_array_oset.c: Don't include xalloc.h.
22604         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
22605         malloc, not xmalloc.
22606         (grow): Change return type to 'int'. Don't call xalloc_die.
22607         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
22608         to 'int'.
22609         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
22610         'int'.
22611         (gl_array_oset_implementation): Update.
22612         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
22613         gl_tree_create_empty.
22614         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
22615         'int'.
22616         * lib/gl_avltree_oset.c: Don't include xalloc.h.
22617         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22618         xmalloc.
22619         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22620         not xmalloc.
22621         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22622         xmalloc.
22623         (gl_avltree_oset_implementation): Update.
22624         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
22625         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22626         xmalloc.
22627         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22628         not xmalloc.
22629         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22630         xmalloc.
22631         (gl_rbtree_oset_implementation): Update.
22632         * modules/array-oset (Depends-on): Remove xalloc.
22633         * modules/avltree-oset (Depends-on): Likewise.
22634         * modules/rbtree-oset (Depends-on): Likewise.
22635         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
22636         * tests/test-avltree_oset.c: Likewise.
22637         * tests/test-rbtree_oset.c: Likewise.
22638         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22639         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
22640         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22641         * NEWS: Mention the change.
22642
22643 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
22644
22645         maint.mk: allow a project to override release-prep commands
22646         * top/maint.mk (alpha, beta, stable): Move release-preparatory
22647         commands into a new rule.
22648         (release-prep): New rule.
22649         (release-prep-hook): New overridable variable.
22650
22651 2009-12-13  Bruno Haible  <bruno@clisp.org>
22652
22653         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
22654
22655 2009-12-13  Jim Meyering  <meyering@redhat.com>
22656
22657         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
22658         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
22659
22660 2009-12-12  Bruno Haible  <bruno@clisp.org>
22661
22662         duplocale: Tweak.
22663         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
22664
22665 2009-12-12  Karl Berry  <karl@gnu.org>
22666
22667         * config/srclist.txt (strtoll.c): tab changes, no more sync.
22668
22669 2009-12-12  Bruno Haible  <bruno@clisp.org>
22670
22671         * m4/po.m4: Undo incorrect untabification.
22672
22673 2009-12-12  Bruno Haible  <bruno@clisp.org>
22674
22675         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
22676         * modules/c-strtod (Depends-on): Add locale.
22677         * modules/c-strtold (Depends-on): Likewise.
22678
22679 2009-12-12  Bruno Haible  <bruno@clisp.org>
22680
22681         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
22682
22683 2009-12-11  Eric Blake  <ebb9@byu.net>
22684
22685         setenv: relax requirement in light of POSIX ruling
22686         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
22687         not NULL.
22688         * tests/test-setenv.c (main): Relax test.
22689         * tests/test-unsetenv.c (main): Likewise.
22690         * doc/posix-functions/setenv.texi (setenv): Document this.
22691         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22692
22693 2009-12-11  Bruno Haible  <bruno@clisp.org>
22694
22695         New module 'fd-safer-flag'.
22696         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22697         * lib/dup-safer.c (dup_safer_flag): Remove function.
22698         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22699         * lib/fd-safer.c (fd_safer_flag): Remove function.
22700         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22701         * modules/cloexec (configure.ac): Drop indicator macro.
22702         * modules/fd-safer-flag: New file.
22703         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22704         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22705         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22706
22707 2009-12-11  Bruno Haible  <bruno@clisp.org>
22708
22709         Tests for module 'nl_langinfo'.
22710         * modules/nl_langinfo-tests: New file.
22711         * tests/test-nl_langinfo.sh: New file.
22712         * tests/test-nl_langinfo.c: New file.
22713
22714         New module 'nl_langinfo'.
22715         * lib/nl_langinfo.c: New file.
22716         * m4/nl_langinfo.m4: New file.
22717         * modules/nl_langinfo: New file.
22718         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22719
22720 2009-12-11  Bruno Haible  <bruno@clisp.org>
22721
22722         Tests for module 'langinfo'.
22723         * modules/langinfo-tests: New file.
22724         * tests/test-langinfo.c: New file.
22725
22726         New module 'langinfo'.
22727         * lib/langinfo.in.h: New file.
22728         * m4/langinfo_h.m4: New file.
22729         * modules/langinfo: New file.
22730         * doc/posix-headers/langinfo.texi: Mention the new module.
22731
22732 2009-12-11  Bruno Haible  <bruno@clisp.org>
22733
22734         * lib/config.charset: Untabify.
22735
22736 2009-12-11  Bruno Haible  <bruno@clisp.org>
22737
22738         * modules/unistd-safer (configure.ac): Drop indicator macro.
22739
22740 2009-12-11  Bruno Haible  <bruno@clisp.org>
22741
22742         Move pipe2-safer code to its own file.
22743         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22744         * lib/pipe-safer.c (pipe2_safer): Remove function.
22745         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22746         (Makefile.am): Add it to lib_SOURCES.
22747
22748 2009-12-10  Bruno Haible  <bruno@clisp.org>
22749
22750         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22751
22752 2009-12-10  Bruno Haible  <bruno@clisp.org>
22753
22754         Declare which arguments expect non-NULL values, for GCC and clang.
22755         * build-aux/arg-nonnull.h: New file.
22756         * modules/arg-nonnull: New file.
22757         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22758         (inet_ntop, inet_pton): Use it.
22759         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22760         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22761         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22762         (open, openat): Use it.
22763         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22764         (fnmatch): Use it.
22765         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22766         (getopt, getopt_long, getopt_long_only): Use it.
22767         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22768         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22769         Use it.
22770         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22771         (iconv_open): Use it.
22772         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22773         (strtoimax, strtoumax): Use it.
22774         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22775         (duplocale): Use it.
22776         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22777         (frexp, frexpl): Use it.
22778         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22779         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22780         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22781         (tsearch, tfind, tdelete, twalk): Use it.
22782         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22783         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22784         sigpending): Use it.
22785         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22786         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22787         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22788         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22789         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22790         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22791         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22792         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22793         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22794         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22795         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22796         Use it.
22797         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
22798         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
22799         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
22800         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
22801         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
22802         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
22803         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
22804         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
22805         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
22806         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
22807         strtoull, unsetenv): Use it.
22808         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
22809         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22810         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22811         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22812         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22813         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
22814         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
22815         (strcasecmp, strncasecmp): Use it.
22816         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
22817         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
22818         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
22819         rpl_setsockopt): Use it.
22820         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
22821         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
22822         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
22823         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
22824         (gettimeofday): Use it.
22825         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
22826         (times): Use it.
22827         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
22828         (uname): Use it.
22829         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
22830         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
22831         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
22832         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
22833         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
22834         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
22835         unlinkat, write): Use it.
22836         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
22837         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
22838         * lib/argv-iter.h: Include arg-nonnull.h.
22839         (_ATTRIBUTE_NONNULL_): Remove macro.
22840         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
22841         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
22842         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
22843         optimization.
22844         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
22845         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
22846         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
22847         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
22848         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
22849         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
22850         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
22851         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
22852         * modules/arpa_inet (Depends-on): Add arg-nonnull.
22853         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
22854         * modules/dirent (Depends-on): Add arg-nonnull.
22855         (Makefile.am): Insert arg-nonnull.h into dirent.h.
22856         * modules/fcntl-h (Depends-on): Add arg-nonnull.
22857         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
22858         * modules/fnmatch (Depends-on): Add arg-nonnull.
22859         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
22860         * modules/getopt-posix (Depends-on): Add arg-nonnull.
22861         (Makefile.am): Insert arg-nonnull.h into getopt.h.
22862         * modules/glob (Depends-on): Add arg-nonnull.
22863         (Makefile.am): Insert arg-nonnull.h into glob.h.
22864         * modules/iconv_open (Depends-on): Add arg-nonnull.
22865         (Makefile.am): Insert arg-nonnull.h into iconv.h.
22866         * modules/inttypes (Depends-on): Add arg-nonnull.
22867         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
22868         * modules/locale (Depends-on): Add arg-nonnull.
22869         (Makefile.am): Insert arg-nonnull.h into locale.h.
22870         * modules/math (Depends-on): Add arg-nonnull.
22871         (Makefile.am): Insert arg-nonnull.h into math.h.
22872         * modules/netdb (Depends-on): Add arg-nonnull.
22873         (Makefile.am): Insert arg-nonnull.h into netdb.h.
22874         * modules/search (Depends-on): Add arg-nonnull.
22875         (Makefile.am): Insert arg-nonnull.h into search.h.
22876         * modules/signal (Depends-on): Add arg-nonnull.
22877         (Makefile.am): Insert arg-nonnull.h into signal.h.
22878         * modules/spawn (Depends-on): Add arg-nonnull.
22879         (Makefile.am): Insert arg-nonnull.h into spawn.h.
22880         * modules/stdio (Depends-on): Add arg-nonnull.
22881         (Makefile.am): Insert arg-nonnull.h into stdio.h.
22882         * modules/stdlib (Depends-on): Add arg-nonnull.
22883         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
22884         * modules/string (Depends-on): Add arg-nonnull.
22885         (Makefile.am): Insert arg-nonnull.h into string.h.
22886         * modules/strings (Depends-on): Add arg-nonnull.
22887         (Makefile.am): Insert arg-nonnull.h into strings.h.
22888         * modules/sys_socket (Depends-on): Add arg-nonnull.
22889         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
22890         * modules/sys_stat (Depends-on): Add arg-nonnull.
22891         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
22892         * modules/sys_time (Depends-on): Add arg-nonnull.
22893         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
22894         * modules/sys_times (Depends-on): Add arg-nonnull.
22895         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
22896         * modules/sys_utsname (Depends-on): Add arg-nonnull.
22897         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
22898         * modules/time (Depends-on): Add arg-nonnull.
22899         (Makefile.am): Insert arg-nonnull.h into time.h.
22900         * modules/unistd (Depends-on): Add arg-nonnull.
22901         (Makefile.am): Insert arg-nonnull.h into unistd.h.
22902         * modules/wchar (Depends-on): Add arg-nonnull.
22903         (Makefile.am): Insert arg-nonnull.h into wchar.h.
22904         * modules/argv-iter (Depends-on): Add arg-nonnull.
22905         * tests/test-canonicalize.c (null_ptr): New function.
22906         (main): Use it.
22907         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
22908         (main): Use it.
22909         * tests/test-memmem.c (null_ptr): New function.
22910         (main): Use it.
22911         Reported by Jim Meyering.
22912
22913 2009-12-10  Bruno Haible  <bruno@clisp.org>
22914
22915         Use spaces for indentation, not tabs.
22916         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22917         * m4/*.m4: Untabify.
22918         * build-aux/*.h: Untabify.
22919         * tests/**/*.[hc]: Untabify.
22920         * README: New section "Indent with spaces, not TABs", based on
22921         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
22922         * NEWS: Mention the change.
22923
22924 2009-12-10  Bruno Haible  <bruno@clisp.org>
22925
22926         pty test: Fix link error.
22927         * modules/pty-tests (Makefile.am): Add the default LDADD value to
22928         test_pty_LDADD.
22929
22930 2009-12-07  Simon Josefsson  <simon@josefsson.org>
22931
22932         * modules/pty: New file.
22933         * modules/pty-tests: New file.
22934         * m4/pty.m4: New file.
22935         * tests/test-pty.c: New file.
22936         * doc/glibc-headers/pty.texi: Modified.
22937         * doc/glibc-functions/forkpty.texi: Modified.
22938         * doc/glibc-functions/openpty.texi: Modified.
22939
22940 2009-12-10  Bruno Haible  <bruno@clisp.org>
22941
22942         Avoid syntax error in C++ mode.
22943         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
22944
22945 2009-12-10  Bruno Haible  <bruno@clisp.org>
22946
22947         Use sed with option -e.
22948         * gnulib-tool (func_version, func_emit_copyright_notice,
22949         func_emit_initmacro_end, func_import, func_create_testdir): Pass
22950         option -e to sed.
22951         * modules/link-warning (Makefile.am): Likewise.
22952
22953 2009-12-10  Jim Meyering  <meyering@redhat.com>
22954
22955         mgetgroups: do not write bytes beyond end of malloc'd buffer
22956         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
22957         username, we call getgroups with a one-element-shorter buffer,
22958         but still told it the length was original, max_n_groups.
22959
22960 2009-12-09  Eric Blake  <ebb9@byu.net>
22961
22962         cloexec: relax license
22963         * modules/cloexec (Maintainer): Add myself.
22964         (License): Use LGPL, not GPL.
22965
22966         link-warning: optimize generation
22967         * modules/link-warning (Makefile.am): Reduce process usage.
22968
22969 2009-12-09  Bruno Haible  <bruno@clisp.org>
22970
22971         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
22972         workaround was added on 2009-11-17.
22973
22974 2009-12-09  Jim Meyering  <meyering@redhat.com>
22975             Bruno Haible  <bruno@clisp.org>
22976
22977         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
22978         * modules/link-warning (Makefile.am): Make the comment-removing sed
22979         command more robust in the face of bootstrap-prepended comment lines.
22980
22981 2009-12-09  Bruno Haible  <bruno@clisp.org>
22982
22983         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
22984         most one group.
22985
22986 2009-12-09  Simon Josefsson <simon@josefsson.org>
22987             Bruno Haible  <bruno@clisp.org>
22988
22989         * build-aux/link-warning.h: Add copyright notice.
22990         * modules/link-warning (Makefile.am): Generate link-warning.h from
22991         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
22992         * NEWS: Mention change in link-warning module.
22993         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
22994         * modules/dirent (Makefile.am): Add dependency to dirent.h.
22995         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
22996         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
22997         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
22998         * modules/math (Makefile.am): Add dependency to math.h.
22999         * modules/search (Makefile.am): Add dependency to search.h.
23000         * modules/signal (Makefile.am): Add dependency to signal.h.
23001         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23002         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23003         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23004         * modules/string (Makefile.am): Add dependency to string.h.
23005         * modules/strings (Makefile.am): Add dependency to strings.h.
23006         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23007         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23008         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23009         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23010         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23011         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23012         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23013         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23014         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23015
23016 2009-12-09  Bruno Haible  <bruno@clisp.org>
23017
23018         fchdir: Optimize away rpl_fstat when possible.
23019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23020         REPLACE_OPEN_DIRECTORY.
23021         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23022
23023 2009-12-09  Bruno Haible  <bruno@clisp.org>
23024
23025         * lib/fchdir.c: Update comment.
23026
23027 2009-12-09  Bruno Haible  <bruno@clisp.org>
23028
23029         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23030
23031 2009-12-08  Eric Blake  <ebb9@byu.net>
23032
23033         fchdir: avoid memory leak on re-registration.
23034         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23035
23036 2009-12-08  Jim Meyering  <meyering@redhat.com>
23037
23038         init.sh: avoid Solaris 10 /bin/sh portability problem
23039         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23040         sourced script:
23041           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23042           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23043           bar
23044         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23045         and two tests used that idiom.
23046         * tests/init.sh: Update suggested usage comments.
23047         (path_prepend_): New function, to be used in place
23048         of the --src-path=DIR option.
23049         (setup_): Move PATH-prepending code into path_prepend_.
23050         * tests/test-pread.sh: Adapt to new usage.
23051         * tests/test-xalloc-die.sh: Likewise.
23052
23053 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23054
23055         * doc/gnulib.texi (Glibc pty.h): Add.
23056         * doc/glibc-functions/forkpty.texi: Add.
23057         * doc/glibc-functions/openpty.texi: Add.
23058         Suggested by Bruno Haible.
23059
23060 2009-12-08  Eric Blake  <ebb9@byu.net>
23061
23062         fchdir: fix logic bugs
23063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23064         * tests/test-fchdir.c (main): Enhance test.
23065         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23066         is in use.
23067
23068         dup2: fix logic bugs
23069         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23070         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23071         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23072         exists.
23073         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23074
23075 2009-12-07  Eric Blake  <ebb9@byu.net>
23076
23077         unlink: fix m4 detection
23078         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23079
23080         unistd-safer: add unit test
23081         * modules/unistd-safer-tests: New file.
23082         * tests/test-dup-safer.c: Likewise.
23083         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23084         * tests/test-dup2.c (setmode): Likewise.
23085         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23086
23087         cloexec: preserve text vs. binary across dup_cloexec
23088         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23089         mode.
23090         * modules/dup2-tests (Depends-on): Add binary-io.
23091         * modules/cloexec-tests (Depends-on): Likewise.
23092         * tests/test-dup2.c (setmode, is_mode): New helpers.
23093         (main): Add tests that translation mode is preserved.
23094         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23095         Reported by Bruno Haible.
23096
23097         mgetgroups: reduce duplicate listings
23098         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23099         resulting array.
23100         * tests/test-chown.h (test_chown): Simplify client.
23101         * tests/test-lchown.h (test_lchown): Likewise.
23102
23103 2009-12-06  Bruno Haible  <bruno@clisp.org>
23104
23105         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23106         value.
23107
23108 2009-12-06  Bruno Haible  <bruno@clisp.org>
23109
23110         * lib/progname.c: Include stdio.h, stdlib.h.
23111         (set_program_name): Reject a NULL argument.
23112
23113 2009-12-05  Eric Blake  <ebb9@byu.net>
23114
23115         pipe2-safer: new module
23116         * modules/pipe2-safer: New file.
23117         * lib/unistd-safer.h (pipe2_safer): New prototype.
23118         * lib/unistd--.h (pipe2): New wrapper.
23119         * lib/pipe-safer.c (pipe2_safer): New function.
23120         * modules/pipe (Depends-on): Add pipe2-safer.
23121         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23122
23123         stdlib-safer: preserve cloexec flag for mkostemp[s]
23124         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23125         fd_safer_flag.
23126
23127         unistd-safer: allow preservation of cloexec status via flag
23128         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23129         prototypes.
23130         * lib/dup-safer.c (dup_safer_flag): New function.
23131         * lib/fd-safer.c (fd_safer_flag): Likewise.
23132         * modules/cloexec (configure.ac): Set witness.
23133
23134         test-dup2: enhance test
23135         * modules/dup2-tests (Depends-on): Add cloexec.
23136         * tests/test-dup2.c (main): Enhance test.
23137
23138         cloexec: add dup_cloexec
23139         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23140         header and comments.
23141         * lib/cloexec.c (set_cloexec_flag): Add comments.
23142         (dup_cloexec): New function, with mingw implementation borrowed
23143         from...
23144         * lib/w32spawn.h (dup_noinherit): ...here.
23145         * modules/execute (Depends-on): Add cloexec.
23146         * modules/pipe (Depends-on): Likewise.
23147         * modules/cloexec (Depends-on): Add dup2.
23148         * modules/cloexec-tests (Files): New file.
23149         * tests/test-cloexec.c: Likewise.
23150
23151         test-xalloc-die: fix test for mingw
23152         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23153         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23154         directory and .exe suffix off argv[0] output.
23155
23156         test-fseeko: fix test for mingw
23157         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23158         than undefining fseek, so test will pass on mingw.
23159
23160 2009-12-05  Bruno Haible  <bruno@clisp.org>
23161
23162         * lib/progname.h (set_program_name): Clarify specification.
23163         * lib/progname.c (set_program_name): Likewise.
23164         Reported by Jim Meyering.
23165
23166 2009-12-05  Jim Meyering  <meyering@redhat.com>
23167
23168         maint.mk: backslash-escape parens in default regexp
23169         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23170         backslash-escape the literal parentheses.
23171
23172         maint.mk: news-date-check: use grep -E
23173         * top/maint.mk (today): Define a Make variable, not a...
23174         (news-date-check): ...shell variable.
23175         (news-date-regexp): Use the Make variable.
23176         Use grep's -E option.  Change the failing diagnostic to mention
23177         the variable, $(news-date-regexp).
23178
23179 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23180
23181         maintainer-makefile: allow customization of NEWS entry format
23182         * top/maint.mk (news-date-regexp): New overridable variable.
23183         (news-date-check): Use it.
23184
23185 2009-12-04  Eric Blake  <ebb9@byu.net>
23186
23187         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23188         * lib/mgetgroups.h (xgetgroups): New prototype.
23189         * lib/mgetgroups.c (xgetgroups): New wrapper.
23190         (mgetgroups): Handle ENOSYS.
23191         * modules/mgetgroups (Depends-on): Add realloc.
23192         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23193
23194         mgetgroups: avoid argument promotion issues with -1
23195         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23196         for invalid gid_t.
23197         * tests/test-chown.h (getegid, test_chown): Likewise.
23198         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23199
23200 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23201
23202         exclude: Fix header file problems.
23203         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23204
23205 2009-12-01  Jim Meyering  <meyering@redhat.com>
23206
23207         fts: fts_open: do not let an empty string cause immediate failure
23208         This is required in support of GNU rm, for which the command
23209         "rm A '' B" must process and remove both A and B, in spite of
23210         the empty string argument.
23211         * lib/fts.c (fts_open): Do not let the presence of an empty string
23212         cause fts_open to fail immediately.  Most fts-using tools must be
23213         able to process all arguments, in order, and can be expected to
23214         diagnose such arguments themselves.
23215
23216 2009-11-30  Eric Blake  <ebb9@byu.net>
23217
23218         utimens: fix compilation error
23219         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23220         Declare variable at right scope.
23221
23222 2009-11-29  Jim Meyering  <meyering@redhat.com>
23223
23224         bootstrap: handle perl-5.11's changed --version output
23225         * build-aux/bootstrap (get_version): Handle perl separately,
23226         since perl-5.11's --version output is different.
23227
23228 2009-11-28  Jim Meyering  <meyering@redhat.com>
23229
23230         userspec: depend on the inttostr module, too
23231         * modules/userspec (Depends-on): Add inttostr.
23232
23233         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23234         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23235         number of MAXUID when it evaluates to (uid_t) -1.
23236         Likewise for group ID.  Reported by Matt McCutchen in
23237         <http://savannah.gnu.org/bugs/?28113>
23238
23239         userspec: reformat to use spaces, not TABs
23240         * lib/userspec.c: Expand TABs to spaces.
23241         Add Emacs' "indent-tabs-mode: nil" hint.
23242
23243 2009-11-27  Eric Blake  <ebb9@byu.net>
23244
23245         getopt-gnu: flush out another BSD bug
23246         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23247         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23248         flush out BSD bug.
23249         * tests/test-getopt.h (test_getopt): End lists with NULL.
23250         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23251         (test_getopt_long_posix): Enhance test.
23252         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23253         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23254         getopt-gnu.
23255         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23256         Likewise.
23257
23258 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23259
23260         * modules/idpriv-droptemp-tests (Notice): Fix text.
23261
23262 2009-11-27  Jim Meyering  <meyering@redhat.com>
23263
23264         test-xalloc-die: avoid spurious failure due to libtool argv difference
23265         In a libtool-enabled project, this test would fail due to a difference
23266         in the emitted program name, e.g.,
23267         -test-xalloc-die: memory exhausted
23268         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23269         Use program to avoid that.
23270         * modules/xalloc-die-tests (Depends-on): Add progname.
23271         * tests/test-xalloc-die.c: Include progname.h".
23272         (program_name): Remove decl.
23273         (main): Call set_program_name.
23274         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23275
23276 2009-11-26  Richard Jones  <rjones@redhat.com>
23277
23278         w32sock: leave win32 error in place.
23279         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23280
23281 2009-11-26  Eric Blake  <ebb9@byu.net>
23282
23283         init.sh: suggest to use skip_ and fail_ functions in comments
23284         * tests/init.sh: Add a sentence.
23285
23286 2009-11-25  Bruno Haible  <bruno@clisp.org>
23287
23288         init.sh: add documentation in comments
23289         * tests/init.sh: Add some developer and user documentation.
23290
23291 2009-11-26  Jim Meyering  <meyering@redhat.com>
23292
23293         init.sh: accommodate even those who specify bogus srcdir manually
23294         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23295         configure-time tests to be sanitized, so that there is no need to
23296         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23297         (with no double quotes) suffices.  However, since tests may be
23298         invoked manually, and since you may explicitly set srcdir to the
23299         name of a directory containing spaces, do quote its uses here.
23300         * tests/test-pread.sh: Likewise.
23301         Suggested by Bruno Haible.
23302
23303         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23304         * tests/test-pread.sh: Write no data into the pipe, because
23305         test-pread actually reads none.  This avoids a diagnostic,
23306         "bash: echo: write error: Broken pipe", that arises in the unusual
23307         event something is ignoring SIGPIPE, and might be interpreted
23308         as some sort of failure.  Reported by Bruno Haible.
23309
23310 2009-11-25  Jim Meyering  <meyering@redhat.com>
23311
23312         test-pread: cover failure with ESPIPE and EINVAL
23313         * tests/test-pread.c (main): Test for failure, too.
23314         * tests/test-pread.sh: Invoke with stdin on a pipe.
23315         Suggested by Eric Blake.
23316
23317         pread: improvement and fix
23318         * modules/pread (Depends-on): Depend on lseek, for portability to
23319         e.g., mingw.  Suggested by Eric Blake.
23320         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23321
23322         unistd.in.h: correct declaration of pread
23323         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23324         Reported by Richard W.M. Jones.
23325
23326         test-pread.sh: distribute the test script
23327         * modules/pread-tests (Files): Include test-pread.sh.
23328
23329         test-pread.sh: clean up
23330         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23331         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23332         That is unnecessary, since it's always ".".
23333         Suggestion from Eric Blake.
23334
23335         test-pread.sh: make executable
23336         * tests/test-pread.sh: Set executable bit.
23337         Reported by Eric Blake.
23338
23339         correct typo in test-pread.sh
23340         * tests/test-pread.sh: Add #! line.
23341
23342         test pread
23343         * tests/test-pread.c: New file.
23344         * tests/test-pread.sh: Likewise.
23345         * modules/pread-tests: Likewise.
23346
23347         pread: new module
23348         * modules/pread: New file.
23349         * lib/unistd.in.h (pread): Define/declare.
23350         * lib/pread.c (pread): New file.
23351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23352         * modules/unistd (Makefile.am): Substitute witnesses.
23353         * doc/posix-functions/pread.texi (pread): Update.
23354         * MODULES.html.sh: Add pread.
23355
23356 2009-11-25  Jim Meyering  <meyering@redhat.com>
23357
23358         tests/init.sh: new file to be used via most *.sh tests
23359         * tests/init.sh: New file.
23360
23361 2009-11-25  Eric Blake  <ebb9@byu.net>
23362
23363         utimens: work around older Linux failure with symlinks
23364         * lib/utimens.c (lutimensat_works_really): New variable.
23365         (fdutimens, lutimens): Use it to manage kernels that support
23366         nanosecond times on files, but not on symlinks.
23367         Reported by OndÅ™ej Vašík.
23368
23369         utimes: fix configure grammar
23370         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23371
23372 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23373
23374         regex: Fix fastmap for multibyte character ranges.
23375         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23376         characters when a multibyte character range is included.
23377
23378 2009-11-22  Andy Wingo  <wingo@pobox.com>
23379
23380         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23381         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23382
23383 2009-11-24  Bruno Haible  <bruno@clisp.org>
23384
23385         doc: Most *_l functions exist in MacOS X 10.5.
23386         * doc/posix-functions/duplocale.texi: Update platforms list.
23387         * doc/posix-functions/freelocale.texi: Likewise.
23388         * doc/posix-functions/newlocale.texi: Likewise.
23389         * doc/posix-functions/uselocale.texi: Likewise.
23390         * doc/posix-functions/isalnum_l.texi: Likewise.
23391         * doc/posix-functions/isalpha_l.texi: Likewise.
23392         * doc/posix-functions/isblank_l.texi: Likewise.
23393         * doc/posix-functions/iscntrl_l.texi: Likewise.
23394         * doc/posix-functions/isdigit_l.texi: Likewise.
23395         * doc/posix-functions/isgraph_l.texi: Likewise.
23396         * doc/posix-functions/islower_l.texi: Likewise.
23397         * doc/posix-functions/isprint_l.texi: Likewise.
23398         * doc/posix-functions/ispunct_l.texi: Likewise.
23399         * doc/posix-functions/isspace_l.texi: Likewise.
23400         * doc/posix-functions/isupper_l.texi: Likewise.
23401         * doc/posix-functions/iswalnum_l.texi: Likewise.
23402         * doc/posix-functions/iswalpha_l.texi: Likewise.
23403         * doc/posix-functions/iswblank_l.texi: Likewise.
23404         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23405         * doc/posix-functions/iswctype_l.texi: Likewise.
23406         * doc/posix-functions/iswdigit_l.texi: Likewise.
23407         * doc/posix-functions/iswgraph_l.texi: Likewise.
23408         * doc/posix-functions/iswlower_l.texi: Likewise.
23409         * doc/posix-functions/iswprint_l.texi: Likewise.
23410         * doc/posix-functions/iswpunct_l.texi: Likewise.
23411         * doc/posix-functions/iswspace_l.texi: Likewise.
23412         * doc/posix-functions/iswupper_l.texi: Likewise.
23413         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23414         * doc/posix-functions/isxdigit_l.texi: Likewise.
23415         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23416         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23417         * doc/posix-functions/strcoll_l.texi: Likewise.
23418         * doc/posix-functions/strfmon_l.texi: Likewise.
23419         * doc/posix-functions/strftime_l.texi: Likewise.
23420         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23421         * doc/posix-functions/strxfrm_l.texi: Likewise.
23422         * doc/posix-functions/tolower_l.texi: Likewise.
23423         * doc/posix-functions/toupper_l.texi: Likewise.
23424         * doc/posix-functions/towctrans_l.texi: Likewise.
23425         * doc/posix-functions/towlower_l.texi: Likewise.
23426         * doc/posix-functions/towupper_l.texi: Likewise.
23427         * doc/posix-functions/wcscoll_l.texi: Likewise.
23428         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23429         * doc/posix-functions/wctrans_l.texi: Likewise.
23430         * doc/posix-functions/wctype_l.texi: Likewise.
23431         * doc/glibc-functions/strptime_l.texi: Likewise.
23432         * doc/glibc-functions/strtod_l.texi: Likewise.
23433         * doc/glibc-functions/strtof_l.texi: Likewise.
23434         * doc/glibc-functions/strtol_l.texi: Likewise.
23435         * doc/glibc-functions/strtold_l.texi: Likewise.
23436         * doc/glibc-functions/strtoll_l.texi: Likewise.
23437         * doc/glibc-functions/strtoul_l.texi: Likewise.
23438         * doc/glibc-functions/strtoull_l.texi: Likewise.
23439         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23440         * doc/glibc-functions/wcstod_l.texi: Likewise.
23441         * doc/glibc-functions/wcstof_l.texi: Likewise.
23442         * doc/glibc-functions/wcstol_l.texi: Likewise.
23443         * doc/glibc-functions/wcstold_l.texi: Likewise.
23444         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23445         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23446         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23447
23448 2009-11-24  Bruno Haible  <bruno@clisp.org>
23449
23450         duplocale: Fix logic bug.
23451         * lib/duplocale.c: Don't include <langinfo.h>.
23452         (_NL_LOCALE_NAME): Remove macro.
23453         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23454         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23455
23456 2009-11-23  Jim Meyering  <meyering@redhat.com>
23457
23458         test-update-copyright: don't hard-code /usr/bin/perl
23459         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23460         perl to print the current year.  Gilles Espinasse reported that
23461         the replaced use of perl was hard-coded as /usr/bin/perl.
23462
23463 2009-11-23  Bruno Haible  <bruno@clisp.org>
23464
23465         duplocale: Add support for glibc 2.3.x.
23466         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23467
23468 2009-11-22  Bruno Haible  <bruno@clisp.org>
23469
23470         vasnprintf: Tiny optimization.
23471         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23472         MacOS X.
23473
23474 2009-11-22  Bruno Haible  <bruno@clisp.org>
23475
23476         Tests for module 'duplocale'.
23477         * modules/duplocale-tests: New file.
23478         * tests/test-duplocale.c: New file.
23479
23480         New module 'duplocale'.
23481         * m4/duplocale.m4: New file.
23482         * lib/locale.in.h (duplocale): New declaration.
23483         * lib/duplocale.c: New file.
23484         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23485         gl_LOCALE_H_DEFAULTS): New macros.
23486         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23487         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23488         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23489         REPLACE_DUPLOCALE.
23490         * modules/duplocale: New file.
23491         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23492
23493 2009-11-22  Bruno Haible  <bruno@clisp.org>
23494
23495         * modules/locale-tests (configure.ac): Test for newlocale function.
23496         * tests/test-locale.c: When the system has extended locale functions,
23497         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23498
23499         locale: Make locale_t available when possible.
23500         * lib/locale.in.h: Include <xlocale.h> when it exists.
23501         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23502         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23503         * modules/locale (Depends-on): Add extensions.
23504         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23505         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23506
23507 2009-11-22  Bruno Haible  <bruno@clisp.org>
23508
23509         Add comments.
23510         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23511         invocation.
23512         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23513         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23514         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23515
23516 2009-11-22  Bruno Haible  <bruno@clisp.org>
23517
23518         error: account for the possibility of freopen (stdout).
23519         * lib/error.c: Include <unistd.h>.
23520         (flush_stdout): New function, extracted from error and error_at_line.
23521         Determine stdout's fd dynamically.
23522         (error, error_at_line): Invoke flush_stdout.
23523         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
23524         * modules/error (Depends-on): Add unistd.
23525
23526 2009-11-22  Bruno Haible  <bruno@clisp.org>
23527
23528         diffseq: Add comment.
23529         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
23530
23531 2009-11-22  Jim Meyering  <meyering@redhat.com>
23532
23533         c-stack: avoid defining an unused static function
23534         * lib/c-stack.c (find_stack_direction): Do not define this function
23535         when it will not be used.
23536
23537         diffseq: avoid spurious gcc warnings
23538         * lib/diffseq.h (IF_LINT2): Define.
23539         (compareseq): Use it to initialize two members of "part".
23540         This avoids two used-uninitialized warnings.
23541
23542 2009-11-21  Jim Meyering  <meyering@redhat.com>
23543
23544         c-stack: avoid "ignoring return value of `write'" warning
23545         * lib/c-stack.c: Include "ignore-value.h".
23546         (die): Explicitly ignore each write return value.
23547         * modules/c-stack (Depends-on): Add ignore-value.
23548
23549 2009-11-21  Bruno Haible  <bruno@clisp.org>
23550
23551         diffseq: reduce scope of variable 'best'.
23552         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
23553         variable, earlier used for two different purposes.
23554
23555 2009-11-21  Jim Meyering  <meyering@redhat.com>
23556
23557         diffseq: remove useless assignment to "best"
23558         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
23559         assignment.  At that point "best" is already guaranteed to be zero.
23560
23561 2009-11-20  Eric Blake  <ebb9@byu.net>
23562
23563         build: mention ftp redirector in release announcements
23564         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
23565         values that used to come from cfg.mk; mention FTP redirect URL.
23566         * build-aux/announce-gen: Mention the mirror list.
23567         Suggested by Karl Berry.
23568
23569         nanosleep: improve port to mingw
23570         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
23571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
23572         LIB_NANOSLEEP, but only when needed.
23573         * modules/select (Link): Document LIBSOCKET.
23574         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
23575         enough.
23576
23577         nanosleep: work around cygwin bug
23578         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
23579         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
23580         bug.
23581         (getnow): Delete, not needed.
23582         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
23583         LIB_CLOCK_GETTIME.
23584         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
23585         clock-time, gettime.
23586         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
23587         bug.
23588         * modules/nanosleep-tests: New test.
23589         * tests/test-nanosleep.c: New file.
23590
23591         sleep: work around cygwin bug
23592         * lib/sleep.c (rpl_sleep): Work around the bug.
23593         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
23594         (gl_PREREQ_SLEEP): Delete unused macro.
23595         * modules/sleep (Depends-on): Add verify.
23596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23597         * modules/unistd (Makefile.am): Substitute witness.
23598         * lib/unistd.in.h (sleep): Update prototype.
23599         * doc/posix-functions/sleep.texi (sleep): Document the bug.
23600         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
23601         * modules/sleep-tests (Depends-on): Check for alarm.
23602
23603 2009-11-20  Jim Meyering  <meyering@redhat.com>
23604
23605         maint.mk: improve sc_prohibit_magic_number_exit
23606         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
23607         so it does not match uses like System.exit(1).
23608         Add comments showing how to correct all offenders.
23609
23610 2009-11-19  Eric Blake  <ebb9@byu.net>
23611
23612         xalloc-die-tests: add missing library
23613         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
23614
23615         test-xvasprintf: silence compiler warnings
23616         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
23617         empty string from gcc.
23618
23619 2009-11-19  Jim Meyering  <meyering@redhat.com>
23620
23621         xfreopen: new module, from coreutils
23622         * modules/xfreopen: New module.
23623         * lib/xfreopen.c: New file.
23624         * lib/xfreopen.h: New file.
23625         * MODULES.html.sh (File stream based Input/Output"): Add it.
23626
23627 2009-11-19  Eric Blake  <ebb9@byu.net>
23628
23629         manywarnings: depend on warnings
23630         * modules/manywarnings (Depends-on): Add warnings.
23631
23632         build: avoid compiler warnings
23633         * lib/select.c (rpl_select): Delete unused variable.
23634         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
23635
23636 2009-11-18  Eric Blake  <ebb9@byu.net>
23637
23638         tests: avoid false negative with --with-packager
23639         * tests/test-version-etc.sh: Discard packager information.
23640         * tests/test-argp-version-etc-1.sh: Likewise.
23641         Reported by Mike Frysinger.
23642
23643         utimens: fix regression on Solaris
23644         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
23645         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
23646         can only change fd timestamps via futimesat.  Instead, use an
23647         additional witness macro to avoid BSD bug.
23648         Reported by Jim Meyering.
23649
23650 2009-11-17  Eric Blake  <ebb9@byu.net>
23651
23652         usleep: use it to simplify tests
23653         * modules/stat-time-tests (Depends-on): Add usleep.
23654         (configure.ac): Drop usleep check.
23655         * modules/chown-tests (Depends-on, configure.ac): Likewise.
23656         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
23657         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
23658         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
23659         * modules/openat-tests (Depends-on, configure.ac): Likewise.
23660         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
23661         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
23662         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
23663         Likewise.
23664         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
23665         * tests/test-lchown.h (nap): Likewise.
23666         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
23667         * tests/test-stat-time.c (nap): Likewise.
23668         * tests/test-utimens-common.h (nap): Update comments.
23669
23670         usleep: new module
23671         * modules/usleep: New file.
23672         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23673         * lib/usleep.c (usleep): Likewise.
23674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23675         * modules/unistd (Makefile.am): Substitute witnesses.
23676         * lib/unistd.in.h (usleep): Add declaration.
23677         * doc/pastposix-functions/usleep.texi (usleep): Document this.
23678         * MODULES.html.sh (Date and time): Likewise.
23679         * modules/usleep-tests (Depends-on): New test.
23680         * tests/test-usleep.c: New file.
23681
23682         chown: work around OpenBSD bug
23683         * lib/chown.c (rpl_chown): Work around the bug.
23684         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
23685         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
23686         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
23687         * modules/chown (Depends-on): Add stdbool.
23688         * modules/lchown (Depends-on): Likewise.
23689         * doc/posix-functions/chown.texi (chown): Document the bug.
23690         * doc/posix-functions/lchown.texi (lchown): Likewise.
23691         * tests/test-lchown.h (test_chown): Relax test.
23692
23693         mkstemp: avoid conflict with C++ keyword template
23694         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23695         * lib/mkostemp.c (mkostemp): Likewise.
23696         * lib/mkostemps.c (mkostemps): Likewise.
23697         * lib/mkstemp.c (mkstemp): Likewise.
23698         * lib/mkstemps.c (mkstemps): Likewise.
23699
23700         xalloc-die-tests: optimize
23701         * tests/test-xalloc-die.sh: Reduce number of processes.
23702
23703 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23704
23705         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23706         patch from ludo@gnu.org (Ludovic Courtès).
23707
23708 2009-11-17  Jim Meyering  <meyering@redhat.com>
23709
23710         version-etc: use proper license string
23711         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23712         * modules/version-etc-fsf: Likewise.
23713
23714 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23715
23716         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23717         printed to stdout.  Deal with EOL differences.
23718
23719 2009-11-17  Eric Blake  <ebb9@byu.net>
23720
23721         unsetenv: work around Solaris bug
23722         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23723         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23724         Reported by Jim Meyering.
23725
23726         vasnprintf: avoid compiler warnings
23727         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23728         variables.
23729         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23730
23731 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23732
23733         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23734         settings since xalloc-die is no longer the self test,
23735         xalloc-die.sh is.
23736
23737 2009-11-17  Jim Meyering  <meyering@redhat.com>
23738
23739         test-xalloc-die.sh: make the code agree with the commit log
23740         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23741         at the end, just in case you happen to have a test-xalloc-die
23742         program in some other PATH directory.
23743
23744         test-xalloc-die.sh: fix a portability bug
23745         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23746         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23747         Otherwise, argv[0] (as often seen in diagnostics) would be too
23748         system-dependent, sometimes with, and sometimes without the leading "./".
23749
23750         version-etc-fsf: relax license to LGPLv3+
23751         * modules/version-etc-fsf (License): Relax license.
23752
23753 2009-11-16  Eric Blake  <ebb9@byu.net>
23754
23755         xalloc-die-tests: avoid printing null pointer
23756         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23757         shell script.
23758         * tests/test-xalloc-die.c (program_name): Declare.
23759         * tests/test-xalloc-die.sh (tmpfiles): New file.
23760
23761         setenv, unsetenv: work around various bugs
23762         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23763         (setenv) [HAVE_SETENV]: Work around bugs.
23764         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23765         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23766         for bugs.
23767         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23768         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23770         * modules/stdlib (Makefile.am): Update substitutions.
23771         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23772         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23773         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23774         * modules/setenv-tests: New test.
23775         * modules/unsetenv-tests: Likewise.
23776         * tests/test-setenv.c: New file.
23777         * tests/test-unsetenv.c: Likewise.
23778
23779 2009-11-16  Jim Meyering  <meyering@redhat.com>
23780
23781         version-etc: relax license to LGPLv3+
23782         * modules/version-etc (License): Relax license.
23783
23784         better AC_REQUIRE expanded-before-required-warning avoidance
23785         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23786         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23787         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23788         which is no longer needed.
23789
23790 2009-11-16  Eric Blake  <ebb9@byu.net>
23791
23792         test-freading: clean up temporary file
23793         * tests/test-freading.c (main): Remove file on success, and use
23794         ASSERT more liberally.
23795         Reported by Jim Meyering.
23796
23797 2009-11-16  Jim Meyering  <meyering@redhat.com>
23798
23799         avoid new AC_REQUIRE expanded-before-required warnings
23800         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
23801         merely using it.
23802         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
23803         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
23804
23805 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23806
23807         * tests/test-xalloc-die.c: New file.
23808         * modules/xalloc-die-tests: New file.
23809         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
23810         XFAIL_TESTS so it can be appended by modules.
23811
23812 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23813
23814         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
23815         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
23816
23817 2009-11-14  Eric Blake  <ebb9@byu.net>
23818
23819         fnmatch: avoid compiler warning
23820         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
23821         to silence compiler warning about mismatch signedness in ?:.
23822         Reported by Robert Millan.
23823
23824         intprops: add double-inclusion guard
23825         * lib/intprops.h: Allow idempotent includes.
23826         Suggested by Bruce Korb.
23827
23828         openat: detect Solaris fchownat bug
23829         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
23830         penalizing glibc chownat when only lchownat is broken.
23831         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
23832         trailing slash bugs.
23833         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
23834         * modules/openat-tests (Files): Include more files.
23835         (Depends-on): Add mgetgroups, sleep, stat-time.
23836         (configure.ac): Add additional checks.
23837         (Makefile.am): Build new test.
23838         * tests/test-fchownat.c: New file.
23839
23840         lchown: detect Solaris and FreeBSD bug
23841         * lib/lchown.c (rpl_lchown): Work around bug.
23842         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
23843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23844         * modules/unistd (Makefile.am): Populate it.
23845         * lib/unistd.in.h (lchown): Update declaration.
23846         * doc/posix-functions/lchown.texi (lchown): Document the bug.
23847         * modules/lchown-tests: New file.
23848         * tests/test-lchown.h (test_lchown): Likewise.
23849         * tests/test-lchown.c (main): Likewise.
23850
23851         chown: detect Solaris and FreeBSD bug
23852         * lib/chown.c (rpl_chown): Work around bug.
23853         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
23854         (gl_PREREQ_CHOWN): Delete.
23855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23856         * modules/unistd (Makefile.am): Populate it.
23857         * lib/unistd.in.h (chown): Update declaration.
23858         * lib/lchown.c (chown): Update client.
23859         * modules/lchown (Depends-on): Add lstat.
23860         * doc/posix-functions/chown.texi (chown): Document the bug.
23861         * doc/posix-functions/getgroups.texi (getgroups): Document
23862         getgroups pitfall.
23863         * modules/chown-tests: New file.
23864         * tests/test-chown.h (test_chown): Likewise.
23865         * tests/test-chown.c (main): Likewise.
23866
23867 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
23868
23869         gnulib-tool: correctly detect absence of m4 directories
23870         * gnulib-tool: Avoid extra newline on data passed to wc -l.
23871
23872 2009-11-14  Jim Meyering  <meyering@redhat.com>
23873
23874         maint.mk: Prohibit inclusion of "xalloc.h" without use.
23875         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23876
23877 2009-11-14  John W. Eaton  <jwe@gnu.org>
23878
23879         strftime.h: wrap funtion declaration in extern "C" block
23880         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
23881
23882 2009-11-13  Eric Blake  <ebb9@byu.net>
23883
23884         getgroups: avoid compiler warning
23885         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
23886
23887         getgroups: work around FreeBSD bug
23888         * lib/getgroups.c (rpl_getgroups): Work around the bug.
23889         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
23890         * doc/posix-functions/getgroups.texi (getgroups): Document it.
23891         * tests/test-getgroups.c (main): Fix buffer overrun.
23892
23893         getgroups: avoid compilation failure
23894         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
23895         * modules/getgroups (Depends-on): Add stdint.
23896
23897 2009-11-13  Jim Meyering  <meyering@redhat.com>
23898
23899         test-getgroups: avoid compilation failure
23900         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
23901
23902 2009-11-13  Eric Blake  <ebb9@byu.net>
23903
23904         mgetgroups: new module, taken from coreutils
23905         * modules/mgetgroups: New file.
23906         * lib/mgetgroups.h: Likewise.
23907         * lib/mgetgroups.c (mgetgroups): Likewise.
23908         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
23909         * MODULES.html.sh (Users and groups): Mention it.
23910
23911         getgroups: don't expose GETGROUPS_T to user
23912         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
23913         an element at a time if GETGROUPS_T is wrong size.
23914         * lib/getugroups.h (getugroups): Change signature.
23915         * lib/unistd.in.h (getgroups): Likewise.
23916         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
23917         signature needs fixing.
23918         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
23919         AC_TYPE_GETGROUPS.
23920         * modules/group-member (Depends-on): Add getgroups.
23921         * lib/group-member.c (group_info, get_group_info): Use gid_t.
23922         (group_member): Rely on getgroups replacement.
23923         * lib/getugroups.c (getugroups): Use gid_t.
23924         * tests/test-getgroups.c (main): Likewise.
23925         * NEWS: Mention the signature change.
23926         * doc/posix-functions/getgroups.texi (getgroups): Mention the
23927         problem with signature.
23928         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
23929         GETGROUPS_T is still useful for setgroups.
23930
23931         getgroups, getugroups: provide stubs for mingw
23932         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
23933         * lib/getugroups.c (getugroups): Likewise.
23934         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
23935         function.  Modernize replacement scheme.
23936         (gl_PREREQ_GETGROUPS): Delete.
23937         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
23938         * modules/getgroups (configure.ac): Declare witness.
23939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23940         * modules/unistd (Depends-on): Substitute witness.
23941         * lib/unistd.in.h (getgroups): Declare replacement.
23942
23943         getgroups: avoid calling exit
23944         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
23945         drop xalloc.
23946         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
23947         dependencies.
23948         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
23949         exiting, in the rare case of malloc failure.
23950
23951         getgroups: fix logic error
23952         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
23953         has more than 20 groups.
23954         * modules/getgroups-tests: New test.
23955         * tests/test-getgroups.c: New file.
23956
23957 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23958
23959         * tests/test-base64.c: Improve.
23960
23961 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23962
23963         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
23964         Blake <ebb9@byu.net>.
23965
23966 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23967
23968         * tests/test-xvasprintf.c: Add %s%s related checks.
23969
23970 2009-11-12  Eric Blake  <ebb9@byu.net>
23971
23972         version-etc: match standards.texi style
23973         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
23974         and use <> only for URLs.
23975
23976 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
23977
23978         fts: do not fail on a submount during traversal
23979         * lib/fts.c (fts_build): Read the stat info again after opening
23980         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
23981         Original report at http://bugzilla.redhat.com/501848.
23982
23983 2009-11-12  Jim Meyering  <meyering@redhat.com>
23984
23985         bootstrap: sync from coreutils
23986         * build-aux/bootstrap (bootstrap_epilogue): New function.
23987         Use git_modules_config in one more place.  This make bootstrap's
23988         --gnulib-srcdir option more useful for testing.
23989
23990         bootstrap: generalize autoheader check
23991         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
23992         AC_CONFIG_HEADERS.
23993
23994 2009-11-11  Eric Blake  <ebb9@byu.net>
23995
23996         mkfifoat: use new modules for Solaris and BSD bugs
23997         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
23998         * lib/mkfifoat.c (mknodat): Split...
23999         * lib/mknodat.c (mknodat): ...into new file.
24000         * modules/mkfifoat (Files): Ship new file.
24001         (Depends-on): Add mkfifo, mknod.
24002         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24003         (Depends-on): Add symlink.
24004         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24005         redundant with test_mkfifo.h.
24006         (do_mkfifoat, do_mknodat): New helpers.
24007
24008         mknod: new module
24009         * modules/mknod: New file.
24010         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24011         * lib/mknod.c (mknod): Likewise.
24012         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24013         defaults.
24014         * modules/sys_stat (Makefile.am): Substitute them.
24015         * lib/sys_stat.in.h (mknod): Declare replacement.
24016         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24017         Document it.
24018         * doc/posix-functions/mknod.texi (mknod): Likewise.
24019         * modules/mknod-tests: New test.
24020         * tests/test-mknod.c: Likewise.
24021
24022         mkfifo: new module
24023         * modules/mkfifo: New file.
24024         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24025         * lib/mkfifo.c (mkfifo): Likewise.
24026         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24027         defaults.
24028         * modules/sys_stat (Makefile.am): Substitute them.
24029         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24030         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24031         Document it.
24032         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24033         * modules/mkfifo-tests: New test.
24034         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24035         from test-mkfifoat.c.
24036         * tests/test-mkfifo.c: New file.
24037
24038         readlink: detect FreeBSD bug
24039         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24040         slash on symlink.
24041         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24042         * tests/test-readlink.h (test_readlink): Enhance test.
24043
24044         symlink: detect FreeBSD bug
24045         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24046         slash on symlink.
24047         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24048         * tests/test-symlink.h (test_symlink): Enhance test.
24049
24050 2009-11-10  Eric Blake  <ebb9@byu.net>
24051
24052         link: detect FreeBSD bug
24053         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24054         symlink.
24055         * doc/posix-functions/link.texi (link): Document the bug.
24056         * tests/test-link.h (test_link): Enhance test.
24057         * tests/test-linkat.c (main): Update caller.
24058
24059         unlink, remove: detect FreeBSD bug
24060         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24061         slash on symlink.
24062         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24063         * doc/posix-functions/remove.texi (remove): Likewise.
24064         * tests/test-unlink.h (test_unlink): Enhance test.
24065         * tests/test-remove.c (main): Likewise.
24066
24067 2009-11-09  Eric Blake  <ebb9@byu.net>
24068
24069         rename: detect FreeBSD bug
24070         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24071         slash on symlink.
24072         * modules/renameat-tests (Depends-on): Add filenamecat.
24073         * tests/test-rename.h (test_rename): Allow one more errno.
24074         * tests/test-renameat.c (main): Likewise.
24075         * doc/posix-functions/rename.texi (rename): Document the bug.
24076
24077         open: detect FreeBSD bug
24078         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24079         symlink.
24080         * doc/posix-functions/open.texi (open): Document the bug.
24081         * doc/posix-functions/utimes.texi (utimes): Likewise.
24082         * tests/test-open.h (test_open): Add parameters, and test symlink
24083         handling.
24084         * tests/test-open.c (main): Adjust caller.
24085         * tests/test-fcntl-safer.c (main): Likewise.
24086         * modules/open-tests (Depends-on): Add stdbool, symlink.
24087         * modules/fcntl-safer-tests (Depends-on): Likewise.
24088         * tests/test-openat.c (main): Add test-open tests.
24089
24090         stat: detect FreeBSD bug
24091         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24092         symlink.
24093         * doc/posix-functions/stat.texi (stat): Document the bug.
24094         * tests/test-stat.h (test_stat_func): Add argument.
24095         * tests/test-stat.c (main): Adjust caller.
24096         * tests/test-fstatat.c (main): Likewise.
24097         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24098         Reported by Jim Meyering.
24099
24100 2009-11-09  James Youngman  <jay@gnu.org>
24101
24102         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24103         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24104
24105 2009-11-08  Jim Meyering  <meyering@redhat.com>
24106
24107         utimens: remove invalid futimesat call
24108         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24109         It used the file descriptor of the target file as the DIR_FD
24110         parameter and NULL as the file name.  That caused failure with
24111         errno == EFAULT on FreeBSD-8.0-rc2
24112
24113 2009-11-07  Eric Blake  <ebb9@byu.net>
24114
24115         fflush, freadseek: use fseeko, not fseek
24116         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24117         (clear_ungetc_buffer): Avoid potential problems on large files.
24118         * lib/freadseek.c (freadseek): Likewise.
24119         * modules/freadseek (Depends-on): Add fseeko.
24120         * modules/fseek (configure.ac): Set a witness.
24121         * tests/test-fflush.c (main): Use fseeko.
24122         * tests/test-fpurge.c (fseek): Disable link warning.
24123         * tests/test-freadable.c (fseek): Likewise.
24124         * tests/test-freading.c (fseek): Likewise.
24125         * tests/test-fseeko.c (fseek): Likewise.
24126         * tests/test-ftell.c (fseek): Likewise.
24127         * tests/test-ftello.c (fseek): Likewise.
24128         * tests/test-fwritable.c (fseek): Likewise.
24129         * tests/test-fwriting.c (fseek): Likewise.
24130
24131 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24132
24133         * modules/memchr (Depends-on): Drop getpagesize dependency.
24134
24135 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24136
24137         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24138         Reported by Ludovic Courtès.
24139         * build-aux/pmccabe2html: Improve example usage.
24140         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24141
24142 2009-11-06  Jim Meyering  <meyering@redhat.com>
24143
24144         do-release-commit-and-tag: New module.
24145         Automate the release-commit and tag process.
24146         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24147         * modules/do-release-commit-and-tag: New file.
24148         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24149
24150 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24151
24152         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24153         because test-select.c uses inet_pton.
24154
24155 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24156
24157         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24158         GETADDRINFO_LIB.  Bump serial number.
24159         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24160         Suggested by Eric Blake <ebb9@byu.net>.
24161
24162 2009-11-05  Eric Blake  <ebb9@byu.net>
24163
24164         strtod: detect darwin bug
24165         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24166         Reported by Leo Davis.
24167
24168         freopen-safer: new module
24169         * modules/freopen-safer: New module.
24170         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24171         * lib/freopen-safer.c (freopen_safer): New file.
24172         * lib/stdio-safer.h (freopen_safer): New declaration.
24173         * lib/stdio--.h (freopen): New override.
24174         * MODULES.html.sh (File stream based Input/Output): Mention it.
24175         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24176         freopen-safer module.
24177         * doc/posix-functions/stderr.texi (stderr): Likewise.
24178         * doc/posix-functions/stdin.texi (stdin): Likewise.
24179         * doc/posix-functions/stdout.texi (stdout): Likewise.
24180         * modules/freopen-safer-tests: New test.
24181         * tests/test-reopen-safer.c: New file.
24182
24183 2009-11-05  Jim Meyering  <meyering@redhat.com>
24184
24185         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24186         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24187
24188 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24189
24190         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24191
24192 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24193
24194         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24195
24196 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24197
24198         Fix link error.
24199         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24200         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24201
24202 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24203
24204         * tests/test-func.c: Also test value of __func__.
24205
24206 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24207
24208         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24209         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24210
24211 2009-11-05  Bruno Haible  <bruno@clisp.org>
24212
24213         Fix link error.
24214         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24215         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24216         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24217
24218 2009-11-05  Bruno Haible  <bruno@clisp.org>
24219
24220         Tests for module 'inet_pton'.
24221         * modules/inet_pton-tests: New file.
24222         * tests/test-inet_pton.c: New file.
24223
24224 2009-11-05  Bruno Haible  <bruno@clisp.org>
24225
24226         Tests for module 'inet_ntop'.
24227         * modules/inet_ntop-tests: New file.
24228         * tests/test-inet_ntop.c: New file.
24229
24230 2009-11-04  Eric Blake  <ebb9@byu.net>
24231
24232         stdlib-safer: wrap all mkstemp variants
24233         * modules/mkostemp (configure.ac): Set witness.
24234         * modules/mkostemps (configure.ac): Likewise.
24235         * modules/mkstemps (configure.ac): Likewise.
24236         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24237         (mkstemps_safer): Wrap more functions.
24238         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24239         wrapping.
24240         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24241         (mkstemps_safer): Implement the wrappers.
24242
24243         mkstemps, mkostemps: new modules
24244         * modules/mkostemps: New module.
24245         * modules/mkstemps: Likewise.
24246         * lib/mkostemps.c (mkostemps): New file.
24247         * lib/mkstemps.c (mkstemps): Likewise.
24248         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24249         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24251         * modules/stdlib (Makefile.am): Substitute them.
24252         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24253         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24254         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24255         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24256         * MODULES.html.sh (File system functions): Mention them.
24257
24258         tempname: resync from glibc
24259         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24260         same values for __GT_FILE as glibc.  Abort even when assertions
24261         are disabled.
24262         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24263         match its value otherwise.  Allow idempotent inclusion.
24264         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24265         * lib/mkostemp.c (mkostemp): Likewise.
24266         * lib/mkstemp.c (mkstemp): Likewise.
24267         * lib/tmpfile.c (tmpfile): Likewise.
24268         * NEWS: Document this.
24269
24270         utimens: fix use of futimens on older Linux
24271         * lib/utimens.c (fdutimens): Use updated, rather than original,
24272         timespec to avoid bug in older Linux kernel.
24273         Reported by Simon Josefsson.
24274
24275 2009-11-04  Bruno Haible  <bruno@clisp.org>
24276
24277         Make num_processors more flexible and consistent.
24278         * lib/nproc.h (enum nproc_query): New type.
24279         (num_processors): Add a 'query' argument.
24280         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24281         (num_processors): Add a 'query' argument. Test the value of the
24282         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24283         mingw, count the number of CPUs available for the current process.
24284         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24285         Check for sched_getaffinity and sched_getaffinity_np.
24286         * modules/nproc (Depends-on): Add c-ctype, extensions.
24287         * NEWS: Mention the change.
24288
24289 2009-11-03  Bruno Haible  <bruno@clisp.org>
24290
24291         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24292
24293 2009-11-03  Jim Meyering  <meyering@redhat.com>
24294
24295         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24296         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24297         if it is defined.
24298
24299 2009-11-02  Eric Blake  <ebb9@byu.net>
24300
24301         mktime, timegm: share common declaration
24302         * lib/mktime-internal.h: New file.
24303         * lib/mktime.c: Use it rather than open-coding a declaration.
24304         * lib/timegm.c: Likewise.
24305         * modules/mktime (Files): Ship it.
24306         * modules/timegm (Files): Likewise.
24307         Suggested by Bruno Haible.
24308
24309         test-update-copyright: update test to match script changes
24310         * tests/test-update-copyright.sh: Avoid hard-coding perl
24311         location.  Don't update *.bak created by earlier runs.
24312
24313 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24314             Simon Josefsson  <simon@josefsson.org>
24315             Bruno Haible  <bruno@clisp.org>
24316
24317         Fix link error on Solaris 8.
24318         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24319         also in libnsl. Define also INET_PTON_LIB.
24320         * modules/inet_pton (Link): New section.
24321
24322 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24323             Bruno Haible  <bruno@clisp.org>
24324
24325         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24326         * modules/inet_ntop (Link): New section.
24327         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24328
24329 2009-11-02  Eric Blake  <ebb9@byu.net>
24330
24331         maint: avoid compiler warnings in m4 macros
24332         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24333         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24334
24335 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24336
24337         * m4/pmccabe2html.m4: Remove file.
24338         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24339         function.  Change maintainer.
24340         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24341         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24342         Courtès).
24343
24344 2009-10-31  Eric Blake  <ebb9@byu.net>
24345
24346         fseeko: fix m4 regression
24347         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24348         regression from 2009-10-27.
24349         Reported by Ralf Wildenhues.
24350
24351 2009-10-31  Jim Meyering  <meyering@redhat.com>
24352
24353         inttostr: aesthetics and improved (compile-time) safety
24354         Define inttype_is_signed rather than inttype_is_unsigned,
24355         since the sole use is via "#if inttype_is_signed".
24356         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24357         inttype_is_unsigned.
24358         * lib/offtostr.c (inttype_is_signed): Likewise.
24359         * lib/uinttostr.c (inttype_is_signed): Likewise.
24360         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24361         * lib/inttostr.c (inttostr): Use verify to cross-check the
24362         inttype_is_signed value and the signedness of the actual type.
24363         * modules/inttostr (Depends-on): Add verify.
24364
24365 2009-10-30  Eric Blake  <ebb9@byu.net>
24366
24367         build: avoid compiler warnings
24368         * lib/fchmodat.c (lchmod): Mark unused variables.
24369         * lib/getopt.c (_getopt_initialize): Likewise.
24370         * lib/mktime.c (__mktime_internal): Provide prototype.
24371         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24372         older gcc that do not understand #pragma GCC diagnostic.
24373         * lib/uinttostr.c (inttype_is_unsigned): Define.
24374         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24375
24376 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24377
24378         stat: fix compilation on AIX
24379         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24380         only see struct stat64.
24381
24382 2009-10-30  Eric Blake  <ebb9@byu.net>
24383
24384         exclude: make more robust
24385         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24386         rather than masking a coding bug.
24387         Suggested by Bruno Haible.
24388
24389 2009-10-30  Jim Meyering  <meyering@redhat.com>
24390
24391         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24392         Rather than putting #!/usr/bin/perl on the first line,
24393         start with a variant of what's recommended by "man perlrun" that
24394         invokes the first "perl" program from your shell's search path.
24395         * build-aux/gitlog-to-changelog: Replace #!... as above.
24396         Add a "Local Variables" perl mode setting.
24397         Prompted by a patch from Ludovic Courtès.
24398         Improved by Eric Blake.
24399         * build-aux/useless-if-before-free: Likewise.
24400         * build-aux/announce-gen: Likewise.
24401         * build-aux/update-copyright: Likewise.
24402
24403 2009-10-29  Eric Blake  <ebb9@byu.net>
24404
24405         filenamecat-lgpl: adjust clients
24406         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24407         filenamecat.
24408         * modules/renameat (Depends-on): Likewise.
24409
24410         filenamecat: split into filenamecat-lgpl
24411         * modules/filenamecat-lgpl: New module.
24412         * modules/filenamecat (Files): Move library-safe files into
24413         filenamecat-lgpl.
24414         (Depends-on): Add filenamecat-lgpl.
24415         (configure.ac): Declare witness.
24416         * lib/filenamecat.h (file_name_concat): Only declare when using
24417         GPL module.
24418         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24419         Move...
24420         * lib/filenamecat-lgpl.c: ...into new file.
24421         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24422         (gl_FILE_NAME_CONCAT): Use it.
24423         * MODULES.html.sh (File system functions): Mention new module.
24424
24425         argp: avoid memory leak
24426         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24427         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24428         base_name, since the latter malloc()s and can call exit().
24429         Leak introduced 2006-07-03.
24430
24431         dirname-lgpl: adjust clients that don't need full dirname
24432         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24433         * modules/filenamecat (Depends-on): Likewise.
24434         * modules/linkat (Depends-on): Likewise.
24435         * modules/mkancesdirs (Depends-on): Likewise.
24436         * modules/mkdir (Depends-on): Likewise.
24437         * modules/openat (Depends-on): Likewise.
24438         * modules/savewd (Depends-on): Likewise.
24439         * modules/rename (Depends-on): Likewise.
24440         (License): Relax license.
24441         * modules/mkdir-tests (Depends-on): Drop progname.
24442         (Makefile.am): Delete unneeded LDADD.
24443         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24444
24445         dirname: split into dirname-lgpl
24446         * modules/dirname-lgpl: New module.
24447         * modules/dirname (Files): Move library-safe files into
24448         dirname-lgpl.
24449         (Depends-on): Add dirname-lgpl.
24450         (configure.ac): Declare witness.
24451         * modules/double-slash-root (License): Relax license.
24452         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24453         module.
24454         * lib/dirname.c (dir_len, mdir_name): Move...
24455         * lib/dirname-lgpl.c: ...into new file.
24456         * lib/basename.c (last_component, base_len): Move...
24457         * lib/basename-lgpl.c: ...into new file.
24458         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24459         (gl_DIRNAME): Use it.
24460         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24461         Mention new module.
24462         * modules/dirname-tests (Depends-on): Add progname.
24463         * tests/test-dirname.c (program_name): Delete.
24464
24465         mkdir: make safe for libraries
24466         * modules/mkdir (Depends-on): Drop xalloc.
24467         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24468         exit.
24469
24470         tests: avoid some compiler warnings
24471         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24472         literals.
24473         * tests/test-memchr.c (main): Avoid type mismatch.
24474         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24475         * tests/test-base64.c (main): Likewise.
24476         * tests/test-getdelim.c (main): Likewise.
24477         * tests/test-gethostname.c (main): Likewise.
24478         * tests/test-getline.c (main): Likewise.
24479         * tests/test-netinet_in.c (main): Likewise.
24480         * tests/test-select.c (open_server_socket, main): Likewise.
24481         * tests/test-select-stdin.c (main): Likewise.
24482         * tests/test-sockets.c (main): Likewise.
24483         * tests/test-strsignal.c (main): Likewise.
24484         * tests/test-sys_select.c (main): Likewise.
24485         * tests/test-sys_socket.c (main): Likewise.
24486         * tests/test-u64.c (main): Likewise.
24487         * tests/test-xfprintf-posix.c (main): Likewise.
24488         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24489
24490         sockets: avoid compiler warning
24491         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24492
24493         maint: detect usage(1) and other suspicious exits
24494         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24495
24496 2009-10-29  Jim Meyering  <meyering@redhat.com>
24497
24498         timespec: long-to-int truncation could make timespec_cmp malfunction
24499         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24500         a multiple of 2^32 nanoseconds as no difference.
24501
24502 2009-10-28  Jim Meyering  <meyering@redhat.com>
24503
24504         fprintftime: wrap macro code argument in "do {...} while(0)"
24505         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24506         cpy macro must be a statement that can be followed by a semicolon.
24507         Now that the else clause contains a comment and is hence longer
24508         than one line, I require curly braces.  That in turn requires
24509         that we wrap this code block in the standard do...while(0).
24510
24511         fprintftime: remove stray semicolon from previous change
24512         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24513
24514         fprintftime: avoid a warning about ignored fwrite return value
24515         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24516         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24517         that is unsafe.
24518         * modules/fprintftime (Depends-on): Add ignore-value.
24519
24520         exclude: avoid an unwarranted warning
24521         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
24522
24523 2009-10-27  Eric Blake  <ebb9@byu.net>
24524
24525         fseek: avoid compilation failure when fflush is replaced
24526         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
24527         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
24528         module is in use.
24529         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
24530         module is not in use; since REPLACE_FSEEK worked otherwise.
24531         (GNULIB_FTELLO): Likewise for ftell.
24532         Reported by Ian Beckwith and others.
24533
24534 2009-10-27  Bruno Haible  <bruno@clisp.org>
24535
24536         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
24537         Reported by Jim Meyering.
24538
24539 2009-10-27  Jim Meyering  <jim@meyering.net>
24540             Bruno Haible  <bruno@clisp.org>
24541
24542         Avoid warning despite dropping the return value of fwrite.
24543         * lib/unicodeio.c: Include ignore-value.h.
24544         (fwrite_success_callback): Explicitly ignore fwrite's return value.
24545         * modules/unicodeio (Depends-on): Add ignore-value.
24546
24547 2009-10-26  Eric Blake  <ebb9@byu.net>
24548
24549         areadlinkat: fix fallback path
24550         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
24551         pointer and zero.
24552
24553 2009-10-22  Pádraig Brady  <P@draigBrady.com>
24554
24555         Use a better IO block size for modern systems
24556         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
24557         * lib/md2.c: Likewise.
24558         * lib/md4.c: Likewise.
24559         * lib/md5.c: Likewise.
24560         * lib/sha1.c: Likewise.
24561         * lib/sha256.c: Likewise.
24562         * lib/sha512.c: Likewise.
24563
24564 2009-10-22  Eric Blake  <ebb9@byu.net>
24565
24566         tests: avoid several compiler warnings
24567         * tests/test-getcwd.c (main): Avoid buffer underflow.
24568         * tests/test-getdate.c (main): String literals are not safe with
24569         putenv, so use setenv.  Declare unused argument.
24570         * modules/getdate-tests (Depends-on): Add setenv.
24571         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
24572         problems with string literals in char *.
24573         * tests/test-hash.c (main): Avoid shadowing declaration.
24574         (insert_new): Treat string literals as char const *.
24575         * tests/test-getopt.h (test_getopt): Likewise.
24576         (getopt_loop): Alter types to minimize casting elsewhere.
24577         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24578         (test_getopt_long_posix): Likewise.
24579         (do_getopt_long): Add wrapper to minimize casting.
24580         * tests/test-atexit.c (clear_temp_file): Use void.
24581         * tests/test-areadlink-with-size.c (main): Declare unused
24582         arguments.
24583         * tests/test-areadlink.c (main): Likewise.
24584         * tests/test-areadlinkat-with-size.c (main): Likewise.
24585         * tests/test-areadlinkat.c (main): Likewise.
24586         * tests/test-canonicalize-lgpl.c (main): Likewise.
24587         * tests/test-canonicalize.c (main): Likewise.
24588         * tests/test-dirent-safer.c (main): Likewise.
24589         * tests/test-dirname.c (main): Likewise.
24590         * tests/test-dup2.c (main): Likewise.
24591         * tests/test-fchdir.c (main): Likewise.
24592         * tests/test-fcntl-h.c (main): Likewise.
24593         * tests/test-fcntl-safer.c (main): Likewise.
24594         * tests/test-fdopendir.c (main): Likewise.
24595         * tests/test-fdutimensat.c (main): Likewise.
24596         * tests/test-fflush.c (main): Likewise.
24597         * tests/test-filenamecat.c (main): Likewise.
24598         * tests/test-filevercmp.c (main): Likewise.
24599         * tests/test-fopen-safer.c (main): Likewise.
24600         * tests/test-fopen.c (main): Likewise.
24601         * tests/test-fpending.c (main): Likewise.
24602         * tests/test-fpurge.c (main): Likewise.
24603         * tests/test-freading.c (main): Likewise.
24604         * tests/test-fstatat.c (main): Likewise.
24605         * tests/test-fsync.c (main): Likewise.
24606         * tests/test-futimens.c (main): Likewise.
24607         * tests/test-getndelim2.c (main): Likewise.
24608         * tests/test-gettimeofday.c (main): Likewise.
24609         * tests/test-getopt.c (main): Likewise.
24610         * tests/test-i-ring.c (main): Likewise.
24611         * tests/test-inttypes.c (main): Likewise.
24612         * tests/test-link.c (main): Likewise.
24613         * tests/test-lstat.c (main): Likewise.
24614         * tests/test-math.c (main): Likewise.
24615         * tests/test-md5.c (main): Likewise.
24616         * tests/test-memchr2.c (main): Likewise.
24617         * tests/test-memrchr.c (main): Likewise.
24618         * tests/test-mkdir.c (main): Likewise.
24619         * tests/test-mkdirat.c (main): Likewise.
24620         * tests/test-mkfifoat.c (main): Likewise.
24621         * tests/test-open.c (main): Likewise.
24622         * tests/test-openat-safer.c (main): Likewise.
24623         * tests/test-openat.c (main): Likewise.
24624         * tests/test-quotearg.c (main): Likewise.
24625         * tests/test-rawmemchr.c (main): Likewise.
24626         * tests/test-readlink.c (main): Likewise.
24627         * tests/test-remove.c (main): Likewise.
24628         * tests/test-rename.c (main): Likewise.
24629         * tests/test-renameat.c (main): Likewise.
24630         * tests/test-rmdir.c (main): Likewise.
24631         * tests/test-sha1.c (main): Likewise.
24632         * tests/test-signal.c (main): Likewise.
24633         * tests/test-sigaction.c (main): Likewise.
24634         * tests/test-stat.c (main): Likewise.
24635         * tests/test-stat-time.c (main): Likewise.
24636         * tests/test-stddef.c (main): Likewise.
24637         * tests/test-stdint.c (main): Likewise.
24638         * tests/test-stdio.c (main): Likewise.
24639         * tests/test-stdlib.c (main): Likewise.
24640         * tests/test-strchrnul.c (main): Likewise.
24641         * tests/test-strerror.c (main): Likewise.
24642         * tests/test-string.c (main): Likewise.
24643         * tests/test-strtod.c (main): Likewise.
24644         * tests/test-strverscmp.c (main): Likewise.
24645         * tests/test-symlink.c (main): Likewise.
24646         * tests/test-symlinkat.c (main): Likewise.
24647         * tests/test-sys_stat.c (main): Likewise.
24648         * tests/test-sys_time.c (main): Likewise.
24649         * tests/test-time.c (main): Likewise.
24650         * tests/test-unistd.c (main): Likewise.
24651         * tests/test-unlink.c (main): Likewise.
24652         * tests/test-unlinkat.c (main): Likewise.
24653         * tests/test-utimens.c (main): Likewise.
24654         * tests/test-utimensat.c (main): Likewise.
24655         * tests/test-version-etc.c (main): Likewise.
24656         * tests/test-wchar.c (main): Likewise.
24657         * tests/test-wctype.c (main): Likewise.
24658         * tests/test-xprintf-posix.c (main): Likewise.
24659         * tests/test-posixtm.c (main): Likewise.
24660         (STREQ): Delete unused macro.
24661         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
24662         shadowed variables.
24663         * tests/test-memchr.c (main): Likewise.
24664
24665 2009-10-21  Eric Blake  <ebb9@byu.net>
24666
24667         areadlinkat: avoid failure on older glibc
24668         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
24669         rather than mis-comparing 0 against FUNC_RESULT of char*.
24670
24671 2009-10-21  Bruno Haible  <bruno@clisp.org>
24672
24673         * modules/stpncpy (License): Relicense under LGPLv2+.
24674         Reported by David Lutterkort <lutter@redhat.com>.
24675
24676 2009-10-20  Eric Blake  <ebb9@byu.net>
24677
24678         utimensat: work around Solaris 9 bug
24679         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
24680         has trailing slash bugs.
24681         * tests/test-lutimens.h (test_lutimens): Enhance test.
24682         * tests/test-utimens.h (test_utimens): Likewise.
24683         * doc/posix-functions/utime.texi (utime): Enhance documentation.
24684         * doc/posix-functions/utimes.texi (utimes): Likewise.
24685         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24686         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
24687         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
24688         * doc/posix-functions/futimens.texi (futimens): Likewise.
24689
24690         fdutimensat: new module
24691         * modules/fdutimensat: New file.
24692         * lib/fdutimensat.c (fdutimensat): Likewise.
24693         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24694         * MODULES.html.sh (File system functions): Mention module.
24695         * modules/fdutimensat-tests: New test.
24696         * tests/test-fdutimensat.c: Likewise.
24697
24698         doc: regenerate INSTALL
24699         * doc/INSTALL: Reflect recent autoconf update.
24700         * doc/INSTALL.ISO: Likewise.
24701         * doc/INSTALL.UTF-8: Likewise.
24702
24703 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24704
24705         acl: warn if ACL support is not detected
24706         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24707
24708 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24709
24710         * lib/nproc.h: Add extern "C" block for C++.
24711
24712 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24713             Bruno Haible  <bruno@clisp.org>
24714
24715         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24716         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24717         * doc/posix-functions/isalpha.texi: Likewise.
24718         * doc/posix-functions/isblank.texi: Likewise.
24719         * doc/posix-functions/iscntrl.texi: Likewise.
24720         * doc/posix-functions/isdigit.texi: Likewise.
24721         * doc/posix-functions/isgraph.texi: Likewise.
24722         * doc/posix-functions/islower.texi: Likewise.
24723         * doc/posix-functions/isprint.texi: Likewise.
24724         * doc/posix-functions/ispunct.texi: Likewise.
24725         * doc/posix-functions/isspace.texi: Likewise.
24726         * doc/posix-functions/isupper.texi: Likewise.
24727         * doc/posix-functions/isxdigit.texi: Likewise.
24728
24729 2009-10-18  Bruno Haible  <bruno@clisp.org>
24730
24731         Tests for module 'isblank'.
24732         * modules/isblank-tests: New file.
24733         * tests/test-isblank.c: New file.
24734
24735         New module 'isblank'.
24736         * lib/isblank.c: New file.
24737         * m4/isblank.m4: New file.
24738         * modules/isblank: New file.
24739         * doc/posix-functions/isblank.texi: Mention the new module.
24740
24741 2009-10-18  Bruno Haible  <bruno@clisp.org>
24742
24743         New module 'ctype'.
24744         * lib/ctype.in.h: New file.
24745         * m4/ctype.m4: New file.
24746         * modules/ctype: New file.
24747         * doc/posix-headers/ctype.texi: Mention the new module.
24748
24749 2009-10-18  Jim Meyering  <meyering@redhat.com>
24750
24751         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24752         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24753         right after its initialization, rather than farther down.
24754         Keeping these in close proximity makes it easier to ensure
24755         that each such variable is initialized.  E.g.,
24756
24757             LIB_CLOCK_GETTIME=
24758             AC_SUBST([LIB_CLOCK_GETTIME])
24759
24760         This change also increments these serial numbers.
24761         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24762         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24763         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24764
24765 2009-10-18  Bruno Haible  <bruno@clisp.org>
24766
24767         Don't let environment variables perturb build.
24768         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24769         (gl_PREREQ_GETHRXTIME): ... not here.
24770
24771 2009-10-18  Bruno Haible  <bruno@clisp.org>
24772
24773         Avoid symlink attack in localcharset module.
24774         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24775         (O_NOFOLLOW): Define fallback.
24776         (get_charset_aliases): Don't open the file if it is a symbolic link.
24777         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24778         gl_FCNTL_H.
24779         (gl_FCNTL_H): Require it.
24780         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24781         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24782         Reported by Fergal Glynn <fglynn@veracode.com>.
24783
24784 2009-10-18  Bruno Haible  <bruno@clisp.org>
24785
24786         Implement nproc for mingw.
24787         * lib/nproc.c: Include <windows.h>
24788         (num_processors): On native Windows platforms, try GetSystemInfo.
24789
24790 2009-10-18  Bruno Haible  <bruno@clisp.org>
24791
24792         Implement nproc for IRIX.
24793         * lib/nproc.c: Include <sys/sysmp.h>.
24794         (num_processors): On IRIX systems, try sysmp.
24795         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
24796
24797 2009-10-18  Bruno Haible  <bruno@clisp.org>
24798
24799         Implement nproc for HP-UX.
24800         * lib/nproc.c: Include <sys/pstat.h>
24801         (num_processors): On HP-UX systems, try pstat_getdynamic.
24802         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
24803         pstat_getdynamic.
24804
24805 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
24806             Bruno Haible  <bruno@clisp.org>
24807
24808         Implement nproc for NetBSD, OpenBSD.
24809         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
24810         (ARRAY_SIZE): New macro.
24811         (num_processors): On BSD systems, try sysctl of HW_NCPU.
24812         * m4/nproc.m4: New file.
24813         * modules/nproc (Files): Add m4/nproc.m4.
24814         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
24815         (Makefile.am): Instead, augment lib_SOURCES.
24816
24817 2009-10-18  Bruno Haible  <bruno@clisp.org>
24818
24819         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
24820         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
24821         sys/param.h.
24822
24823 2009-10-16  Eric Blake  <ebb9@byu.net>
24824
24825         utimensat: new module
24826         * modules/utimensat: New file.
24827         * lib/utimensat.c (utimensat): Likewise.
24828         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24829         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
24830         so we can work around Linux bugs.
24831         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24832         * modules/sys_stat (Makefile.am): Substitute them.
24833         * lib/sys_stat.in.h (utimensat): Declare it.
24834         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24835         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24836         * modules/utimensat-tests: New test.
24837         * tests/test-utimensat.c: Likewise.
24838
24839         utimens: let lutimens work on non-symlinks
24840         * lib/utimens.c (lutimens): Fall back to utimens rather than
24841         failing with ENOSYS, when file is not a symlink.
24842         (utimens): Reduce redirection.
24843         * tests/test-lutimens.h (test_lutimens): Update test to cover
24844         non-symlinks.
24845         * tests/test-utimens.h (test_utimens): Update test to cover
24846         symlinks.
24847         * tests/test-utimens.c (main): Update caller.
24848
24849         utimens: cache whether utimensat syscall works
24850         * lib/utimens.c (utimensat_works_really): New cache variable.
24851         (fdutimens, lutimens): Use it to avoid failing syscall.
24852
24853         test-stat-time, test-utimens: improve portability
24854         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
24855         ext4 on alpha, and for cygwin.
24856         * tests/test-utimens-common.h: New file.
24857         (nap): Factor delays into single function.
24858         * tests/test-lutimens.h (test_lutimens): Use new header.
24859         * tests/test-futimens.h (test_futimens): Likewise.
24860         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
24861         timestamps to occur from same machine, as was done previously for
24862         test_utimens.
24863         * modules/utimens-tests (Files): Ship new file.
24864         * modules/futimens-tests (Files): Likewise.
24865         Reported in part by Jim Meyering.
24866
24867         sys_stat: sort replacement declarations
24868         * lib/sys_stat.in.h: Sort declarations.
24869         * lib/futimens.c (futimens): Fix typo.
24870
24871 2009-10-15  Jim Meyering  <meyering@redhat.com>
24872
24873         don't let environment settings perturb build
24874         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
24875         could cause a configure-time and/or build-time malfunction.
24876         Typically, a configure-time function-in-library test is performed
24877         via code like this:
24878
24879           LIB_VAR=
24880           AC_SUBST([LIB_VAR])
24881           prefix_saved_LIBS=$LIBS
24882             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
24883                        [test "$ac_cv_search_FUNC" = "none required" ||
24884                         LIB_VAR=$ac_cv_search_FUNC])
24885           LIBS=$prefix_saved_LIBS
24886
24887         However, in each of the files affected by this change, the LIB_VAR=
24888         initialization was omitted.  Thus, when set in the environment, its
24889         value would propagate into generated Makefiles when FUNC is not found
24890         in LIB_NAME.
24891         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
24892         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24893         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24894
24895 2009-10-14  Eric Blake  <ebb9@byu.net>
24896
24897         fchdir: avoid infinite recursion in mingw
24898         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
24899         recursing.
24900
24901         test-stat-time: port to mingw
24902         * tests/test-stat-time.c (force_unlink): Return a value.
24903         (test_ctime) [W32]: Fix compilation error.
24904         (nap): Don't call usleep with too large an argument.  Use
24905         force_unlink.
24906         * doc/pastposix-functions/usleep.texi (usleep): Document the
24907         portability issue.
24908
24909 2009-10-13  Jim Meyering  <meyering@redhat.com>
24910
24911         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
24912         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
24913         * modules/pipe-filter-ii: Likewise.
24914         * modules/sys_socket-tests: Likewise.
24915         * modules/tsearch-tests: Likewise.
24916         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
24917         (check): Depend on it.
24918
24919 2009-10-12  Eric Blake  <ebb9@byu.net>
24920
24921         utimens-tests: port to NFS file systems
24922         * tests/test-utimens.h (test_utimens): Refactor utimecmp
24923         comparisons to avoid spurious failures from timestamp drift
24924         between NFS machines.
24925
24926 2009-10-12  Eric Blake  <ebb9@byu.net>
24927
24928         stat-time-tests: minor cleanups
24929         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
24930         * tests/test-stat-time.c (nap): Separate assignment from call.
24931         Suggested by Paolo Bonzini and Bruno Haible.
24932
24933         sys_stat: guarantee struct timespec
24934         * lib/sys_stat.in.h (includes): Always include <time.h>
24935         * modules/sys_stat (Depends-on): Add time.
24936         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
24937         mode_t permission values.
24938         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
24939         get at subsecond timestamps.
24940
24941 2009-10-10  Eric Blake  <ebb9@byu.net>
24942
24943         futimens: new module
24944         * modules/futimens: New file.
24945         * lib/futimens.c (futimens): Likewise.
24946         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
24947         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
24948         we can work around Linux bugs.
24949         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24950         * modules/sys_stat (Makefile.am): Substitute them.
24951         * lib/sys_stat.in.h (futimens): Declare it.
24952         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24953         * doc/posix-functions/futimens.texi (futimens): Likewise.
24954         * modules/futimens-tests: New test.
24955         * tests/test-futimens.c: Likewise.
24956
24957         utimens: introduce fdutimens
24958         * lib/utimens.h (fdutimens): New prototype.
24959         * lib/utimens.c (gl_futimens): Move guts...
24960         (fdutimens): ...to new interface.
24961         * tests/test-utimens.c (do_fdutimens): Use it.
24962
24963         utimens: add UTIME_NOW and UTIME_OMIT support
24964         * lib/utimens.c (validate_timespec, update_timespec): New helper
24965         functions.
24966         (gl_futimens, lutimens): Use them.
24967         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
24968         stdbool, sys_stat.
24969         (Link): Mention resulting library dependency.
24970         * modules/utimecmp (Link): Likewise.
24971         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
24972         (Makefile.am): Pick up library dependency.
24973         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
24974         definition.
24975         * tests/test-sys_stat.c: Test the definitions.
24976         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
24977         * NEWS: Document library dependency.
24978
24979         utimecmp: support symlink timestamps
24980         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
24981         hashing when possible.  Use pathconf when available.
24982         (SYSCALL_RESOLUTION): Recognize tighter resolution.
24983         * modules/utimecmp (Depends-on): Add lstat.
24984
24985         utimens: add lutimens interface
24986         * lib/utimens.c (lutimens): New function.
24987         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
24988         * lib/utimens.h (lutimens): Declare new interface.
24989         * tests/test-utimens.c (main): Enhance test.
24990         * tests/test-lutimens.h (test_lutimens): New file.
24991         * modules/utimens-tests (Files): Distribute it.
24992         (Depends-on): Add symlink.
24993         (configure.ac): Check for usleep.
24994
24995         utimens: validate futimens usage
24996         * lib/utimens.c (gl_futimens): Require valid fd up front, using
24997         fewer syscalls on failure later on.  Avoid compiler warning on
24998         mingw.
24999         * modules/utimens (Depends-on): Add dup2.
25000
25001         utimens: add test
25002         * modules/utimens-tests: New test.
25003         * tests/test-utimens.h: New file.
25004         * tests/test-futimens.h: Likewise.
25005         * tests/test-utimens.c: Likewise.
25006
25007         doc: mention timestamp portability issues
25008         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25009         instead.
25010         * doc/posix-functions/utime.texi (utime): Likewise.
25011         * doc/posix-functions/utimes.texi (utimes): Likewise.
25012         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25013         instead.
25014         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25015         module.
25016         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25017         Mention weakness with symlink timestamps.
25018         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25019         to utimensat/futimens instead.
25020         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25021
25022         test-dup2: enhance test
25023         * tests/test-dup2.c (main): Also check AT_FDCWD.
25024
25025         test-stat-time: avoid more spurious failures
25026         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25027         xfs; and avoid race if the two timestamps cross quantization edge.
25028
25029         relocatable: prefer 'file system' over 'filesystem'
25030         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25031         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25032         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25033         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25034         * lib/relocatable.c (compute_curr_prefix): Likewise.
25035
25036 2009-10-10  Jim Meyering  <meyering@redhat.com>
25037
25038         stat-time-tests: check for the usleep function
25039         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25040
25041 2009-10-10  Bruno Haible  <bruno@clisp.org>
25042
25043         * modules/xnanosleep: Put the Link section after the Include section.
25044
25045 2009-10-09  Eric Blake  <ebb9@byu.net>
25046
25047         dup2: work around FreeBSD 6.1 bug
25048         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25049         * doc/posix-functions/dup2.texi (dup2): Document it.
25050         Reported by Nelson H. F. Beebe and Jim Meyering.
25051
25052         test-stat-time: port to buggy NFS clients
25053         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25054         (test_ctime): Also skip test if mtime and ctime are skewed.
25055
25056         maint: prefer 'file system' over 'filesystem'
25057         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25058         * doc/posix-functions/lstat.texi (lstat): Likewise.
25059         * lib/file-has-acl.c (file_has_acl): Likewise.
25060         * lib/fwriteerror.c [TEST]: Likewise.
25061         * tests/test-areadlink.h (test_areadlink): Likewise.
25062         * tests/test-areadlinkat-with-size.c (main): Likewise.
25063         * tests/test-areadlinkat.c (main): Likewise.
25064         * tests/test-canonicalize-lgpl.c (main): Likewise.
25065         * tests/test-canonicalize.c (main): Likewise.
25066         * tests/test-fstatat.c (main): Likewise.
25067         * tests/test-linkat.c (main): Likewise.
25068         * tests/test-lstat.h (test_lstat_func): Likewise.
25069         * tests/test-mkdir.h (test_mkdir): Likewise.
25070         * tests/test-readlink.h (test_readlink): Likewise.
25071         * tests/test-remove.c (main): Likewise.
25072         * tests/test-rename.h (test_rename): Likewise.
25073         * tests/test-renameat.c (main): Likewise.
25074         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25075         * tests/test-symlink.h (test_symlink): Likewise.
25076         * tests/test-symlinkat.c (main): Likewise.
25077         * tests/test-unlink.h (test_unlink_func): Likewise.
25078         * tests/test-unlinkat.c (main): Likewise.
25079
25080         maint: make realtime library usage explicit
25081         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25082         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25083         * modules/settime (Link): Likewise.
25084         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25085
25086         test-stat-time: speed up execution
25087         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25088         warning on mingw.
25089         (nap): New helper function.
25090         (prepare_test): Use it to reduce sleep time.
25091         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25092         execution.
25093         * modules/stat-time-tests (configure.ac): Check for usleep.
25094
25095 2009-10-09  Jim Meyering  <meyering@redhat.com>
25096
25097         selinux-h: always use getfilecon wrappers
25098         * lib/getfilecon.c: New file.
25099         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25100         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25101         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25102         (fgetfilecon): Provide a stub.
25103         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25104         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25105         file unconditionally.
25106         When <selinux/selinux.h> is found, arrange to use wrappers.
25107         * modules/selinux-h (Files): Add getfilecon.c.
25108         (Makefile.am): Substitute include-next-related bits
25109         into the now-always-generated selinux/selinux.h file.
25110         * doc/glibc-functions/lgetfilecon.texi: New file.
25111         * doc/glibc-functions/fgetfilecon.texi: New file.
25112         * doc/glibc-functions/getfilecon.texi: New file.
25113         * doc/glibc-functions/getfilecon-desc.texi: New file.
25114         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25115         which to pull in the new files.
25116         * MODULES.html.sh (Misc): Add selinux-h.
25117
25118 2009-10-08  Jim Meyering  <meyering@redhat.com>
25119
25120         unistd: fix comment typo
25121         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25122
25123 2009-10-08  Eric Blake  <ebb9@byu.net>
25124
25125         areadlink: use SIZE_MAX consistently
25126         * modules/areadlink (Depends-on): Add stdint.
25127         * modules/areadlink-with-size (Depends-on): Likewise.
25128         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25129         gives NULL; drop sys/types, since unistd gives size_t; and add
25130         stdint for SIZE_MAX.
25131         (SIZE_MAX): Rely on headers.
25132         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25133         and add stdint.
25134         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25135         (SIZE_MAX): Likewise.
25136         (INITIAL_BUF_SIZE): Turn into enum.
25137         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25138
25139 2009-10-08  Jim Meyering  <meyering@redhat.com>
25140
25141         areadlinkat: avoid compilation failure
25142         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25143         Fix typo in comment.
25144
25145 2009-10-07  Eric Blake  <ebb9@byu.net>
25146
25147         areadlinkat-with-size: new module
25148         * modules/areadlinkat-with-size: New module.
25149         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25150         * lib/areadlink.h (areadlinkat): Declare it.
25151         * MODULES.html.sh (File system functions): Mention it.
25152         * modules/areadlinkat-with-size-tests: New test.
25153         * tests/test-areadlinkat-with-size.c: New file.
25154
25155         xreadlinkat: new module
25156         * modules/xreadlinkat: New module.
25157         * lib/xreadlinkat.c (xreadlinkat): New file.
25158         * lib/xreadlink.h (xreadlinkat): Declare it.
25159         * MODULES.html.sh (File system functions): Mention it.
25160
25161         areadlinkat: new module
25162         * lib/at-func.c (FUNC_FAIL): New define.
25163         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25164         * modules/areadlinkat: New module.
25165         * lib/linkat.c (areadlinkat): Move...
25166         * lib/areadlinkat.c (areadlinkat): ...to new file.
25167         * lib/areadlink.h (areadlinkat): Declare it.
25168         * modules/linkat (Depends-on): Add areadlinkat.
25169         * MODULES.html.sh (File system functions): Mention it.
25170         * modules/areadlinkat-tests: New test.
25171         * tests/test-areadlinkat.c: New file.
25172
25173         areadlink, areadlink-with-size: add tests
25174         * modules/areadlink-tests: New test.
25175         * modules/areadlink-with-size-tests: Likewise.
25176         * tests/test-areadlink.h: New file.
25177         * tests/test-areadlink.c: Likewise.
25178         * tests/test-areadlink-with-size.c: Likewise.
25179
25180         maint: minor cleanups
25181         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25182         _UNUSED_PARAMETER_ instead.
25183         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25184         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25185         * modules/linkat-tests (Files): Distribute test-link.h.
25186
25187         openat, utimens: whitespace cleanup
25188         * lib/openat.c: Prefer space throughout, rather than mix of 8
25189         spaces vs. tabs.
25190         * lib/at-func.c: Likewise.
25191         * lib/utimens.c: Likewise.
25192
25193         openat: avoid using wrong fd
25194         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25195         working directory chooses same fd.
25196         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25197
25198         mkdir, mkdirat: fix cygwin 1.5.x bug
25199         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25200         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25201         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25202         bug.
25203         (gl_PREREQ_MKDIR): Delete unused macro.
25204         * modules/mkdir (Files): Track file rename.
25205         (configure.ac): Update macro name.
25206         * modules/openat (Depends-on): Add mkdir.
25207         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25208
25209         mkdir, mkdirat: add tests
25210         * modules/mkdir-tests: New test.
25211         * tests/test-mkdir.h: New file.
25212         * tests/test-mkdir.c: Likewise.
25213         * tests/test-mkdirat.c: Likewise.
25214         * modules/openat-tests (Files): Add new files.
25215         (Makefile.am): Run new test.
25216
25217 2009-10-06  Eric Blake  <ebb9@byu.net>
25218
25219         doc: tweak *at function documentation
25220         * doc/posix-functions/faccessat.texi (faccessat): Mention
25221         known issue with replacement.
25222         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25223         * doc/posix-functions/linkat.texi (linkat): Likewise.
25224         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25225         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25226         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25227         * doc/posix-functions/renameat.texi (renameat): Likewise.
25228         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25229
25230         openat: fix GNU/Hurd bug in unlinkat
25231         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25232         broken.
25233         * doc/posix-functions/unlink.texi (unlink): Document this.
25234         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25235
25236         fdopendir: fix GNU/Hurd bug
25237         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25238         allowing non-directory fds.
25239         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25240         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25241         * modules/dirent (Makefile.am): Substitute it.
25242         * lib/dirent.in.h (fdopendir): Declare replacement.
25243         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25244         * tests/test-fdopendir.c (main): Test something other than
25245         /dev/null, since on Hurd that behaves like a directory.
25246
25247         test-symlink: port to GNU/Hurd
25248         * tests/test-symlink.h (test_symlink): Relax expected errno.
25249
25250         doc: tweak more cygwin information
25251         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25252         now compatible with glibc.
25253         * doc/posix-functions/getopt.texi (getopt): Likewise.
25254
25255         getopt-gnu: add another test
25256         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25257         guarantee behavior relied on by m4.
25258         * tests/test-getopt.c (main): Use it.
25259         * modules/getopt-posix-tests (Depends-on): Add setenv.
25260         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25261
25262         getopt: fix compilation on darwin
25263         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25264         include.
25265         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25266         Reported by Ludovic Courtès.
25267
25268 2009-10-06  Bruno Haible  <bruno@clisp.org>
25269
25270         * modules/size_max (Description): Discourage its use.
25271         Reported by Simon Josefsson.
25272
25273 2009-10-06  Jim Meyering  <meyering@redhat.com>
25274
25275         linkat: avoid compilation failure
25276         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25277
25278 2009-10-05  Eric Blake  <ebb9@byu.net>
25279
25280         linkat: support Linux 2.6.17
25281         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25282         linkat on Linux, but allow cache variable override.
25283         * lib/linkat.c (rpl_linkat): Define override.
25284         * modules/linkat (Depends-on): Add symlinkat.
25285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25286         * modules/unistd (Makefile.am): Substitute it.
25287         * lib/unistd.in.h (linkat): Declare replacement.
25288         Reported by Pádraig Brady.
25289
25290         quotearg: port test to systems with C.UTF-8 locale
25291         * tests/test-quotearg.c (struct result_strings): Add another
25292         member, differentiating between C.ASCII and C.UTF-8 handling.
25293         (compare_strings): Add parameter.
25294         (main): Adjust all callers.
25295
25296         getopt: avoid clash with FreeBSD _getopt_internal
25297         * lib/getopt.in.h (_getopt_internal): Override the name.
25298         * lib/getopt_int.h (includes): Pick up any overrides.
25299         Reported by Reuben Thomas.
25300
25301         hash: allow C89 compilation
25302         * lib/hash.c (check_tuning): Move declaration before statement.
25303         Reported by Reuben Thomas.
25304
25305 2009-10-05  Karl Berry  <karl@gnu.org>
25306
25307         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25308
25309 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25310             Bruno Haible  <bruno@clisp.org>
25311
25312         * lib/uname.c (uname): Use a table-driven algorithm to compute
25313         Windows NT versions.
25314
25315 2009-10-04  Bruno Haible  <bruno@clisp.org>
25316
25317         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25318         program_invocation_short_name.
25319         * modules/progname (configure.ac): Test for presence of
25320         program_invocation_short_name.
25321         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25322
25323 2009-10-04  Bruno Haible  <bruno@clisp.org>
25324
25325         * lib/progname.c (set_program_name): Fix comment.
25326         Reported by Jim Meyering.
25327
25328 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25329             Bruno Haible  <bruno@clisp.org>
25330
25331         * lib/uname.c: Include <string.h>.
25332         (uname): Do only one call to GetVersionEx in the common case.
25333
25334 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25335             Bruno Haible  <bruno@clisp.org>
25336
25337         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25338         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25339         (uname): Add support for Windows CE and various non-x86 CPU types.
25340
25341 2009-10-03  Bruno Haible  <bruno@clisp.org>
25342
25343         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25344         invocation to tests/configure.ac.
25345         Reported by Ian Beckwith <ianb@erislabs.net>.
25346
25347 2009-10-02  Eric Blake  <ebb9@byu.net>
25348
25349         fchdir: avoid compiler warning
25350         * lib/fchdir.c (canonicalize_file_name)
25351         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25352
25353         test-open: support mingw errno values
25354         * tests/test-open.h (test_open): Relax test.
25355         * tests/test-fopen.h (test_fopen): Likewise.
25356         * tests/test-openat-safer.c (main): Likewise.
25357
25358         open: fix opening directory on mingw
25359         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25360
25361         test-open: on GNU/Hurd, /dev/null is a directory
25362         * tests/test-fopen.h (main): Rename...
25363         (test_fopen): ...to this.  Use a guaranteed non-directory when
25364         confirming open behavior on trailing slash.
25365         * tests/test-openat-safer.c (main): Likewise.
25366         * tests/test-open.h (main): Likewise....
25367         (test_open): ...to this.
25368         * tests/test-fopen.c (main): Adjust caller.
25369         * tests/test-fopen-safer.c (main): Likewise.
25370         * tests/test-open.c (main): Likewise.
25371         * tests/test-fcntl-safer.c (main): Likewise.
25372         Reported by Samuel Thibault.
25373
25374         rename, fchdir: don't ignore chdir failure
25375         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25376         * lib/rename.c (rpl_rename) [W32]: Likewise.
25377         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25378         an empty destination directory if source cannot be renamed,
25379         although there is still possibility for failure.
25380         * doc/posix-functions/rename.texi (rename): Document the race.
25381         Reported by Jim Meyering.
25382
25383         maint: cleanup whitespace in recent commits
25384         * lib/rename.c (rpl_rename): Remove tabs.
25385         * tests/test-link.h (test_link): Likewise.
25386         * lib/fchdir.c (get_name): Likewise.
25387         Reported by Jim Meyering.
25388
25389 2009-10-02  Ben Pfaff  <blp@gnu.org>
25390
25391         relocatable-prog-wrapper: Add missing dependency on
25392         double-slash-root.
25393         * modules/relocatable-prog-wrapper: Add dependency.
25394         Reported by Ian Beckwith <ianb@erislabs.net>.
25395
25396 2009-10-02  Eric Blake  <ebb9@byu.net>
25397
25398         renameat: fix Solaris bugs
25399         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25400         needed fixing.
25401         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25402         * modules/stdio (Makefile.am): Substitute it.
25403         * lib/stdio.in.h (renameat): Declare replacement.
25404         * lib/renameat.c (rpl_renameat): Implement fix.
25405
25406         renameat: new module
25407         * modules/renameat: New file.
25408         * lib/renameat.c (renameat): Likewise.
25409         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25411         * modules/stdio (Makefile.am): Substitute them.
25412         * lib/stdio.in.h (renameat): Declare it.
25413         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25414         * doc/posix-functions/renameat.texi (renameat): Likewise.
25415         * modules/renameat-tests: New test.
25416         * tests/test-renameat.c: Likewise.
25417
25418         rename: fix mingw bugs
25419         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25420         directory overwrite bugs.
25421
25422         rename: fix another cygwin 1.5 bug
25423         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25424         checks.
25425         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25426         unnecessary cygwin workarounds.  Also work around bug with moving
25427         full directory onto an empty one.
25428         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25429
25430         rename-dest-slash: merge into rename module
25431         * modules/rename-dest-slash (Status): Mark obsolete.
25432         (Depends-on): Add rename.
25433         (Files): Let rename do it all.
25434         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25435         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25436         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25437         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25438         * lib/rename.c (rpl_rename): Update comments.
25439
25440         rename: fix cygwin 1.5.x bugs
25441         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25442         * lib/rename.c (rpl_rename): Work around them.
25443         * modules/rename (Depends-on): Add same-inode.
25444
25445         rename: fix Solaris 10 bug
25446         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25447         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25448         was the only bug.
25449
25450         rename: fix Solaris 9 bug
25451         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25452         on non-directory.  Avoid calling exit.
25453         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25454         strdup.
25455         * modules/rename-tests (Depends-on): Drop lstat.
25456         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25457         (gl_PREREQ_RENAME): Delete unused macro.
25458
25459         rename-dest-slash: fix NetBSD bug
25460         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25461         links.
25462         * modules/rename-dest-slash (Depends-on): Add same-inode.
25463
25464         rename-tests: new test, exposes several platform bugs
25465         * modules/rename-tests: New file.
25466         * tests/test-rename.h: Likewise.
25467         * tests/test-rename.c: Likewise.
25468         * doc/posix-functions/rename.texi (rename): Improve documentation,
25469         including bugs that will eventually be fixed in gnulib.
25470
25471 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25472
25473         * lib/uname.c: Include <stdlib.h>
25474         (uname): Assume version info is available.
25475
25476 2009-10-02  Jim Meyering  <meyering@redhat.com>
25477
25478         gnu-web-doc-update: correct --help output
25479         * build-aux/gnu-web-doc-update: Make --help output relevant.
25480
25481         gnu-web-doc-update: add standard options
25482         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25483
25484         gnu-web-doc-update: New module.
25485         Use this script to automatically update the on-line web documentation
25486         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25487         * modules/gnu-web-doc-update: New file, from coreutils.
25488         * build-aux/gnu-web-doc-update: New script.
25489
25490 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25491
25492         link: LoadLibrary is not needed.
25493         * lib/link.c: Use GetModuleHandle.
25494
25495 2009-10-01  Eric Blake  <ebb9@byu.net>
25496
25497         getopt: bump serial number
25498         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25499         change.
25500
25501         tests: tighten link, rmdir, and remove tests
25502         * tests/test-link.h (includes): No need to use <config.h> here.
25503         Clean up if directory hard link was created, otherwise test for
25504         trailing '.'.
25505         * tests/test-linkat.c (main): Simplify.
25506         * tests/test-remove.c (main): Enhance test for trailing '.'.
25507         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25508
25509 2009-10-01  Jim Meyering  <meyering@redhat.com>
25510
25511         maint.mk: requiring "make major" was annoying, for a "minor" release.
25512         What is intended is "stable", to contrast with alpha and beta,
25513         so require "make stable", not "make major".
25514         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25515         (get_tool_versions): Likewise.
25516         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25517
25518 2009-09-30  Ben Pfaff  <blp@gnu.org>
25519
25520         Fix broken build of replacement for Windows tmpfile().
25521         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
25522         flags argument added along with the 'mkostemp' module.
25523
25524 2009-09-28  Bruno Haible  <bruno@clisp.org>
25525
25526         Avoid identifier clash with POSIX function 'remove' defined as a macro.
25527         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
25528         to 'remove_elt'.
25529         (gl_list_remove): Update.
25530         * lib/gl_list.c (gl_list_remove): Update.
25531         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
25532         to 'remove_elt'.
25533         (gl_oset_remove): Update.
25534         * lib/gl_list.c (gl_oset_remove): Update.
25535         Reported by Eric Blake.
25536
25537 2009-09-28  Eric Blake  <ebb9@byu.net>
25538
25539         doc: mention yet more cygwin 1.7 status
25540         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
25541         cygwin.
25542         * doc/glibc-functions/execvpe.texi (execvpe): New file.
25543         * doc/gnulib.texi (Glibc unistd.h): Mention it.
25544
25545         argp: fix test failure
25546         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
25547         that are not upper-case.  Pass correct range to tolower.
25548
25549 2009-09-27  Jim Meyering  <meyering@redhat.com>
25550
25551         test-yesno: work around sparc-dash here-document infelicity
25552         Without this change, the literal \177 byte in a here document
25553         would make dash 0.5.5.1-3 access uninitialized memory.
25554         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
25555         Instead, use a marker, "@", and filter through tr to create the desired
25556         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
25557
25558 2009-09-27  Bruno Haible  <bruno@clisp.org>
25559
25560         Disable untested support for new flavours of ACLs on AIX.
25561         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
25562         progress.
25563         * lib/set-mode-acl.c (qset_acl): Likewise.
25564
25565 2008-12-07  Bruno Haible  <bruno@clisp.org>
25566
25567         Add support for new flavours of ACLs on AIX. (Untested.)
25568         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
25569         (file_has_acl): Add support for newer AIX.
25570         * lib/set-mode-acl.c (qset_acl): Likewise.
25571         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
25572         Rainer Tammer <tammer@tammer.net>.
25573
25574 2009-09-26  Eric Blake  <ebb9@byu.net>
25575
25576         argp: fix compilation of getopt
25577         * lib/getopt.in.h (includes): Use different guard than glibc.
25578         Reported by Sergey Poznyakoff.
25579
25580         doc: mention more cygwin 1.7 status
25581         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
25582         bug.
25583         * doc/posix-functions/execl.texi (execl): Likewise.
25584         * doc/posix-functions/execle.texi (execle): Likewise.
25585         * doc/posix-functions/execlp.texi (execlp): Likewise.
25586         * doc/posix-functions/execv.texi (execv): Likewise.
25587         * doc/posix-functions/execve.texi (execve): Likewise.
25588         * doc/posix-functions/execvp.texi (execvp): Likewise.
25589         * doc/glibc-functions/canonicalize_file_name.texi
25590         (canonicalize_file_name): Cygwin 1.7 now provides this.
25591         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
25592         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
25593         on AT_SYMLINK_NOFOLLOW.
25594
25595 2009-09-24  Eric Blake  <ebb9@byu.net>
25596
25597         test-linkat: make test more robust
25598         * tests/test-linkat.c (main): Avoid collision with EEXIST.
25599
25600         getopt: fix inclusion guards for cygwin
25601         * modules/getopt-posix (Depends-on): Add include-next.
25602         (Makefile.am): Substitute more items in replacement header.
25603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
25604         <getopt.h>.
25605         * lib/getopt.in.h (includes): Use split inclusion guard, and
25606         prefer <getopt.h> over include <unistd.h> when one is present.
25607         (option): Also override name of 'struct option'.
25608
25609         same-inode: revert prior change; it is not yet ready
25610         * NEWS: Undo mention of this change.
25611         * lib/same-inode.h (same-inode.h): Undo tri-state change.
25612         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25613         * lib/cycle-check.c (cycle_check): Likewise.
25614         * lib/same.c (same_name): Likewise.
25615         * lib/at-func2.c (at_func2): Likewise.
25616
25617 2009-09-23  Eric Blake  <ebb9@byu.net>
25618
25619         linkat: new module
25620         * modules/linkat: New file.
25621         * lib/at-func2.c (at_func2): Likewise.
25622         * lib/linkat.c (linkat): Likewise.
25623         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25624         * lib/openat-priv.h (at_func2): Add declaration.
25625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25626         * modules/unistd (Makefile.am): Substitute them.
25627         * lib/unistd.in.h (linkat): Declare it.
25628         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25629         * doc/posix-functions/linkat.texi (linkat): Likewise.
25630         * doc/posix-functions/link.texi (link): Tweak wording.
25631         * tests/test-link.c (main): Move guts...
25632         * tests/test-link.h (test_link): ...into new file.
25633         * modules/linkat-tests: New test.
25634         * tests/test-linkat.c: Likewise.
25635         * modules/link-tests (Files): Ship new file.
25636         (Depends-on): Add stdbool.
25637
25638         dirname: add library-safe mdir_name
25639         * lib/dirname.h (mdir_name): New prototype.
25640         * lib/dirname.c (dir_name): Move guts...
25641         (mdir_name): ...to new function that avoids xalloc_die.
25642
25643         fchdir: another mingw fix
25644         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
25645         * lib/fchdir.c (get_name): New helper method; skips canonicalize
25646         on mingw (where it has not yet been ported), and make it optional
25647         elsewhere.
25648         (_gl_register_fd): Use it.
25649
25650         same-inode: make SAME_INODE tri-state, to port to mingw
25651         * NEWS: Mention this change.
25652         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
25653         st_ino always being 0.
25654         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25655         * lib/cycle-check.c (cycle_check): Likewise.
25656         * lib/same.c (same_name): Likewise.
25657
25658         lstat: avoid mingw compilation error
25659         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
25660         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
25661         lstat ourselves.
25662         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
25663         was adequate.
25664         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
25665         the checks for lstat.
25666         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
25667
25668         link: fix test failure on Solaris 9
25669         * lib/link.c (rpl_link): Don't assume link will catch bogus
25670         trailing slash on source.
25671
25672         test-symlinkat: enhance test
25673         * tests/test-readlink.c (main): Move guts...
25674         * tests/test-readlink.h (test_readlink): ...into new file.
25675         * tests/test-symlink.c (main): Move guts...
25676         * tests/test-symlink.h (test_symlink): ...into new file.
25677         * tests/test-symlinkat.c (main): Use new files for further
25678         coverage.
25679         (do_symlink, do_readlink): New helper functions.
25680         * modules/symlink-tests (Files): Ship new file.
25681         (Depends-on): Add stdbool.
25682         * modules/readlink-tests (Files): Ship new file.
25683         (Depends-on): Add stdbool.
25684         * modules/symlinkat-tests (Files): Use new files.
25685
25686 2009-09-23  Eric Blake  <ebb9@byu.net>
25687
25688         readlink: document portability issue with symlink length
25689         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25690         systems have bogus st_size on symlinks, and mention the
25691         areadlink-with-size module.
25692         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25693         * doc/posix-functions/readlink.texi (readlink): Mention the
25694         areadlink module, and ERANGE failure.
25695         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25696         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25697
25698         readlink: fix Solaris 9 bug with trailing slash
25699         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25700         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25701         * doc/posix-functions/readlink.texi (readlink): Document this.
25702         * modules/readlink-tests: New test.
25703         * tests/test-readlink.c: Likewise.
25704
25705         readlink: fix cygwin 1.5.x bug with return type
25706         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25707         * lib/unistd.in.h (readlink): Use ssize_t.
25708         * lib/readlink.c (readlink): Likewise.
25709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25710         * modules/unistd (Makefile.am): Substitute it.
25711         * lib/unistd.in.h (readlink): Declare replacement.
25712         * doc/posix-functions/readlink.texi (readlink): Document this.
25713
25714         symlink: use throughout gnulib
25715         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25716         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25717         symlink is not used.
25718         * modules/symlinkat (Depends-on): Add symlink.
25719         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25720         * modules/canonicalize-tests (Depends-on): Likewise.
25721         * modules/lstat-tests (Depends-on): Likewise.
25722         * modules/openat-tests (Depends-on): Likewise.
25723         * modules/remove-tests (Depends-on): Likewise.
25724         * modules/rmdir-tests (Depends-on): Likewise.
25725         * modules/unlink-tests (Depends-on): Likewise.
25726         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25727         * tests/test-canonicalize.c (symlink): Likewise.
25728         * tests/test-fstatat.c (symlink): Likewise.
25729         * tests/test-lstat.c (symlink): Likewise.
25730         * tests/test-remove.c (symlink): Likewise.
25731         * tests/test-rmdir.c (symlink): Likewise.
25732         * tests/test-unlink.c (symlink): Likewise.
25733         * tests/test-unlinkat.c (symlink): Likewise.
25734
25735         symlink: new module, for Solaris 9 bug
25736         * modules/symlink: New file.
25737         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25738         * lib/symlink.c: Likewise.
25739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25740         * modules/unistd (Makefile.am): Substitute them.
25741         * lib/unistd.in.h (symlink): Declare replacement.
25742         * MODULES.html.sh (File system functions): Mention it.
25743         * doc/posix-functions/symlink.texi (symlink): Likewise.
25744         * modules/symlink-tests: New test.
25745         * tests/test-symlink.c: Likewise.
25746
25747 2009-09-23  Bruno Haible  <bruno@clisp.org>
25748
25749         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25750         when needed.
25751         Test case: gnulib-tool --import --with-tests atexit inttypes.
25752         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25753
25754 2009-09-23  Bruno Haible  <bruno@clisp.org>
25755
25756         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25757         subcommand, not in a subshell.
25758
25759 2009-09-22  Eric Blake  <ebb9@byu.net>
25760
25761         unistd: sort replacement declarations
25762         * lib/unistd.in.h: Sort declarations.
25763
25764         open, openat: minor optimization
25765         * lib/open.c (open): If open succeeded, len is non-zero.
25766         * lib/openat.c (rpl_openat): Likewise.
25767
25768         link-follow: ensure correct result
25769         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25770         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25771         distinguish between possible failures.
25772
25773 2009-09-21  Eric Blake  <ebb9@byu.net>
25774
25775         fts: avoid compiler warning
25776         * lib/fts.c (dirent_inode_sort_may_be_useful)
25777         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25778
25779 2009-09-19  Bruno Haible  <bruno@clisp.org>
25780
25781         * lib/progreloc.c (canonicalize_file_name): New declaration.
25782
25783 2009-09-19  Eric Blake  <ebb9@byu.net>
25784
25785         link: fix quoting
25786         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25787
25788         openat: fix openat bugs on Solaris 9
25789         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25790         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25791         * modules/openat (Depends-on): Add open.
25792         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
25793         * modules/fcntl-h (Makefile.am): Substitute it.
25794         * lib/fcntl.in.h (openat): Declare replacement.
25795         * doc/posix-functions/openat.texi (openat): Document this.
25796
25797         openat: move fstatat and unlinkat into correct files
25798         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
25799         compiled.
25800         * lib/openat.c (fstatat, unlinkat): Move...
25801         * lib/fstatat.c (fstatat): ...into correct files.
25802         * lib/unlinkat.c (unlinkat): Likewise.
25803
25804         openat: fix unlinkat bugs on Solaris 9
25805         * lib/unlinkat.c (unlinkat): New file.
25806         * modules/openat (Depends-on): Add unlink.
25807         (Files): Distribute it.
25808         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
25809         trailing slash behavior is broken.
25810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25811         * modules/unistd (Makefile.am): Substitute it.
25812         * lib/unistd.in.h (unlinkat): Declare replacement.
25813         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
25814
25815         openat: fix fstatat bugs on Solaris 9
25816         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
25817         stat.
25818         * doc/posix-functions/fstatat.texi (fstatat): Document this.
25819
25820         test-unlinkat: enhance test, to expose Solaris 9 bug
25821         * tests/test-unlink.c (main): Factor guts...
25822         * tests/test-unlink.h (test_rmdir_func): ...into new file.
25823         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
25824         * tests/test-rmdir.c (main): Adjust caller.
25825         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
25826         (unlinker): New helper function.
25827         (rmdirat): Enhance check.
25828         * modules/rmdir-tests (Depends-on): Add stdbool.
25829         * modules/unlink-tests (Depends-on): Likewise.
25830         (Files): Add test-unlink.h.
25831         * modules/openat-tests (Files): Likewise.
25832         (Depends-on): Add unlinkdir.
25833
25834         test-fstatat: new test, to expose Solaris 9 bugs
25835         * tests/test-stat.c (main): Factor guts...
25836         * tests/test-stat.h (test_stat_func): ...into new file.
25837         * tests/test-lstat.c (main): Factor guts...
25838         * tests/test-lstat.h (test_lstat_func): ...into new file.
25839         * tests/test-fstatat.c: New file.
25840         * modules/stat-tests (Files): Add test-stat.h.
25841         * modules/lstat-tests (Files): Add test-lstat.h.
25842         (Depends-on): Add stdbool.
25843         * modules/openat-tests (Depends-on): Add pathmax.
25844         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
25845         (Makefile.am): Run new test.
25846
25847         remove: new module, for mingw and Solaris 9 bugs
25848         * modules/remove: New file.
25849         * lib/remove.c: Likewise.
25850         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
25851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25852         * modules/stdio (Makefile.am): Use them.
25853         * lib/stdio.in.h (remove): Declare replacement.
25854         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25855         * doc/posix-functions/remove.texi (remove): Likewise.
25856         * modules/remove-tests: New test.
25857         * tests/test-remove.c: Likewise.
25858
25859         unlink: new module, for Solaris 9 bug
25860         * modules/unlink: New file.
25861         * lib/unlink.c: Likewise.
25862         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25864         * modules/unistd (Makefile.am): Use them.
25865         * lib/unistd.in.h (stat): Declare replacement.
25866         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25867         * doc/posix-functions/unlink.texi (unlink): Likewise.
25868         * modules/unlink-tests: New test.
25869         * tests/test-unlink.c: Likewise.
25870
25871         lstat: fix Solaris 9 bug
25872         * lib/lstat.c (lstat): Also check for trailing slash on
25873         non-symlink, non-directories.  Use stat module to simplify logic.
25874         * doc/posix-functions/lstat.texi (lstat): Document it.
25875         * modules/lstat-tests (Depends-on): Add errno, same-inode.
25876         (configure.ac): Check for symlink.
25877         * tests/test-lstat.c (main): Add more tests.
25878
25879         stat: add as dependency to other modules
25880         * modules/chown (Depends-on): Add stat.
25881         * modules/euidaccess (Depends-on): Likewise.
25882         * modules/fchdir (Depends-on): Likewise.
25883         * modules/isdir (Depends-on): Likewise.
25884         * modules/link (Depends-on): Likewise.
25885         * modules/lstat (Depends-on): Likewise.
25886         * modules/mkdir-p (Depends-on): Likewise.
25887         * modules/modechange (Depends-on): Likewise.
25888         * modules/open (Depends-on): Likewise.
25889         * modules/readlink (Depends-on): Likewise.
25890         * modules/same (Depends-on): Likewise.
25891
25892         stat: fix Solaris 9 bug
25893         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
25894         slash.
25895         * lib/stat.c (rpl_stat): Work around it.
25896         * doc/posix-functions/stat.texi (stat): Update documentation.
25897
25898         stat: new module, for mingw bug
25899         * modules/stat: New file.
25900         * lib/stat.c: Likewise.
25901         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25902         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25903         * modules/sys_stat (Makefile.am): Use them.
25904         * lib/sys_stat.in.h (stat): Declare replacement.
25905         * lib/openat.c (fstatat): Deal with lstat and stat being function
25906         macros.
25907         * modules/openat (Depends-on): Add inline.
25908         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25909         * doc/posix-functions/stat.texi (stat): Likewise.
25910         * modules/stat-tests: New test.
25911         * tests/test-stat.c: Likewise.
25912
25913 2009-09-19  Jim Meyering  <meyering@redhat.com>
25914
25915         syntax-check: detect unnecessary inclusion of canonicalize.h
25916         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
25917
25918 2009-09-19  Eric Blake  <ebb9@byu.net>
25919
25920         canonicalize-lgpl: adjust clients to use correct header
25921         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25922         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
25923         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
25924         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
25925         * lib/progreloc.c (includes): Likewise.
25926
25927 2009-09-19  Jim Meyering  <meyering@redhat.com>
25928
25929         test-posixtm.c: correct a comment
25930         * tests/test-posixtm.c: Correct first-line comment.
25931         Spotted by Eric Blake.
25932
25933 2009-09-16  Jim Meyering  <meyering@redhat.com>
25934
25935         posixtm-tests: make T const-correct; add a test case
25936         * tests/test-posixtm.c (T): Declare const.
25937         Add a test for -(2^31+1).
25938         Remove useless can-succeed-only-in-2002 test.
25939
25940         posixtm-tests: adjust the sole failing test
25941         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
25942         expected output matches what mktime now produces.  Cross-checked via
25943         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
25944
25945         posixtm: move #ifdef'd tests into a new module
25946         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
25947         * tests/test-posixtm.c: ... this new file.
25948         * modules/posixtm-tests: New module.
25949
25950 2009-09-19  Eric Blake  <ebb9@byu.net>
25951
25952         openat: simplify use of at-func.c
25953         * lib/at-func.c (includes): Include prerequisites here, to
25954         simplify requirements on client files.
25955         * lib/openat-priv.h: Add double-inclusion guard.
25956         * lib/faccessat.c (includes): Simplify.
25957         * lib/fchmodat.c (includes): Likewise.
25958         * lib/fchownat.c (includes): Likewise.
25959         * lib/mkdirat.c (includes): Likewise.
25960         * lib/mkfifoat.c (includes): Likewise.
25961         * lib/symlinkat.c (includes): Likewise.
25962
25963         openat: allow return of fd 0
25964         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
25965         * modules/save-cwd (Depends-on): Replace fcntl-safer with
25966         unistd-safer.
25967         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
25968         <fcntl.h>; this module does not leak fds.
25969         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
25970         must be allowed to return 0, leaving openat_safer to add the
25971         safety.
25972         (openat_permissive): Avoid writing to just-opened fd 2 if
25973         restoring the current directory fails.
25974         * lib/openat-die.c (openat_restore_fail): Add comment.
25975         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
25976         (save_cwd): Guarantee safe fd, but without use of open_safer.
25977         * tests/test-openat.c: New test.
25978         * modules/openat-tests (Files, Makefile.am): Distribute and build
25979         new file.
25980
25981         relocatable-prog-wrapper: fix build
25982         * modules/relocatable-prog-wrapper (Files): Update name of
25983         canonicalize m4 file, broken on 2009-09-17.
25984         Reported by emad hajjar <aleppos@hotmail.com>.
25985
25986 2009-09-19  Bruno Haible  <bruno@clisp.org>
25987
25988         * lib/safe-alloc.h: Use the standard header with GPL copyright.
25989         * lib/safe-alloc.c: Likewise.
25990         Reported by Ian Beckwith <ianb@erislabs.net>.
25991
25992 2009-09-18  Bruno Haible  <bruno@clisp.org>
25993
25994         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
25995         Reported by <erobles@sensacd.com.mx>.
25996
25997 2009-09-17  Eric Blake  <ebb9@byu.net>
25998
25999         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26000         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26001         slashes when checking if last component is missing.
26002         * tests/test-canonicalize.c (main): Test this.
26003
26004         canonicalize, canonicalize-lgpl: honor // if distinct from /
26005         * modules/canonicalize (Files): Add double-slash-root.m4.
26006         * modules/canonicalize-lgpl (Files): Likewise.
26007         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26008         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26009         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26010         fallback definition.
26011         (canonicalize_filename_mode): Use it to protect //.
26012         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26013         (__realpath): Likewise.
26014         * tests/test-canonicalize.c (main): Test this.
26015         * tests/test-canonicalize-lgpl.c (main): Likewise.
26016         * modules/canonicalize-tests (Depends-on): Add same-inode.
26017         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26018
26019         canonicalize-lgpl: fix glibc bug with trailing slash
26020         * m4/canonicalize-lgpl.m4: Move contents...
26021         * m4/canonicalize.m4: ...here.
26022         (gl_CANONICALIZE_LGPL): Factor realpath check...
26023         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26024         glibc 2.3.5 bug, fixed 2005-04-27.
26025         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26026         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26027         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26028         * modules/canonicalize-lgpl (Files): Manage file rename.
26029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26030         * modules/stdlib (Makefile.am): Substitute witness.
26031         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26032         is needed.
26033         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26034         replacement is required.
26035         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26036         * doc/glibc-functions/canonicalize_file_name.texi
26037         (canonicalize_file_name): Document this.
26038         * doc/posix-functions/realpath.texi (realpath): Likewise.
26039
26040         canonicalize-lgpl: reject non-directory with trailing slash
26041         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26042         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26043         catches failures in glibc 2.3.5.
26044         * tests/test-canonicalize.c (main): Likewise.
26045
26046         canonicalize-lgpl: use native realpath if it works
26047         * lib/canonicalize-lgpl.c (realpath): Guard with
26048         FUNC_REALPATH_WORKS.
26049         * lib/stdlib.in.h (realpath): Make declaration optional based on
26050         HAVE_REALPATH.
26051         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26052         native realpath works.
26053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26054         * modules/stdlib (Makefile.am): Substitute witness.
26055
26056         canonicalize, canonicalize-lgpl: use <stdlib.h>
26057         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26058         (Include): Mention <stdlib.h>.
26059         (configure.ac): Mention functions we provide.
26060         * modules/canonicalize (configure.ac): Likewise.
26061         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26062         realpath if canonicalize_file_name is missing.
26063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26064         * modules/stdlib (Makefile.am): Substitute witnesses.
26065         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26066         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26067         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26068         * NEWS: Document this.
26069         * doc/glibc-functions/canonicalize_file_name.texi
26070         (canonicalize_file_name): Likewise.
26071         * doc/posix-functions/realpath.texi (realpath): Likewise.
26072         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26073
26074         test-canonicalize: consolidate into single C program
26075         * tests/test-canonicalize.sh: Delete; move setup into...
26076         * tests/test-canonicalize.c (main): ...the program, making it
26077         easier to run in debugger.  Add some tests.
26078         * modules/canonicalize-tests (Files): Remove unused file.
26079         (Depends-on): Add progname.
26080         (configure.ac, Makefile.am): Simplify.
26081
26082         test-canonicalize-lgpl: consolidate into single C program
26083         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26084         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26085         easier to run in debugger.  Add some tests.
26086         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26087         (configure.ac, Makefile.am): Simplify.
26088
26089         canonicalize: avoid resolvepath
26090         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26091         unnecessary checks.
26092         * lib/canonicalize.c (includes): Simplify.
26093         (canonicalize_file_name): Drop resolvepath implementation.
26094         * modules/canonicalize (Depends-on): Drop filenamecat.
26095
26096         canonicalize: don't lose errno
26097         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26098         over calls to free.
26099
26100         canonicalize: simplify errno handling
26101         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26102         assignment.
26103
26104         canonicalize, canonicalize-lgpl: update module dependencies
26105         * modules/canonicalize (Depends-on): Add extensions, lstat,
26106         pathmax, stdlib.
26107         (Files): Drop pathmax.h.
26108         (configure.ac): Adjust macro name.
26109         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26110         lstat, stdlib, sys_stat.
26111         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26112         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26113         extensions.
26114         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26115         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26116         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26117         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26118         declaration, if available.
26119         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26120         we can rely on the readlink module.
26121         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26122         (includes): Use <unistd.h> unconditionally.
26123
26124 2009-09-17  Eric Blake  <ebb9@byu.net>
26125
26126         maint: make Include sections of modules consistent
26127         * modules/alloca: Use only header name; no need to list #include.
26128         * modules/alloca-opt: Likewise.
26129         * modules/arpa_inet: Likewise.
26130         * modules/canon-host: Likewise.
26131         * modules/configmake: Likewise.
26132         * modules/dirent: Likewise.
26133         * modules/eealloc: Likewise.
26134         * modules/environ: Likewise.
26135         * modules/fchdir: Likewise.
26136         * modules/fcntl: Likewise.
26137         * modules/fcntl-h: Likewise.
26138         * modules/gethrxtime: Likewise.
26139         * modules/gettime: Likewise.
26140         * modules/ignore-value: Likewise.
26141         * modules/inet_ntop: Likewise.
26142         * modules/inet_pton: Likewise.
26143         * modules/inttypes: Likewise.
26144         * modules/isnand-nolibm: Likewise.
26145         * modules/isnanf-nolibm: Likewise.
26146         * modules/mbchar: Likewise.
26147         * modules/mbfile: Likewise.
26148         * modules/mbiter: Likewise.
26149         * modules/mbuiter: Likewise.
26150         * modules/netdb: Likewise.
26151         * modules/netinet_in: Likewise.
26152         * modules/nproc: Likewise.
26153         * modules/pagealign_alloc: Likewise.
26154         * modules/poll: Likewise.
26155         * modules/printf-frexp: Likewise.
26156         * modules/pthread: Likewise.
26157         * modules/putenv: Likewise.
26158         * modules/random_r: Likewise.
26159         * modules/relocatable-prog: Likewise.
26160         * modules/search: Likewise.
26161         * modules/select: Likewise.
26162         * modules/selinux-h: Likewise.
26163         * modules/settime: Likewise.
26164         * modules/signal: Likewise.
26165         * modules/size_max: Likewise.
26166         * modules/socklen: Likewise.
26167         * modules/ssize_t: Likewise.
26168         * modules/stdarg: Likewise.
26169         * modules/stdbool: Likewise.
26170         * modules/stddef: Likewise.
26171         * modules/stdint: Likewise.
26172         * modules/stdio: Likewise.
26173         * modules/stdlib: Likewise.
26174         * modules/string: Likewise.
26175         * modules/strings: Likewise.
26176         * modules/sys_file: Likewise.
26177         * modules/sys_ioctl: Likewise.
26178         * modules/sys_select: Likewise.
26179         * modules/sys_socket: Likewise.
26180         * modules/sys_stat: Likewise.
26181         * modules/sys_time: Likewise.
26182         * modules/sys_times: Likewise.
26183         * modules/sys_utsname: Likewise.
26184         * modules/sys_wait: Likewise.
26185         * modules/sysexits: Likewise.
26186         * modules/time: Likewise.
26187         * modules/times: Likewise.
26188         * modules/tmpfile: Likewise.
26189         * modules/trim: Likewise.
26190         * modules/unistd: Likewise.
26191         * modules/wchar: Likewise.
26192         * modules/wctype: Likewise.
26193
26194 2009-09-17  Bruno Haible  <bruno@clisp.org>
26195
26196         Make getdate.y compile on QNX and NetBSD 5 / i386.
26197         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26198         TIME_T_FITS_IN_LONG_INT.
26199         * lib/getdate.y (long_time_t): New type.
26200         (relative_time): Change type of 'seconds' field to long_time_t.
26201         (get_date): Update types of local variables. Check against overflow
26202         during conversion from long_time_t to time_t.
26203         Reported by Matt Kraai <kraai@ftbfs.org>
26204         and Hasso Tepper <hasso@netbsd.org>.
26205
26206 2009-09-17  Bruno Haible  <bruno@clisp.org>
26207
26208         * modules/COPYING: Update copyright years.
26209         * modules/README: Likeiwse.
26210         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26211         Reported by Ian Beckwith <ianb@erislabs.net>.
26212
26213 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26214
26215         * users.txt: Update references for gnuit package.
26216
26217 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26218
26219         * m4/getdelim.m4: Fix typo in copyright line.
26220
26221 2009-09-17  Bruno Haible  <bruno@clisp.org>
26222
26223         * lib/atoll.c: Use the standard header with GPL copyright.
26224         * lib/argz.in.h: Likewise.
26225         * lib/glob.c: Likewise.
26226         * lib/glob-libc.h: Likewise.
26227         * lib/random_r.c: Likewise.
26228         * lib/siglist.h: Likewise.
26229         * lib/strsignal.c: Likewise.
26230         Reported by Ian Beckwith <ianb@erislabs.net>.
26231
26232 2009-09-17  Eric Blake  <ebb9@byu.net>
26233
26234         rmdir: ensure correct dependency order
26235         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26236
26237 2009-09-17  Bruno Haible  <bruno@clisp.org>
26238
26239         Disable assertion that fails on NetBSD 5 / i386.
26240         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26241         Reported by Sam Steingold <sds@gnu.org>
26242         and Hasso Tepper <hasso@netbsd.org>.
26243
26244 2009-09-16  Eric Blake  <ebb9@byu.net>
26245
26246         unlinkdir: port to mingw
26247         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26248         on which no one can unlink a directory.
26249
26250         stdlib: sort witness names
26251         * modules/stdlib (Makefile.am): Sort replacements.
26252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26253         * lib/stdlib.in.h: Likewise.
26254
26255         parse-duration-tests: avoid link failure
26256         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26257         LIBINTL.
26258         Reported by Tom G. Christensen.
26259
26260         openat-tests: ensure unlinkat behaves like rmdir
26261         * tests/test-rmdir.c (main): Factor guts...
26262         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26263         * modules/rmdir-tests (Files): Ship new file.
26264         * modules/openat-tests: New test.
26265         * tests/test-unlinkat.c: Likewise.
26266
26267         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26268         * modules/rmdir-errno (Status, Notice): Now obsolete.
26269
26270         rmdir: work around cygwin 1.5.x and mingw bugs
26271         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26272         * lib/rmdir.c (rmdir): Work around it.
26273         * modules/rmdir (Status, Notice): No longer obsolete.
26274         (Files): Add dos.m4.
26275         (Depends-on): Add unistd.
26276         (configure.ac): Set witnesses.
26277         (License): Relax to LGPLv2+.
26278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26279         * modules/unistd (Makefile.am): Substitute witnesses.
26280         * lib/unistd.in.h (rmdir): Declare replacement.
26281         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26282         * modules/rmdir-tests: New tests.
26283         * tests/test-rmdir.c: Likewise.
26284
26285 2009-09-15  Eric Blake  <ebb9@byu.net>
26286
26287         fchdir: improve use of replacement functions
26288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26289         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26290         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26291         REPLACE_CLOSEDIR.
26292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26293         * modules/sys_stat (Makefile.am): Substitute correct witness.
26294         * modules/dirent (Makefile.am): Likewise.
26295         * modules/unistd (Makefile.am): Likewise.
26296         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26297         * lib/unistd.in.h (dup): Likewise.
26298         * lib/sys_stat.in.h (fstat): Likewise.
26299
26300         maint: ignore gnulib-tool temp files
26301         * .gitignore: Ignore files created during gnulib-tool --test.
26302
26303 2009-09-13  Jim Meyering  <meyering@redhat.com>
26304
26305         posixtm: don't reject a time that specify "60" as the number of seconds
26306         * lib/posixtm.c (posixtime): The code to reject invalid dates
26307         would also reject a time specified with the .60 suffix.
26308         But POSIX allows that, in order to accommodate leap seconds.
26309         So don't reject it.
26310         (main): Adjust tests accordingly.
26311         * modules/posixtm (Depends-on): Add stpcpy.
26312
26313 2009-09-11  Jim Meyering  <meyering@redhat.com>
26314
26315         announce-gen: include [$release_type] in emitted Subject:
26316         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26317         e.g., [stable] in the emitted Subject: line.
26318
26319 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26320
26321         Remove obsolete macros from several modules.
26322         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26323         obsolete Autoconf macros with their modern counterparts.
26324         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26325         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26326         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26327         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26328         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26329         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26330         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26331         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26332         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26333         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26334         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26335         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26336         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26337         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26338         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26339         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26340         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26341         * m4/time_r.m4 (gl_TIME_R): Likewise.
26342         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26343         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26344         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26345
26346         Fix copyright header in build-aux scripts.
26347         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26348         recommendation.
26349         * build-aux/ncftpput-ftp: Likewise.
26350         * build-aux/update-copyright: Likewise.
26351
26352 2009-09-09  Eric Blake  <ebb9@byu.net>
26353
26354         test-link: allow Linux choice of errno
26355         * tests/test-link.c (main): Relax test for alternate error.
26356
26357         strndup: fix improper m4 caching
26358         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26359         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26360         (gl_PREREQ_STRNDUP): Delete.
26361         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26362         * modules/string (Makefile.am): Substitute it.
26363         * lib/string.in.h (strndup): Modernize prototype.
26364
26365         getcwd: port to mingw
26366         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26367         different from the POSIX assumptions made throughout the getcwd
26368         module; fortunately, the mingw getcwd does not need replacement.
26369         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26370         * modules/getcwd-tests: New test.
26371         * tests/test-getcwd.c: Likewise.
26372
26373         link: fix platform bugs
26374         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26375         * lib/link.c (link): Work around them.  Fix related mingw bug.
26376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26377         * modules/unistd (Makefile.am): Substitute it.
26378         * lib/unistd.in.h (link): Declare replacement.
26379         * doc/posix-functions/link.texi (link): Document this.
26380         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26381
26382         test-link: consolidate into single C program, test more cases
26383         * tests/test-link.sh: Delete.
26384         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26385         at least Cygwin and Solaris.
26386         * modules/link-tests (Files): Remove unused file.
26387         (Depends-on): Add errno, sys_stat.
26388         (Makefile.am): Simplify.
26389
26390 2009-09-08  Bruno Haible  <bruno@clisp.org>
26391
26392         Work around towlower, towupper bug on mingw.
26393         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26394         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26395         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26396         * doc/posix-functions/towupper.texi: Likewise.
26397         Reported by Eric Blake.
26398
26399 2009-09-08  Jim Meyering  <meyering@redhat.com>
26400
26401         build: don't try to run autoheader if we don't use it
26402         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26403         is not used in configure.ac.
26404
26405 2009-09-08  Eric Blake  <ebb9@byu.net>
26406
26407         euidaccess: fix compilation error
26408         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26409
26410         rawmemchr: relax license
26411         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26412         okay.
26413         Reported by Jim Meyering.
26414
26415         mkfifoat: new module
26416         * modules/mkfifoat: New file.
26417         * lib/mkfifoat.c: Likewise.
26418         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26419         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26420         * modules/sys_stat (Makefile.am): Use them.
26421         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26422         * MODULES.html.sh (File system functions): Mention module.
26423         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26424         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26425         * modules/mkfifoat-tests: New test.
26426         * tests/test-mkfifoat.c: Likewise.
26427
26428         strchrnul: relax license
26429         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26430         okay.
26431         Reported by Jim Meyering.
26432
26433 2009-09-08  Eric Blake  <ebb9@byu.net>
26434
26435         fstatat: fix compilation on Solaris
26436         * lib/fstatat.c (includes): Add fcntl.h.
26437         Reported by Pádraig Brady.
26438
26439 2009-09-07  Eric Blake  <ebb9@byu.net>
26440
26441         rename: modernize replacement
26442         * modules/rename (Depends-on): Add stdio.
26443         (configure.ac): Declare witness.
26444         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26445         stdio take care of replacement.
26446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26447         * modules/stdio (Makefile.am): Substitute them.
26448         * lib/stdio.in.h (rename): Declare replacement.
26449         * lib/rename.c (includes): Allow cross-compilation to non-windows
26450         machines.
26451         * doc/posix-functions/rename.texi (rename): Improve
26452         documentation.
26453
26454         stdio: sort witness names
26455         * modules/stdio (Makefile.am): Sort replacements.
26456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26457         * lib/stdio.in.h: Likewise.
26458
26459         getcwd: minor cleanups
26460         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26461         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26462
26463         openat: provide more convenience names
26464         * modules/faccessat (configure.ac): Add C witness.
26465         * lib/unistd.in.h (readlinkat): Fix typo.
26466         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26467         convenience wrappers.
26468         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26469         wrappers in syntax checks.
26470
26471 2009-09-06  Eric Blake  <ebb9@byu.net>
26472
26473         doc: fix comments in recent patches
26474         * lib/faccessat.c: Mention correct function.
26475         * lib/fchmodat.c: Likewise.
26476         * lib/fchownat.c: Likewise.
26477         * lib/symlinkat.c: Likewise.
26478         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26479         constants.
26480
26481         faccessat, symlinkat: continue cleanup of previous patch
26482         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26483         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26484         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26486         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26487         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26488         set.
26489
26490 2009-09-06  Bruno Haible  <bruno@clisp.org>
26491
26492         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26493         (fstatat): Declare if GNULIB_FSTATAT is set.
26494         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26495         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26496         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26497         * modules/fcntl-h (Files): Remove m4/openat.m4.
26498         * modules/sys_stat (Files): Remove m4/openat.m4.
26499         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26500         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26501         * modules/unistd (Files): Remove m4/openat.m4.
26502         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26503         GNULIB_OPENAT.
26504         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26505         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26506         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26507         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26508         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26509         gl_OPENAT_DEFAULTS.
26510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26511         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26512         Don't require gl_OPENAT_DEFAULTS.
26513         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26514         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26515         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26516         (gl_OPENAT_DEFAULTS): Remove macro.
26517
26518 2009-09-06  Bruno Haible  <bruno@clisp.org>
26519
26520         * modules/openat (configure.ac): Remove unneeded witness.
26521
26522 2009-09-06  Bruno Haible  <bruno@clisp.org>
26523
26524         Set errno to ENOSYS when a function is entirely unsupported.
26525         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
26526         EOPNOTSUPP.
26527         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26528         * modules/chown (Depends-on): Remove errno.
26529
26530 2009-09-06  Bruno Haible  <bruno@clisp.org>
26531
26532         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
26533
26534 2009-09-06  Bruno Haible  <bruno@clisp.org>
26535
26536         * lib/sys_stat.in.h: Fix preprocessor command indentation.
26537
26538 2009-09-06  Ben Pfaff  <blp@gnu.org>
26539             Bruno Haible  <bruno@clisp.org>
26540
26541         Work around a glibc bug in strtok_r.
26542         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
26543         Undefine if UNDEFINE_STRTOK_R is set.
26544         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
26545         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26546         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
26547         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
26548         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
26549         UNDEFINE_STRTOK_R.
26550         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
26551
26552 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26553
26554         exclude: minor fix
26555         * lib/exclude.c: Include wctype.h
26556
26557 2009-09-06  Akim Demaille  <demaille@gostai.com>
26558
26559         bootstrap: improve error message
26560         * build-aux/bootstrap (find_tool): Upon failure, report the list
26561         of candidates.
26562         Honor the initial value of the envvar.
26563
26564 2009-09-05  Eric Blake  <ebb9@byu.net>
26565
26566         symlinkat: new module
26567         * modules/symlinkat: New file.
26568         * lib/symlinkat.c: Likewise.
26569         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
26570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26571         * modules/unistd (Makefile.am): Use them.
26572         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
26573         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
26574         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
26575         * MODULES.html.sh (File system functions): Mention module.
26576         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26577         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26578         * modules/symlinkat-tests: New test.
26579         * tests/test-symlinkat.c: Likewise.
26580
26581         test-openat-safer: add more checks
26582         * tests/test-openat-safer.c (main): Check more code paths.
26583
26584 2009-09-05  Jim Meyering  <meyering@redhat.com>
26585
26586         syntax-check: detect unnecessary inclusion of openat.h
26587         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
26588
26589 2009-09-05  Bruno Haible  <bruno@clisp.org>
26590
26591         Support towlower, towupper.
26592         * doc/posix-functions/towlower.texi: Mention module wctype.
26593         * doc/posix-functions/towupper.texi: Likewise.
26594         * lib/wctype.in.h (towlower, towupper): New functions.
26595         * tests/test-wctype.c: Include stdio.h, stdlib.h.
26596         (ASSERT): New macro.
26597         (e): New variable.
26598         (main): Test also towlower, towupper. Test WEOF argument.
26599         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26600
26601 2009-09-05  Bruno Haible  <bruno@clisp.org>
26602
26603         Fix conversion behaviour when the input is invalid.
26604         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
26605         mark occurring in first pass of indirect conversion.
26606         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
26607         input.
26608         Found by clang's static analyzer.
26609
26610 2009-09-05  Bruno Haible  <bruno@clisp.org>
26611
26612         * tests/test-striconveh.c (main): Test indirect conversion on platforms
26613         where direct conversion is possible.
26614
26615 2009-09-04  Eric Blake  <ebb9@byu.net>
26616
26617         openat: fail with ENOENT on empty name
26618         * lib/openat-proc.c (openat_proc_name): Special-case the empty
26619         buffer.
26620
26621         link-follow: fix logic bug in prior patch
26622         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
26623         reversed sense of yes and no in prior patch.  Avoid confusing
26624         compilation failure with desired semantics.
26625
26626         link-follow: accomodate mingw and cross-compilation
26627         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
26628         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
26629         cross-compilation results to -1, to make linkat easier to
26630         implement when cross-compiling.  Trivially support mingw.
26631         * modules/link-follow (configure.ac): Call new name.
26632         * NEWS: Mention this.
26633
26634 2009-09-03  Eric Blake  <ebb9@byu.net>
26635
26636         faccessat: compile replacement
26637         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
26638         needed.
26639
26640         fts: fix compilation error
26641         * lib/fts.c (includes): Re-add "openat.h", for
26642         openat_needs_fchdir.
26643
26644         faccessat: new module
26645         * modules/faccessat: New file.
26646         * lib/faccessat.c: Likewise.
26647         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26649         * modules/unistd (Makefile.am): Use it.
26650         * lib/unistd.in.h (faccessat): Declare it.
26651         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
26652         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
26653         * MODULES.html.sh (File system functions): Mention it.
26654         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
26655         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26656
26657         euidaccess: prefer POSIX over non-standard implementation
26658         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
26659         * lib/euidaccess.c (euidaccess): Use it if available.
26660
26661         openat: make template easier to use
26662         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
26663         AT_FUNC_F2 to be undefined.
26664         (VALIDATE_FLAG): New macro; use it to reject bad flags.
26665         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
26666         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
26667         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
26668         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
26669         Likewise.
26670         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
26671         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
26672         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
26673         Likewise.
26674
26675         openat: declare in POSIX headers
26676         * NEWS: Mention this.
26677         * modules/openat (configure.ac): Declare witnesses.
26678         (Depends-on): Add fcntl-h, sys_stat, unistd.
26679         (Include): Mention correct headers.
26680         * modules/fcntl-h (Depends-on): Add link-warning.
26681         (Files): Add openat.m4.
26682         (Makefile.am): Substitute witnesses.
26683         * modules/sys_stat (Files, Makefile.am): Likewise.
26684         * modules/unistd (Files, Makefile.am): Likewise.
26685         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
26686         (gl_OPENAT_DEFAULTS): New macro.
26687         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
26688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
26689         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26690         (SYS_STAT_H): Remove unused variable.
26691         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26692         * lib/fcntl--.h (includes): Remove unneeded header.
26693         * lib/openat-safer.c (includes): Likewise.
26694         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26695         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26696         appropriate headers.
26697         (__OPENAT_PREFIX): Delete.
26698         * lib/fcntl.in.h (openat): Provide declaration.
26699         (AT_FDCWD): Fix Solaris bug.
26700         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26701         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26702         * lib/fchmodat.c (includes):  Adjust to find declaration.
26703         * lib/fchownat.c (includes): Likewise.
26704         * lib/mkdirat.c (includes): Likewise.
26705         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26706         still visible.
26707
26708 2009-09-02  Eric Blake  <ebb9@byu.net>
26709
26710         errno: use consistently
26711         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26712         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26713         * lib/canonicalize.c (ELOOP): Likewise.
26714         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26715         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26716         * lib/lchown.c (EOPNOTSUPP): Likewise.
26717         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26718         * lib/savewd.c (ESTALE): Likewise.
26719         * lib/settime.c (ENOSYS): Likewise.
26720         * lib/utimens.c (ENOSYS): Likewise.
26721         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26722         * lib/chdir-safer.c (ELOOP): Likewise.
26723         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26724         * modules/c-stack (Depends-on): Add errno.
26725         * modules/canonicalize (Depends-on): Likewise.
26726         * modules/chdir-safer (Depends-on): Likewise.
26727         * modules/fdopendir (Depends-on): Likewise.
26728         * modules/inet_ntop (Depends-on): Likewise.
26729         * modules/inet_pton (Depends-on): Likewise.
26730         * modules/lchown (Depends-on): Likewise.
26731         * modules/openat (Depends-on): Likewise.
26732         * modules/savewd (Depends-on): Likewise.
26733         * modules/settime (Depends-on): Likewise.
26734         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26735
26736         fts: avoid leaking fds
26737         * modules/fts (Depends-on): Add cloexec.
26738         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26739         flag.
26740
26741         fts: make directory fds more robust
26742         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26743         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26744
26745         backupfile, chdir-long, fts, savedir: make safer
26746         * lib/backupfile.c (includes): Use "dirent--.h", since
26747         numbered_backup can write to stderr during readdir.
26748         * lib/savedir.c (includes): Likewise.
26749         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26750         emulation can write to stderr on failure.
26751         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26752         * lib/getcwd.c: Document why opendir_safer is unused.
26753         * lib/glob.c: Likewise.
26754         * lib/scandir.c: Likewise.
26755         * lib/openat-proc.c: Likewise, for open_safer.
26756         * modules/backupfile (Depends-on): Add dirent-safer.
26757         * modules/savedir (Depends-on): Likewise.
26758         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26759         * modules/chdir-long (Depends-on): Add openat-safer.
26760
26761         openat-safer: new module
26762         * modules/openat-safer: New file.
26763         * lib/openat-safer.c: Likewise.
26764         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26765         * lib/fcntl-safer.h (openat_safer): Declare.
26766         * lib/fcntl--.h (openat): Override.
26767         * MODULES.html.sh (File descriptor based I/O): Mention it.
26768         * lib/openat.h: Add double-inclusion guards.
26769         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26770         "fcntl--.h", so we can implement openat.
26771         * modules/openat-safer-tests: New test.
26772         * tests/test-openat-safer.c: New file.
26773
26774         dirent-safer: new module
26775         * modules/dirent-safer: New file.
26776         * lib/dirent--.h: Likewise.
26777         * lib/dirent-safer.h: Likewise.
26778         * lib/opendir-safer.c: Likewise.
26779         * m4/dirent-safer.m4: Likewise.
26780         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26781         * modules/dirent-safer-tests: New test.
26782         * tests/test-dirent-safer.c: New file.
26783         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26784
26785         fdopendir: optimize on mingw
26786         * lib/unistd.in.h (_gl_directory_name): New prototype.
26787         * lib/fchdir.c (_gl_directory_name): Implement it.
26788         (fchdir): Use it to simplify implementation.
26789         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26790         fchdir, when available, to avoid calling [f]chdir().
26791
26792         fdopendir: split into its own module
26793         * lib/openat.c (fdopendir): Move...
26794         * lib/fdopendir.c: ...into new file.
26795         * modules/fdopendir: New module.
26796         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
26797         * modules/openat (Depends-on): Add fdopendir.
26798         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
26799         fdopendir here.
26800         * modules/savedir (Depends-on): Only need fdopendir, not full
26801         openat.
26802         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
26803         * lib/openat.h (fdopendir): Drop prototype.
26804         * lib/dirent.in.h (fdopendir): Provide prototype.
26805         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
26806         * modules/dirent (Makefile.am): Substitute them.
26807         * MODULES.html.sh (File system functions): Mention it.
26808         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
26809         * modules/fdopendir-tests: New file.
26810         * tests/test-fdopendir.c: Likewise.
26811
26812         fchdir: use more consistent macro convention
26813         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
26814         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
26815         REPLACE_FCHDIR, rather than relying on config.h macros.
26816         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
26817         inside a single make-time REPLACE_FCHDIR block, rather than using
26818         the config.h FCHDIR_REPLACEMENT.
26819         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
26820         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
26821         Manage fstat replacement.
26822         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
26823         REPLACE_FCHDIR.
26824         * modules/sys_stat (Files): Add m4/unistd_h.m4.
26825         (Makefile.am): Substitute REPLACE_FCHDIR.
26826         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
26827         FCHDIR_REPLACEMENT.
26828         * lib/dup-safer.c (dup_safer): Likewise.
26829         * lib/dup2.c (rpl_dup2): Likewise.
26830         * lib/dup3.c (rpl_dup3): Likewise.
26831         * lib/open.c (rpl_open): Likewise.
26832
26833         fchdir: simplify error handling, and support dup3
26834         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
26835         stdbool, malloc-posix, realloc-posix.
26836         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
26837         (ensure_dirs_slot): Return false on allocation failure.
26838         (rpl_dup2): Delete.
26839         (_gl_register_dup): New function.
26840         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
26841         (_gl_register_fd): Close fd on allocation failure.
26842         * lib/fcntl.in.h (_gl_register_fd): Update signature.
26843         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
26844         prototype.
26845         (rpl_dup2_fchdir): Delete prototype.
26846         * lib/open.c (open): Update caller.
26847         * lib/dup2.c (dup2): Track fchdir metadata.
26848         * lib/dup3.c (dup3): Likewise.
26849         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
26850         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
26851
26852 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26853
26854         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
26855         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
26856         don't pass arguments to AC_OUTPUT.
26857
26858 2009-09-02  Bruno Haible  <bruno@clisp.org>
26859
26860         * modules/mkdtemp (License): Relicense under LGPLv2+.
26861         Reported by Paolo Bonzini.
26862
26863 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26864
26865         Replace uses of obsolete autoconf macros in Jim's modules.
26866         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
26867         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
26868         can evoke a warning from autoconf when run with -Wobsolete
26869         enabled.  They were declared obsolete for good reasons (see
26870         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
26871         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
26872         should not continue using the deprecated macros.
26873         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
26874         obsolete Autoconf macros with modern counterparts.
26875         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26876         * m4/dos.m4 (gl_AC_DOS): Likewise.
26877         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
26878         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26879         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
26880         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
26881         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
26882         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
26883         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
26884         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
26885         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
26886         Likewise.
26887         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26888         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26889         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
26890         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
26891         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
26892         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26893
26894 2009-09-01  Eric Blake  <ebb9@byu.net>
26895
26896         fchdir: fix off-by-one bug in previous patch
26897         * lib/fchdir.c (rpl_fstat): Use correct bounds.
26898         (_gl_unregister_fd): Delete useless if.
26899
26900 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
26901
26902         maint.mk: sort the list of syntax-check rules
26903         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
26904         easier to get a sense of progress when the rules are run sequentially
26905         and take a long time.
26906
26907 2009-09-01  Simon Josefsson  <simon@josefsson.org>
26908
26909         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
26910         * modules/netinet_in: Likewise.
26911         * modules/sys_file: Likewise.
26912         * modules/sys_ioctl: Likewise.
26913         * modules/sys_select: Likewise.
26914         * modules/sys_socket: Likewise.
26915         * modules/sys_stat: Likewise.
26916         * modules/sys_time: Likewise.
26917         * modules/sys_times: Likewise.
26918         * modules/sys_utsname: Likewise.
26919         * modules/sys_wait: Likewise.
26920
26921 2009-09-01  Jim Meyering  <meyering@redhat.com>
26922
26923         fts: help ensure that return values are not ignored
26924         * lib/fts_.h (__GNUC_PREREQ): Define.
26925         (__attribute_warn_unused_result__): Define.
26926         (fts_children, fts_close, fts_open, fts_read): Declare with
26927         __attribute_warn_unused_result__.
26928
26929         fts: fts_close now fails also when closing a dir file descriptor fails
26930         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
26931         and propagate to caller, along with errno.
26932
26933         announce-gen: correct formatting in --help output
26934         * build-aux/announce-gen (usage): Move the one-line description in
26935         --help output "up", to where it belongs, just after Usage:.
26936
26937 2009-08-31  Eric Blake  <ebb9@byu.net>
26938
26939         fchdir: port to mingw
26940         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
26941         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
26942         opened, then use a substitute.
26943         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
26944         replacement.
26945         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
26946         (_gl_register_fd): No need to check stat if open already filters
26947         all directories.
26948         (fchdir): Fix error condition to match POSIX.
26949         * modules/fchdir (Depends-on): Add sys_stat.
26950         * doc/posix-functions/open.texi (open): Document the limitation.
26951         * modules/fchdir-tests: New file.
26952         * tests/test-fchdir.c: Likewise.
26953
26954         canonicalize: allow cross-testing from cygwin to mingw
26955         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
26956         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
26957         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
26958         Likewise.
26959         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
26960         target does not support symlinks.
26961         * tests/test-canonicalize-lgpl.sh: Likewise.
26962
26963         chown: avoid compilation warning on mingw
26964         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
26965         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
26966         mingw.
26967         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26968         * modules/chown (Depends-on): Add errno.
26969
26970 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26971
26972         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
26973         command.
26974
26975 2009-08-31  Jim Meyering  <meyering@redhat.com>
26976
26977         canonicalize: remove useless initialization
26978         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
26979         initialization of local, "end".
26980
26981 2009-08-30  Bruno Haible  <bruno@clisp.org>
26982
26983         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
26984         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
26985         ENOSYS.
26986
26987 2009-08-30  Bruno Haible  <bruno@clisp.org>
26988
26989         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
26990         /usr/xpg4/bin/tr when it exists.
26991         * tests/test-pipe-filter-gi1.sh: Likewise.
26992
26993 2009-08-30  Bruno Haible  <bruno@clisp.org>
26994
26995         Work around deficient /usr/bin/id program on Solaris.
26996         * tests/test-file-has-acl.sh (ID): New variable.
26997         * tests/test-set-mode-acl.sh (ID): Likewise.
26998         * tests/test-copy-acl.sh (ID): Likewise.
26999         * tests/test-copy-file.sh (ID): Likewise.
27000
27001 2009-08-30  Bruno Haible  <bruno@clisp.org>
27002
27003         New module 'xstriconveh'.
27004         * lib/xstriconveh.h: New file.
27005         * lib/xstriconveh.c: New file.
27006         * modules/xstriconveh: New file.
27007
27008 2009-08-30  Bruno Haible  <bruno@clisp.org>
27009
27010         Make it easier to use mem_cd_iconveh.
27011         * lib/striconveh.h (iconveh_t): New type.
27012         (iconveh_open, iconveh_close): New declarations.
27013         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27014         with a single 'const iconveh_t *' argument.
27015         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27016         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27017         with a single 'const iconveh_t *' argument.
27018         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27019         * tests/test-striconveh.c (main): Update.
27020         * NEWS: Mention the change.
27021
27022 2009-08-30  Bruno Haible  <bruno@clisp.org>
27023
27024         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27025         problem.
27026
27027 2009-08-30  Bruno Haible  <bruno@clisp.org>
27028
27029         Work around iconv_open problem on Solaris.
27030         * lib/iconv_open-solaris.gperf: New file.
27031         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27032         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27033         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27034         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27035         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27036         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27037
27038 2009-08-29  Jim Meyering  <meyering@redhat.com>
27039
27040         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27041         * top/maint.mk (cvs-check): Remove target; it was just an alias
27042         to the better-named vc-diff-check.
27043         (maintainer-distcheck): Remove rule.  It was used only from
27044         the (alpha/beta/major) target, and all of its commands but one
27045         were coreutils-specific.
27046         (vc-dist): Remove rule.
27047         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27048         Run vc-diff-check, not vc-dist.
27049         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27050
27051 2009-08-27  Bruno Haible  <bruno@clisp.org>
27052
27053         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27054         of 0.
27055
27056 2009-08-27  Bruno Haible  <bruno@clisp.org>
27057
27058         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27059         compilers.
27060         * doc/func.texi: Document the SunPRO C bug.
27061
27062 2009-08-27  Bruno Haible  <bruno@clisp.org>
27063
27064         Fix link error on Solaris.
27065         * tests/test-parse-duration.c (xstrdup): Remove function.
27066
27067 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27068
27069         ignore-value: handle pointer types, too
27070         * lib/ignore-value.h (__attribute__): Remove definition.
27071         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27072         of a more concise and more-often effective "(void) i" statement.
27073         (ignore_ptr): New function to suppress warnings from functions that
27074         return pointers, and to make it explicit that one function doesn't
27075         handle all cases.
27076
27077 2009-08-25  Bruno Haible  <bruno@clisp.org>
27078
27079         dup2: work around a Linux bug.
27080         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27081         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27082         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27083         Reported by Simon Josefsson.
27084
27085 2009-08-25  Jim Meyering  <meyering@redhat.com>
27086
27087         libguestfs uses gnulib
27088         * users.txt: Add libguestfs.
27089
27090 2009-08-24  Eric Blake  <ebb9@byu.net>
27091
27092         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27093         * lib/pipe2.c (includes): Add binary-io.h.
27094         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27095
27096 2009-08-24  Bruno Haible  <bruno@clisp.org>
27097
27098         Tolerate declared but missing accept4 syscall.
27099         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27100         available.
27101         * lib/sys_socket.in.h (accept4): If the function is already present,
27102         override it.
27103         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27104         * modules/accept4 (Makefile.am): Compile accept4.c always.
27105         Reported by Paolo Bonzini and Eric Blake.
27106
27107 2009-08-23  Bruno Haible  <bruno@clisp.org>
27108
27109         New module 'accept4'.
27110         * lib/sys_socket.in.h (accept4): New declaration.
27111         * lib/accept4.c: New file.
27112         * m4/accept4.m4: New file.
27113         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27114         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27115         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27116         HAVE_ACCEPT4.
27117         * modules/accept4: New file.
27118         * doc/glibc-functions/accept4.texi: Mention the new module.
27119
27120 2009-08-24  Jim Meyering  <meyering@redhat.com>
27121
27122         progname: also set global program_invocation_name, when possible
27123         Before this change, a libtool-enabled program that calls glibc's
27124         error function would report the program name as
27125         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27126         * modules/progname (configure.ac): Check for a declaration of
27127         program_invocation_name.
27128         * lib/progname.c:  Include <errno.h>.
27129         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27130         Set program_invocation_name.
27131
27132 2009-08-23  Bruno Haible  <bruno@clisp.org>
27133
27134         * lib/dup3.c: Include <string.h>.
27135
27136 2009-08-23  Bruno Haible  <bruno@clisp.org>
27137
27138         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27139         * lib/pipe2.c (pipe2): Likewise.
27140         Suggested by Eric Blake.
27141
27142 2009-08-23  Bruno Haible  <bruno@clisp.org>
27143
27144         Tolerate declared but missing dup3 syscall.
27145         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27146         * lib/unistd.in.h (dup3): If the function is already present,
27147         override it.
27148         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27149         * modules/dup3 (Makefile.am): Compile dup3.c always.
27150         Reported by Paolo Bonzini.
27151
27152 2009-08-23  Bruno Haible  <bruno@clisp.org>
27153
27154         Tolerate declared but missing pipe2 syscall.
27155         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27156         available.
27157         * lib/unistd.in.h (pipe2): If the function is already present,
27158         override it.
27159         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27160         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27161         Reported by Paolo Bonzini.
27162
27163 2009-08-23  Bruno Haible  <bruno@clisp.org>
27164
27165         * lib/pipe2.c (pipe2): Move #ifs inside function.
27166
27167 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27168
27169         quotearg: document limitations of quote_these_too
27170         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27171         those limitations are created.
27172         * lib/quotearg.h (set_char_quoting): Document that digits and
27173         letters that are special after backslash are not permitted.
27174         (quotearg_char): Cross-reference set_char_quoting documentation.
27175
27176 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27177
27178         quotearg: implement custom_quoting_style
27179         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27180         right_quote fields.
27181         (set_custom_quoting): New public function.
27182         (quotearg_buffer_restyled): Add left_quote and right_quote
27183         arguments, handle them very much like locale quoting, and update
27184         all uses.
27185         (quotearg_n_custom): New public function.
27186         (quotearg_n_custom_mem): New public function.
27187         (quotearg_custom): New public function.
27188         (quotearg_custom_mem): New public function.
27189         * lib/quotearg.h: Prototype and document new public functions.
27190         (enum quoting_style): For escape_quoting_style and
27191         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27192         ignored even though they're otherwise like c_quoting_style.
27193         Add custom_quoting_style member and document with comparison to
27194         clocale_quoting_style.
27195         * tests/test-quotearg.c (custom_quotes): New array.
27196         (custom_results): New array.
27197         (main): Extend to test custom quoting.
27198
27199 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27200
27201         quotearg: fix right quote escaping when it's in quote_these_too
27202         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27203         quote, be sure to prepend only one backslash.
27204         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27205         (main): Test it.
27206
27207 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27208
27209         quotearg-tests: test escaping of embedded locale quotes
27210         * tests/test-quotearg.c (struct result_strings): Add member for
27211         new input.
27212         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27213         (inputs): Add new input.
27214         (results_g): Add expected results.
27215         (flag_results): Likewise.
27216         (locale_results): Likewise.
27217         (compare_strings): Check those.
27218
27219 2009-08-23  Bruno Haible  <bruno@clisp.org>
27220
27221         Tests for module 'dup3'.
27222         * modules/dup3-tests: New file.
27223         * tests/test-dup3.c: New file.
27224
27225         New module 'dup3'.
27226         * lib/unistd.in.h (dup3): New declaration.
27227         * lib/dup3.c: New file.
27228         * m4/dup3.m4: New file.
27229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27230         HAVE_DUP3.
27231         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27232         * modules/dup3: New file.
27233         * doc/glibc-functions/dup3.texi: Mention the new module.
27234
27235 2009-08-23  Bruno Haible  <bruno@clisp.org>
27236
27237         Tweak the dup2 test.
27238         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27239         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27240         the test file is still empty. Fix argument order of lseek.
27241
27242 2009-08-23  Bruno Haible  <bruno@clisp.org>
27243
27244         Avoid test link errors when the modules getopt-gnu, gettext are used.
27245         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27246         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27247
27248 2009-08-23  Bruno Haible  <bruno@clisp.org>
27249
27250         Fix getdtablesize() on mingw.
27251         * lib/getdtablesize.c (getdtablesize): Implement differently.
27252         * lib/unistd.in.h (getdtablesize): Improve comment.
27253
27254 2009-08-23  Bruno Haible  <bruno@clisp.org>
27255
27256         New module 'mkostemp'.
27257         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27258         * lib/stdlib.in.h (mksotemp): New declaration.
27259         * lib/mkostemp.c: New file, from glibc with modifications.
27260         * lib/tempname.h (GT_FILE): Remove outdated comment.
27261         (gen_tempname): Add flags argument.
27262         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27263         (__GT_FILE): Map to 1.
27264         (small_open, large_open): Remove macros.
27265         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27266         * lib/mkstemp.c (mkstemp): Update.
27267         * lib/mkdtemp.c (mkdtemp): Likewise.
27268         * m4/mkostemp.m4: New file.
27269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27270         HAVE_MKOSTEMP.
27271         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27272         HAVE_MKOSTEMP.
27273         * modules/mkostemp: New file, based on modules/mkstemp.
27274         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27275         * NEWS: Mention the change.
27276
27277 2009-08-23  Bruno Haible  <bruno@clisp.org>
27278
27279         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27280         Reported by Eric Blake.
27281
27282 2009-08-23  Bruno Haible  <bruno@clisp.org>
27283
27284         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27285         Reported by Eric Blake.
27286
27287 2009-08-23  Bruno Haible  <bruno@clisp.org>
27288
27289         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27290         * modules/pipe2 (Depends-on): Likewise.
27291
27292 2009-08-23  Eric Blake  <ebb9@byu.net>
27293
27294         fcntl-h: add O_TTY_INIT support
27295         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27296         * tests/test-fcntl-h.c (o): Test it.
27297         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27298
27299         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27300         * modules/fcntl: Move <fcntl.h> header replacement...
27301         * modules/fcntl-h: ...to new name, so as not to collide with
27302         like-named function.
27303         * tests/test-fcntl.c: Rename...
27304         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27305         * modules/fcntl-tests: Rename...
27306         * modules/fcntl-h-tests: ...to this.  Update test file name.
27307         * modules/chdir-long (Depends-on): Update clients.
27308         * modules/chdir-safer (Depends-on): Likewise.
27309         * modules/fcntl-safer (Depends-on): Likewise.
27310         * modules/fts (Depends-on): Likewise.
27311         * modules/mkancesdirs (Depends-on): Likewise.
27312         * modules/mkdir-p (Depends-on): Likewise.
27313         * modules/open (Depends-on): Likewise.
27314         * modules/savewd (Depends-on): Likewise.
27315         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27316         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27317
27318 2009-08-22  Bruno Haible  <bruno@clisp.org>
27319
27320         * modules/binary-io (License): Relicense under LGPL.
27321         * modules/pipe2 (License): Likewise.
27322
27323 2009-08-22  Bruno Haible  <bruno@clisp.org>
27324
27325         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27326         return value.
27327         * lib/pipe-filter-gi.c (filter_init): Likewise.
27328         Reported by Eric Blake.
27329
27330 2009-08-22  Bruno Haible  <bruno@clisp.org>
27331
27332         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27333         * modules/pipe (Depends-on): Add pipe2.
27334
27335 2009-08-22  Bruno Haible  <bruno@clisp.org>
27336
27337         Tests for module 'pipe2'.
27338         * modules/pipe2-tests: New file.
27339         * tests/test-pipe2.c: New file.
27340
27341         New module 'pipe2'.
27342         * lib/unistd.in.h (pipe2): New declaration.
27343         * lib/pipe2.c: New file.
27344         * m4/pipe2.m4: New file.
27345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27346         HAVE_PIPE2.
27347         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27348         * modules/pipe2: New file.
27349         * doc/glibc-functions/pipe2.texi: Mention the new module.
27350
27351 2009-08-22  Bruno Haible  <bruno@clisp.org>
27352
27353         Reference some new glibc functions.
27354         * doc/glibc-functions/accept4.texi: New file.
27355         * doc/glibc-functions/dup3.texi: New file.
27356         * doc/glibc-functions/mkostemp.texi: New file.
27357         * doc/glibc-functions/pipe2.texi: New file.
27358         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27359         (Glibc sys/socket.h): Refer to accept4.
27360         (Glibc unistd.h): Refer to dup3, pipe2.
27361         Reported by Eric Blake.
27362
27363 2009-08-22  Jim Meyering  <meyering@redhat.com>
27364             Bruno Haible  <bruno@clisp.org>
27365
27366         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27367         This makes it so packages using automake-1.11's silent-rules option
27368         can print e.g., a single "GEN    configmake.h" line, rather than
27369         the 30+ statements that perform the job.  If you want to see the
27370         actual commands, you can still run "make V=1".
27371         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27372         so that make output is abbreviated when those variables are defined
27373         appropriately.
27374         * modules/argz: Likewise.
27375         * modules/arpa_inet: Likewise.
27376         * modules/byteswap: Likewise.
27377         * modules/configmake: Likewise.
27378         * modules/dirent: Likewise.
27379         * modules/errno: Likewise.
27380         * modules/fcntl: Likewise.
27381         * modules/float: Likewise.
27382         * modules/fnmatch: Likewise.
27383         * modules/getopt-posix: Likewise.
27384         * modules/glob: Likewise.
27385         * modules/iconv_open: Likewise.
27386         * modules/inttypes: Likewise.
27387         * modules/localcharset: Likewise.
27388         * modules/locale: Likewise.
27389         * modules/math: Likewise.
27390         * modules/netdb: Likewise.
27391         * modules/netinet_in: Likewise.
27392         * modules/poll: Likewise.
27393         * modules/posix_spawnp-tests: Likewise.
27394         * modules/sched: Likewise.
27395         * modules/search: Likewise.
27396         * modules/selinux-h: Likewise.
27397         * modules/signal: Likewise.
27398         * modules/spawn: Likewise.
27399         * modules/stdarg: Likewise.
27400         * modules/stdbool: Likewise.
27401         * modules/stddef: Likewise.
27402         * modules/stdint: Likewise.
27403         * modules/stdio: Likewise.
27404         * modules/stdlib: Likewise.
27405         * modules/string: Likewise.
27406         * modules/strings: Likewise.
27407         * modules/sys_file: Likewise.
27408         * modules/sys_ioctl: Likewise.
27409         * modules/sys_select: Likewise.
27410         * modules/sys_socket: Likewise.
27411         * modules/sys_stat: Likewise.
27412         * modules/sys_time: Likewise.
27413         * modules/sys_times: Likewise.
27414         * modules/sys_utsname: Likewise.
27415         * modules/sys_wait: Likewise.
27416         * modules/sysexits: Likewise.
27417         * modules/time: Likewise.
27418         * modules/unistd: Likewise.
27419         * modules/wchar: Likewise.
27420         * modules/wctype: Likewise.
27421
27422 2009-08-22  Jim Meyering  <meyering@redhat.com>
27423
27424         announce-gen: detect write failure
27425         * build-aux/announce-gen: Add Coda at end.
27426         Remove equivalent-but-more-verbose block at top.
27427
27428 2009-08-19  Akim Demaille  <demaille@gostai.com>
27429
27430         bootstrap: --help to stdout.
27431         * bootstrap (usage): Don't send --help to stderr.
27432         Use a here doc instead of a long string.
27433
27434 2009-08-21  Eric Blake  <ebb9@byu.net>
27435
27436         test-popen-safer: split from test-popen
27437         * tests/test-popen.c (main): Move...
27438         * tests/test-popen.h: ...into new file.
27439         * tests/test-popen-safer2.c: New file.
27440         * modules/popen-tests (Files): Add test-popen.h.
27441         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27442         Suggested by Bruno Haible.
27443
27444         test-fcntl-safer: split from test-open
27445         * tests/test-open.c (main): Move...
27446         * tests/test-open.h: ...into new file.
27447         * tests/test-fcntl-safer.c: New file.
27448         * modules/open-tests (Files): Add test-open.h.
27449         * modules/fcntl-safer-tests: New file.
27450         Suggested by Bruno Haible.
27451
27452         test-fopen-safer: split from test-fopen
27453         * tests/test-fopen.c (main): Move...
27454         * tests/test-fopen.h: ...into new file.
27455         * tests/test-fopen-safer.c: New file.
27456         * modules/fopen-tests (Files): Add test-fopen.h.
27457         * modules/fopen-safer-tests: New file.
27458         Suggested by Bruno Haible.
27459
27460 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27461
27462         popen-safer: test O_CLOEXEC at run-time.
27463         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27464
27465 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27466
27467         fcntl: move more flags to the header
27468         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27469         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27470         * lib/fcntl.in.h: Do both things here.
27471
27472 2009-08-21  Jim Meyering  <meyering@redhat.com>
27473
27474         consistently remove $@-t before redirecting to it
27475         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27476         * modules/alloca-opt: Likewise.
27477         * modules/byteswap: Likewise.
27478         * modules/fnmatch: Likewise.
27479         * modules/getopt-posix: Likewise.
27480         * modules/glob: Likewise.
27481         * modules/poll: Likewise.
27482         * modules/posix_spawnp-tests: Likewise.
27483         * modules/sys_socket: Likewise.
27484         * modules/sysexits: Likewise.
27485
27486 2009-08-21  Eric Blake  <ebb9@byu.net>
27487
27488         popen: simplify access to original popen
27489         * lib/popen.c (rpl_popen): No need to worry about popen being a
27490         macro.
27491         Reported by Bruno Haible.
27492
27493 2009-08-20  Eric Blake  <ebb9@byu.net>
27494
27495         build: avoid some compiler warnings
27496         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27497         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27498         type.
27499         (new_exclude_segment, excluded_file_pattern_p)
27500         (excluded_file_name_p): Reduce scope.
27501         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27502         old-style declaration.
27503
27504 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27505
27506         * tests/test-exclude1.sh: Handle Windows EOL.
27507         * tests/test-exclude2.sh: Likewise.
27508         * tests/test-exclude3.sh: Likewise.
27509         * tests/test-exclude4.sh: Likewise.
27510         * tests/test-exclude5.sh: Likewise.
27511         * tests/test-exclude6.sh: Likewise.
27512         * tests/test-exclude7.sh: Likewise.
27513
27514 2009-08-19  Akim Demaille  <demaille@gostai.com>
27515
27516         bootstrap: find sha1sum when named gsha1sum.
27517         * bootstrap (find_tool): New.
27518         ($SHA1SUM): New.
27519         Use it.
27520
27521 2009-08-20  Jim Meyering  <meyering@redhat.com>
27522
27523         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
27524         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
27525         expression that converts "." in a file name to "\." in the resulting
27526         regexp.  Start with a dummy statement, so that prior shell variable
27527         definitions are expanded portably.  Reported by Simon Josefsson.
27528
27529 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
27530
27531         Fix polling for writeability of a screen buffer.
27532         * lib/poll.c: Distinguish input and screen buffers for the
27533         Win32 implementation.
27534         * lib/select.c: Likewise.
27535
27536 2009-08-19  Eric Blake  <ebb9@byu.net>
27537
27538         popen-safer: prevent popen from clobbering std descriptors
27539         * modules/popen-safer: New file.
27540         * lib/popen-safer.c: Likewise.
27541         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
27542         * lib/stdio--.h (popen): Provide override.
27543         * lib/stdio-safer.h (popen_safer): Provide declaration.
27544         * tests/test-popen.c (includes): Partially test this.
27545         * modules/popen-safer-tests: New file, for more tests.
27546         * tests/test-popen-safer.c: Likewise.
27547         * MODULES.html.sh (file stream based Input/Output): Mention it.
27548
27549         tests: test some of the *-safer modules
27550         * modules/fopen-safer (Depends-on): Add fopen.
27551         * modules/fcntl-safer (Depends-on): Add fcntl.
27552         * modules/stdlib-safer (Depends-on): Add stdlib.
27553         (configure.ac): Set indicator.
27554         * modules/unistd-safer (configure.ac): Likewise.
27555         * modules/tmpfile-safer (configure.ac): Likewise.
27556         (Depends-on): Add tmpfile.
27557         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
27558         active.
27559         * tests/test-fopen.c (includes): Test safer versions when they are
27560         in use.
27561         * tests/test-open.c (includes): Likewise.
27562
27563         popen: fix cygwin 1.5 bug when stdin closed
27564         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
27565         * modules/popen: New file.
27566         * modules/popen-tests: Likewise.
27567         * tests/test-popen.c: Likewise.
27568         * m4/popen.m4: Likewise.
27569         * lib/popen.c: Likewise.
27570         * lib/stdio.in.h (popen): New declaration.
27571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
27572         * modules/stdio (Makefile.am): Likewise.
27573         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
27574
27575 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
27576
27577         maint.mk: give full control over update-copyright exclusions
27578         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
27579         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
27580         (update-copyright): Don't force inclusion of top-level
27581         ChangeLog.  Don't force exclusion of all COPYING files, but make
27582         them the default exclusion instead.
27583
27584 2009-08-16  Bruno Haible  <bruno@clisp.org>
27585
27586         Fix test failures on Solaris 10.
27587         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
27588         tests when Solaris iconv() is used.
27589         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27590         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27591         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27592         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27593         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27594
27595 2009-08-16  Bruno Haible  <bruno@clisp.org>
27596
27597         Fix test failures on Solaris 10.
27598         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
27599         'tr' program and pass it as first argument.
27600         * tests/test-pipe-filter-gi1.sh: Likewise.
27601         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
27602         program as first argument.
27603         * tests/test-pipe-filter-gi1.c (main): Likewise.
27604
27605 2009-08-16  Eric Blake  <ebb9@byu.net>
27606
27607         fpurge: fix previous commits
27608         * modules/fpurge (Makefile.am): Make replacement conditional,
27609         partially reverting 2007-04-29 change; missed in previous
27610         attempt.
27611         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
27612         is missing.
27613
27614 2009-08-16  Bruno Haible  <bruno@clisp.org>
27615
27616         Clarify fpurge's effect on the file position.
27617         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
27618         * tests/test-fpurge.c (main): Make a second pass for checking the file
27619         position.
27620
27621 2009-08-16  Bruno Haible  <bruno@clisp.org>
27622
27623         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
27624         declaration of fpurge is missing.
27625         * tests/test-fpurge.c (main): Check that the file has not more contents
27626         than expected. Close the file before removing it.
27627
27628 2009-08-15  Eric Blake  <ebb9@byu.net>
27629
27630         fpurge: don't wrap working cygwin implementation
27631         * lib/fpurge.c (fpurge): Fix comment typo.
27632         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
27633         1.7 to avoid replacement.
27634         * tests/test-fpurge.c (main): Enhance test.
27635
27636 2009-08-15  Eric Blake  <ebb9@byu.net>
27637         and Jim Meyering  <meyering@redhat.com>
27638
27639         test-update-copyright: skip if perl is insufficient
27640         * tests/test-update-copyright.sh: Failure to run maintainer tool
27641         should not cause testsuite failure on cygwin 1.5.
27642
27643 2009-08-14  Eric Blake  <ebb9@byu.net>
27644
27645         doc: mention more functions added in cygwin 1.7.0
27646         * doc/posix-headers/limits.texi (limits.h): Update for recent
27647         cygwin additions.
27648         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
27649         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
27650         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
27651         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
27652         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
27653
27654 2009-08-14  Eric Blake  <ebb9@byu.net>
27655
27656         maint.mk: simplify update-copyright rule
27657         * top/maint.mk (update-copyright-local): Delete, and document how
27658         to do it in cfg.mk instead.
27659         (update-copyright-exclude-regexp): Delete, and document how to do
27660         it in .x-update-copyright instead.
27661         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
27662         exclude ChangeLog.
27663
27664 2009-08-14  Bruno Haible  <bruno@clisp.org>
27665
27666         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
27667
27668 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27669
27670         maint.mk: support update-copyright-env
27671         * top/maint.mk (update-copyright-env): Define place-holder.
27672         (update-copyright): Expand $(update-copyright-env) before
27673         invoking update-copyright.
27674
27675 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27676
27677         update-copyright: implement forced reformatting
27678         * build-aux/update-copyright: Implement and document
27679         UPDATE_COPYRIGHT_FORCE.
27680         * tests/test-update-copyright.sh: Test it.
27681
27682 2009-08-14  Eric Blake  <ebb9@byu.net>
27683         and Bruno Haible  <bruno@clisp.org>
27684
27685         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
27686         * tests/test-locale.c: Revert previous patch related to NULL.
27687         * tests/test-stdio.c: Likewise.
27688         * tests/test-stdlib.c: Likewise.
27689         * tests/test-string.c: Likewise.
27690         * tests/test-unistd.c: Likewise.
27691         * modules/time-tests (Depends-on): Add verify.
27692         * modules/wchar-tests (Depends-on): Likewise.
27693         * tests/test-time.c: Test for NULL compliance.
27694         * tests/test-wchar.c: Likewise.
27695         * modules/locale (Depends-on): Add stddef.
27696         * modules/stdio (Depends-on): Likewise.
27697         * modules/stdlib (Depends-on): Likewise.
27698         * modules/string (Depends-on): Likewise.
27699         * modules/time (Depends-on): Likewise.
27700         * modules/unistd (Depends-on): Likewise.
27701         * modules/wchar (Depends-on): Likewise.
27702         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27703         * lib/stdlib.in.h (includes): Likewise.
27704         * lib/string.in.h (includes): Likewise.
27705         * lib/time.in.h (includes): Likewise.
27706         * lib/unistd.in.h (includes): Likewise.
27707         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27708         replaced.
27709         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27710         * m4/stddef_h.m4: New file.
27711         * modules/stddef: Likewise.
27712         * lib/stddef.in.h: Likewise.
27713         * modules/stddef-tests: Likewise.
27714         * tests/test-stddef.c: Likewise.
27715         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27716         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27717         * doc/posix-headers/locale.texi (locale.h): Likewise.
27718         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27719         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27720         * doc/posix-headers/string.texi (string.h): Likewise.
27721         * doc/posix-headers/time.texi (time.h): Likewise.
27722         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27723         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27724
27725 2009-08-14  Eric Blake  <ebb9@byu.net>
27726
27727         doc: improve git diff of texinfo files
27728         * .gitattributes: Add rule for *.texi files, with hint on how to
27729         use it.
27730         Copied from m4, and based on a report by Bruno Haible.
27731
27732 2009-08-14  Bruno Haible  <bruno@clisp.org>
27733
27734         Disable multithread support by default on Cygwin 1.5.x for real.
27735         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27736
27737 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27738
27739         update-copyright: much ado about intervals
27740         * build-aux/update-copyright: Implement and document
27741         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27742         of copyright year intervals.
27743         Also, document UPDATE_COPYRIGHT_YEAR.
27744         * tests/test-update-copyright.sh: Test it.
27745
27746         update-copyright: convert 2-digit to 4-digit years
27747         * build-aux/update-copyright: Implement and document.
27748         * tests/test-update-copyright.sh: Update.
27749
27750 2009-08-14  Jim Meyering  <meyering@redhat.com>
27751
27752         test-exclude: avoid coreutils "make check" failure
27753         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27754         just as in test-argmatch.c.
27755
27756 2009-08-13  Eric Blake  <ebb9@byu.net>
27757
27758         test-dup2: fix bad assumption
27759         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27760         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27761
27762         test-version-etc: fix CRLF portability issue
27763         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27764         recognize \r.
27765         * tests/test-argp-version-etc-1.sh: Likewise.
27766
27767         getopt: update client modules
27768         * modules/argp (Depends-on): Use getopt-gnu.
27769         * modules/git-merge-changelog (Depends-on): Likewise.
27770         * modules/long-options (Depends-on): Likewise.
27771         * modules/xstrtol (Depends-on): Likewise.
27772
27773 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27774
27775         * tests/test-version-etc.sh: Don't fail on different
27776         project/version.  Don't fail on CRLF differences.  Rewrite to use
27777         multiple -e instead of multiple sed forks, suggested by Eric Blake
27778         <ebb9@byu.net>.
27779         * tests/test-argp-version-etc-1.sh: Likewise.
27780
27781 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27782
27783         * tests/test-version-etc.sh: Don't fail on different
27784         project/version.
27785
27786 2009-08-12  Bruno Haible  <bruno@clisp.org>
27787
27788         Tests for modules 'getopt-posix', 'getopt-gnu'.
27789         * modules/getopt-posix-tests: New file.
27790         * tests/test-getopt.c: New file.
27791         * tests/test-getopt.h: New file.
27792         * tests/test-getopt_long.h: New file.
27793
27794         New modules 'getopt-posix', 'getopt-gnu'.
27795         * modules/getopt-gnu: New file, renamed from modules/getopt.
27796         * modules/getopt-posix: New file.
27797         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
27798         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
27799         (gl_GETOPT): Remove macro.
27800         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
27801         Disable the test against BSD systems that declare optreset. Test
27802         against mingw bug. Test against lack of support of optional arguments
27803         on many platforms.
27804         * doc/glibc-headers/getopt.texi: Update module name and list of
27805         relevant platforms.
27806         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
27807         'getopt-gnu' and more portability problems.
27808         * NEWS: Mention the changes.
27809
27810 2009-08-12  Bruno Haible  <bruno@clisp.org>
27811
27812         Ensure that optarg etc. get declared by <unistd.h>.
27813         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
27814         AC_USE_SYSTEM_EXTENSIONS.
27815         * modules/getopt (Depends-on): Add 'extensions'.
27816
27817 2009-08-12  Bruno Haible  <bruno@clisp.org>
27818
27819         Avoid test link errors.
27820         * modules/pipe-filter-ii-tests (Makefile.am): Define
27821         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
27822         * modules/pipe-filter-gi-tests (Makefile.am): Define
27823         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
27824         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27825
27826 2009-08-12  Bruno Haible  <bruno@clisp.org>
27827
27828         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
27829         gl_GETOPT_SUBSTITUTE before.
27830         (gl_GETOPT): Use it.
27831         * m4/argp.m4 (gl_ARGP): Update.
27832         Reported by Sergey Poznyakoff.
27833
27834         * m4/getopt.m4: Reorder macros.
27835         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
27836         (gl_GETOPT_SUBSTITUTE): Remove macro.
27837
27838 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27839
27840         Minor improvement in gitlog-to-changelog
27841
27842         * build-aux/gitlog-to-changelog: New option `--format' makes
27843         output format string configurable.
27844
27845 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27846
27847         Optimize exclude: use hash tables for non-wildcard patterns.
27848
27849         * lib/exclude.c: Include hash.h and mbuiter.h
27850         (struct exclude_pattern, exclude_segment): New data types.
27851         (struct exclude): Rewrite.
27852         (fnmatch_pattern_has_wildcards): New function.
27853         (new_exclude_segment, free_exclude_segment): New functions.
27854         (excluded_file_pattern_p, excluded_file_name_p): New functions.
27855         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
27856         * lib/exclude.h (is_fnmatch_pattern): New prototype.
27857         * modules/exclude: Depend on hash and mbuiter.
27858
27859         * modules/exclude-tests: New file.
27860         * tests/test-exclude.c: New file.
27861         * tests/test-exclude1.sh: New file.
27862         * tests/test-exclude2.sh: New file.
27863         * tests/test-exclude3.sh: New file.
27864         * tests/test-exclude4.sh: New file.
27865         * tests/test-exclude5.sh: New file.
27866         * tests/test-exclude6.sh: New file.
27867         * tests/test-exclude7.sh: New file.
27868
27869 2009-08-12  Bruno Haible  <bruno@clisp.org>
27870
27871         Ensure that getopt() gets declared by <unistd.h>.
27872         * lib/unistd.in.h: Conditionally include getopt.h.
27873         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
27874         Set GNULIB_UNISTD_H_GETOPT.
27875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27876         GNULIB_UNISTD_H_GETOPT.
27877         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
27878
27879 2009-08-12  Bruno Haible  <bruno@clisp.org>
27880
27881         Clarify logic.
27882         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
27883         gl_replace_getopt instead of GETOPT_H.
27884
27885 2009-08-12  Bruno Haible  <bruno@clisp.org>
27886
27887         * m4/getopt.m4: Add comments.
27888
27889 2009-08-12  Bruno Haible  <bruno@clisp.org>
27890
27891         Disable multithread support by default on Cygwin 1.5.x.
27892         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
27893         set gl_use_threads=no if not specified otherwise.
27894
27895 2009-08-11  Bruno Haible  <bruno@clisp.org>
27896
27897         Avoid compilation error on NetBSD 5.0.
27898         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
27899         * tests/test-stdio.c: Likewise.
27900         * tests/test-stdlib.c: Likewise.
27901         * tests/test-string.c: Likewise.
27902         * tests/test-unistd.c: Likewise.
27903         Reported by Greg Troxel <gdt@ir.bbn.com>
27904         at <https://savannah.gnu.org/support/?106973>.
27905
27906 2009-08-11  Bruno Haible  <bruno@clisp.org>
27907
27908         * modules/dup2-tests (Depends-on): Remove close.
27909
27910         Undo 2009-07-19 commit.
27911         * modules/acl-tests (Depends-on): Remove close.
27912         * modules/binary-io-tests (Depends-on): Likewise.
27913         * modules/closein-tests (Depends-on): Likewise.
27914         * modules/flock-tests (Depends-on): Likewise.
27915         * modules/fsync-tests (Depends-on): Likewise.
27916         * modules/lseek-tests (Depends-on): Likewise.
27917         * modules/pipe-tests (Depends-on): Likewise.
27918         * modules/posix_spawn-tests (Depends-on): Likewise.
27919         * modules/posix_spawnp-tests (Depends-on): Likewise.
27920         * modules/stat-time-tests (Depends-on): Likewise.
27921         * modules/yesno-tests (Depends-on): Likewise.
27922
27923 2009-08-10  Bruno Haible  <bruno@clisp.org>
27924
27925         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
27926
27927 2009-08-10  Bruno Haible  <bruno@clisp.org>
27928
27929         Fix a gcc warning.
27930         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
27931
27932 2009-08-10  Bruno Haible  <bruno@clisp.org>
27933
27934         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
27935         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
27936         not only the first time.
27937         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
27938         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
27939         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
27940         is 1, not only the the first time.
27941
27942 2009-08-10  Bruno Haible  <bruno@clisp.org>
27943
27944         Make it possible to use module 'gethostname' without module 'close'.
27945         * lib/unistd.in.h (close): Evoke a link error only if
27946         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27948         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27949         * modules/unistd (Makefile.am): Substitute
27950         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27951         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
27952         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27953         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27954         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27955         * modules/sys_ioctl (Makefile.am): Substitute
27956         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27957         * modules/socket (configure.ac): On native Windows, set
27958         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
27959         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27960         Reported by Sam Steingold <sds@gnu.org>.
27961
27962 2009-08-10  Bruno Haible  <bruno@clisp.org>
27963
27964         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
27965         * modules/ioctl (configure.ac): Likewise.
27966
27967 2009-08-10  Bruno Haible  <bruno@clisp.org>
27968
27969         Avoid collision between gnulib wrapper and libintl wrapper.
27970         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
27971         already defined in intl/printf.c.
27972         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
27973         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
27974
27975 2009-08-09  Bruno Haible  <bruno@clisp.org>
27976
27977         Make <sys/select.h> really self-contained, also on Solaris 10.
27978         * lib/sys_select.in.h: Include <string.h>.
27979         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
27980         Solaris 10 problem.
27981         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
27982         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
27983         Reported by Jim Meyering.
27984
27985 2009-08-09  Bruno Haible  <bruno@clisp.org>
27986
27987         Avoid warnings from 'aclocal' that are due to a use of macro name
27988         AM_XGETTEXT_OPTION that is not defined in automake.
27989         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
27990         automake.
27991         * modules/error (configure.ac): Likewise.
27992         * modules/propername (configure.ac): Likewise.
27993         * modules/vasprintf (configure.ac): Likewise.
27994         * modules/verror (configure.ac): Likewise.
27995         * modules/xprintf (configure.ac): Likewise.
27996         * modules/xvasprintf (configure.ac): Likewise.
27997
27998 2009-08-08  Bruno Haible  <bruno@clisp.org>
27999
28000         Avoid compilation error in C++ mode.
28001         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28002         Reported by Sam Steingold <sds@gnu.org>.
28003
28004 2009-08-08  Bruno Haible  <bruno@clisp.org>
28005
28006         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28007         for the various Unix platforms.
28008         * doc/posix-headers/limits.texi: Update platforms list regarding
28009         HOST_NAME_MAX.
28010         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28011
28012 2009-08-07  Jim Meyering  <meyering@redhat.com>
28013
28014         selinux-at: fix typo in a comment
28015         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28016         Spotted by Paolo Bonzini.
28017
28018         selinux-at: remove redundant m4 code, add documentation
28019         * modules/selinux-at (configure.ac): Remove redundant code.
28020         LIB_SELINUX is already set via the dependent module, selinux-h.
28021         (Include): Add quotes around selinux-at.h.
28022         * lib/selinux-at.h: Add documentation.
28023         Reported by Bruno Haible in
28024         http://marc.info/?l=gnulib-bug&m=124958988300749
28025
28026 2009-08-07  Bruno Haible  <bruno@clisp.org>
28027
28028         Avoid link error on MacOS X 10.3 and 10.4.
28029         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28030         on non-ELF systems.
28031         * lib/argp-pv.c (argp_program_version): Likewise.
28032         Reported by Simon Josefsson.
28033
28034 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28035
28036         * tests/test-version-etc.sh: Use $EXEEXT.
28037
28038 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28039
28040         update-copyright: update documentation to point to maint.mk
28041         * build-aux/update-copyright: Here.
28042
28043 2009-08-06  Jim Meyering  <meyering@redhat.com>
28044
28045         maint.mk: support update-copyright-local
28046         * top/maint.mk (update-copyright-local): Define place-holder.
28047         (update-copyright): Depend on $(update-copyright-local).
28048
28049 2009-08-06  Jim Meyering  <meyering@redhat.com>
28050
28051         selinux-at: new module
28052         Initially written for coreutils, this module will soon be
28053         used by findutils, too.
28054         * MODULES.html.sh [Misc]: Add selinux-at.
28055         * lib/selinux-at.h: New file, from coreutils.
28056         * lib/selinux-at.c: Likewise.
28057         * modules/selinux-at: Likewise.
28058         (License): Change from LGPL to GPL, since it depends
28059         on the GPL'd openat module.
28060
28061         doc: update README
28062         * README: Remove references to cogito.
28063         Remove cvs-repo-updating instructions from 2007.
28064         Don't imply that CVS is better if you have limited disk space.
28065
28066 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28067
28068         update-copyright: support C-style comments
28069         * build-aux/update-copyright: Implement and document.
28070         * tests/test-update-copyright.sh: Test.
28071
28072 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28073
28074         update-copyright: support omitted "(C)"
28075         * build-aux/update-copyright: Implement and document.  Also,
28076         allow variable whitespace before "(C)".
28077         * tests/test-update-copyright.sh: Test.
28078
28079 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28080
28081         update-copyright: don't trip on non-FSF copyright statements
28082         * build-aux/update-copyright: Fix so that the first correctly
28083         formatted FSF copyright statement is recognized no matter what
28084         appears before it.  Update documentation.
28085         * tests/test-update-copyright.sh: Test that.
28086
28087 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28088
28089         update-copyright: clean up code a little
28090         * build-aux/update-copyright: Append "_re" to the name of any
28091         variable holding a regular expression.
28092         Replace "old" and "new" with "stmt" in variable names.
28093         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28094         handled correctly.
28095         Format code more consistently.
28096
28097 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28098
28099         update-copyright-tests: improve portability
28100         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28101         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28102
28103 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28104
28105         update-copyright: support @copyright{} and &copy;
28106         * build-aux/update-copyright: Implement and document.
28107         * tests/test-update-copyright.sh: Test.
28108
28109 2009-08-04  Jim Meyering  <meyering@redhat.com>
28110
28111         update-copyright-tests: correctly test EOL=\r\n handling
28112         * tests/test-update-copyright.sh: Put \r at the end of some lines
28113         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28114
28115         maint.mk: make update-copyright exclusion list more configurable
28116         * top/maint.mk (update-copyright): Default to excluding COPYING,
28117         but allow an override, in case someone does want to update that file.
28118
28119         maint.mk: don't update copyright date in COPYING
28120         * top/maint.mk (update-copyright): Exclude COPYING.
28121
28122         maint.mk: add a copyright-updating rule
28123         * top/maint.mk (update-copyright): New rule.
28124         Derived from coreutils/Makefile.am.
28125
28126         update-copyright: rename some variables
28127         * build-aux/update-copyright: Rename a few variables for clarity.
28128         Tweak syntax.  List Joel E. Denny as coauthor.
28129
28130 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28131
28132         update-copyright: fix bug for 2-digit last year and add tests
28133         * build-aux/update-copyright: Fix bug.
28134         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28135         specified.
28136         * modules/update-copyright-tests: New
28137         * tests/test-update-copyright.sh: New.
28138
28139 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28140
28141         update-copyright: handle leading tabs in line prefix
28142         * build-aux/update-copyright: Count leading tabs as 8 spaces
28143         when computing margin.  This helps with the formatting of
28144         ChangeLogs, for example.
28145         Fix documentation a little.
28146
28147 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28148
28149         update-copyright: support EOL=\r\n
28150         * build-aux/update-copyright: Implement that.
28151
28152 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28153
28154         update-copyright: automatically format copyright statements
28155         * build-aux/update-copyright: Implement that.
28156         Also, be a little more predictable and safer by always failing
28157         when the full copyright format is not perfectly recognized as an
28158         unbroken whole.  Discussed at
28159         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28160         Rewrite documentation.
28161
28162 2009-08-03  Bruno Haible  <bruno@clisp.org>
28163
28164         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28165
28166 2009-08-02  Bruno Haible  <bruno@clisp.org>
28167
28168         Tests for module 'uname'.
28169         * modules/uname-tests: New file.
28170         * tests/test-uname.c: New file.
28171
28172         New module 'uname'.
28173         * lib/uname.c: New file.
28174         * m4/uname.m4: New file.
28175         * modules/uname: New file.
28176         * doc/posix-functions/uname.texi: Mention the new module.
28177
28178 2009-08-02  Bruno Haible  <bruno@clisp.org>
28179
28180         Tests for module 'sys_utsname'.
28181         * modules/sys_utsname-tests: New file.
28182         * tests/test-sys_utsname.c: New file.
28183
28184         New module 'sys_utsname'.
28185         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28186         * m4/sys_utsname_h.m4: New file.
28187         * modules/sys_utsname: New file.
28188         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28189
28190 2009-08-02  Bruno Haible  <bruno@clisp.org>
28191
28192         Implicitly initialize the sockets library.
28193         * lib/gethostname.c: Include sockets.h.
28194         (rpl_gethostname): Invoke gl_sockets_startup.
28195         * lib/socket.c: Include sockets.h.
28196         (rpl_socket): Invoke gl_sockets_startup.
28197         * modules/gethostname (Depends-on): Add sockets.
28198         * modules/socket (Depends-on): Likewise.
28199         * tests/test-poll.c: Don't include sockets.h.
28200         (main): Don't invoke gl_sockets_startup.
28201         * tests/test-select.c: Don't include sockets.h.
28202         (main): Don't invoke gl_sockets_startup.
28203
28204 2009-08-02  Bruno Haible  <bruno@clisp.org>
28205
28206         Allow multiple calls to gl_sockets_startup.
28207         * lib/sockets.c (initialized_sockets_version): New variable.
28208         (gl_sockets_startup): Do nothing if already called for this or a higher
28209         version.
28210         (gl_sockets_cleanup): Reset initialized_sockets_version.
28211
28212 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28213
28214         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28215         different project/version.
28216
28217 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28218             Bruno Haible  <bruno@clisp.org>
28219
28220         Tests for module 'pipe-filter-gi'.
28221         * modules/pipe-filter-gi-tests: New file.
28222         * tests/test-pipe-filter-gi1.sh: New file.
28223         * tests/test-pipe-filter-gi1.c: New file.
28224         * tests/test-pipe-filter-gi2.sh: New file.
28225         * tests/test-pipe-filter-gi2-main.c: New file.
28226         * tests/test-pipe-filter-gi2-child.c: New file.
28227
28228         New module 'pipe-filter-gi'.
28229         * lib/pipe-filter-gi.c: New file.
28230         * modules/pipe-filter-gi: New file.
28231
28232 2009-08-02  Bruno Haible  <bruno@clisp.org>
28233             Paolo Bonzini  <bonzini@gnu.org>
28234
28235         Tests for module 'pipe-filter-ii'.
28236         * modules/pipe-filter-ii-tests: New file.
28237         * tests/test-pipe-filter-ii1.sh: New file.
28238         * tests/test-pipe-filter-ii1.c: New file.
28239         * tests/test-pipe-filter-ii2.sh: New file.
28240         * tests/test-pipe-filter-ii2-main.c: New file.
28241         * tests/test-pipe-filter-ii2-child.c: New file.
28242
28243         New module 'pipe-filter-ii'.
28244         * lib/pipe-filter.h: New file.
28245         * lib/pipe-filter-ii.c: New file.
28246         * lib/pipe-filter-aux.h: New file.
28247         * modules/pipe-filter-ii: New file.
28248
28249 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28250
28251         * lib/gc-libgcrypt.c: Change copyright to FSF.
28252         * lib/gc-gnulib.c: Likewise.
28253
28254 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28255
28256         * lib/gethostname.c: Include limits.h.
28257
28258 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28259             Bruno Haible  <bruno@clisp.org>
28260
28261         Ensure HOST_NAME_MAX as part of the gethostname module.
28262         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28263         define also HOST_NAME_MAX.
28264         * tests/test-gethostname.c: Include <limits.h>.
28265         (main): Check also HOST_NAME_MAX.
28266         * doc/posix-headers/limits.texi: Document the mingw problem.
28267
28268 2009-08-02  Bruno Haible  <bruno@clisp.org>
28269
28270         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28271         Add comments.
28272
28273 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28274
28275         * lib/gethostname.c: Add Windows wrapper.
28276         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28277         * modules/gethostname: Depend on sys_socket & errno, for also
28278         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28279         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28280
28281 2009-07-31  Jim Meyering  <meyering@redhat.com>
28282
28283         getloadavg: fix symbol name in comment
28284         * lib/getloadavg.c: Correct a typo I introduced when adding
28285         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28286         Matt Kraai spotted the problem.
28287
28288 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28289
28290         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28291         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28292         code also if ! defined N_NAME_POINTER.
28293         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28294         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28295         but the n_name member is a 12-byte array.
28296
28297 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28298
28299         update-copyright: generalize comment handling
28300         * build-aux/update-copyright: Handle copyright statements
28301         within more comment styles.
28302         Document usage.
28303         Report any file with an external copyright holder or parse failure.
28304
28305 2009-07-29  Jim Meyering  <meyering@redhat.com>
28306
28307         mktime: correct setting of REPLACE_MKTIME
28308         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28309
28310         update-copyright: new module
28311         * modules/update-copyright: New file.
28312         * build-aux/update-copyright: New file.
28313         * MODULES.html.sh (maint+release support): Add update-copyright.
28314
28315 2009-07-27  Bruno Haible  <bruno@clisp.org>
28316
28317         Fix compilation error when <ctime> is used and mktime is replaced.
28318         * lib/time.in.h (mktime): New declaration.
28319         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28320         REPLACE_MKTIME instead of defining mktime in config.h.
28321         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28322         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28323         Reported by Ross McFarland <rwmcfa1@neces.com>.
28324
28325 2009-07-27  Bruno Haible  <bruno@clisp.org>
28326
28327         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28328         Reported by Matt Kraai <mkraai@beckman.com>.
28329
28330 2009-07-25  Jim Meyering  <meyering@redhat.com>
28331
28332         maint.mk: avoid warnings about missing files
28333         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28334         diagnostic when .prev-version does not exist.
28335         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28336         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28337         nonexistent cfg.mk.
28338         Suggestions from Simon Josefsson.
28339
28340 2009-07-25  Bruno Haible  <bruno@clisp.org>
28341
28342         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28343         defined as macros. Needed on QNX 6.4.1.
28344         Reported by Matt Kraai <mkraai@beckman.com>.
28345
28346 2009-07-23  Jim Meyering  <meyering@redhat.com>
28347
28348         maint.mk: invoke "make dist" with a working value of XZ_OPT
28349         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28350
28351 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28352
28353         Make fseeko.c compile on QNX.
28354         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28355
28356 2009-07-22  Peter Simons  <simons@cryp.to>
28357
28358         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28359         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28360         * lib/md4.h: Likewise.
28361         * lib/md5.h: Likewise.
28362         * lib/sha1.h: Likewise.
28363         * lib/sha256.h: Likewise.
28364         * lib/sha512.h: Likewise.
28365
28366         tests-sha1: don't assign literal string to 'char *' variable
28367         * tests/test-sha1.c (main): Declare locals with "const" to match
28368         attributes of the right hand side.
28369
28370 2009-07-21  Eric Blake  <ebb9@byu.net>
28371
28372         dup2: fix more mingw problems
28373         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28374         fd to itself.
28375         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28376         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28377         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28378         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28379         care of mingw bugs.
28380
28381 2009-07-21  Jim Meyering  <meyering@redhat.com>
28382
28383         vc-list-files: avoid failure when /bin/sh is dash
28384         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28385         On some Debian based systems, /bin/sh is a symlink to dash, and running
28386         this command would omit the "/" following each 'tests' prefix:
28387           dash -x build-aux/vc-list-files -C . tests
28388         That is because bash and dash work differently:
28389           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28390           bash ok
28391           dash odd
28392
28393 2009-07-21  Eric Blake  <ebb9@byu.net>
28394
28395         dup2-tests: test previous patch
28396         * modules/dup2-tests: New file.
28397         * tests/test-dup2.c: Likewise.
28398         * tests/test-open.c (main): Avoid unspecified behavior.
28399         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28400         test.
28401
28402         dup2: work around mingw and cygwin 1.5 bug
28403         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28405         * modules/unistd (Makefile.am): Substitute it.
28406         * lib/unistd.in.h (dup2): Declare the replacement.
28407         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28408         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28409         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28410         * modules/execute (Depends-on): Add dup2.
28411         * modules/fseterr (Depends-on): Likewise.
28412         * modules/pipe (Depends-on): Likewise.
28413         * modules/posix_spawn-internal (Depends-on): Likewise.
28414
28415 2009-07-21  Bruno Haible  <bruno@clisp.org>
28416
28417         * modules/.gitattributes: New file.
28418
28419 2009-07-20  Bruno Haible  <bruno@clisp.org>
28420
28421         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28422         (main): Use it.
28423
28424 2009-07-20  Eric Blake  <ebb9@byu.net>
28425
28426         test-pipe: make a bit more robust.
28427         * tests/test-pipe.c (myerr): Allow error messages regardless of
28428         what we do to stderr.
28429         (test_pipe): Rearrange to avoid deadlock.
28430         (child_main): Try a larger read, to ensure we avoided deadlock.
28431         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28432         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28433         if misused.
28434
28435 2009-07-19  Jim Meyering  <meyering@redhat.com>
28436
28437         fts: avoid false-positive cycle-detection
28438         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28439         for each new command line argument.
28440
28441 2009-07-19  Bruno Haible  <bruno@clisp.org>
28442
28443         Fix build error on mingw with the modules sys_select and unistd.
28444         * modules/acl-tests (Depends-on): Add close.
28445         * modules/binary-io-tests (Depends-on): Likewise.
28446         * modules/closein-tests (Depends-on): Likewise.
28447         * modules/flock-tests (Depends-on): Likewise.
28448         * modules/fsync-tests (Depends-on): Likewise.
28449         * modules/lseek-tests (Depends-on): Likewise.
28450         * modules/pipe-tests (Depends-on): Likewise.
28451         * modules/posix_spawn-tests (Depends-on): Likewise.
28452         * modules/posix_spawnp-tests (Depends-on): Likewise.
28453         * modules/stat-time-tests (Depends-on): Likewise.
28454         * modules/yesno-tests (Depends-on): Likewise.
28455
28456 2009-07-19  Bruno Haible  <bruno@clisp.org>
28457
28458         Unify conditionals.
28459         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28460         macros, not at the compiler macros.
28461         * lib/pipe.c: Likewise.
28462         * lib/execute.c: Likewise.
28463         * lib/spawni.c: Likewise.
28464
28465 2009-07-19  Bruno Haible  <bruno@clisp.org>
28466
28467         Fix handling of closed stdin/stdout/stderr on mingw.
28468         * lib/w32spawn.h: Include unistd.h.
28469         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28470         file descriptor with O_NOINHERIT flag.
28471         (fd_safer_noinherit): New function, based on fd-safer.c.
28472         (dup_safer_noinherit): New function, based on dup-safer.c.
28473         (undup_safer_noinherit): New function.
28474         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28475         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28476         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28477         instead of fd_safer.
28478         * tests/test-pipe.c: Include <windows.h>.
28479         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28480         result.
28481
28482         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28483         from main.
28484         (test_pipe): Pass an extra argument for disambiguation.
28485         (main): Invoke parent_main or child_main.
28486
28487         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28488         consistently.
28489
28490 2009-07-18  Eric Blake  <ebb9@byu.net>
28491
28492         test-pipe: fix mingw build
28493         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28494
28495 2009-07-18  Bruno Haible  <bruno@clisp.org>
28496
28497         * modules/pipe-tests (Makefile.am): Fix typo.
28498
28499 2009-07-18  Eric Blake  <ebb9@byu.net>
28500
28501         error: fix mingw build
28502         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28503         Reported by Bruno Haible.
28504
28505         error: avoid undefined use of stdout
28506         * lib/error.c (error, error_at_line): Check that fd 1 is open
28507         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28508         is handling faults and the close_stdout module wants to report the
28509         detection of closed stdout as an error.
28510
28511 2009-07-17  Eric Blake  <ebb9@byu.net>
28512
28513         pipe: be robust in face of closed fds
28514         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28515         should cause child to misbehave.
28516         * modules/pipe-tests: New module.
28517         * tests/test-pipe.c: New file.
28518         * tests/test-pipe.sh: New file.
28519         Reported by Akim Demaille.
28520
28521 2009-07-14  Bruno Haible  <bruno@clisp.org>
28522
28523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
28524         Reported by anonymous kc.
28525
28526 2009-07-07  Jim Meyering  <meyering@redhat.com>
28527
28528         maint.mk: don't look for translatable strings in *.m4 or *.mk
28529         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
28530         when searching for translatable strings.
28531
28532 2009-07-05  Jim Meyering  <meyering@redhat.com>
28533
28534         remove superfluous parentheses in STREQ definition
28535         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
28536         * lib/getugroups.c (STREQ): Likewise.
28537         * lib/fnmatch.c (STREQ): Likewise.
28538         Spotted by Bruno Haible.
28539
28540 2009-07-04  Jim Meyering  <meyering@redhat.com>
28541
28542         argv-iter: new module
28543         * MODULES.html.sh: Add argv-iter.
28544         * lib/argv-iter.c, lib/argv-iter.h: New files.
28545         * modules/argv-iter: New file.
28546         * modules/argv-iter-tests: New file.
28547         * tests/test-argv-iter.c: Test it.
28548
28549 2009-07-04  Bruno Haible  <bruno@clisp.org>
28550
28551         Fix assertion.
28552         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
28553         contains more exact copies of a given entry than file2, leave the extra
28554         copies unpaired rather than aborting.
28555         Reported by Eric Blake.
28556
28557 2009-07-02  Bruno Haible  <bruno@clisp.org>
28558
28559         Speedup git-merge-changelog for git cherry-pick.
28560         * lib/git-merge-changelog.c (struct entries_mapping): New type.
28561         (entries_mapping_get): New function, extracted from compute_mapping.
28562         (entries_mapping_reverse_get): New function.
28563         (compute_mapping): Add a 'full' argument. Return the result in a
28564         'struct entries_mapping'.
28565         (main): Update. Access the mappings through entries_mapping_get.
28566         Reported by Eric Blake.
28567
28568 2009-07-02  Bruno Haible  <bruno@clisp.org>
28569
28570         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
28571         best_i.
28572
28573 2009-07-02  Bruno Haible  <bruno@clisp.org>
28574
28575         Speed up approximate search for matching ChangeLog entries.
28576         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28577         argument. Call fstrcmp_bounded instead of fstrcmp.
28578         (compute_mapping, try_split_merged_entry, main): Update callers.
28579
28580 2009-07-02  Bruno Haible  <bruno@clisp.org>
28581
28582         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
28583
28584 2009-06-30  Bruno Haible  <bruno@clisp.org>
28585
28586         Reduce the number of uc_is_cased calls.
28587         * lib/unicase.h (casing_suffix_context_t): Add
28588         'first_char_except_ignorable' field.
28589         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
28590         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
28591         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
28592         Update initializer.
28593         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
28594         case-ignorable characters.
28595         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
28596         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
28597         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
28598         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
28599         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
28600
28601 2009-06-30  Bruno Haible  <bruno@clisp.org>
28602
28603         Tests for module 'unicase/ignorable'.
28604         * modules/unicase/ignorable-tests: New file.
28605         * tests/unicase/test-ignorable.c: New file, generated by
28606         gen-uni-tables.
28607
28608         Tests for module 'unicase/cased'.
28609         * modules/unicase/cased-tests: New file.
28610         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
28611         * tests/unicase/test-predicate-part1.h: New file, derived from
28612         tests/unictype/test-predicate-part1.h.
28613         * tests/unicase/test-predicate-part2.h: New file, same as
28614         tests/unictype/test-predicate-part2.h.
28615
28616         Fix evaluation of "Before C" condition of FINAL_SIGMA.
28617         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
28618         (output_casing_properties): New function.
28619         (main): Call it.
28620         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
28621         * lib/unicase/cased.c: Include unictype/bitmap.h.
28622         (uc_is_cased): Define through a bitmap lookup.
28623         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
28624         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
28625         (uc_is_case_ignorable): Define through a bitmap lookup.
28626         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
28627         lib/unictype/bitmap.h.
28628         (Depends-on): Add inline. Clean up.
28629         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
28630         lib/unictype/bitmap.h.
28631         (Depends-on): Add inline. Clean up.
28632         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
28633         recognition.
28634         * tests/unicase/test-u16-tolower.c (main): Likewise.
28635         * tests/unicase/test-u32-tolower.c (main): Likewise.
28636
28637 2009-06-30  Bruno Haible  <bruno@clisp.org>
28638
28639         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
28640         * lib/unicase/u16-casemap.c: Likewise.
28641         * lib/unicase/u32-casemap.c: Likewise.
28642
28643 2009-06-29  Bruno Haible  <bruno@clisp.org>
28644
28645         Define u32_casefold as a wrapper around u32_ct_casefold.
28646         * lib/unicase/u32-casefold.c: Update.
28647         * modules/unicase/u32-casefold (Depends-on): Add
28648         unicase/u32-ct-casefold, unicase/empty-prefix-context,
28649         unicase/empty-suffix-context. Clean up.
28650
28651         Define u16_casefold as a wrapper around u16_ct_casefold.
28652         * lib/unicase/u16-casefold.c: Update.
28653         * modules/unicase/u16-casefold (Depends-on): Add
28654         unicase/u16-ct-casefold, unicase/empty-prefix-context,
28655         unicase/empty-suffix-context. Clean up.
28656
28657         Define u8_casefold as a wrapper around u8_ct_casefold.
28658         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
28659         * lib/unicase/u8-casefold.c: Update.
28660         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
28661         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28662
28663         Define u32_totitle as a wrapper around u32_ct_totitle.
28664         * lib/unicase/u32-totitle.c: Update.
28665         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
28666         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28667
28668         Define u16_totitle as a wrapper around u16_ct_totitle.
28669         * lib/unicase/u16-totitle.c: Update.
28670         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
28671         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28672
28673         Define u8_totitle as a wrapper around u8_ct_totitle.
28674         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
28675         functions.
28676         (FUNC): Delegate to U_CT_TOTITLE.
28677         * lib/unicase/u8-totitle.c: Update.
28678         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
28679         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28680
28681         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
28682         invocation.
28683         * modules/unicase/u32-tolower (Depends-on): Add
28684         unicase/empty-prefix-context, unicase/empty-suffix-context.
28685
28686         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
28687         invocation.
28688         * modules/unicase/u16-tolower (Depends-on): Add
28689         unicase/empty-prefix-context, unicase/empty-suffix-context.
28690
28691         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28692         * modules/unicase/u8-tolower (Depends-on): Add
28693         unicase/empty-prefix-context, unicase/empty-suffix-context.
28694
28695         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28696         invocation.
28697         * modules/unicase/u32-toupper (Depends-on): Add
28698         unicase/empty-prefix-context, unicase/empty-suffix-context.
28699
28700         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28701         invocation.
28702         * modules/unicase/u16-toupper (Depends-on): Add
28703         unicase/empty-prefix-context, unicase/empty-suffix-context.
28704
28705         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28706         * modules/unicase/u8-toupper (Depends-on): Add
28707         unicase/empty-prefix-context, unicase/empty-suffix-context.
28708
28709         New module 'unicase/u32-ct-casefold'.
28710         * lib/unicase/u32-ct-casefold.c: New file.
28711         * modules/unicase/u32-ct-casefold: New file.
28712
28713         New module 'unicase/u16-ct-casefold'.
28714         * lib/unicase/u16-ct-casefold.c: New file.
28715         * modules/unicase/u16-ct-casefold: New file.
28716
28717         New module 'unicase/u8-ct-casefold'.
28718         * lib/unicase/u8-ct-casefold.c: New file.
28719         * lib/unicase/u-ct-casefold.h: New file, derived from
28720         lib/unicase/u-casefold.h.
28721         * modules/unicase/u8-ct-casefold: New file.
28722
28723         New module 'unicase/u32-ct-totitle'.
28724         * lib/unicase/u32-ct-totitle.c: New file.
28725         * modules/unicase/u32-ct-totitle: New file.
28726
28727         New module 'unicase/u16-ct-totitle'.
28728         * lib/unicase/u16-ct-totitle.c: New file.
28729         * modules/unicase/u16-ct-totitle: New file.
28730
28731         New module 'unicase/u8-ct-totitle'.
28732         * lib/unicase/u8-ct-totitle.c: New file.
28733         * lib/unicase/u-ct-totitle.h: New file, derived from
28734         lib/unicase/u-totitle.h.
28735         * modules/unicase/u8-ct-totitle: New file.
28736
28737         New module 'unicase/u32-ct-tolower'.
28738         * lib/unicase/u32-ct-tolower.c: New file.
28739         * modules/unicase/u32-ct-tolower: New file.
28740
28741         New module 'unicase/u16-ct-tolower'.
28742         * lib/unicase/u16-ct-tolower.c: New file.
28743         * modules/unicase/u16-ct-tolower: New file.
28744
28745         New module 'unicase/u8-ct-tolower'.
28746         * lib/unicase/u8-ct-tolower.c: New file.
28747         * modules/unicase/u8-ct-tolower: New file.
28748
28749         New module 'unicase/u32-ct-toupper'.
28750         * lib/unicase/u32-ct-toupper.c: New file.
28751         * modules/unicase/u32-ct-toupper: New file.
28752
28753         New module 'unicase/u16-ct-toupper'.
28754         * lib/unicase/u16-ct-toupper.c: New file.
28755         * modules/unicase/u16-ct-toupper: New file.
28756
28757         New module 'unicase/u8-ct-toupper'.
28758         * lib/unicase/u8-ct-toupper.c: New file.
28759         * modules/unicase/u8-ct-toupper: New file.
28760
28761         Add context arguments to u*_casemap functions.
28762         * lib/unicase/unicasemap.h: Include unicase.h.
28763         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28764         suffix_context arguments.
28765         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28766         functions.
28767         (FUNC): Add prefix_context and suffix_context arguments. Use
28768         uc_is_cased and uc_is_case_ignorable.
28769         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28770         * lib/unicase/u16-casemap.c: Likewise.
28771         * lib/unicase/u32-casemap.c: Likewise.
28772         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28773         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28774         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28775         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28776         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28777         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28778
28779         New module 'unicase/u32-suffix-context'.
28780         * lib/unicase/u32-suffix-context.c: New file.
28781         * modules/unicase/u32-suffix-context: New file.
28782
28783         New module 'unicase/u16-suffix-context'.
28784         * lib/unicase/u16-suffix-context.c: New file.
28785         * modules/unicase/u16-suffix-context: New file.
28786
28787         New module 'unicase/u8-suffix-context'.
28788         * lib/unicase/u8-suffix-context.c: New file.
28789         * lib/unicase/u-suffix-context.h: New file.
28790         * modules/unicase/u8-suffix-context: New file.
28791
28792         New module 'unicase/empty-suffix-context'.
28793         * lib/unicase/empty-suffix-context.c: New file.
28794         * modules/unicase/empty-suffix-context: New file.
28795
28796         New module 'unicase/u32-prefix-context'.
28797         * lib/unicase/u32-prefix-context.c: New file.
28798         * modules/unicase/u32-prefix-context: New file.
28799
28800         New module 'unicase/u16-prefix-context'.
28801         * lib/unicase/u16-prefix-context.c: New file.
28802         * modules/unicase/u16-prefix-context: New file.
28803
28804         New module 'unicase/u8-prefix-context'.
28805         * lib/unicase/u8-prefix-context.c: New file.
28806         * lib/unicase/u-prefix-context.h: New file.
28807         * lib/unicase/context.h: New file.
28808         * modules/unicase/u8-prefix-context: New file.
28809
28810         New module 'unicase/empty-prefix-context'.
28811         * lib/unicase/empty-prefix-context.c: New file.
28812         * modules/unicase/empty-prefix-context: New file.
28813
28814         New module 'unicase/ignorable'.
28815         * lib/unicase/ignorable.c: New file.
28816         * modules/unicase/ignorable: New file.
28817
28818         New module 'unicase/cased'.
28819         * lib/unicase/caseprop.h: New file.
28820         * lib/unicase/cased.c: New file.
28821         * modules/unicase/cased: New file.
28822
28823         New functions for case mapping of substrings.
28824         * lib/unicase.h (casing_prefix_context_t): New type.
28825         (unicase_empty_prefix_context): New variable.
28826         (u8_casing_prefix_context, u16_casing_prefix_context,
28827         u32_casing_prefix_context, u8_casing_prefixes_context,
28828         u16_casing_prefixes_context, u32_casing_prefixes_context): New
28829         declarations.
28830         (casing_suffix_context_t): New type.
28831         (unicase_empty_suffix_context): New variable.
28832         (u8_casing_suffix_context, u16_casing_suffix_context,
28833         u32_casing_suffix_context, u8_casing_suffixes_context,
28834         u16_casing_suffixes_context, u32_casing_suffixes_context,
28835         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
28836         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
28837         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
28838         declarations.
28839
28840 2009-06-28  Jim Meyering  <meyering@redhat.com>
28841
28842         boostrap: indent only with spaces
28843         * build-aux/bootstrap: Indent only with spaces, never TABs.
28844
28845         bootstrap: split long lines
28846         * build-aux/bootstrap: Keep line length < 80.
28847
28848         bootstrap: sync from coreutils
28849         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
28850         just as autoreconf does.  Verify a list of prerequisite
28851         package-name,version-number pairs if defined in bootstrap.conf.
28852         Refer to README-prereq, if prerequisites are not satisfied.
28853
28854 2009-06-27  Eric Blake  <ebb9@byu.net>
28855
28856         tests: add test for bogus NULL definition
28857         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
28858         * tests/test-stdlib.c: Likewise.
28859         * tests/test-string.c: Likewise.
28860         * tests/test-locale.c: Likewise.
28861         * tests/test-unistd.c: Likewise.
28862         * modules/stdio-tests (Depends-on): Add verify.
28863         * modules/stdlib-tests (Depends-on): Likewise.
28864         * modules/string-tests (Depends-on): Likewise.
28865         * modules/locale-tests (Depends-on): Likewise.
28866         * modules/unistd-tests (Depends-on): Likewise.
28867
28868 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
28869
28870         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
28871         self-explaining comment.
28872         * m4/selinux-selinux-h: Update serial.
28873         (gl_LIBSELINUX): New macro, adding a warning for missing development
28874         packages to code extracted from...
28875         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
28876         Add warning for missing development packages here, too.
28877
28878 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
28879
28880         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
28881
28882 2009-06-25  Eric Blake  <ebb9@byu.net>
28883
28884         version-etc: fix regression
28885         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
28886         gcc.
28887         (version_etc): Use it, to catch bugs with trailing NULL.
28888         * lib/version-etc.c (version_etc_arn): Delete unused argument.
28889         (version_etc_va): Fix logic bug.
28890         * modules/version-etc-tests: Add test.
28891         * tests/test-version-etc.c: New file.
28892         * tests/test-version-etc.sh: Likewise.
28893
28894 2009-06-25  Sam Steingold  <sds@gnu.org>
28895
28896         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
28897         mbtowc declaration.
28898
28899 2009-06-25  Eric Blake  <ebb9@byu.net>
28900
28901         fpurge: migrate into <stdio.h>
28902         * lib/fpurge.h: Delete...
28903         * lib/stdio.in.h (fpurge): ...and declare here, instead.
28904         * lib/fpurge.c (fpurge): Change declaring header.
28905         * modules/fpurge (Files): Drop deleted file.
28906         (Depends-on): Add stdio.
28907         (configure.ac): Set witness.
28908         * modules/stdio (Makefile.am): Support fpurge macros.
28909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28910         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
28911         * lib/fflush.c: Update client.
28912         * tests/test-fpurge.c: Likewise.
28913         * NEWS: Mention the change.
28914
28915 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28916
28917         * lib/argp-version-etc.c (program_authors): Add const
28918         qualifier.
28919         * lib/version-etc.c: Fix typos in the comments.
28920         * modules/argp-version-etc: Depends on version-etc.
28921
28922 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28923
28924         argp-version-etc: new module.
28925
28926         * lib/argp-version-etc.c: New file.
28927         * lib/argp-version-etc.h: New file.
28928         * modules/argp-version-etc: New file.
28929         * modules/argp-version-etc-tests: New file.
28930         * tests/test-argp-version-etc.c: New test.
28931         * tests/test-argp-version-etc-1.sh: New test.
28932
28933 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28934
28935         Provide additional interfaces and documentation for version-etc
28936         module.
28937
28938         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
28939         interfaces.
28940         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
28941         prototypes.
28942
28943 2009-06-24  Bruno Haible  <bruno@clisp.org>
28944
28945         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
28946         HAVE_LIB${NAME} macro.
28947         Reported by Sam Steingold <sds@gnu.org>.
28948
28949 2009-06-23  Simon Josefsson  <simon@josefsson.org>
28950
28951         * modules/hash-tests (test_hash_LDADD): Link to libintl when
28952         needed.
28953
28954 2009-06-21  Bruno Haible  <bruno@clisp.org>
28955
28956         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
28957         work.
28958         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
28959         together with LIB${NAME}, LTLIB${NAME}.
28960         Reported by Sam Steingold <sds@gnu.org>.
28961
28962 2009-06-20  Jim Meyering  <meyering@redhat.com>
28963
28964         tests: make sc_require_test_exit_idiom more generic
28965         * top/maint.mk (Exit_witness_file): New overridable variable.
28966         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
28967         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
28968
28969 2009-06-19  Jim Meyering  <meyering@redhat.com>
28970
28971         hash: reverse order of src/dst parameters in an internal interface
28972         * lib/hash.c (transfer_entries): Reverse order of parameters to
28973         put DST before SRC.  Adjust callers.
28974
28975         tests: test-hash: avoid wholesale duplication
28976         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
28977         Instead, use a loop and add a single conditional.
28978
28979         tests: test-hash: allow seed selection via a command line argument
28980         * tests/test-hash.c (get_seed): New function.
28981         (main): Use it.
28982
28983 2009-06-19  Eric Blake  <ebb9@byu.net>
28984
28985         hash: avoid memory leak on allocation failure
28986         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
28987         failure.  Factor repeated algorithm...
28988         (transfer_entries): ...into new helper routine.
28989         (hash_delete): React to hash_rehash return value.
28990
28991         hash: reduce memory pressure in hash_rehash no-op case
28992         * lib/hash.c (next_prime): Avoid overflow.
28993         (hash_initialize): Factor bucket size computation...
28994         (compute_bucket_size): ...into new helper function.
28995         (hash_rehash): Use new function and open coding to reduce memory
28996         pressure, and avoid a memory leak in USE_OBSTACK code.
28997         Reported by Jim Meyering.
28998
28999 2009-06-18  Eric Blake  <ebb9@byu.net>
29000
29001         hash: make rotation more obvious
29002         * modules/hash (Depends-on): Add bitrotate and stdint.
29003         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29004         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29005         (SIZE_MAX): Rely on headers for definition.
29006         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29007         (raw_hasher): Use rotr_sz.
29008         Suggested by Jim Meyering.
29009
29010         hash: fix memory leak in last patch
29011         * lib/hash.c (hash_rehash): Avoid memory leak.
29012
29013         hash: avoid no-op rehashing
29014         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29015
29016         hash: provide default callback functions
29017         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29018         (hash_initialize): Use them as defaults.
29019         * tests/test-hash.c (main): Test this.
29020
29021         hash: minor optimization
29022         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29023         when possible.
29024         (hash_initialize): Document this promise.
29025         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29026         * tests/test-hash.c (hash_compare_strings): Test this.
29027
29028 2009-06-18  Bruno Haible  <bruno@clisp.org>
29029
29030         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29031         going to be replaced anyway.
29032
29033 2009-06-18  Bruno Haible  <bruno@clisp.org>
29034
29035         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29036         in one place.
29037         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29038         be replaced anyway.
29039
29040 2009-06-18  Eric Blake  <ebb9@byu.net>
29041
29042         hash: check for resize before insertion
29043         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29044         threshold before insertion, so that a pathological hash_rehash
29045         that fills every bucket can still trigger another rehash.
29046
29047 2009-06-18  Jim Meyering  <meyering@redhat.com>
29048
29049         hash-tests: add a loop around the small tests
29050         * tests/test-hash.c (main): Repeat small tests with selected
29051         small initial table sizes.
29052
29053 2009-06-17  Eric Blake  <ebb9@byu.net>
29054
29055         hash: minor cleanups
29056         * lib/hash.h (hash_entry): Make opaque, by moving...
29057         * lib/hash.c (hash_entry): ...here.
29058         (hash_insert): Clarify restrictions on what can be inserted.
29059         (hash_get_next): Clarify when it is safe to remove an element
29060         during traversal.
29061         (check_tuning): Skip verification when tuning is known safe.
29062         (hash_initialize): Clarify restrictions on tuning.
29063
29064 2009-06-17  Jim Meyering  <jim@meyering.net>
29065         and Eric Blake  <ebb9@byu.net>
29066
29067         hash-tests: new module
29068         * modules/hash-tests: New file.
29069         * tests/test-hash.c: New file.
29070
29071 2009-06-17  Eric Blake  <ebb9@byu.net>
29072
29073         strstr-simple: document new module
29074         * MODULES.html.sh: Document new module.
29075
29076         strstr, strcasestr: replace on platforms with broken memchr
29077         * modules/strstr: Split into...
29078         * modules/strstr-simple: ...new module that does not care about
29079         performance, but does care about glibc bug.
29080         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29081         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29082         if platform memchr is broken, per Debian bug 521737.
29083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29084         memchr.
29085         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29086         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29087         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29088         * modules/mountlist (Depends-on): Add strstr-simple.
29089         * modules/gen-uni-tables (Depends-on): Likewise.
29090         * modules/argz (Depends-on): Add strstr.
29091
29092 2009-06-17  Bruno Haible  <bruno@clisp.org>
29093
29094         * modules/posix_spawn-internal (Depends-on): Add errno.
29095
29096 2009-06-17  Bruno Haible  <bruno@clisp.org>
29097
29098         Define missing ESTALE on Interix 3.5.
29099         * lib/errno.in.h (ESTALE): Assign a value if missing.
29100         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29101         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29102         missing.
29103         * doc/posix-headers/errno.texi: Mention the Interix bug.
29104         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29105
29106 2009-06-15  Eric Blake  <ebb9@byu.net>
29107
29108         memchr, memchr2: add valgrind exception
29109         * lib/memchr.valgrind: New file.
29110         * lib/memchr2.valgrind: New file.
29111         * modules/memchr (Files): Distribute valgrind file.
29112         * modules/memchr2 (Files): Likewise.
29113
29114         docs: memchr is no longer obsolete
29115         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29116         * lib/string.in.h (memchr): Simplify logic.
29117
29118 2009-06-14  Jim Meyering  <meyering@redhat.com>
29119
29120         link-follow: fix the "checking..." message to not mention trailing slash
29121         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29122         never considered trailing slashes.
29123
29124 2009-06-14  Bruno Haible  <bruno@clisp.org>
29125
29126         * m4/memchr.m4: Mention also the bug on IA-64.
29127         * doc/posix-functions/memchr.texi: Likewise.
29128
29129 2009-06-12  Eric Blake  <ebb9@byu.net>
29130
29131         memchr: detect broken x86_64 and alpha implementations
29132         * modules/memchr-tests (Depends-on): Move mmap detection...
29133         * modules/memchr (Depends-on): ...here.
29134         (configure.ac): Set indicator.
29135         * lib/string.in.h (memchr): Declare replacement.
29136         * modules/string (Makefile.am): Trigger replacement.
29137         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29138         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29139         bugs.
29140         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29141         * modules/getpagesize (License): Relax license.
29142
29143 2009-06-11  Bruno Haible  <bruno@clisp.org>
29144
29145         * lib/idpriv.h: Add more references.
29146
29147 2009-06-08  Bruno Haible  <bruno@clisp.org>
29148
29149         Tests for module 'idpriv-droptemp'.
29150         * modules/idpriv-droptemp-tests: New file.
29151         * tests/test-idpriv-droptemp.sh: New file.
29152         * tests/test-idpriv-droptemp.su.sh: New file.
29153         * tests/test-idpriv-droptemp.c: New file.
29154
29155         New module 'idpriv-droptemp'.
29156         * lib/idpriv-droptemp.c: New file.
29157         * modules/idpriv-droptemp: New file.
29158
29159 2009-06-08  Bruno Haible  <bruno@clisp.org>
29160
29161         Tests for module 'idpriv-drop'.
29162         * modules/idpriv-drop-tests: New file.
29163         * tests/test-idpriv-drop.sh: New file.
29164         * tests/test-idpriv-drop.su.sh: New file.
29165         * tests/test-idpriv-drop.c: New file.
29166
29167         New module 'idpriv-drop'.
29168         * lib/idpriv.h: New file.
29169         * lib-idpriv-drop.c: New file.
29170         * m4/idpriv.m4: New file.
29171         * modules/idpriv-drop: New file.
29172
29173 2009-06-08  Bruno Haible  <bruno@clisp.org>
29174
29175         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29176         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29177         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29178         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29179         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29180         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29181         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29182
29183 2009-06-08  Eric Blake  <ebb9@byu.net>
29184
29185         test-strstr: use memory fence, when possible
29186         * tests/test-strstr.c (main): Use memory fence, in order to be
29187         more likely to trigger Debian bug 521737.
29188         * modules/strstr-tests (Files): Pull in additional files.
29189
29190         memchr: no longer obsolete, for wider field testing
29191         * modules/memchr (Status, Notice): Delete, this module is no
29192         longer obsolete.
29193         * modules/vasnprintf (Depends-on): Add memchr.
29194
29195 2009-06-07  Jim Meyering  <meyering@redhat.com>
29196
29197         hash: declare some functions with the warn_unused_result attribute
29198         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29199
29200 2009-06-07  Bruno Haible  <bruno@clisp.org>
29201
29202         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29203         Reported by Eric Blake.
29204
29205 2009-06-06  Eric Blake  <ebb9@byu.net>
29206
29207         test-alignof: fix typo with long double
29208         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29209         compiler error.
29210
29211 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29212
29213         Escape non-texinfo { and }s.
29214         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29215         markup error.
29216
29217 2009-06-04  Jim Meyering  <meyering@redhat.com>
29218
29219         gitlog-to-changelog: don't infloop on an empty commit log
29220         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29221         Reported by Boris Petersen <transacid@centerim.org>.
29222
29223 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29224
29225         version-etc: extend for packagers
29226         Add three new configure options, intended for packagers:
29227           --with-packager="packager name"
29228           --with-packager-version="packager-specific version"
29229           --with-packager-bug-reports="packager bug reporting"
29230         An example with coreutils:
29231           $ ./configure \
29232             --with-packager=Gentoo \
29233             --with-packager-bug-report=http://bugs.gentoo.org/ \
29234             --with-packager-version="patchset 1.6"
29235           $ ./src/ls --version | head -n2
29236           ls (GNU coreutils) 7.1-dirty
29237           Packaged by Gentoo (patchset 1.6)
29238         Note that the bug reporting info via --help doesn't show up because
29239         coreutils uses its own custom emit_bug_reporting_address() implementation
29240         in src/system.h.  If it didn't, it'd look like:
29241           $ ./src/ls --help | tail -n4
29242           Report bugs to <bug-coreutils@gnu.org>.
29243           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29244           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29245           General help using GNU software: <http://www.gnu.org/gethelp/>.
29246         * lib/version-etc.c: Print new information, if provided.
29247         * m4/version-etc.m4: New file.
29248         * modules/version-etc (Files): Add m4/version-etc.m4.
29249         (configure.ac): Add gl_VERSION_ETC.
29250
29251 2009-05-31  Bruno Haible  <bruno@clisp.org>
29252
29253         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29254         and 'int64_t'.
29255         * modules/alignof-tests (Dependencies): Add stdint.
29256         Reported by Eric Blake.
29257
29258 2009-05-31  Bruno Haible  <bruno@clisp.org>
29259
29260         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29261         restriction due to compiler bugs.
29262         Reported by Eric Blake.
29263
29264 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29265             Bruno Haible  <bruno@clisp.org>
29266
29267         Fix test-alignof failure.
29268         * lib/alignof.h (alignof_slot): New macro.
29269         (alignof_type): New macro, with the same semantics as the previous
29270         'alignof'.
29271         (alignof): Alias to alignof_slot.
29272         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29273         check that the results are usable as constant expressions.
29274
29275 2009-05-31  Bruno Haible  <bruno@clisp.org>
29276
29277         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29278         * tests/test-memchr.c (main): Check that memchr does not read past the
29279         first occurrence of the byte.
29280         * tests/test-strstr.c (main): Update comment.
29281         Suggested by Eric Blake.
29282
29283 2009-05-30  Bruno Haible  <bruno@clisp.org>
29284
29285         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29286         detail how to use dumpbin.
29287         Reported by David Byron <dbyron@dbyron.com>.
29288
29289 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29290
29291         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29292
29293 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29294
29295         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29296
29297 2009-05-28  Bruno Haible  <bruno@clisp.org>
29298
29299         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29300         build-aux/ files.
29301
29302 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29303
29304         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29305
29306 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29307
29308         * gnulib-tool (sed_transform_main_lib_file)
29309         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29310         regexps.
29311
29312 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29313
29314         * tests/test-strstr.c: Add another self-test.
29315         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29316         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29317
29318 2009-05-23  Bruno Haible  <bruno@clisp.org>
29319
29320         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29321         change.
29322
29323 2009-05-21  Bruno Haible  <bruno@clisp.org>
29324
29325         Simplify use of mode_t varargs.
29326         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29327         uses 'mode_t' or 'int'.
29328         * lib/openat.c (openat): Likewise.
29329         * lib/open-safer.c (open_safer): Likewise.
29330         * m4/mode_t.m4: New file.
29331         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29332         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29333         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29334         * modules/open (Files): Add m4/mode_t.m4.
29335         * modules/openat (Files): Likewise.
29336         * modules/fcntl-safer (Files): Likewise.
29337         Suggested by Eric Blake.
29338
29339 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29340
29341         * doc/glibc-functions/fallocate.texi: New file.
29342         * doc/gnulib.texi: Include it.
29343
29344 2009-05-21  Eric Blake  <ebb9@byu.net>
29345             Bruno Haible  <bruno@clisp.org>
29346
29347         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29348         invocations.
29349         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29350
29351 2009-05-21  Eric Blake  <ebb9@byu.net>
29352             Bruno Haible  <bruno@clisp.org>
29353
29354         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29355         include_next. Fix of 2008-11-20 commit.
29356         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29357         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29358         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29359         NEXT_MATH_H.
29360         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29361         instead of NEXT_MATH_H.
29362
29363 2009-05-21  Bruno Haible  <bruno@clisp.org>
29364
29365         Avoid redefinition warnings for SIZE_MAX.
29366         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29367         Reported by Simon Josefsson.
29368
29369 2009-05-21  Bruno Haible  <bruno@clisp.org>
29370
29371         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29372         AC_CACHE_VAL.
29373
29374 2009-05-20  Bruno Haible  <bruno@clisp.org>
29375
29376         Make zeroptr.h work on mingw.
29377         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29378         mprotect.
29379         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29380         * modules/memchr2-tests (configure.ac): Likewise.
29381         * modules/memcmp-tests (configure.ac): Likewise.
29382         * modules/memmem-tests (configure.ac): Likewise.
29383         * modules/memrchr-tests (configure.ac): Likewise.
29384         Reported by Simon Josefsson.
29385
29386 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29387
29388         * tests/test-glob.c: Include string.h for strcmp prototype.
29389
29390 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29391
29392         * modules/getdelim (Depends-on): Add explicit stdint, although it
29393         was implicitly already pulled in via realloc-posix.
29394         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29395
29396 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29397
29398         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29399         G. Christensen" <tgc@jupiterrise.com>.
29400         * m4/sys_socket_h.m4: Check for sa_family_t.
29401         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29402         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29403         * tests/test-sys_socket.c: Check that sa_family_t works.
29404
29405 2009-05-18  Eric Blake  <ebb9@byu.net>
29406
29407         maint.mk: allow gnulib_dir in VPATH build
29408         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29409
29410 2009-05-15  Jim Meyering  <meyering@redhat.com>
29411
29412         maint.mk: Give gnulib_dir a default definition.
29413         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29414         Thus, most packages no longer need to specify this variable in cfg.mk
29415
29416 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29417
29418         rename.m4: fix typos that would make non-mingw cross-configure fail
29419         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29420
29421 2009-05-13  Eric Blake  <ebb9@byu.net>
29422
29423         mmap-anon: avoid out-of-order autoconf expansion
29424         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29425         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29426         * modules/memchr-tests (Depends-on): Add extensions.
29427         * modules/memchr2-tests (Depends-on): Add extensions.
29428         * modules/memcmp-tests (Depends-on): Add extensions.
29429         * modules/memmem-tests (Depends-on): Add extensions.
29430         * modules/memrchr-tests (Depends-on): Add extensions.
29431
29432 2009-05-13  Bruno Haible  <bruno@clisp.org>
29433
29434         Make some tests ISO C 99 compliant.
29435         * tests/zerosize-ptr.h: New file.
29436         * tests/test-memchr.c: Include zerosize-ptr.h.
29437         (main): Use a zero-size object pointer instead of NULL.
29438         * tests/test-memchr2.c: Include zerosize-ptr.h.
29439         (main): Use a zero-size object pointer instead of NULL.
29440         * tests/test-memcmp.c: Include zerosize-ptr.h.
29441         (main): Use a zero-size object pointer instead of NULL.
29442         * tests/test-memmem.c: Include zerosize-ptr.h.
29443         (main): Use a zero-size object pointer instead of NULL.
29444         * tests/test-memrchr.c: Include zerosize-ptr.h.
29445         (main): Use a zero-size object pointer instead of NULL.
29446         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29447         m4/mmap-anon.m4.
29448         (Depends-on): Add getpagesize.
29449         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29450         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29451         m4/mmap-anon.m4.
29452         (Depends-on): Add getpagesize.
29453         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29454         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29455         m4/mmap-anon.m4.
29456         (Depends-on): Add getpagesize.
29457         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29458         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29459         m4/mmap-anon.m4.
29460         (Depends-on): Add getpagesize.
29461         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29462         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29463         m4/mmap-anon.m4.
29464         (Depends-on): Add getpagesize.
29465         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29466
29467 2009-05-12  Bruno Haible  <bruno@clisp.org>
29468
29469         Tests for module 'alignof'.
29470         * modules/alignof-tests: New file.
29471         * tests/test-alignof.c: New file.
29472
29473 2009-05-12  Bruno Haible  <bruno@clisp.org>
29474
29475         Fix alignof macro.
29476         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29477         vendor compilers that are always correct.
29478
29479 2009-05-12  Bruno Haible  <bruno@clisp.org>
29480
29481         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29482         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29483         not whether its fully works.
29484
29485 2009-05-12  Bruno Haible  <bruno@clisp.org>
29486
29487         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29488
29489 2009-05-12  Jim Meyering  <meyering@redhat.com>
29490
29491         * top/maint.mk: Adjust backslash alignment.
29492
29493 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29494
29495         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29496
29497 2009-05-11  Eric Blake  <ebb9@byu.net>
29498
29499         argp: avoid undefined behavior
29500         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29501         macros.
29502
29503 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29504
29505         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29506         user.name to prevent git commit from complaining.
29507
29508 2009-05-10  Bruno Haible  <bruno@clisp.org>
29509
29510         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29511         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29512         it rewrites every file name only once.
29513         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29514
29515 2009-05-08  Bruno Haible  <bruno@clisp.org>
29516
29517         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29518         instead of 'max'.
29519
29520 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29521
29522         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
29523         sockaddr_storage test.
29524
29525 2009-05-07  Simon Josefsson  <simon@josefsson.org>
29526
29527         * modules/sys_socket (Makefile.am): Substitute
29528         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
29529         * m4/sys_socket_h.m4: Check for sockaddr_storage.
29530         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
29531         * tests/test-sys_socket.c: Check sockaddr_storage.
29532
29533 2009-05-08  Bruno Haible  <bruno@clisp.org>
29534
29535         New module 'alignof'.
29536         * lib/alignof.h: New file.
29537         * modules/alignof: New file.
29538
29539 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29540             Bruno Haible  <bruno@clisp.org>
29541
29542         Fix test-file-has-acl on FreeBSD.
29543         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
29544         mask is implicitly added.
29545         * tests/test-file-has-acl.c: Include <signal.h>.
29546         (main): Terminate the test after 5 seconds.
29547         * modules/acl-tests (configure.ac): Check for alarm function.
29548
29549 2009-05-04  Bruno Haible  <bruno@clisp.org>
29550
29551         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
29552         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
29553         * modules/errno (configure.ac): Drop AC_REQUIRE.
29554         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
29555         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
29556
29557 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29558
29559         * modules/glob-tests: New module.
29560         * tests/test-glob.c: Add.
29561
29562 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29563
29564         * modules/fnmatch-tests: New module.
29565         * tests/test-fnmatch.c: Add.
29566
29567 2009-05-04  Eric Blake  <ebb9@byu.net>
29568
29569         maint: make the new no-submodule-changes rule VPATH-safe
29570         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
29571
29572 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29573             Bruno Haible  <bruno@clisp.org>
29574
29575         acl: Fix infinite loop on FreeBSD.
29576         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29577         of return value from acl_get_entry.
29578         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
29579         Likewise.
29580
29581 2009-05-03  Bruno Haible  <bruno@clisp.org>
29582
29583         * lib/acl-internal.h (acl_entries): Clarify return value.
29584         * lib/acl_entries.c (acl_entries): Likewise.
29585
29586 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29587
29588         Bug fix in acl module.
29589         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
29590
29591 2009-05-03  Bruno Haible  <bruno@clisp.org>
29592
29593         Create gperf-generated file in the source dir, not in the build dir.
29594         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
29595         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
29596         * modules/unicase/locale-language (unicase/locale-languages.h):
29597         Likewise.
29598         * modules/unicase/special-casing (unicase/special-casing-table.h):
29599         Likewise.
29600         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
29601         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
29602         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
29603         Reported by Ralf Wildenhues.
29604
29605 2009-05-03  Bruno Haible  <bruno@clisp.org>
29606
29607         * modules/fnmatch (Description, configure.ac): Taken from
29608         fnmatch-posix.
29609         * modules/fnmatch-posix: Turn into a symbolic reference to the
29610         'fnmatch' module, and deprecate.
29611         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
29612
29613 2009-05-03  Bruno Haible  <bruno@clisp.org>
29614
29615         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
29616         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
29617         Reported by Ralf Wildenhues.
29618
29619 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29620
29621         * m4/fnmatch.m4: Fix fnmatch re-define.
29622
29623 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29624
29625         priv-set: new module and tests; adapt write-any-file
29626         * lib/priv-set.c: New file.
29627         * lib/priv-set.h: New file.
29628         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
29629         * lib/write-any-file.c: Simplify by using priv-set module.
29630         * m4/priv-set.m4: New file.
29631         * modules/priv-set: New file.
29632         * modules/unlinkdir: Add dependency on priv-set module.
29633         * modules/write-any-file: Likewise.
29634
29635         Tests for module 'priv-set'.
29636         * modules/priv-set-tests: New file.
29637         * tests/test-priv-set.c: New file.
29638
29639 2009-05-03  Jim Meyering  <meyering@redhat.com>
29640             Bruno Haible  <bruno@clisp.org>
29641
29642         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
29643         use the converted UTF-8 variant of the name instead.
29644
29645 2009-05-03  Jim Meyering  <meyering@redhat.com>
29646
29647         tests: tighten some getdate tests
29648         * tests/test-getdate.c (main): Tighten tests: require equality,
29649         not just greater than.  Set TZ envvar to UTC0.
29650
29651 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29652
29653         getdate: correctly interpret "next monday" when run on a Monday
29654         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
29655         that e.g., "next tues" (when run on a tuesday) results in a date
29656         that is one week in the future, and not today's date.
29657         I.e., add a week when the wday is the same as the current one.
29658         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
29659         and earlier by Martin Bernreuther and Jan Minář.
29660         * tests/test-getdate.c (main): Check that "next DAY" is always in
29661         the future and that "last DAY" is always in the past.
29662
29663 2009-05-02  Jim Meyering  <meyering@redhat.com>
29664
29665         build: ensure that a release build fails when a submodule is unclean
29666         * top/maint.mk (no-submodule-changes): New rule.
29667         (alpha beta major): Depend on it.
29668
29669 2009-05-02  Bruno Haible  <bruno@clisp.org>
29670
29671         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
29672         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
29673         shell variable gl_fnmatch_required to detect which variant is
29674         requested.
29675         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
29676         gl_FUNC_FNMATCH_POSIX.
29677         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
29678         exclude fnmatch-posix.
29679
29680 2009-05-02  Bruno Haible  <bruno@clisp.org>
29681
29682         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
29683         * modules/mbsrtowcs (License): Change to LGPLv2+.
29684         * modules/strnlen1 (License): Likewise.
29685         Reported by Simon Josefsson.
29686
29687 2009-05-02  Bruno Haible  <bruno@clisp.org>
29688
29689         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29690         "cross".
29691         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29692         gnulib-tool was called with option --source-base=lib.
29693
29694 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29695
29696         Use automake *-local hooks without commands, for extensibility.
29697         * modules/localcharset (Makefile.am): Rename install-exec-local
29698         rule to install-exec-localcharset, and make it a prerequisite of
29699         install-exec-local.  Likewise, rename the uninstall-local rule to
29700         uninstall-localcharset, and make it a prerequisite of the former.
29701
29702 2009-05-01  Bruno Haible  <bruno@clisp.org>
29703
29704         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29705         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29706         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29707         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29708         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29709         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29710         m4/locale-zh.m4, m4/codeset.m4.
29711
29712         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29713         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29714         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29715         m4/locale-zh.m4.
29716
29717         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29718         REPLACE_WCRTOMB if mbstate_t must be replaced.
29719         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29720         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29721
29722 2009-05-01  Bruno Haible  <bruno@clisp.org>
29723
29724         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29725         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29726         dngettext, dcngettext, textdomain, bindtextdomain,
29727         bind_textdomain_codeset): Undefine before redefining.
29728
29729 2009-04-30  Bruno Haible  <bruno@clisp.org>
29730
29731         Fix bug introduced on 2009-04-25.
29732         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29733         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29734         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29735         is defined.
29736         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29737         is defined.
29738         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29739         is defined.
29740         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29741
29742 2009-04-28  Bruno Haible  <bruno@clisp.org>
29743
29744         Comment tweaks.
29745         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29746         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29747         * lib/unicase.h (u*_casexfrm): Likewise.
29748         Reported by Paolo Bonzini.
29749
29750 2009-04-28  Bruno Haible  <bruno@clisp.org>
29751
29752         Fix a compilation error.
29753         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29754         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29755         Reported by Jim Meyering.
29756
29757 2009-04-27  Bruno Haible  <bruno@clisp.org>
29758
29759         New module 'libunistring'.
29760         * modules/libunistring: New file.
29761         * m4/libunistring.m4: New file.
29762         * MODULES.html.sh (Unicode string functions): Add it.
29763
29764 2009-04-27  Eric Blake  <ebb9@byu.net>
29765
29766         maint.mk: allow package-specific header to provide <config.h>
29767         * top/maint.mk (sc_require_config_h): New variable.
29768         (sc_require_config_h, sc_require_config_h_first): Use it.
29769
29770 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29771
29772         * top/maint.mk (sc_avoid_if_before_free): Except
29773         useless-if-before-free script.
29774
29775 2009-04-27  Eric Blake  <ebb9@byu.net>
29776
29777         maintainer-makefile: depend on all required helper scripts
29778         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29779         useless-if-before-free.
29780         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29781         version, rather than assuming gnulib checkout is available.
29782         Reported by Simen Josefsson.
29783
29784 2009-04-26  Bruno Haible  <bruno@clisp.org>
29785
29786         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29787         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29788         "../" or "..".
29789
29790 2009-04-26  Bruno Haible  <bruno@clisp.org>
29791
29792         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
29793         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
29794         AC_LIB_HAVE_LINKFLAGS.
29795
29796 2009-04-26  Bruno Haible  <bruno@clisp.org>
29797
29798         Simplify calling convention of u*_conv_from_encoding.
29799         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
29800         u32_conv_from_encoding): Expect a resultbuf argument and return the
29801         result directly as a pointer.
29802         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
29803         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
29804         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
29805         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
29806         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
29807         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29808         Update.
29809         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
29810         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
29811         * lib/vasnprintf.c (VASNPRINTF): Update.
29812         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
29813         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
29814         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
29815         * NEWS: Mention the change.
29816
29817 2009-04-26  Bruno Haible  <bruno@clisp.org>
29818
29819         Simplify calling convention of u*_conv_to_encoding.
29820         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29821         u32_conv_to_encoding): Expect a resultbuf argument and return the
29822         result directly as a pointer.
29823         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29824         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
29825         freeing scaled_offsets if mem_iconveha failed.
29826         * lib/unicase/u-casexfrm.h (FUNC): Update.
29827         * lib/uninorm/u-normxfrm.h (FUNC): Update.
29828         * lib/vasnprintf.c (VASNPRINTF): Update.
29829         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
29830         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
29831         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
29832         * NEWS: Mention the change.
29833
29834 2009-04-26  Bruno Haible  <bruno@clisp.org>
29835
29836         Avoid test failures on AIX and OSF/1.
29837         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
29838         malloc(0).
29839         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29840         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29841         Likewise.
29842         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
29843         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
29844         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
29845         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
29846         * doc/posix-functions/malloc.texi: Document the portability problem
29847         related to malloc(0).
29848
29849 2009-04-26  Bruno Haible  <bruno@clisp.org>
29850
29851         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
29852         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
29853         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
29854
29855 2009-04-25  Bruno Haible  <bruno@clisp.org>
29856
29857         Avoid link error when creating a namespace clean library.
29858         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
29859         as macro with arguments if already defined as an alias.
29860         * lib/signbitf.c (gl_signbitf): Don't undefine.
29861         * lib/signbitd.c (gl_signbitd): Don't undefine.
29862         * lib/signbitl.c (gl_signbitl): Don't undefine.
29863
29864 2009-04-25  Jim Meyering  <meyering@redhat.com>
29865
29866         vc-list-files: fix another quoting bug
29867         * build-aux/vc-list-files: Avoid sed backslash expansion
29868         of pathological directory names.
29869
29870 2009-04-25  Eric Blake  <ebb9@byu.net>
29871
29872         vc-list-files: fix shell quoting error
29873         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
29874         timestamp.
29875
29876 2009-04-25  Jim Meyering  <meyering@redhat.com>
29877
29878         vc-list-files: restore lost functionality with subdir argument
29879         * build-aux/vc-list-files: When given a non-"." sub-directory
29880         argument, substitute the $dir/ prefix back onto each resulting name.
29881         Otherwise, coreutils' root_tests check would fail.
29882
29883 2009-04-24  Eric Blake  <ebb9@byu.net>
29884
29885         vc-list-files: ignore git symlinks
29886         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
29887         than ls-files, to ignore git symlinks.
29888
29889         maint.mk: import improvements from m4
29890         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
29891         (move_if_change): Delete unused macro.
29892         (news-date-check, vc-diff-check): Support VPATH builds.
29893         (announcement): Likewise.  Split --bootstrap-tools list...
29894         (boostrap-tools): ...into separate list, which can be overridden
29895         in cfg.mk.
29896         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
29897         requiring dependency on useless-if-before-free module.
29898         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
29899         Support VPATH builds.
29900
29901 2009-04-24  Jim Meyering  <meyering@redhat.com>
29902
29903         maint.mk: remove coreutils-specific rules and variables
29904         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
29905         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
29906         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
29907
29908         maint.mk: remove obsolete rule
29909         * top/maint.mk (rel-check): Remove rule.
29910         (WGET, WGETFLAGS): Remove now-unused variables.
29911
29912 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29913
29914         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
29915         consistency.
29916
29917         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
29918         '$(PATH_SEPARATOR)' instead of ':'.
29919
29920 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29921
29922         * lib/getopt1.c (main): Use 'const' for static array.
29923
29924 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29925
29926         * top/maint.mk: Sync with coreutils.
29927         * NEWS: Explain incompatibilities.
29928
29929 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29930             Bruno Haible  <bruno@clisp.org>
29931
29932         Fix cross-compilation results.
29933         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
29934         statement, as third argument of AC_TRY_RUN.
29935         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29936         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29937         Likewise.
29938         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29939         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
29940         Likewise.
29941         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29942         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
29943         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
29944
29945 2009-04-20  Bruno Haible  <bruno@clisp.org>
29946
29947         Avoid test failure on mingw.
29948         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
29949
29950 2009-04-20  Bruno Haible  <bruno@clisp.org>
29951
29952         Avoid compilation error on mingw.
29953         * modules/localename-tests (Depends-on): Add locale.
29954
29955 2009-04-19  Bruno Haible  <bruno@clisp.org>
29956
29957         Support for building a shared library on Windows platforms.
29958         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
29959         (main): Test the presence of UNINORM_NFC here.
29960         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
29961         (main): Test the presence of UNINORM_NFD here.
29962         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
29963         (main): Test the presence of UNINORM_NFKC here.
29964         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
29965         (main): Test the presence of UNINORM_NFKD here.
29966
29967 2009-04-19  Bruno Haible  <bruno@clisp.org>
29968
29969         Avoid a compiler warning.
29970         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
29971         Change type of variable 'sequence'.
29972
29973 2009-04-19  Bruno Haible  <bruno@clisp.org>
29974
29975         * modules/configmake (Makefile.am): When the contents of configmake.h
29976         does not change, arrange to preserve its modification time.
29977
29978 2009-04-17  Simon Josefsson  <simon@josefsson.org>
29979
29980         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
29981         gettext domain.
29982
29983 2009-04-16  Jim Meyering  <meyering@redhat.com>
29984
29985         useless-if-before-free: improve conversion code
29986         * build-aux/useless-if-before-free: Adjust code-in-comment to match
29987         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
29988
29989 2009-04-14  Bruno Haible  <bruno@clisp.org>
29990
29991         * modules/fcntl (Depends-on): Add extensions.
29992         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
29993
29994 2009-04-12  Ben Pfaff  <blp@gnu.org>
29995
29996         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
29997         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
29998
29999 2009-03-20  Ben Pfaff  <blp@gnu.org>
30000
30001         Make rename replace existing destinations on Windows.
30002         * m4/rename.m4: Add test for Mingw.
30003         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30004         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30005         * doc/posix-functions/rename.texi: Document.
30006
30007 2009-04-10  Bruno Haible  <bruno@clisp.org>
30008
30009         New include file "iconveh.h".
30010         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30011         * lib/striconveh.h: Include it.
30012         (enum iconv_ilseq_handler): Remove definition.
30013         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30014         striconveh.h.
30015         * lib/striconveha.c: Include striconveh.h.
30016         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30017         * modules/striconveh (Files): Add lib/iconveh.h.
30018         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30019         lib/striconveh.h.
30020
30021 2009-04-10  Bruno Haible  <bruno@clisp.org>
30022
30023         * lib/uniconv.h: Update comment.
30024
30025 2009-04-10  Bruno Haible  <bruno@clisp.org>
30026
30027         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30028         always.
30029         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30030         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30031         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30032         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30033         "unistring-notinline.h", so that the function gets defined always.
30034         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30035         * lib/unistr/u8-uctomb.c: Likewise.
30036         * lib/unistr/u16-mbtouc.c: Likewise.
30037         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30038         * lib/unistr/u16-uctomb.c: Likewise.
30039         * lib/unistr/u32-mbtouc.c: Likewise.
30040         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30041         * lib/unistr/u32-uctomb.c: Likewise.
30042
30043 2009-04-10  Bruno Haible  <bruno@clisp.org>
30044
30045         Mark 'utime' obsolete.
30046         * modules/utime (Status, Notice): New sections.
30047         Suggested by Jim Meyering.
30048
30049         Fix cross-compile guess for utime test.
30050         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30051         autoconf.
30052         * doc/posix-functions/utime.texi: Give more precisions.
30053         Reported by Jan <ipif@ymail.com>.
30054
30055 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30056
30057         filevercmp: correct today's change
30058         * lib/filevercmp.c: Also handle coreutils' test inputs.
30059         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30060
30061         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30062         for reporting it.
30063         * lib/filevercmp.c: Special handle for "", "." and "..".
30064         * tests/test-filevercmp.c: Enlarge the set suite.
30065
30066 2009-04-07  Jim Meyering  <meyering@redhat.com>
30067
30068         useless-if-before-free: show how to remove braced useless free, too
30069         * build-aux/useless-if-before-free: still only in a comment, though.
30070
30071 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30072
30073         maint.mk: import changes to syntax-check macros from coreutils
30074         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30075         Use them in the relevant macros.
30076
30077 2009-04-06  Bruno Haible  <bruno@clisp.org>
30078
30079         Fix unportable use of bit-fields.
30080         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30081         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30082         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30083
30084 2009-04-06  Bruno Haible  <bruno@clisp.org>
30085
30086         Avoid test failures on AIX and OSF/1.
30087         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30088         that malloc(0) = NULL.
30089         * tests/unicase/test-u8-tolower.c (check): Likewise.
30090         * tests/unicase/test-u8-totitle.c (check): Likewise.
30091         * tests/unicase/test-u8-toupper.c (check): Likewise.
30092         * tests/unicase/test-u16-casefold.c (check): Likewise.
30093         * tests/unicase/test-u16-tolower.c (check): Likewise.
30094         * tests/unicase/test-u16-totitle.c (check): Likewise.
30095         * tests/unicase/test-u16-toupper.c (check): Likewise.
30096         * tests/unicase/test-u32-casefold.c (check): Likewise.
30097         * tests/unicase/test-u32-tolower.c (check): Likewise.
30098         * tests/unicase/test-u32-totitle.c (check): Likewise.
30099         * tests/unicase/test-u32-toupper.c (check): Likewise.
30100         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30101         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30102         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30103         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30104         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30105         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30106         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30107         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30108         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30109         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30110         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30111         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30112
30113 2009-04-05  Bruno Haible  <bruno@clisp.org>
30114
30115         Work around an autoconf limitation.
30116         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30117         comment line if it would be longer than 3 KB.
30118
30119 2009-04-05  Bruno Haible  <bruno@clisp.org>
30120
30121         Avoid test failure with libiconv-1.13.
30122         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30123         of the expected test results.
30124
30125 2009-04-05  Bruno Haible  <bruno@clisp.org>
30126
30127         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30128         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30129         that it should be installed.
30130
30131 2009-04-05  Bruno Haible  <bruno@clisp.org>
30132
30133         * gnulib-tool: New option --copy-file.
30134         (func_usage): Document it.
30135         (func_dest_tmpfilename): Moved out of func_import.
30136         (func_add_file, func_update_file): New functions, extracted from
30137         func_import.
30138         (func_import): Update.
30139
30140 2009-04-05  Karl Berry  <karl@gnu.org>
30141
30142         * README: prominently mention gnulib-tool.
30143         Rearrange sections so getting the code is near the top.
30144
30145 2009-04-05  Bruno Haible  <bruno@clisp.org>
30146
30147         * lib/unicase.h: Mention u*_cmp2.
30148         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30149         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30150         * lib/unicase/ulc-casecmp.c: Likewise.
30151         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30152         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30153         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30154         unistr/u8-cmp.
30155         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30156         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30157         unistr/u16-cmp.
30158         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30159         unistr/u32-cmp.
30160
30161         * lib/uninorm.h: Mention u*_cmp2.
30162         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30163         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30164         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30165         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30166         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30167         unistr/u8-cmp.
30168         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30169         unistr/u16-cmp.
30170         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30171         unistr/u32-cmp.
30172
30173         New module 'unistr/u32-cmp2'.
30174         * lib/unistr/u32-cmp2.c: New file.
30175         * modules/unistr/u32-cmp2: New file.
30176
30177         New module 'unistr/u16-cmp2'.
30178         * lib/unistr/u16-cmp2.c: New file.
30179         * modules/unistr/u16-cmp2: New file.
30180
30181         New module 'unistr/u8-cmp2'.
30182         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30183         * lib/unistr/u8-cmp2.c: New file.
30184         * lib/unistr/u-cmp2.h: New file.
30185         * modules/unistr/u8-cmp2: New file.
30186
30187 2009-04-05  Bruno Haible  <bruno@clisp.org>
30188
30189         * lib/unictype.h (uc_property_is_valid): New macro.
30190         * tests/unictype/test-pr_byname.c (main): Use it.
30191
30192         * lib/unistr.h: Doc fixes.
30193         * lib/uniconv.h: Doc fixes.
30194         * lib/unictype.h: Doc fixes.
30195
30196 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30197
30198         Port coreutils 7.2 to Solaris 8.
30199
30200         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30201         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30202         for Solaris 8.  This is a bit of a hack, as it means it's the
30203         caller's responsibility to add -lnsl if needed, but most likely it
30204         won't be needed since only getaddrinfo uses this and getaddrinfo
30205         isn't needed on Solaris 8.
30206
30207         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30208         problem to Solaris 8 encountered with coreutils 7.2, which
30209         resulted in a message "fnmatch.c:292: warning: passing argument 4
30210         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30211         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30212
30213 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30214
30215         * m4/ld-version-script.m4: Add FIXME comment.
30216
30217 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30218
30219         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30220         SOVERSION variable.
30221
30222 2009-04-02  Bruno Haible  <bruno@clisp.org>
30223
30224         * Makefile (info, html, dvi, pdf): Combine the rules.
30225         Suggested by Jim Meyering.
30226
30227 2009-04-01  Bruno Haible  <bruno@clisp.org>
30228
30229         * Makefile (info, html, dvi, pdf): New targets.
30230         Reported by Reuben Thomas <rrt@sc3d.org>.
30231
30232 2009-04-01  Bruno Haible  <bruno@clisp.org>
30233
30234         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30235         can be put into PATH.
30236         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30237
30238 2009-04-01  Bruno Haible  <bruno@clisp.org>
30239
30240         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30241
30242 2009-04-01  Bruno Haible  <bruno@clisp.org>
30243
30244         Rename module 'visibility'.
30245         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30246         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30247         * doc/gnulib.texi: Update.
30248         * MODULES.html.sh (Misc): Update.
30249         * NEWS: Mention the change.
30250
30251 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30252
30253         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30254         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30255         Eric Blake <ebb9@byu.net> for review.
30256         * MODULES.html.sh: Add lib-msvc-compat.
30257         * doc/gnulib.texi: Link to new section.
30258         * m4/ld-output-def.m4: New file.
30259         * doc/ld-output-def.texi: New file.
30260
30261 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30262
30263         Rename ld-version-script to lib-symbol-versions.  Suggested by
30264         Bruno Haible <bruno@clisp.org>.
30265         * modules/ld-version-script: Renamed to lib-symbol-versions.
30266         * doc/ld-version-script.texi: Fix module name.
30267         * MODULES.html.sh: Add lib-symbol-versions.
30268
30269 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30270
30271         * modules/u64-tests: New file.
30272         * tests/test-u64.c: New file.
30273
30274 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30275
30276         * MODULES.html.sh: Mention u64.
30277         * modules/u64: New module.
30278         * modules/crypto/sha512: Depend on u64 module instead of providing
30279         u64.h.
30280
30281 2009-03-27  Eric Blake  <ebb9@byu.net>
30282
30283         test-strerror: make debugging EAI_SYSTEM easier
30284         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30285         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30286         failure was EAI_SYSTEM.
30287
30288 2009-03-25  Bruno Haible  <bruno@clisp.org>
30289
30290         Fix a problem with --enable-relocatable on Solaris 7.
30291         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30292         since 2008-02-24.
30293
30294 2009-03-25  Eric Blake  <ebb9@byu.net>
30295
30296         test-sockets: avoid gcc warning
30297         * tests/test-sockets.c (main): Silence compiler warning.
30298
30299 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30300
30301         New modules nproc, pthread, contributed by Glen Lenker.
30302
30303         * MODULES.html.sh: Add pthread, nproc.
30304         * lib/nproc.c: New file.
30305         * lib/nproc.h: New file.
30306         * lib/pthread.in.h: New file.
30307         * m4/pthread.m4: New file.
30308         * modules/nproc: New file.
30309         * modules/pthread: New file.
30310
30311 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30312
30313         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30314         New variable.
30315
30316 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30317
30318         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30319         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30320         * tests/test-filevercmp.c: Add tests for backup suffixes.
30321
30322 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30323
30324         * modules/stdlib (Depends-on): Add stdint, needed when defining
30325         struct random_data on, for example, HP-UX 10.20.  Reported by
30326         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30327
30328 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30329
30330         * lib/readline.c (readline): Call fflush on stdout after printing
30331         prompt.
30332
30333 2009-03-20  Bruno Haible  <bruno@clisp.org>
30334
30335         Remove dependency from 'close' module to -lws2_32 on native Windows.
30336         * lib/close-hook.h: New file.
30337         * lib/close-hook.c: New file.
30338         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30339         w32sock.h.
30340         (_gl_close_fd_maybe_socket): Remove function.
30341         (rpl_close): Invoke execute_all_close_hooks instead of
30342         _gl_close_fd_maybe_socket.
30343         * lib/sockets.c: Include close-hook.h, w32sock.h.
30344         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30345         (close_sockets_hook): New variable.
30346         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30347         (gl_sockets_cleanup): Unregister it.
30348         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30349         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30350         * modules/close-hook: New file.
30351         * modules/close (Files): Remove lib/w32sock.h.
30352         (Depends-on): Add close-hook.
30353         (Link): Remove section.
30354         * modules/sockets (Files): Add lib/w32sock.h.
30355         (Depends-on): Add close-hook.
30356         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30357         invocation.
30358         * NEWS: Mention that LIB_CLOSE is gone.
30359
30360 2009-03-23  Eric Blake  <ebb9@byu.net>
30361
30362         signal-tests: test previous patch
30363         * tests/test-signal.c: New file.
30364         * modules/signal-tests: Likewise.
30365
30366         signal.h: always support 'volatile sig_atomic_t'
30367         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30368         (gl_SIGNAL_H_DEFAULTS): Add a default.
30369         * modules/signal (Makefile.am): Substitute if needed.
30370         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30371         users can blindly add volatile.
30372         * doc/posix-headers/signal.texi (signal.h): Document it.
30373         Reported by Matthew Woehlke.
30374
30375 2009-03-23  Jim Meyering  <meyering@redhat.com>
30376
30377         pathmax: PATH_MAX: use pathconf only when available
30378         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30379         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30380         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30381         This avoids a link failure in a PSP cross-compilation environment
30382         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30383
30384         * lib/vasnprintf.c (divide): Fix typo in comment.
30385
30386 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30387
30388         * gnulib-tool (func_filter_filelist): Fix comment.
30389
30390 2009-03-20  Bruno Haible  <bruno@clisp.org>
30391
30392         Make sockets.h self-contained.
30393         * lib/sockets.c: Include sockets.h first.
30394         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30395
30396 2009-03-19  Eric Blake  <ebb9@byu.net>
30397
30398         doc: mention more functions added in cygwin 1.7.0
30399         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30400         addition.
30401         * doc/posix-functions/log2f.texi: Likewise.
30402
30403 2009-03-19  Jim Meyering  <meyering@redhat.com>
30404
30405         fsusage: avoid syntax error due to statement-before-declaration
30406         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30407         after all declarations.  Reported by Matthew Woehlke in
30408         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30409
30410 2009-03-18  Eric Blake  <ebb9@byu.net>
30411
30412         build-aux/compile: sync from automake
30413         * build-aux/compile: New file, from automake.
30414         * config/srclist.txt: Mention build-aux/compile.
30415
30416 2009-03-17  Bruno Haible  <bruno@clisp.org>
30417
30418         * lib/git-merge-changelog.c: Fix typo in comment.
30419         Reported by Reuben Thomas <rrt@sc3d.org>.
30420
30421 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30422
30423         * m4/regex.m4: update and improve help for
30424         --without-included-regex.
30425
30426 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30427
30428         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30429         failure on missing include files.
30430
30431 2009-03-17  Eric Blake  <ebb9@byu.net>
30432
30433         doc: mention more functions added in cygwin 1.7.0
30434         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30435         addition.
30436         * doc/posix-functions/fwscanf.texi: Likewise.
30437         * doc/posix-functions/swprintf.texi: Likewise.
30438         * doc/posix-functions/swscanf.texi: Likewise.
30439         * doc/posix-functions/vfwprintf.texi: Likewise.
30440         * doc/posix-functions/vfwscanf.texi: Likewise.
30441         * doc/posix-functions/vswprintf.texi: Likewise.
30442         * doc/posix-functions/vswscanf.texi: Likewise.
30443         * doc/posix-functions/vwprintf.texi: Likewise.
30444         * doc/posix-functions/vwscanf.texi: Likewise.
30445         * doc/posix-functions/wcscasecmp.texi: Likewise.
30446         * doc/posix-functions/wcsdup.texi: Likewise.
30447         * doc/posix-functions/wcsftime.texi: Likewise.
30448         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30449         * doc/posix-functions/wprintf.texi: Likewise.
30450         * doc/posix-functions/wscanf.texi: Likewise.
30451         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30452
30453 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30454
30455         maint.mk: really add $(AM_MAKEFLAGS)
30456         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30457         was inadvertently omitted in the last commit.
30458         Spotted by Bruno Haible.
30459
30460         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30461         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30462         $(AM_MAKEFLAGS)' rather than plain `make'.
30463
30464         gnulib-tool: execute $MAKE not make
30465         * gnulib-tool: Default $MAKE to 'make'.
30466         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30467         than make.  Initialize $MAKE in the do-autobuild script.
30468
30469         gnulib-tool: use $MAKE not make in generated files
30470         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30471         make, in generated files.  Initialize $MAKE in the do-autobuild
30472         script.
30473
30474         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30475
30476         GNUmakefile: disable parallelism only for multiple, recursive targets
30477         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30478         additions in the Makefile.
30479         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30480         by Automake.
30481         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30482         are listed on the command line and at least one of them is
30483         listed in $(ALL_RECURSIVE_TARGETS).
30484
30485 2009-03-14  Bruno Haible  <bruno@clisp.org>
30486
30487         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30488         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30489         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30490         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30491         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30492         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30493         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30494         unistr/u8-uctomb.
30495         * modules/unistr/u8-strchr (Depends-on): Likewise.
30496         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30497         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30498         unistr/u16-uctomb.
30499         * modules/unistr/u16-strchr (Depends-on): Likewise.
30500         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30501
30502 2009-03-12  Bruno Haible  <bruno@clisp.org>
30503
30504         Work around select() bug on Interix 3.5.
30505         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30506         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30507         * m4/select.m4: New file.
30508         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30509         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30510         * modules/select (Files): Add m4/select.m4.
30511         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30512         * modules/nanosleep (Depends-on): Add select.
30513         * modules/poll (Depends-on): Likewise.
30514         * doc/posix-functions/select.texi: Mention the Interix bug.
30515         Reported by Markus Duft <mduft@gentoo.org>.
30516
30517         * lib/select.c: Renamed from lib/winsock-select.c.
30518         * modules/select (Files): Add lib/select.c, remove
30519         lib/winsock-select.c.
30520         (configure.ac): Update.
30521
30522 2009-03-12  Jim Meyering  <meyering@redhat.com>
30523
30524         avoid gcc warnings about unused macro definitions
30525         * lib/readtokens.c (STREQ): Remove unused definition.
30526         * lib/xmalloc.c (SIZE_MAX): Likewise.
30527         * lib/openat-die.c (N_): Likewise.
30528         * lib/mountlist.c (SIZE_MAX): Remove definition.
30529         Instead, include <stdint.h>.
30530         * lib/readutmp.c: Likewise.
30531         * modules/readutmp (Depends-on): Add stdint.
30532         * modules/mountlist (Depends-on): Add stdint.
30533         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
30534
30535 2009-03-10  Bruno Haible  <bruno@clisp.org>
30536
30537         Tests for module 'mbmemcasecoll'.
30538         * modules/mbmemcasecoll-tests: New file.
30539         * tests/test-mbmemcasecoll1.sh: New file.
30540         * tests/test-mbmemcasecoll2.sh: New file.
30541         * tests/test-mbmemcasecoll3.sh: New file.
30542         * tests/test-mbmemcasecoll.c: New file.
30543
30544         New module 'mbmemcasecoll'.
30545         * lib/mbmemcasecoll.h: New file.
30546         * lib/mbmemcasecoll.c: New file.
30547         * modules/mbmemcasecoll: New file.
30548
30549         * tests/test-mbmemcasecmp.h: New file, extracted from
30550         tests/test-mbmemcasecmp.c.
30551         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
30552         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
30553         (main): Update.
30554         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
30555
30556 2009-03-09  Bruno Haible  <bruno@clisp.org>
30557
30558         Tests for module 'mbmemcasecmp'.
30559         * modules/mbmemcasecmp-tests: New file.
30560         * tests/test-mbmemcasecmp1.sh: New file.
30561         * tests/test-mbmemcasecmp2.sh: New file.
30562         * tests/test-mbmemcasecmp3.sh: New file.
30563         * tests/test-mbmemcasecmp.c: New file.
30564
30565         New module 'mbmemcasecmp'.
30566         * lib/mbmemcasecmp.h: New file.
30567         * lib/mbmemcasecmp.c: New file.
30568         * modules/mbmemcasecmp: New file.
30569
30570 2009-03-09  Bruno Haible  <bruno@clisp.org>
30571
30572         Tests for module 'unicase/ulc-casecoll'.
30573         * modules/unicase/ulc-casecoll-tests: New file.
30574         * tests/unicase/test-ulc-casecoll1.sh: New file.
30575         * tests/unicase/test-ulc-casecoll2.sh: New file.
30576         * tests/unicase/test-ulc-casecoll.c: New file.
30577
30578         New module 'unicase/ulc-casecoll'.
30579         * lib/unicase.h (ulc_casecoll): New declaration.
30580         * lib/unicase/ulc-casecoll.c: New file.
30581         * modules/unicase/ulc-casecoll: New file.
30582
30583         New module 'unicase/ulc-casexfrm'.
30584         * lib/unicase.h (ulc_casexfrm): New declaration.
30585         * lib/unicase/ulc-casexfrm.c: New file.
30586         * modules/unicase/ulc-casexfrm: New file.
30587
30588 2009-03-09  Bruno Haible  <bruno@clisp.org>
30589
30590         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
30591         invocations.
30592
30593         * m4/mbscasecmp.m4: Remove file.
30594         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
30595         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
30596
30597         * m4/mbscasestr.m4: Remove file.
30598         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
30599         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
30600
30601         * m4/mbschr.m4: Remove file.
30602         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
30603         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
30604
30605         * m4/mbscspn.m4: Remove file.
30606         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
30607         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
30608
30609         * m4/mbslen.m4: Remove file.
30610         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
30611         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
30612
30613         * m4/mbsncasecmp.m4: Remove file.
30614         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
30615         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
30616
30617         * m4/mbsnlen.m4: Remove file.
30618         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
30619         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
30620
30621         * m4/mbspbrk.m4: Remove file.
30622         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
30623         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
30624
30625         * m4/mbspcasecmp.m4: Remove file.
30626         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
30627         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
30628
30629         * m4/mbsrchr.m4: Remove file.
30630         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
30631         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
30632
30633         * m4/mbssep.m4: Remove file.
30634         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
30635         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
30636
30637         * m4/mbsspn.m4: Remove file.
30638         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
30639         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
30640
30641         * m4/mbsstr.m4: Remove file.
30642         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
30643         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
30644
30645         * m4/mbstok_r.m4: Remove file.
30646         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
30647         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
30648
30649         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
30650
30651         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
30652         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
30653
30654         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
30655
30656 2009-03-08  Bruno Haible  <bruno@clisp.org>
30657
30658         Tests for module 'unicase/ulc-casecmp'.
30659         * modules/unicase/ulc-casecmp-tests: New file.
30660         * tests/unicase/test-ulc-casecmp1.sh: New file.
30661         * tests/unicase/test-ulc-casecmp2.sh: New file.
30662         * tests/unicase/test-ulc-casecmp.c: New file.
30663
30664         New module 'unicase/ulc-casecmp'.
30665         * lib/unicase.h (ulc_casecmp): New declaration.
30666         * lib/unicase/ulc-casecmp.c: New file.
30667         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
30668         'const SRC_UNIT *'.
30669         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
30670         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
30671         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
30672         * modules/unicase/ulc-casecmp: New file.
30673
30674         Tests for module 'unicase/u32-is-cased'.
30675         * modules/unicase/u32-is-cased-tests: New file.
30676         * tests/unicase/test-u32-is-cased.c: New file.
30677
30678         Tests for module 'unicase/u16-is-cased'.
30679         * modules/unicase/u16-is-cased-tests: New file.
30680         * tests/unicase/test-u16-is-cased.c: New file.
30681
30682         Tests for module 'unicase/u8-is-cased'.
30683         * modules/unicase/u8-is-cased-tests: New file.
30684         * tests/unicase/test-u8-is-cased.c: New file.
30685         * tests/unicase/test-is-cased.h: New file.
30686
30687         New module 'unicase/u32-is-cased'.
30688         * lib/unicase/u32-is-cased.c: New file.
30689         * modules/unicase/u32-is-cased: New file.
30690
30691         New module 'unicase/u16-is-cased'.
30692         * lib/unicase/u16-is-cased.c: New file.
30693         * modules/unicase/u16-is-cased: New file.
30694
30695         New module 'unicase/u8-is-cased'.
30696         * lib/unicase/u8-is-cased.c: New file.
30697         * lib/unicase/u-is-cased.h: New file.
30698         * modules/unicase/u8-is-cased: New file.
30699
30700         Tests for module 'unicase/u32-is-casefolded'.
30701         * modules/unicase/u32-is-casefolded-tests: New file.
30702         * tests/unicase/test-u32-is-casefolded.c: New file.
30703
30704         Tests for module 'unicase/u16-is-casefolded'.
30705         * modules/unicase/u16-is-casefolded-tests: New file.
30706         * tests/unicase/test-u16-is-casefolded.c: New file.
30707
30708         Tests for module 'unicase/u8-is-casefolded'.
30709         * modules/unicase/u8-is-casefolded-tests: New file.
30710         * tests/unicase/test-u8-is-casefolded.c: New file.
30711         * tests/unicase/test-is-casefolded.h: New file.
30712
30713         New module 'unicase/u32-is-casefolded'.
30714         * lib/unicase/u32-is-casefolded.c: New file.
30715         * modules/unicase/u32-is-casefolded: New file.
30716
30717         New module 'unicase/u16-is-casefolded'.
30718         * lib/unicase/u16-is-casefolded.c: New file.
30719         * modules/unicase/u16-is-casefolded: New file.
30720
30721         New module 'unicase/u8-is-casefolded'.
30722         * lib/unicase/u8-is-casefolded.c: New file.
30723         * modules/unicase/u8-is-casefolded: New file.
30724
30725         Tests for module 'unicase/u32-is-titlecase'.
30726         * modules/unicase/u32-is-titlecase-tests: New file.
30727         * tests/unicase/test-u32-is-titlecase.c: New file.
30728
30729         Tests for module 'unicase/u16-is-titlecase'.
30730         * modules/unicase/u16-is-titlecase-tests: New file.
30731         * tests/unicase/test-u16-is-titlecase.c: New file.
30732
30733         Tests for module 'unicase/u8-is-titlecase'.
30734         * modules/unicase/u8-is-titlecase-tests: New file.
30735         * tests/unicase/test-u8-is-titlecase.c: New file.
30736         * tests/unicase/test-is-titlecase.h: New file.
30737
30738         New module 'unicase/u32-is-titlecase'.
30739         * lib/unicase/u32-is-titlecase.c: New file.
30740         * modules/unicase/u32-is-titlecase: New file.
30741
30742         New module 'unicase/u16-is-titlecase'.
30743         * lib/unicase/u16-is-titlecase.c: New file.
30744         * modules/unicase/u16-is-titlecase: New file.
30745
30746         New module 'unicase/u8-is-titlecase'.
30747         * lib/unicase/u8-is-titlecase.c: New file.
30748         * modules/unicase/u8-is-titlecase: New file.
30749
30750         Tests for module 'unicase/u32-is-lowercase'.
30751         * modules/unicase/u32-is-lowercase-tests: New file.
30752         * tests/unicase/test-u32-is-lowercase.c: New file.
30753
30754         Tests for module 'unicase/u16-is-lowercase'.
30755         * modules/unicase/u16-is-lowercase-tests: New file.
30756         * tests/unicase/test-u16-is-lowercase.c: New file.
30757
30758         Tests for module 'unicase/u8-is-lowercase'.
30759         * modules/unicase/u8-is-lowercase-tests: New file.
30760         * tests/unicase/test-u8-is-lowercase.c: New file.
30761         * tests/unicase/test-is-lowercase.h: New file.
30762
30763         New module 'unicase/u32-is-lowercase'.
30764         * lib/unicase/u32-is-lowercase.c: New file.
30765         * modules/unicase/u32-is-lowercase: New file.
30766
30767         New module 'unicase/u16-is-lowercase'.
30768         * lib/unicase/u16-is-lowercase.c: New file.
30769         * modules/unicase/u16-is-lowercase: New file.
30770
30771         New module 'unicase/u8-is-lowercase'.
30772         * lib/unicase/u8-is-lowercase.c: New file.
30773         * modules/unicase/u8-is-lowercase: New file.
30774
30775         Tests for module 'unicase/u32-is-uppercase'.
30776         * modules/unicase/u32-is-uppercase-tests: New file.
30777         * tests/unicase/test-u32-is-uppercase.c: New file.
30778
30779         Tests for module 'unicase/u16-is-uppercase'.
30780         * modules/unicase/u16-is-uppercase-tests: New file.
30781         * tests/unicase/test-u16-is-uppercase.c: New file.
30782
30783         Tests for module 'unicase/u8-is-uppercase'.
30784         * modules/unicase/u8-is-uppercase-tests: New file.
30785         * tests/unicase/test-u8-is-uppercase.c: New file.
30786         * tests/unicase/test-is-uppercase.h: New file.
30787
30788         New module 'unicase/u32-is-uppercase'.
30789         * lib/unicase/u32-is-uppercase.c: New file.
30790         * modules/unicase/u32-is-uppercase: New file.
30791
30792         New module 'unicase/u16-is-uppercase'.
30793         * lib/unicase/u16-is-uppercase.c: New file.
30794         * modules/unicase/u16-is-uppercase: New file.
30795
30796         New module 'unicase/u8-is-uppercase'.
30797         * lib/unicase/u8-is-uppercase.c: New file.
30798         * modules/unicase/u8-is-uppercase: New file.
30799
30800         New module 'unicase/u32-is-invariant'.
30801         * lib/unicase/u32-is-invariant.c: New file.
30802         * modules/unicase/u32-is-invariant: New file.
30803
30804         New module 'unicase/u16-is-invariant'.
30805         * lib/unicase/u16-is-invariant.c: New file.
30806         * modules/unicase/u16-is-invariant: New file.
30807
30808         New module 'unicase/u8-is-invariant'.
30809         * lib/unicase/u8-is-invariant.c: New file.
30810         * lib/unicase/invariant.h: New file.
30811         * lib/unicase/u-is-invariant.h: New file.
30812         * modules/unicase/u8-is-invariant: New file.
30813
30814         Tests for module 'unicase/u32-casecoll'.
30815         * modules/unicase/u32-casecoll-tests: New file.
30816         * tests/unicase/test-u32-casecoll.c: New file.
30817
30818         Tests for module 'unicase/u16-casecoll'.
30819         * modules/unicase/u16-casecoll-tests: New file.
30820         * tests/unicase/test-u16-casecoll.c: New file.
30821
30822         Tests for module 'unicase/u8-casecoll'.
30823         * modules/unicase/u8-casecoll-tests: New file.
30824         * tests/unicase/test-u8-casecoll.c: New file.
30825
30826         New module 'unicase/u32-casecoll'.
30827         * lib/unicase/u32-casecoll.c: New file.
30828         * modules/unicase/u32-casecoll: New file.
30829
30830         New module 'unicase/u16-casecoll'.
30831         * lib/unicase/u16-casecoll.c: New file.
30832         * modules/unicase/u16-casecoll: New file.
30833
30834         New module 'unicase/u8-casecoll'.
30835         * lib/unicase/u8-casecoll.c: New file.
30836         * lib/unicase/u-casecoll.h: New file.
30837         * modules/unicase/u8-casecoll: New file.
30838
30839         New module 'unicase/u32-casexfrm'.
30840         * lib/unicase/u32-casexfrm.c: New file.
30841         * modules/unicase/u32-casexfrm: New file.
30842
30843         New module 'unicase/u16-casexfrm'.
30844         * lib/unicase/u16-casexfrm.c: New file.
30845         * modules/unicase/u16-casexfrm: New file.
30846
30847         New module 'unicase/u8-casexfrm'.
30848         * lib/unicase/u8-casexfrm.c: New file.
30849         * lib/unicase/u-casexfrm.h: New file.
30850         * modules/unicase/u8-casexfrm: New file.
30851
30852         Tests for module 'unicase/u32-casecmp'.
30853         * modules/unicase/u32-casecmp-tests: New file.
30854         * tests/unicase/test-u32-casecmp.c: New file.
30855
30856         Tests for module 'unicase/u16-casecmp'.
30857         * modules/unicase/u16-casecmp-tests: New file.
30858         * tests/unicase/test-u16-casecmp.c: New file.
30859
30860         Tests for module 'unicase/u8-casecmp'.
30861         * modules/unicase/u8-casecmp-tests: New file.
30862         * tests/unicase/test-u8-casecmp.c: New file.
30863         * tests/unicase/test-casecmp.h: New file.
30864
30865         New module 'unicase/u32-casecmp'.
30866         * lib/unicase/u32-casecmp.c: New file.
30867         * modules/unicase/u32-casecmp: New file.
30868
30869         New module 'unicase/u16-casecmp'.
30870         * lib/unicase/u16-casecmp.c: New file.
30871         * modules/unicase/u16-casecmp: New file.
30872
30873         New module 'unicase/u8-casecmp'.
30874         * lib/unicase/u8-casecmp.c: New file.
30875         * lib/unicase/u-casecmp.h: New file.
30876         * modules/unicase/u8-casecmp: New file.
30877
30878         Tests for module 'unicase/u32-casefold'.
30879         * modules/unicase/u32-casefold-tests: New file.
30880         * tests/unicase/test-u32-casefold.c: New file.
30881
30882         Tests for module 'unicase/u16-casefold'.
30883         * modules/unicase/u16-casefold-tests: New file.
30884         * tests/unicase/test-u16-casefold.c: New file.
30885
30886         Tests for module 'unicase/u8-casefold'.
30887         * modules/unicase/u8-casefold-tests: New file.
30888         * tests/unicase/test-u8-casefold.c: New file.
30889
30890         New module 'unicase/u32-casefold'.
30891         * lib/unicase/u32-casefold.c: New file.
30892         * modules/unicase/u32-casefold: New file.
30893
30894         New module 'unicase/u16-casefold'.
30895         * lib/unicase/u16-casefold.c: New file.
30896         * modules/unicase/u16-casefold: New file.
30897
30898         New module 'unicase/u8-casefold'.
30899         * lib/unicase/u8-casefold.c: New file.
30900         * lib/unicase/u-casefold.h: New file.
30901         * modules/unicase/u8-casefold: New file.
30902
30903         New module 'unicase/tocasefold'.
30904         * lib/unicase/casefold.h: New file.
30905         * lib/unicase/tocasefold.c: New file.
30906         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
30907         * modules/unicase/tocasefold: New file.
30908
30909         Tests for module 'unicase/u32-totitle'.
30910         * modules/unicase/u32-totitle-tests: New file.
30911         * tests/unicase/test-u32-totitle.c: New file.
30912
30913         Tests for module 'unicase/u16-totitle'.
30914         * modules/unicase/u16-totitle-tests: New file.
30915         * tests/unicase/test-u16-totitle.c: New file.
30916
30917         Tests for module 'unicase/u8-totitle'.
30918         * modules/unicase/u8-totitle-tests: New file.
30919         * tests/unicase/test-u8-totitle.c: New file.
30920
30921         New module 'unicase/u32-totitle'.
30922         * lib/unicase/u32-totitle.c: New file.
30923         * modules/unicase/u32-totitle: New file.
30924
30925         New module 'unicase/u16-totitle'.
30926         * lib/unicase/u16-totitle.c: New file.
30927         * modules/unicase/u16-totitle: New file.
30928
30929         New module 'unicase/u8-totitle'.
30930         * lib/unicase/u8-totitle.c: New file.
30931         * lib/unicase/u-totitle.h: New file.
30932         * modules/unicase/u8-totitle: New file.
30933
30934         Tests for module 'unicase/u32-tolower'.
30935         * modules/unicase/u32-tolower-tests: New file.
30936         * tests/unicase/test-u32-tolower.c: New file.
30937
30938         Tests for module 'unicase/u16-tolower'.
30939         * modules/unicase/u16-tolower-tests: New file.
30940         * tests/unicase/test-u16-tolower.c: New file.
30941
30942         Tests for module 'unicase/u8-tolower'.
30943         * modules/unicase/u8-tolower-tests: New file.
30944         * tests/unicase/test-u8-tolower.c: New file.
30945
30946         New module 'unicase/u32-tolower'.
30947         * lib/unicase/u32-tolower.c: New file.
30948         * modules/unicase/u32-tolower: New file.
30949
30950         New module 'unicase/u16-tolower'.
30951         * lib/unicase/u16-tolower.c: New file.
30952         * modules/unicase/u16-tolower: New file.
30953
30954         New module 'unicase/u8-tolower'.
30955         * lib/unicase/u8-tolower.c: New file.
30956         * modules/unicase/u8-tolower: New file.
30957
30958         Tests for module 'unicase/u32-toupper'.
30959         * modules/unicase/u32-toupper-tests: New file.
30960         * tests/unicase/test-u32-toupper.c: New file.
30961
30962         Tests for module 'unicase/u16-toupper'.
30963         * modules/unicase/u16-toupper-tests: New file.
30964         * tests/unicase/test-u16-toupper.c: New file.
30965
30966         Tests for module 'unicase/u8-toupper'.
30967         * modules/unicase/u8-toupper-tests: New file.
30968         * tests/unicase/test-u8-toupper.c: New file.
30969
30970         New module 'unicase/u32-toupper'.
30971         * lib/unicase/u32-toupper.c: New file.
30972         * modules/unicase/u32-toupper: New file.
30973
30974         New module 'unicase/u16-toupper'.
30975         * lib/unicase/u16-toupper.c: New file.
30976         * modules/unicase/u16-toupper: New file.
30977
30978         New module 'unicase/u8-toupper'.
30979         * lib/unicase/u8-toupper.c: New file.
30980         * modules/unicase/u8-toupper: New file.
30981
30982         New module 'unicase/u32-casemap'.
30983         * lib/unicase/u32-casemap.c: New file.
30984         * modules/unicase/u32-casemap: New file.
30985
30986         New module 'unicase/u16-casemap'.
30987         * lib/unicase/u16-casemap.c: New file.
30988         * modules/unicase/u16-casemap: New file.
30989
30990         New module 'unicase/u8-casemap'.
30991         * lib/unicase/unicasemap.h: New file.
30992         * lib/unicase/u8-casemap.c: New file.
30993         * lib/unicase/u-casemap.h: New file.
30994         * modules/unicase/u8-casemap: New file.
30995
30996         New module 'unicase/special-casing'.
30997         * lib/unicase/special-casing.h: New file.
30998         * lib/unicase/special-casing.c: New file.
30999         * lib/unicase/special-casing-table.gperf: New file, generated by
31000         gen-uni-tables.c.
31001         * modules/unicase/special-casing: New file.
31002
31003         Tests for module 'unicase/locale-language'.
31004         * modules/unicase/locale-language-tests: New file.
31005         * tests/unicase/test-locale-language.sh: New file.
31006         * tests/unicase/test-locale-language.c: New file.
31007
31008         New module 'unicase/locale-language'.
31009         * lib/unicase/locale-language.c: New file.
31010         * lib/unicase/locale-languages.gperf: New file.
31011         * modules/unicase/locale-language: New file.
31012
31013         Generate more tables for case conversion and case folding.
31014         * lib/gen-uni-tables.c (SCC_*): New enum items.
31015         (struct special_casing_rule): New type.
31016         (casing_rules, num_casing_rules, allocated_casing_rules): New
31017         variables.
31018         (add_casing_rule, fill_casing_rules): New functions.
31019         (struct casefold_rule): New type.
31020         (casefolding_rules, num_casefolding_rules,
31021         allocated_casefolding_rules): New variables.
31022         (fill_casefolding_rules): New function.
31023         (unicode_casefold): New variable.
31024         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31025         sort_casing_rules, output_casing_rules): New functions.
31026         (main): Accept to more arguments: SpecialCasing.txt and
31027         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31028         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31029         Output mapping for casefolding.
31030
31031         * lib/unicase.h: Include stdbool.h, uninorm.h.
31032         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31033         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31034         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31035         arguments.
31036         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31037         resultp arguments.
31038         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31039         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31040         resultp arguments.
31041         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31042         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31043         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31044         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31045         declarations.
31046         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31047
31048 2009-03-08  Bruno Haible  <bruno@clisp.org>
31049
31050         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31051         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31052         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31053         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31054
31055 2009-03-07  Bruno Haible  <bruno@clisp.org>
31056
31057         Adjust u*_normcmp, u*_normcoll API.
31058         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31059         u16_normcoll, u32_normcoll): Change failure conventions.
31060         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31061         errno and return -1.
31062         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31063
31064 2009-03-07  Bruno Haible  <bruno@clisp.org>
31065
31066         Tests for module 'uninorm/u32-normcoll'.
31067         * modules/uninorm/u32-normcoll-tests: New file.
31068         * tests/uninorm/test-u32-normcoll.c: New file.
31069
31070         Tests for module 'uninorm/u16-normcoll'.
31071         * modules/uninorm/u16-normcoll-tests: New file.
31072         * tests/uninorm/test-u16-normcoll.c: New file.
31073
31074         Tests for module 'uninorm/u8-normcoll'.
31075         * modules/uninorm/u8-normcoll-tests: New file.
31076         * tests/uninorm/test-u8-normcoll.c: New file.
31077
31078 2009-03-07  Bruno Haible  <bruno@clisp.org>
31079
31080         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31081         tests/uninorm/test-u32-normcmp.c.
31082         * tests/uninorm/test-u32-normcmp.c: Include it.
31083         (test_nonascii): New function, extracted from main. Add some more
31084         tests.
31085         (main): Invoke test_ascii and test_nonascii.
31086         * modules/uninorm/u32-normcmp-tests (Files): Add
31087         tests/uninorm/test-u32-normcmp.h.
31088         (Depends-on): Remove uninorm/u32-normcmp.
31089
31090         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31091         tests/uninorm/test-u16-normcmp.c.
31092         * tests/uninorm/test-u16-normcmp.c: Include it.
31093         (test_nonascii): New function, extracted from main. Add some more
31094         tests.
31095         (main): Invoke test_ascii and test_nonascii.
31096         * modules/uninorm/u16-normcmp-tests (Files): Add
31097         tests/uninorm/test-u16-normcmp.h.
31098         (Depends-on): Remove uninorm/u16-normcmp.
31099
31100         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31101         tests/uninorm/test-u8-normcmp.c.
31102         * tests/uninorm/test-u8-normcmp.c: Include it.
31103         (test_nonascii): New function, extracted from main. Add some more
31104         tests.
31105         (main): Invoke test_ascii and test_nonascii.
31106         * modules/uninorm/u8-normcmp-tests (Files): Add
31107         tests/uninorm/test-u8-normcmp.h.
31108         (Depends-on): Remove uninorm/u8-normcmp.
31109
31110 2009-03-07  Bruno Haible  <bruno@clisp.org>
31111
31112         New module 'uninorm/u32-normcoll'.
31113         * lib/uninorm/u32-normcoll.c: New file.
31114         * modules/uninorm/u32-normcoll: New file.
31115
31116         New module 'uninorm/u16-normcoll'.
31117         * lib/uninorm/u16-normcoll.c: New file.
31118         * modules/uninorm/u16-normcoll: New file.
31119
31120         New module 'uninorm/u8-normcoll'.
31121         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31122         declarations.
31123         * lib/uninorm/u8-normcoll.c: New file.
31124         * lib/uninorm/u-normcoll.h: New file.
31125         * modules/uninorm/u8-normcoll: New file.
31126
31127         New module 'uninorm/u32-normxfrm'.
31128         * lib/uninorm/u32-normxfrm.c: New file.
31129         * modules/uninorm/u32-normxfrm: New file.
31130
31131         New module 'uninorm/u16-normxfrm'.
31132         * lib/uninorm/u16-normxfrm.c: New file.
31133         * modules/uninorm/u16-normxfrm: New file.
31134
31135         New module 'uninorm/u8-normxfrm'.
31136         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31137         declarations.
31138         * lib/uninorm/u8-normxfrm.c: New file.
31139         * lib/uninorm/u-normxfrm.h: New file.
31140         * modules/uninorm/u8-normxfrm: New file.
31141
31142 2009-03-07  Bruno Haible  <bruno@clisp.org>
31143
31144         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31145         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31146         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31147
31148 2009-03-07  Bruno Haible  <bruno@clisp.org>
31149
31150         New module 'memxfrm'.
31151         * lib/memxfrm.h: New file.
31152         * lib/memxfrm.c: New file.
31153         * modules/memxfrm: New file.
31154
31155 2009-03-07  Bruno Haible  <bruno@clisp.org>
31156
31157         New module 'memcmp2'.
31158         * lib/memcmp2.h: New file.
31159         * lib/memcmp2.c: New file.
31160         * modules/memcmp2: New file.
31161
31162 2009-03-07  Bruno Haible  <bruno@clisp.org>
31163
31164         Tests for module 'uninorm/decomposing-form'.
31165         * modules/uninorm/decomposing-form-tests: New file.
31166         * tests/uninorm/test-decomposing-form.c: New file.
31167
31168         New module 'uninorm/decomposing-form'.
31169         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31170         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31171         Add 'decomposing_variant' field.
31172         * lib/uninorm/decomposing-form.c: New file.
31173         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31174         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31175         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31176         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31177         * modules/uninorm/decomposing-form: New file.
31178         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31179         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31180
31181 2009-03-07  Bruno Haible  <bruno@clisp.org>
31182
31183         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31184         strings.
31185
31186 2009-03-06  Bruno Haible  <bruno@clisp.org>
31187
31188         Tests for module 'uninorm/u32-normcmp'.
31189         * tests/uninorm/test-u32-normcmp.c: New file.
31190         * modules/uninorm/u32-normcmp-tests: New file.
31191
31192         Tests for module 'uninorm/u16-normcmp'.
31193         * tests/uninorm/test-u16-normcmp.c: New file.
31194         * modules/uninorm/u16-normcmp-tests: New file.
31195
31196         Tests for module 'uninorm/u8-normcmp'.
31197         * tests/uninorm/test-u8-normcmp.c: New file.
31198         * modules/uninorm/u8-normcmp-tests: New file.
31199
31200         New module 'uninorm/u32-normcmp'.
31201         * lib/uninorm/u32-normcmp.c: New file.
31202         * modules/uninorm/u32-normcmp: New file.
31203
31204         New module 'uninorm/u16-normcmp'.
31205         * lib/uninorm/u16-normcmp.c: New file.
31206         * modules/uninorm/u16-normcmp: New file.
31207
31208         New module 'uninorm/u8-normcmp'.
31209         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31210         declarations.
31211         * lib/uninorm/u8-normcmp.c: New file.
31212         * lib/uninorm/u-normcmp.h: New file.
31213         * modules/uninorm/u8-normcmp: New file.
31214
31215 2009-03-06  Bruno Haible  <bruno@clisp.org>
31216
31217         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31218         Reported by Eric Blake.
31219
31220 2009-03-06  Eric Blake  <ebb9@byu.net>
31221             Bruno Haible  <bruno@clisp.org>
31222
31223         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31224         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31225         condition.
31226         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31227         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31228         condition.
31229         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31230
31231 2009-03-06  Eric Blake  <ebb9@byu.net>
31232
31233         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31234         to avoid compiler warnings.
31235         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31236
31237 2009-03-05  Bruno Haible  <bruno@clisp.org>
31238
31239         * tests/test-ftell.c (main): Disable test beyond end of file on
31240         FreeMiNT.
31241         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31242
31243 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31244
31245         * lib/filevercmp.c: Move hidden files up in ordering.
31246         * tests/test-filevercmp.c: Add tests for hidden files.
31247
31248 2009-03-04  Bruno Haible  <bruno@clisp.org>
31249
31250         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31251         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31252         AM_CFLAGS.
31253         Reported by Simon Josefsson.
31254
31255 2009-03-03  Bruno Haible  <bruno@clisp.org>
31256
31257         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31258         Reported by Simon Josefsson.
31259
31260         * doc/ld-version-script.texi: Update node reference.
31261
31262 2009-03-03  Bruno Haible  <bruno@clisp.org>
31263
31264         * modules/visibility (License): Change to 'unlimited'.
31265         Suggested by Simon Josefsson.
31266
31267 2009-03-03  Jim Meyering  <meyering@redhat.com>
31268
31269         unlinkdir: cannot_unlink_dir may modify process state
31270         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31271         it's neither thread-safe nor appropriate for use in a library.
31272
31273 2009-03-03  Eric Blake  <ebb9@byu.net>
31274
31275         test-closein: silence test under Darwin
31276         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31277         care if it dies from EPIPE or EBADF.
31278
31279 2009-03-03  Bruno Haible  <bruno@clisp.org>
31280
31281         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31282         earlier.
31283         * doc/visibility.texi: Fix @node and @section.
31284
31285 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31286
31287         * doc/gnulib.texi: Link to sections for ld version script and
31288         visibility.
31289         * doc/visibility.texi: Add @node and @section.
31290         * modules/ld-version-script: New module.
31291         * m4/ld-version-script.m4: New file.
31292         * doc/ld-version-script.texi: New file.
31293
31294 2009-03-02  David Lutterkort  <lutter@redhat.com>
31295
31296         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31298
31299 2009-03-02  Bruno Haible  <bruno@clisp.org>
31300
31301         * doc/visibility.texi: Mention libtool's -export-symbols option.
31302
31303 2009-03-02  Jim Meyering  <meyering@redhat.com>
31304
31305         announce-gen: new option: --no-print-checksums
31306         * build-aux/announce-gen (usage): Describe it.
31307         (print_checksums): Print a newline here, not in the [*] footnote.
31308         (main): Honor it.
31309
31310 2009-03-01  Bruno Haible  <bruno@clisp.org>
31311
31312         Use socklen_t in the native Windows replacements prototypes.
31313         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31314         instead of 'int'.
31315         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31316         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31317         * modules/getsockopt (Depends-on): Add socklen.
31318         * modules/setsockopt (Depends-on): Add socklen.
31319
31320 2009-03-01  Bruno Haible  <bruno@clisp.org>
31321
31322         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31323         least 4.2.
31324
31325 2009-03-01  Eric Blake  <ebb9@byu.net>
31326             Bruno Haible  <bruno@clisp.org>
31327
31328         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31329         error messages.
31330         * lib/wait-process.c (wait_subprocess): Omit error message about
31331         deadly signal sent to the child of termsigp != NULL.
31332
31333 2009-03-01  Eric Blake  <ebb9@byu.net>
31334
31335         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31336
31337 2009-03-01  Bruno Haible  <bruno@clisp.org>
31338
31339         Avoid a gcc warning.
31340         * tests/test-sched.c (b): Make global.
31341         Reported by Eric Blake.
31342
31343 2009-01-19  Martin Lambers  <marlam@marlam.de>
31344
31345         Provide POSIX semantics for socket timeout options on W32.
31346         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31347         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31348         * modules/setsockopt: Depend on sys_time module for struct timeval.
31349         * modules/getsockopt: Depend on sys_time module for struct timeval.
31350
31351 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31352
31353         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31354         __USE_GNU, for consistency with netdb.in.h.
31355         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31356
31357 2009-03-01  Bruno Haible  <bruno@clisp.org>
31358
31359         More support for FreeMiNT.
31360         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31361         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31362
31363 2009-03-01  Bruno Haible  <bruno@clisp.org>
31364
31365         More support for FreeMiNT.
31366         * lib/fpurge.c (fpurge): Correct last commit.
31367         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31368
31369 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31370
31371         Fix unportable awk script in vc-list-files.
31372         * build-aux/vc-list-files: In the replacement awk script, use
31373         substr with a second argument of 1, not zero.
31374         Report by Simon Josefsson.
31375
31376 2009-02-28  Bruno Haible  <bruno@clisp.org>
31377
31378         More support for FreeMiNT.
31379         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31380         to FreeMiNT today.
31381         * lib/fwriting.c (fwriting): Likewise.
31382         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31383
31384 2009-02-28  Bruno Haible  <bruno@clisp.org>
31385
31386         * tests/test-freadseek.c (main): Disable test beyond end of file on
31387         FreeMiNT.
31388         * tests/test-ftello.c (main): Likewise.
31389         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31390
31391 2009-02-28  Bruno Haible  <bruno@clisp.org>
31392
31393         Add tentative support for FreeMiNT.
31394         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31395         * lib/fpurge.c (fpurge): Likewise.
31396         * lib/freadable.c (freadable): Likewise.
31397         * lib/freading.c (freading): Likewise.
31398         * lib/freadptr.c (freadptr): Likewise.
31399         * lib/freadseek.c (freadptrinc): Likewise.
31400         * lib/fseeko.c (rpl_fseeko): Likewise.
31401         * lib/fseterr.c (fseterr): Likewise.
31402         * lib/fwritable.c (fwritable): Likewise.
31403         * lib/fwriting.c (fwriting): Likewise.
31404         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31405         Hourihane.
31406         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31407
31408 2009-02-28  Bruno Haible  <bruno@clisp.org>
31409
31410         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31411         SIGCHLD.
31412         Reported by Jim Meyering.
31413
31414 2009-02-28  Bruno Haible  <bruno@clisp.org>
31415
31416         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31417         Mention the results of these tests on various platforms.
31418         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31419         order.
31420         * doc/posix-functions/printf.texi: Likewise.
31421         * doc/posix-functions/snprintf.texi: Likewise.
31422         * doc/posix-functions/sprintf.texi: Likewise.
31423         * doc/posix-functions/vfprintf.texi: Likewise.
31424         * doc/posix-functions/vprintf.texi: Likewise.
31425         * doc/posix-functions/vsnprintf.texi: Likewise.
31426         * doc/posix-functions/vsprintf.texi: Likewise.
31427         * doc/glibc-functions/obstack_printf.texi: Likewise.
31428         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31429
31430 2009-02-28  Bruno Haible  <bruno@clisp.org>
31431
31432         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31433         Reported by Loïc Minier <lool@dooz.org>.
31434
31435 2009-02-27  Bruno Haible  <bruno@clisp.org>
31436
31437         * gnulib-tool (func_import): Make the sed expression used to create the
31438         sed script for updating the .gitignore file POSIX compliant.
31439         Reported by Eric Blake.
31440
31441 2009-02-27  Bruno Haible  <bruno@clisp.org>
31442
31443         * gnulib-tool (sed): Don't alias as "sed --posix".
31444         Reported by Eric Blake.
31445
31446 2009-02-27  Bruno Haible  <bruno@clisp.org>
31447
31448         Avoid test link errors.
31449         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31450         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31451         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31452         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31454
31455 2009-02-27  Bruno Haible  <bruno@clisp.org>
31456
31457         Avoid spurious "(cached)" in configure output.
31458         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31459         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31460         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31461         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31462         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31463         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31464         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31465         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31466         Reported by Eric Blake.
31467
31468 2009-02-27  Eric Blake  <ebb9@byu.net>
31469
31470         printf: fix regression in previous patch
31471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31472
31473 2009-02-27  Bruno Haible  <bruno@clisp.org>
31474
31475         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31476         value.
31477         * lib/stdint.in.h: Likewise.
31478         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31479
31480 2009-02-27  Eric Blake  <ebb9@byu.net>
31481
31482         doc: mention more functions added in cygwin 1.7.0
31483         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31484         addition.
31485         * doc/posix-functions/open_wmemstream.texi: Likewise.
31486         * doc/posix-functions/wcsnlen.texi: Likewise.
31487         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31488         * doc/posix-functions/wcstod.texi: Likewise.
31489         * doc/posix-functions/wcstof.texi: Likewise.
31490         * doc/posix-functions/wcstoimax.texi: Likewise.
31491         * doc/posix-functions/wcstok.texi: Likewise.
31492         * doc/posix-functions/wcstoumax.texi: Likewise.
31493
31494         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31495         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
31496         * doc/posix-functions/fprintf.texi: Update.
31497         * doc/posix-functions/printf.texi: Update.
31498         * doc/posix-functions/snprintf.texi: Update.
31499         * doc/posix-functions/sprintf.texi: Update.
31500         * doc/posix-functions/vfprintf.texi: Update.
31501         * doc/posix-functions/vprintf.texi: Update.
31502         * doc/posix-functions/vsnprintf.texi: Update.
31503         * doc/posix-functions/vsprintf.texi: Update.
31504         * doc/glibc-functions/obstack_printf.texi: Update.
31505         * doc/glibc-functions/obstack_vprintf.texi: Update.
31506
31507 2009-02-26  Eric Blake  <ebb9@byu.net>
31508
31509         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31510         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31511         compilation bug by using runtime conversion.
31512         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31513         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31514         * modules/ceill-tests (Files): Use nan.h.
31515         * modules/floorl-tests (Files): Likewise.
31516         * modules/frexpl-tests (Files): Likewise.
31517         * modules/isnanl-tests (Files): Likewise.
31518         * modules/ldexpl-tests (Files): Likewise.
31519         * modules/roundl-tests (Files): Likewise.
31520         * modules/truncl-tests (Files): Likewise.
31521         * tests/test-ceill.c (main): Use a working NaN.
31522         * tests/test-floorl.c (main): Likewise.
31523         * tests/test-frexpl.c (main): Likewise.
31524         * tests/test-isnan.c (test_long_double): Likewise.
31525         * tests/test-isnanl.h (main): Likewise.
31526         * tests/test-ldexpl.h (main): Likewise.
31527         * tests/test-roundl.h (main): Likewise.
31528         * tests/test-truncl.h (main): Likewise.
31529         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
31530
31531 2009-02-26  Eric Blake  <ebb9@byu.net>
31532             Bruno Haible  <bruno@clisp.org>
31533
31534         Work around a *printf bug with %ls on Solaris.
31535         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
31536         precision is specified, sprintf stops converting the wide string
31537         argument when the number of bytes that have been produced by this
31538         conversion equals or exceeds the precision.
31539         * doc/posix-functions/fprintf.texi: Update.
31540         * doc/posix-functions/printf.texi: Update.
31541         * doc/posix-functions/snprintf.texi: Update.
31542         * doc/posix-functions/sprintf.texi: Update.
31543         * doc/posix-functions/vfprintf.texi: Update.
31544         * doc/posix-functions/vprintf.texi: Update.
31545         * doc/posix-functions/vsnprintf.texi: Update.
31546         * doc/posix-functions/vsprintf.texi: Update.
31547         * doc/glibc-functions/obstack_printf.texi: Update.
31548         * doc/glibc-functions/obstack_vprintf.texi: Update.
31549
31550 2009-02-26  Eric Blake  <ebb9@byu.net>
31551
31552         stdlib: favor compiler check of random.h
31553         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
31554         to avoid an ObjC random.h installed by Swarm.
31555
31556 2009-02-26  Bruno Haible  <bruno@clisp.org>
31557
31558         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
31559         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
31560         Reported by Gary V. Vaughan <gary@gnu.org>.
31561
31562 2009-02-26  Bruno Haible  <bruno@clisp.org>
31563
31564         Fix *printf behaviour regarding the %ls directive.
31565         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
31566         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
31567         NEED_PRINTF_DIRECTIVE_LS.
31568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
31569         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31570         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31571         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
31572         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
31573         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
31574         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31575         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31576         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31577         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31578         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31579         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
31580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31583         * doc/posix-functions/fprintf.texi: Update.
31584         * doc/posix-functions/printf.texi: Update.
31585         * doc/posix-functions/snprintf.texi: Update.
31586         * doc/posix-functions/sprintf.texi: Update.
31587         * doc/posix-functions/vfprintf.texi: Update.
31588         * doc/posix-functions/vprintf.texi: Update.
31589         * doc/posix-functions/vsnprintf.texi: Update.
31590         * doc/posix-functions/vsprintf.texi: Update.
31591         * doc/glibc-functions/obstack_printf.texi: Update.
31592         * doc/glibc-functions/obstack_vprintf.texi: Update.
31593         Reported by Eric Blake.
31594
31595 2009-02-25  Bruno Haible  <bruno@clisp.org>
31596
31597         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
31598         with known value.
31599         Reported by Gary V. Vaughan <gary@gnu.org>.
31600
31601 2009-02-25  Bruno Haible  <bruno@clisp.org>
31602
31603         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
31604         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
31605         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
31606         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
31607         Reported by Gary V. Vaughan <gary@gnu.org>.
31608
31609 2009-02-25  Bruno Haible  <bruno@clisp.org>
31610
31611         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
31612         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
31613         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
31614         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
31615         Reported by Gary V. Vaughan <gary@gnu.org>.
31616
31617 2009-02-25  Eric Blake  <ebb9@byu.net>
31618
31619         tests: skip fseek/ftell tests if ungetc is broken
31620         * m4/ungetc.m4: New file.
31621         * modules/fseek-tests: Split test, so ungetc dependency is
31622         separate from rest of test.
31623         * modules/fseeko-tests: Likewise.
31624         * modules/ftell-tests: Likewise.
31625         * modules/ftello-tests: Likewise.
31626         * tests/test-fseek.c (main): Isolate ungetc dependency.
31627         * tests/test-fseeko.c (main): Likewise.
31628         * tests/test-ftell.c (main): Likewise.
31629         * tests/test-ftello.c (main): Likewise.
31630         * tests/test-fseek2.sh: New file.
31631         * tests/test-fseeko2.sh: Likewise.
31632         * tests/test-ftell2.sh: Likewise.
31633         * tests/test-ftello2.sh: Likewise.
31634
31635 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
31636
31637         test-getaddrinfo: fix usage of skip return code 77
31638         * tests/test-gettaddrinfo.c: Return skip code 77 only
31639         for first occurance of skip (4x77 is not 77)
31640
31641 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
31642
31643         strtod: avoid C99 decl-after-statement
31644         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
31645
31646 2009-02-24  Eric Blake  <ebb9@byu.net>
31647
31648         strtod: detect HP-UX 11.31 bug
31649         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
31650         Reported by Gary V. Vaughan.
31651
31652 2009-02-23  Bruno Haible  <bruno@clisp.org>
31653
31654         Fix invalid read past end of memory block.
31655         * lib/vasnprintf.c (DCHAR_SET): Define.
31656         (local_wcslen): Define only when needed.
31657         (local_strnlen, local_wcsnlen): New functions.
31658         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
31659         directives that involve a conversion ourselves.
31660         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
31661         wcsnlen, mbrtowc, wcrtomb.
31662         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
31663         * tests/test-vasprintf-posix.c (test_function): Likewise.
31664         * tests/test-snprintf-posix.h (test_function): Likewise.
31665         * tests/test-sprintf-posix.h (test_function): Likewise.
31666         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31667
31668 2009-02-22  Bruno Haible  <bruno@clisp.org>
31669
31670         Implement new clarified decomposition of Hangul syllables.
31671         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
31672         of type LTV, return only a pairwise decomposition.
31673         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
31674         Likewise.
31675         * tests/uninorm/test-decomposition.c (main): Updated expected result.
31676         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
31677         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
31678
31679 2009-02-22  Bruno Haible  <bruno@clisp.org>
31680
31681         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
31682         zero-length results and shrink excess allocated memory.
31683         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
31684         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
31685         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
31686         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
31687         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
31688         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
31689         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31690         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31691         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31692         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31693         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31694         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31695
31696 2009-02-21  Bruno Haible  <bruno@clisp.org>
31697
31698         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31699         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31700         spaces after a period. Put a space between a macro name and its
31701         argument list. Trivial rewordings.
31702         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31703         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31704         (main): Return 0 explicitly.
31705
31706 2009-02-21  Bruno Haible  <bruno@clisp.org>
31707
31708         Tests for module 'uninorm/filter'.
31709         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31710         * modules/uninorm/filter-tests: New file.
31711
31712         New module 'uninorm/filter'.
31713         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31714         uninorm_filter_flush, uninorm_filter_free): New declarations.
31715         * lib/uninorm/uninorm-filter.c: New file.
31716         * modules/uninorm/filter: New file.
31717
31718 2009-02-21  Bruno Haible  <bruno@clisp.org>
31719
31720         Tests for module 'uninorm/nfkc'.
31721         * tests/uninorm/test-nfkc.c: New file.
31722         * tests/uninorm/test-u8-nfkc.c: New file.
31723         * tests/uninorm/test-u16-nfkc.c: New file.
31724         * tests/uninorm/test-u32-nfkc.c: New file.
31725         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31726         * tests/uninorm/test-u32-nfkc-big.c: New file.
31727         * modules/uninorm/nfkc-tests: New file.
31728
31729         New module 'uninorm/nfkc'.
31730         * lib/uninorm/nfkc.c: New file.
31731         * modules/uninorm/nfkc: New file.
31732
31733         Tests for module 'uninorm/nfkd'.
31734         * tests/uninorm/test-nfkd.c: New file.
31735         * tests/uninorm/test-u8-nfkd.c: New file.
31736         * tests/uninorm/test-u16-nfkd.c: New file.
31737         * tests/uninorm/test-u32-nfkd.c: New file.
31738         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31739         * tests/uninorm/test-u32-nfkd-big.c: New file.
31740         * modules/uninorm/nfkd-tests: New file.
31741
31742         New module 'uninorm/nfkd'.
31743         * lib/uninorm/nfkd.c: New file.
31744         * modules/uninorm/nfkd: New file.
31745
31746         Tests for module 'uninorm/nfc'.
31747         * tests/uninorm/test-nfc.c: New file.
31748         * tests/uninorm/test-u8-nfc.c: New file.
31749         * tests/uninorm/test-u16-nfc.c: New file.
31750         * tests/uninorm/test-u32-nfc.c: New file.
31751         * tests/uninorm/test-u32-nfc-big.sh: New file.
31752         * tests/uninorm/test-u32-nfc-big.c: New file.
31753         * modules/uninorm/nfc-tests: New file.
31754
31755         New module 'uninorm/nfc'.
31756         * lib/uninorm/nfc.c: New file.
31757         * modules/uninorm/nfc: New file.
31758
31759         Tests for module 'uninorm/nfd'.
31760         * tests/uninorm/test-nfd.c: New file.
31761         * tests/uninorm/test-u8-nfd.c: New file.
31762         * tests/uninorm/test-u16-nfd.c: New file.
31763         * tests/uninorm/test-u32-nfd.c: New file.
31764         * tests/uninorm/test-u32-nfd-big.sh: New file.
31765         * tests/uninorm/test-u32-nfd-big.c: New file.
31766         * tests/uninorm/test-u32-normalize-big.h: New file.
31767         * tests/uninorm/test-u32-normalize-big.c: New file.
31768         * tests/uninorm/NormalizationTest.txt: New file, created from
31769         Unicode 5.1.0 NormalizationTest.txt.
31770         * modules/uninorm/nfd-tests: New file.
31771
31772         New module 'uninorm/nfd'.
31773         * lib/uninorm/nfd.c: New file.
31774         * modules/uninorm/nfd: New file.
31775
31776         New module 'uninorm/u32-normalize'.
31777         * lib/uninorm/u32-normalize.c: New file.
31778         * modules/uninorm/u32-normalize: New file.
31779
31780         New module 'uninorm/u16-normalize'.
31781         * lib/uninorm/u16-normalize.c: New file.
31782         * modules/uninorm/u16-normalize: New file.
31783
31784         New module 'uninorm/u8-normalize'.
31785         * lib/uninorm/u8-normalize.c: New file.
31786         * lib/uninorm/normalize-internal.h: New file.
31787         * lib/uninorm/u-normalize-internal.h: New file.
31788         * modules/uninorm/u8-normalize: New file.
31789
31790         New module 'uninorm/decompose-internal'.
31791         * lib/uninorm/decompose-internal.c: New file.
31792         * modules/uninorm/decompose-internal: New file.
31793
31794         Tests for module 'uninorm/composition'.
31795         * tests/uninorm/test-composition.c: New file.
31796         * modules/uninorm/composition-tests: New file.
31797
31798         New module 'uninorm/composition'.
31799         * lib/uninorm/composition.c: New file.
31800         * lib/uninorm/composition-table.gperf: New file, generated by
31801         gen-uni-tables.
31802         * modules/uninorm/composition: New file.
31803
31804         Tests for module 'uninorm/compat-decomposition'.
31805         * tests/uninorm/test-compat-decomposition.c: New file.
31806         * modules/uninorm/compat-decomposition-tests: New file.
31807
31808         New module 'uninorm/compat-decomposition'.
31809         * lib/uninorm/decompose-internal.h: New file.
31810         * lib/uninorm/compat-decomposition.c: New file.
31811         * modules/uninorm/compat-decomposition: New file.
31812
31813         Tests for module 'uninorm/canonical-decomposition'.
31814         * tests/uninorm/test-canonical-decomposition.c: New file.
31815         * modules/uninorm/canonical-decomposition-tests: New file.
31816
31817         New module 'uninorm/canonical-decomposition'.
31818         * lib/uninorm/canonical-decomposition.c: New file.
31819         * modules/uninorm/canonical-decomposition: New file.
31820
31821         Tests for module 'uninorm/decomposition'.
31822         * tests/uninorm/test-decomposition.c: New file.
31823         * modules/uninorm/decomposition-tests: New file.
31824
31825         New module 'uninorm/decomposition'.
31826         * lib/uninorm/decomposition.c: New file.
31827         * modules/uninorm/decomposition: New file.
31828
31829         New module 'uninorm/decomposition-table'.
31830         * lib/uninorm/decomposition-table.h: New file.
31831         * lib/uninorm/decomposition-table.c: New file.
31832         * lib/uninorm/decomposition-table1.h: New file, generated by
31833         gen-uni-tables.
31834         * lib/uninorm/decomposition-table2.h: New file, generated by
31835         gen-uni-tables.
31836         * modules/uninorm/decomposition-table: New file.
31837
31838         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
31839         (UC_DECOMP_*): New enumeration items.
31840         (get_decomposition): New function.
31841         (struct decomp_table): New type.
31842         (output_decomposition, output_decomposition_tables): New functions.
31843         (unicode_composition_exclusions): New variable.
31844         (fill_composition_exclusions, debug_output_composition_tables): New
31845         functions.
31846         (main): Accept one more argument. Invoke fill_composition_exclusions.
31847         Output decomposition and composition tables.
31848
31849         New module 'uninorm/base'.
31850         * lib/uninorm.h: New file.
31851         * lib/unictype.h: Update comment.
31852         * modules/uninorm/base: New file.
31853
31854 2009-02-21  David Lutterkort  <lutter@redhat.com>
31855
31856         Tests for module 'safe-alloc'.
31857         * tests/test-safe-alloc.c: New file.
31858         * modules/safe-alloc-tests: New file.
31859
31860         New module 'safe-alloc'.
31861         * lib/safe-alloc.h: New file.
31862         * lib/safe-alloc.c: New file.
31863         * m4/safe-alloc.m4: New file.
31864         * modules/safe-alloc: New file.
31865         * doc/safe-alloc.texi: New file.
31866         * doc/gnulib.texi: Include it.
31867         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31868         safe-alloc.
31869
31870 2009-02-18  Bruno Haible  <bruno@clisp.org>
31871
31872         Fix link error on non-glibc systems.
31873         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
31874         variable.
31875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31876
31877 2009-02-18  Jim Meyering  <meyering@redhat.com>
31878
31879         fts: avoid used-uninitialized error due to recent change
31880         * lib/fts.c (fts_read): Guard uses of the new member,
31881         parent->fts_n_dirs_remaining, since it's not relevant for
31882         the parent of a directory specified on the command-line.
31883
31884 2009-02-17  James Youngman  <jay@gnu.org>
31885             Bruno Haible  <bruno@clisp.org>
31886
31887         * m4/include_next.m4: Reformulate comment.
31888
31889 2009-02-16  Jim Meyering  <meyering@redhat.com>
31890
31891         fts: add #if guards so that the fts_lgpl module still builds
31892         * lib/fts.c: Guard just-added hash-table-using parts with
31893         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
31894         Reported by Simon Josefsson.
31895
31896 2009-02-15  Bruno Haible  <bruno@clisp.org>
31897
31898         * modules/array-mergesort-tests: New file.
31899         * tests/test-array-mergesort.c: New file.
31900
31901         New module 'array-mergesort'.
31902         * modules/array-mergesort: New file.
31903         * lib/array-mergesort.h: New file.
31904
31905 2009-02-15  Bruno Haible  <bruno@clisp.org>
31906
31907         Fix 2009-02-07 commit.
31908         * lib/gen-uni-tables.c (output_predicate, output_category,
31909         output_combclass, output_bidi_category, output_decimal_digit,
31910         output_digit, output_numeric, output_mirror, output_scripts,
31911         output_ident_category, output_simple_mapping): Fix format directives.
31912         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
31913
31914 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
31915
31916         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
31917         fixes are available from IBM.
31918
31919 2009-02-13  Jim Meyering  <meyering@redhat.com>
31920
31921         fts: arrange not to stat non-directories in more cases
31922         This makes GNU find (when it doesn't need to stat each file)
31923         *much* more efficient at traversing reiserfs file systems.
31924         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
31925         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
31926         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
31927         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
31928         (leaf_optimization_applies): New function.
31929         (LCO_hash, LCO_compare): New helper functions.
31930         (link_count_optimize_ok): New function.
31931         (fts_stat): Initialize new member (if dir).
31932         (fts_read): Decrement parent's fts_n_dirs_remaining count if
31933         we've just stat'ed a directory.  Skip the stat call when possible.
31934         ---
31935         Note this AFS-related exchange:
31936         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
31937         and note find's pioctl call in find/fstype.c.
31938         But that is necessary only if you want to enable the
31939         optimization for AFS, and for now, I don't.
31940
31941         fts: move a function definition "up" (no semantic change)
31942         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
31943         "up" to precede upcoming use of a related function.
31944
31945 2009-02-11  Jim Meyering  <meyering@redhat.com>
31946
31947         fts: correct internal computation of nlinks (optimization-related)
31948         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
31949         whether the current entry is a directory, so don't test it.
31950
31951 2009-02-10  Bruno Haible  <bruno@clisp.org>
31952
31953         Tests for module 'uniwbrk/ulc-wordbreaks'.
31954         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
31955         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
31956         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
31957
31958         Tests for module 'uniwbrk/u32-wordbreaks'.
31959         * modules/uniwbrk/u32-wordbreaks-tests: New file.
31960         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
31961
31962         Tests for module 'uniwbrk/u16-wordbreaks'.
31963         * modules/uniwbrk/u16-wordbreaks-tests: New file.
31964         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
31965
31966         Tests for module 'uniwbrk/u8-wordbreaks'.
31967         * modules/uniwbrk/u8-wordbreaks-tests: New file.
31968         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
31969
31970 2009-02-10  Bruno Haible  <bruno@clisp.org>
31971
31972         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
31973         property.
31974         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
31975         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
31976         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
31977
31978 2009-02-10  Simon Josefsson  <simon@josefsson.org>
31979
31980         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
31981         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
31982
31983 2009-02-10  Bruno Haible  <bruno@clisp.org>
31984
31985         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
31986         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
31987         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
31988         * lib/unilbrk/u8-possible-linebreaks.c: Update.
31989         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
31990         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
31991
31992 2009-02-09  Simon Josefsson  <simon@josefsson.org>
31993
31994         * lib/sockets.h (gl_fd_to_handle): New function.
31995
31996         * tests/test-sockets.c: Call gl_fd_to_handle.
31997
31998 2009-02-09  Bruno Haible  <bruno@clisp.org>
31999
32000         * doc/havelib.texi: Document the conventions on bi-arch systems.
32001
32002 2009-02-08  Bruno Haible  <bruno@clisp.org>
32003
32004         Document the AC_LIB_LINKFLAGS macro.
32005         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32006         * doc/gnulib.texi: Include it.
32007
32008 2009-02-08  Bruno Haible  <bruno@clisp.org>
32009
32010         Fix wrong order of sections, compared to TOC.
32011         * doc/gnulib.texi: Include relocatable-maint.texi after the
32012         "Regular expressions" node, not before.
32013
32014 2009-02-08  Bruno Haible  <bruno@clisp.org>
32015
32016         Tests for module 'unicase/totitle'.
32017         * modules/unicase/totitle-tests: New file.
32018
32019         Tests for module 'unicase/tolower'.
32020         * modules/unicase/tolower-tests: New file.
32021
32022         Tests for module 'unicase/toupper'.
32023         * modules/unicase/toupper-tests: New file.
32024         * tests/unicase/test-mapping-part1.h: New file.
32025         * tests/unicase/test-mapping-part2.h: New file.
32026
32027         New module 'unicase/totitle'.
32028         * modules/unicase/totitle: New file.
32029         * lib/unicase/totitle.c: New file.
32030
32031         New module 'unicase/tolower'.
32032         * modules/unicase/tolower: New file.
32033         * lib/unicase/tolower.c: New file.
32034
32035         New module 'unicase/toupper'.
32036         * modules/unicase/toupper: New file.
32037         * lib/unicase/toupper.c: New file.
32038         * lib/unicase/simple-mapping.h: New file.
32039
32040         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32041         (mapping_table): New structure.
32042         (output_simple_mapping): New function.
32043         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32044         * modules/gen-uni-tables (Description): Update.
32045         * lib/unicase/toupper.h: New file, automatically generated by
32046         gen-uni-tables.
32047         * lib/unicase/tolower.h: New file, automatically generated by
32048         gen-uni-tables.
32049         * lib/unicase/totitle.h: New file, automatically generated by
32050         gen-uni-tables.
32051         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32052         gen-uni-tables.
32053         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32054         gen-uni-tables.
32055         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32056         gen-uni-tables.
32057
32058         New module 'unicase/base'.
32059         * modules/unicase/base: New file.
32060         * lib/unicase.h: New file.
32061
32062 2009-02-08  Bruno Haible  <bruno@clisp.org>
32063
32064         New module 'uniwbrk/ulc-wordbreaks'.
32065         * modules/uniwbrk/ulc-wordbreaks: New file.
32066         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32067
32068         New module 'uniwbrk/u32-wordbreaks'.
32069         * modules/uniwbrk/u32-wordbreaks: New file.
32070         * lib/uniwbrk/u32-wordbreaks.c: New file.
32071
32072         New module 'uniwbrk/u16-wordbreaks'.
32073         * modules/uniwbrk/u16-wordbreaks: New file.
32074         * lib/uniwbrk/u16-wordbreaks.c: New file.
32075
32076         New module 'uniwbrk/u8-wordbreaks'.
32077         * modules/uniwbrk/u8-wordbreaks: New file.
32078         * lib/uniwbrk/u8-wordbreaks.c: New file.
32079         * lib/uniwbrk/u-wordbreaks.h: New file.
32080
32081         New module 'uniwbrk/table'.
32082         * modules/uniwbrk/table: New file.
32083         * lib/uniwbrk/wbrktable.h: New file.
32084         * lib/uniwbrk/wbrktable.c: New file.
32085
32086         New module 'uniwbrk/wordbreak-property'.
32087         * modules/uniwbrk/wordbreak-property: New file.
32088         * lib/uniwbrk/wordbreak-property.c: New file.
32089
32090         * lib/gen-uni-tables.c (WBP_*): New enum items.
32091         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32092         (unicode_org_wbp): New variable.
32093         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32094         New functions.
32095         (wbp_table): New structure.
32096         (output_wbp, output_wbrk_tables): New functions.
32097         (main): Accept additional argument. Invoke fill_org_wbp,
32098         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32099         output_wbrk_tables.
32100         * modules/gen-uni-tables (Description): Update.
32101         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32102         gen-uni-tables.
32103
32104         New module 'uniwbrk/base'.
32105         * modules/uniwbrk/base: New file.
32106         * lib/uniwbrk.h: New file.
32107
32108 2009-02-08  Bruno Haible  <bruno@clisp.org>
32109
32110         Update to Unicode 5.1.0.
32111         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32112         U+2185..U+2188.
32113         (is_property_default_ignorable_code_point): Don't include characters
32114         of category Cc or Cs and not-a-characters.
32115         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32116         U+0D79, U+109E, U+109F, U+A60C.
32117         * lib/unictype/bidi_of.h: Regenerated.
32118         * lib/unictype/blocks.h: Regenerated.
32119         * lib/unictype/categ_C.h: Regenerated.
32120         * lib/unictype/categ_Cf.h: Regenerated.
32121         * lib/unictype/categ_Cn.h: Regenerated.
32122         * lib/unictype/categ_L.h: Regenerated.
32123         * lib/unictype/categ_Ll.h: Regenerated.
32124         * lib/unictype/categ_Lm.h: Regenerated.
32125         * lib/unictype/categ_Lo.h: Regenerated.
32126         * lib/unictype/categ_Lu.h: Regenerated.
32127         * lib/unictype/categ_M.h: Regenerated.
32128         * lib/unictype/categ_Mc.h: Regenerated.
32129         * lib/unictype/categ_Me.h: Regenerated.
32130         * lib/unictype/categ_Mn.h: Regenerated.
32131         * lib/unictype/categ_N.h: Regenerated.
32132         * lib/unictype/categ_Nd.h: Regenerated.
32133         * lib/unictype/categ_Nl.h: Regenerated.
32134         * lib/unictype/categ_No.h: Regenerated.
32135         * lib/unictype/categ_P.h: Regenerated.
32136         * lib/unictype/categ_Pd.h: Regenerated.
32137         * lib/unictype/categ_Pe.h: Regenerated.
32138         * lib/unictype/categ_Pf.h: Regenerated.
32139         * lib/unictype/categ_Pi.h: Regenerated.
32140         * lib/unictype/categ_Po.h: Regenerated.
32141         * lib/unictype/categ_Ps.h: Regenerated.
32142         * lib/unictype/categ_S.h: Regenerated.
32143         * lib/unictype/categ_Sk.h: Regenerated.
32144         * lib/unictype/categ_Sm.h: Regenerated.
32145         * lib/unictype/categ_So.h: Regenerated.
32146         * lib/unictype/categ_of.h: Regenerated.
32147         * lib/unictype/combining.h: Regenerated.
32148         * lib/unictype/ctype_alnum.h: Regenerated.
32149         * lib/unictype/ctype_alpha.h: Regenerated.
32150         * lib/unictype/ctype_graph.h: Regenerated.
32151         * lib/unictype/ctype_lower.h: Regenerated.
32152         * lib/unictype/ctype_print.h: Regenerated.
32153         * lib/unictype/ctype_punct.h: Regenerated.
32154         * lib/unictype/ctype_upper.h: Regenerated.
32155         * lib/unictype/decdigit.h: Regenerated.
32156         * lib/unictype/digit.h: Regenerated.
32157         * lib/unictype/mirror.h: Regenerated.
32158         * lib/unictype/numeric.h: Regenerated.
32159         * lib/unictype/pr_alphabetic.h: Regenerated.
32160         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32161         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32162         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32163         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32164         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32165         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32166         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32167         * lib/unictype/pr_combining.h: Regenerated.
32168         * lib/unictype/pr_dash.h: Regenerated.
32169         * lib/unictype/pr_decimal_digit.h: Regenerated.
32170         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32171         * lib/unictype/pr_deprecated.h: Regenerated.
32172         * lib/unictype/pr_diacritic.h: Regenerated.
32173         * lib/unictype/pr_extender.h: Regenerated.
32174         * lib/unictype/pr_format_control.h: Regenerated.
32175         * lib/unictype/pr_grapheme_base.h: Regenerated.
32176         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32177         * lib/unictype/pr_grapheme_link.h: Regenerated.
32178         * lib/unictype/pr_id_continue.h: Regenerated.
32179         * lib/unictype/pr_id_start.h: Regenerated.
32180         * lib/unictype/pr_ideographic.h: Regenerated.
32181         * lib/unictype/pr_ignorable_control.h: Regenerated.
32182         * lib/unictype/pr_lowercase.h: Regenerated.
32183         * lib/unictype/pr_math.h: Regenerated.
32184         * lib/unictype/pr_numeric.h: Regenerated.
32185         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32186         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32187         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32188         * lib/unictype/pr_other_id_continue.h: Regenerated.
32189         * lib/unictype/pr_other_lowercase.h: Regenerated.
32190         * lib/unictype/pr_other_math.h: Regenerated.
32191         * lib/unictype/pr_punctuation.h: Regenerated.
32192         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32193         * lib/unictype/pr_soft_dotted.h: Regenerated.
32194         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32195         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32196         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32197         * lib/unictype/pr_uppercase.h: Regenerated.
32198         * lib/unictype/pr_xid_continue.h: Regenerated.
32199         * lib/unictype/pr_xid_start.h: Regenerated.
32200         * lib/unictype/pr_zero_width.h: Regenerated.
32201         * lib/unictype/scripts.h: Regenerated.
32202         * lib/unictype/scripts_byname.gperf: Regenerated.
32203         * lib/unictype/sy_java_ident.h: Regenerated.
32204         * lib/unilbrk/lbrkprop1.h: Regenerated.
32205         * lib/unilbrk/lbrkprop2.h: Regenerated.
32206         * tests/unictype/test-categ_C.c: Regenerated.
32207         * tests/unictype/test-categ_Cf.c: Regenerated.
32208         * tests/unictype/test-categ_Cn.c: Regenerated.
32209         * tests/unictype/test-categ_L.c: Regenerated.
32210         * tests/unictype/test-categ_Ll.c: Regenerated.
32211         * tests/unictype/test-categ_Lm.c: Regenerated.
32212         * tests/unictype/test-categ_Lo.c: Regenerated.
32213         * tests/unictype/test-categ_Lu.c: Regenerated.
32214         * tests/unictype/test-categ_M.c: Regenerated.
32215         * tests/unictype/test-categ_Mc.c: Regenerated.
32216         * tests/unictype/test-categ_Me.c: Regenerated.
32217         * tests/unictype/test-categ_Mn.c: Regenerated.
32218         * tests/unictype/test-categ_N.c: Regenerated.
32219         * tests/unictype/test-categ_Nd.c: Regenerated.
32220         * tests/unictype/test-categ_Nl.c: Regenerated.
32221         * tests/unictype/test-categ_No.c: Regenerated.
32222         * tests/unictype/test-categ_P.c: Regenerated.
32223         * tests/unictype/test-categ_Pd.c: Regenerated.
32224         * tests/unictype/test-categ_Pe.c: Regenerated.
32225         * tests/unictype/test-categ_Pf.c: Regenerated.
32226         * tests/unictype/test-categ_Pi.c: Regenerated.
32227         * tests/unictype/test-categ_Po.c: Regenerated.
32228         * tests/unictype/test-categ_Ps.c: Regenerated.
32229         * tests/unictype/test-categ_S.c: Regenerated.
32230         * tests/unictype/test-categ_Sk.c: Regenerated.
32231         * tests/unictype/test-categ_Sm.c: Regenerated.
32232         * tests/unictype/test-categ_So.c: Regenerated.
32233         * tests/unictype/test-ctype_alnum.c: Regenerated.
32234         * tests/unictype/test-ctype_alpha.c: Regenerated.
32235         * tests/unictype/test-ctype_graph.c: Regenerated.
32236         * tests/unictype/test-ctype_lower.c: Regenerated.
32237         * tests/unictype/test-ctype_print.c: Regenerated.
32238         * tests/unictype/test-ctype_punct.c: Regenerated.
32239         * tests/unictype/test-ctype_upper.c: Regenerated.
32240         * tests/unictype/test-decdigit.h: Regenerated.
32241         * tests/unictype/test-digit.h: Regenerated.
32242         * tests/unictype/test-numeric.h: Regenerated.
32243         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32244         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32245         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32246         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32247         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32248         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32249         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32250         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32251         * tests/unictype/test-pr_combining.c: Regenerated.
32252         * tests/unictype/test-pr_dash.c: Regenerated.
32253         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32254         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32255         * tests/unictype/test-pr_deprecated.c: Regenerated.
32256         * tests/unictype/test-pr_diacritic.c: Regenerated.
32257         * tests/unictype/test-pr_extender.c: Regenerated.
32258         * tests/unictype/test-pr_format_control.c: Regenerated.
32259         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32260         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32261         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32262         * tests/unictype/test-pr_id_continue.c: Regenerated.
32263         * tests/unictype/test-pr_id_start.c: Regenerated.
32264         * tests/unictype/test-pr_ideographic.c: Regenerated.
32265         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32266         * tests/unictype/test-pr_lowercase.c: Regenerated.
32267         * tests/unictype/test-pr_math.c: Regenerated.
32268         * tests/unictype/test-pr_numeric.c: Regenerated.
32269         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32270         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32271         Regenerated.
32272         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32273         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32274         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32275         * tests/unictype/test-pr_other_math.c: Regenerated.
32276         * tests/unictype/test-pr_punctuation.c: Regenerated.
32277         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32278         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32279         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32280         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32281         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32282         * tests/unictype/test-pr_uppercase.c: Regenerated.
32283         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32284         * tests/unictype/test-pr_xid_start.c: Regenerated.
32285         * tests/unictype/test-pr_zero_width.c: Regenerated.
32286
32287         Update to Unicode 5.1.0.
32288         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32289         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32290         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32291         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32292         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32293         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32294         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32295         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32296         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32297         (nonspacing_table_ind): Update.
32298         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32299
32300         Update to Unicode 5.1.0.
32301         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32302         code transform.
32303         * lib/uniname/uniname.c (unicode_character_name,
32304         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32305         * lib/uniname/uninames.h: Regenerated.
32306         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32307
32308 2009-02-07  Bruno Haible  <bruno@clisp.org>
32309
32310         Merge gen-ctype and gen-lbrk into a single program.
32311         * lib/gen-uni-tables.c: New file, incorporating
32312         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32313         Add directory prefixes to the names of the generated files.
32314         * lib/unictype/gen-ctype.c: Remove file.
32315         * lib/unilbrk/gen-lbrk.c: Remove file.
32316         * modules/gen-uni-tables: New file.
32317         * modules/unictype/gen-ctype: Remove file.
32318         * modules/unilbrk/gen-lbrk: Remove file.
32319
32320 2009-02-07  Bruno Haible  <bruno@clisp.org>
32321
32322         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32323
32324         New module 'unistr/u32-strcoll'.
32325         * modules/unistr/u32-strcoll: New file.
32326         * lib/unistr/u32-strcoll.c: New file.
32327
32328         New module 'unistr/u16-strcoll'.
32329         * modules/unistr/u16-strcoll: New file.
32330         * lib/unistr/u16-strcoll.c: New file.
32331
32332         New module 'unistr/u8-strcoll'.
32333         * modules/unistr/u8-strcoll: New file.
32334         * lib/unistr/u8-strcoll.c: New file.
32335         * lib/unistr/u-strcoll.h: New file.
32336
32337 2009-02-07  Bruno Haible  <bruno@clisp.org>
32338
32339         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32340         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32341         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32342         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32343         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32344         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32345
32346 2009-02-07  Bruno Haible  <bruno@clisp.org>
32347
32348         Make 64-bit clean.
32349         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32350         output_combclass, output_bidi_category, output_decimal_digit,
32351         output_digit, output_numeric, output_mirror, output_scripts,
32352         output_ident_category): Use proper width specifier in format strings.
32353
32354 2009-02-07  Bruno Haible  <bruno@clisp.org>
32355
32356         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32357         failure behaviour.
32358
32359 2009-02-07  Jim Meyering  <meyering@redhat.com>
32360
32361         regex: avoid compilation failure with upcoming gcc-4.4
32362         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32363         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32364         "... error: integer overflow in preprocessor expression".
32365
32366 2009-02-05  Ben Pfaff  <blp@gnu.org>
32367
32368         Fix link errors on Windows when close module is used.
32369         * modules/close: Add $(LIB_CLOSE) to Link section.
32370         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32371         $(LIB_CLOSE) on Windows.
32372
32373 2009-02-05  Jim Meyering  <meyering@redhat.com>
32374
32375         still avoid unused-parameter warnings, but do it cleanly
32376         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32377         (get_fs_usage): Cast to void instead.
32378         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32379         (dev_from_mount_options, read_file_system_list): Cast to void.
32380         Prompted by Bruno Haible.
32381
32382 2009-02-04  Jim Meyering  <meyering@redhat.com>
32383
32384         fsusage.c: correct copyright year
32385         * lib/fsusage.c: Reflect year in which the change is pushed into
32386
32387         avoid misc. warnings
32388         * lib/fsusage.c (UNUSED_PARAM): Define.
32389         (get_fs_usage): Mark parameter "disk" as unused.
32390         * lib/getugroups.c (getgrent): Use "void" in prototype.
32391         * lib/mountlist.c: Mark unused parameters.
32392         (read_file_system_list): Declare a local with "const".
32393         * lib/nanosleep.c (getnow): Declare static.
32394         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32395
32396         dirfd: set errno upon failure
32397         * lib/dirfd.c: Include <errno.h>.
32398         Set errno to ENOTSUP when returning -1.
32399         * modules/dirfd (Depends-on): Add errno.
32400         Suggested by John Kodis <kodis@comcast.net>.
32401
32402 2009-02-01  Bruno Haible  <bruno@clisp.org>
32403
32404         Don't assume sizeof (long) >= sizeof (void *).
32405         * lib/memcmp.c: Include stdint.h.
32406         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32407         srcp2 to 'const byte *'.
32408         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32409         types to uintptr_t.
32410         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32411         * modules/memcmp (Depends-on): Add stdint.
32412         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32413
32414 2009-01-30  Eric Blake  <ebb9@byu.net>
32415
32416         fix more require-before-expand issues
32417         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32418         expand, AC_PROG_AWK.
32419         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32420
32421 2009-01-28  Eric Blake  <ebb9@byu.net>
32422
32423         version-etc: use consistent URL formatting
32424         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32425         Improve formatting.  Use fputs for string without %.
32426
32427 2009-01-28  Jim Meyering  <meyering@redhat.com>
32428
32429         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32430         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32431         "underquoted definition of NAME" from autoconf-2.59.
32432
32433 2009-01-28  Bruno Haible  <bruno@clisp.org>
32434
32435         * doc/gnulib.texi: Add "Obsolete modules" to index.
32436
32437 2009-01-28  Jim Meyering  <meyering@redhat.com>
32438
32439         useless-if-before-free: recognize more variants
32440         * build-aux/useless-if-before-free: Also recognize e.g.,
32441         if (NULL != p) free (p);
32442
32443 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32444
32445         test-getaddrinfo: skip (don't fail) this test when there's no network
32446         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32447         on the presumption that it means you lack network access.
32448
32449 2009-01-26  Jim Meyering  <meyering@redhat.com>
32450
32451         fflush: avoid warnings on modern systems
32452         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32453         pos and result, into scopes where they're used.
32454
32455 2009-01-26  Eric Blake  <ebb9@byu.net>
32456
32457         Silence warning reintroduced by recent extensions patch.
32458         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32459         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32460         autoconf.
32461
32462         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32463         * m4/00gnulib.m4: New file.
32464         * gnulib-tool (func_get_filelist): Always use it.
32465         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32466         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32467
32468 2009-01-25  Bruno Haible  <bruno@clisp.org>
32469
32470         Make test-quotearg work on MacOS X and AIX.
32471         * tests/test-quotearg.sh: New file.
32472         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32473         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32474         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32475         include <libintl.h>.
32476         (fake_locale): Remove variable.
32477         (gettext, dgettext, dcgettext): Remove functions.
32478         (main): Instead of setting a fake locale, set a real locale. Call
32479         textdomain and bindtextdomain.
32480         * modules/quotearg-tests (Files): Add the new files.
32481         (Depends-on): Add gettext, setenv, unsetenv.
32482         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32483         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32484         Augment TESTS_ENVIRONMENT.
32485
32486 2009-01-25  Bruno Haible  <bruno@clisp.org>
32487
32488         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32489         fr_FR.ISO8859-1 locale on MacOS X.
32490         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32491         ja_JP.eucJP locale on MacOS X.
32492         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32493         zh_CN.GB18030 locale on MacOS X.
32494
32495 2009-01-25  Bruno Haible  <bruno@clisp.org>
32496
32497         Avoid link errors on MacOS X 10.3.
32498         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32499         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32500
32501 2009-01-25  Bruno Haible  <bruno@clisp.org>
32502
32503         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32504         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32505         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32506         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32507         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32508         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32509         posix_spawnattr_init, posix_spawnattr_setsigmask,
32510         posix_spawnattr_setflags, posix_spawnattr_destroy.
32511
32512         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32513         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32514         * modules/execute (Files): Remove m4/posix_spawn.m4.
32515         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32516         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32517         posix_spawnattr_init, posix_spawnattr_setsigmask,
32518         posix_spawnattr_setflags, posix_spawnattr_destroy.
32519
32520 2009-01-25  Bruno Haible  <bruno@clisp.org>
32521
32522         * lib/glthread/threadlib.c: Include <stdlib.h>.
32523
32524 2009-01-25  Bruno Haible  <bruno@clisp.org>
32525
32526         * lib/glthread/threadlib.c (dummy): New declaration.
32527
32528 2009-01-25  Bruno Haible  <bruno@clisp.org>
32529
32530         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
32531         multibyte characters also for the GB18030 encoding. Don't crash when
32532         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
32533
32534 2009-01-25  Bruno Haible  <bruno@clisp.org>
32535
32536         Avoid redefining 'struct random_data' on OSF/1 5.1.
32537         * lib/stdlib.in.h: Include <random.h> if it exists.
32538         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
32539         HAVE_RANDOM_H. Include <random.h> when testing whether
32540         'struct random_data' exists.
32541         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
32542
32543 2009-01-25  Bruno Haible  <bruno@clisp.org>
32544
32545         Don't install charset.alias on MacOS X >= 10.3.
32546         * lib/localcharset.c (DARWIN7): New macro.
32547         (get_charset_aliases): Hardcode the result for Darwin7.
32548         * modules/localcharset (install-exec-local): Don't install
32549         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
32550
32551 2009-01-25  Bruno Haible  <bruno@clisp.org>
32552
32553         Don't install charset.alias on mingw and Cygwin.
32554         * modules/localcharset (install-exec-local): Don't install
32555         charset.alias on mingw and Cygwin, if the file does not yet exist.
32556         The result for these platforms is hardcoded in localcharset.c.
32557
32558 2009-01-25  Bruno Haible  <bruno@clisp.org>
32559
32560         Make it possible again to use AC_GNU_SOURCE together with gnulib.
32561         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
32562         before requiring AC_USE_SYSTEM_EXTENSIONS.
32563
32564 2009-01-25  Jim Meyering  <meyering@redhat.com>
32565
32566         c-strtod: avoid warnings
32567         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
32568         "assignment discards qualifiers from pointer target type" warnings.
32569
32570 2009-01-24  Bruno Haible  <bruno@clisp.org>
32571
32572         Add support for non-UTF-8 locales on MacOS X.
32573         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
32574         canonical encodings. For Darwin 7 and newer, don't map traditional
32575         encodings to UTF-8.
32576         Reported by Vincent Lefevre <vincent@vinc17.org>
32577         at <http://savannah.gnu.org/bugs/?25235>.
32578
32579 2009-01-24  Bruno Haible  <bruno@clisp.org>
32580
32581         * doc/gnulib.texi (Obsolete modules): New section.
32582         Reported by Mike Frysinger <vapier@gentoo.org>.
32583
32584 2009-01-24  Bruno Haible  <bruno@clisp.org>
32585
32586         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
32587         (%.dvi): New rule.
32588
32589 2009-01-24  Bruno Haible  <bruno@clisp.org>
32590
32591         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
32592         Reported by Eric Blake.
32593
32594 2009-01-24  Bruno Haible  <bruno@clisp.org>
32595
32596         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
32597         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
32598         Reported by Gary V. Vaughan <gary@gnu.org>.
32599
32600 2009-01-24  Bruno Haible  <bruno@clisp.org>
32601
32602         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
32603
32604 2009-01-23  Bruno Haible  <bruno@clisp.org>
32605
32606         Make c-strtod, c-strtold usable in libraries.
32607         * lib/c-strtod.c: Include string.h instead of xalloc.h.
32608         (C_STRTOD): Call strdup instead of xstrdup.
32609         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
32610         * modules/c-strtold (Depends-on): Likewise.
32611         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
32612         * NEWS: Mention the change.
32613         Reported by Michael Gold <mgold@ncf.ca>.
32614
32615 2009-01-23  Jim Meyering  <meyering@redhat.com>
32616
32617         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
32618         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
32619         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
32620
32621 2009-01-23  Simon Josefsson  <simon@josefsson.org>
32622
32623         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
32624         GNU CoreUtils.
32625         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
32626         * modules/version-etc (Description): Update.
32627
32628 2009-01-22  Bruno Haible  <bruno@clisp.org>
32629
32630         Cache the C locale object.
32631         * lib/c-strtod.c (c_locale_cache): New variable.
32632         (c_locale): New function.
32633         (C_STRTOD): Use it, and don't call freelocale.
32634         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
32635         Suggested by Paolo Bonzini.
32636
32637 2009-01-21  Bruno Haible  <bruno@clisp.org>
32638
32639         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
32640         conditions other than overflow.
32641
32642 2009-01-21  Bruno Haible  <bruno@clisp.org>
32643
32644         * lib/c-strtod.c: Include errno.h.
32645         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
32646         value from STRTOD_L and STRTOD.
32647
32648 2009-01-21  Bruno Haible  <bruno@clisp.org>
32649         and Jim Meyering  <meyering@redhat.com>
32650
32651         nanosleep: skip configure test (fail it) for apple universal builds
32652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
32653         universal builds, assume that nanosleep does not work.
32654         * modules/nanosleep (Depends-on): Add multiarch.
32655
32656         mktime: skip configure test (fail it) for apple universal builds
32657         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
32658         universal builds, assume that mktime does not work.
32659         * modules/mktime (Depends-on): Add multiarch.
32660
32661 2009-01-21  Eric Blake  <ebb9@byu.net>
32662
32663         multiarch: avoid expand-before-require warning
32664         * modules/multiarch (configure.ac): Require, rather than expand,
32665         gl_MULTIARCH.
32666         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
32667         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
32668         enforce that all clients require it.  Partial reversion of
32669         2008-12-29 patch.
32670
32671         error: avoid expand-before-require warning
32672         * modules/errno (configure.ac): Require, rather than expand,
32673         gl_HEADER_ERRNO_H.
32674         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
32675         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
32676         enforce that all clients require it.
32677
32678         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
32679         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
32680         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
32681         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
32682
32683 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
32684
32685         Revert:
32686         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32687
32688         regex: do not depend on obsolete modules.
32689         * modules/regex: Remove memcmp and memmove.
32690
32691 2009-01-20  Bruno Haible  <bruno@clisp.org>
32692
32693         Make the 'link' module link on Windows NT 4.
32694         * lib/link.c (_WIN32_WINNT): Don't define.
32695         (CreateHardLinkFuncType): New type.
32696         (CreateHardLinkFunc, initialized): New variables.
32697         (initialize): New function.
32698         (link): Invoke CreateHardLink indirectly through the function pointer.
32699
32700 2009-01-20  Bruno Haible  <bruno@clisp.org>
32701
32702         Fix compilation failure on mingw.
32703         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32704
32705 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32706
32707         * doc/c-strtod.texi: Mention a couple of restrictions.
32708
32709 2009-01-20  Jim Meyering  <meyering@redhat.com>
32710
32711         gettimeofday: move more declarations out of functions
32712         * lib/gettimeofday.c: Move extern declarations of tzset and
32713         gmtime out of containing functions.  Prompted by Bruno Haible.
32714
32715 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32716
32717         regex: do not depend on obsolete modules.
32718         * modules/regex: Remove memcmp and memmove.
32719
32720 2009-01-19  Bruno Haible  <bruno@clisp.org>
32721
32722         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32723         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32724         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32725         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32726         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32727
32728 2009-01-19  Bruno Haible  <bruno@clisp.org>
32729
32730         * tests/test-link.c: Include <errno.h>.
32731         (main): Exit with code 77 when a hard link cannot be created due to
32732         the file system.
32733         * tests/test-link.sh: Skip test when a hard link cannot be created due
32734         to the file system.
32735         Suggested by Eric Blake.
32736
32737 2009-01-19  Martin Lambers  <marlam@marlam.de>
32738
32739         * modules/link-tests: New file.
32740         * tests/test-link.sh: New file.
32741         * tests/test-link.c: New file.
32742
32743 2009-01-19  Eric Blake  <ebb9@byu.net>
32744
32745         doc: mention another function added in cygwin 1.7.0
32746         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32747         Another new function in cygwin 1.7.
32748
32749 2009-01-19  Bruno Haible  <bruno@clisp.org>
32750
32751         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32752         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32753         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32754         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32755         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32756         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32757         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32758         * m4/md4.m4 (gl_MD4): Likewise.
32759         * m4/md5.m4 (gl_MD5): Likewise.
32760         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32761         * m4/sha1.m4 (gl_SHA1): Likewise.
32762         * m4/sha256.m4 (gl_SHA256): Likewise.
32763         * m4/sha512.m4 (gl_SHA512): Likewise.
32764
32765 2009-01-19  Bruno Haible  <bruno@clisp.org>
32766
32767         * modules/uniname/uniname-tests (Depends-on): Add progname.
32768         * tests/uniname/test-uninames.c: Include progname.h.
32769         (main): Call set_program_name.
32770
32771         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32772         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32773         (main): Call set_program_name.
32774
32775         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32776         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32777         (main): Call set_program_name.
32778
32779         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32780         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32781         (main): Call set_program_name.
32782
32783         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32784         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32785         (main): Call set_program_name.
32786
32787         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32788         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32789         (main): Call set_program_name.
32790
32791         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32792         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
32793         (main): Call set_program_name.
32794
32795         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
32796         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
32797         (main): Call set_program_name.
32798
32799         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
32800         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
32801         (main): Call set_program_name.
32802
32803 2009-01-19  Eric Blake  <ebb9@byu.net>
32804
32805         test-unistd: test previous patch
32806         * tests/test-unistd.c: Test *_FILENO macros.
32807
32808         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
32809         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32810         Guarantee a definition.
32811         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
32812         * modules/unistd-safer (Depends-on): Add dependency on unistd.
32813         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
32814         * lib/dup-safer.c (STDERR_FILENO): Likewise.
32815         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32816         Likewise.
32817         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
32818         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
32819         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32820         Likewise.
32821         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
32822         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
32823         (STDERR_FILENO): Likewise.
32824         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
32825         (STDERR_FILENO): Likewise.
32826         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
32827         (STDERR_FILENO): Likewise.
32828         Reported by Elbert Pol.
32829
32830 2009-01-19  Eric Blake  <ebb9@byu.net>
32831
32832         doc: mention more functions added in cygwin 1.7.0
32833         * doc/posix-functions/abort.texi (abort): Update wording related
32834         to cygwin.
32835         * doc/posix-functions/daylight.texi (daylight): Likewise.
32836         * doc/posix-functions/optarg.texi (optarg): Likewise.
32837         * doc/posix-functions/optarg.texi (opterr): Likewise.
32838         * doc/posix-functions/optarg.texi (optind): Likewise.
32839         * doc/posix-functions/optarg.texi (optopt): Likewise.
32840         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
32841         worked in 1.5.x, and was withdrawn in 1.7.
32842         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32843         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
32844         cygwin versions.
32845         * doc/posix-functions/perror.texi (perror): Likewise.
32846         * doc/posix-functions/printf.texi (printf): Likewise.
32847         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
32848         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
32849         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32850         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32851         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32852         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
32853         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32854         Likewise.
32855         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32856         Likewise.
32857         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
32858         this function.
32859         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
32860         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
32861         Likewise.
32862         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
32863         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
32864         * doc/posix-functions/confstr.texi (confstr): Likewise.
32865         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
32866         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
32867         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
32868         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
32869         * doc/posix-functions/fputws.texi (fputws): Likewise.
32870         * doc/posix-functions/fwide.texi (fwide): Likewise.
32871         * doc/posix-functions/getwc.texi (getwc): Likewise.
32872         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
32873         * doc/posix-functions/putwc.texi (putwc): Likewise.
32874         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32875         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
32876         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
32877         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32878         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
32879         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
32880         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
32881         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
32882         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
32883         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
32884         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
32885
32886 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32887
32888         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
32889         * lib/ioctl.c: Include <sys/ioctl.h>.
32890
32891 2009-01-19  Simon Josefsson  <simon@josefsson.org>
32892
32893         * modules/getdate-tests (Depends-on): Add progname.
32894         * tests/test-getdate.c: Use progname module, to avoid link errors
32895         on non-glibc systems.
32896
32897 2009-01-18  Simon Josefsson  <simon@josefsson.org>
32898
32899         * modules/filenamecat-tests (Depends-on): Add progname.
32900         * modules/fstrcmp-tests (Depends-on): Likewise.
32901
32902         * tests/test-filenamecat.c: Use progname module, to avoid link
32903         errors on non-glibc systems.
32904         * tests/test-fstrcmp.c: Likewise.
32905
32906 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32907
32908         gettimeofday: avoid warning: nested extern declaration of 'localtime'
32909         * lib/gettimeofday.c: Move extern declaration out of function.
32910
32911 2009-01-18  Bruno Haible  <bruno@clisp.org>
32912
32913         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
32914         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
32915         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
32916
32917 2009-01-18  Bruno Haible  <bruno@clisp.org>
32918
32919         * lib/strftime.c (MEMPCPY): Remove unused macro.
32920         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
32921
32922 2009-01-18  Martin Lambers  <marlam@marlam.de>
32923
32924         New module 'link'.
32925         * lib/unistd.in.h (link): New declaration.
32926         * lib/link.c: New file.
32927         * m4/link.m4: New file.
32928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
32929         HAVE_LINK.
32930         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
32931         * modules/link: New file.
32932         * doc/posix-functions/link.texi: Mention the new module.
32933
32934 2009-01-18  Bruno Haible  <bruno@clisp.org>
32935
32936         * tests/test-avltree_list.c (main): Call set_program_name.
32937         * tests/test-avltree_oset.c (main): Likewise.
32938         * tests/test-obstack-printf.c: Include progname.h.
32939         (main): Call set_program_name.
32940         * tests/test-quotearg.c: Include progname.h.
32941         (main): Call set_program_name.
32942         * tests/test-xmemdup0.c: Include progname.h.
32943         (main): Call set_program_name.
32944
32945 2009-01-18  Bruno Haible  <bruno@clisp.org>
32946
32947         New module 'alphasort'.
32948         * lib/dirent.in.h (alphasort): New declaration.
32949         * lib/alphasort.c: New file, from glibc with modifications.
32950         * m4/alphasort.m4: New file.
32951         * modules/alphasort: New file.
32952         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
32953         HAVE_ALPHASORT.
32954         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
32955         HAVE_ALPHASORT.
32956         * doc/posix-functions/alphasort.texi: Mention the new module and the
32957         portability problems.
32958
32959 2009-01-18  Bruno Haible  <bruno@clisp.org>
32960
32961         New module 'scandir'.
32962         * lib/dirent.in.h (scandir): New declaration.
32963         * lib/scandir.c: New file, from glibc with modifications.
32964         * m4/scandir.m4: New file.
32965         * modules/scandir: New file.
32966         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
32967         HAVE_SCANDIR.
32968         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
32969         HAVE_SCANDIR.
32970         * doc/posix-functions/scandir.texi: Mention the new module and the
32971         portability problems.
32972
32973 2009-01-17  Bruno Haible  <bruno@clisp.org>
32974
32975         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
32976         Update documentation.
32977         (func_remove_suffix): Escape all dots in the suffix. Update
32978         documentation.
32979         (func_filter_filelist): Update documentation.
32980         Reported by Ralf Wildenhues.
32981
32982 2009-01-17  Bruno Haible  <bruno@clisp.org>
32983
32984         * modules/dprintf-posix-tests: New file.
32985         * tests/test-dprintf-posix.sh: New file.
32986         * tests/test-dprintf-posix.c: New file.
32987
32988         New modules 'dprintf', 'dprintf-posix'.
32989         * lib/stdio.in.h (dprintf): New declaration.
32990         * lib/dprintf.c: New file.
32991         * m4/dprintf.m4: New file.
32992         * m4/dprintf-posix.m4: New file.
32993         * modules/dprintf: New file.
32994         * modules/dprintf-posix: New file.
32995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
32996         HAVE_DPRINTF, REPLACE_DPRINTF.
32997         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
32998         HAVE_DPRINTF, REPLACE_DPRINTF.
32999         * doc/posix-functions/dprintf.texi: Mention the new modules.
33000
33001 2009-01-17  Bruno Haible  <bruno@clisp.org>
33002
33003         * modules/vdprintf-posix-tests: New file.
33004         * tests/test-vdprintf-posix.sh: New file.
33005         * tests/test-vdprintf-posix.c: New file.
33006
33007         New modules 'vdprintf', 'vdprintf-posix'.
33008         * lib/stdio.in.h (vdprintf): New declaration.
33009         * lib/vdprintf.c: New file.
33010         * m4/vdprintf.m4: New file.
33011         * m4/vdprintf-posix.m4: New file.
33012         * modules/vdprintf: New file.
33013         * modules/vdprintf-posix: New file.
33014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33015         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33016         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33017         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33018         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33019
33020 2009-01-17  Bruno Haible  <bruno@clisp.org>
33021
33022         Fix replacement of fopen on mingw.
33023         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33024         mingw.
33025
33026 2009-01-17  Bruno Haible  <bruno@clisp.org>
33027
33028         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33029         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33030
33031 2009-01-17  Bruno Haible  <bruno@clisp.org>
33032
33033         Avoid test-fflush2.sh failure on mingw.
33034         * tests/test-fflush2.c: Include binary-io.h.
33035         (main): Put standard input into binary mode.
33036         * modules/fflush-tests (Depends-on): Add binary-io.
33037
33038 2009-01-17  Bruno Haible  <bruno@clisp.org>
33039
33040         * lib/wchar.in.h: In another particular situation, include only the
33041         system's <wchar.h> file.
33042         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33043         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33044         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33045
33046 2009-01-17  Bruno Haible  <bruno@clisp.org>
33047
33048         Support for stripping executables in --enable-relocatable.
33049         * build-aux/install-reloc: Expect one more argument, or an environment
33050         variable RELOC_STRIP_PROG. If set, strip the destination program and
33051         its wrapper.
33052         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33053         RELOC_STRIP_PROG.
33054         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33055         to set RELOCATABLE_STRIP.
33056         * NEWS: Mention the new Makefile requirement.
33057
33058 2009-01-17  Bruno Haible  <bruno@clisp.org>
33059
33060         * build-aux/install-reloc: Remove debugging information left over by
33061         C compiler on MacOS X.
33062
33063 2009-01-17  Bruno Haible  <bruno@clisp.org>
33064
33065         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33066         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33067         _NSGetExecutablePath.
33068
33069 2009-01-16  Jim Meyering  <meyering@redhat.com>
33070
33071         strerror: avoid warnings about discarding "const"
33072         * lib/strerror.c (rpl_strerror): Instead of returning a const
33073         string from each and every "case", use a variable, and add a single
33074         cast after the switch.
33075
33076 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33077
33078         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33079
33080 2009-01-16  Bruno Haible  <bruno@clisp.org>
33081
33082         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33083         array initializer syntax that also works in C++ mode.
33084         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33085
33086 2009-01-16  Jim Meyering  <meyering@redhat.com>
33087
33088         poll: suppress a warning
33089         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33090         to ignore "...unsigned expression < 0 is always false" warnings.
33091
33092 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33093
33094         poll: remove declarations of unused variables
33095         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33096         sockbuf and optlen.
33097
33098 2009-01-15  Bruno Haible  <bruno@clisp.org>
33099
33100         Make fflush-after-ungetc POSIX compliant on BSD systems.
33101         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33102         (clear_ungetc_buffer): Implement also for other systems.
33103         (rpl_fflush): On glibc systems, invoke
33104         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33105         clear_ungetc_buffer after fetching the stream's position, not before.
33106
33107 2009-01-15  Bruno Haible  <bruno@clisp.org>
33108
33109         Make fflush-after-ungetc POSIX compliant on glibc systems.
33110         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33111         after ungetc.
33112         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33113         (rpl_fflush): On glibc systems, simply call the system's fflush
33114         function after clearing the ungetc buffer.
33115         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33116         Instead, lseek only to the end of file, then use the system's fseeko
33117         for the rest. On glibc systems, reset the EOF indicator bit.
33118
33119 2009-01-15  Jim Meyering  <meyering@redhat.com>
33120
33121         openmp.m4: revert quote-adding change, for portability to older autoconf
33122         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33123         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33124         Simon Josefsson noticed the problem when using autoconf-2.61.
33125
33126 2009-01-15  Bruno Haible  <bruno@clisp.org>
33127
33128         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33129         * tests/test-fflush2.c (ASSERT): Always fail.
33130         (main): Add two tests for fflush() after ungetc(), taking into account
33131         the Austin Group's clarification.
33132         Suggested by Eric Blake.
33133
33134 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33135
33136         mktime.m4: remove K&R-style function prototypes
33137         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33138         for the Sun C++ compiler.
33139
33140 2009-01-14  Bruno Haible  <bruno@clisp.org>
33141
33142         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33143         while including <wchar.h>.
33144         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33145         the system's <wchar.h> file.
33146         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33147
33148 2009-01-14  Bruno Haible  <bruno@clisp.org>
33149
33150         * m4/csharp.m4: Don't mention gettext on the serial number line.
33151         * m4/csharpexec.m4: Likewise.
33152         * m4/eaccess.m4: Likewise.
33153         * m4/javaexec.m4: Likewise.
33154         * m4/sig_atomic_t.m4: Likewise.
33155         * m4/tmpdir.m4: Likewise.
33156         * m4/intldir.m4: Bump gettext version.
33157         * m4/lib-ld.m4: Likewise.
33158
33159 2009-01-14  Bruno Haible  <bruno@clisp.org>
33160
33161         * lib/progname.c (set_program_name): Add more comments.
33162         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33163
33164 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33165
33166         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33167         were sys/stat.h does not define it.
33168
33169 2009-01-14  Jim Meyering  <meyering@redhat.com>
33170
33171         many *.m4 files: improve m4 quoting
33172         99% of this change was performed by running the following commands:
33173         git ls-files | grep '\.m4$' | xargs perl -pi \
33174           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33175           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33176           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33177           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33178         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33179         The remainder were to add Copyright dates, increment serial numbers,
33180         undo some changes in comments, exclude m4/intl.m4, and add quotes
33181         around the "1" in ",1" where the unusual spacing prohibited the
33182         above regexps from doing the job.  For more details, see
33183         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33184         * m4/acl.m4: Modified.
33185         * m4/afs.m4: Likewise.
33186         * m4/alloca.m4: Likewise.
33187         * m4/argp.m4: Likewise.
33188         * m4/argz.m4: Likewise.
33189         * m4/atexit.m4: Likewise.
33190         * m4/bison-i18n.m4: Likewise.
33191         * m4/bison.m4: Likewise.
33192         * m4/byteswap.m4: Likewise.
33193         * m4/c-stack.m4: Likewise.
33194         * m4/c-strtod.m4: Likewise.
33195         * m4/calloc.m4: Likewise.
33196         * m4/canonicalize-lgpl.m4: Likewise.
33197         * m4/chown.m4: Likewise.
33198         * m4/clock_time.m4: Likewise.
33199         * m4/codeset.m4: Likewise.
33200         * m4/copy-file.m4: Likewise.
33201         * m4/csharp.m4: Likewise.
33202         * m4/csharpcomp.m4: Likewise.
33203         * m4/csharpexec.m4: Likewise.
33204         * m4/d-ino.m4: Likewise.
33205         * m4/d-type.m4: Likewise.
33206         * m4/dirfd.m4: Likewise.
33207         * m4/double-slash-root.m4: Likewise.
33208         * m4/eaccess.m4: Likewise.
33209         * m4/eealloc.m4: Likewise.
33210         * m4/environ.m4: Likewise.
33211         * m4/errno_h.m4: Likewise.
33212         * m4/euidaccess.m4: Likewise.
33213         * m4/execute.m4: Likewise.
33214         * m4/fatal-signal.m4: Likewise.
33215         * m4/fchdir.m4: Likewise.
33216         * m4/fcntl_h.m4: Likewise.
33217         * m4/fileblocks.m4: Likewise.
33218         * m4/filenamecat.m4: Likewise.
33219         * m4/findprog.m4: Likewise.
33220         * m4/flexmember.m4: Likewise.
33221         * m4/fnmatch.m4: Likewise.
33222         * m4/fopen.m4: Likewise.
33223         * m4/fpending.m4: Likewise.
33224         * m4/fprintf-posix.m4: Likewise.
33225         * m4/free.m4: Likewise.
33226         * m4/frexp.m4: Likewise.
33227         * m4/frexpl.m4: Likewise.
33228         * m4/fsusage.m4: Likewise.
33229         * m4/ftruncate.m4: Likewise.
33230         * m4/gc-camellia.m4: Likewise.
33231         * m4/gc-random.m4: Likewise.
33232         * m4/gc.m4: Likewise.
33233         * m4/getaddrinfo.m4: Likewise.
33234         * m4/getcwd-abort-bug.m4: Likewise.
33235         * m4/getcwd-path-max.m4: Likewise.
33236         * m4/getdate.m4: Likewise.
33237         * m4/getdomainname.m4: Likewise.
33238         * m4/getgroups.m4: Likewise.
33239         * m4/gethostname.m4: Likewise.
33240         * m4/gethrxtime.m4: Likewise.
33241         * m4/getline.m4: Likewise.
33242         * m4/getloadavg.m4: Likewise.
33243         * m4/getndelim2.m4: Likewise.
33244         * m4/getpass.m4: Likewise.
33245         * m4/gettext.m4: Likewise.
33246         * m4/gettime.m4: Likewise.
33247         * m4/gettimeofday.m4: Likewise.
33248         * m4/gnulib-common.m4: Likewise.
33249         * m4/group-member.m4: Likewise.
33250         * m4/host-os.m4: Likewise.
33251         * m4/iconv.m4: Likewise.
33252         * m4/iconv_open.m4: Likewise.
33253         * m4/inet_ntop.m4: Likewise.
33254         * m4/inet_pton.m4: Likewise.
33255         * m4/inline.m4: Likewise.
33256         * m4/intldir.m4: Likewise.
33257         * m4/intlmacosx.m4: Likewise.
33258         * m4/intmax.m4: Likewise.
33259         * m4/intmax_t.m4: Likewise.
33260         * m4/inttypes.m4: Likewise.
33261         * m4/inttypes_h.m4: Likewise.
33262         * m4/inttypes-pri.m4: Likewise.
33263         * m4/isapipe.m4: Likewise.
33264         * m4/isnand.m4: Likewise.
33265         * m4/isnanf.m4: Likewise.
33266         * m4/isnanl.m4: Likewise.
33267         * m4/javacomp.m4: Likewise.
33268         * m4/javaexec.m4: Likewise.
33269         * m4/jm-winsz1.m4: Likewise.
33270         * m4/jm-winsz2.m4: Likewise.
33271         * m4/lchown.m4: Likewise.
33272         * m4/lcmessage.m4: Likewise.
33273         * m4/ldexpl.m4: Likewise.
33274         * m4/lib-ld.m4: Likewise.
33275         * m4/lib-link.m4: Likewise.
33276         * m4/libsigsegv.m4: Likewise.
33277         * m4/link-follow.m4: Likewise.
33278         * m4/localcharset.m4: Likewise.
33279         * m4/locale-fr.m4: Likewise.
33280         * m4/locale-ja.m4: Likewise.
33281         * m4/locale-tr.m4: Likewise.
33282         * m4/locale-zh.m4: Likewise.
33283         * m4/lock.m4: Likewise.
33284         * m4/longlong.m4: Likewise.
33285         * m4/ls-mntd-fs.m4: Likewise.
33286         * m4/lstat.m4: Likewise.
33287         * m4/malloc.m4: Likewise.
33288         * m4/mathl.m4: Likewise.
33289         * m4/mbrtowc.m4: Likewise.
33290         * m4/mbstate_t.m4: Likewise.
33291         * m4/mbswidth.m4: Likewise.
33292         * m4/memchr.m4: Likewise.
33293         * m4/memcmp.m4: Likewise.
33294         * m4/memcpy.m4: Likewise.
33295         * m4/memmem.m4: Likewise.
33296         * m4/memmove.m4: Likewise.
33297         * m4/mempcpy.m4: Likewise.
33298         * m4/memrchr.m4: Likewise.
33299         * m4/memset.m4: Likewise.
33300         * m4/minmax.m4: Likewise.
33301         * m4/mkdir-slash.m4: Likewise.
33302         * m4/mkdtemp.m4: Likewise.
33303         * m4/mktime.m4: Likewise.
33304         * m4/mmap-anon.m4: Likewise.
33305         * m4/mountlist.m4: Likewise.
33306         * m4/nanosleep.m4: Likewise.
33307         * m4/nls.m4: Likewise.
33308         * m4/nocrash.m4: Likewise.
33309         * m4/open.m4: Likewise.
33310         * m4/openat.m4: Likewise.
33311         * m4/openmp.m4: Likewise.
33312         * m4/pathmax.m4: Likewise.
33313         * m4/perl.m4: Likewise.
33314         * m4/physmem.m4: Likewise.
33315         * m4/pipe.m4: Likewise.
33316         * m4/po.m4: Likewise.
33317         * m4/poll.m4: Likewise.
33318         * m4/posixtm.m4: Likewise.
33319         * m4/posixver.m4: Likewise.
33320         * m4/printf-frexp.m4: Likewise.
33321         * m4/printf-frexpl.m4: Likewise.
33322         * m4/printf-posix.m4: Likewise.
33323         * m4/printf-posix-rpl.m4: Likewise.
33324         * m4/printf.m4: Likewise.
33325         * m4/progtest.m4: Likewise.
33326         * m4/putenv.m4: Likewise.
33327         * m4/readline.m4: Likewise.
33328         * m4/readlink.m4: Likewise.
33329         * m4/readutmp.m4: Likewise.
33330         * m4/realloc.m4: Likewise.
33331         * m4/regex.m4: Likewise.
33332         * m4/relocatable.m4: Likewise.
33333         * m4/relocatable-lib.m4: Likewise.
33334         * m4/rename-dest-slash.m4: Likewise.
33335         * m4/rename.m4: Likewise.
33336         * m4/rmdir-errno.m4: Likewise.
33337         * m4/rmdir.m4: Likewise.
33338         * m4/roundf.m4: Likewise.
33339         * m4/roundl.m4: Likewise.
33340         * m4/rpmatch.m4: Likewise.
33341         * m4/save-cwd.m4: Likewise.
33342         * m4/selinux-selinux-h.m4: Likewise.
33343         * m4/setenv.m4: Likewise.
33344         * m4/settime.m4: Likewise.
33345         * m4/sig2str.m4: Likewise.
33346         * m4/sig_atomic_t.m4: Likewise.
33347         * m4/signalblocking.m4: Likewise.
33348         * m4/signbit.m4: Likewise.
33349         * m4/sigpipe.m4: Likewise.
33350         * m4/sockets.m4: Likewise.
33351         * m4/sockpfaf.m4: Likewise.
33352         * m4/st_dm_mode.m4: Likewise.
33353         * m4/stat-time.m4: Likewise.
33354         * m4/stdbool.m4: Likewise.
33355         * m4/stdint.m4: Likewise.
33356         * m4/stdint_h.m4: Likewise.
33357         * m4/stpcpy.m4: Likewise.
33358         * m4/stpncpy.m4: Likewise.
33359         * m4/strcase.m4: Likewise.
33360         * m4/strchrnul.m4: Likewise.
33361         * m4/strcspn.m4: Likewise.
33362         * m4/strdup.m4: Likewise.
33363         * m4/strftime.m4: Likewise.
33364         * m4/strndup.m4: Likewise.
33365         * m4/strnlen.m4: Likewise.
33366         * m4/strpbrk.m4: Likewise.
33367         * m4/strptime.m4: Likewise.
33368         * m4/strsep.m4: Likewise.
33369         * m4/strtod.m4: Likewise.
33370         * m4/strtoimax.m4: Likewise.
33371         * m4/strtok_r.m4: Likewise.
33372         * m4/strtol.m4: Likewise.
33373         * m4/strtoll.m4: Likewise.
33374         * m4/strtoul.m4: Likewise.
33375         * m4/strtoull.m4: Likewise.
33376         * m4/strtoumax.m4: Likewise.
33377         * m4/strverscmp.m4: Likewise.
33378         * m4/threadlib.m4: Likewise.
33379         * m4/timegm.m4: Likewise.
33380         * m4/tm_gmtoff.m4: Likewise.
33381         * m4/tmpdir.m4: Likewise.
33382         * m4/tmpfile.m4: Likewise.
33383         * m4/tzset.m4: Likewise.
33384         * m4/uintmax_t.m4: Likewise.
33385         * m4/unlinkdir.m4: Likewise.
33386         * m4/unlocked-io.m4: Likewise.
33387         * m4/uptime.m4: Likewise.
33388         * m4/userspec.m4: Likewise.
33389         * m4/utimbuf.m4: Likewise.
33390         * m4/utime.m4: Likewise.
33391         * m4/utimes-null.m4: Likewise.
33392         * m4/utimes.m4: Likewise.
33393         * m4/vararrays.m4: Likewise.
33394         * m4/vasnprintf.m4: Likewise.
33395         * m4/vfprintf-posix.m4: Likewise.
33396         * m4/vprintf-posix.m4: Likewise.
33397         * m4/wait-process.m4: Likewise.
33398         * m4/wchar_t.m4: Likewise.
33399         * m4/wint_t.m4: Likewise.
33400         * m4/write-any-file.m4: Likewise.
33401         * m4/yield.m4: Likewise.
33402
33403 2009-01-13  Bruno Haible  <bruno@clisp.org>
33404
33405         Avoid test-copy-file.sh failures when ACL support insufficient.
33406         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33407         TESTS_ENVIRONMENT.
33408         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33409         Reported by Jim Meyering.
33410
33411 2009-01-13  Bruno Haible  <bruno@clisp.org>
33412
33413         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33414         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33415         * modules/unistdio/u8-printf-parse (Files): Likewise.
33416         * modules/unistdio/u32-printf-parse (Files): Likewise.
33417         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33418
33419 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33420
33421         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33422         and m4/inttypes_h.m4 too.
33423
33424 2009-01-12  Eric Blake  <ebb9@byu.net>
33425
33426         tests: IRIX 6.2 cc can't compile -0.0 into .data
33427         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33428         rather than at compile-time.
33429         * tests/test-floorl.c (minus_zero): Likewise.
33430         * tests/test-frexpl.c (minus_zero): Likewise.
33431         * tests/test-isnan.c (minus_zerol): Likewise.
33432         * tests/test-isnanl.h (minus_zero): Likewise.
33433         * tests/test-ldexpl.c (minus_zero): Likewise.
33434         * tests/test-roundl.c (minus_zero): Likewise.
33435         * tests/test-signbit.c (minus_zerol): Likewise.
33436         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33437         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33438         * tests/test-truncl.c (minus_zero): Likewise.
33439         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33440         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33441         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33442
33443 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33444
33445         regex: fix glibc bug 9697
33446         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33447         handling.
33448
33449 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33450
33451         regex: fix glibc bug 697
33452         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33453         being NULL also if there are no backreferences.
33454
33455 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33456
33457         regex: merge glibc changes
33458         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33459         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33460         re_string_skip_chars, re_string_reconstruct): Likewise.
33461         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33462
33463 2009-01-07  Jim Meyering  <meyering@redhat.com>
33464
33465         poll: filter through cppi
33466         * lib/poll.c: Indent cpp directives to reflect nesting.
33467
33468 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33469
33470         poll: don't return uninitialized
33471         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33472
33473 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33474
33475         avoid compile failure on AIX 6.1
33476         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33477         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33478
33479 2009-01-04  Jim Meyering  <meyering@redhat.com>
33480
33481         remove duplicate inclusion of <stdio.h>
33482         * tests/test-fprintf-posix.c: Likewise.
33483         * tests/test-printf-posix.c: Likewise.
33484         * tests/test-snprintf-posix.c: Likewise.
33485         * tests/test-sprintf-posix.c: Likewise.
33486         * tests/test-vasprintf-posix.c: Likewise.
33487         * tests/test-vfprintf-posix.c: Likewise.
33488         * tests/test-vprintf-posix.c: Likewise.
33489         * tests/test-vsnprintf-posix.c: Likewise.
33490         * tests/test-vsprintf-posix.c: Likewise.
33491
33492 2009-01-03  Jim Meyering  <meyering@redhat.com>
33493
33494         gnulib-tool: fix sed-based filtering
33495         * gnulib-tool (func_filter_filelist): Remove extra backslash
33496         in sed_fff_filter definition.
33497
33498 2009-01-02  Jim Meyering  <meyering@redhat.com>
33499
33500         strftime: avoid compilation failure on Solaris 2.6
33501         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33502         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33503         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33504         be available.  Reported by Tom G. Christensen.  Details in
33505         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33506
33507 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33508             Bruno Haible  <bruno@clisp.org>
33509
33510         Speed up gnulib-tool by doing more string processing through shell
33511         built-ins.
33512         * gnulib-tool (fast_func_append): New variable.
33513         (func_remove_prefix, func_remove_suffix): New functions.
33514         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33515         (func_filter_filelist): New function.
33516         (func_get_dependencies): Use func_remove_suffix instead of sed.
33517         (func_get_automake_snippet): Use func_filter_filelist instead of a
33518         subshell and sed invocation.
33519
33520 2009-01-01  Bruno Haible  <bruno@clisp.org>
33521
33522         Fix a security bug.
33523         * gnulib-tool (func_import, import, update): Don't allow the characters
33524         '"', '$', '`', '\' in macro arguments that become part of commands that
33525         are evaluated.
33526
33527 2009-01-01  Bruno Haible  <bruno@clisp.org>
33528
33529         * gnulib-tool (func_reset_sigpipe): Add more comments.
33530
33531 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33532
33533         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
33534         func_emit_tests_Makefile_am, func_import): Abort loops early if we
33535         already know the answer.
33536
33537 2009-01-01  Jim Meyering  <meyering@redhat.com>
33538
33539         * lib/version-etc.c (version_etc_va): Update copyright year.
33540
33541 2008-12-30  Bruno Haible  <bruno@clisp.org>
33542
33543         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
33544         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
33545         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
33546
33547 2008-12-29  Eric Blake  <ebb9@byu.net>
33548
33549         multiarch: avoid autoconf AC_REQUIRE bug
33550         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
33551         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
33552         2.63 and older.
33553         Reported by Bruno Haible, and analyzed in
33554         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
33555
33556 2008-12-29  Bruno Haible  <bruno@clisp.org>
33557
33558         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
33559         files in subdirectories correctly.
33560         Reported by Ralf Wildenhues.
33561
33562 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33563
33564         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
33565         rather than 'join FILE -', for Solaris join.
33566
33567 2008-12-29  Bruno Haible  <bruno@clisp.org>
33568
33569         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
33570         quoting.
33571         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33572         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
33573         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
33574         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
33575         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
33576         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33577         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33578         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
33579         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33580         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
33581         * m4/nls.m4 (AM_NLS): Likewise.
33582         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
33583         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
33584         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33585         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
33586         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
33587         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
33588         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
33589         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
33590         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
33591         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33592         * m4/xsize.m4 (gl_XSIZE): Likewise.
33593         Suggested by Jim Meyering.
33594
33595 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33596
33597         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
33598         * lib/parse-duration.c: use a switch instead of cascading if's.
33599
33600 2008-12-29  Eric Blake  <ebb9@byu.net>
33601
33602         wchar.h: supply WEOF on Irix 5.3
33603         * lib/wchar.in.h (wint_t): Also supply WEOF.
33604         * lib/wctype.in.h (wint_t): Likewise.
33605         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
33606         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
33607         Reported by Tom G. Christensen.
33608
33609 2008-12-26  Bruno Haible  <bruno@clisp.org>
33610
33611         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
33612         i486, i586, i686.
33613
33614 2008-12-26  Bruno Haible  <bruno@clisp.org>
33615
33616         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
33617
33618 2008-12-26  Bruno Haible  <bruno@clisp.org>
33619
33620         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
33621         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
33622         not __STDC_CONSTANT_MACROS.
33623         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33624
33625 2008-12-25  Bruno Haible  <bruno@clisp.org>
33626
33627         Add support for universal builds to vasnprintf.
33628         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
33629         universal builds, guess no.
33630         * modules/vasnprintf-posix (Depends-on): Add multiarch.
33631         * modules/vasprintf-posix (Depends-on): Likewise.
33632         * modules/fprintf-posix (Depends-on): Likewise.
33633         * modules/vfprintf-posix (Depends-on): Likewise.
33634         * modules/snprintf-posix (Depends-on): Likewise.
33635         * modules/vsnprintf-posix (Depends-on): Likewise.
33636         * modules/sprintf-posix (Depends-on): Likewise.
33637         * modules/vsprintf-posix (Depends-on): Likewise.
33638         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33639         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33640         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33641         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33642         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33643         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33644         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33645
33646         Add support for universal builds to <inttypes.h>.
33647         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
33648         _SCNu64_PREFIX): In Apple
33649         universal builds, define directly, using _LP64.
33650         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
33651         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
33652         * modules/inttypes (Depends-on): Add multiarch.
33653         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33654
33655         Add support for universal builds to <stdint.h>.
33656         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
33657         universal builds, define directly, using _LP64.
33658         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
33659         Apple universal builds, don't test for the size and suffix of ptrdiff_t
33660         and size_t.
33661         * modules/stdint (Depends-on): Add multiarch.
33662         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33663
33664         New module 'multiarch'.
33665         * modules/multiarch: New file.
33666         * m4/multiarch.m4: New file.
33667
33668 2008-12-25  Bruno Haible  <bruno@clisp.org>
33669
33670         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
33671
33672 2008-12-25  Bruno Haible  <bruno@clisp.org>
33673
33674         * modules/btowc (License): Relicense under LGPLv2+.
33675         * modules/mbsinit (License): Likewise.
33676         * modules/mbrtowc (License): Likewise.
33677         * modules/wcrtomb (License): Likewise.
33678         * modules/streq (License): Likewise.
33679         Reported by David Lutterkort <lutter@redhat.com>.
33680
33681 2008-12-23  Bruno Haible  <bruno@clisp.org>
33682
33683         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
33684
33685 2008-12-23  Bruno Haible  <bruno@clisp.org>
33686
33687         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
33688         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
33689         GETADDRINFO_LIB, not in LIBS.
33690         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33691         * modules/canon-host (Link): Likewise.
33692         * NEWS: Mention the change.
33693         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33694         GETADDRINFO_LIB.
33695
33696 2008-12-22  Bruno Haible  <bruno@clisp.org>
33697
33698         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33699         * doc/posix-functions/iswalpha_l.texi: Likewise.
33700         * doc/posix-functions/iswblank_l.texi: Likewise.
33701         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33702         * doc/posix-functions/iswctype_l.texi: Likewise.
33703         * doc/posix-functions/iswdigit_l.texi: Likewise.
33704         * doc/posix-functions/iswgraph_l.texi: Likewise.
33705         * doc/posix-functions/iswlower_l.texi: Likewise.
33706         * doc/posix-functions/iswprint_l.texi: Likewise.
33707         * doc/posix-functions/iswpunct_l.texi: Likewise.
33708         * doc/posix-functions/iswspace_l.texi: Likewise.
33709         * doc/posix-functions/iswupper_l.texi: Likewise.
33710         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33711         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33712         * doc/posix-functions/open_wmemstream.texi: Likewise.
33713         * doc/posix-functions/swscanf.texi: Likewise.
33714         * doc/posix-functions/towctrans_l.texi: Likewise.
33715         * doc/posix-functions/towlower.texi: Likewise.
33716         * doc/posix-functions/towlower_l.texi: Likewise.
33717         * doc/posix-functions/towupper.texi: Likewise.
33718         * doc/posix-functions/towupper_l.texi: Likewise.
33719         * doc/posix-functions/vfwprintf.texi: Likewise.
33720         * doc/posix-functions/vfwscanf.texi: Likewise.
33721         * doc/posix-functions/vswscanf.texi: Likewise.
33722         * doc/posix-functions/vwprintf.texi: Likewise.
33723         * doc/posix-functions/vwscanf.texi: Likewise.
33724         * doc/posix-functions/wcpcpy.texi: Likewise.
33725         * doc/posix-functions/wcpncpy.texi: Likewise.
33726         * doc/posix-functions/wcscasecmp.texi: Likewise.
33727         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33728         * doc/posix-functions/wcscoll_l.texi: Likewise.
33729         * doc/posix-functions/wcsdup.texi: Likewise.
33730         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33731         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33732         * doc/posix-functions/wcsnlen.texi: Likewise.
33733         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33734         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33735         * doc/posix-functions/wctrans_l.texi: Likewise.
33736         * doc/posix-functions/wctype_l.texi: Likewise.
33737         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33738         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33739         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33740         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33741         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33742         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33743         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33744         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33745         * doc/glibc-functions/wcschrnul.texi: Likewise.
33746         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33747         * doc/glibc-functions/wcstod_l.texi: Likewise.
33748         * doc/glibc-functions/wcstof_l.texi: Likewise.
33749         * doc/glibc-functions/wcstol_l.texi: Likewise.
33750         * doc/glibc-functions/wcstold_l.texi: Likewise.
33751         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33752         * doc/glibc-functions/wcstoq.texi: Likewise.
33753         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33754         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33755         * doc/glibc-functions/wcstouq.texi: Likewise.
33756         * doc/glibc-functions/wmempcpy.texi: Likewise.
33757
33758 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33759             Eric Blake  <ebb9@byu.net>
33760             Paolo Bonzini  <bonzini@gnu.org>
33761             Bruno Haible  <bruno@clisp.org>
33762
33763         Make c-stack work on Haiku.
33764         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33765         (c_stack_action): Use SA_ONSTACK flag.
33766
33767 2008-12-22  Bruno Haible  <bruno@clisp.org>
33768
33769         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33770
33771 2008-12-22  Bruno Haible  <bruno@clisp.org>
33772
33773         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33774         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33775         being overridden.
33776         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33777         New macros.
33778         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33779         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33780         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33781         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33782
33783 2008-12-22  Bruno Haible  <bruno@clisp.org>
33784
33785         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33786         from test code.
33787
33788 2008-12-22  Eric Blake  <ebb9@byu.net>
33789
33790         Avoid gcc warnings on cygwin.
33791         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33792         Avoid unused variable.
33793         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
33794         Likewise.
33795
33796 2008-12-22  Bruno Haible  <bruno@clisp.org>
33797
33798         Remove HAVE_MBRTOWC conditionals.
33799         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
33800         (mbscasecmp): Assume mbrtowc function.
33801         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
33802         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
33803         * lib/mbschr.c: Include mbuiter.h unconditionally.
33804         (mbschr): Assume mbrtowc function.
33805         * lib/mbscspn.c: Include mbuiter.h unconditionally.
33806         (mbscspn): Assume mbrtowc function.
33807         * lib/mbslen.c: Include mbuiter.h unconditionally.
33808         (mbslen): Assume mbrtowc function.
33809         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
33810         (mbsncasecmp): Assume mbrtowc function.
33811         * lib/mbsnlen.c: Include mbiter.h unconditionally.
33812         (mbsnlen): Assume mbrtowc function.
33813         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
33814         (mbspbrk): Assume mbrtowc function.
33815         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
33816         (mbspcasecmp): Assume mbrtowc function.
33817         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
33818         (mbsrchr): Assume mbrtowc function.
33819         * lib/mbssep.c: Include mbuiter.h unconditionally.
33820         (mbssep): Assume mbrtowc function.
33821         * lib/mbsspn.c: Include mbuiter.h unconditionally.
33822         (mbsspn): Assume mbrtowc function.
33823         * lib/mbsstr.c: Include mbuiter.h unconditionally.
33824         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
33825         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
33826         (mbstok_r): Assume mbrtowc function.
33827         * lib/propername.c: Include mbuiter.h unconditionally.
33828         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
33829         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
33830         (trim2): Assume mbrtowc function.
33831         * lib/mbswidth.c (mbsinit): Remove fallback definition.
33832         (mbsnwidth): Assume mbrtowc function.
33833         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
33834         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
33835         fallback definitions.
33836         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
33837
33838 2008-12-22  Bruno Haible  <bruno@clisp.org>
33839
33840         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
33841
33842 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
33843
33844         * modules/regex: Request emulations for the mb*/wc* functions we need.
33845         * m4/regex.m4: Don't look for those functions here.
33846         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
33847
33848 2008-12-22  Bruno Haible  <bruno@clisp.org>
33849
33850         * modules/fnmatch (Depends-on): Remove duplicated dependency.
33851
33852 2008-12-21  Bruno Haible  <bruno@clisp.org>
33853
33854         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
33855         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
33856         (Include): Remove conditionalization.
33857         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
33858         (Include): Remove conditionalization.
33859         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
33860         (Include): Remove conditionalization.
33861         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
33862         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33863         * NEWS: Mention the change.
33864         Reported by Alan Hourihane <alanh@fairlite.co.uk>
33865         via Sergey Poznyakoff <gray@gnu.org.ua>.
33866
33867 2008-12-21  Bruno Haible  <bruno@clisp.org>
33868
33869         * MODULES.html.sh (Extended multibyte and wide character utilities
33870         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
33871         wcrtomb, wcsrtombs.
33872         (Support for systems lacking POSIX:2008): Add accept, bind, close,
33873         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
33874         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
33875         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
33876
33877 2008-12-21  Bruno Haible  <bruno@clisp.org>
33878
33879         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
33880
33881 2008-12-21  Bruno Haible  <bruno@clisp.org>
33882
33883         * modules/wcsnrtombs-tests: New file.
33884         * tests/test-wcsnrtombs1.sh: New file.
33885         * tests/test-wcsnrtombs2.sh: New file.
33886         * tests/test-wcsnrtombs3.sh: New file.
33887         * tests/test-wcsnrtombs4.sh: New file.
33888         * tests/test-wcsnrtombs.c: New file.
33889
33890         New module 'wcsnrtombs'.
33891         * lib/wchar.in.h (wcsnrtombs): New declaration.
33892         * lib/wcsnrtombs.c: New file.
33893         * lib/wcsrtombs-state.c: New file.
33894         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
33895         (internal_state): Remove variable.
33896         * m4/wcsnrtombs.m4: New file.
33897         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
33898         compilation units.
33899         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
33900         HAVE_WCSNRTOMBS.
33901         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
33902         HAVE_WCSNRTOMBS.
33903         * modules/wcsnrtombs: New file.
33904         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
33905         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
33906
33907 2008-12-21  Bruno Haible  <bruno@clisp.org>
33908
33909         * modules/wcsrtombs-tests: New file.
33910         * tests/test-wcsrtombs1.sh: New file.
33911         * tests/test-wcsrtombs2.sh: New file.
33912         * tests/test-wcsrtombs3.sh: New file.
33913         * tests/test-wcsrtombs4.sh: New file.
33914         * tests/test-wcsrtombs.c: New file.
33915
33916         New module 'wcsrtombs'.
33917         * lib/wchar.in.h (wcsrtombs): New declaration.
33918         * lib/wcsrtombs.c: New file.
33919         * m4/wcsrtombs.m4: New file.
33920         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
33921         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33922         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
33923         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33924         * modules/wcsrtombs: New file.
33925         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
33926         bugs.
33927
33928 2008-12-21  Bruno Haible  <bruno@clisp.org>
33929
33930         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
33931         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
33932         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
33933         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
33934         if not correct.
33935         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
33936         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
33937         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33938         m4/locale-zh.m4, m4/codeset.m4.
33939         * doc/posix-functions/wcrtomb.texi: Document the bug.
33940
33941 2008-12-21  Bruno Haible  <bruno@clisp.org>
33942
33943         Work around a btowc() bug on IRIX 6.5.
33944         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
33945         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
33946         REPLACE_WTOBC if not.
33947         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
33948         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
33949         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
33950
33951 2008-12-21  Bruno Haible  <bruno@clisp.org>
33952
33953         * modules/wcrtomb-tests: New file.
33954         * tests/test-wcrtomb.sh: New file.
33955         * tests/test-wcrtomb.c: New file.
33956
33957         New module 'wcrtomb'.
33958         * lib/wchar.in.h (wcrtomb): New declaration.
33959         * lib/wcrtomb.c: New file.
33960         * m4/wcrtomb.m4: New file.
33961         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
33962         HAVE_WCRTOMB.
33963         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
33964         HAVE_WCRTOMB.
33965         * modules/wcrtomb: New file.
33966         * doc/posix-functions/wcrtomb.texi: Mention the new module.
33967
33968 2008-12-21  Bruno Haible  <bruno@clisp.org>
33969
33970         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
33971         * modules/mbsrtowcs (Files): Likewise.
33972         * modules/wctob (Files): Likewise.
33973         * modules/c-strcase-tests (Files): Likewise.
33974         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33975         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33976         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33977         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33978         * modules/vasnprintf-posix-tests (Files): Likewise.
33979
33980 2008-12-21  William Pursell  <bill.pursell@gmail.com>
33981
33982         gitlog-to-changelog: pass all command-line arguments to git-log
33983         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
33984         it is sometimes convenient to filter the commits in various ways.
33985         gitlog-to-changelog only allows --since to specify a start date,
33986         but git-log itself supports many other filtering mechanisms.
33987         At the moment, I want to filter by branch name.  Rather than
33988         adding a --branch option to gitlog-to-changelog, it seems more
33989         flexible to simply pass all options directly to git-log and let
33990         git do the work.  Notice that this effectively makes --since a
33991         redundant option for gitlog-to-changelog, but removing it would
33992         require current usage to change since calls would then require
33993         an additional '--'.
33994
33995 2008-12-21  Bruno Haible  <bruno@clisp.org>
33996
33997         * modules/mbsnrtowcs-tests: New file.
33998         * tests/test-mbsnrtowcs1.sh: New file.
33999         * tests/test-mbsnrtowcs2.sh: New file.
34000         * tests/test-mbsnrtowcs3.sh: New file.
34001         * tests/test-mbsnrtowcs4.sh: New file.
34002         * tests/test-mbsnrtowcs.c: New file.
34003
34004         New module 'mbsnrtowcs'.
34005         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34006         * lib/mbsnrtowcs.c: New file.
34007         * lib/mbsrtowcs-state.c: New file.
34008         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34009         (internal_state): Remove variable.
34010         * m4/mbsnrtowcs.m4: New file.
34011         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34012         compilation units.
34013         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34014         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34015         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34016         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34017         * modules/mbsnrtowcs: New file.
34018         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34019         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34020         portability problem.
34021
34022 2008-12-21  Bruno Haible  <bruno@clisp.org>
34023
34024         Work around mbsrtowcs bug.
34025         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34026         (gl_FUNC_MBSRTOWCS): Invoke it.
34027         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34028         m4/locale-zh.m4.
34029         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34030
34031 2008-12-21  Bruno Haible  <bruno@clisp.org>
34032
34033         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34034
34035 2008-12-21  Bruno Haible  <bruno@clisp.org>
34036
34037         Update doc for AIX.
34038         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34039         16-bit wchar_t type.
34040         * doc/posix-functions/btowc.texi: Likewise.
34041         * doc/posix-functions/fgetwc.texi: Likewise.
34042         * doc/posix-functions/fgetws.texi: Likewise.
34043         * doc/posix-functions/fputwc.texi: Likewise.
34044         * doc/posix-functions/fputws.texi: Likewise.
34045         * doc/posix-functions/fwide.texi: Likewise.
34046         * doc/posix-functions/fwprintf.texi: Likewise.
34047         * doc/posix-functions/fwscanf.texi: Likewise.
34048         * doc/posix-functions/getwchar.texi: Likewise.
34049         * doc/posix-functions/getwc.texi: Likewise.
34050         * doc/posix-functions/iswalnum.texi: Likewise.
34051         * doc/posix-functions/iswalpha.texi: Likewise.
34052         * doc/posix-functions/iswblank.texi: Likewise.
34053         * doc/posix-functions/iswcntrl.texi: Likewise.
34054         * doc/posix-functions/iswctype.texi: Likewise.
34055         * doc/posix-functions/iswdigit.texi: Likewise.
34056         * doc/posix-functions/iswgraph.texi: Likewise.
34057         * doc/posix-functions/iswlower.texi: Likewise.
34058         * doc/posix-functions/iswprint.texi: Likewise.
34059         * doc/posix-functions/iswpunct.texi: Likewise.
34060         * doc/posix-functions/iswspace.texi: Likewise.
34061         * doc/posix-functions/iswupper.texi: Likewise.
34062         * doc/posix-functions/iswxdigit.texi: Likewise.
34063         * doc/posix-functions/mbrtowc.texi: Likewise.
34064         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34065         * doc/posix-functions/mbstowcs.texi: Likewise.
34066         * doc/posix-functions/mbtowc.texi: Likewise.
34067         * doc/posix-functions/putwchar.texi: Likewise.
34068         * doc/posix-functions/putwc.texi: Likewise.
34069         * doc/posix-functions/swprintf.texi: Likewise.
34070         * doc/posix-functions/tolower.texi: Likewise.
34071         * doc/posix-functions/toupper.texi: Likewise.
34072         * doc/posix-functions/towctrans.texi: Likewise.
34073         * doc/posix-functions/ungetwc.texi: Likewise.
34074         * doc/posix-functions/vswprintf.texi: Likewise.
34075         * doc/posix-functions/wcrtomb.texi: Likewise.
34076         * doc/posix-functions/wcscat.texi: Likewise.
34077         * doc/posix-functions/wcschr.texi: Likewise.
34078         * doc/posix-functions/wcscmp.texi: Likewise.
34079         * doc/posix-functions/wcscoll.texi: Likewise.
34080         * doc/posix-functions/wcscpy.texi: Likewise.
34081         * doc/posix-functions/wcscspn.texi: Likewise.
34082         * doc/posix-functions/wcsftime.texi: Likewise.
34083         * doc/posix-functions/wcslen.texi: Likewise.
34084         * doc/posix-functions/wcsncat.texi: Likewise.
34085         * doc/posix-functions/wcsncmp.texi: Likewise.
34086         * doc/posix-functions/wcsncpy.texi: Likewise.
34087         * doc/posix-functions/wcspbrk.texi: Likewise.
34088         * doc/posix-functions/wcsrchr.texi: Likewise.
34089         * doc/posix-functions/wcsrtombs.texi: Likewise.
34090         * doc/posix-functions/wcsspn.texi: Likewise.
34091         * doc/posix-functions/wcsstr.texi: Likewise.
34092         * doc/posix-functions/wcstod.texi: Likewise.
34093         * doc/posix-functions/wcstof.texi: Likewise.
34094         * doc/posix-functions/wcstoimax.texi: Likewise.
34095         * doc/posix-functions/wcstok.texi: Likewise.
34096         * doc/posix-functions/wcstold.texi: Likewise.
34097         * doc/posix-functions/wcstoll.texi: Likewise.
34098         * doc/posix-functions/wcstol.texi: Likewise.
34099         * doc/posix-functions/wcstombs.texi: Likewise.
34100         * doc/posix-functions/wcstoull.texi: Likewise.
34101         * doc/posix-functions/wcstoul.texi: Likewise.
34102         * doc/posix-functions/wcstoumax.texi: Likewise.
34103         * doc/posix-functions/wcswidth.texi: Likewise.
34104         * doc/posix-functions/wcsxfrm.texi: Likewise.
34105         * doc/posix-functions/wctob.texi: Likewise.
34106         * doc/posix-functions/wctomb.texi: Likewise.
34107         * doc/posix-functions/wctrans.texi: Likewise.
34108         * doc/posix-functions/wctype.texi: Likewise.
34109         * doc/posix-functions/wcwidth.texi: Likewise.
34110         * doc/posix-functions/wmemchr.texi: Likewise.
34111         * doc/posix-functions/wmemcmp.texi: Likewise.
34112         * doc/posix-functions/wmemcpy.texi: Likewise.
34113         * doc/posix-functions/wmemmove.texi: Likewise.
34114         * doc/posix-functions/wmemset.texi: Likewise.
34115         * doc/posix-functions/wprintf.texi: Likewise.
34116         * doc/posix-functions/wscanf.texi: Likewise.
34117
34118 2008-12-21  Bruno Haible  <bruno@clisp.org>
34119
34120         Update doc for HP-UX 11.11.
34121         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34122         in HP-UX version 11.00, not in all versions of HP-UX 11.
34123         * doc/posix-functions/fwide.texi: Likewise.
34124         * doc/posix-functions/fwprintf.texi: Likewise.
34125         * doc/posix-functions/fwscanf.texi: Likewise.
34126         * doc/posix-functions/inet_ntop.texi: Likewise.
34127         * doc/posix-functions/inet_pton.texi: Likewise.
34128         * doc/posix-functions/mbrlen.texi: Likewise.
34129         * doc/posix-functions/mbrtowc.texi: Likewise.
34130         * doc/posix-functions/mbsinit.texi: Likewise.
34131         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34132         * doc/posix-functions/swprintf.texi: Likewise.
34133         * doc/posix-functions/swscanf.texi: Likewise.
34134         * doc/posix-functions/towctrans.texi: Likewise.
34135         * doc/posix-functions/vfwprintf.texi: Likewise.
34136         * doc/posix-functions/vswprintf.texi: Likewise.
34137         * doc/posix-functions/vwprintf.texi: Likewise.
34138         * doc/posix-functions/wcrtomb.texi: Likewise.
34139         * doc/posix-functions/wcsrtombs.texi: Likewise.
34140         * doc/posix-functions/wcsstr.texi: Likewise.
34141         * doc/posix-functions/wctob.texi: Likewise.
34142         * doc/posix-functions/wctrans.texi: Likewise.
34143         * doc/posix-functions/wmemchr.texi: Likewise.
34144         * doc/posix-functions/wmemcmp.texi: Likewise.
34145         * doc/posix-functions/wmemcpy.texi: Likewise.
34146         * doc/posix-functions/wmemmove.texi: Likewise.
34147         * doc/posix-functions/wmemset.texi: Likewise.
34148         * doc/posix-functions/wprintf.texi: Likewise.
34149         * doc/posix-functions/wscanf.texi: Likewise.
34150
34151 2008-12-21  Bruno Haible  <bruno@clisp.org>
34152
34153         Work around a portability problem.
34154         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34155         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34156
34157 2008-12-20  Bruno Haible  <bruno@clisp.org>
34158
34159         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34160         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34161         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34162         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34163         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34164
34165         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34166         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34167         set.
34168         (GNULIB_defined_mbstate_t): New macro.
34169         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34170         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34171         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34172         reuses the system's mbrtowc function but works around the bugs.
34173         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34174         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34175         macros.
34176         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34177         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34178         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34179         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34180         REPLACE_MBSINIT if mbsinit needs to be overridden.
34181         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34182         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34183         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34184         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34185         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34186         m4/locale-zh.m4.
34187         (Depends): Add mbsinit.
34188         * modules/mbsinit (Depends): Add mbrtowc.
34189         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34190
34191 2008-12-20  Bruno Haible  <bruno@clisp.org>
34192
34193         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34194         so that there are no conversion errors on AIX.
34195         * tests/test-mbsrtowcs.c (main): LIkewise.
34196
34197 2008-12-20  Bruno Haible  <bruno@clisp.org>
34198
34199         Work around wctob bug on Solaris <= 9.
34200         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34201         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34202         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34203         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34204         * modules/wctob (Files): Add m4/locale-fr.m4.
34205         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34206
34207 2008-12-20  Bruno Haible  <bruno@clisp.org>
34208
34209         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34210         /dev/null.
34211         * tests/test-select-in.sh: Likewise.
34212         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34213
34214 2008-12-20  Bruno Haible  <bruno@clisp.org>
34215
34216         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34217         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34218         Cygwin 1.5.x.
34219
34220 2008-12-20  Bruno Haible  <bruno@clisp.org>
34221
34222         Ensure mbstate_t is defined on HP-UX 11.11.
34223         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34224         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34225         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34226         AC_USE_SYSTEM_EXTENSIONS.
34227         * modules/fnmatch (Depends-on): Add extensions.
34228         * modules/mbrlen (Depends-on): Likewise.
34229         * modules/mbrtowc (Depends-on): Likewise.
34230         * modules/mbsinit (Depends-on): Likewise.
34231         * modules/mbsrtowcs (Depends-on): Likewise.
34232         * modules/mbswidth (Depends-on): Likewise.
34233         * modules/quotearg (Depends-on): Likewise.
34234         * modules/strftime (Depends-on): Likewise.
34235
34236 2008-12-20  Bruno Haible  <bruno@clisp.org>
34237
34238         Ensure wctob is declared on IRIX 6.5.
34239         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34240         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34241         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34243         of HAVE_WCTOB.
34244         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34245         HAVE_WCTOB.
34246         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34247
34248 2008-12-19  Bruno Haible  <bruno@clisp.org>
34249
34250         * modules/mbsrtowcs-tests: New file.
34251         * tests/test-mbsrtowcs1.sh: New file.
34252         * tests/test-mbsrtowcs2.sh: New file.
34253         * tests/test-mbsrtowcs3.sh: New file.
34254         * tests/test-mbsrtowcs4.sh: New file.
34255         * tests/test-mbsrtowcs.c: New file.
34256
34257         New module 'mbsrtowcs'.
34258         * lib/wchar.in.h (mbsrtowcs): New declaration.
34259         * lib/mbsrtowcs.c: New file.
34260         * m4/mbsrtowcs.m4: New file.
34261         * modules/mbsrtowcs: New file.
34262         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34263         HAVE_MBSRTOWCS.
34264         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34265         HAVE_MBSRTOWCS.
34266         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34267
34268 2008-12-19  Bruno Haible  <bruno@clisp.org>
34269
34270         New module 'mbrlen'.
34271         * lib/wchar.in.h (mbrlen): New declaration.
34272         * lib/mbrlen.c: New file.
34273         * m4/mbrlen.m4: New file.
34274         * modules/mbrlen: New file.
34275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34276         HAVE_MBRLEN.
34277         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34278         HAVE_MBRLEN.
34279         * doc/posix-functions/mbrlen.texi: Document the new module.
34280
34281 2008-12-19  Bruno Haible  <bruno@clisp.org>
34282
34283         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34284         * modules/mbrtowc (Depends-on): Add verify.
34285         Suggested by Paul Eggert.
34286
34287 2008-12-18  Bruno Haible  <bruno@clisp.org>
34288
34289         * modules/mbsinit-tests: New file.
34290         * tests/test-mbsinit.sh: New file.
34291         * tests/test-mbsinit.c: New file.
34292
34293 2008-12-18  Bruno Haible  <bruno@clisp.org>
34294
34295         * modules/mbrtowc-tests: New file.
34296         * tests/test-mbrtowc1.sh: New file.
34297         * tests/test-mbrtowc2.sh: New file.
34298         * tests/test-mbrtowc3.sh: New file.
34299         * tests/test-mbrtowc4.sh: New file.
34300         * tests/test-mbrtowc.c: New file.
34301
34302         New module 'mbrtowc'.
34303         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34304         mbsinit and mbrtowc.
34305         (mbrtowc): New declaration.
34306         * lib/mbrtowc.c: New file.
34307         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34308         * modules/mbrtowc: New file.
34309         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34310         HAVE_MBRTOWC.
34311         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34312         HAVE_MBRTOWC.
34313         * doc/posix-functions/mbrtowc.texi: Document the new module.
34314
34315 2008-12-18  Bruno Haible  <bruno@clisp.org>
34316
34317         New module 'wctob'.
34318         * lib/wchar.in.h (wctob): New declaration.
34319         * lib/wctob.c: New file.
34320         * m4/wctob.m4: New file.
34321         * modules/wctob: New file.
34322         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34323         HAVE_WCTOB.
34324         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34325         * doc/posix-functions/wctob.texi: Document the new module.
34326
34327 2008-12-18  Bruno Haible  <bruno@clisp.org>
34328
34329         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34330         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34331
34332 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34333
34334         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34335         G. Christensen" <tgc@jupiterrise.com>.
34336
34337         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34338         G. Christensen" <tgc@jupiterrise.com>.
34339
34340         * lib/flock.c: Need to include string.h.  Reported by "Tom
34341         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34342         <ebb9@byu.net>.
34343
34344 2008-12-18  Bruno Haible  <bruno@clisp.org>
34345
34346         * m4/locale-ja.m4: New file, from GNU gettext.
34347
34348 2008-12-17  Bruno Haible  <bruno@clisp.org>
34349
34350         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34351         Suggested by Eric Blake.
34352
34353 2008-12-17  Bruno Haible  <bruno@clisp.org>
34354
34355         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34356
34357 2008-12-17  Bruno Haible  <bruno@clisp.org>
34358
34359         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34360         * modules/mbsinit (Depends-on): Add verify.
34361         Suggested by Paul Eggert.
34362
34363 2008-12-17  Bruno Haible  <bruno@clisp.org>
34364
34365         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34366         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34367         gl_FUNC_MBRTOWC.
34368         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34369         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34370         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34371         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34372         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34373         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34374         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34375         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34376         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34377         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34378         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34379         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34380         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34381         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34382         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34383         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34384         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34385         * modules/trim (configure.ac): Likewise.
34386
34387 2008-12-17  Bruno Haible  <bruno@clisp.org>
34388
34389         * modules/btowc-tests: New file.
34390         * tests/test-btowc1.sh: New file.
34391         * tests/test-btowc2.sh: New file.
34392         * tests/test-btowc.c: New file.
34393
34394         New module 'btowc'.
34395         * lib/wchar.in.h (btowc): New declaration.
34396         * lib/btowc.c: New file.
34397         * m4/btowc.m4: New file.
34398         * modules/btowc: New file.
34399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34400         HAVE_BTOWC.
34401         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34402         * doc/posix-functions/btowc.texi: Document the new module.
34403
34404 2008-12-17  Bruno Haible  <bruno@clisp.org>
34405
34406         New module 'mbsinit'.
34407         * lib/wchar.in.h (mbsinit): New declaration.
34408         * lib/mbsinit.c: New file.
34409         * m4/mbsinit.m4: New file.
34410         * modules/mbsinit: New file.
34411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34412         HAVE_MBSINIT.
34413         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34414         HAVE_MBSINIT.
34415         * doc/posix-functions/mbsinit.texi: Document the new module.
34416
34417 2008-12-16  Bruno Haible  <bruno@clisp.org>
34418
34419         * lib/unistd.in.h: Add comment.
34420         * tests/test-environ.c: Don't include <stdlib.h>.
34421
34422 2008-12-16  Bruno Haible  <bruno@clisp.org>
34423
34424         * lib/parse-duration.h (parse_duration): Document return value
34425         convention.
34426         * lib/parse-duration.c: Include specification header first. Add
34427         comments.
34428         (_): Remove macro.
34429         (parse_year_month_day, parse_hour_minute_second): Move side effects
34430         outside of strchr call.
34431         (parse_non_iso8601): Move side effects outside of isspace call.
34432         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34433         call.
34434
34435 2008-12-16  Bruno Haible  <bruno@clisp.org>
34436
34437         * tests/test-parse-duration.sh: Produce no output when the test
34438         succeeds.
34439
34440 2008-12-16  Bruno Haible  <bruno@clisp.org>
34441
34442         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34443         expressions.
34444
34445 2008-12-15  Bruno Haible  <bruno@clisp.org>
34446
34447         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34448         * doc/glibc-functions/flistxattr.texi: Likewise.
34449         * doc/glibc-functions/fopencookie.texi: Likewise.
34450         * doc/glibc-functions/fremovexattr.texi: Likewise.
34451         * doc/glibc-functions/fsetxattr.texi: Likewise.
34452         * doc/glibc-functions/getxattr.texi: Likewise.
34453         * doc/glibc-functions/lgetxattr.texi: Likewise.
34454         * doc/glibc-functions/listxattr.texi: Likewise.
34455         * doc/glibc-functions/llistxattr.texi: Likewise.
34456         * doc/glibc-functions/lremovexattr.texi: Likewise.
34457         * doc/glibc-functions/lsetxattr.texi: Likewise.
34458         * doc/glibc-functions/removexattr.texi: Likewise.
34459         * doc/glibc-functions/setxattr.texi: Likewise.
34460         * doc/posix-functions/open_memstream.texi: Likewise.
34461
34462 2008-12-15  Eric Blake  <ebb9@byu.net>
34463
34464         Update doc for cygwin 1.7.
34465         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34466         functions.
34467         * doc/posix-functions/fchmodat.texi: Likewise.
34468         * doc/posix-functions/fchownat.texi: Likewise.
34469         * doc/posix-functions/fdopendir.texi: Likewise.
34470         * doc/posix-functions/fmemopen.texi: Likewise.
34471         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34472         * doc/posix-functions/fstatat.texi: Likewise.
34473         * doc/posix-functions/futimens.texi: Likewise.
34474         * doc/posix-functions/gai_strerror.texi: Likewise.
34475         * doc/posix-functions/getaddrinfo.texi: Likewise.
34476         * doc/posix-functions/getnameinfo.texi: Likewise.
34477         * doc/posix-functions/if_freenameindex.texi: Likewise.
34478         * doc/posix-functions/if_indextoname.texi: Likewise.
34479         * doc/posix-functions/if_nameindex.texi: Likewise.
34480         * doc/posix-functions/if_nametoindex.texi: Likewise.
34481         * doc/posix-functions/insque.texi: Likewise.
34482         * doc/posix-functions/linkat.texi: Likewise.
34483         * doc/posix-functions/llrint.texi: Likewise.
34484         * doc/posix-functions/llrintf.texi: Likewise.
34485         * doc/posix-functions/llrintl.texi: Likewise.
34486         * doc/posix-functions/lockf.texi: Likewise.
34487         * doc/posix-functions/lrintl.texi: Likewise.
34488         * doc/posix-functions/mkdirat.texi: Likewise.
34489         * doc/posix-functions/mkfifoat.texi: Likewise.
34490         * doc/posix-functions/mknodat.texi: Likewise.
34491         * doc/posix-functions/mq_close.texi: Likewise.
34492         * doc/posix-functions/mq_getattr.texi: Likewise.
34493         * doc/posix-functions/mq_notify.texi: Likewise.
34494         * doc/posix-functions/mq_open.texi: Likewise.
34495         * doc/posix-functions/mq_receive.texi: Likewise.
34496         * doc/posix-functions/mq_send.texi: Likewise.
34497         * doc/posix-functions/mq_setattr.texi: Likewise.
34498         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34499         * doc/posix-functions/mq_timedsend.texi: Likewise.
34500         * doc/posix-functions/mq_unlink.texi: Likewise.
34501         * doc/posix-functions/open_memstream.texi: Likewise.
34502         * doc/posix-functions/openat.texi: Likewise.
34503         * doc/posix-functions/posix_fadvise.texi: Likewise.
34504         * doc/posix-functions/posix_fallocate.texi: Likewise.
34505         * doc/posix-functions/posix_madvise.texi: Likewise.
34506         * doc/posix-functions/posix_memalign.texi: Likewise.
34507         * doc/posix-functions/posix_openpt.texi: Likewise.
34508         * doc/posix-functions/readlinkat.texi: Likewise.
34509         * doc/posix-functions/remque.texi: Likewise.
34510         * doc/posix-functions/renameat.texi: Likewise.
34511         * doc/posix-functions/rintl.texi: Likewise.
34512         * doc/posix-functions/sem_unlink.texi: Likewise.
34513         * doc/posix-functions/shm_open.texi: Likewise.
34514         * doc/posix-functions/shm_unlink.texi: Likewise.
34515         * doc/posix-functions/signgam.texi: Likewise.
34516         * doc/posix-functions/sigset.texi: Likewise.
34517         * doc/posix-functions/stpcpy.texi: Likewise.
34518         * doc/posix-functions/stpncpy.texi: Likewise.
34519         * doc/posix-functions/strerror.texi: Likewise.
34520         * doc/posix-functions/strtod.texi: Likewise.
34521         * doc/posix-functions/symlinkat.texi: Likewise.
34522         * doc/posix-functions/unlinkat.texi: Likewise.
34523         * doc/posix-functions/utimensat.texi: Likewise.
34524         * doc/glibc-functions/bindresvport.texi: Likewise.
34525         * doc/glibc-functions/dn_expand.texi: Likewise.
34526         * doc/glibc-functions/exp10.texi: Likewise.
34527         * doc/glibc-functions/exp10f.texi: Likewise.
34528         * doc/glibc-functions/fgetxattr.texi: Likewise.
34529         * doc/glibc-functions/flistxattr.texi: Likewise.
34530         * doc/glibc-functions/fopencookie.texi: Likewise.
34531         * doc/glibc-functions/freeifaddrs.texi: Likewise.
34532         * doc/glibc-functions/fremovexattr.texi: Likewise.
34533         * doc/glibc-functions/fsetxattr.texi: Likewise.
34534         * doc/glibc-functions/getifaddrs.texi: Likewise.
34535         * doc/glibc-functions/getxattr.texi: Likewise.
34536         * doc/glibc-functions/lgetxattr.texi: Likewise.
34537         * doc/glibc-functions/listxattr.texi: Likewise.
34538         * doc/glibc-functions/llistxattr.texi: Likewise.
34539         * doc/glibc-functions/lremovexattr.texi: Likewise.
34540         * doc/glibc-functions/lsetxattr.texi: Likewise.
34541         * doc/glibc-functions/pow10.texi: Likewise.
34542         * doc/glibc-functions/pow10f.texi: Likewise.
34543         * doc/glibc-functions/rcmd_af.texi: Likewise.
34544         * doc/glibc-functions/removexattr.texi: Likewise.
34545         * doc/glibc-functions/res_init.texi: Likewise.
34546         * doc/glibc-functions/res_mkquery.texi: Likewise.
34547         * doc/glibc-functions/res_query.texi: Likewise.
34548         * doc/glibc-functions/res_querydomain.texi: Likewise.
34549         * doc/glibc-functions/res_send.texi: Likewise.
34550         * doc/glibc-functions/rresvport_af.texi: Likewise.
34551         * doc/glibc-functions/setxattr.texi: Likewise.
34552         * doc/glibc-functions/strcasestr.texi: Likewise.
34553
34554 2008-12-15  Bruno Haible  <bruno@clisp.org>
34555
34556         Fix compilation error on OSF/1 4.0.
34557         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
34558         <sys/time.h>, simply delegate to the system header.
34559         Reported by Daniel Richard G. <oss@teragram.com>.
34560
34561 2008-12-15  Bruno Haible  <bruno@clisp.org>
34562
34563         * doc/posix-functions/openat.texi: Mention the 'openat' module.
34564         * doc/posix-functions/fchmodat.texi: Likewise.
34565         * doc/posix-functions/fchownat.texi: Likewise.
34566         * doc/posix-functions/fdopendir.texi: Likewise.
34567         * doc/posix-functions/fstatat.texi: Likewise.
34568         * doc/posix-functions/mkdirat.texi: Likewise.
34569         * doc/posix-functions/unlinkat.texi: Likewise.
34570
34571 2008-12-14  Bruno Haible  <bruno@clisp.org>
34572
34573         Update doc for POSIX:2008.
34574         * doc/posix-functions/faccessat.texi: New file.
34575         * doc/posix-functions/fchmodat.texi: New file.
34576         * doc/posix-functions/fchownat.texi: New file.
34577         * doc/posix-functions/fdopendir.texi: New file.
34578         * doc/posix-functions/fstatat.texi: New file.
34579         * doc/posix-functions/futimens.texi: New file.
34580         * doc/posix-functions/linkat.texi: New file.
34581         * doc/posix-functions/mkdirat.texi: New file.
34582         * doc/posix-functions/mkfifoat.texi: New file.
34583         * doc/posix-functions/mknodat.texi: New file.
34584         * doc/posix-functions/open_wmemstream.texi: New file.
34585         * doc/posix-functions/openat.texi: New file.
34586         * doc/posix-functions/psiginfo.texi: New file.
34587         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
34588         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
34589         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
34590         * doc/posix-functions/readlinkat.texi: New file.
34591         * doc/posix-functions/renameat.texi: New file.
34592         * doc/posix-functions/strerror_l.texi: New file.
34593         * doc/posix-functions/symlinkat.texi: New file.
34594         * doc/posix-functions/unlinkat.texi: New file.
34595         * doc/posix-functions/utimensat.texi: New file.
34596         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34597
34598 2008-12-14  Bruno Haible  <bruno@clisp.org>
34599
34600         Update doc for POSIX:2008.
34601         * doc/posix-functions/alphasort.texi: Renamed from
34602         doc/glibc-functions/alphasort.texi.
34603         * doc/posix-functions/dirfd.texi: Renamed from
34604         doc/glibc-functions/dirfd.texi.
34605         * doc/posix-functions/dprintf.texi: Renamed from
34606         doc/glibc-functions/dprintf.texi.
34607         * doc/posix-functions/duplocale.texi: Renamed from
34608         doc/glibc-functions/duplocale.texi.
34609         * doc/posix-functions/fexecve.texi: Renamed from
34610         doc/glibc-functions/fexecve.texi.
34611         * doc/posix-functions/fmemopen.texi: Renamed from
34612         doc/glibc-functions/fmemopen.texi.
34613         * doc/posix-functions/freelocale.texi: Renamed from
34614         doc/glibc-functions/freelocale.texi.
34615         * doc/posix-functions/getdate_err.texi: Renamed from
34616         doc/glibc-functions/getdate_err.texi.
34617         * doc/posix-functions/isalnum_l.texi: Renamed from
34618         doc/glibc-functions/isalnum_l.texi.
34619         * doc/posix-functions/isalpha_l.texi: Renamed from
34620         doc/glibc-functions/isalpha_l.texi.
34621         * doc/posix-functions/isblank_l.texi: Renamed from
34622         doc/glibc-functions/isblank_l.texi.
34623         * doc/posix-functions/iscntrl_l.texi: Renamed from
34624         doc/glibc-functions/iscntrl_l.texi.
34625         * doc/posix-functions/isdigit_l.texi: Renamed from
34626         doc/glibc-functions/isdigit_l.texi.
34627         * doc/posix-functions/isgraph_l.texi: Renamed from
34628         doc/glibc-functions/isgraph_l.texi.
34629         * doc/posix-functions/islower_l.texi: Renamed from
34630         doc/glibc-functions/islower_l.texi.
34631         * doc/posix-functions/isprint_l.texi: Renamed from
34632         doc/glibc-functions/isprint_l.texi.
34633         * doc/posix-functions/ispunct_l.texi: Renamed from
34634         doc/glibc-functions/ispunct_l.texi.
34635         * doc/posix-functions/isspace_l.texi: Renamed from
34636         doc/glibc-functions/isspace_l.texi.
34637         * doc/posix-functions/isupper_l.texi: Renamed from
34638         doc/glibc-functions/isupper_l.texi.
34639         * doc/posix-functions/iswalnum_l.texi: Renamed from
34640         doc/glibc-functions/iswalnum_l.texi.
34641         * doc/posix-functions/iswalpha_l.texi: Renamed from
34642         doc/glibc-functions/iswalpha_l.texi.
34643         * doc/posix-functions/iswblank_l.texi: Renamed from
34644         doc/glibc-functions/iswblank_l.texi.
34645         * doc/posix-functions/iswcntrl_l.texi: Renamed from
34646         doc/glibc-functions/iswcntrl_l.texi.
34647         * doc/posix-functions/iswctype_l.texi: Renamed from
34648         doc/glibc-functions/iswctype_l.texi.
34649         * doc/posix-functions/iswdigit_l.texi: Renamed from
34650         doc/glibc-functions/iswdigit_l.texi.
34651         * doc/posix-functions/iswgraph_l.texi: Renamed from
34652         doc/glibc-functions/iswgraph_l.texi.
34653         * doc/posix-functions/iswlower_l.texi: Renamed from
34654         doc/glibc-functions/iswlower_l.texi.
34655         * doc/posix-functions/iswprint_l.texi: Renamed from
34656         doc/glibc-functions/iswprint_l.texi.
34657         * doc/posix-functions/iswpunct_l.texi: Renamed from
34658         doc/glibc-functions/iswpunct_l.texi.
34659         * doc/posix-functions/iswspace_l.texi: Renamed from
34660         doc/glibc-functions/iswspace_l.texi.
34661         * doc/posix-functions/iswupper_l.texi: Renamed from
34662         doc/glibc-functions/iswupper_l.texi.
34663         * doc/posix-functions/iswxdigit_l.texi: Renamed from
34664         doc/glibc-functions/iswxdigit_l.texi.
34665         * doc/posix-functions/isxdigit_l.texi: Renamed from
34666         doc/glibc-functions/isxdigit_l.texi.
34667         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
34668         doc/glibc-functions/mbsnrtowcs.texi.
34669         * doc/posix-functions/mkdtemp.texi: Renamed from
34670         doc/glibc-functions/mkdtemp.texi.
34671         * doc/posix-functions/newlocale.texi: Renamed from
34672         doc/glibc-functions/newlocale.texi.
34673         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
34674         doc/glibc-functions/nl_langinfo_l.texi.
34675         * doc/posix-functions/open_memstream.texi: Renamed from
34676         doc/glibc-functions/open_memstream.texi.
34677         * doc/posix-functions/opterr.texi: Renamed from
34678         doc/glibc-functions/opterr.texi.
34679         * doc/posix-functions/optind.texi: Renamed from
34680         doc/glibc-functions/optind.texi.
34681         * doc/posix-functions/optopt.texi: Renamed from
34682         doc/glibc-functions/optopt.texi.
34683         * doc/posix-functions/psignal.texi: Renamed from
34684         doc/glibc-functions/psignal.texi.
34685         * doc/posix-functions/scandir.texi: Renamed from
34686         doc/glibc-functions/scandir.texi.
34687         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
34688         doc/glibc-functions/sched_get_priority_min.texi.
34689         * doc/posix-functions/signgam.texi: Renamed from
34690         doc/glibc-functions/signgam.texi.
34691         * doc/posix-functions/stpcpy.texi: Renamed from
34692         doc/glibc-functions/stpcpy.texi.
34693         * doc/posix-functions/stpncpy.texi: Renamed from
34694         doc/glibc-functions/stpncpy.texi.
34695         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34696         doc/glibc-functions/strcasecmp_l.texi.
34697         * doc/posix-functions/strcoll_l.texi: Renamed from
34698         doc/glibc-functions/strcoll_l.texi.
34699         * doc/posix-functions/strfmon_l.texi: Renamed from
34700         doc/glibc-functions/strfmon_l.texi.
34701         * doc/posix-functions/strftime_l.texi: Renamed from
34702         doc/glibc-functions/strftime_l.texi.
34703         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34704         doc/glibc-functions/strncasecmp_l.texi.
34705         * doc/posix-functions/strndup.texi: Renamed from
34706         doc/glibc-functions/strndup.texi.
34707         * doc/posix-functions/strnlen.texi: Renamed from
34708         doc/glibc-functions/strnlen.texi.
34709         * doc/posix-functions/strsignal.texi: Renamed from
34710         doc/glibc-functions/strsignal.texi.
34711         * doc/posix-functions/strxfrm_l.texi: Renamed from
34712         doc/glibc-functions/strxfrm_l.texi.
34713         * doc/posix-functions/timer_gettime.texi: Renamed from
34714         doc/glibc-functions/timer_gettime.texi.
34715         * doc/posix-functions/tolower_l.texi: Renamed from
34716         doc/glibc-functions/tolower_l.texi.
34717         * doc/posix-functions/toupper_l.texi: Renamed from
34718         doc/glibc-functions/toupper_l.texi.
34719         * doc/posix-functions/towctrans_l.texi: Renamed from
34720         doc/glibc-functions/towctrans_l.texi.
34721         * doc/posix-functions/towlower_l.texi: Renamed from
34722         doc/glibc-functions/towlower_l.texi.
34723         * doc/posix-functions/towupper_l.texi: Renamed from
34724         doc/glibc-functions/towupper_l.texi.
34725         * doc/posix-functions/uselocale.texi: Renamed from
34726         doc/glibc-functions/uselocale.texi.
34727         * doc/posix-functions/vdprintf.texi: Renamed from
34728         doc/glibc-functions/vdprintf.texi.
34729         * doc/posix-functions/wcpcpy.texi:
34730         Renamed from doc/glibc-functions/wcpcpy.texi.
34731         * doc/posix-functions/wcpncpy.texi: Renamed from
34732         doc/glibc-functions/wcpncpy.texi.
34733         * doc/posix-functions/wcscasecmp.texi: Renamed from
34734         doc/glibc-functions/wcscasecmp.texi.
34735         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34736         doc/glibc-functions/wcscasecmp_l.texi.
34737         * doc/posix-functions/wcscoll_l.texi: Renamed from
34738         doc/glibc-functions/wcscoll_l.texi.
34739         * doc/posix-functions/wcsdup.texi: Renamed from
34740         doc/glibc-functions/wcsdup.texi.
34741         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34742         doc/glibc-functions/wcsncasecmp.texi.
34743         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34744         doc/glibc-functions/wcsncasecmp_l.texi.
34745         * doc/posix-functions/wcsnlen.texi: Renamed from
34746         doc/glibc-functions/wcsnlen.texi.
34747         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34748         doc/glibc-functions/wcsnrtombs.texi.
34749         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34750         doc/glibc-functions/wcsxfrm_l.texi.
34751         * doc/posix-functions/wctrans_l.texi: Renamed from
34752         doc/glibc-functions/wctrans_l.texi.
34753         * doc/posix-functions/wctype_l.texi: Renamed from
34754         doc/glibc-functions/wctype_l.texi.
34755         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34756         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34757         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34758         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34759         these subsections.
34760         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34761         Remove sections.
34762
34763 2008-12-14  Bruno Haible  <bruno@clisp.org>
34764
34765         Update doc for POSIX:2008.
34766         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34767
34768 2008-12-14  Bruno Haible  <bruno@clisp.org>
34769
34770         Update doc for POSIX:2008.
34771         * doc/pastposix-functions/bcmp.texi: Renamed from
34772         doc/posix-functions/bcmp.texi.
34773         * doc/pastposix-functions/bcopy.texi: Renamed from
34774         doc/posix-functions/bcopy.texi.
34775         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34776         doc/posix-functions/bsd_signal.texi.
34777         * doc/pastposix-functions/bzero.texi: Renamed from
34778         doc/posix-functions/bzero.texi.
34779         * doc/pastposix-functions/ecvt.texi: Renamed from
34780         doc/posix-functions/ecvt.texi.
34781         * doc/pastposix-functions/fcvt.texi: Renamed from
34782         doc/posix-functions/fcvt.texi.
34783         * doc/pastposix-functions/ftime.texi: Renamed from
34784         doc/posix-functions/ftime.texi.
34785         * doc/pastposix-functions/gcvt.texi: Renamed from
34786         doc/posix-functions/gcvt.texi.
34787         * doc/pastposix-functions/getcontext.texi: Renamed from
34788         doc/posix-functions/getcontext.texi.
34789         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34790         doc/posix-functions/gethostbyaddr.texi.
34791         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34792         doc/posix-functions/gethostbyname.texi.
34793         * doc/pastposix-functions/getwd.texi: Renamed from
34794         doc/posix-functions/getwd.texi.
34795         * doc/pastposix-functions/h_errno.texi: Renamed from
34796         doc/posix-functions/h_errno.texi.
34797         * doc/pastposix-functions/index.texi: Renamed from
34798         doc/posix-functions/index.texi.
34799         * doc/pastposix-functions/makecontext.texi: Renamed from
34800         doc/posix-functions/makecontext.texi.
34801         * doc/pastposix-functions/mktemp.texi: Renamed from
34802         doc/posix-functions/mktemp.texi.
34803         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
34804         doc/posix-functions/pthread_attr_getstackaddr.texi.
34805         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
34806         doc/posix-functions/pthread_attr_setstackaddr.texi.
34807         * doc/pastposix-functions/rindex.texi: Renamed from
34808         doc/posix-functions/rindex.texi.
34809         * doc/pastposix-functions/scalb.texi: Renamed from
34810         doc/posix-functions/scalb.texi.
34811         * doc/pastposix-functions/setcontext.texi: Renamed from
34812         doc/posix-functions/setcontext.texi.
34813         * doc/pastposix-functions/swapcontext.texi: Renamed from
34814         doc/posix-functions/swapcontext.texi.
34815         * doc/pastposix-functions/ualarm.texi: Renamed from
34816         doc/posix-functions/ualarm.texi.
34817         * doc/pastposix-functions/usleep.texi: Renamed from
34818         doc/posix-functions/usleep.texi.
34819         * doc/pastposix-functions/vfork.texi: Renamed from
34820         doc/posix-functions/vfork.texi.
34821         * doc/pastposix-functions/wcswcs.texi: Renamed from
34822         doc/posix-functions/wcswcs.texi.
34823         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
34824         (Function Substitutes): Update.
34825
34826 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34827
34828         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
34829         m4/strerror.m4.
34830
34831 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34832             Bruno Haible  <bruno@clisp.org>
34833
34834         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
34835
34836 2008-12-13  Bruno Haible  <bruno@clisp.org>
34837
34838         * modules/strtoull (Depends-on): Remove unistd.
34839
34840 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34841
34842         * modules/strtoull (Depends-on): Add stdlib.
34843
34844 2008-12-11  Simon Josefsson  <simon@josefsson.org>
34845
34846         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
34847
34848 2008-12-10  Jim Meyering  <meyering@redhat.com>
34849
34850         gl_ASSERT: don't say assertions are disabled when they're not
34851         * m4/assert.m4 (gl_ASSERT): Do not make configure report
34852         "checking whether to enable assertions... no", when they are in
34853         fact enabled.  This is solely a bug in the output of configure.
34854         In spite of saying "no", NDEBUG was not defined in that case.
34855         Also, as noted by Eric Blake, leave assertions enabled upon
34856         --enable-assert=INVALID.
34857
34858 2008-12-10  Bruno Haible  <bruno@clisp.org>
34859
34860         Change MODULES.html to refer to POSIX:2008 where possible.
34861         * MODULES.html.sh (POSIX2008_URL): New variable.
34862         (posix_headers): Remove sys/timeb, ucontext.
34863         (posix2001_headers): New variable.
34864         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
34865         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
34866         index, makecontext, mktemp, pthread_attr_getstackaddr,
34867         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
34868         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
34869         (posix2001_functions): New variable.
34870         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
34871         otherwise.
34872
34873 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34874
34875         add missing include to parse-duration.c
34876         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
34877         * modules/parse-duration (Depends-on): Add xalloc.
34878
34879         fix sed script reading maint.mk
34880         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
34881         (syntax-check-rules): Use it.
34882
34883 2008-12-09  Bruno Haible  <bruno@clisp.org>
34884
34885         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
34886         MacOS X 10.4/PowerPC.
34887         Reported by Simon Josefsson.
34888
34889 2008-12-08  Jim Meyering  <meyering@redhat.com>
34890
34891         work around mingw's lack of some S_IF definitions
34892         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
34893         Reported by Simon Josefsson.
34894
34895 2008-12-08  Bruno Haible  <bruno@clisp.org>
34896
34897         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
34898         applied to variables. Needed on MacOS X 10.4/PowerPC.
34899         Reported by Simon Josefsson.
34900
34901 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
34902         and Eric Blake  <ebb9@byu.net>
34903
34904         assert: honor --enable-assert
34905         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
34906         order to honor --enable-assert, rather than treating it as a
34907         synonym for --disable-assert.
34908
34909 2008-12-08  Jim Meyering  <meyering@redhat.com>
34910
34911         * lib/posixtm.c: Remove now-useless declaration of mktime.
34912
34913         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
34914
34915 2008-12-07  Bruno Haible  <bruno@clisp.org>
34916
34917         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
34918         test_once): Mark functions as static.
34919         * tests/test-tls.c (test_tls): Likewise.
34920
34921 2008-12-07  Bruno Haible  <bruno@clisp.org>
34922
34923         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
34924         iconv_register_autodetect.
34925
34926 2008-12-07  Jim Meyering  <meyering@redhat.com>
34927
34928         posixtm.c: avoid a warning
34929         * lib/posixtm.c (posixtime): Don't initialize tm0.
34930         It's no longer needed to placate gcc4's -Wuninitialized,
34931         and the attempt to placate would elicit a new warning.
34932
34933         unicodeio.c: mark unused parameters
34934         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34935         (fallback_failure_callback): Likewise.
34936
34937 2008-12-07  Bruno Haible  <bruno@clisp.org>
34938
34939         * gnulib-tool (func_create_testdir): When building the tests
34940         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
34941         Reported by Simon Josefsson.
34942
34943 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34944
34945         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
34946
34947 2008-12-06  Bruno Haible  <bruno@clisp.org>
34948
34949         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
34950         Suggested by Eric Blake.
34951
34952 2008-12-06  Bruno Haible  <bruno@clisp.org>
34953
34954         Fix a c-stack test failure on MacOS X.
34955         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
34956         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
34957         handler for SIGBUS as well.
34958         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
34959         install a signal handler for SIGBUS as well.
34960         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
34961
34962 2008-12-06  Bruno Haible  <bruno@clisp.org>
34963
34964         Advocacy documentation.
34965         * doc/gnulib-intro.texi (Benefits): New section.
34966         * doc/gnulib.texi: Update.
34967
34968 2008-12-06  Bruno Haible  <bruno@clisp.org>
34969
34970         Document the 'manywarnings' module.
34971         * doc/manywarnings.texi: New file.
34972         * doc/gnulib.texi: Include it.
34973
34974 2008-12-05  Eric Blake  <ebb9@byu.net>
34975
34976         tests: silence some gcc warnings
34977         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
34978         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
34979         type mismatches.
34980
34981 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34982             Bruno Haible  <bruno@clisp.org>
34983
34984         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
34985
34986 2008-11-29  Jim Meyering  <meyering@redhat.com>
34987
34988         unicodeio.c: mark unused parameters
34989         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34990         (fallback_failure_callback): Likewise.
34991
34992         fts: fix a thinko
34993         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
34994         (set_stat_type): Return S_IF*-valued "type" directly.
34995         Prompted by James Youngman's spotting a related bug.
34996         Confirmed by further testing through find.
34997
34998         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
34999         * lib/fts.c (D_TYPE): Define.
35000         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35001         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35002         (s_ifmt_shift_bits): New function.
35003         (set_stat_type): New function.
35004         (fts_build): When not calling fts_stat, call set_stat_type
35005         to propagate dirent.d_type info to fts_read caller.
35006         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35007         fts_statp->st_mode type information may be valid.
35008
35009 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35010
35011         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35012         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35013         <sds@gnu.org>.
35014
35015 2008-11-20  Bruno Haible  <bruno@clisp.org>
35016
35017         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35018         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35019         INCLUDE_NEXT.
35020         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35021         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35022         * modules/math (Makefile.am): Substitute
35023         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35024         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35025
35026 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35027             Bruno Haible  <bruno@clisp.org>
35028
35029         * lib/stdint.in.h: Define all type macros so that their expansion is
35030         a single typedef'ed token. Fixes a compilation failure in Boost which
35031         does "using ::int8_t;".
35032
35033 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35034
35035         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35036         gl_MANYWARN_ALL_GCC.
35037         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35038         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35039         * modules/manywarnings: New file.
35040         * MODULES.html.sh: Mention manywarnings module.
35041
35042 2008-11-18  Bruno Haible  <bruno@clisp.org>
35043
35044         * doc/gnulib-tool.texi (Unit tests): New section.
35045
35046 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35047
35048         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35049         paths like 'lib/po/foo.po'.
35050
35051 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35052
35053         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35054         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35055
35056 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35057
35058         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35059         parameter works.
35060
35061 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35062
35063         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35064
35065 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35066
35067         * modules/parse-duration-tests: New file.
35068         * tests/test-parse-duration.sh: New file.
35069         * tests/test-parse-duration.c: New file.
35070
35071         New module 'parse-duration'.
35072         * lib/parse-duration.h: New file.
35073         * lib/parse-duration.c: New file.
35074         * modules/parse-duration: New file.
35075
35076 2008-11-17  Bruno Haible  <bruno@clisp.org>
35077
35078         * tests/test-select-out.sh: Comment out the first pipe test.
35079         Reported by Simon Josefsson.
35080
35081 2008-11-17  Bruno Haible  <bruno@clisp.org>
35082
35083         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35084         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35085         gl_HOSTENT.
35086
35087 2008-11-17  Bruno Haible  <bruno@clisp.org>
35088
35089         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35090         -lnetwork and -lnet. Needed for Haiku and BeOS.
35091
35092 2008-11-16  Bruno Haible  <bruno@clisp.org>
35093
35094         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35095
35096 2008-11-16  Bruno Haible  <bruno@clisp.org>
35097
35098         Avoid test failure on Haiku.
35099         * tests/test-fsync.c: Include <errno.h>.
35100         (main): Don't require that fsync (0) fails.
35101
35102 2008-11-15  Bruno Haible  <bruno@clisp.org>
35103
35104         New module 'hostent'.
35105         * modules/hostent: New file.
35106         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35107
35108 2008-11-15  Bruno Haible  <bruno@clisp.org>
35109
35110         New module 'servent'.
35111         * modules/servent: New file.
35112         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35113
35114 2008-11-15  Bruno Haible  <bruno@clisp.org>
35115
35116         Avoid generating same test program with two different rules.
35117         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35118         test-frexp to test-frexp-nolibm.
35119         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35120         test-frexpl to test-frexpl-nolibm.
35121
35122 2008-11-15  Bruno Haible  <bruno@clisp.org>
35123
35124         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35125         $(FREXPL_LIBM).
35126
35127 2008-11-15  Bruno Haible  <bruno@clisp.org>
35128
35129         * lib/netdb.in.h: Activate the definitions also when the system's
35130         <netdb.h> has 'struct addrinfo'.
35131         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35132         EAI_OVERFLOW or AI_NUMERICSERV.
35133         * doc/posix-headers/netdb.texi: Document the problem.
35134
35135 2008-11-15  Bruno Haible  <bruno@clisp.org>
35136
35137         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35138
35139         Make the 'sched' module work on platforms where <sched.h> exists but
35140         is incomplete (such as Haiku).
35141         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35142         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35143         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35144         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35145         HAVE_STRUCT_SCHED_PARAM.
35146         * modules/sched (Depends-on): Add include_next.
35147         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35148         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35149         * doc/posix-headers/sched.texi: Document the issue.
35150
35151 2008-11-13  Jim Meyering  <meyering@redhat.com>
35152
35153         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35154         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35155         test would fail due to the difference in the Report bugs to ...
35156         line.  The expected address is empty, "<>", while the actual
35157         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35158
35159 2008-11-12  Bruno Haible  <bruno@clisp.org>
35160
35161         lstat: don't compile lstat.c on systems lacking lstat
35162         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35163         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35164         Reported by Daniel P. Berrange via Jim Meyering.
35165
35166 2008-11-12  Jim Meyering  <meyering@redhat.com>
35167
35168         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35169
35170 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35171
35172         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35173         instead.
35174
35175 2008-11-12  Bruno Haible  <bruno@clisp.org>
35176
35177         * lib/unicodeio.c: Include unistr.h.
35178         (utf8_wctomb): Remove function.
35179         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35180
35181 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35182
35183         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35184         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35185         <bruno@clisp.org>.
35186         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35187
35188 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35189
35190         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35191         * doc/gnulib.texi: Add section for warnings.
35192
35193 2008-11-11  Bruno Haible  <bruno@clisp.org>
35194
35195         * lib/sockets.h: Add a comment.
35196
35197 2008-11-11  Karl Berry  <karl@gnu.org>
35198
35199         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35200
35201 2008-11-11  Eric Blake  <ebb9@byu.net>
35202
35203         fdl.texi: avoid git symlinks
35204         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35205
35206 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35207
35208         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35209
35210 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35211
35212         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35213         (gl_WARN_ADD): Substitute $2 if literal.
35214
35215 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35216
35217         * m4/warning.m4: Remove.
35218
35219 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35220
35221         * m4/warnings.m4: Almost complete rewrite. :-)
35222
35223 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35224
35225         * modules/warnings: New module.
35226         * m4/warnings.m4: New file.
35227         * MODULES.html.sh: Mention warnings module.
35228         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35229         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35230
35231 2008-11-10  Eric Blake  <ebb9@byu.net>
35232
35233         fdl.texi: make a symlink to the latest version
35234         * doc/standards.texi: Revert today's earlier change.
35235         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35236         * doc/fdl.texi: ...and replace this with a symlink to the newer
35237         fdl-1.3.texi.
35238
35239 2008-11-10  Bruno Haible  <bruno@clisp.org>
35240
35241         * tests/test-select-fd.c (main): Accept the result file name as fourth
35242         argument.
35243         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35244         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35245
35246 2008-11-10  Bruno Haible  <bruno@clisp.org>
35247
35248         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35249         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35250         as autoconf-substituted macros.
35251         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35252         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35253         gl_NETDB_H_DEFAULTS. Set these variables.
35254         * modules/netdb (Makefile.am): Substitute these variables.
35255
35256 2008-11-10  Eric Blake  <ebb9@byu.net>
35257
35258         standards.texi: include correct file for FDL 1.3
35259         * doc/standards.texi (GNU Free Documentation License): Change
35260         include file to pull in FDL 1.3, not 1.2.
35261
35262         fdl.texi: revert accidental change to license
35263         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35264
35265 2008-11-10  Bruno Haible  <bruno@clisp.org>
35266
35267         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35268         cross-compiling guesses also when the native compile gives no result.
35269
35270 2008-11-10  Bruno Haible  <bruno@clisp.org>
35271
35272         * lib/spawni.c (__spawni): Force variable into the stack.
35273
35274 2008-11-10  Bruno Haible  <bruno@clisp.org>
35275
35276         Add support for Haiku.
35277         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35278         glibc and BeOS, but also on Haiku.
35279         * lib/fpurge.c (fpurge): Likewise.
35280         * lib/freadable.c (freadable): Likewise.
35281         * lib/freadahead.c (freadahead): Likewise.
35282         * lib/freading.c (freading): Likewise.
35283         * lib/freadptr.c (freadptr): Likewise.
35284         * lib/freadseek.c (freadptrinc): Likewise.
35285         * lib/fseeko.c (rpl_fseeko): Likewise.
35286         * lib/fseterr.c (fseterr): Likewise.
35287         * lib/fwritable.c (fwritable): Likewise.
35288         * lib/fwriting.c (fwriting): Likewise.
35289         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35290
35291 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35292
35293         * lib/config.charset: Treat Haiku like BeOS.
35294
35295 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35296
35297         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35298         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35299
35300 2008-11-08  Bruno Haible  <bruno@clisp.org>
35301
35302         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35303         AC_CACHE_CHECK.
35304
35305 2008-11-08  Bruno Haible  <bruno@clisp.org>
35306
35307         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35308
35309 2008-11-08  Bruno Haible  <bruno@clisp.org>
35310
35311         * tests/test-select-fd.c: New file.
35312         * tests/test-select-in.sh: New file.
35313         * tests/test-select-out.sh: New file.
35314         * tests/test-select-stdin.c: New file.
35315         * modules/select-tests (Files): Add the new files.
35316         (Depends-on): Add gettimeofday.
35317         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35318         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35319         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35320
35321 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35322             Bruno Haible  <bruno@clisp.org>
35323
35324         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35325
35326 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35327
35328         * build-aux/pmccabe2html: Added support for C++ source files.
35329
35330 2008-11-05  Ben Pfaff  <blp@gnu.org>
35331
35332         Fix lib/close.c build on Windows.
35333         * modules/close (Files): Add lib/w32sock.h.
35334
35335 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35336
35337         Accept Bison's NEWS format.
35338         * build-aux/announce-gen (print_news_deltas): Tweak
35339         $re_prefix.
35340
35341 2008-11-04  Bruno Haible  <bruno@clisp.org>
35342
35343         * modules/random_r (Maintainer): Add glibc.
35344
35345 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35346
35347         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35348         by karl@freefriends.org (Karl Berry).
35349         * doc/alloca.texi: Likewise.
35350         * doc/c-ctype.texi: Likewise.
35351         * doc/c-strcase.texi: Likewise.
35352         * doc/c-strcaseeq.texi: Likewise.
35353         * doc/c-strcasestr.texi: Likewise.
35354         * doc/c-strstr.texi: Likewise.
35355         * doc/c-strtod.texi: Likewise.
35356         * doc/c-strtold.texi: Likewise.
35357         * doc/ctime.texi: Likewise.
35358         * doc/error.texi: Likewise.
35359         * doc/fdl.texi: Likewise.
35360         * doc/gcd.texi: Likewise.
35361         * doc/getdate.texi: Likewise.
35362         * doc/gnulib-intro.texi: Likewise.
35363         * doc/gnulib-tool.texi: Likewise.
35364         * doc/gnulib.texi: Likewise.
35365         * doc/inet_ntoa.texi: Likewise.
35366         * doc/maintain.texi: Likewise.
35367         * doc/make-stds.texi: Likewise.
35368         * doc/quote.texi: Likewise.
35369         * doc/regexprops-generic.texi: Likewise.
35370         * doc/standards.texi: Likewise.
35371         * doc/verify.texi: Likewise.
35372         * doc/visibility.texi: Likewise.
35373         * doc/gnulib.texi (GNU Free Documentation License): Include
35374         fdl-1.3.texi instead of fdl.texi.
35375
35376 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35377
35378         * doc/fdl-1.3.texi: New file, from
35379         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35380         * modules/fdl-1.3: Add.
35381         * MODULES.html.sh: Add fdl-1.3.
35382
35383 2008-11-03  Bruno Haible  <bruno@clisp.org>
35384
35385         Make determination of absolute name of header file work with AIX xlc.
35386         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35387         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35388         preprocessing.
35389         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35390         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35391
35392 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35393
35394         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35395         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35396         <ludo@gnu.org>.
35397
35398 2008-11-02  Bruno Haible  <bruno@clisp.org>
35399
35400         Mark 'strpbrk' obsolete.
35401         * modules/strpbrk (Status, Notice): New sections.
35402         * modules/strtok_r (Depends-on): Add strpbrk.
35403
35404 2008-11-02  Bruno Haible  <bruno@clisp.org>
35405
35406         Mark 'strdup' obsolete.
35407         * modules/strdup (Status, Notice): New sections.
35408         * modules/findprog (Depends-on): Add strdup.
35409         * modules/getaddrinfo (Depends-on): Likewise.
35410         * modules/localename (Depends-on): Likewise.
35411         * modules/relocatable-lib (Depends-on): Likewise.
35412         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35413         * modules/relocatable-prog (Depends-on): Likewise.
35414         * modules/trim (Depends-on): Likewise.
35415         * modules/unictype/gen-ctype (Depends-on): Likewise.
35416         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35417
35418 2008-11-02  Bruno Haible  <bruno@clisp.org>
35419
35420         Mark 'strcspn' obsolete.
35421         * modules/strcspn (Status, Notice): New sections.
35422
35423 2008-11-02  Bruno Haible  <bruno@clisp.org>
35424
35425         Mark 'rmdir' obsolete.
35426         * modules/rmdir (Status, Notice): New sections.
35427         * modules/clean-temp (Depends-on): Add rmdir.
35428         * modules/openat (Depends-on): Likewise.
35429
35430 2008-11-02  Bruno Haible  <bruno@clisp.org>
35431
35432         Mark 'raise' obsolete.
35433         * modules/raise (Status, Notice): New sections.
35434         (Include): Specify <signal.h>.
35435         * modules/stdio (Depends-on): Add raise.
35436         * modules/write (Depends-on): Likewise.
35437
35438 2008-11-02  Bruno Haible  <bruno@clisp.org>
35439
35440         Mark 'memset' obsolete.
35441         * modules/memset (Status, Notice): New sections.
35442
35443 2008-11-02  Bruno Haible  <bruno@clisp.org>
35444
35445         Mark 'memmove' obsolete.
35446         * modules/memmove (Status, Notice): New sections.
35447         * modules/argp (Depends-on): Add memmove.
35448         * modules/argz (Depends-on): Likewise.
35449         * modules/canonicalize (Depends-on): Likewise.
35450         * modules/canonicalize-lgpl (Depends-on): Likewise.
35451         * modules/fts (Depends-on): Likewise.
35452         * modules/getcwd (Depends-on): Likewise.
35453         * modules/human (Depends-on): Likewise.
35454         * modules/regex (Depends-on): Likewise.
35455         * modules/striconveh (Depends-on): Likewise.
35456         * modules/trim (Depends-on): Likewise.
35457         * modules/unistr/u8-move (Depends-on): Likewise.
35458         * modules/unistr/u16-move (Depends-on): Likewise.
35459         * modules/unistr/u32-move (Depends-on): Likewise.
35460
35461 2008-11-02  Bruno Haible  <bruno@clisp.org>
35462
35463         Mark 'memcpy' obsolete.
35464         * modules/memcpy (Status, Notice): New sections.
35465
35466 2008-11-02  Bruno Haible  <bruno@clisp.org>
35467
35468         Mark 'memcmp' obsolete.
35469         * modules/memcmp (Status, Notice): New sections.
35470         * modules/argmatch (Depends-on): Add memchr.
35471         * modules/backupfile (Depends-on): Likewise.
35472         * modules/c-strcasestr (Depends-on): Likewise.
35473         * modules/crypto/des (Depends-on): Likewise.
35474         * modules/csharpcomp (Depends-on): Likewise.
35475         * modules/fnmatch (Depends-on): Likewise.
35476         * modules/git-merge-changelog (Depends-on): Likewise.
35477         * modules/isnand (Depends-on): Likewise.
35478         * modules/isnand-nolibm (Depends-on): Likewise.
35479         * modules/isnanf (Depends-on): Likewise.
35480         * modules/isnanf-nolibm (Depends-on): Likewise.
35481         * modules/isnanl (Depends-on): Likewise.
35482         * modules/isnanl-nolibm (Depends-on): Likewise.
35483         * modules/mbchar (Depends-on): Likewise.
35484         * modules/memcoll (Depends-on): Likewise.
35485         * modules/quotearg (Depends-on): Likewise.
35486         * modules/regex (Depends-on): Likewise.
35487         * modules/relocatable-prog (Depends-on): Likewise.
35488         * modules/same (Depends-on): Likewise.
35489         * modules/signbit (Depends-on): Likewise.
35490         * modules/strcasestr-simple (Depends-on): Likewise.
35491         * modules/unictype/gen-ctype (Depends-on): Likewise.
35492         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35493         * modules/uniname/uniname (Depends-on): Likewise.
35494         * modules/unistr/u8-cmp (Depends-on): Likewise.
35495
35496 2008-11-02  Bruno Haible  <bruno@clisp.org>
35497
35498         Mark 'memchr' obsolete.
35499         * modules/memchr (Status, Notice): New sections.
35500         * modules/argp (Depends-on): Add memchr.
35501         * modules/base64 (Depends-on): Likewise.
35502         * modules/c-strcasestr (Depends-on): Likewise.
35503         * modules/chdir-long (Depends-on): Likewise.
35504         * modules/fnmatch (Depends-on): Likewise.
35505         * modules/getsubopt (Depends-on): Likewise.
35506         * modules/git-merge-changelog (Depends-on): Likewise.
35507         * modules/glob (Depends-on): Likewise.
35508         * modules/strcasestr-simple (Depends-on): Likewise.
35509         * modules/strnlen (Depends-on): Likewise.
35510
35511 2008-11-02  Bruno Haible  <bruno@clisp.org>
35512
35513         Mark 'atexit' obsolete.
35514         * modules/atexit (Status, Notice): New sections.
35515         * modules/chdir-long (Depends-on): Add atexit.
35516         * modules/wait-process (Depends-on): Likewise.
35517
35518 2008-11-02  Bruno Haible  <bruno@clisp.org>
35519
35520         * gnulib-tool: New option --with-obsolete.
35521         (func_usage): Document it.
35522         (func_modules_transitive_closure): Drop obsolete dependencies if
35523         incobsolete is not true.
35524         (func_import): Read and save the incobsolete variable to the cache.
35525
35526 2008-11-02  Bruno Haible  <bruno@clisp.org>
35527
35528         * modules/TEMPLATE-EXTENDED: New field 'Status'.
35529         * gnulib-tool: New option --extract-status.
35530         (func_usage): Document it.
35531         (sed_extract_prog): Recognize it.
35532         (func_get_status): New function.
35533
35534 2008-10-30  Simon Josefsson  <simon@josefsson.org>
35535
35536         * modules/sockets (License): Change from LGPL to LGPLv2+.
35537
35538 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35539
35540         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
35541
35542 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35543
35544         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35545         Mention times and sys_times.
35546         * modules/sys_times, modules/sys_times-tests: New modules.
35547         * modules/times, modules/times-tests: Likewise
35548         * m4/sys_times_h.m4: New file.
35549         * lib/sys_times.in.h: Likewise
35550         * lib/times.c: Likewise.
35551         * tests/test-sys_times.c: Likewise.
35552         * tests/test-times.c: Likewise.
35553         * doc/posix-headers/sys_times.texi: Update.
35554         * doc/posix-functions/times.texi: Update.
35555
35556 2008-10-28  Jim Meyering  <meyering@redhat.com>
35557
35558         * modules/tempname (Depends-on): Add lstat.
35559
35560         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
35561
35562 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35563
35564         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
35565         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
35566         using idiom used elsewhere in gnulib.
35567
35568 2008-10-27  Jim Meyering  <meyering@redhat.com>
35569
35570         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
35571
35572 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35573
35574         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
35575         TESTS_ENVIRONMENT, for shell scripts that needs to call built
35576         programs.
35577         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35578
35579 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35580
35581         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
35582
35583 2008-10-27  Bruno Haible  <bruno@clisp.org>
35584
35585         * tests/test-lstat.c: Include <stdio.h>.
35586
35587 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35588
35589         * modules/lstat-tests: New module.
35590         * tests/test-lstat.c: New file.
35591
35592 2008-10-26  Jim Meyering  <meyering@redhat.com>
35593
35594         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
35595
35596 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35597             Bruno Haible  <bruno@clisp.org>
35598
35599         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
35600         * modules/configmake (Include): Add a note that the include must come
35601         after all system headers.
35602         * lib/javaversion.c: Include configmake.h after all other includes.
35603
35604 2008-10-26  Bruno Haible  <bruno@clisp.org>
35605
35606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
35607         HAVE_STRUCT_RANDOM_DATA to 1.
35608         (gl_STDLIB_H): Simplify.
35609
35610 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35611
35612         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
35613         substitute HAVE_STRUCT_RANDOM_DATA.
35614         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
35615         random_data.
35616         * modules/stdlib (Makefile.am): Substitute
35617         HAVE_STRUCT_RANDOM_DATA.
35618
35619 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35620
35621         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
35622         * doc/gnulib-intro.texi (Copyright): Likewise.
35623
35624 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35625
35626         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
35627         findings.
35628
35629 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
35630             Bruno Haible  <bruno@clisp.org>
35631
35632         * lib/unistd.in.h: Include <winsock2.h>.
35633         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
35634         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
35635         Provide dummy declarations.
35636         (gethostname): Override.
35637         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
35638         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
35639         gl_PREREQ_SYS_H_WINSOCK2.
35640         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
35641         * doc/posix-functions/gethostname.texi: More details.
35642
35643 2008-10-25  Bruno Haible  <bruno@clisp.org>
35644
35645         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35646         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
35647         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
35648
35649         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
35650         here ...
35651         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
35652         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
35653         gl_UNISTD_H_DEFAULTS.
35654
35655 2008-10-25  Eric Blake  <ebb9@byu.net>
35656
35657         signbit: avoid spurious compiler failure
35658         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
35659         declarations inside function.
35660
35661 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35662             Bruno Haible  <bruno@clisp.org>
35663
35664         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
35665         * modules/random_r (Depends-on): Add stdint.
35666
35667 2008-10-24  Bruno Haible  <bruno@clisp.org>
35668
35669         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
35670         Eggert.
35671         * modules/strerror (License): Likewise.
35672
35673 2008-10-24  Jim Meyering  <meyering@redhat.com>
35674
35675         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
35676         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
35677
35678 2008-10-24  Eric Blake  <ebb9@byu.net>
35679
35680         getgroups: fix compilation when getgroups is available
35681         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
35682         but with <config.h> override of getgroups disabled.
35683
35684 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35685
35686         * doc/gnulib.texi (Header files): Add note about C++ problems.
35687         Explained by Bruno Haible <bruno@clisp.org>.
35688
35689 2008-10-23  Bruno Haible  <bruno@clisp.org>
35690
35691         Define a dummy SA_NODEFER macro on Interix.
35692         * lib/signal.in.h (SA_NODEFER): Define fallback.
35693         Reported by Aleksey Cheusov <cheusov@tut.by> via
35694         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35695
35696 2008-10-23  Bruno Haible  <bruno@clisp.org>
35697
35698         * modules/freadahead (License): Change to LGPLv2+.
35699         Suggested by Simon Josefsson.
35700
35701 2008-10-23  Jim Meyering  <meyering@redhat.com>
35702
35703         random_r: new module
35704         * modules/random_r: New file.
35705         * m4/random_r.m4: New file.
35706         * lib/random_r.c: New file, from glibc.
35707         * modules/random_r-tests: New file.
35708         * tests/test-random_r.c: New file.
35709         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35710          Declare.
35711         (RAND_MAX): Define.
35712         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35713         * modules/stdlib: Substitute them, too.
35714         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35715         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35716         * doc/glibc-functions/random_r.texi: Likewise.
35717         * doc/glibc-functions/setstate_r.texi: Likewise.
35718         * doc/glibc-functions/srandom_r.texi: Likewise.
35719         * config/srclist.txt: Mention it.
35720
35721 2008-10-23  David Lutterkort  <lutter@redhat.com>
35722
35723         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35724         link requirement
35725
35726 2008-10-23  Jim Meyering  <meyering@redhat.com>
35727
35728         selinux-h: mark parameters of stub functions as intentionally unused
35729         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35730         * lib/se-context.in.h: Likewise.
35731
35732 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35733
35734         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35735
35736 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35737
35738         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35739
35740 2008-10-22  Eric Blake  <ebb9@byu.net>
35741
35742         glthread/thread: avoid compiler warning
35743         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35744         Add unreachable abort to silence compiler.
35745
35746 2008-10-22  Eric Blake  <ebb9@byu.net>
35747
35748         netdb: also supply struct addrinfo for cygwin 1.5.x
35749         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35750         older cygwin.
35751         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35752         cygwin.
35753         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35754
35755 2008-10-22  Bruno Haible  <bruno@clisp.org>
35756
35757         * users.txt: Update entry about pspp.
35758
35759 2008-10-21  Bruno Haible  <bruno@clisp.org>
35760
35761         Simplification.
35762         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35763         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35764
35765         Simplification.
35766         * lib/ioctl.c (ioctl): Don't undefine.
35767         * lib/socket.c (socket): Don't undefine.
35768
35769         Remove unused module indicator macros.
35770         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35771         GNULIB_$1 as a C macro.
35772
35773         * doc/posix-functions/close.texi: Undo last change.
35774         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35775         Windows platforms.
35776
35777 2008-10-21  Bruno Haible  <bruno@clisp.org>
35778
35779         Add gethostname() declaration to <unistd.h>.
35780         * lib/unistd.in.h (gethostname): New declaration.
35781         * lib/gethostname.c: Include <unistd.h>.
35782         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35783         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35785         and HAVE_GETHOSTNAME.
35786         * modules/gethostname (Depends-on): Add unistd.
35787         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35788         (Include): Specify <unistd.h>.
35789         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35790         HAVE_GETHOSTNAME.
35791         * tests/test-gethostname.c: Include <unistd.h> first.
35792
35793 2008-10-21  Bruno Haible  <bruno@clisp.org>
35794
35795         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
35796         * modules/select-tests (Depends-on): Likewise.
35797         Reported by Simon Josefsson.
35798
35799 2008-10-21  Simon Josefsson  <simon@josefsson.org>
35800
35801         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
35802         * lib/accept.c: New file, based on winsock.c.
35803         * lib/bind.c: New file, based on winsock.c.
35804         * lib/connect.c: New file, based on winsock.c.
35805         * lib/getpeername.c: New file, based on winsock.c.
35806         * lib/getsockname.c: New file, based on winsock.c.
35807         * lib/getsockopt.c: New file, based on winsock.c.
35808         * lib/ioctl.c: New file, based on winsock.c.
35809         * lib/listen.c: New file, based on winsock.c.
35810         * lib/recv.c: New file, based on winsock.c.
35811         * lib/recvfrom.c: New file, based on winsock.c.
35812         * lib/send.c: New file, based on winsock.c.
35813         * lib/sendto.c: New file, based on winsock.c.
35814         * lib/setsockopt.c: New file, based on winsock.c.
35815         * lib/shutdown.c: New file, based on winsock.c.
35816         * lib/socket.c: New file, based on winsock.c.
35817         * lib/w32sock.h: New file, based on winsock.c.
35818         * lib/winsock.c: Remove file.
35819         * modules/accept: Likewise.
35820         * modules/bind: Likewise.
35821         * modules/connect: Likewise.
35822         * modules/getpeername: Likewise.
35823         * modules/getsockname: Likewise.
35824         * modules/getsockopt: Likewise.
35825         * modules/ioctl: Likewise.
35826         * modules/listen: Likewise.
35827         * modules/recv: Likewise.
35828         * modules/recvfrom: Likewise.
35829         * modules/send: Likewise.
35830         * modules/sendto: Likewise.
35831         * modules/setsockopt: Likewise.
35832         * modules/shutdown: Likewise.
35833         * modules/socket: Use socket.c instead of winsock.c.
35834         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
35835         * doc/posix-functions/accept.texi: Doc fix.
35836         * doc/posix-functions/bind.texi: Doc fix.
35837         * doc/posix-functions/close.texi: Doc fix.
35838         * doc/posix-functions/connect.texi: Doc fix.
35839         * doc/posix-functions/getpeername.texi: Doc fix.
35840         * doc/posix-functions/getsockname.texi: Doc fix.
35841         * doc/posix-functions/getsockopt.texi: Doc fix.
35842         * doc/posix-functions/ioctl.texi: Doc fix.
35843         * doc/posix-functions/listen.texi: Doc fix.
35844         * doc/posix-functions/recv.texi: Doc fix.
35845         * doc/posix-functions/recvfrom.texi: Doc fix.
35846         * doc/posix-functions/send.texi: Doc fix.
35847         * doc/posix-functions/sendto.texi: Doc fix.
35848         * doc/posix-functions/setsockopt.texi: Doc fix.
35849         * doc/posix-functions/shutdown.texi: Doc fix.
35850         * doc/posix-functions/socket.texi: Doc fix.
35851
35852 2008-10-20  Bruno Haible  <bruno@clisp.org>
35853
35854         Take into account the role of SIGABRT_COMPAT on Windows 2008.
35855         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
35856         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
35857         as an alias for SIGABRT.
35858         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
35859         (sigaction): Map it to SIGABRT.
35860         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
35861
35862 2008-10-20  Bruno Haible  <bruno@clisp.org>
35863
35864         * lib/fts.c: Don't include lstat.h.
35865         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
35866
35867         Move the lstat() declaration to <sys/stat.h>.
35868         * lib/lstat.h: Remove file.
35869         * lib/sys_stat.in.h: Add special invocation convention.
35870         (lstat): New declaration.
35871         * lib/lstat.c (orig_lstat): New function.
35872         (rpl_lstat): Use orig_lstat instead of lstat.
35873         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
35874         AC_C_INLINE. Set REPLACE_LSTAT.
35875         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
35876         and REPLACE_LSTAT.
35877         * modules/lstat (Files): Remove lib/lstat.h.
35878         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35879         (Include): Specify <sys/stat.h> instead of lstat.h.
35880         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
35881         REPLACE_LSTAT.
35882         * NEWS: Mention the change.
35883
35884 2008-10-20  Bruno Haible  <bruno@clisp.org>
35885
35886         * modules/posix_spawn-tests: New file.
35887         * tests/test-posix_spawn3.c: New file.
35888
35889 2008-10-20  Bruno Haible  <bruno@clisp.org>
35890
35891         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
35892         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35893         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
35894         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35895         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
35896
35897 2008-10-20  Bruno Haible  <bruno@clisp.org>
35898
35899         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
35900         of posix_spawn on AIX 5.3.
35901
35902 2008-10-20  Bruno Haible  <bruno@clisp.org>
35903
35904         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
35905
35906 2008-10-20  Bruno Haible  <bruno@clisp.org>
35907
35908         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
35909         of AC_LANG_PROGRAM.
35910
35911 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35912
35913         * lib/netdb.in.h: Don't define GNU specific constants until they
35914         are supported or needed.  Reported by Bruno Haible
35915         <bruno@clisp.org>.
35916
35917 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35918
35919         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
35920
35921 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35922
35923         * lib/getaddrinfo.h: Remove file.
35924         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
35925         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
35926         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
35927         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
35928         * modules/netdb: Substitute GNULIB_GETADDRINFO.
35929         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
35930         * tests/test-getaddrinfo.c: Likewise.
35931         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
35932         * NEWS: Mention change.
35933
35934 2008-10-19  Bruno Haible  <bruno@clisp.org>
35935
35936         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
35937
35938 2008-10-19  Bruno Haible  <bruno@clisp.org>
35939
35940         * lib/wait-process.c: Include simply <sys/wait.h>.
35941         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
35942         WIFSTOPPED): Remove fallback definitions.
35943         * modules/wait-process (Depends-on): Add sys_wait.
35944
35945         New module 'sys_wait'.
35946         * modules/sys_wait: New file.
35947         * lib/sys_wait.in.h: New file, partially copied from
35948         lib/wait-process.c.
35949         * m4/sys_wait_h.m4: New file.
35950         * doc/posix-headers/sys_wait.texi: Mention the new module.
35951
35952 2008-10-19  Bruno Haible  <bruno@clisp.org>
35953
35954         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
35955
35956 2008-10-19  Bruno Haible  <bruno@clisp.org>
35957
35958         Assume that waitpid() fills an 'int' status, not a 'union wait'.
35959         * lib/wait-process.c (WAIT_T): Remove type.
35960         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
35961         (wait_subprocess): Update.
35962
35963 2008-10-19  Bruno Haible  <bruno@clisp.org>
35964
35965         New module 'atoll'.
35966         * modules/atoll: New file.
35967         * lib/stdlib.in.h (atoll): New declaration.
35968         * lib/atoll.c: New file, from glibc with modifications.
35969         * m4/atoll.m4: New file.
35970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
35971         HAVE_ATOLL.
35972         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
35973         * doc/posix-functions/atoll.texi: Mention the new module.
35974
35975 2008-10-19  Bruno Haible  <bruno@clisp.org>
35976
35977         Add strtoull() declaration to <stdlib.h>.
35978         * lib/stdlib.in.h (strtoull): New declaration.
35979         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35980         Set HAVE_STRTOULL.
35981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
35982         HAVE_STRTOULL.
35983         * modules/strtoull (Depends-on): Add stdlib.
35984         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35985         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
35986         HAVE_STRTOULL.
35987
35988 2008-10-19  Bruno Haible  <bruno@clisp.org>
35989
35990         Add strtoll() declaration to <stdlib.h>.
35991         * lib/stdlib.in.h (strtoll): New declaration.
35992         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35993         Set HAVE_STRTOLL.
35994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
35995         HAVE_STRTOLL.
35996         * modules/strtoll (Depends-on): Add stdlib.
35997         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35998         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
35999
36000 2008-10-19  Bruno Haible  <bruno@clisp.org>
36001
36002         * modules/bcopy (Depends-on): Add strings.
36003         (Include): Specify <strings.h>.
36004
36005 2008-10-19  Bruno Haible  <bruno@clisp.org>
36006
36007         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36008
36009 2008-10-19  Bruno Haible  <bruno@clisp.org>
36010
36011         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36012         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36013         mingw.
36014
36015 2008-10-19  Bruno Haible  <bruno@clisp.org>
36016
36017         * lib/atanl.c: Don't include isnanl.h.
36018         * lib/cosl.c: Likewise.
36019         * lib/ldexpl.c: Likewise.
36020         * lib/logl.c: Likewise.
36021         * lib/sinl.c: Likewise.
36022         * lib/sqrtl.c: Likewise.
36023         * lib/tanl.c: Likewise.
36024
36025         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36026         * lib/isnanf.h: Remove file.
36027         * lib/isnand.h: Remove file.
36028         * lib/isnanl.h: Remove file.
36029         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36030         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36031         macros.
36032         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36033         HAVE_ISNANF, don't define it as a C macro.
36034         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36035         HAVE_ISNAND, don't define it as a C macro.
36036         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36037         HAVE_ISNANL, don't define it as a C macro.
36038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36039         HAVE_ISNAN[FDL].
36040         * modules/isnanf (Files): Remove lib/isnanf.h.
36041         (Depends-on): Add math.
36042         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36043         (Include): Specify <math.h> instead of isnanf.h.
36044         * modules/isnand (Files): Remove lib/isnand.h.
36045         (Depends-on): Add math.
36046         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36047         (Include): Specify <math.h> instead of isnand.h.
36048         * modules/isnanl (Files): Remove lib/isnanl.h.
36049         (Depends-on): Add math.
36050         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36051         (Include): Specify <math.h> instead of isnanl.h.
36052         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36053         HAVE_ISNAN[FDL].
36054         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36055         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36056         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36057         * NEWS: Mention the change.
36058
36059 2008-10-18  Bruno Haible  <bruno@clisp.org>
36060
36061         Add getusershell(), setusershell(), endusershell() declarations to
36062         <unistd.h>.
36063         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36064         declarations.
36065         * lib/getusershell.c: Include unistd.h.
36066         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36067         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36068         HAVE_GETUSERSHELL.
36069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36070         and HAVE_GETUSERSHELL.
36071         * modules/getusershell (Depends-on): Add unistd, extensions.
36072         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36073         (Include): Specify <unistd.h>.
36074         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36075         HAVE_GETUSERSHELL.
36076
36077 2008-10-18  Bruno Haible  <bruno@clisp.org>
36078
36079         Add a getloadavg() declaration to <stdlib.h>.
36080         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36081         getloadavg declaration.
36082         (getloadavg): New declaration.
36083         * lib/getloadavg.c: Include <stdlib.h> first.
36084         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36085         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36086         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36088         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36089         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36090         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36091         (Include): Specify <stdlib.h>.
36092         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36093         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36094
36095 2008-10-18  Bruno Haible  <bruno@clisp.org>
36096
36097         * lib/dirchownmod.c: Don't include lchmod.h.
36098
36099         Move the lchmod() declaration to <sys/stat.h>.
36100         * lib/lchmod.h: Remove file.
36101         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36102         (lchmod): New declaration, moved here from lib/lchown.h.
36103         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36104         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36105         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36106         and HAVE_LCHMOD.
36107         * modules/lchmod (Files): Remove lib/lchmod.h.
36108         (Depends-on): Add sys_stat, extensions.
36109         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36110         (Include): Specify <sys/stat.h> instead of lchmod.h.
36111         * modules/sys_stat (Depends-on): Add link-warning.
36112         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36113         definition of GL_LINK_WARNING.
36114         * NEWS: Mention the change.
36115
36116 2008-10-18  Bruno Haible  <bruno@clisp.org>
36117
36118         * lib/fchdir.c: Don't include dirfd.h.
36119         * lib/fts.c: Likewise.
36120         * lib/getcwd.c: Likewise.
36121         * lib/glob.c: Likewise.
36122
36123         Move the dirfd() declaration to <dirent.h>.
36124         * lib/dirfd.h: Remove file.
36125         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36126         (dirfd): New declaration.
36127         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36128         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36129         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36130         HAVE_DECL_DIRFD.
36131         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36132         HAVE_DECL_DIRFD.
36133         * modules/dirfd (Files): Remove lib/dirfd.h.
36134         (Depends-on): Add dirent, extensions.
36135         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36136         (Include): Specify <dirent.h> instead of dirfd.h.
36137         * modules/dirent (Depends-on): Add link-warning.
36138         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36139         definition of GL_LINK_WARNING.
36140         * NEWS: Mention the change.
36141
36142 2008-10-18  Bruno Haible  <bruno@clisp.org>
36143
36144         Move the euidaccess() declaration to <unistd.h>.
36145         * lib/euidaccess.h: Remove file.
36146         * lib/unistd.in.h (euidaccess): New declaration.
36147         * lib/euidaccess.c: Don't include euidaccess.h.
36148         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36149         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36151         and HAVE_EUIDACCESS.
36152         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36153         (Depends-on): Add unistd.
36154         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36155         (Include): Specify <unistd.h> instead of euidaccess.h.
36156         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36157         HAVE_EUIDACCESS.
36158         * NEWS: Mention the change.
36159
36160 2008-10-18  Bruno Haible  <bruno@clisp.org>
36161
36162         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36163
36164         Move the getdomainname() declaration to <unistd.h>.
36165         * lib/getdomainname.h: Remove file.
36166         * lib/unistd.in.h (getdomainname): New declaration.
36167         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36168         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36169         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36170         HAVE_GETDOMAINNAME.
36171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36172         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36173         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36174         (Depends-on): Add unistd, extensions.
36175         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36176         (Includes): Specify <unistd.h> instead of getdomainname.h.
36177         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36178         HAVE_GETDOMAINNAME.
36179         * NEWS: Mention the change.
36180
36181 2008-10-18  Bruno Haible  <bruno@clisp.org>
36182
36183         * modules/dirent: New file.
36184         * m4/dirent_h.m4: New file.
36185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36186         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36187         * modules/fchdir (Files): Remove lib/dirent.in.h.
36188         (Depends-on): Add dirent.
36189         (Makefile.am): Move rules to modules/dirent.
36190         * doc/posix-headers/dirent.texi: Mention the new module.
36191
36192 2008-10-18  Bruno Haible  <bruno@clisp.org>
36193
36194         Avoid -Wunused-parameter warnings in public gnulib header files.
36195         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36196         macro.
36197         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36198
36199 2008-10-18  Bruno Haible  <bruno@clisp.org>
36200
36201         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36202         * doc/glibc-functions/error.texi: Mention the module 'error'.
36203         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36204         * doc/glibc-functions/getdomainname.texi: Mention the module
36205         'getdomainname'.
36206         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36207         * doc/glibc-functions/getpagesize.texi: Mention the module
36208         'getpagesize'.
36209         * doc/glibc-functions/getusershell.texi: Mention the module
36210         'getusershell'.
36211         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36212         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36213         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36214         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36215         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36216         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36217         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36218         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36219         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36220         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36221         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36222         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36223         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36224         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36225
36226 2008-10-17  Bruno Haible  <bruno@clisp.org>
36227
36228         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36229         HP-UX and IRIX, use -0.0L.
36230         * tests/test-ceill.c (minus_zero): Likewise.
36231         * tests/test-floorl.c (minus_zero): Likewise.
36232         * tests/test-frexpl.c (minus_zero): Likewise.
36233         * tests/test-isnan.c (minus_zerol): Likewise.
36234         * tests/test-isnanl.h (minus_zero): Likewise.
36235         * tests/test-ldexpl.c (minus_zero): Likewise.
36236         * tests/test-roundl.c (minus_zero): Likewise.
36237         * tests/test-signbit.c (minus_zerol): Likewise.
36238         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36239         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36240         * tests/test-truncl.c (minus_zero): Likewise.
36241         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36242         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36243         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36244         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36245
36246 2008-10-17  Bruno Haible  <bruno@clisp.org>
36247
36248         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36249         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36250         that it gets activated only for gcc >= 3.0.
36251         * lib/dirent.in.h: Likewise.
36252         * lib/errno.in.h: Likewise.
36253         * lib/fcntl.in.h: Likewise.
36254         * lib/float.in.h: Likewise.
36255         * lib/iconv.in.h: Likewise.
36256         * lib/inttypes.in.h: Likewise.
36257         * lib/locale.in.h: Likewise.
36258         * lib/math.in.h: Likewise.
36259         * lib/netdb.in.h: Likewise.
36260         * lib/netinet_in.in.h: Likewise.
36261         * lib/search.in.h: Likewise.
36262         * lib/signal.in.h: Likewise.
36263         * lib/spawn.in.h: Likewise.
36264         * lib/stdarg.in.h: Likewise.
36265         * lib/stdint.in.h: Likewise.
36266         * lib/stdio.in.h: Likewise.
36267         * lib/stdlib.in.h: Likewise.
36268         * lib/string.in.h: Likewise.
36269         * lib/strings.in.h: Likewise.
36270         * lib/sys_file.in.h: Likewise.
36271         * lib/sys_ioctl.in.h: Likewise.
36272         * lib/sys_select.in.h: Likewise.
36273         * lib/sys_socket.in.h: Likewise.
36274         * lib/sys_stat.in.h: Likewise.
36275         * lib/sys_time.in.h: Likewise.
36276         * lib/sysexits.in.h: Likewise.
36277         * lib/time.in.h: Likewise.
36278         * lib/unistd.in.h: Likewise.
36279         * lib/wchar.in.h: Likewise.
36280         * lib/wctype.in.h: Likewise.
36281         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36282
36283 2008-10-17  Jim Meyering  <meyering@redhat.com>
36284
36285         ignore-value: don't depend on inline module
36286         * modules/ignore-value (Depends-on): Remove 'inline'.
36287         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36288         Suggestion from Bruno Haible.
36289
36290 2008-10-17  Bruno Haible  <bruno@clisp.org>
36291
36292         New implementation of condition variables for Win32.
36293         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36294         (gl_linked_waitqueue_t): New type.
36295         (gl_cond_t): Use it.
36296         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36297         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36298         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36299         (glthread_cond_init_func, glthread_cond_wait_func,
36300         glthread_cond_timedwait_func, glthread_cond_signal_func,
36301         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36302         Reimplemented on the basis of gl_linked_waitqueue_t.
36303         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36304         gl_waitqueue_t.
36305         (gl_rwlock_t): Update.
36306         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36307
36308 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36309
36310         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36311         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36312
36313 2008-10-17  Jim Meyering  <meyering@redhat.com>
36314
36315         ignore-value: new module
36316         * modules/ignore-value: New file.
36317         * lib/ignore-value.h: New file.
36318         * MODULES.html.sh (Compiler warning management): New section,
36319         just for this module.  More to come.
36320
36321 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36322
36323         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36324         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36325         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36326
36327 2008-10-16  Jim Meyering  <meyering@redhat.com>
36328
36329         openat-die.c: avoid 'no previous prototype' warning
36330         * lib/openat-die.c: Include "openat.h".
36331         Reported by Reuben Thomas <rrt@sc3d.org>.
36332
36333 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36334
36335         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36336         * lib/netdb.in.h: Fix typo.
36337         Reported by Bruno Haible  <bruno@clisp.org>
36338
36339         * lib/netdb.in.h: Include sys/socket.h for platforms without
36340         netdb.h, to get structures like hostent on MinGW.
36341         * modules/netdb (Depends-on): Add sys_socket.
36342
36343 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36344
36345         * modules/netdb, modules/netdb-tests: New file.
36346         * m4/netdb_h.m4: New file.
36347         * lib/netdb.in.h: Add, currently just an empty file pending
36348         definitions.
36349         * tests/test-netdb.c: New file.
36350         * doc/posix-headers/netdb.texi: Mention that we replace it if
36351         needed.
36352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36353         netdb.
36354
36355 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36356
36357         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36358         with code.
36359
36360 2008-10-13  Bruno Haible  <bruno@clisp.org>
36361
36362         * lib/glthread/cond.c (glthread_cond_wait_func,
36363         glthread_cond_timedwait_func): Add a comment.
36364
36365 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36366
36367         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36368         * tests/test-select.c: Likewise,
36369
36370 2008-10-13  Bruno Haible  <bruno@clisp.org>
36371
36372         * lib/glthread/cond.c (glthread_cond_wait_func,
36373         glthread_cond_timedwait_func): Fix variable name.
36374         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36375
36376 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36377
36378         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36379         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36380         struct sockaddr.sa_len.
36381         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36382
36383 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36384
36385         * build-aux/pmccabe2html: Add css and css_url parameters.
36386
36387 2008-10-12  Bruno Haible  <bruno@clisp.org>
36388
36389         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36390         calling aclx_get.
36391         Reported by Rainer Tammer <tammer@tammer.net>.
36392
36393 2008-10-12  Bruno Haible  <bruno@clisp.org>
36394
36395         Use msvcrt aware primitives for creation/termination of Win32 threads.
36396         * lib/glthread/thread.c: Include <process.h>.
36397         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36398         (wrapper_func): Update signature.
36399         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36400
36401 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36402             Bruno Haible  <bruno@clisp.org>
36403
36404         Provide a Win32 implementation of the 'cond' module.
36405         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36406         * lib/glthread/cond.c (glthread_cond_init_func,
36407         glthread_cond_wait_func, glthread_cond_timedwait_func,
36408         glthread_cond_signal_func, glthread_cond_broadcast_func,
36409         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36410         * modules/cond (Dependencies): Add gettimeofday.
36411
36412 2008-10-11  Bruno Haible  <bruno@clisp.org>
36413
36414         Make sleep work on older versions of mingw.
36415         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36416         only whether it exists.
36417         * doc/posix-functions/sleep.texi: Mention the problem with older
36418         versions of mingw.
36419
36420 2008-10-11  Bruno Haible  <bruno@clisp.org>
36421
36422         New module 'shutdown'.
36423         * modules/shutdown: New file.
36424         * lib/sys_socket.in.h (shutdown): New declaration.
36425         * lib/winsock.c (shutdown): New function.
36426         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36427         GNULIB_SHUTDOWN.
36428         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36429         * doc/posix-functions/shutdown.texi: Document the new module.
36430
36431 2008-10-11  Jim Meyering  <meyering@redhat.com>
36432
36433         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36434
36435 2008-10-11  Bruno Haible  <bruno@clisp.org>
36436
36437         New module 'fclose'.
36438         * modules/fclose: New file.
36439         * lib/stdio.in.h (fclose): New declaration.
36440         * lib/fclose.c: New file.
36441         * m4/fclose.m4: New file.
36442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36443         REPLACE_FCLOSE.
36444         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36445         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36446         REPLACE_FCLOSE.
36447         * modules/close (Depends-on): fclose.
36448         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36449
36450 2008-10-11  Bruno Haible  <bruno@clisp.org>
36451
36452         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36453         set errno and don't call _close.
36454
36455 2008-10-10  Bruno Haible  <bruno@clisp.org>
36456
36457         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36458         ACL, not afterwards. Fixes test failure on Cygwin.
36459
36460 2008-10-09  Ben Pfaff  <blp@gnu.org>
36461
36462         * build-aux/announce-gen: Fix gnulib version related part of usage
36463         message.  Die with a useful error message if no tarballs are
36464         found.
36465
36466 2008-10-10  Jim Meyering  <meyering@redhat.com>
36467
36468         bootstrap: use git's --depth=N option only if it's supported
36469         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36470         recognize the --depth option.  Reported by Pádraig Brady.
36471
36472 2008-10-09  Bruno Haible  <bruno@clisp.org>
36473
36474         New module 'ioctl'.
36475         * modules/ioctl: New file.
36476         * lib/sys_socket.in.h (ioctl): Remove declaration.
36477         * lib/winsock.c: Include <sys/ioctl.h>.
36478         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36479         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36480         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36481         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36482         * doc/posix-functions/ioctl.texi: Mention the new module.
36483
36484 2008-10-09  Bruno Haible  <bruno@clisp.org>
36485
36486         New module 'sys_ioctl'.
36487         * lib/sys_ioctl.in.h: New file.
36488         * m4/sys_ioctl_h.m4: New file.
36489         * modules/sys_ioctl: New file.
36490         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36491
36492 2008-10-09  Bruno Haible  <bruno@clisp.org>
36493
36494         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36495         * lib/winsock.c: Include <stdarg.h>.
36496         (rpl_ioctl): Change to second argument 'int' and then varargs.
36497
36498 2008-10-09  Bruno Haible  <bruno@clisp.org>
36499
36500         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36501         when the sys_socket module is present and the system has <winsock2.h>.
36502
36503 2008-10-09  Bruno Haible  <bruno@clisp.org>
36504
36505         * doc/posix-functions/close.texi: Mention module 'close' instead of
36506         module 'sys_socket'.
36507
36508 2008-10-09  Bruno Haible  <bruno@clisp.org>
36509
36510         * doc/glibc-headers/sys_ioctl.texi: New file.
36511         * doc/gnulib.texi: Include it.
36512
36513 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36514             Bruno Haible  <bruno@clisp.org>
36515
36516         Combine the two replacements of 'close'.
36517         * lib/sys_socket.in.h (close): Define to a reminder to include
36518         <unistd.h>.
36519         (_gl_close_fd_maybe_socket): New declaration.
36520         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
36521         * lib/winsock.c (close): Remove undefinition.
36522         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
36523         needed for the gnulib module 'close'.
36524         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
36525         define to an error symbol or to a warning, if suitable.
36526         * lib/close.c: Include <sys/socket.h>.
36527         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
36528         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
36529         UNISTD_H_HAVE_WINSOCK2_H.
36530         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
36531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36532         UNISTD_H_HAVE_WINSOCK2_H.
36533         * modules/sys_socket (Files): Add m4/unistd_h.m4.
36534         (configure.ac): Set a module indicator.
36535         (Makefile.am): Substitute GNULIB_CLOSE.
36536         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
36537         * modules/poll-tests (Depends-on): Add close.
36538         * modules/select-tests (Depends-on): Likewise.
36539
36540 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36541             Bruno Haible  <bruno@clisp.org>
36542
36543         New module 'close'.
36544         * modules/close: New file.
36545         * lib/unistd.in.h (close): Move declaration out of the
36546         FCHDIR_REPLACEMENT scope.
36547         (_gl_unregister_fd): New declaration.
36548         * lib/close.c: New file.
36549         * lib/fchdir.c (rpl_close): Remove function.
36550         * m4/close.m4: New file.
36551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36552         close.
36553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
36554         REPLACE_CLOSE.
36555         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
36556         REPLACE_CLOSE.
36557         * modules/fchdir (Depends-on): Add close.
36558
36559 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36560             Bruno Haible  <bruno@clisp.org>
36561
36562         * lib/fcntl.in.h (open): Simplify conditionals.
36563         (_gl_register_fd): New declaration.
36564         * lib/fchdir.c (rpl_open): Remove function.
36565         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
36566         also.
36567         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
36568         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36569         open.
36570
36571 2008-10-09  Jim Meyering  <meyering@redhat.com>
36572
36573         GNUmakefile: use the more name-space-friendly "_version"
36574         * top/GNUmakefile (_dummy): Update.
36575         (_version): Rename from "version".
36576
36577 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36578             Bruno Haible  <bruno@clisp.org>
36579
36580         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
36581         rpl_close.
36582         (_gl_register_fd): New function, extracted from rpl_open.
36583         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
36584         (rpl_open, rpl_opendir): Use _gl_register_fd.
36585
36586 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36587
36588         Fix organization of 'open' replacement.
36589         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
36590         (gl_FUNC_OPEN): Use it.
36591         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
36592
36593 2008-10-08  Bruno Haible  <bruno@clisp.org>
36594
36595         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
36596
36597 2008-10-08  Simon Josefsson  <simon@josefsson.org>
36598
36599         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
36600         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
36601         listen).
36602
36603 2008-10-08  Eric Blake  <ebb9@byu.net>
36604
36605         GNUmakefile: add 'make version' target
36606         * top/GNUmakefile (_curr-ver): Split version update rules...
36607         (version): ...into a target.
36608
36609 2008-10-07  Bruno Haible  <bruno@clisp.org>
36610
36611         Use a more portable replacement expression for -0.0L.
36612         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
36613         instead of -0.0L. Fix m4 quotation.
36614
36615         * tests/test-signbit.c: Include <float.h>.
36616         (minus_zero): New variable.
36617         (test_signbitl): Use minus_zero instead of -zero.
36618         * modules/signbit-tests (Depends-on): Add float.
36619
36620         * tests/test-ceill.c: Include <float.h>.
36621         (zero): Remove variable.
36622         (minus_zero): New variable.
36623         (main): Use minus_zero instead of -zero.
36624         * modules/ceill-tests (Depends-on): Add float.
36625
36626         * tests/test-floorl.c: Include <float.h>.
36627         (zero): Remove variable.
36628         (minus_zero): New variable.
36629         (main): Use minus_zero instead of -zero.
36630         * modules/floorl-tests (Depends-on): Add float.
36631
36632         * tests/test-roundl.c: Include <float.h>.
36633         (zero): Remove variable.
36634         (minus_zero): New variable.
36635         (main): Use minus_zero instead of -zero.
36636         * modules/roundl-tests (Depends-on): Add float.
36637
36638         * tests/test-truncl.c: Include <float.h>.
36639         (zero): Remove variable.
36640         (minus_zero): New variable.
36641         (main): Use minus_zero instead of -zero.
36642         * modules/truncl-tests (Depends-on): Add float.
36643
36644         * tests/test-frexpl.c (zero): Remove variable.
36645         (minus_zero): New variable.
36646         (main): Use minus_zero instead of -zero.
36647         * modules/frexpl-tests (Depends-on): Add float.
36648
36649         * tests/test-isnan.c (zerol): Remove variable.
36650         (minus_zerol): New variable.
36651         (test_long_double): Use minus_zerol instead of -zerol.
36652         * modules/isnan-tests (Depends-on): Add float.
36653
36654         * tests/test-isnanl.h (zero): Remove variable.
36655         (minus_zero): New variable.
36656         (main): Use minus_zero instead of -zero.
36657         * modules/isnanl-nolibm-tests (Depends-on): Add float.
36658         * modules/isnanl-tests (Depends-on): Add float.
36659
36660         * tests/test-ldexpl.c (zero): Remove variable.
36661         (minus_zero): New variable.
36662         (main): Use minus_zero instead of -zero.
36663         * modules/ldexpl-tests (Depends-on): Add float.
36664
36665         * tests/test-snprintf-posix.h (zerol): Remove variable.
36666         (minus_zerol): New variable.
36667         (test_function): Use minus_zerol instead of -zerol.
36668         * modules/snprintf-posix-tests (Depends-on): Add float.
36669         * modules/vsnprintf-posix-tests (Depends-on): Add float.
36670
36671         * tests/test-sprintf-posix.h (zerol): Remove variable.
36672         (minus_zerol): New variable.
36673         (test_function): Use minus_zerol instead of -zerol.
36674         * modules/sprintf-posix-tests (Depends-on): Add float.
36675         * modules/vsprintf-posix-tests (Depends-on): Add float.
36676
36677         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
36678         (minus_zerol): New variable.
36679         (test_function): Use minus_zerol instead of -zerol.
36680         * modules/vasnprintf-posix-tests (Depends-on): Add float.
36681
36682         * tests/test-vasprintf-posix.c (zerol): Remove variable.
36683         (minus_zerol): New variable.
36684         (test_function): Use minus_zerol instead of -zerol.
36685         * modules/vasprintf-posix-tests (Depends-on): Add float.
36686
36687 2008-10-07  Simon Josefsson  <simon@josefsson.org>
36688
36689         * MODULES.html.sh (Support for building documentation): Mention
36690         pmccabe2html.  Sort entries.
36691
36692         Add pmccabe2html module, from gnupdf.
36693         * build-aux/pmccabe.css: New file.
36694         * build-aux/pmccabe2html: New file.
36695         * m4/pmccabe2html.m4: New file.
36696         * modules/pmccabe2html: New file.
36697
36698 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36699
36700         flock: new module
36701         * MODULES.html.sh: Add to list of modules.
36702         * lib/flock.c: flock implementation for Windows and Unix systems
36703         which have fcntl.
36704         * doc/glibc-functions/flock.texi: Update documentation.
36705         * lib/sys_file.in.h: <sys/file.h> header file.
36706         * m4/flock.m4: M4 macros.
36707         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36708         * modules/flock: flock module.
36709         * modules/flock-tests: flock tests module.
36710         * modules/sys_file: sys/file.h module.
36711         * tests/test-flock.c: test suite for flock.
36712
36713 2008-10-06  Jim Meyering  <meyering@redhat.com>
36714
36715         bootstrap: check for LT_INIT more portably still ;-)
36716         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36717         Spotted by Bruno Haible.
36718
36719 2008-10-06  Eric Blake  <ebb9@byu.net>
36720
36721         test-signbit: avoid tripping Irix cc bug on -0.0L
36722         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36723         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36724         entire testsuite consistent and avoids an Irix 6.2 bug.
36725
36726 2008-10-05  Bruno Haible  <bruno@clisp.org>
36727             Jim Meyering  <jim@meyering.net>
36728
36729         Add an option for ignoring EPIPE during close_stdout.
36730         * lib/closeout.h: Include <stdbool.h>.
36731         (close_stdout_set_ignore_EPIPE): New declaration.
36732         * lib/closeout.c: Include <stdbool.h>.
36733         (ignore_EPIPE): New variable.
36734         (close_stdout_set_ignore_EPIPE): New function.
36735         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36736         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36737         failure.
36738         * modules/closeout (Depends-on): Add stdbool.
36739
36740 2008-10-05  Bruno Haible  <bruno@clisp.org>
36741
36742         * modules/accept: New file.
36743         * modules/bind: New file.
36744         * modules/connect: New file.
36745         * modules/getpeername: New file.
36746         * modules/getsockname: New file.
36747         * modules/getsockopt: New file.
36748         * modules/listen: New file.
36749         * modules/recv: New file.
36750         * modules/recvfrom: New file.
36751         * modules/send: New file.
36752         * modules/sendto: New file.
36753         * modules/setsockopt: New file.
36754         * modules/socket: New file.
36755         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36756         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36757         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36758         the particular module is requested. Add a link warning when the
36759         particular module is not requested.
36760         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36761         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36762         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36763         the particular module is requested.
36764         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36765         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36766         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36767         * modules/sys_socket (Depends-on): Add link-warning.
36768         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36769         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36770         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36771         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36772         GL_LINK_WARNING.
36773         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36774         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36775         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36776         * doc/posix-functions/getpeername.texi: Mention the new module
36777         'getpeername'.
36778         * doc/posix-functions/getsockname.texi: Mention the new module
36779         'getsockname'.
36780         * doc/posix-functions/getsockopt.texi: Mention the new module
36781         'getsockopt'.
36782         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36783         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36784         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36785         * doc/posix-functions/send.texi: Mention the new module 'send'.
36786         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36787         * doc/posix-functions/setsockopt.texi: Mention the new module
36788         'setsockopt'.
36789         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36790         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36791         listen, connect, accept.
36792         * modules/select-tests (Depends-on): Likewise.
36793
36794 2008-10-05  Bruno Haible  <bruno@clisp.org>
36795
36796         * lib/winsock.c (strerror): Remove unused #undef.
36797         (rpl_close): Remove unused local variable.
36798
36799         * modules/sys_socket (Depends-on); Add errno.
36800
36801 2008-10-05  Bruno Haible  <bruno@clisp.org>
36802
36803         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
36804         (select): Add a link warning when the 'select' module is not used.
36805         * modules/sys_select (Depends-on): Add link-warning.
36806         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
36807         Suggested by Paolo Bonzini.
36808
36809 2008-10-05  Jim Meyering  <meyering@redhat.com>
36810
36811         bootstrap: check for LT_INIT more portably
36812         * build-aux/bootstrap: Avoid using grep -E, since it's not
36813         portable enough.  Suggestion from Bruno Haible.
36814
36815 2008-10-05  Bruno Haible  <bruno@clisp.org>
36816
36817         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
36818         as being fixed by gnulib.
36819
36820 2008-10-05  Bruno Haible  <bruno@clisp.org>
36821
36822         * modules/select-tests: New file, mostly copied from
36823         modules/sys_select-tests.
36824         * tests/test-select.c: New file, mostly copied from
36825         tests/test-sys_select.c.
36826         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
36827         * modules/sys_select-tests (Depends-on): Remove all dependencies.
36828         (Makefile.am): Remove test_sys_select_LDADD.
36829
36830         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
36831         to an undefined symbol, for an error message.
36832         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
36833         (gl_SYS_SELECT_H_DEFAULTS): New macro.
36834         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
36835         winsock-select.c here.
36836         * modules/sys_select (Files): Remove lib/winsock-select.c.
36837         (Depends-on): Remove alloca.
36838         (Makefile.am): Substitute GNULIB_SELECT.
36839         * modules/select: New file.
36840         * doc/posix-functions/select.texi: Update.
36841
36842 2008-10-05  Bruno Haible  <bruno@clisp.org>
36843
36844         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
36845         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
36846         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
36847         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
36848         getdtablesize.
36849         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36850         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36851
36852 2008-10-05  Bruno Haible  <bruno@clisp.org>
36853
36854         * modules/getdtablesize-tests: New file.
36855         * tests/test-getdtablesize.c: New file.
36856
36857         New module 'getdtablesize'.
36858         * lib/unistd.in.h (getdtablesize): New declaration.
36859         * lib/getdtablesize.c: New file.
36860         * m4/getdtablesize.m4: New file.
36861         * modules/getdtablesize: New file.
36862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36863         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
36864         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
36865         HAVE_GETDTABLESIZE.
36866         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
36867
36868 2008-10-05  Bruno Haible  <bruno@clisp.org>
36869
36870         * modules/sched (Makefile.am): Fix typo.
36871         Reported by Simon Josefsson.
36872
36873 2008-10-05  Jim Meyering  <meyering@redhat.com>
36874
36875         bootstrap: check for LT_INIT, too
36876         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
36877         are deprecated.  Suggestion from Ralf Wildenhues.
36878
36879 2008-10-05  Bruno Haible  <bruno@clisp.org>
36880
36881         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
36882         overriding them by ours.
36883         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
36884
36885 2008-10-05  Jim Meyering  <meyering@redhat.com>
36886
36887         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
36888         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
36889         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
36890
36891 2008-10-04  Bruno Haible  <bruno@clisp.org>
36892
36893         * modules/dup2 (License): Change to LGPLv2+.
36894         * modules/sleep (License): Likewise.
36895         * modules/perror (License): Likewise.
36896         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
36897         Blake.
36898         * modules/signal (License): Likewise.
36899         * modules/sigprocmask (License): Likewise.
36900         * modules/raise (License): Change to LGPLv2+, with approval by Jim
36901         Meyering.
36902
36903 2008-10-04  Bruno Haible  <bruno@clisp.org>
36904
36905         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
36906         Reported by Rainer Tammer <tammer@tammer.net>.
36907
36908 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
36909             Bruno Haible  <bruno@clisp.org>
36910
36911         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
36912         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
36913         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
36914
36915 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
36916
36917         filevercmp: new module
36918         * lib/filevercmp.h: New function filevercmp comparing version strings.
36919         * lib/filevercmp.c: Implementation of filevercmp function.
36920         * modules/filevercmp: Module metadata.
36921         * tests/test-filevercmp.c: Unit test for new module.
36922         * modules/filevercmp-tests: Unit test metadata.
36923         * MODULES.html.sh: Add filevercmp module.
36924
36925 2008-10-03  Bruno Haible  <bruno@clisp.org>
36926
36927         * lib/c-ctype.h: Add comment.
36928         Reported by Jim Meyering.
36929
36930 2008-10-02  Bruno Haible  <bruno@clisp.org>
36931
36932         * modules/posix_spawn-internal (Depends-on): Add 'open'.
36933
36934 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36935
36936         * build-aux/bootstrap: Allow renaming bootstrap, and change the
36937         name of bootstrap.conf accordingly.
36938
36939 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36940
36941         * build-aux/bootstrap: Install git-merge-changelog configuration
36942         items into .gitconfig if needed.
36943
36944 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36945
36946         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
36947         git repository, and initialize/update it accordingly.
36948
36949 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
36950
36951         * modules/fsync-tests: New file.
36952         * tests/test-fsync.c: New file.
36953
36954         New module 'fsync'.
36955         * lib/fsync.c: New file.
36956         * m4/fsync.m4: New file.
36957         * modules/fsync: New file.
36958         * lib/unistd.in.h (fsync): New declaration.
36959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
36960         GNULIB_FSYNC and HAVE_FSYNC.
36961         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
36962         * MODULES.html.sh (posix_functions): Add fsync.
36963         * doc/posix-functions/fsync.texi: Mention the new module.
36964
36965 2008-10-02  Jim Meyering  <meyering@redhat.com>
36966
36967         fts.c: sync with similar code from coreutils' remove.c
36968         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
36969         Guard also with "#if defined __linux__", since for now at least,
36970         this code is Linux-kernel-specific.
36971
36972 2008-10-02  Jim Meyering  <meyering@redhat.com>
36973
36974         fts: bug fixes
36975         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
36976         Include <sys/vfs.h>, not <sys/statfs.h>.
36977
36978         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
36979         Include <sys/vfs.h>, not <sys/statfs.h>.
36980
36981 2008-10-01  Bruno Haible  <bruno@clisp.org>
36982
36983         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
36984         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
36985         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
36986         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
36987         * doc/posix-functions/posix_spawnp.texi: Likewise.
36988         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
36989         whether posix_spawn actually works.
36990         * m4/pipe.m4 (gl_PIPE): Likewise.
36991         * modules/execute (Files): Add m4/posix_spawn.m4.
36992         * modules/pipe (Files): Add m4/posix_spawn.m4.
36993         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
36994
36995 2008-10-01  Jim Meyering  <meyering@redhat.com>
36996
36997         remove trailing spaces
36998         * NEWS: Likewise.
36999         * lib/poll.c (poll): Likewise.
37000         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37001         * lib/winsock.c (rpl_close): Likewise.
37002         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37003         * modules/yield: Likewise.
37004         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37005         * tests/test-sys_select.c (connect_to_socket): Likewise.
37006
37007         fts.c: adjust a new interface to be more generally useful
37008         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37009         (fts_build): Adjust caller.
37010
37011 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37012
37013         * modules/cond-tests: New file.
37014         * tests/test-cond.c: New file.
37015
37016 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37017             Bruno Haible  <bruno@clisp.org>
37018
37019         * modules/cond (Dependencies): Add errno, time.
37020         * lib/glthread/cond.h: Include <time.h>.
37021         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37022         across platforms.
37023
37024 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37025             Bruno Haible  <bruno@clisp.org>
37026
37027         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37028
37029 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37030             Bruno Haible  <bruno@clisp.org>
37031
37032         * modules/tls-tests (Depends-on): Add thread, yield.
37033         (configure.ac): Remove all checks.
37034         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37035         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37036         gl_thread_self): Remove definitions. Include glthread/thread.h and
37037         glthread/yield.h instead.
37038         (test_tls): Pass an additional NULL argument to gl_thread_join.
37039
37040 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37041             Bruno Haible  <bruno@clisp.org>
37042
37043         * modules/lock-tests (Depends-on): Add thread, yield.
37044         (configure.ac): Remove all checks.
37045         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37046         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37047         gl_thread_self): Remove definitions. Include glthread/thread.h and
37048         glthread/yield.h instead.
37049         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37050         additional NULL argument to gl_thread_join.
37051
37052 2008-09-30  Bruno Haible  <bruno@clisp.org>
37053
37054         Fix the Win32 implementation of the 'thread' module.
37055         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37056         pointer type.
37057         (gl_thread_self): Invoke gl_thread_self_func.
37058         (gl_thread_self_func): New declaration.
37059         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37060         (do_init_self_key, init_self_key): New functions.
37061         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37062         Remove some fields.
37063         (running_threads, running_lock): Remove variables.
37064         (get_current_thread_handle): New function.
37065         (gl_thread_self_func, wrapper_func, glthread_create_func,
37066         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37067         simplified.
37068
37069 2008-09-30  Bruno Haible  <bruno@clisp.org>
37070
37071         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37072         files.
37073
37074 2008-09-30  Jim Meyering  <meyering@redhat.com>
37075
37076         fts.m4: correct the test for statfs.f_type
37077         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37078         when checking for statfs.f_type.
37079
37080 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37081
37082         tests: avoid some compiler warnings
37083         * tests/test-memchr.c (main): Pass NULL indirectly.
37084         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37085
37086 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37087
37088         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37089         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37090         exactly specified dayshifts.
37091         (dayshift): New rule.
37092         (rel): Add dayshift.
37093         (relative_time_table) [tomorrow, yesterday, today, now]:
37094         Use tDAY_SHIFT in place of tDAY_UNIT.
37095         * tests/test-getdate.c: Add tests for now-disallowed countable
37096         dayshifts, e.g., "4 yesterday ago".
37097
37098 2008-09-29  Bruno Haible  <bruno@clisp.org>
37099
37100         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37101         * tests/test-posix_spawn1.in.sh: Renamed from
37102         tests/test-posix_spawn.in.sh.
37103         * tests/test-posix_spawn2.c: New file.
37104         * tests/test-posix_spawn2.in.sh: New file.
37105         * modules/posix_spawnp-tests (Files): Update.
37106         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37107
37108 2008-09-29  Bruno Haible  <bruno@clisp.org>
37109
37110         Propagate effects of putenv/setenv/unsetenv to child processes.
37111         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37112         * lib/pipe.c (create_pipe): Likewise.
37113
37114 2008-09-29  Bruno Haible  <bruno@clisp.org>
37115
37116         Enable use of shell scripts as executables in mingw.
37117         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37118         run the program as a shell script.
37119         * lib/pipe.c (create_pipe): Likewise.
37120         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37121         resulting array.
37122
37123 2008-09-29  Eric Blake  <ebb9@byu.net>
37124
37125         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37126
37127 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37128
37129         * doc/posix-functions/accept.texi: Update mingw problems.
37130         * doc/posix-functions/bind.texi: Update mingw problems.
37131         * doc/posix-functions/close.texi: Update mingw problems.
37132         * doc/posix-functions/connect.texi: Update mingw problems.
37133         * doc/posix-functions/getpeername.texi: Update mingw problems.
37134         * doc/posix-functions/getsockname.texi: Update mingw problems.
37135         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37136         * doc/posix-functions/ioctl.texi: Update mingw problems.
37137         * doc/posix-functions/listen.texi: Update mingw problems.
37138         * doc/posix-functions/recv.texi: Update mingw problems.
37139         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37140         * doc/posix-functions/select.texi: Update mingw problems.
37141         * doc/posix-functions/send.texi: Update mingw problems.
37142         * doc/posix-functions/sendto.texi: Update mingw problems.
37143         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37144         * doc/posix-functions/socket.texi: Update mingw problems.
37145
37146 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37147             Bruno Haible  <bruno@clisp.org>
37148
37149         * lib/sys_select.in.h: Include sys/time.h.
37150         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37151         * modules/sys_select: Depend on sys_time.
37152         * tests/test-sys_select.c: Test that sys/select.h defines struct
37153         timeval fully.
37154
37155 2008-09-29  Bruno Haible  <bruno@clisp.org>
37156
37157         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37158         * lib/sys_select.in.h: Likewise.
37159
37160 2008-09-29  Bruno Haible  <bruno@clisp.org>
37161
37162         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37163
37164 2008-09-29  Bruno Haible  <bruno@clisp.org>
37165
37166         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37167         Set LIBSOCKET instead of augmenting LIBS.
37168         * modules/sockets (Link): New section.
37169         * modules/sockets-tests (test_sockets_LDADD): New variable.
37170         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37171         * modules/poll-tests (test_poll_LDADD): New variable.
37172         * NEWS: Document the change.
37173
37174 2008-09-29  Bruno Haible  <bruno@clisp.org>
37175
37176         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37177         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37178         ARPA_INET_H directly.
37179         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37180
37181 2008-09-28  Bruno Haible  <bruno@clisp.org>
37182
37183         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37184         from gl_HEADER_SYS_SOCKET.
37185         (gl_HEADER_SYS_SOCKET): Invoke it.
37186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37187
37188 2008-09-28  Bruno Haible  <bruno@clisp.org>
37189
37190         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37191         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37192         Needed on OSF/1 4.0.
37193
37194 2008-09-28  Bruno Haible  <bruno@clisp.org>
37195
37196         Override open more carefully.
37197         * lib/open.c (orig_open): New function.
37198         (rpl_open): Use orig_open instead of open.
37199         * lib/fcntl.in.h: Add special invocation convention.
37200         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37201         (gl_FUNC_OPEN): Invoke it.
37202
37203         Override freopen more carefully.
37204         * lib/freopen.c (orig_freopen): New function.
37205         (rpl_freopen): Use orig_freopen instead of freopen.
37206         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37207         (gl_FUNC_FREOPEN): Invoke it.
37208
37209         Override fopen more carefully.
37210         * lib/fopen.c (orig_fopen): New function.
37211         (rpl_fopen): Use orig_fopen instead of fopen.
37212         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37213         (gl_FUNC_FOPEN): Invoke it.
37214         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37215
37216 2008-09-28  Bruno Haible  <bruno@clisp.org>
37217
37218         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37219         SIGPIPE.
37220
37221 2008-09-28  Bruno Haible  <bruno@clisp.org>
37222
37223         * tests/test-sigaction.c (handler, main): Disable the check whether
37224         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37225         glibc systems with LinuxThreads.
37226
37227 2008-09-28  Bruno Haible  <bruno@clisp.org>
37228
37229         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37230
37231         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37232         with AIX xlc.
37233         * lib/fcntl.in.h (open): Likewise.
37234         Reported by Rainer Tammer <tammer@tammer.net>.
37235
37236 2008-09-28  Bruno Haible  <bruno@clisp.org>
37237
37238         * modules/posix_spawnp-tests: New file.
37239         * tests/test-posix_spawn.c: New file.
37240         * tests/test-posix_spawn.in.sh: New file.
37241
37242         New module 'posix_spawnp'.
37243         * modules/posix_spawnp: New file.
37244         * lib/spawnp.c: New file, from GNU libc with modifications.
37245         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37246
37247         New module 'posix_spawn'.
37248         * modules/posix_spawn: New file.
37249         * lib/spawn.c: New file, from GNU libc with modifications.
37250         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37251
37252         New module 'posix_spawnattr_destroy'.
37253         * modules/posix_spawnattr_destroy: New file.
37254         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37255         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37256         module.
37257
37258         New module 'posix_spawnattr_setsigmask'.
37259         * modules/posix_spawnattr_setsigmask: New file.
37260         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37261         modifications.
37262         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37263         new module.
37264
37265         New module 'posix_spawnattr_getsigmask'.
37266         * modules/posix_spawnattr_getsigmask: New file.
37267         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37268         modifications.
37269         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37270         new module.
37271
37272         New module 'posix_spawnattr_setsigdefault'.
37273         * modules/posix_spawnattr_setsigdefault: New file.
37274         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37275         modifications.
37276         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37277         new module.
37278
37279         New module 'posix_spawnattr_getsigdefault'.
37280         * modules/posix_spawnattr_getsigdefault: New file.
37281         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37282         modifications.
37283         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37284         new module.
37285
37286         New module 'posix_spawnattr_setschedpolicy'.
37287         * modules/posix_spawnattr_setschedpolicy: New file.
37288         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37289         modifications.
37290         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37291         new module.
37292
37293         New module 'posix_spawnattr_getschedpolicy'.
37294         * modules/posix_spawnattr_getschedpolicy: New file.
37295         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37296         modifications.
37297         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37298         new module.
37299
37300         New module 'posix_spawnattr_setschedparam'.
37301         * modules/posix_spawnattr_setschedparam: New file.
37302         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37303         modifications.
37304         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37305         new module.
37306
37307         New module 'posix_spawnattr_getschedparam'.
37308         * modules/posix_spawnattr_getschedparam: New file.
37309         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37310         modifications.
37311         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37312         new module.
37313
37314         New module 'posix_spawnattr_setpgroup'.
37315         * modules/posix_spawnattr_setpgroup: New file.
37316         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37317         modifications.
37318         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37319         module.
37320
37321         New module 'posix_spawnattr_getpgroup'.
37322         * modules/posix_spawnattr_getpgroup: New file.
37323         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37324         modifications.
37325         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37326         module.
37327
37328         New module 'posix_spawnattr_setflags'.
37329         * modules/posix_spawnattr_setflags: New file.
37330         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37331         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37332         module.
37333
37334         New module 'posix_spawnattr_getflags'.
37335         * modules/posix_spawnattr_getflags: New file.
37336         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37337         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37338         module.
37339
37340         New module 'posix_spawnattr_init'.
37341         * modules/posix_spawnattr_init: New file.
37342         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37343         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37344         module.
37345
37346         New module 'posix_spawn_file_actions_destroy'.
37347         * modules/posix_spawn_file_actions_destroy: New file.
37348         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37349         modifications.
37350         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37351         the new module.
37352
37353         New module 'posix_spawn_file_actions_addopen'.
37354         * modules/posix_spawn_file_actions_addopen: New file.
37355         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37356         modifications.
37357         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37358         the new module.
37359
37360         New module 'posix_spawn_file_actions_adddup2'.
37361         * modules/posix_spawn_file_actions_adddup2: New file.
37362         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37363         modifications.
37364         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37365         the new module.
37366
37367         New module 'posix_spawn_file_actions_addclose'.
37368         * modules/posix_spawn_file_actions_addclose: New file.
37369         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37370         modifications.
37371         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37372         the new module.
37373
37374         New module 'posix_spawn_file_actions_init'.
37375         * modules/posix_spawn_file_actions_init: New file.
37376         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37377         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37378         new module.
37379
37380         New module 'posix_spawn-internal'.
37381         * modules/posix_spawn-internal: New file.
37382         * lib/spawn_int.h: New file, from GNU libc with modifications.
37383         * lib/spawni.c: New file, from GNU libc with modifications.
37384         * m4/posix_spawn.m4: New file.
37385
37386         New module 'spawn'.
37387         * modules/spawn: New file.
37388         * lib/spawn.in.h: New file, from GNU libc with modifications.
37389         * m4/spawn_h.m4: New file.
37390         * doc/posix-headers/spawn.texi: Mention the new module.
37391
37392 2008-09-28  Bruno Haible  <bruno@clisp.org>
37393
37394         * modules/sched-tests: New file.
37395         * tests/test-sched.c: New file.
37396
37397         New module 'sched'.
37398         * modules/sched: New file.
37399         * lib/sched.in.h: New file.
37400         * m4/sched_h.m4: New file.
37401         * doc/posix-headers/sched.texi: Mention the new module.
37402
37403 2008-09-27  Eric Blake  <ebb9@byu.net>
37404
37405         Fix previous patch, and tweak references to $0.
37406         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37407         (func_version, func_gnulib_dir): Don't call this program
37408         gnulib-tool.
37409         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37410         with using $0 in function.
37411         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37412         (func_fatal_error): Reuse the name the user invoked us with.
37413
37414 2008-09-27  Bruno Haible  <bruno@clisp.org>
37415
37416         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37417         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37418         (gl_ICONV_H): Not here.
37419         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37420         instead of assigning ICONV_H directly.
37421
37422         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37423         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37424         WCHAR_H directly.
37425
37426 2008-09-27  Bruno Haible  <bruno@clisp.org>
37427
37428         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37429         * modules/arpa_inet (Depends-on): Add link-warning.
37430         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37431         * modules/unistd (Makefile.am): Likewise.
37432
37433 2008-09-26  Bruno Haible  <bruno@clisp.org>
37434
37435         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37436         variables.
37437         (func_version): Essentially copied from gnulib-tool.
37438         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37439         func_readlink): Copied from gnulib-tool.
37440
37441 2008-09-26  Bruno Haible  <bruno@clisp.org>
37442
37443         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37444         invoking git-version-gen.
37445
37446 2008-09-26  Bruno Haible  <bruno@clisp.org>
37447
37448         * posix-modules: Update to directory names changed on 2008-01-19.
37449         Remove commas in output before splitting into words. No more need to
37450         avoid 'ftruncate' since 2007-02-19.
37451
37452 2008-09-26  Bruno Haible  <bruno@clisp.org>
37453
37454         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37455
37456 2008-09-26  Bruno Haible  <bruno@clisp.org>
37457
37458         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37459         * modules/fwriteerror (Depends-on): Add errno.
37460
37461 2008-09-26  Bruno Haible  <bruno@clisp.org>
37462
37463         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37464         * tests/test-vc-list-files-cvs.sh: Likewise.
37465
37466 2008-09-26  Bruno Haible  <bruno@clisp.org>
37467
37468         * doc/posix-headers/sys_resource.texi: Reorder items.
37469
37470 2008-09-26  Jim Meyering  <meyering@redhat.com>
37471
37472         fts: tweak inode comparison function
37473         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37474         inode numbers, as documented.
37475
37476         fts: sort dirent entries on inode number before traversing
37477         This avoids a quadratic, seek-related performance penalty when
37478         operating on a directory containing many entries (measurable at 10k;
37479         3.5 hours at 2 million entries with a cold cache) on certain types
37480         of file systems, including ext3 and ext4, but not tmpfs.
37481         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37482         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37483         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37484         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37485         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37486         (fts_build): Set the stat.st_ino member from D_INO.
37487         If it is likely to be useful, sort dirent entries on inode number.
37488
37489         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37490         and the struct statfs.f_type member.
37491         * modules/fts (Depends-on): Add d-ino.
37492
37493 2008-09-26  Bruno Haible  <bruno@clisp.org>
37494
37495         * modules/sigpipe-die (Depends-on): Add sigpipe.
37496
37497         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37498         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37499         and GNULIB_STDIO_H_SIGPIPE are set.
37500         * lib/stdio-write.c: New file.
37501         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37502         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37503         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37504         REPLACE_STDIO_WRITE_FUNCS.
37505         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37506         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37507         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37508         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37509         * modules/stdio (Files): Add lib/stdio-write.c.
37510         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37511         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37512         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37513         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37514         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37515         REPLACE_FPRINTF_POSIX.
37516         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37517         REPLACE_PRINTF_POSIX.
37518         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37519         REPLACE_VFPRINTF_POSIX.
37520         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
37521         REPLACE_VPRINTF_POSIX.
37522         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
37523         SIGPIPE issue.
37524         * doc/posix-functions/fputc.texi: Likewise.
37525         * doc/posix-functions/fputs.texi: Likewise.
37526         * doc/posix-functions/fwrite.texi: Likewise.
37527         * doc/posix-functions/printf.texi: Likewise.
37528         * doc/posix-functions/putc.texi: Likewise.
37529         * doc/posix-functions/putchar.texi: Likewise.
37530         * doc/posix-functions/puts.texi: Likewise.
37531         * doc/posix-functions/vfprintf.texi: Likewise.
37532         * doc/posix-functions/vprintf.texi: Likewise.
37533
37534         * modules/safe-write (Depends-on): Add write.
37535
37536         * modules/sigpipe-tests: New file.
37537         * tests/test-sigpipe.c: New file.
37538         * tests/test-sigpipe.sh: New file.
37539
37540         * modules/write: New file.
37541         * lib/unistd.in.h: Include <sys/types.h>.
37542         (write): New declaration.
37543         * lib/write.c: New file.
37544         * m4/write.m4: New file.
37545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37546         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
37547         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
37548         GNULIB_WRITE, REPLACE_WRITE.
37549         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
37550         and the SIGPIPE issue.
37551
37552         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
37553         (raise): New declaration.
37554         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
37555         (ext_signal): New function.
37556         (rpl_raise): New function.
37557         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
37558         GNULIB_SIGNAL_H_SIGPIPE.
37559         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
37560         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
37561
37562         * modules/sigpipe: New file.
37563         * m4/sigpipe.m4: New file.
37564
37565 2008-09-25  Derek Price  <derek@ximbiot.com>
37566             Bruno Haible  <bruno@clisp.org>
37567
37568         * gnulib-tool (func_import): Report all license incompatibilities, not
37569         just the first one.
37570
37571 2008-09-25  Bruno Haible  <bruno@clisp.org>
37572
37573         * gnulib-tool (func_import): When computing the edits, consider not
37574         only the Makefile.ams that exist but also those that will be generated.
37575
37576 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37577
37578         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
37579         fixes gnulib-tool --test warning about duplicate dependency.
37580
37581 2008-09-25  Bruno Haible  <bruno@clisp.org>
37582
37583         * gnulib-tool: Don't ask the user to perform edits in the generated
37584         Makefile.ams.
37585         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
37586         apply to the Makefile.am being generated.
37587         (func_emit_tests_Makefile_am): Execute edits that apply to the
37588         Makefile.am being generated.
37589         (func_import): Setup list of Makefile.am edits before emitting the
37590         Makefile.ams, not at the end.
37591         (func_create_testdir): Update.
37592         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37593
37594 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37595
37596         * gnulib-tool (func_import): Store the --tests-base option in the
37597         comment in gnulib-cache.m4.
37598
37599 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
37600
37601         * NEWS: Document increased portability that sys_select now provides.
37602
37603         * lib/sys_select.in.h: Install select wrapper.
37604         * lib/sys_socket.in.h: Use more descriptive name when there is no
37605         select wrapper.
37606         * lib/winsock-select.c: New.
37607         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
37608         Require gl_HEADER_SYS_SOCKET.
37609         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
37610         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
37611         * tests/test-sys_select.c: Add functional tests.
37612
37613 2008-09-24  Eric Blake  <ebb9@byu.net>
37614
37615         open, fopen: close fd leak in last patch
37616         * lib/open.c (rpl_open): Close fd before returning error.
37617         * lib/fopen.c (rpl_fopen): Close fd before returning error.
37618         * doc/posix-functions/open.texi (open): Document that Irix also
37619         has the bug.
37620         * doc/posix-functions/fopen.texi (fopen): Likewise.
37621         Reported by Paolo Bonzini.
37622
37623 2008-09-24  Bruno Haible  <bruno@clisp.org>
37624
37625         Ensure that a filename ending in a slash cannot be used to access a
37626         non-directory.
37627         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
37628         to check whether it's really a directory.
37629         * lib/fopen.c: Include fcntl.h, unistd.h.
37630         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
37631         and fdopen().
37632         * modules/fopen (Depends-on): Add unistd.
37633         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
37634         * tests/test-fopen.c (main): Likewise.
37635         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
37636         * doc/posix-functions/fopen.texi: Likewise.
37637         Reported by Eric Blake.
37638
37639 2008-09-23  Eric Blake  <ebb9@byu.net>
37640
37641         c-stack: avoid compiler optimizations when provoking overflow
37642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
37643         recursion harder to optimize, to ensure a stack overflow occurs.
37644         * tests/test-c-stack.c (recurse): Likewise.
37645         Borrowed from libsigsegv.
37646
37647         c-stack: work around Irix sigaltstack bug
37648         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
37649         whether sigaltstack uses wrong end of stack_t (copied in part from
37650         libsigsegv).
37651         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
37652         Irix bug, without requiring an over-allocation.
37653         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
37654         bug.
37655
37656         fopen: document mingw bug on directories
37657         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
37658         not allowing a stream visiting a directory, even though reading
37659         from such a stream is not portable.
37660
37661 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37662
37663         * lib/poll.c: Rewrite.
37664         * modules/poll: Depend on alloca.
37665
37666 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37667
37668         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
37669         instead define prototypes for a full set of wrappers.  Ensure
37670         that Cygwin does not use the compatibility code, which is only
37671         for MinGW.
37672         * lib/winsock.c: New.
37673         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
37674         * modules/sys_socket: Add lib/winsock.c.
37675
37676         * modules/poll-tests: Add errno and perror.
37677         * tests/test-poll.c: Use ioctl, not ioctlsocket.
37678
37679 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37680
37681         * tests/test-poll.c: Downgrade minimum needed Winsock version.
37682
37683 2008-09-23  Bruno Haible  <bruno@clisp.org>
37684
37685         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
37686         * doc/glibc-functions/*: Likewise.
37687
37688 2008-09-23  Simon Josefsson  <simon@josefsson.org>
37689
37690         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37691         success.
37692
37693 2008-09-22  Eric Blake  <ebb9@byu.net>
37694             Bruno Haible  <bruno@clisp.org>
37695
37696         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37697         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37698         supply %A but mishandle pseudo-NaN.
37699         Reported by Simon Josefsson.
37700
37701 2008-09-21  Bruno Haible  <bruno@clisp.org>
37702
37703         * tests/test-lock.c (main): Tweak skip message.
37704         * tests/test-tls.c (main): Likewise.
37705
37706 2008-09-21  Bruno Haible  <bruno@clisp.org>
37707
37708         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37709         whether 'struct sigaction' has sa_sigaction here...
37710         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37711         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37712
37713 2008-09-21  Bruno Haible  <bruno@clisp.org>
37714
37715         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37716         section.
37717         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37718         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37719         the new section.
37720         (Support for obsolete systems lacking POSIX:2001): New section.
37721         (String handling <string.h>): Move strdup to the new section.
37722         Suggested by Simon Josefsson and Paolo Bonzini.
37723
37724 2008-09-21  Bruno Haible  <bruno@clisp.org>
37725
37726         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37727         exponents in %e and %g results on 'long double'. Needed for mingw's
37728         improved *printf functions.
37729         * tests/test-vasprintf-posix.c (test_function): Likewise.
37730         * tests/test-snprintf-posix.h (test_function): Likewise.
37731         * tests/test-sprintf-posix.h (test_function): Likewise.
37732         Reported by Eric Blake.
37733
37734 2008-09-21  Bruno Haible  <bruno@clisp.org>
37735
37736         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37737         * tests/test-sprintf-posix.h (test_function): Likewise.
37738
37739 2008-09-21  Bruno Haible  <bruno@clisp.org>
37740
37741         * modules/getpass (Depends-on): Add strdup-posix.
37742
37743         New module 'strdup-posix'.
37744         * modules/strdup-posix: New file.
37745         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37746         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37748         REPLACE_STRDUP.
37749         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37750         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37751         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37752         strdup-posix.
37753
37754         * modules/strdup (Depends-on): Remove malloc-posix.
37755
37756 2008-09-20  Bruno Haible  <bruno@clisp.org>
37757
37758         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37759         Wildenhues.
37760
37761 2008-09-20  Bruno Haible  <bruno@clisp.org>
37762
37763         Ensure that wint_t gets defined on IRIX 5.3.
37764         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37765         * lib/wctype.in.h (wint_t): Likewise.
37766         (__wctype_wint_t): Remove type.
37767         (isw*): Use wint_t instead of __wctype_wint_t.
37768         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37769         * modules/wchar (Files): Add m4/wint_t.m4.
37770         (Makefile.am): Substitute HAVE_WINT_T.
37771         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37772         * tests/test-wctype.c: Check that wint_t is defined.
37773         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37774         * doc/posix-headers/wctype.texi: Likewise.
37775         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37776
37777 2008-09-18  Bruno Haible  <bruno@clisp.org>
37778
37779         * gnulib-tool (func_exit): Update comment.
37780
37781 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37782
37783         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37784         assumes strdup exists and does not depend on strdup to return
37785         ENOMEM on out of memory conditions.
37786
37787 2008-09-18  Bruno Haible  <bruno@clisp.org>
37788
37789         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
37790         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37791         digits for the exponent.
37792
37793 2008-09-18  Jim Meyering  <meyering@redhat.com>
37794             Bruno Haible  <bruno@clisp.org>
37795
37796         * lib/vasnprintf.c (decimal_point_char): Define also if
37797         NEED_PRINTF_INFINITE_LONG_DOUBLE.
37798
37799 2008-09-16  Bruno Haible  <bruno@clisp.org>
37800         and Eric Blake  <ebb9@byu.net>
37801
37802         vasnprintf: support Irix 5.3
37803         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
37804         that mishandle long double infinity.
37805         Reported by Tom G. Christensen.
37806
37807 2008-09-16  Bruno Haible  <bruno@clisp.org>
37808
37809         * doc/glibc-functions/scandir.texi: Mention the function is missing on
37810         Solaris 9.
37811         * doc/glibc-functions/alphasort.texi: Likewise.
37812         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
37813
37814 2008-09-16  Jim Meyering  <meyering@redhat.com>
37815
37816         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
37817         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
37818         a umask modification leak out of a subshell.  Otherwise, the
37819         opensolaris /bin/sh would be accepted and thus cause unwarranted
37820         failures in the coreutils test suite.
37821
37822 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
37823
37824         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
37825         to succeed.
37826
37827 2008-09-16  Jim Meyering  <meyering@redhat.com>
37828
37829         avoid spurious test failure when library is built without ACL support
37830         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
37831         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
37832         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
37833         * tests/test-copy-acl.sh: Likewise.
37834
37835 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37836
37837         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
37838         based on character occurrence counts.
37839
37840 2008-09-15  Eric Blake  <ebb9@byu.net>
37841
37842         tests: avoid some compiler warnings
37843         * tests/test-memchr.c (main): Pass NULL indirectly.
37844         * tests/test-closein.c (main): Avoid unused variable.
37845
37846 2008-09-15  Bruno Haible  <bruno@clisp.org>
37847
37848         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
37849         are missing on OpenBSD 4.0 individually.
37850         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37851
37852 2008-09-15  Bruno Haible  <bruno@clisp.org>
37853
37854         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
37855         * doc/posix-functions/strerror.texi: Mention also Cygwin.
37856         * doc/posix-functions/perror.texi: Likewise.
37857         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
37858         is missing.
37859         Reported by Eric Blake.
37860
37861         * lib/errno.in.h: Use replacement values >= 2000.
37862         Reported by Eric Blake.
37863
37864 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37865
37866         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
37867         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
37868         limit.
37869         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
37870         compareseq was aborted.
37871
37872 2008-09-14  Bruno Haible  <bruno@clisp.org>
37873
37874         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
37875         yvec_edit_count.
37876         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
37877         (fstrcmp_bounded): Simplify result computation accordingly.
37878
37879 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37880
37881         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
37882         (fstrcmp): Define in terms of fstrcmp_bounded.
37883         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
37884         lower_bound argument.
37885         Return quickly if the result is certainly < lower_bound.
37886         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
37887
37888 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37889
37890         * lib/diffseq.h (EARLY_ABORT): New macro.
37891         (compareseq): Change return type to bool. Return true when EARLY_ABORT
37892         evaluates to true.
37893
37894 2008-09-14  Bruno Haible  <bruno@clisp.org>
37895
37896         * modules/perror-tests: New file.
37897         * tests/test-perror.sh: New file.
37898         * tests/test-perror.c: New file.
37899
37900         New module 'perror'.
37901         * lib/stdio.in.h (perror): New declaration.
37902         * lib/perror.c: New file.
37903         * m4/perror.m4: New file.
37904         * modules/perror: New file.
37905         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
37906         * doc/posix-functions/perror.texi: Mention the perror module.
37907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
37908         REPLACE_PERROR.
37909         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
37910         REPLACE_PERROR.
37911
37912 2008-09-14  Bruno Haible  <bruno@clisp.org>
37913
37914         * modules/stdio (Makefile.am): Reorder to match the order in
37915         lib/stdio.in.h.
37916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37917
37918 2008-09-13  Bruno Haible  <bruno@clisp.org>
37919
37920         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
37921
37922 2008-09-13  Bruno Haible  <bruno@clisp.org>
37923
37924         Extend strerror to cover the added errno values.
37925         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
37926         (rpl_strerror): Provide error messages for the added errno values and
37927         for the WSA* values.
37928         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
37929         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
37930         strerror.
37931         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
37932         * modules/strerror (Depends-on): Add errno.
37933         * doc/posix-functions/strerror.texi: Document the change.
37934         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
37935         and EOVERFLOW.
37936
37937 2008-09-13  Bruno Haible  <bruno@clisp.org>
37938
37939         * modules/EOVERFLOW: Remove file.
37940         * m4/eoverflow.m4: Remove file.
37941         * modules/EOVERFLOW-tests: Remove file.
37942         * tests/test-EOVERFLOW.c: Remove file.
37943         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
37944         * modules/ftell (Depends-on): Likewise.
37945         * modules/getdelim (Depends-on): Likewise.
37946         * modules/getugroups (Depends-on): Likewise.
37947         * modules/poll (Depends-on): Likewise.
37948         * modules/snprintf (Depends-on): Likewise.
37949         * modules/sprintf-posix (Depends-on): Likewise.
37950         * modules/vasnprintf (Depends-on): Likewise.
37951         * modules/vasprintf (Depends-on): Likewise.
37952         * modules/vfprintf-posix (Depends-on): Likewise.
37953         * modules/vsnprintf (Depends-on): Likewise.
37954         * modules/vsprintf-posix (Depends-on): Likewise.
37955         * modules/xvasprintf (Depends-on): Likewise.
37956         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37957         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
37958         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
37959         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
37960         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37961         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
37962         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
37963         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
37964         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37965         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
37966         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
37967         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
37968         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37969         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
37970         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
37971         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
37972         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37973         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
37974         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
37975         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
37976         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37977         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
37978         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
37979         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
37980         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
37981         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37982         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
37983         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
37984         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
37985         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
37986         * MODULES.html.sh: Remove EOVERFLOW.
37987         * NEWS: Mention the change.
37988
37989 2008-09-13  Bruno Haible  <bruno@clisp.org>
37990
37991         * modules/errno-tests: New file.
37992         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
37993
37994         * lib/errno.in.h: New file.
37995         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
37996         * modules/errno: New file.
37997         * doc/posix-headers/errno.texi: Update documentation.
37998         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
37999
38000 2008-09-13  Bruno Haible  <bruno@clisp.org>
38001
38002         * tests/test-poll.c: Use #if for native Windows, rather than testing
38003         __MSVCRT__.
38004
38005 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38006             Bruno Haible  <bruno@clisp.org>
38007
38008         * lib/glob.c: Don't include <pwd.h> on native Windows.
38009         (WINDOWS32): New macro.
38010         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38011
38012 2008-09-13  Bruno Haible  <bruno@clisp.org>
38013
38014         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38015         (ETIMEDOUT): Remove macro.
38016         (glthread_cond_timedwait_multithreaded): New declaration.
38017         (glthread_cond_timedwait): Use it.
38018         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38019         (glthread_cond_timedwait_multithreaded): New function.
38020
38021 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38022
38023         * modules/poll-tests: Do not check for io.h.
38024         * tests/test-poll.c: Check for __MSVCRT__ instead.
38025
38026 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38027
38028         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38029         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38030         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38031
38032 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38033
38034         * modules/poll-tests: New.
38035         * tests/test-poll.c: New.
38036
38037 2008-09-12  Eric Blake  <ebb9@byu.net>
38038
38039         frexp: test for NetBSD failure on -0.0
38040         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38041         not all, bugs from NetBSD 3.0 have been fixed.
38042         * doc/posix-functions/frexp.texi (frexp): Document bug.
38043         Reported by Thomas Klausner.
38044
38045         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38046         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38047         literal -0.0.
38048         Reported by Jonathan C. Patschke <jp@centtech.com>.
38049
38050 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38051
38052         * lib/glthread/cond.h: Use dummy implementation also if
38053         USE_WIN32_THREADS.
38054
38055 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38056
38057         * modules/fnmatch-posix (License): Change to LGPLv2+.
38058         * modules/fnmatch-gnu (License): Likewise.
38059
38060 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38061
38062         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38063
38064 2008-09-11  Jim Meyering  <meyering@redhat.com>
38065
38066         * users.txt: Add gtk-vnc.
38067
38068 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38069
38070         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38071         rotate amounts.
38072
38073         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38074         required for 16-bit and 8-bit rotates.
38075         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38076         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38077         UINT8_MAX instead of hard-coded constants.
38078         Suggested by Paul Eggert.
38079
38080 2008-09-07  Bruno Haible  <bruno@clisp.org>
38081
38082         * tests/test-striconveh.c (main): Check behaviour when converting from
38083         UTF-7.
38084
38085         Make striconveh work better with stateful encodings.
38086         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38087         that iconv does not increment the inptr when returning -1/EINVAL.
38088
38089 2008-09-07  Bruno Haible  <bruno@clisp.org>
38090
38091         * build-aux/config.rpath: Update according to libtool-2.2.6.
38092         * build-aux/config.libpath: Likewise.
38093
38094 2008-09-06  Bruno Haible  <bruno@clisp.org>
38095
38096         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38097         * lib/freadptr.c (freadptr): Likewise.
38098         * lib/freadseek.c (freadptrinc): Likewise.
38099         Reported by Simon Josefsson.
38100
38101 2008-09-06  Bruno Haible  <bruno@clisp.org>
38102
38103         * modules/freadptr (License): Change to LGPLv2+.
38104         * modules/freadseek (License): Likewise.
38105         Suggested by Eric Blake.
38106
38107         * modules/memchr2 (License): Change to LGPLv2+.
38108         Approved by Eric Blake.
38109
38110 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38111             Bruno Haible  <bruno@clisp.org>
38112
38113         Make gnulib-tool work with native 'sed' on AIX.
38114         * gnulib-tool (sed_noop): New variable.
38115         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38116         func_add_or_update, func_create_testdir): Use it to initialize sed
38117         script variables.
38118         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38119
38120 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38121             Bruno Haible  <bruno@clisp.org>
38122
38123         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38124         also works after #include directives.
38125
38126 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38127
38128         getdate.y: reject an out-of-range timezone value
38129         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38130         the range [-24...+24].  When specified with only one or two digits,
38131         * tests/test-getdate.c: Tests for the fix.
38132         * doc/getdate.texi: Document this change.
38133
38134 2008-09-03  Bruno Haible  <bruno@clisp.org>
38135
38136         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38137
38138 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38139
38140         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38141         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38142         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38143         Blake <ebb9@byu.net>.
38144
38145         * tests/test-bitrotate.c: Add more test vectors.
38146
38147 2008-09-02  Eric Blake  <ebb9@byu.net>
38148
38149         vasnprintf-posix: handle large precision via %.*d
38150         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38151         when handling it ourselves.
38152         * tests/test-vasnprintf-posix.c (test_function): Add test.
38153         * tests/test-snprintf-posix.h (test_function): Likewise.
38154         * tests/test-sprintf-posix.h (test_function): Likewise.
38155         * tests/test-vasprintf-posix.c (test_function): Likewise.
38156         Reported by Alain Guibert.
38157
38158 2008-09-01  Eric Blake  <ebb9@byu.net>
38159
38160         c-stack: make configure-time check more robust
38161         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38162         successful sigaction call.
38163         Reported by Tom G. Christensen.
38164
38165 2008-09-01  Bruno Haible  <bruno@clisp.org>
38166
38167         New module 'findprog-lgpl'.
38168         * modules/findprog-lgpl: New file.
38169         * lib/findprog-lgpl.c: New file.
38170         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38171         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38172         to decide whether to use strdup or xstrdup, concatenated_filename or
38173         xconcatenated_filename.
38174
38175 2008-09-01  Bruno Haible  <bruno@clisp.org>
38176
38177         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38178         'xconcat-filename' (GPL).
38179         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38180         (License): Change to LGPLv2+.
38181         * modules/xconcat-filename: New file.
38182         * lib/concat-filename.h (concatenated_filename): Change specification.
38183         (xconcatenated_filename): New declaration.
38184         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38185         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38186         memory situations.
38187         * lib/xconcat-filename.c: New file.
38188         * NEWS: Mention the change.
38189         * lib/findprog.c: Include concat-filename.h, not filename.h.
38190         (find_in_path): Use xconcatenated_filename instead of
38191         concatenated_filename.
38192         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38193         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38194         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38195         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38196         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38197         instead of concatenated_filename.
38198         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38199         (execute_java_class): Use xconcatenated_filename instead of
38200         concatenated_filename.
38201         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38202         * modules/javacomp (Depends-on): Likewise.
38203         * modules/javaexec (Depends-on): Likewise.
38204
38205 2008-09-01  Bruno Haible  <bruno@clisp.org>
38206
38207         Split module 'filename' into 'filename' and 'concat-filename'.
38208         * modules/filename: Keep only lib/filename.h.
38209         (License): Change to LGPLv2+.
38210         * modules/concat-filename: New file, extracted from modules/filename.
38211         * lib/filename.h (concatenated_filename): Remove declaration.
38212         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38213         * lib/concat-filename.c: Include concat-filename.h.
38214         * NEWS: Mention the change.
38215
38216 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38217
38218         * lib/bitrotate.h (rotl8, rotr8): Add.
38219
38220         * modules/bitrotate (configure.ac): Need
38221         AC_REQUIRE([AC_C_INLINE]).
38222         (Description): Mention stdint.h.  Reported by Bruno Haible
38223         <bruno@clisp.org>.
38224
38225         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38226         Paolo Bonzini <bonzini@gnu.org>.
38227
38228 2008-08-31  Bruno Haible  <bruno@clisp.org>
38229
38230         Assume Solaris specific bi-arch conventions on Solaris systems.
38231         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38232         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38233         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38234         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38235         like acl_libdirstem.
38236         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38237         acl_libdirstem.
38238         * NEWS: Mention the change.
38239         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38240
38241 2008-08-31  Jim Meyering  <meyering@redhat.com>
38242
38243         * lib/strftime.h: Add comments describing the two added arguments.
38244
38245         remove duplicate #include directives
38246         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38247         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38248
38249 2008-08-31  Bruno Haible  <bruno@clisp.org>
38250
38251         New module 'sigpipe-die'.
38252         * modules/sigpipe-die: New file.
38253         * lib/sigpipe-die.h: New file.
38254         * lib/sigpipe-die.c: New file.
38255         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38256
38257 2008-08-31  Bruno Haible  <bruno@clisp.org>
38258
38259         Don't override previously installed signal handlers.
38260         * lib/fatal-signal.c (saved_sigactions): New variable.
38261         (uninstall_handlers): Reset the signal to the saved handler, not
38262         to SIG_DFL (except when ignored).
38263         (install_handlers): Save the previous handlers.
38264
38265 2008-08-30  Bruno Haible  <bruno@clisp.org>
38266
38267         * gnulib-tool (func_reset_sigpipe): New function.
38268         (func_get_automake_snippet, func_modules_transitive_closure,
38269         func_import): Invoke it before a join command that reads from stdin,
38270         to avoid "echo: write error: Broken pipe" error messages on stderr.
38271         Reported by Sam Steingold <sds@gnu.org>.
38272
38273 2008-08-30  Bruno Haible  <bruno@clisp.org>
38274
38275         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38276         Code copied from m4/open.m4.
38277         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38278         access and the filename ends in a slash. Code copied from lib/open.c.
38279         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38280         * tests/test-fopen.c (main): Check against bug with trailing slash.
38281
38282 2008-08-29  Bruno Haible  <bruno@clisp.org>
38283
38284         Avoid some "gcc -pedantic" warnings.
38285         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38286         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38287         * lib/dirent.in.h: Likewise.
38288         * lib/fcntl.in.h: Likewise.
38289         * lib/float.in.h: Likewise.
38290         * lib/iconv.in.h: Likewise.
38291         * lib/inttypes.in.h: Likewise.
38292         * lib/locale.in.h: Likewise.
38293         * lib/math.in.h: Likewise.
38294         * lib/netinet_in.in.h: Likewise.
38295         * lib/search.in.h: Likewise.
38296         * lib/signal.in.h: Likewise.
38297         * lib/stdarg.in.h: Likewise.
38298         * lib/stdint.in.h: Likewise.
38299         * lib/stdio.in.h: Likewise.
38300         * lib/stdlib.in.h: Likewise.
38301         * lib/string.in.h: Likewise.
38302         * lib/strings.in.h: Likewise.
38303         * lib/sys_select.in.h: Likewise.
38304         * lib/sys_socket.in.h: Likewise.
38305         * lib/sys_stat.in.h: Likewise.
38306         * lib/sys_time.in.h: Likewise.
38307         * lib/sysexits.in.h: Likewise.
38308         * lib/time.in.h: Likewise.
38309         * lib/unistd.in.h: Likewise.
38310         * lib/wchar.in.h: Likewise.
38311         * lib/wctype.in.h: Likewise.
38312         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38313         * modules/fchdir (Makefile.am): Likewise.
38314         * modules/fcntl (Makefile.am): Likewise.
38315         * modules/float (Makefile.am): Likewise.
38316         * modules/iconv_open (Makefile.am): Likewise.
38317         * modules/inttypes (Makefile.am): Likewise.
38318         * modules/locale (Makefile.am): Likewise.
38319         * modules/math (Makefile.am): Likewise.
38320         * modules/netinet_in (Makefile.am): Likewise.
38321         * modules/search (Makefile.am): Likewise.
38322         * modules/signal (Makefile.am): Likewise.
38323         * modules/stdarg (Makefile.am): Likewise.
38324         * modules/stdint (Makefile.am): Likewise.
38325         * modules/stdio (Makefile.am): Likewise.
38326         * modules/stdlib (Makefile.am): Likewise.
38327         * modules/string (Makefile.am): Likewise.
38328         * modules/strings (Makefile.am): Likewise.
38329         * modules/sys_select (Makefile.am): Likewise.
38330         * modules/sys_socket (Makefile.am): Likewise.
38331         * modules/sys_stat (Makefile.am): Likewise.
38332         * modules/sys_time (Makefile.am): Likewise.
38333         * modules/sysexits (Makefile.am): Likewise.
38334         * modules/time (Makefile.am): Likewise.
38335         * modules/unistd (Makefile.am): Likewise.
38336         * modules/wchar (Makefile.am): Likewise.
38337         * modules/wctype (Makefile.am): Likewise.
38338         Reported by Reuben Thomas <rrt@sc3d.org>.
38339
38340 2008-08-29  Bruno Haible  <bruno@clisp.org>
38341
38342         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38343         any more.
38344
38345 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38346
38347         * MODULES.html.sh (Misc): Add bitrotate.
38348
38349         * modules/bitrotate: New file.
38350
38351         * lib/bitrotate.h: New file.
38352
38353         * modules/bitrotate-tests: New file.
38354
38355         * tests/test-bitrotate.c: New file.
38356
38357         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38358         on the bitrotate module.
38359
38360         * lib/arctwo.c: Use new bitrotate module.
38361
38362 2008-08-29  Jim Meyering  <meyering@redhat.com>
38363
38364         bootstrap: merge changes from coreutils
38365         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38366         of copied files.  Remove a kludge, now that this is fixed.
38367         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38368         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38369         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38370
38371 2008-08-29  Bruno Haible  <bruno@clisp.org>
38372
38373         * MODULES.html.sh: Remove --cvs-urls option.
38374
38375 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38376
38377         maint.mk: adjust to file name change
38378         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38379
38380 2008-08-28  Jim Meyering  <meyering@redhat.com>
38381
38382         * modules/getndelim2 (License): Relicense to LGPLv2+.
38383         Approved by Richard Stallman for the version of 1995, and by
38384         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38385
38386 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38387
38388         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38389         dummy if one is not available.  Do not touch them if
38390         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38391         (getc_maybe_unlocked): New.
38392         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38393
38394 2008-08-26  Eric Blake  <ebb9@byu.net>
38395
38396         doc/INSTALL: resync from autoconf
38397         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38398         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38399         moving...
38400         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38401         * INSTALL: Regenerate.
38402         * INSTALL.ISO: New file.
38403         * INSTALL.UTF-8: Likewise.
38404
38405 2008-08-26  Jim Meyering  <meyering@redhat.com>
38406
38407         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38408         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38409         these definitions conditional, so that they may be overridden, too.
38410
38411 2008-08-26  Bruno Haible  <bruno@clisp.org>
38412
38413         Generate INSTALL file variants with prettier quotes.
38414         * doc/Makefile (INSTALL_PRELUDE): New macro.
38415         (INSTALL): Use it.
38416         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38417
38418 2008-08-26  Bruno Haible  <bruno@clisp.org>
38419
38420         Run makeinfo in an English locale.
38421         * doc/Makefile (MAKEINFO): New variable.
38422
38423 2008-08-26  Bruno Haible  <bruno@clisp.org>
38424
38425         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38426         Suggested by Eric Blake.
38427
38428 2008-08-25  Bruno Haible  <bruno@clisp.org>
38429
38430         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38431
38432 2008-08-25  Eric Blake  <ebb9@byu.net>
38433
38434         c-stack: test that stack overflow can be caught
38435         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38436         that platform allows handling stack overflow; at least OS/2 EMX
38437         has sigaltstack, but crashes before transferring control to
38438         handler on stack overflow.
38439         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38440         check for HAVE_STACK_OVERFLOW_HANDLING.
38441         Reported by Elbert Pol.
38442
38443 2008-08-25  Bruno Haible  <bruno@clisp.org>
38444
38445         * doc/posix-functions/strftime.texi: Fix description of strftime
38446         module.
38447
38448 2008-08-24  Bruno Haible  <bruno@clisp.org>
38449
38450         * tests/uniwidth/test-uc_width2.c: New file.
38451         * tests/uniwidth/test-uc_width2.sh: New file.
38452         * modules/uniwidth/width-tests (Files): Add the new files.
38453         (TESTS): Add uniwidth/test-uc_width2.sh.
38454         (TESTS_ENVIRONMENT): New variable.
38455         (check_PROGRAMS): Add test-uc_width2.
38456         (test_uc_width2_SOURCES): New variable.
38457
38458         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38459         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38460         not 0x00AB.
38461         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38462
38463 2008-08-22  Eric Blake  <ebb9@byu.net>
38464
38465         test-lock, test-tls: mention why a test is skipped
38466         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38467         skipped.
38468         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38469
38470         count-one-bits: relax license
38471         * modules/count-one-bits (License): Relicense to LGPLv2+.
38472         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38473
38474 2008-08-22  Andreas Schwab  <schwab@suse.de>
38475
38476         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38477         Remove spurious space in assignment.
38478
38479 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38480
38481         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38482         Paul Eggert <eggert@CS.UCLA.EDU>.
38483
38484 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38485
38486         * modules/gettext: Add m4/threadlib.m4.
38487
38488 2008-08-19  Eric Blake  <ebb9@byu.net>
38489
38490         test-c-stack: fix compilation failure on FreeBSD 5.0
38491         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38492         headers before <sys/resource.h>.
38493         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38494         the bug.
38495         Reported by Nelson H. F. Beebe.
38496
38497         strverscmp: migrate from "strverscmp.h" to <string.h>
38498         * modules/string (Makefile.am): Add new hooks.
38499         * modules/strverscmp (Files): Remove strverscmp.h.
38500         (Depends-on): Add string.
38501         (configure.ac): Add indicator.
38502         (Include): Mention new header.
38503         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38504         defaults.
38505         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38506         results.
38507         * lib/strverscmp.h: Delete.
38508         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38509         * tests/test-strverscmp.c (includes): Adjust client.
38510         * lib/check-version.c (includes): Likewise.
38511         * NEWS: Document the change.
38512
38513         strverscmp: add unit test
38514         * modules/strverscmp-tests: New file.
38515         * tests/test-strverscmp.c: Likewise.
38516
38517 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38518
38519         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
38520         regarding Windows crypto stuff, from Mono.
38521
38522 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
38523
38524         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
38525         if present, for intel RND.  Return error on failures.
38526
38527 2008-08-18  Ben Pfaff  <blp@gnu.org>
38528
38529         gitlog-to-changelog: give better diagnostic for failed pipe-open
38530         * build-aux/gitlog-to-changelog: Improve error message: suggest
38531         that the version of Git may be too old.
38532
38533 2008-08-18  Simon Josefsson  <simon@josefsson.org>
38534
38535         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
38536         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
38537
38538 2008-08-18  Bruno Haible  <bruno@clisp.org>
38539
38540         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
38541         pthread_in_use().
38542
38543 2008-08-18  Bruno Haible  <bruno@clisp.org>
38544
38545         * lib/glthread/threadlib.c: Include <pthread.h>.
38546
38547 2008-08-18  Bruno Haible  <bruno@clisp.org>
38548
38549         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
38550         glthread_recursive_lock_* macros.
38551         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
38552         Fix syntax error.
38553
38554 2008-08-18  Bruno Haible  <bruno@clisp.org>
38555
38556         * lib/glthread/thread.c: Avoid forcing a context switch right after
38557         thread creation.
38558
38559 2008-08-17  Bruno Haible  <bruno@clisp.org>
38560
38561         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
38562         * lib/glthread/thread.h: Provide Win32 specific implementation.
38563         * modules/thread (Files): Add lib/glthread/thread.c.
38564         (Depends-on): Add lock.
38565         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
38566
38567 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38568
38569         New module 'yield'.
38570         * modules/yield: New file.
38571         * lib/glthread/yield.h: New file.
38572         * m4/yield.m4: New file.
38573         * MODULES.html.sh (Multithreading): Add yield.
38574
38575 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38576
38577         New module 'thread'.
38578         * modules/thread: New file.
38579         * lib/glthread/thread.h: New file.
38580         * m4/thread.m4: New file.
38581         * MODULES.html.sh (Multithreading): Add thread.
38582
38583 2008-08-17  Bruno Haible  <bruno@clisp.org>
38584
38585         * lib/glthread/lock.h: Include <stdlib.h> always.
38586         * lib/glthread/tls.h: Likewise.
38587         * lib/glthread/cond.h: Likewise.
38588
38589 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38590
38591         New module 'cond'.
38592         * modules/cond: New file.
38593         * lib/glthread/cond.h: New file.
38594         * lib/glthread/cond.c: New file.
38595         * m4/cond.m4: New file.
38596         * MODULES.html.sh (Multithreading): Add cond.
38597
38598 2008-08-16  Eric Blake  <ebb9@byu.net>
38599
38600         c-stack: fix regression on Irix 5.3 from 2008-06-21
38601         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
38602         sa_sigaction...
38603         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
38604         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
38605         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
38606         * modules/signal (Makefile.am): Use the value.
38607         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
38608         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
38609         * doc/posix-headers/signal.texi (signal.h): Document this
38610         portability issue.
38611         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
38612         Reported by Tom G. Christensen.
38613
38614 2008-08-17  Bruno Haible  <bruno@clisp.org>
38615
38616         New module 'threadlib'.
38617         * modules/threadlib: New file.
38618         * lib/glthread/threadlib.c: New file, extracted from
38619         lib/glthread/lock.c.
38620         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
38621         functions.
38622         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
38623         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
38624         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
38625         macros.
38626         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
38627         (gl_DISABLE_THREADS): Remove macro.
38628         * modules/lock (Files): Remove build-aux/config.rpath.
38629         (Depends-on): Remove havelib. Add threadlib.
38630         (configure.ac-early): Remove section.
38631         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
38632         * modules/tls (Depends-on): Remove lock. Add threadlib.
38633         (Link): New section, copied from threadlib.
38634         * MODULES.html.sh (Multithreading): Add threadlib.
38635
38636 2008-08-14  Bruno Haible  <bruno@clisp.org>
38637
38638         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
38639         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
38640         glthread_rwlock_unlock, glthread_rwlock_destroy,
38641         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
38642         glthread_recursive_lock_destroy): Define as macros always.
38643         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
38644         glthread_lock_lock.
38645         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
38646         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
38647         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
38648         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
38649         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
38650         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
38651         (glthread_recursive_lock_lock_func): Renamed from
38652         glthread_recursive_lock_lock.
38653         (glthread_recursive_lock_unlock_func): Renamed from
38654         glthread_recursive_lock_unlock.
38655         (glthread_recursive_lock_destroy_func): Renamed from
38656         glthread_recursive_lock_destroy.
38657
38658 2008-08-14  Bruno Haible  <bruno@clisp.org>
38659
38660         * lib/glthread/lock.h: Renamed from lib/lock.h.
38661         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
38662         * lib/glthread/tls.h: Renamed from lib/tls.h.
38663         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
38664         * lib/fstrcmp.c: Update includes.
38665         * lib/strsignal.c: Update includes.
38666         * modules/lock (Files, Makefile.am): Update.
38667         (Include): Change to "glthread/lock.h".
38668         * modules/tls (Files, Makefile.am): Update.
38669         (Include): Change to "glthread/tls.h".
38670         * tests/test-lock.c: Update includes.
38671         * tests/test-tls.c: Update includes.
38672         * NEWS: Mention the renamed header files.
38673
38674 2008-08-11  Jim Meyering  <meyering@redhat.com>
38675
38676         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
38677
38678 2008-08-11  Eric Blake  <ebb9@byu.net>
38679
38680         test-c-stack: avoid C99-ism
38681         * tests/test-c-stack.c (main): Fix whitespace, move declaration
38682         before statement.
38683         Reported by Alain Guibert.
38684
38685 2008-08-10  Jim Meyering  <meyering@redhat.com>
38686
38687         ensure that return value of uinttostr et al are not ignored
38688         * lib/inttostr.h (__GNUC_PREREQ): Define.
38689         (__attribute_warn_unused_result__): Define.
38690         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38691
38692 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38693
38694         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38695         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38696
38697 2008-08-07  Jim Meyering  <meyering@redhat.com>
38698
38699         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38700
38701         * modules/mkstemp (License): Relicense under LGPLv2+.
38702         * modules/tempname (License): Likewise.
38703
38704 2008-08-06  Bruno Haible  <bruno@clisp.org>
38705
38706         * lib/poll.c (poll): Further micro-optimization.
38707
38708 2008-08-06  Jim Meyering  <meyering@redhat.com>
38709
38710         inet_pton.c: use locale-independent tolower
38711         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38712         (inet_pton6): Use c_tolower rather than tolower.
38713         * modules/inet_pton (Depends-on): Add c-ctype.
38714
38715 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38716
38717         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38718         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38719
38720 2008-08-06  Jim Meyering  <meyering@redhat.com>
38721
38722         * modules/inet_pton (License): Relicense under LGPLv2+.
38723
38724 2008-08-03  Bruno Haible  <bruno@clisp.org>
38725
38726         Additional non-aborting API for lock and tls.
38727         * lib/lock.h: Include <errno.h>.
38728         (glthread_lock_init): New macro/function.
38729         (gl_lock_init): Define as wrapper around glthread_lock_init.
38730         (glthread_lock_lock): New macro/function.
38731         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38732         (glthread_lock_unlock): New macro/function.
38733         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38734         (glthread_lock_destroy): New macro/function.
38735         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38736         (glthread_rwlock_init): New macro/function.
38737         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38738         (glthread_rwlock_rdlock): New macro/function.
38739         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38740         (glthread_rwlock_wrlock): New macro/function.
38741         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38742         (glthread_rwlock_unlock): New macro/function.
38743         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38744         (glthread_rwlock_destroy): New macro/function.
38745         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38746         (glthread_recursive_lock_init): New macro/function.
38747         (gl_recursive_lock_init): Define as wrapper around
38748         glthread_recursive_lock_init.
38749         (glthread_recursive_lock_lock): New macro/function.
38750         (gl_recursive_lock_lock): Define as wrapper around
38751         glthread_recursive_lock_lock.
38752         (glthread_recursive_lock_unlock): New macro/function.
38753         (gl_recursive_lock_unlock): Define as wrapper around
38754         glthread_recursive_lock_unlock.
38755         (glthread_recursive_lock_destroy): New macro/function.
38756         (gl_recursive_lock_destroy): Define as wrapper around
38757         glthread_recursive_lock_destroy.
38758         (glthread_once): New macro/function.
38759         (gl_once): Define as wrapper around glthread_once.
38760         Update function declarations.
38761         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38762         glthread_rwlock_init. Return error code.
38763         (glthread_rwlock_rdlock_multithreaded): Renamed from
38764         glthread_rwlock_rdlock. Return error code.
38765         (glthread_rwlock_wrlock_multithreaded): Renamed from
38766         glthread_rwlock_wrlock. Return error code.
38767         (glthread_rwlock_unlock_multithreaded): Renamed from
38768         glthread_rwlock_unlock. Return error code.
38769         (glthread_rwlock_destroy_multithreaded): Renamed from
38770         glthread_rwlock_destroy. Return error code.
38771         (glthread_recursive_lock_init_multithreaded): Renamed from
38772         glthread_recursive_lock_init. Return error code.
38773         (glthread_recursive_lock_lock_multithreaded): Renamed from
38774         glthread_recursive_lock_lock. Return error code.
38775         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38776         glthread_recursive_lock_unlock. Return error code.
38777         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38778         glthread_recursive_lock_destroy. Return error code.
38779         (glthread_once_call): Make static.
38780         (glthread_once_multithreaded): Renamed from glthread_once.
38781         * lib/tls.h: Include <errno.h>.
38782         (glthread_tls_key_init): New macro/function.
38783         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38784         (glthread_tls_set): New macro/function.
38785         (gl_tls_set): Define as wrapper around glthread_tls_set.
38786         (glthread_tls_key_destroy): New macro/function.
38787         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38788         Update function declarations.
38789         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38790         glthread_tls_get.
38791         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38792
38793 2008-08-04  Eric Blake  <ebb9@byu.net>
38794
38795         gnumakefile: use space, not TAB, outside of targets
38796         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
38797
38798 2008-08-02  Jim Meyering  <meyering@redhat.com>
38799
38800         getdate.y: avoid locale-dependent date parsing failure
38801         In Turkish locales, getdate would fail to recognize keywords
38802         containing a lowercase "i".  The solution is not to rely on
38803         locale-sensitive case-conversion.
38804         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
38805         (lookup_word): Use c_toupper in place of toupper.
38806         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
38807         Reported by Vefa Bicakci <bicave@superonline.com> in
38808         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
38809         * modules/getdate (Depends-on): Add c-ctype.
38810
38811 2008-08-02  Bruno Haible  <bruno@clisp.org>
38812
38813         * gnulib-tool (func_import): When updating or creating a .gitignore
38814         file, prepend each added line with a slash, and ignore leading slashes
38815         from the existing lines.
38816         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38817
38818 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38819
38820         Portability fix for GNU make 3.79.1.
38821         * top/GNUmakefile: Avoid 'else COND', which older GNU make
38822         versions do not understand.
38823
38824 2008-08-01  Bruno Haible  <bruno@clisp.org>
38825
38826         Work around bug of HP-UX 10.20 cc with -0.0 literal.
38827         * tests/test-isnanf.h (zero): New variable.
38828         (main): Avoid literal -0.0f.
38829         * tests/test-isnand.h (zero): New variable.
38830         (main): Avoid literal -0.0.
38831         * tests/test-isnanl.h (zero): New variable.
38832         (main): Avoid literal -0.0L.
38833         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
38834         (test_float, test_double, test_long_double): Avoid literals -0.0f,
38835         -0.0, -0.0L.
38836         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
38837         (test_signbitd): Avoid literal -0.0.
38838         (test_signbitl): Avoid literal -0.0L.
38839         * tests/test-ceilf1.c (zero): New variable.
38840         (main): Avoid literal -0.0f.
38841         * tests/test-ceill.c (zero): New variable.
38842         (main): Avoid literal -0.0L.
38843         * tests/test-floorf1.c (zero): New variable.
38844         (main): Avoid literal -0.0f.
38845         * tests/test-floorl.c (zero): New variable.
38846         (main): Avoid literal -0.0L.
38847         * tests/test-roundf1.c (zero): New variable.
38848         (main): Avoid literal -0.0f.
38849         * tests/test-round1.c (zero): New variable.
38850         (main): Avoid literal -0.0.
38851         * tests/test-roundl.c (zero): New variable.
38852         (main): Avoid literal -0.0L.
38853         * tests/test-truncf1.c (zero): New variable.
38854         (main): Avoid literal -0.0f.
38855         * tests/test-trunc1.c (zero): New variable.
38856         (main): Avoid literal -0.0.
38857         * tests/test-truncl.c (zero): New variable.
38858         (main): Avoid literal -0.0L.
38859         * tests/test-frexp.c (zero): New variable.
38860         (main): Avoid literal -0.0.
38861         * tests/test-frexpl.c (zero): New variable.
38862         (main): Avoid literal -0.0L.
38863         * tests/test-ldexpl.c (zero): New variable.
38864         (main): Avoid literal -0.0L.
38865         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38866         (zerod, zerol): New variables.
38867         (test_function): Avoid literals -0.0, -0.0L.
38868         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38869         (zerod, zerol): New variables.
38870         (test_function): Avoid literals -0.0, -0.0L.
38871         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38872         (zerod, zerol): New variables.
38873         (test_function): Avoid literals -0.0, -0.0L.
38874         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38875         (zerod, zerol): New variables.
38876         (test_function): Avoid literals -0.0, -0.0L.
38877         * tests/test-strtod.c (zero): New variable.
38878         (main): Avoid literal -0.0.
38879         Reported by Jonathan C. Patschke <jp@centtech.com>.
38880
38881 2008-07-31  Jim Meyering  <meyering@redhat.com>
38882
38883         sha256.h: correct definition of SHA224_DIGEST_SIZE
38884         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
38885         Reported by Paulie Pena IV <paulie4@gmail.com>.
38886         Define as 224 / 8, rather than as a literal.
38887         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
38888         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
38889         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
38890
38891 2008-07-31  Bruno Haible  <bruno@clisp.org>
38892
38893         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
38894         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
38895         Reported by Jonathan Patschke <jp@centtech.com>.
38896
38897 2008-07-31  Bruno Haible  <bruno@clisp.org>
38898
38899         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
38900         Reported by Paolo Bonzini <bonzini@gnu.org>.
38901
38902 2008-07-30  Eric Blake  <ebb9@byu.net>
38903
38904         test-strtod: allow compilation without -lm
38905         * tests/test-strtod.c (main): Avoid link dependence on fabs.
38906         Reported by Dennis Clarke <blastwave@gmail.com>.
38907
38908 2008-07-28  Jim Meyering  <meyering@redhat.com>
38909
38910         bootstrap: work also when there are no .po files in po/
38911         * build-aux/bootstrap (update_po_files): Complete the change
38912         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
38913
38914 2008-07-27  Jim Meyering  <meyering@redhat.com>
38915
38916         * users.txt: Add zile.
38917
38918 2008-07-26  Ben Pfaff  <blp@gnu.org>
38919
38920         Add missing dependencies on new m4/exponent[fdl].m4 files.
38921         * modules/isnanf-nolibm: Add m4/exponentf.m4.
38922         * modules/isnand-nolibm: Add m4/exponentd.m4.
38923         * modules/isnanl-nolibm: Add m4/exponentl.m4.
38924         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
38925         m4/isnan[fdl].m4, because the macros actually used moved.
38926         Reported by Jim Meyering.
38927
38928 2008-07-14  Ben Pfaff  <blp@gnu.org>
38929
38930         Add isinf module.
38931         * lib/isinf.c: New file.
38932         * lib/math.in.h: Define isinf macro if we have decided to replace
38933         it.
38934         * m4/isinf.m4: New file.
38935         * m4/math_h.m4: Initialize and substitute variables for isinf
38936         module.
38937         * modules/isinf: New file.
38938         * modules/isinf-tests: New file.
38939         * modules/math: Add substitutions for new module.
38940         * tests/test-isinf.c: New file.
38941         * doc/posix-functions/isinf.texi: Mention new module.
38942         * MODULES.html.sh: Mention new module.
38943
38944 2008-07-14  Ben Pfaff  <blp@gnu.org>
38945
38946         Factor out some macros for use by additional modules.
38947         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
38948         exponentf.m4.
38949         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
38950         exponentd.m4.
38951         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
38952         file exponentl.m4.
38953         * m4/exponentf.m4: New file.
38954         * m4/exponentd.m4: New file.
38955         * m4/exponentl.m4: New file.
38956         * modules/isnanf: Use new file m4/exponentf.m4.
38957         * modules/isnand: Use new file m4/exponentd.m4.
38958         * modules/isnanl: Use new file m4/exponentl.m4.
38959
38960 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
38961
38962         mktime.c: normalize tp->tm_isdst value to -1/0/1.
38963         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
38964         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
38965         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
38966
38967         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
38968         readlink on platforms without PATH_MAX.
38969
38970 2008-07-21  Eric Blake  <ebb9@byu.net>
38971
38972         Warn, not fail, on stale version.
38973         * top/GNUmakefile (_curr-ver): Tone down previous patch.
38974
38975         Don't allow installation with stale devel version number.
38976         * top/GNUmakefile (_is-install-target): New macro.
38977         (_curr-ver): Forbid installation with stale version number.
38978
38979 2008-07-20  Bruno Haible  <bruno@clisp.org>
38980
38981         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
38982         TESTS_ENVIRONMENT.
38983         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
38984
38985 2008-07-20  Bruno Haible  <bruno@clisp.org>
38986
38987         * lib/c-stack.h (c_stack_action): Add documentation.
38988         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
38989
38990 2008-07-20  Bruno Haible  <bruno@clisp.org>
38991
38992         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
38993         * modules/readlink (License): Likewise.
38994
38995 2008-07-17  Eric Blake  <ebb9@byu.net>
38996
38997         * modules/c-stack (Link): Fix typo.
38998
38999         Make c-stack use libsigsegv, when available.
39000         * modules/c-stack (Depends-on): Add libsigsegv.
39001         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39002         needed.
39003         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39004         (segv_handler, overflow_handler, c_stack_action)
39005         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39006         implementation when libsigsegv is available, but only when using
39007         the library is necessary.
39008         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39009         comment, explaining why XSI check fails on Linux.
39010         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39011         * tests/test-c-stack2.sh: Tweak skip message.
39012         * NEWS: Document new link-time requirements.
39013
39014 2008-07-16  Eric Blake  <ebb9@byu.net>
39015
39016         c-stack: Expose false positives when not using libsigsegv.
39017         * modules/c-stack-tests (Files): Expand test.
39018         * tests/test-c-stack.c (main): Add means to conditionally trigger
39019         non-overflow SIGSEGV.
39020         * tests/test-c-stack2.sh: New file.
39021
39022 2008-07-14  Bruno Haible  <bruno@clisp.org>
39023
39024         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39025         Reported by Eric Blake.
39026
39027 2008-07-14  Sam Steingold  <sds@gnu.org>
39028             Bruno Haible  <bruno@clisp.org>
39029
39030         New module libsigsegv.
39031         * modules/libsigsegv: New file.
39032         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39033         modifications.
39034         * MODULES.html.sh (Signal handling): New section.
39035
39036 2008-07-14  Bruno Haible  <bruno@clisp.org>
39037
39038         * modules/unictype/ctype-* (Description): Add the word "function".
39039         Improves the resulting doc in MODULES.html.
39040
39041 2008-07-12  Ben Pfaff  <blp@gnu.org>
39042
39043         Add longlong module.
39044         * modules/longlong: New file.
39045
39046 2008-07-12  Bruno Haible  <bruno@clisp.org>
39047
39048         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39049         to empty.
39050
39051 2008-07-10  Ben Pfaff  <blp@gnu.org>
39052
39053         Add isnan module.
39054         * doc/posix-functions/isnan.texi: Mention new module.
39055         * lib/math.in.h: Define isnan macro if we have decided to replace
39056         it.
39057         * m4/isnan.m4: New file.
39058         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39059         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39060         also.
39061         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39062         redundancy.
39063         * m4/math_h.m4: Initialize and substitute variables for isnan
39064         module.
39065         * modules/isnan: New file.
39066         * modules/isnan-tests: New file.
39067         * modules/math: Add substitutions for new module.
39068         * tests/test-isnan.c: New file.
39069         * MODULES.html.sh: Mention new module.
39070
39071 2008-07-10  Ben Pfaff  <blp@gnu.org>
39072
39073         Add isnanf module.
39074         * lib/isnanf.m4: New file.
39075         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39076         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39077         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39078         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39079         * modules/isnanf: New file.
39080         * modules/isnanf-tests: New file.
39081         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39082         files.
39083         * tests/test-isnanf-nolibm.c: factored most of its contents into
39084         new file tests/test-isnanf.h.
39085         * tests/test-isnanf.h: New file.
39086         * tests/test-isnanf.c: New file.
39087         * MODULES.html.sh: Mention new module.
39088         * doc/glibc-functions/isnanf.texi: Mention new module.
39089
39090 2008-07-10  Ben Pfaff  <blp@gnu.org>
39091
39092         Add isnand module.
39093         * lib/isnand.h: New file.
39094         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39095         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39096         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39097         functionality also.
39098         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39099         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39100         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39101         * modules/isnand: New file.
39102         * modules/isnand-tests: New file.
39103         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39104         files.
39105         * tests/test-isnand-nolibm.c: factored most of its contents into
39106         new file tests/test-isnand.h.
39107         * tests/test-isnand.h: New file.
39108         * tests/test-isnand.c: New file.
39109         * MODULES.html.sh: Mention new module.
39110
39111 2008-07-10  Ben Pfaff  <blp@gnu.org>
39112
39113         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39114         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39115         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39116         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39117         * modules/isnanf-nolibm: Update references to renamed files.
39118         * modules/isnand-nolibm: Likewise.
39119         * modules/isnanf-nolibm-tests: Likewise.
39120         * modules/isnand-nolibm-tests: Likewise.
39121         * lib/frexp.c: Likewise.
39122         * lib/isfinite.c: Likewise.
39123         * lib/signbitd.c: Likewise.
39124         * lib/signbitf.c: Likewise.
39125         * lib/vasnprintf.c: Likewise.
39126         * tests/test-ceilf1.c: Likewise.
39127         * tests/test-ceilf2.c: Likewise.
39128         * tests/test-floorf1.c: Likewise.
39129         * tests/test-floorf2.c: Likewise.
39130         * tests/test-frexp.c: Likewise.
39131         * tests/test-round1.c: Likewise.
39132         * tests/test-round2.c: Likewise.
39133         * tests/test-roundf1.c: Likewise.
39134         * tests/test-strtod.c: Likewise.
39135         * tests/test-trunc1.c: Likewise.
39136         * tests/test-trunc2.c: Likewise.
39137         * tests/test-truncf1.c: Likewise.
39138         * tests/test-truncf2.c: Likewise.
39139         * NEWS: Mention the renamed header files.
39140
39141 2008-07-11  Jim Meyering  <meyering@redhat.com>
39142
39143         vc-list-files: make the last-resort awk code more portable
39144         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39145         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39146         does not support it.
39147
39148 2008-07-10  Eric Blake  <ebb9@byu.net>
39149
39150         Work with tar's bootstrap.
39151         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39152         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39153         an m4 comment.
39154
39155 2008-07-09  Jim Meyering  <meyering@redhat.com>
39156
39157         posix-shell.m4: fix typo that made this test malfunction
39158         * m4/posix-shell.m4: Remove capitalization in variable name.
39159
39160 2008-07-08  Bruno Haible  <bruno@clisp.org>
39161
39162         * m4/onceonly.m4: Update comments.
39163         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39164
39165 2008-07-04  Jim Meyering  <meyering@redhat.com>
39166
39167         * users.txt: Add vc-dwim.
39168         (bison, coreutils): Use the gitweb URL.
39169
39170 2008-07-03  Jim Meyering  <meyering@redhat.com>
39171
39172         * users.txt: Add libffcall.  From Sam Steingold.
39173
39174 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39175
39176         getdate.y: do not ignore TZ with relative day, month or year offset
39177         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39178         relative-date-handling, since otherwise, the latter would clobber the
39179         sole output (an updated Start value) of the tz-handling block.
39180         * tests/test-getdate.c: Tests for the fix
39181
39182 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39183
39184         Recognize 'foo_LIBRARIES += libgnu.a'.
39185         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39186         makefile snippet has already specified an installation location,
39187         also using '+='.
39188
39189 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39190
39191         getdate.y: factor out common actions
39192         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39193         Use them in place of open-coded actions.
39194
39195 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39196
39197         Add self-test for getdate module.
39198         * modules/getdate-tests: New file.
39199         * tests/test-getdate.c: New file.
39200
39201 2008-06-29  Bruno Haible  <bruno@clisp.org>
39202
39203         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39204         .gitignore.
39205         Reported by Sylvain Beucler <beuc@beuc.net>.
39206
39207 2008-06-29  Bruno Haible  <bruno@clisp.org>
39208
39209         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39210         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39211
39212 2008-06-29  Bruno Haible  <bruno@clisp.org>
39213
39214         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39215         EXTRA_DIST.
39216         Reported by Sylvain Beucler <beuc@beuc.net>.
39217
39218 2008-06-26  Jim Meyering  <meyering@redhat.com>
39219
39220         make several modules depend on the "open" module
39221         This provides slightly increased consistency when opening-for-write
39222         the name of a non-directory spelled with a trailing slash.
39223         * modules/chdir-safer: Likewise.
39224         * modules/chown: Likewise.
39225         * modules/clean-temp: Likewise.
39226         * modules/copy-file: Likewise.
39227         * modules/fchdir: Likewise.
39228         * modules/fcntl-safer: Likewise.
39229         * modules/pipe: Likewise.
39230         * modules/utime: Likewise.
39231         Prompted by Eric Blake and Bruno Haible.
39232
39233 2008-06-24  Andreas Schwab  <schwab@suse.de>
39234
39235         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39236         literals can be used as initializers for global variables.
39237
39238 2008-06-23  Eric Blake  <ebb9@byu.net>
39239
39240         Make gnulib-cache.m4 easier to diff.
39241         * gnulib-tool (func_import): Allow newlines when reading cached
39242         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39243
39244 2008-06-23  Bruno Haible  <bruno@clisp.org>
39245
39246         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39247         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39248         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39249         m4/signalblocking.m4.
39250         (gl_PREREQ_SIGACTION): Don't invoke it.
39251         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39252         gl_PREREQ_SIG_HANDLER_H.
39253         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39254         Don't check for sigaction here.
39255
39256 2008-06-23  Bruno Haible  <bruno@clisp.org>
39257
39258         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39259         (install_handlers): Don't set the SA_RESETHAND flag.
39260
39261 2008-06-23  Bruno Haible  <bruno@clisp.org>
39262
39263         * m4/sigaction.m4: Comment fixes.
39264         * lib/signal.in.h: Likewise.
39265
39266 2008-06-23  Eric Blake  <ebb9@byu.net>
39267
39268         Fix typo.
39269         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39270
39271         Avoid SA_ namespace.
39272         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39273         Reported by Ralf Wildenhues.
39274
39275         Avoid test failure due to SA_RESTORER.
39276         * tests/test-sigaction.c (SA_MASK): New macro.
39277         (main): Avoid failing due to extension flags being set.
39278         Reported by Jim Meyering.
39279
39280         Revert use of sig-handler.h in sigprocmask.c.
39281         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39282         it requires the existence of struct sigaction.
39283         * lib/sigprocmask.c (handler_t): Restore typedef.
39284         (rpl_signal, old_handlers): Use local type.
39285
39286 2008-06-22  Bruno Haible  <bruno@clisp.org>
39287
39288         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39289         conditionally.
39290         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39291
39292 2008-06-22  Bruno Haible  <bruno@clisp.org>
39293
39294         * doc/posix-functions/siginterrupt.texi: Move note.
39295
39296         * lib/signal.in.h (SA_RESTART): New macro.
39297         * lib/sigaction.c: Update comment.
39298
39299         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39300
39301         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39302         (gl_PREREQ_SIGPROCMASK): Invoke it.
39303         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39304
39305         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39306
39307         * lib/sigprocmask.c: Update a comment.
39308
39309 2008-06-21  Eric Blake  <ebb9@byu.net>
39310
39311         Use sigaction module rather than signal().
39312         * modules/c-stack (Depends-on): Add sigaction.
39313         * modules/fatal-signal (Depends-on): Likewise.
39314         * modules/nanosleep (Depends-on): Likewise.
39315         * modules/sigprocmask (Files): Add sig-handler.h.
39316         * modules/sigaction (Files): Likewise.
39317         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39318         Eggert.
39319         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39320         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39321         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39322         (init_fatal_signals): Likewise.
39323         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39324         (siginterrupt): Delete fallback.
39325         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39326         instead.
39327         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39328         siginterrupt.
39329
39330         New module sigaction, for mingw.
39331         * modules/sigaction: New module...
39332         * modules/sigaction-tests: ...and its test.
39333         * m4/sigaction.m4: New file.
39334         * lib/sigaction.c: Likewise.
39335         * tests/test-sigaction.c: Likewise.
39336         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39337         * modules/signal (Makefile.am): Likewise.
39338         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39339         needed.
39340         * doc/posix-headers/signal.texi (signal.h): Mention provided
39341         types.
39342         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39343         that sigaction is preferable.
39344         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39345         module.
39346         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39347         sigaction.
39348
39349         Improve robustness of sigprocmask by overriding signal.
39350         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39351         is in use.
39352         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39353         (SIGKILL, SIGSTOP): Provide fallbacks.
39354         (rpl_signal): Implement.
39355         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39356         signal can be called inside handlers.
39357
39358         Fix nanosleep module on mingw.
39359         * modules/nanosleep (Depends-on): Add sys_select.
39360         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39361
39362         Fix licensing of sigprocmask.
39363         * modules/raise (License): Relicense as LGPL.
39364
39365 2008-06-21  Bruno Haible  <bruno@clisp.org>
39366
39367         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39368         result if it contains question marks.
39369         Reported by Michael Geng <linux@michaelgeng.de>.
39370
39371 2008-06-19  Bruno Haible  <bruno@clisp.org>
39372
39373         Fix CVS-ism.
39374         * doc/gnulib.texi: Include updated-stamp.texi.
39375         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39376         (updated-stamp.texi): New rule.
39377         (gnulib.info): Depend on it.
39378         * doc/.gitignore: Add updated-stamp.texi.
39379         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39380
39381 2008-06-19  Bruno Haible  <bruno@clisp.org>
39382
39383         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39384         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39385
39386 2008-06-19  Eric Blake  <ebb9@byu.net>
39387
39388         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39389         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39390         Reported by Stepan Kasal.
39391
39392 2008-06-18  Bruno Haible  <bruno@clisp.org>
39393
39394         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39395         Reported by Eric Blake.
39396
39397 2008-06-18  Eric Blake  <ebb9@byu.net>
39398
39399         Work around cygwin 1.5.25 strsignal bug.
39400         * tests/test-strsignal.c: Allow for const char *.
39401         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39402
39403 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39404
39405         * users.txt: Update URL to article and add author/date
39406         information.
39407
39408 2008-06-17  Bruno Haible  <bruno@clisp.org>
39409
39410         New macro gl_DISABLE_THREADS.
39411         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39412         if the user did not pass --enable-threads or --disable-threads option.
39413         (gl_DISABLE_THREADS): New macro.
39414         Reported by Eric Blake <ebb9@byu.net>.
39415
39416 2008-06-17  Bruno Haible  <bruno@clisp.org>
39417
39418         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39419         when the macro ignores it.
39420         Based on a patch by Eric Blake <ebb9@byu.net>.
39421
39422 2008-06-17  Bruno Haible  <bruno@clisp.org>
39423
39424         * modules/tls (License): Change to LGPLv2+.
39425         Reported by Eric Blake.
39426
39427 2008-06-17  Eric Blake  <ebb9@byu.net>
39428
39429         Simplify c-stack prerequisites.
39430         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39431         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39432         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39433         check.
39434         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39435         <sys/resource.h>.
39436
39437         Move c-stack test into testsuite.
39438         * modules/c-stack-tests: New file.
39439         * lib/c-stack.c [DEBUG]: Move test program...
39440         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39441         fail test if sigaltstack is lacking.
39442         * tests/test-c-stack.sh: New driver file.
39443
39444 2008-06-16  Eric Blake  <ebb9@byu.net>
39445
39446         Use raise module consistently.
39447         * modules/fatal-signal (Depends-on): Add raise.
39448         * modules/sigprocmask (Depends-on): Likewise.
39449         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39450         * lib/sigprocmask.c (sigprocmask): Likewise.
39451         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39452         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39453
39454         Fix compliance bug in sigpending.
39455         * lib/sigprocmask.c (sigpending): Return pending array via
39456         parameter, not return value.
39457
39458 2008-06-14  Eric Blake  <ebb9@byu.net>
39459
39460         Improve obstack-printf test code.
39461         * tests/test-obstack-printf.c (test_function): Fix comment, and
39462         simplify usage of obstack_* in macros.  Add a test for coverage.
39463         Reported by Bruno Haible.
39464
39465 2008-06-14  Bruno Haible  <bruno@clisp.org>
39466
39467         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39468         array size as a constant, not as a const variable.
39469         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39470         AC_USE_SYSTEM_EXTENSIONS.
39471         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39472         Test whether the obstack_printf function actually exists.
39473         * modules/obstack-printf (Depends-on): Add extensions.
39474         (Include): Remove obstack.h.
39475         * modules/obstack-printf-posix (Depends-on): Add extensions.
39476         (Include): Remove obstack.h.
39477
39478 2008-06-13  Eric Blake  <ebb9@byu.net>
39479
39480         Add obstack-printf and obstack-printf-posix modules.
39481         * modules/obstack-printf: New file.
39482         * modules/obstack-printf-posix: Likewise.
39483         * MODULES.html.sh (Misc): Mention them.
39484         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39485         Likewise.
39486         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39487         Likewise.
39488         * modules/stdio (Makefile.am): Accomodate new modules.
39489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39490         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39491         Declare.
39492         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39493         functions.
39494         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39495         (gl_REPLACE_OBSTACK_PRINTF): New macros
39496         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39497         * tests/test-obstack-printf.c: New file.
39498         * modules/obstack-printf-tests: Likewise.
39499         * modules/obstack-printf-posix-tests: Likewise.
39500
39501 2008-06-11  Bruno Haible  <bruno@clisp.org>
39502
39503         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39504         * lib/open.c: Include errno.h.
39505         (open): Fail when attempting to write to a file that has a trailing
39506         slash.
39507         * tests/test-open.c (main): Test against trailing slash bug.
39508         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39509
39510 2008-06-10  Bruno Haible  <bruno@clisp.org>
39511
39512         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39513         for $? to work inside the trap command, with various /bin/sh-s.
39514         * tests/test-vc-list-files-cvs.sh: Likewise.
39515
39516 2008-06-10  Bruno Haible  <bruno@clisp.org>
39517
39518         * lib/acl-internal.h: Don't include gettext.h here.
39519         * lib/set-mode-acl.c: Include gettext.h here.
39520         * lib/copy-acl.c: Likewise.
39521
39522 2008-06-10  Bruno Haible  <bruno@clisp.org>
39523
39524         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
39525         * lib/wait-process.c (wait_subprocess): Likewise.
39526         * lib/execute.h (execute): Add termsigp argument.
39527         * lib/execute.c (execute): Likewise.
39528         * lib/csharpcomp.c (compile_csharp_using_pnet,
39529         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
39530         * lib/csharpexec.c (execute_csharp_using_pnet,
39531         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
39532         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
39533         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
39534         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
39535         is_jikes_present): Update.
39536         * lib/javaexec.c (execute_java_class): Update.
39537         * lib/javaversion.c (execute_and_read_line): Update.
39538         * NEWS: Document the changes.
39539         Reported by Eric Blake.
39540
39541 2008-06-10  Eric Blake  <ebb9@byu.net>
39542
39543         Add missing include.
39544         * tests/test-strstr.c (includes): Add <signal.h>.
39545         * tests/test-strcasestr.c (includes): Likewise.
39546         * tests/test-memmem.c (includes): Likewise.
39547
39548 2008-06-10  Bruno Haible  <bruno@clisp.org>
39549
39550         * lib/wait-process.c (wait_subprocess): Add an assertion.
39551
39552 2008-06-10  Bruno Haible  <bruno@clisp.org>
39553
39554         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
39555
39556 2008-06-10  Bruno Haible  <bruno@clisp.org>
39557
39558         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
39559         using alarm().
39560         * tests/test-strcasestr.c (main): Likewise.
39561         * tests/test-strstr.c (main): Likewise.
39562
39563 2008-06-09  Bruno Haible  <bruno@clisp.org>
39564
39565         Work around the Solaris 10 ACE ACLs ABI change.
39566         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
39567         declare if ACL_NO_TRIVIAL is present.
39568         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
39569         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
39570         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
39571         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
39572         define if ACL_NO_TRIVIAL is present.
39573         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
39574         and use the current ABI.
39575         (file_has_acl): Use same #if condition as elsewhere.
39576         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39577         in use, and use the current ABI.
39578         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
39579         Reported by Jim Meyering.
39580
39581 2008-06-09  Eric Blake  <ebb9@byu.net>
39582
39583         Work around environments that (stupidly) ignore SIGALRM.
39584         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39585         before using alarm().
39586         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39587         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39588         Reported by Ian Beckwith <ianb@erislabs.net>.
39589
39590         Produce autobuild blurb earlier in log.
39591         * modules/autobuild (configure.ac-early): Move AB_INIT here.
39592
39593 2008-06-09  Jim Meyering  <meyering@redhat.com>
39594         and OndÅ™ej Vašík  <ovasik@redhat.com>
39595
39596         utimens.c: correct kernel bug work-around
39597         OndÅ™ej Vašík found that the invalid return value of 280 indicates
39598         failure, not success, and the kernel bug we're trying to work
39599         around affects not just the utimensat call, but also the fallback
39600         futimens call.
39601         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
39602         not success.
39603         [HAVE_FUTIMENS]: Use the same work-around, here.
39604
39605 2008-06-09  Jim Meyering  <meyering@redhat.com>
39606
39607         add more guards around definition of ACE_-related code
39608         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
39609         ALLOW and ACE_OWNER are also defined.
39610
39611 2008-06-08  Bruno Haible  <bruno@clisp.org>
39612
39613         * lib/acl-internal.h: Add me as co-author.
39614         * lib/file-has-acl.c: Likewise.
39615         * lib/set-mode-acl.c: Likewise.
39616         * lib/copy-acl.c: Likewise.
39617
39618 2008-06-08  Bruno Haible  <bruno@clisp.org>
39619
39620         Add support for AIX ACLs.
39621         * lib/acl-internal.h (acl_nontrivial): New declaration.
39622         * lib/file-has-acl.c (acl_nontrivial): New function.
39623         (file_has_acl): Add implementation using AIX 4 ACL API.
39624         * lib/set-mode-acl.c (qset_acl): Likewise.
39625         * lib/copy-acl.c (qcopy_acl): Likewise.
39626
39627 2008-06-08  Bruno Haible  <bruno@clisp.org>
39628
39629         Add support for HP-UX ACLs.
39630         * lib/acl-internal.h (acl_nontrivial): New declaration.
39631         * lib/file-has-acl.c (acl_nontrivial): New function.
39632         (file_has_acl): Add implementation using HP-UX 11 ACL API.
39633         * lib/set-mode-acl.c (qset_acl): Likewise.
39634         * lib/copy-acl.c (qcopy_acl): Likewise.
39635
39636 2008-06-08  Bruno Haible  <bruno@clisp.org>
39637
39638         Add support for Cygwin ACLs.
39639         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
39640         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
39641         the chmod_or_fchmod call.
39642         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
39643
39644 2008-06-08  Bruno Haible  <bruno@clisp.org>
39645
39646         Fix bug with setuid modes in Solaris 10+ code.
39647         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
39648         succeeded, when the mode contains some special bits.
39649
39650 2008-06-08  Bruno Haible  <bruno@clisp.org>
39651
39652         Add support for Solaris 7..10 ACLs.
39653         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
39654         declarations.
39655         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
39656         functions.
39657         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
39658         * lib/set-mode-acl.c (qset_acl): Likewise.
39659         * lib/copy-acl.c (qcopy_acl): Likewise.
39660
39661 2008-06-08  Bruno Haible  <bruno@clisp.org>
39662
39663         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
39664         declaration.
39665         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
39666         (acl_access_nontrivial): Remove MacOS X case.
39667         (file_has_acl): Use acl_extended_nontrivial.
39668         * lib/copy-acl.c (qcopy_acl): Likewise.
39669
39670 2008-06-08  Bruno Haible  <bruno@clisp.org>
39671
39672         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
39673
39674 2008-06-08  Jim Meyering  <meyering@redhat.com>
39675
39676         * modules/acl (Maintainer): Add Bruno Haible.
39677
39678 2008-06-07  Bruno Haible  <bruno@clisp.org>
39679
39680         Improve support for Tru64 ACLs.
39681         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
39682         ACL on OSF/1.
39683
39684 2008-06-07  Bruno Haible  <bruno@clisp.org>
39685
39686         Add support for MacOS X ACLs.
39687         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
39688         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
39689         * lib/set-mode-acl.c (qset_acl): Likewise.
39690         * lib/copy-acl.c (qcopy_acl): Likewise.
39691
39692 2008-06-07  Bruno Haible  <bruno@clisp.org>
39693
39694         Fix memory leak introduced on 2008-05-22.
39695         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39696         use.
39697
39698 2008-06-07  Bruno Haible  <bruno@clisp.org>
39699
39700         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39701         to construct an empty ACL.
39702
39703 2008-06-07  Bruno Haible  <bruno@clisp.org>
39704
39705         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39706         precisely.
39707         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39708
39709 2008-06-07  Bruno Haible  <bruno@clisp.org>
39710
39711         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39712         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39713
39714 2008-06-07  Bruno Haible  <bruno@clisp.org>
39715
39716         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39717         regardless of POSIX.
39718         * doc/posix-functions/_longjmp.texi: Likewise.
39719         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39720         SystemV platform in this case.
39721
39722 2008-06-06  Eric Blake  <ebb9@byu.net>
39723
39724         Document abort() bugs.
39725         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39726
39727         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39728         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39729         sigsetjmp.
39730         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39731         siglongjmp, but only as a macro.
39732         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39733         is obsolete.
39734         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39735
39736         Tweak documentation to cover cygwin argz bugs.
39737         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39738         argz bug fix; no code change needed since no cygwin releases
39739         occurred between the last fix and the bug being tested.
39740         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39741         module and recently fixed cygwin bugs.
39742         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39743         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39744         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39745         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39746         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39747         Likewise.
39748         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39749         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39750         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39751         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39752         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39753         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39754         Likewise.
39755
39756         Avoid gcc warning on cygwin.
39757         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39758         !ACL_NO_TRIVIAL]: Avoid unused variable.
39759
39760 2008-06-05  Eric Blake  <ebb9@byu.net>
39761
39762         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39763         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39764         git-version-gen fails to come up with a version.
39765         Reported by Simon Josefsson.
39766
39767 2008-06-05  Jim Meyering  <meyering@redhat.com>
39768             Paul Eggert  <eggert@cs.ucla.edu>
39769
39770         utimens.c: work around a probable Linux kernel bug
39771         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39772         appears to be a kernel bug that causes utimensat to return 280
39773         instead of 0, indicating success.
39774
39775 2008-06-04  Bruno Haible  <bruno@clisp.org>
39776
39777         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39778         2008-06-01 commit.
39779
39780 2008-06-04  Bruno Haible  <bruno@clisp.org>
39781
39782         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39783         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39784         (file_has_acl): Use it. Save errno afterwards.
39785         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39786
39787 2008-06-03  Bruno Haible  <bruno@clisp.org>
39788
39789         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39790         draft code. Simplify #ifs.
39791         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39792         Put Solaris code after POSIX-draft code. Fix comments regarding
39793         Solaris 10, HP-UX. Mention Cygwin.
39794         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
39795
39796 2008-06-03  Eric Blake  <ebb9@byu.net>
39797
39798         Provide fallback for older kernels.
39799         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
39800         Provide runtime fallback if kernel lacks support.
39801         Reported by Mike Frysinger.
39802
39803 2008-06-02  Bruno Haible  <bruno@clisp.org>
39804
39805         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
39806         it exists.
39807
39808 2008-06-02  Bruno Haible  <bruno@clisp.org>
39809
39810         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
39811         * lib/copy-acl.c (qcopy_acl): Update comment.
39812
39813 2008-06-02  Bruno Haible  <bruno@clisp.org>
39814
39815         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
39816         like ACL APIs.
39817
39818 2008-06-02  Bruno Haible  <bruno@clisp.org>
39819
39820         * tests/test-file-has-acl.sh: Use different code for Cygwin.
39821         * tests/test-set-mode-acl.sh: Likewise.
39822         * tests/test-copy-acl.sh: Likewise.
39823         * tests/test-copy-file.sh: Likewise.
39824
39825 2008-06-02  Bruno Haible  <bruno@clisp.org>
39826
39827         * tests/test-file-has-acl.sh: Remove unused code.
39828
39829 2008-06-01  Bruno Haible  <bruno@clisp.org>
39830
39831         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
39832         (copy_acl): Just a wrapper around qcopy_acl that emits the error
39833         messages.
39834         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
39835
39836 2008-06-01  Bruno Haible  <bruno@clisp.org>
39837
39838         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
39839         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
39840         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
39841         APIs.
39842         * modules/acl-tests (configure.ac): Remove tests now contained in
39843         m4/acl.m4.
39844
39845 2008-06-02  Jim Meyering  <meyering@redhat.com>
39846
39847         announce-gen: use a better key-server host name
39848         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
39849         it may be more consistently reliable.  Suggested by Werner Koch
39850         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
39851
39852 2008-06-01  Bruno Haible  <bruno@clisp.org>
39853
39854         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
39855         Reported by Voroskoi Andras <voroskoi@gmail.com>.
39856
39857 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
39858
39859         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
39860
39861 2008-06-01  Bruno Haible  <bruno@clisp.org>
39862
39863         New ACL tests.
39864         * tests/test-file-has-acl.sh: New file.
39865         * tests/test-file-has-acl.c: New file.
39866         * tests/test-set-mode-acl.sh: New file.
39867         * tests/test-set-mode-acl.c: New file.
39868         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
39869         * tests/test-copy-acl.c: New file.
39870         * modules/acl-tests: New file, based on modules/copy-file-tests.
39871         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
39872         (Depends-on): Add acl-tests.
39873         (configure.ac): Remove checks.
39874         (Makefile.am): Don't create test-sameacls program here any more.
39875
39876 2008-06-01  Bruno Haible  <bruno@clisp.org>
39877
39878         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
39879         * tests/test-sameacls.c: Include progname.h.
39880         (main): Invoke set_program_name. Portability fixes for MacOS X,
39881         Solaris, HP-UX.
39882
39883 2008-06-01  Bruno Haible  <bruno@clisp.org>
39884
39885         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
39886         function.
39887         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
39888
39889 2008-06-01  Bruno Haible  <bruno@clisp.org>
39890
39891         * modules/rpmatch (Depends-on): Add strdup.
39892
39893 2008-06-01  Bruno Haible  <bruno@clisp.org>
39894
39895         * lib/pipe.c: Include unistd-safer.h.
39896         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
39897         * modules/pipe (Depends-on): Add unistd-safer.
39898
39899 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39900
39901         * modules/autobuild (configure.ac): Call AB_INIT.
39902
39903 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39904
39905         * tests/test-getaddrinfo.c: Don't print debug messages by default.
39906         Suggested by Bruno Haible <bruno@clisp.org>.
39907
39908 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39909
39910         * tests/test-base64.c: Cast size_t to unsigned long when invoking
39911         printf.  Use %lu instead of %d.  Reported by Bruno Haible
39912         <bruno@clisp.org>.
39913
39914 2008-05-29  Eric Blake  <ebb9@byu.net>
39915
39916         Prefer new POSIX 200x interfaces over futimesat.
39917         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
39918         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
39919         when available.
39920         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
39921
39922 2008-05-28  Bruno Haible  <bruno@clisp.org>
39923
39924         * modules/stpcpy (License): Change to LGPLv2+.
39925         Requested by David Lutterkort <dlutter@redhat.com>.
39926
39927 2008-05-27  Bruno Haible  <bruno@clisp.org>
39928
39929         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
39930         current mingw.
39931         Reported by Jose E. Marchesi <jemarch@gnu.org>.
39932
39933 2008-05-27  Bruno Haible  <bruno@clisp.org>
39934
39935         * modules/iconv_open (Link): New section, from module 'iconv'.
39936         * modules/striconv (Link): Likewise.
39937         * modules/striconveh (Link): Likewise.
39938         * modules/xstriconv (Link): Likewise.
39939         * modules/unicodeio (Link): Likewise.
39940         * modules/propername (Link): Likewise.
39941         Reported by Jim Meyering.
39942
39943 2008-05-26  Jim Meyering  <meyering@redhat.com>
39944
39945         sha256: do not artificially restrict buffer length to be < 2^32
39946         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
39947         uint32_t to size_t.
39948         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
39949         to match.
39950
39951         avoid unaligned access errors, e.g., on sparc
39952         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
39953         direct access through a possibly-unaligned uint64* pointer.
39954         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
39955         direct access through a possibly-unaligned uint32* pointer.
39956         Prompted by this patch from Tom "spot" Callaway:
39957         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
39958
39959         sha512.c: fix typo in comment
39960         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
39961
39962 2008-05-25  Bruno Haible  <bruno@clisp.org>
39963
39964         * lib/set-mode-acl.c: Renamed from lib/acl.c.
39965         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
39966         (Makefile.am): Update lib_SOURCES.
39967
39968 2008-05-25  Bruno Haible  <bruno@clisp.org>
39969
39970         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
39971
39972 2008-05-25  Jim Meyering  <meyering@redhat.com>
39973
39974         useless-if-before-free: freed expr may have white-space differences
39975         * build-aux/useless-if-before-free: Recognize cases in which the
39976         freed expression differs from the tested one in embedded white
39977         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
39978         $1 was used, so we can't make any regexp shy.  Improved tests now
39979         detect this.
39980
39981         useless-if-before-free: accept white space in the expression.
39982         * build-aux/useless-if-before-free: For now, any white space
39983         in the expression must be identical in the free argument.
39984
39985         useless-if-before-free: efficiency tweak
39986         * build-aux/useless-if-before-free: Make the expression-matching
39987         regexp "shy".
39988         Make the *outer* regexp shy, not the expr-matching one.
39989
39990         update code-in-comment to accept cast of free arg
39991         * build-aux/useless-if-before-free: Update regexp.
39992
39993 2008-05-25  Bruno Haible  <bruno@clisp.org>
39994
39995         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
39996         * modules/copy-file-tests (Files, Makefile.am): Update.
39997         * tests/test-copy-file.c (func_test_copy): Update.
39998
39999 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40000
40001         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40002
40003 2008-05-23  Bruno Haible  <bruno@clisp.org>
40004
40005         Improve support for ACLs on OSF/1.
40006         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40007         Remove fallback for unknown flavors of ACLs.
40008
40009 2008-05-22  Bruno Haible  <bruno@clisp.org>
40010
40011         Add support for ACLs on OSF/1.
40012         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40013         replacements.
40014         (acl_free_text): New macro fallback.
40015         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40016         acl_free.
40017         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40018         acl_free_text function. Require AC_C_INLINE.
40019
40020 2008-05-22  Bruno Haible  <bruno@clisp.org>
40021
40022         Make copy_acl work on MacOS X 10.5.
40023         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40024         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40025         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40026         If MODE_INSIDE_ACL, don't assume that every system has the same text
40027         representation for ACLs as FreeBSD.
40028         * lib/copy-acl.c (copy_acl): Add support for platforms with
40029         !MODE_INSIDE_ACL.
40030         * lib/file-has-acl.c (file_has_acl): Likewise.
40031         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40032         FreeBSD, MacOS X, or IRIX, respectively.
40033
40034 2008-05-22  Bruno Haible  <bruno@clisp.org>
40035
40036         * lib/acl.h: Don't include <sys/acl.h>.
40037         (GETACLCNT): Move fallback to lib/acl-internal.h.
40038         * lib/acl-internal.h: Include <sys/acl.h> here.
40039         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40040
40041 2008-05-22  Bruno Haible  <bruno@clisp.org>
40042
40043         Split off copy_acl function to separate file.
40044         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40045         * lib/acl.c (copy_acl): Moved function to separate file.
40046         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40047         * modules/acl (Files): Add lib/copy-acl.c.
40048         (Makefiles.am): Augment lib_SOURCES.
40049
40050 2008-05-22  Bruno Haible  <bruno@clisp.org>
40051
40052         * modules/copy-file-tests: New file.
40053         * tests/test-copy-file.sh: New file.
40054         * tests/test-copy-file.c: New file.
40055         * tests/test-copy-file-sameacls.c: New file.
40056
40057 2008-05-22  Eric Blake  <ebb9@byu.net>
40058
40059         Avoid gcc warning.
40060         * tests/test-memcmp.c (main): Pass NULL indirectly.
40061
40062 2008-05-21  Bruno Haible  <bruno@clisp.org>
40063
40064         Add reference doc about ACLs.
40065         * doc/acl-resources.txt: New file.
40066         * doc/acl-cygwin.txt: New file.
40067
40068 2008-05-21  Bruno Haible  <bruno@clisp.org>
40069
40070         Avoid one more warning from gcc.
40071         * lib/vasnprintf.c (IF_LINT): Update comments.
40072         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40073
40074 2008-05-21  Jim Meyering  <meyering@redhat.com>
40075
40076         avoid a warning from gcc
40077         * lib/vasnprintf.c (IF_LINT): Define.
40078         (scale10_round_decimal_long_double):
40079         Use it to avoid a "may be used uninitialized" warning.
40080         (scale10_round_decimal_double): Likewise.
40081
40082 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40083
40084         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40085         declared.
40086
40087 2008-05-20  Bruno Haible  <bruno@clisp.org>
40088
40089         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40090         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40091
40092 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40093
40094         * modules/memcmp-tests: New file.
40095         * tests/test-memcmp.c: New file.
40096
40097 2008-05-19  Bruno Haible  <bruno@clisp.org>
40098
40099         * modules/propername (Notice, configure.ac): Put quoted "..." into
40100         --keyword option.
40101         * lib/propername.h: Update comments accordingly.
40102         Reported by Eric Blake.
40103
40104 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40105
40106         * modules/getpass-gnu (Depends-on): Add fseeko.
40107
40108 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40109
40110         * modules/base64-tests: New file.
40111
40112 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40113
40114         * lib/base64.c (base64_decode_ctx): If a decode context structure
40115         was passed in use it to ignore newlines.  If a context structure
40116         was _not_ passed in, continue to treat newlines as garbage (this
40117         is the historical behavior).  Formerly base64_decode.
40118         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40119         takes a decode context structure.
40120         * lib/base64.h (base64_decode): Macro for four-argument calls.
40121         (base64_decode_alloc): Likewise.
40122         * lib/base64.c (base64_decode_ctx): If a decode context structure
40123         was passed in use it to ignore newlines.  If a context structure
40124         was _not_ passed in, continue to treat newlines as garbage (this
40125         is the historical behavior).  Formerly base64_decode.
40126         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40127         takes a decode context structure.
40128         * lib/base64.h (base64_decode): Macro for four-argument calls.
40129         (base64_decode_alloc): Likewise.
40130
40131 2008-05-19  Jim Meyering  <meyering@redhat.com>
40132
40133         avoid a warning from gcc
40134         * lib/trim.c (IF_LINT): Define.
40135         (trim2): Use it to avoid a "may be used uninitialized" warning.
40136
40137         Fix doc typo.
40138         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40139
40140 2008-05-19  Bruno Haible  <bruno@clisp.org>
40141
40142         * doc/glibc-functions/getpass.texi: Document limits of other
40143         implementations.
40144
40145 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40146             Bruno Haible <bruno@clisp.org>
40147
40148         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40149
40150 2008-05-18  Bruno Haible  <bruno@clisp.org>
40151
40152         * modules/propername: New file, from GNU gettext.
40153         * lib/propername.h: New file, from GNU gettext.
40154         * lib/propername.c: New file, from GNU gettext.
40155         * MODULES.html.sh (Internationalization functions): Add propername.
40156
40157 2008-05-16  Jim Meyering  <meyering@redhat.com>
40158             Bruno Haible  <bruno@clisp.org>
40159
40160         Avoid some warnings from "gcc -Wshadow".
40161         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40162
40163 2008-05-15  Eric Blake  <ebb9@byu.net>
40164
40165         Extend previous patch to cygwin 1.7.0.
40166         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40167         fast implementation in cygwin >= 1.7.0.
40168         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40169         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40170
40171 2008-05-15  Bruno Haible  <bruno@clisp.org>
40172
40173         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40174         implementation in glibc >= 2.9.
40175         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40176         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40177
40178 2008-05-15  Bruno Haible  <bruno@clisp.org>
40179
40180         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40181         (Unicode string functions): Add unilbrk/*.
40182         Reported by Karl Berry.
40183
40184 2008-05-15  Eric Blake  <ebb9@byu.net>
40185
40186         Fix violation of <stdbool.h> replacement in regex.
40187         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40188         * lib/regexec.c (re_search_internal): Likewise.
40189         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40190
40191 2008-05-15  Jim Meyering  <meyering@redhat.com>
40192
40193         avoid distracting test output when git or cvs is not found
40194         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40195         * tests/test-vc-list-files-git.sh: Likewise.
40196
40197 2008-05-15  Eric Blake  <ebb9@byu.net>
40198
40199         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40200         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40201         glibc version.
40202         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40203         * doc/posix-functions/strstr.texi (strstr): Likewise.
40204         * lib/str-two-way.h (MAX): Sychronize with glibc.
40205
40206 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40207
40208         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40209         opr.ctx_type.
40210         (calc_first): Initialize constraint field.
40211         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40212         Fix grammar.
40213         (duplicate_node): Merge constraint field for all node types.
40214         (calc_eclosure_iter): Look at constraint field for all node types.
40215         * lib/regex_internal.c (create_cd_newstate): Don't look at
40216         opr.ctx_type.
40217
40218 2008-05-14  Bruno Haible  <bruno@clisp.org>
40219
40220         Help GCC to do better code generation.
40221         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40222         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40223         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40224         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40225         Declare with attribute 'malloc' if supported.
40226
40227 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40228
40229         use "echo STR|wc -c" rather than unportable "expr length STR"
40230         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40231         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40232
40233 2008-05-14  Jim Meyering  <meyering@redhat.com>
40234
40235         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40236         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40237         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40238         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40239         via Collin Lasse.
40240
40241 2008-05-14  Eric Blake  <ebb9@byu.net>
40242
40243         Avoid quadratic growth in gl_LIBSOURCES.
40244         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40245         Suggested by Bruno Haible.
40246
40247         Test xmemdup0.
40248         * modules/xmemdup0-tests: New file.
40249         * tests/test-xmemdup0.c: Likewise.
40250
40251 2008-05-13  Eric Blake  <ebb9@byu.net>
40252
40253         Split xmemdup0 into its own module.
40254         * modules/xmemdup0: New file.
40255         * lib/xmemdup0.h: Likewise.
40256         * lib/xmemdup0.c: Likewise.
40257         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40258         * lib/xalloc.h (xmemdup0): Remove.
40259         * lib/xmalloc.c (xmemdup0): Likewise.
40260
40261 2008-05-13  Eric Blake  <ebb9@byu.net>
40262             Bruno Haible  <bruno@clisp.org>
40263
40264         Reduce number of forks required during autoconf.
40265         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40266         and gl_LIBSOURCES_DIR.
40267         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40268         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40269         m4_syscmd per file.
40270         <m4_foreach_w>: Move...
40271         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40272
40273 2008-05-13  Eric Blake  <ebb9@byu.net>
40274
40275         * gnulib-tool: Fix various comment typos.
40276
40277 2008-05-12  Bruno Haible  <bruno@clisp.org>
40278
40279         Tailor the linebreaking algorithm.
40280         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40281
40282 2008-05-12  Bruno Haible  <bruno@clisp.org>
40283
40284         Update to Unicode 5.0.0.
40285         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40286         LBP_JV, LBP_JT. Redistribute values.
40287         (unilbrk_table): Change size.
40288         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40289         Unicode TR#14 rev. 22.
40290         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40291         LBP_JV, LBP_JT. Redistribute values.
40292         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40293         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40294         Update.
40295         * lib/unilbrk/lbrkprop1.h: Regenerated.
40296         * lib/unilbrk/lbrkprop2.h: Regenerated.
40297         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40298         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40299         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40300         Likewise.
40301         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40302         Likewise.
40303         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40304         result.
40305         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40306         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40307         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40308         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40309         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40310         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40311
40312 2008-05-11  Bruno Haible  <bruno@clisp.org>
40313
40314         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40315
40316 2008-05-11  Bruno Haible  <bruno@clisp.org>
40317
40318         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40319         * modules/unilbrk/gen-lbrk: New file.
40320
40321 2008-05-11  Bruno Haible  <bruno@clisp.org>
40322
40323         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40324         * m4/sha512.m4 (gl_SHA512): Likewise.
40325
40326 2008-05-11  Jim Meyering  <meyering@redhat.com>
40327
40328         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40329         * modules/crypto/sha256: New file.
40330         * modules/crypto/sha512: Likewise.
40331         * lib/sha256.c: Likewise.
40332         * lib/sha256.h: Likewise.
40333         * lib/sha512.c: Likewise.
40334         * lib/sha512.h: Likewise.
40335         * lib/u64.h: Likewise.
40336         * m4/sha256.m4: Likewise.
40337         * m4/sha512.m4: Likewise.
40338         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40339
40340 2008-05-10  Bruno Haible  <bruno@clisp.org>
40341
40342         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40343         (Input/Output <stdio.h>): Add xprintf.
40344         (Signal handling <signal.h>): Add strsignal.
40345         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40346         (Core language properties): Add func.
40347         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40348         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40349         strings.
40350         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40351         (Input/output): New section.
40352         (File system functions): Add openat-die, stat-macros.
40353         (Networking functions): Add sockets.
40354         (Unicode string functions): Add unictype/*.
40355         (Support for building libraries and executables): Add gperf.
40356         (Support for building documentation): Add agpl-3.0.
40357         (Misc): Add nocrash.
40358
40359 2008-05-10  Bruno Haible  <bruno@clisp.org>
40360
40361         * modules/unictype/gen-ctype: New file.
40362
40363 2008-05-10  Jim Meyering  <meyering@redhat.com>
40364
40365         Make chdir-safer.c more efficient on a system with no symlinks.
40366         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40367         also if ELOOP is zero.  Suggested by Bruno Haible.
40368
40369         Make chdir-safer.c slightly safer.
40370         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40371         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40372
40373         Avoid compile failure on systems without ELOOP (like mingw).
40374         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40375         Reported by Bruno Haible.
40376
40377 2008-05-10  Bruno Haible  <bruno@clisp.org>
40378
40379         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40380         (is_utf8_encoding): Use a case-insensitive comparison.
40381         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40382         streq.
40383
40384 2008-05-10  Bruno Haible  <bruno@clisp.org>
40385
40386         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40387         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40388         * lib/unilbrk/ulc-common.h (iconv_string_length,
40389         iconv_string_keeping_offsets): Remove declarations.
40390         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40391         Don't include <iconv.h>, streq.h, xsize.h.
40392         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40393         conversion.
40394         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40395         <iconv.h>, streq.h, xsize.h.
40396         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40397         conversion.
40398         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40399         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40400         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40401         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40402
40403 2008-05-10  Bruno Haible  <bruno@clisp.org>
40404
40405         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40406         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40407
40408         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40409         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40410
40411         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40412         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40413
40414         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40415         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40416
40417         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40418         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40419
40420         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40421         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40422
40423         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40424         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40425
40426         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40427         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40428
40429 2008-05-10  Bruno Haible  <bruno@clisp.org>
40430
40431         Split up 'linebreak' module.
40432         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40433         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40434         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40435         modifications.
40436         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40437         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40438         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40439         lib/linebreak.c.
40440         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40441         lib/linebreak.c.
40442         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40443         lib/linebreak.c.
40444         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40445         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40446         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40447         lib/linebreak.c.
40448         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40449         lib/linebreak.c.
40450         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40451         lib/linebreak.c.
40452         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40453         lib/linebreak.c.
40454         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40455         lib/linebreak.c.
40456         * modules/unilbrk/base: New file.
40457         * modules/unilbrk/tables: New file.
40458         * modules/unilbrk/u8-possible-linebreaks: New file.
40459         * modules/unilbrk/u16-possible-linebreaks: New file.
40460         * modules/unilbrk/u32-possible-linebreaks: New file.
40461         * modules/unilbrk/ulc-common: New file.
40462         * modules/unilbrk/ulc-possible-linebreaks: New file.
40463         * modules/unilbrk/u8-width-linebreaks: New file.
40464         * modules/unilbrk/u16-width-linebreaks: New file.
40465         * modules/unilbrk/u32-width-linebreaks: New file.
40466         * modules/unilbrk/ulc-width-linebreaks: New file.
40467         * lib/linebreak.h: Remove file.
40468         * lib/linebreak.c: Remove file.
40469         * m4/linebreak.m4: Remove file.
40470         * modules/linebreak: Remove file.
40471         * NEWS: Mention the changes.
40472
40473 2008-05-09  Eric Blake  <ebb9@byu.net>
40474
40475         Add xmemdup0.
40476         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40477         implementation.
40478         * lib/xmalloc.c (xmemdup0): New C implementation.
40479
40480 2008-05-08  Bruno Haible  <bruno@clisp.org>
40481
40482         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40483
40484 2008-05-07  Eric Blake  <ebb9@byu.net>
40485
40486         Support cross-compilation of <wctype.h>.
40487         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40488         AC_CACHE_CHECK.
40489
40490 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40491
40492         * build-aux/vc-list-files: Add support for bzr.
40493
40494 2008-05-03  Jim Meyering  <meyering@redhat.com>
40495
40496         avoid failed assertion with tight malloc
40497         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40498
40499 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40500
40501         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40502         are needed from arpa/inet.h.
40503         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40504         Reported by Bruno Haible.
40505
40506 2008-05-02  Jim Meyering  <meyering@redhat.com>
40507
40508         avoid compilation error on FreeBSD 6
40509         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40510
40511 2008-05-01  Jim Meyering  <meyering@redhat.com>
40512
40513         useless-if-before-free: correct --help's exit status description
40514         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40515         for one or more matches, etc.  Reported by Bruno Haible.
40516
40517         vc-list-files: make the stand-alone gnulib test work
40518         * modules/vc-list-files-tests (configure.ac):
40519         Define and AC_SUBST abs_aux_dir.
40520         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
40521         $(abs_top_srcdir) to each script and having each of them
40522         duplicate the work of setting PATH, set PATH here, using
40523         the new variable, abs_aux_dir instead.
40524         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
40525         * tests/test-vc-list-files-git.sh: Likewise.
40526         Reported by Bruno Haible.
40527
40528 2008-05-01  Bruno Haible  <bruno@clisp.org>
40529
40530         * lib/getndelim2.c (getndelim2): Fix newsize computation during
40531         reallocation. Rename 'done' to 'found_delimiter'.
40532
40533 2008-05-01  Jim Meyering  <meyering@redhat.com>
40534
40535         vc-list-files: accommodate /bin/sh like the one from Solaris 10
40536         * build-aux/vc-list-files: Use `...`, not $(...).
40537
40538 2008-04-30  Jim Meyering  <meyering@redhat.com>
40539
40540         add tests for vc-list-files
40541         * modules/vc-list-files-tests: New module.
40542         * tests/test-vc-list-files-cvs.sh: New file.
40543         * tests/test-vc-list-files-git.sh: New file.
40544
40545         avoid a warning from gcc
40546         * lib/getndelim2.c (IF_LINT): Define.
40547         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
40548
40549         vc-list-files: work properly with build-aux/cvsu, too
40550         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
40551         to all cvs-based clauses.
40552
40553         vc-list-files: work properly in the CVS+awk case, too
40554         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
40555
40556         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
40557         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
40558         take more than one file argument, so .  Add quotes, just in case $dir
40559         ever contains a shell meta-character.  Prompted by Soren Hansen in
40560         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
40561
40562 2008-04-29  Eric Blake  <ebb9@byu.net>
40563
40564         Optimize getndelim2 to use block operations when possible.
40565         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
40566         freadseek, and memchr2.
40567         * lib/getndelim2.c (getndelim2): Use them for block reads.
40568
40569 2008-04-29  Bruno Haible  <bruno@clisp.org>
40570
40571         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
40572         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40573         * modules/inet_ntop (Depends-on): Add extensions.
40574         * modules/inet_pton (Depends-on): Likewise.
40575         Reported by Simon Josefsson.
40576
40577 2008-04-29  Jim Meyering  <meyering@redhat.com>
40578
40579         When the is more than one match in a block, match all of them.
40580         * build-aux/useless-if-before-free: Iterate through each block
40581         until there are no more matches.
40582
40583         Fix broken useless-if-before-free script.
40584         * build-aux/useless-if-before-free: Fix typo: missing "?" after
40585         the expression to match cast of argument to free-like function.
40586
40587 2008-04-29  Eric Blake  <ebb9@byu.net>
40588
40589         Use new header.
40590         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
40591
40592 2008-04-29  Jim Meyering  <meyering@redhat.com>
40593
40594         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
40595         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
40596         by gnulib to exist and to declare e.g., inet_ntop.
40597         Don't include "inet_ntop.h", now removed.
40598
40599         * m4/arpa_inet_h.m4: Remove trailing blanks.
40600
40601 2008-04-29  Eric Blake  <ebb9@byu.net>
40602
40603         Silence valgrind on safe reads beyond potential array bounds.
40604         * lib/rawmemchr.valgrind: New file.
40605         * lib/strchrnul.valgrind: Likewise.
40606         * modules/rawmemchr (Files): Distribute new file.
40607         * modules/strchrnul (Files): Likewise.
40608         Suggested by Bruno Haible.
40609
40610 2008-04-29  Bruno Haible  <bruno@clisp.org>
40611
40612         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
40613         (inet_ntop, inet_pton): Change portability warning's wording.
40614         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
40615         Invoke gl_CHECK_NEXT_HEADERS.
40616         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
40617         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
40618         set ARPA_INET_H.
40619         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40620         * modules/arpa_inet (Description): No longer only for systems that
40621         lack it.
40622         (Depends-on): Add include_next.
40623         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
40624         HAVE_ARPA_INET_H.
40625
40626 2008-04-29  Jim Meyering  <meyering@redhat.com>
40627
40628         * modules/mkdir (License): Re-license as LGPLv2+.
40629
40630 2008-04-29  Bruno Haible  <bruno@clisp.org>
40631
40632         * modules/rawmemchr (Maintainer): Set to Eric.
40633         * modules/strchrnul (Maintainer): Likewise.
40634
40635 2008-04-29  Simon Josefsson  <simon@josefsson.org>
40636
40637         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
40638         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
40639
40640         * modules/arpa_inet (arpa/inet.h): Use them.
40641
40642 2008-04-28  Eric Blake  <ebb9@byu.net>
40643
40644         Test getndelim2.
40645         * modules/getndelim2-tests: New file.
40646         * tests/test-getndelim2.c: Likewise.
40647         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
40648         stream.
40649         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
40650
40651         * MODULES.html.sh: Document new module.
40652
40653 2008-04-20  Bruno Haible  <bruno@clisp.org>
40654
40655         * lib/c-stack.c (die): Use raise.
40656         * modules/c-stack (Depends-on): Add raise.
40657
40658 2008-04-28  Bruno Haible  <bruno@clisp.org>
40659
40660         Expect rpmatch to be declared.
40661         * lib/yesno.c (rpmatch): Remove declaration.
40662
40663         Declare rpmatch.
40664         * lib/stdlib.in.h (rpmatch): New declaration.
40665         * lib/rpmatch.c: Include <stdlib.h> first.
40666         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
40667         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
40668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
40669         HAVE_RPMATCH.
40670         * modules/rpmatch (Depends-on): Add stdlib, extensions.
40671         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40672         (Include): Set to <stdlib.h>.
40673         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
40674         HAVE_RPMATCH.
40675         * NEWS: Document the change.
40676
40677 2008-04-28  Bruno Haible  <bruno@clisp.org>
40678
40679         Change rpmatch to use nl_langinfo when appropriate.
40680         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
40681         (N_): New macro.
40682         (localized_pattern): New function/macro.
40683         (try): Remove match, nomatch arguments. Copy the pattern into safe
40684         memory before caching it.
40685         (rpmatch): Use localized_pattern. Add translator comments.
40686         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
40687         Suggested by Eric Blake.
40688         * modules/rpmatch (Depends-on): Add stdbool.
40689
40690 2008-04-28  Eric Blake  <ebb9@byu.net>
40691
40692         Add rawmemchr module, matching glibc.
40693         * modules/string (Makefile.am): New indicator.
40694         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40695         * lib/string.in.h (rawmemchr): Declare when appropriate.
40696         * modules/rawmemchr: New file.
40697         * m4/rawmemchr.m4: Likewise.
40698         * lib/rawmemchr.c: Likewise.
40699         * modules/rawmemchr-tests: Likewise.
40700         * tests/test-rawmemchr.c: Likewise.
40701         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40702         module.
40703         * modules/strchrnul (Depends-on): Add rawmemchr.
40704         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40705
40706         Whitespace cleanup.
40707         * tests/test-strchrnul.c: Reindent.
40708         * lib/strchrnul.c: Likewise.
40709
40710         Optimize and test strchrnul.
40711         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40712         * modules/strchrnul-tests: New file.
40713         * tests/test-strchrnul.c: Likewise.
40714
40715         Remove intprops dependency.
40716         * modules/memchr (Depends-on): Remove intprops.
40717         * modules/memrchr (Depends-on): Likewise.
40718         * modules/memchr2 (Depends-on): Likewise.
40719         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40720         * lib/memrchr.c (__memrchr): Likewise.
40721         * lib/memrchr2.c (memchr2): Likewise.
40722         Reported by Simon Josefsson.
40723
40724 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40725
40726         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40727         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40728
40729 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40730
40731         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40732
40733         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40734
40735         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40736
40737         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40738         declarations.
40739         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40740
40741         * m4/inet_pton.m4: Don't check for header files.
40742
40743         * m4/inet_ntop.m4: Don't check for header files.
40744
40745 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40746
40747         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40748         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40749         trigger for cygwin).
40750         Reported by Bruno Haible  <bruno@clisp.org>.
40751
40752 2008-04-28  Bruno Haible  <bruno@clisp.org>
40753
40754         * doc/posix-functions/strdup.texi: Mention mingw problem.
40755
40756 2008-04-27  Bruno Haible  <bruno@clisp.org>
40757
40758         * modules/stat-time-tests (Depends-on): Add sleep.
40759         * tests/test-stat-time.c (force_unlink): New function.
40760         (cleanup): Use it.
40761         (test_mtime): Remove the ctime related tests.
40762         (test_ctime): New function, containing the ctime related tests.
40763         (main): Call test_ctime, except on native Windows platforms.
40764
40765 2008-04-27  Bruno Haible  <bruno@clisp.org>
40766
40767         * lib/rpmatch.c (rpmatch): Add some comments.
40768         Reported by James Youngman <jay@gnu.org>.
40769
40770 2008-04-27  Bruno Haible  <bruno@clisp.org>
40771
40772         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40773         quiet NaNs.
40774
40775 2008-04-27  Bruno Haible  <bruno@clisp.org>
40776
40777         Make test-yesno.sh work on mingw.
40778         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40779         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40780         (main): Set stdin to binary mode.
40781         * modules/yesno-tests (Depends-on): Add binary-io.
40782
40783 2008-04-27  Bruno Haible  <bruno@clisp.org>
40784
40785         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40786         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40787         argument that lie outside the IEEE 854 domain.
40788         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40789         (gl_ISFINITE): Use it.
40790         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40791
40792 2008-04-27  Bruno Haible  <bruno@clisp.org>
40793
40794         Allow local renaming in config.h.
40795         * lib/memrchr.c (memrchr): Don't undefine outside libc.
40796
40797 2008-04-27  Bruno Haible  <bruno@clisp.org>
40798
40799         * lib/memchr.c (__memchr): Change type of 'i'.
40800         * lib/memchr2.c (memchr2): Likewise.
40801
40802 2008-04-26  Eric Blake  <ebb9@byu.net>
40803         and Bruno Haible  <bruno@clisp.org>
40804
40805         Optimize and test memrchr.
40806         * modules/memrchr (Depends-on): Add intprops.
40807         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
40808         * modules/memrchr-tests: New file.
40809         * tests/test-memrchr.c: New file.
40810
40811 2008-04-26  Bruno Haible  <bruno@clisp.org>
40812
40813         Add tentative support for DragonFly BSD.
40814         * lib/stdio-impl.h: Add macros for DragonFly BSD.
40815         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
40816         fp.
40817         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40818         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
40819         * lib/fpurge.c (fpurge): Likewise.
40820         * lib/freadable.c (freaadable): Likewise.
40821         * lib/freadahead.c (freadahead): Likewise.
40822         * lib/freading.c (freading): Likewise.
40823         * lib/freadptr.c (freadptr): Likewise.
40824         * lib/freadseek.c (freadptrinc): Likewise.
40825         * lib/fseeko.c (fseeko): Likewise.
40826         * lib/fseterr.c (fseterr): Likewise.
40827         * lib/fwritable.c (fwritable): Likewise.
40828         * lib/fwriting.c (fwriting): Likewise.
40829
40830 2008-04-26  Bruno Haible  <bruno@clisp.org>
40831
40832         * lib/stdio-impl.h: New file.
40833         * lib/fbufmode.c: Include stdio-impl.h.
40834         (fbufmode): Use fp_, remove redundant #defines.
40835         * lib/fflush.c: Include stdio-impl.h.
40836         (clear_ungetc_buffer): Remove redundant #defines.
40837         * lib/fpurge.c: Include stdio-impl.h.
40838         (fpurge): Remove redundant #defines.
40839         * lib/freadable.c: Include stdio-impl.h.
40840         (freadable): Remove redundant #defines.
40841         * lib/freadahead.c: Include stdio-impl.h.
40842         (freadahead): Remove redundant #defines.
40843         * lib/freading.c: Include stdio-impl.h.
40844         (freading): Remove redundant #defines.
40845         * lib/freadptr.c: Include stdio-impl.h.
40846         (freadptr): Remove redundant #defines.
40847         * lib/freadseek.c: Include stdio-impl.h.
40848         (freadptrinc): Remove redundant #defines.
40849         * lib/fseeko.c: Include stdio-impl.h.
40850         (rpl_fseeko): Remove redundant #defines.
40851         * lib/fseterr.c: Include stdio-impl.h.
40852         (fseterr): Remove redundant #defines.
40853         * lib/fwritable.c: Include stdio-impl.h.
40854         (fwritable: Remove redundant #defines.
40855         * lib/fwriting.c: Include stdio-impl.h.
40856         (fwriting): Remove redundant #defines.
40857         * modules/fbufmode (Files): Add lib/stdio-impl.h.
40858         * modules/fflush (Files): Likewise.
40859         * modules/fpurge (Files): Likewise.
40860         * modules/freadable (Files): Likewise.
40861         * modules/freadahead (Files): Likewise.
40862         * modules/freading (Files): Likewise.
40863         * modules/freadptr (Files): Likewise.
40864         * modules/freadseek (Files): Likewise.
40865         * modules/fseeko (Files): Likewise.
40866         * modules/fseterr (Files): Likewise.
40867         * modules/fwritable (Files): Likewise.
40868         * modules/fwriting (Files): Likewise.
40869
40870 2008-04-26  Bruno Haible  <bruno@clisp.org>
40871
40872         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40873         restore_seek_optimization, update_fpos_cache): New functions, extracted
40874         from rpl_fflush.
40875         (rpl_fflush): Use them.
40876         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
40877         (gl_REPLACE_FFLUSH): Use it.
40878
40879 2008-04-26  Bruno Haible  <bruno@clisp.org>
40880
40881         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
40882         on Solaris.
40883         * tests/test-xstrtoimax.sh: Likewise.
40884         * tests/test-xstrtoumax.sh: Likewise.
40885         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40886
40887 2008-04-26  Bruno Haible  <bruno@clisp.org>
40888
40889         * modules/memchr-tests: New file.
40890         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
40891
40892 2008-04-26  Eric Blake  <ebb9@byu.net>
40893             Bruno Haible  <bruno@clisp.org>
40894
40895         * lib/memchr.c: Include intprops.h.
40896         (__memchr): Optimize parallel detection of matching bytes. Rename local
40897         variables. Add explanatory comments.
40898
40899 2008-04-26  Bruno Haible  <bruno@clisp.org>
40900
40901         Fix module 'memchr', broken since 2000-10-28.
40902         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
40903
40904 2008-04-26  Bruno Haible  <bruno@clisp.org>
40905
40906         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
40907         comments.
40908
40909 2008-04-25  Eric Blake  <ebb9@byu.net>
40910
40911         Use native fstatat on cygwin 1.7.0.
40912         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
40913         first.
40914
40915 2008-04-23  Eric Blake  <ebb9@byu.net>
40916
40917         Improve memchr2 performance.
40918         * lib/memchr2.c (memchr2): Further optimize parallel detection of
40919         NUL bytes.
40920         * modules/memchr2 (Depends-on): Use intprops.h.
40921
40922 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40923
40924         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
40925         an inline function instead of a CPP macro.  Patch by Ben Pfaff
40926         <blp@cs.stanford.edu>.
40927
40928 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40929
40930         * lib/arpa_inet.in.h: New file.
40931
40932         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
40933         (Makefile.am): Sed in substitute header file.
40934
40935         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
40936         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
40937
40938         * modules/inet_ntop (configure.ac): Use
40939         gl_ARPA_INET_MODULE_INDICATOR.
40940
40941         * modules/inet_pton (configure.ac): Use
40942         gl_ARPA_INET_MODULE_INDICATOR.
40943
40944 2008-04-22  Jim Meyering  <meyering@redhat.com>
40945
40946         * modules/verify (License): Re-license as LGPLv2+.
40947
40948 2008-04-22  Simon Josefsson  <simon@josefsson.org>
40949
40950         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
40951         parameter to void* as per POSIX standard (MinGW uses char*).
40952
40953 2008-04-21  Bruno Haible  <bruno@clisp.org>
40954
40955         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40956         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
40957         Define to replacements if REPLACE_ISWCNTRL is 1.
40958         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
40959         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
40960         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
40961         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
40962         what it fixes.
40963         * doc/posix-functions/iswalpha.texi: Likewise.
40964         * doc/posix-functions/iswblank.texi: Likewise.
40965         * doc/posix-functions/iswcntrl.texi: Likewise.
40966         * doc/posix-functions/iswdigit.texi: Likewise.
40967         * doc/posix-functions/iswgraph.texi: Likewise.
40968         * doc/posix-functions/iswlower.texi: Likewise.
40969         * doc/posix-functions/iswprint.texi: Likewise.
40970         * doc/posix-functions/iswpunct.texi: Likewise.
40971         * doc/posix-functions/iswspace.texi: Likewise.
40972         * doc/posix-functions/iswupper.texi: Likewise.
40973         * doc/posix-functions/iswxdigit.texi: Likewise.
40974         Reported by Alain Guibert.
40975
40976 2008-04-21  Bruno Haible  <bruno@clisp.org>
40977
40978         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
40979         Patch by Alain Guibert.
40980
40981 2008-04-21  Bruno Haible  <bruno@clisp.org>
40982
40983         Fix test failures on mingw.
40984         * tests/test-xstrtol.c (print_no_progname): New function.
40985         (main): Install it in error_print_progname hook.
40986         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
40987         * tests/test-xstrtoimax.sh: Likewise.
40988         * tests/test-xstrtoumax.sh: Likewise.
40989
40990 2008-04-21  Bruno Haible  <bruno@clisp.org>
40991
40992         Fix test failure on mingw.
40993         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
40994
40995 2008-04-21  Bruno Haible  <bruno@clisp.org>
40996
40997         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
40998         Actually assign a value.
40999
41000 2008-04-20  Bruno Haible  <bruno@clisp.org>
41001
41002         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41003         take 2.
41004         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41005         'canonicalize-lgpl' module is also used.
41006         * lib/canonicalize-lgpl.c: Undo last change.
41007         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41008
41009 2008-04-20  Bruno Haible  <bruno@clisp.org>
41010
41011         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41012         config.h. Provide _mkdir based fallback for mingw.
41013         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41014         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41015         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41016         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41017         rather than defining mkdir in config.h.
41018         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41019         (gl_SYS_STAT_H_DEFAULTS): New macro.
41020         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41021         HAVE_IO_H any more.
41022         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41023         HAVE_DECL_MKDIR and HAVE_IO_H.
41024
41025 2008-04-20  Bruno Haible  <bruno@clisp.org>
41026
41027         * lib/isapipe.c: Port to native Windows platforms.
41028
41029 2008-04-20  Bruno Haible  <bruno@clisp.org>
41030
41031         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41032
41033 2008-04-21  Eric Blake  <ebb9@byu.net>
41034
41035         Work around preprocessors that don't handle UINTMAX_MAX.
41036         * lib/memchr2.c (memchr2): Avoid embedded #if.
41037         Reported by Alain Guibert, fix suggested by Bruno Haible.
41038
41039 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41040
41041         * doc/posix-functions/strftime.texi (strftime): Explain better
41042         Windows incompatibility.  Suggested by Micah Cowan
41043         <micah@cowan.name>.
41044
41045 2008-04-20  Bruno Haible  <bruno@clisp.org>
41046
41047         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41048         unistr/u8-mblen.
41049
41050 2008-04-20  Bruno Haible  <bruno@clisp.org>
41051
41052         Fix test failure on platforms with non-GNU iconv.
41053         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41054         (U_TO_U8): Use it, rather than u16_to_u8.
41055         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41056         units at the end of the input string.
41057         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41058
41059 2008-04-20  Bruno Haible  <bruno@clisp.org>
41060
41061         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41062         when the resulting length is 0.
41063         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41064
41065 2008-04-20  Bruno Haible  <bruno@clisp.org>
41066
41067         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41068         works.
41069         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41070
41071 2008-04-20  Bruno Haible  <bruno@clisp.org>
41072
41073         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41074         * modules/tsearch-tests (configure.ac): Test for initstate function.
41075
41076 2008-04-20  Bruno Haible  <bruno@clisp.org>
41077
41078         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41079         for nlink_t if missing.
41080         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41081
41082 2008-04-19  Bruno Haible  <bruno@clisp.org>
41083
41084         Work around snprintf bug on Linux libc5.
41085         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41086         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41087         gl_SNPRINTF_SIZE1.
41088         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41089         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41090         that test failed.
41091         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41092         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41093         * modules/snprintf (Files): Add m4/printf.m4.
41094         * modules/vsnprintf (Files): Likewise.
41095         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41096         * doc/posix-functions/vsnprintf.texi: Likewise.
41097
41098 2008-04-19  Bruno Haible  <bruno@clisp.org>
41099
41100         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41101         from 0.0058 to less than 10^-7.
41102
41103 2008-04-19  Bruno Haible  <bruno@clisp.org>
41104
41105         Fix rounding when a precision is given.
41106         * lib/vasnprintf.c (is_borderline): New function.
41107         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41108         9...9x.
41109         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41110         %e, %g.
41111         * tests/test-vasprintf-posix.c (test_function): Likewise.
41112         * tests/test-snprintf-posix.h (test_function): Likewise.
41113         * tests/test-sprintf-posix.h (test_function): Likewise.
41114         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41115         * tests/test-printf-posix.h (test_function): Likewise.
41116         * tests/test-printf-posix.output: Update.
41117         Reported by John Darrington <john@darrington.wattle.id.au> via
41118         Ben Pfaff <blp@cs.stanford.edu>.
41119
41120 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41121
41122         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41123         Suggested by Bruno Haible <bruno@clisp.org>.
41124
41125 2008-04-17  Bruno Haible  <bruno@clisp.org>
41126
41127         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41128         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41129         implementation.
41130         Patch by Bruce Merry <bmerry@gmail.com>.
41131
41132 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41133
41134         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41135         doesn't work under Windows.
41136
41137 2008-04-16  Bruno Haible  <bruno@clisp.org>
41138
41139         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41140         New macros.
41141         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41142         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41143         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41144         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41145         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41146         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41147         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41148         macros.
41149         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41150         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41151         Northern Sotho, Uighur.
41152
41153 2008-04-16  Bruno Haible  <bruno@clisp.org>
41154
41155         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41156         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41157         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41158         Reported by Daniel Bergström <daniel@octocode.com>.
41159
41160 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41161             Bruno Haible  <bruno@clisp.org>
41162
41163         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41164         function.
41165         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41166         New functions, mostly extracted from gl_locale_name_default.
41167         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41168
41169 2008-04-16  Eric Blake  <ebb9@byu.net>
41170
41171         Adjust strtod detection to catch glibc 2.7 bug.
41172         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41173         Reported by John Gatewood Ham.
41174
41175 2008-04-16  Bruno Haible  <bruno@clisp.org>
41176
41177         Add tentative support for Linux libc5.
41178         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41179         * lib/fpurge.c (fpurge): Likewise.
41180         * lib/freadable.c (freadable): Likewise.
41181         * lib/freadahead.c (freadahead): Likewise.
41182         * lib/freading.c (freading): Likewise.
41183         * lib/freadptr.c (freadptr): Likewise.
41184         * lib/freadseek.c (freadptrinc): Likewise.
41185         * lib/fseeko.c (rpl_fseeko): Likewise.
41186         * lib/fseterr.c (fseterr): Likewise.
41187         * lib/fwritable.c (fwritable): Likewise.
41188         * lib/fwriting.c (fwriting): Likewise.
41189         Reported by Alain Guibert <alguibert+bts@free.fr>.
41190
41191 2008-04-15  Bruno Haible  <bruno@clisp.org>
41192
41193         * modules/mathl (configure.ac): Define module indicator.
41194
41195 2008-04-15  Bruno Haible  <bruno@clisp.org>
41196
41197         * lib/logl.c (logl): Remove unused variables.
41198
41199 2008-04-15  Bruno Haible  <bruno@clisp.org>
41200
41201         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41202         fails.
41203
41204 2008-04-15  Bruno Haible  <bruno@clisp.org>
41205
41206         * lib/trim.c (trim2): Fix argument of isspace() macro.
41207
41208 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41209
41210         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41211         to 0.
41212         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41213
41214 2008-04-14  Bruno Haible  <bruno@clisp.org>
41215
41216         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41217         AC_LANG_PROGRAM argument.
41218         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41219         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41221         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41222         * m4/math_h.m4 (gl_MATH_H): Likewise.
41223         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41224         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41225         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41226         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41227         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41228         * m4/regex.m4 (gl_REGEX): Likewise.
41229         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41230         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41231         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41232         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41233         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41234         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41235         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41236         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41237
41238 2008-04-14  Jim Meyering  <meyering@redhat.com>
41239
41240         test-strtod: fix typos: s/abs/fabs/
41241         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41242
41243 2008-04-13  Bruno Haible  <bruno@clisp.org>
41244
41245         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41246         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41247         module is also used and while not building the reloc-wrapper.
41248
41249 2008-04-13  Bruno Haible  <bruno@clisp.org>
41250
41251         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41252
41253 2008-04-13  Bruno Haible  <bruno@clisp.org>
41254
41255         Fix AIX compilation failure introduced on 2008-04-02.
41256         * tests/test-frexp.c (exp): Undefine before redefining.
41257         * tests/test-frexpl.c (exp): Likewise.
41258
41259 2008-04-13  Bruno Haible  <bruno@clisp.org>
41260
41261         Work around a HP-UX stdio bug.
41262         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41263         * tests/test-ftello.c (main): Likewise.
41264         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41265         * doc/posix-functions/ftello.texi: Likewise.
41266
41267 2008-04-13  Bruno Haible  <bruno@clisp.org>
41268
41269         Make test-signbit pass on HP-UX/hppa.
41270         * tests/test-signbit.c (minus_zerol): New variable.
41271         (test_signbitl): Use it.
41272
41273 2008-04-13  Bruno Haible  <bruno@clisp.org>
41274
41275         Make truncl work on OSF/1 4.0.
41276         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41277         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41278         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41280         HAVE_DECL_TRUNCL.
41281         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41282         HAVE_DECL_TRUNCL.
41283         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41284
41285 2008-04-13  Bruno Haible  <bruno@clisp.org>
41286
41287         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41288
41289 2008-04-13  Bruno Haible  <bruno@clisp.org>
41290
41291         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41292         expression, so as to avoid HP-UX 11 cc compiler bug.
41293
41294 2008-04-13  Bruno Haible  <bruno@clisp.org>
41295
41296         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41297
41298 2008-04-13  Bruno Haible  <bruno@clisp.org>
41299
41300         * lib/git-merge-changelog.c: Remove empty declaration outside of
41301         functions.
41302
41303 2008-04-13  Bruno Haible  <bruno@clisp.org>
41304
41305         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41306
41307 2008-04-13  Bruno Haible  <bruno@clisp.org>
41308
41309         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41310         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41312         also if it exists but lacks definitions of the SHUT_* macros.
41313         * modules/sys_socket (Description): Update.
41314         Reported by Elbert Pol <e.pol@chello.nl>.
41315
41316 2008-04-13  Bruno Haible  <bruno@clisp.org>
41317
41318         * lib/localcharset.c (OS2): Don't redefine if already defined.
41319         Reported by Elbert Pol <e.pol@chello.nl>.
41320
41321 2008-04-13  Bruno Haible  <bruno@clisp.org>
41322
41323         * lib/binary-io.h [__EMX__]: Include <io.h>.
41324         Reported by Elbert Pol <e.pol@chello.nl>.
41325
41326 2008-04-12  Bruno Haible  <bruno@clisp.org>
41327
41328         * lib/fpucw.h: Enable the definitions also for x86_64.
41329         Needed for NetBSD/x86_64.
41330         Reported by Thomas Klausner <tk@giga.or.at>.
41331
41332 2008-04-12  Bruno Haible  <bruno@clisp.org>
41333
41334         * tests/test-strtod.c: Include isnand.h.
41335         (main): Use isnand instead of isnan.
41336         Reported by Jim Meyering.
41337
41338 2008-04-12  Bruno Haible  <bruno@clisp.org>
41339
41340         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41341         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41342
41343 2008-04-12  Jim Meyering  <meyering@redhat.com>
41344
41345         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41346
41347 2008-04-12  Bruno Haible  <bruno@clisp.org>
41348
41349         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41350         Reported by Elbert Pol <e.pol@chello.nl>.
41351
41352 2008-04-12  Eric Blake  <ebb9@byu.net>
41353
41354         Work around Solaris 10 math.h bug.
41355         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41356         (gl_MATH_H_DEFAULTS): Set up default.
41357         * modules/math (Makefile.am): Replace new indicators.
41358         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41359         * tests/test-math.c (main): Test this.
41360         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41361         * doc/posix-headers/math.texi (math.h): Mention bug.
41362         Reported by Nelson H. F. Beebe and Jim Meyering.
41363
41364 2008-04-11  Bruno Haible  <bruno@clisp.org>
41365
41366         Adapt to future versions of Apple GCC.
41367         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41368         Reported by Peter O'Gorman <peter@pogma.com>.
41369
41370 2008-04-11  Bruno Haible  <bruno@clisp.org>
41371
41372         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41373
41374 2008-04-11  Bruno Haible  <bruno@clisp.org>
41375
41376         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41377
41378         * modules/getaddrinfo-tests (Makefile.am): Define
41379         test_getaddrinfo_LDADD.
41380
41381 2008-04-11  Bruno Haible  <bruno@clisp.org>
41382
41383         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41384         (init): Fix syntax error.
41385         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41386         is declared.
41387
41388 2008-04-11  Bruno Haible  <bruno@clisp.org>
41389
41390         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41391         * modules/glob (Depends-on): Add stdbool.
41392
41393 2008-04-11  Bruno Haible  <bruno@clisp.org>
41394
41395         * lib/trim.c: Include <string.h>.
41396
41397 2008-04-11  Eric Blake  <ebb9@byu.net>
41398
41399         Avoid compile failure on OS/2.
41400         * lib/regex_internal.h (internal_function): Disable optimization
41401         on OS/2 (__EMX__), where it caused compiler error.
41402         Reported by Elbert Pol.
41403
41404 2008-04-11  Bruno Haible  <bruno@clisp.org>
41405
41406         Flush the standard error stream before aborting. Needed on mingw.
41407         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41408         * tests/test-array_list.c (ASSERT): Likewise.
41409         * tests/test-array_oset.c (ASSERT): Likewise.
41410         * tests/test-avltree_list.c (ASSERT): Likewise.
41411         * tests/test-avltree_oset.c (ASSERT): Likewise.
41412         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41413         * tests/test-binary-io.c (ASSERT): Likewise.
41414         * tests/test-byteswap.c (ASSERT): Likewise.
41415         * tests/test-c-ctype.c (ASSERT): Likewise.
41416         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41417         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41418         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41419         * tests/test-c-strstr.c (ASSERT): Likewise.
41420         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41421         * tests/test-canonicalize.c (ASSERT): Likewise.
41422         * tests/test-carray_list.c (ASSERT): Likewise.
41423         * tests/test-ceilf1.c (ASSERT): Likewise.
41424         * tests/test-ceilf2.c (ASSERT): Likewise.
41425         * tests/test-ceill.c (ASSERT): Likewise.
41426         * tests/test-count-one-bits.c (ASSERT): Likewise.
41427         * tests/test-fbufmode.c (ASSERT): Likewise.
41428         * tests/test-fflush2.c (ASSERT): Likewise.
41429         * tests/test-floorf1.c (ASSERT): Likewise.
41430         * tests/test-floorf2.c (ASSERT): Likewise.
41431         * tests/test-floorl.c (ASSERT): Likewise.
41432         * tests/test-fopen.c (ASSERT): Likewise.
41433         * tests/test-fpending.c (ASSERT): Likewise.
41434         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41435         * tests/test-fpurge.c (ASSERT): Likewise.
41436         * tests/test-freadable.c (ASSERT): Likewise.
41437         * tests/test-freadahead.c (ASSERT): Likewise.
41438         * tests/test-freading.c (ASSERT): Likewise.
41439         * tests/test-freadptr.c (ASSERT): Likewise.
41440         * tests/test-freadptr2.c (ASSERT): Likewise.
41441         * tests/test-freadseek.c (ASSERT): Likewise.
41442         * tests/test-freopen.c (ASSERT): Likewise.
41443         * tests/test-frexp.c (ASSERT): Likewise.
41444         * tests/test-frexpl.c (ASSERT): Likewise.
41445         * tests/test-fseek.c (ASSERT): Likewise.
41446         * tests/test-fseeko.c (ASSERT): Likewise.
41447         * tests/test-fstrcmp.c (ASSERT): Likewise.
41448         * tests/test-ftell.c (ASSERT): Likewise.
41449         * tests/test-ftello.c (ASSERT): Likewise.
41450         * tests/test-func.c (ASSERT): Likewise.
41451         * tests/test-fwritable.c (ASSERT): Likewise.
41452         * tests/test-fwriting.c (ASSERT): Likewise.
41453         * tests/test-getdelim.c (ASSERT): Likewise.
41454         * tests/test-getline.c (ASSERT): Likewise.
41455         * tests/test-i-ring.c (ASSERT): Likewise.
41456         * tests/test-iconv-utf.c (ASSERT): Likewise.
41457         * tests/test-iconv.c (ASSERT): Likewise.
41458         * tests/test-isfinite.c (ASSERT): Likewise.
41459         * tests/test-isnand.c (ASSERT): Likewise.
41460         * tests/test-isnanf.c (ASSERT): Likewise.
41461         * tests/test-isnanl.h (ASSERT): Likewise.
41462         * tests/test-ldexpl.c (ASSERT): Likewise.
41463         * tests/test-linked_list.c (ASSERT): Likewise.
41464         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41465         * tests/test-localename.c (ASSERT): Likewise.
41466         * tests/test-lseek.c (ASSERT): Likewise.
41467         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41468         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41469         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41470         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41471         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41472         * tests/test-mbschr.c (ASSERT): Likewise.
41473         * tests/test-mbscspn.c (ASSERT): Likewise.
41474         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41475         * tests/test-mbspbrk.c (ASSERT): Likewise.
41476         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41477         * tests/test-mbsrchr.c (ASSERT): Likewise.
41478         * tests/test-mbsspn.c (ASSERT): Likewise.
41479         * tests/test-mbsstr1.c (ASSERT): Likewise.
41480         * tests/test-mbsstr2.c (ASSERT): Likewise.
41481         * tests/test-mbsstr3.c (ASSERT): Likewise.
41482         * tests/test-memchr2.c (ASSERT): Likewise.
41483         * tests/test-memmem.c (ASSERT): Likewise.
41484         * tests/test-open.c (ASSERT): Likewise.
41485         * tests/test-printf-frexp.c (ASSERT): Likewise.
41486         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41487         * tests/test-printf-posix.c (ASSERT): Likewise.
41488         * tests/test-quotearg.c (ASSERT): Likewise.
41489         * tests/test-rbtree_list.c (ASSERT): Likewise.
41490         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41491         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41492         * tests/test-round1.c (ASSERT): Likewise.
41493         * tests/test-roundf1.c (ASSERT): Likewise.
41494         * tests/test-roundl.c (ASSERT): Likewise.
41495         * tests/test-signbit.c (ASSERT): Likewise.
41496         * tests/test-sleep.c (ASSERT): Likewise.
41497         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41498         * tests/test-snprintf.c (ASSERT): Likewise.
41499         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41500         * tests/test-stat-time.c (ASSERT): Likewise.
41501         * tests/test-strcasestr.c (ASSERT): Likewise.
41502         * tests/test-strerror.c (ASSERT): Likewise.
41503         * tests/test-striconv.c (ASSERT): Likewise.
41504         * tests/test-striconveh.c (ASSERT): Likewise.
41505         * tests/test-striconveha.c (ASSERT): Likewise.
41506         * tests/test-strsignal.c (ASSERT): Likewise.
41507         * tests/test-strstr.c (ASSERT): Likewise.
41508         * tests/test-strtod.c (ASSERT): Likewise.
41509         * tests/test-trunc1.c (ASSERT): Likewise.
41510         * tests/test-trunc2.c (ASSERT): Likewise.
41511         * tests/test-truncf1.c (ASSERT): Likewise.
41512         * tests/test-truncf2.c (ASSERT): Likewise.
41513         * tests/test-truncl.c (ASSERT): Likewise.
41514         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41515         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41516         * tests/test-vasnprintf.c (ASSERT): Likewise.
41517         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41518         * tests/test-vasprintf.c (ASSERT): Likewise.
41519         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
41520         * tests/test-vprintf-posix.c (ASSERT): Likewise.
41521         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
41522         * tests/test-vsnprintf.c (ASSERT): Likewise.
41523         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
41524         * tests/test-wcwidth.c (ASSERT): Likewise.
41525         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
41526         * tests/test-xprintf-posix.c (ASSERT): Likewise.
41527         * tests/test-xvasprintf.c (ASSERT): Likewise.
41528         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
41529         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
41530         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
41531         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
41532         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
41533         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
41534         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
41535         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
41536         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
41537         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
41538         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
41539         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
41540         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
41541         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
41542         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
41543         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
41544         * tests/unictype/test-block_list.c (ASSERT): Likewise.
41545         * tests/unictype/test-block_of.c (ASSERT): Likewise.
41546         * tests/unictype/test-block_test.c (ASSERT): Likewise.
41547         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
41548         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
41549         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
41550         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
41551         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
41552         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
41553         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
41554         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
41555         * tests/unictype/test-combining.c (ASSERT): Likewise.
41556         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
41557         * tests/unictype/test-digit.c (ASSERT): Likewise.
41558         * tests/unictype/test-mirror.c (ASSERT): Likewise.
41559         * tests/unictype/test-numeric.c (ASSERT): Likewise.
41560         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
41561         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
41562         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
41563         * tests/unictype/test-scripts.c (ASSERT): Likewise.
41564         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
41565         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
41566         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
41567         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
41568         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
41569         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
41570         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
41571         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
41572         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
41573         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
41574         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
41575         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
41576         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41577         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41578         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
41579         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
41580         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
41581         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
41582         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
41583         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
41584         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
41585         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
41586         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
41587         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
41588         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
41589         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
41590         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
41591         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
41592         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
41593         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
41594         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
41595         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
41596         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
41597         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
41598         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
41599         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
41600         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
41601         Reported by Eric Blake.
41602
41603 2008-04-11  Bruno Haible  <bruno@clisp.org>
41604
41605         * lib/wchar.in.h: Tweak comment.
41606
41607 2008-04-11  Bruno Haible  <bruno@clisp.org>
41608
41609         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
41610         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
41611         gl_COMMON.
41612         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
41613
41614 2008-04-11  Bruno Haible  <bruno@clisp.org>
41615
41616         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
41617
41618 2008-04-11  Simon Josefsson  <simon@josefsson.org>
41619
41620         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
41621         of attempting to use non-existing /dev/*random.  Based on patch
41622         from Adam Strzelecki <ono@java.pl> in
41623         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
41624
41625 2008-04-08  Bruno Haible  <bruno@clisp.org>
41626
41627         Add tentative support for emx+gcc.
41628         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
41629         * lib/fpurge.c (fpurge): Likewise.
41630         * lib/freadable.c (freadable): Likewise.
41631         * lib/freadahead.c (freadahead): Likewise.
41632         * lib/freading.c (freading): Likewise.
41633         * lib/freadptr.c (freadptr): Likewise.
41634         * lib/freadseek.c (freadptrinc): Likewise.
41635         * lib/fseeko.c (rpl_fseeko): Likewise.
41636         * lib/fseterr.c (fseterr): Likewise.
41637         * lib/fwritable.c (fwritable): Likewise.
41638         * lib/fwriting.c (fwriting): Likewise.
41639         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
41640
41641 2008-04-09  Eric Blake  <ebb9@byu.net>
41642
41643         Avoid some autoconf warnings.
41644         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
41645         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
41646         * m4/afs.m4 (gl_AFS): Likewise.
41647         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
41648         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
41649         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41650         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
41651         (gl_INTEGER_TYPE_SUFFIX): Likewise.
41652         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
41653         (AC_CHECK_DECLS_ONCE): Likewise.
41654         Rename file...
41655         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
41656         gnulib-tool requires autoconf 2.59 or better.
41657         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
41658
41659 2008-04-08  Eric Blake  <ebb9@byu.net>
41660
41661         Use 'git describe --match' if present (added in git 1.5.5).
41662         * build-aux/git-version-gen: Limit result to tags that match 'v*'
41663         if possible.
41664
41665 2008-04-08  Bruno Haible  <bruno@clisp.org>
41666
41667         Add tentative support for OpenServer.
41668         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
41669         _ptr, _cnt.
41670         * lib/fpurge.c (fpurge): Likewise.
41671         * lib/freadable.c (freadable): Likewise.
41672         * lib/freadahead.c (freadahead): Likewise.
41673         * lib/freading.c (freading): Likewise.
41674         * lib/freadptr.c (freadptr): Likewise.
41675         * lib/freadseek.c (freadptrinc): Likewise.
41676         * lib/fseeko.c (rpl_fseeko): Likewise.
41677         * lib/fseterr.c (fseterr): Likewise.
41678         * lib/fwritable.c (fwritable): Likewise.
41679         * lib/fwriting.c (fwriting): Likewise.
41680         Reported by Roger Cornelius <rac@tenzing.org> and
41681         Brian K. White <brian@aljex.com>.
41682
41683 2008-04-06  Jim Meyering  <meyering@redhat.com>
41684
41685         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
41686
41687 2008-04-06  Bruno Haible  <bruno@clisp.org>
41688
41689         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41690         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41691         * tests/test-printf-posix.sh: Likewise.
41692         * tests/test-vfprintf-posix.sh: Likewise.
41693         * tests/test-vprintf-posix.sh: Likewise.
41694         * tests/test-xprintf-posix.sh: Likewise.
41695
41696 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41697
41698         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41699         hide error from 'ls', needed on OS/2.
41700         Report by Elbert Pol <elbert.pol@gmail.com>.
41701
41702 2008-04-04  Eric Blake  <ebb9@byu.net>
41703
41704         Make test-fseeko.c failures meaningful.
41705         * tests/test-fseeko.c: Print line number on failure.
41706         * tests/test-fseek.c: Likewise.
41707         Reported by Nelson H. F. Beebe.
41708
41709         Improve strtod bug detection check.
41710         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41711         required for Solaris 10.
41712         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41713
41714 2008-04-04  Bruno Haible  <bruno@clisp.org>
41715
41716         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41717         by m4/setenv.m4.
41718
41719 2008-04-03  Eric Blake  <ebb9@byu.net>
41720
41721         Ensure sane .version contents.
41722         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41723         version string.
41724         * build-aux/git-version-gen: Improve documentation.
41725
41726         Make GNU make output nicer.
41727         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41728         MAKECMDGOALS to enforce message for all command line targets.  Set
41729         srcdir for use in maint.mk.
41730
41731         Another maintainer tweak.
41732         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41733         a target that regenerates version.
41734
41735 2008-04-03  Jim Meyering  <meyering@redhat.com>
41736
41737         vc-list-files: don't cause coreutils "make po-check" failure
41738         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41739
41740 2008-04-03  Eric Blake  <ebb9@byu.net>
41741
41742         Allow VPATH usage of vc-list-files.
41743         * build-aux/vc-list-files (scriptversion): Add timestamp.
41744         (options): Add --help, --version, -C.
41745         (CVS): Support installed cvsu.
41746
41747 2008-04-02  Bruno Haible  <bruno@clisp.org>
41748
41749         Avoid some "statement with no effect" warnings from gcc.
41750         * tests/test-wctype.c (main): Explicitly ignore unused values.
41751         Reported by Jim Meyering.
41752
41753 2008-04-02  Jim Meyering  <meyering@redhat.com>
41754
41755         Avoid some warnings from "gcc -Wshadow".
41756         * tests/test-frexp.c (exp): Define to a different identifier.
41757         * tests/test-frexpl.c (exp): Likewise.
41758
41759 2008-04-03  Jim Meyering  <meyering@redhat.com>
41760
41761         bootstrap: remove dangling *.[ch] symlinks from lib
41762         * build-aux/bootstrap [dangling symlink removal]: Move find's
41763         -depth option to precede all others, to avoid a warning.
41764         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41765
41766 2008-04-02  Bruno Haible  <bruno@clisp.org>
41767
41768         Avoid some warnings from "gcc -Wshadow".
41769         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41770         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41771         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41772         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41773         Reported by Jim Meyering.
41774
41775 2008-04-01  Bruno Haible  <bruno@clisp.org>
41776
41777         Fix test to work on IRIX 6.5 with cc.
41778         * tests/test-math.c (numeric_equal): New function.
41779         (main): Use it.
41780
41781 2008-04-01  Bruno Haible  <bruno@clisp.org>
41782
41783         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41784
41785 2008-04-01  Bruno Haible  <bruno@clisp.org>
41786
41787         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41788         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41789         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41790         (Depends-on): Remove math.
41791
41792         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
41793         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41794         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
41795         (Depends-on): Remove math.
41796
41797         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
41798         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41799         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
41800         (Depends-on): Remove math.
41801         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
41802         (Depends-on): Remove math.
41803
41804         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
41805         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41806         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
41807         (Depends-on): Remove math.
41808         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
41809         (Depends-on): Remove math.
41810
41811         * tests/test-round1.c: Include nan.h.
41812         (main): Use NaNd instead of NAN.
41813         * modules/round-tests (Files): Add tests/nan.h.
41814
41815         * tests/test-trunc1.c: Include nan.h.
41816         (main): Use NaNd instead of NAN.
41817         * modules/trunc-tests (Files): Add tests/nan.h.
41818
41819         * tests/test-roundf1.c: Include nan.h.
41820         (main): Use NaNf instead of NAN.
41821         * modules/roundf-tests (Files): Add tests/nan.h.
41822
41823         * tests/test-truncf1.c: Include nan.h.
41824         (main): Use NaNf instead of NAN.
41825         * modules/truncf-tests (Files): Add tests/nan.h.
41826
41827         * tests/test-ceilf1.c: Include nan.h.
41828         (main): Use NaNf instead of NAN.
41829         * modules/ceilf-tests (Files): Add tests/nan.h.
41830
41831         * tests/test-floorf1.c: Include nan.h.
41832         (main): Use NaNf instead of NAN.
41833         * modules/floorf-tests (Files): Add tests/nan.h.
41834
41835         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
41836         (main): Use NaNf instead of NAN.
41837         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
41838
41839         * tests/test-isnand.c: Include nan.h instead of <math.h>.
41840         (main): Use NaNd instead of NAN.
41841         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
41842
41843         * tests/test-frexp.c: Include nan.h.
41844         (main): Use NaNd instead of NAN.
41845         * modules/frexp-tests (Files): Add tests/nan.h.
41846
41847         * lib/isnan.c: Don't include <math.h>.
41848         (FUNC): Don't use NAN macro.
41849         * modules/isnand-nolibm (Depends-on): Remove math.
41850         * modules/isnanf-nolibm (Depends-on): Remove math.
41851         * modules/isnanl (Depends-on): Remove math.
41852         * modules/isnanl-nolibm (Depends-on): Remove math.
41853
41854         * tests/nan.h: New file.
41855
41856 2008-04-01  Eric Blake  <ebb9@byu.net>
41857
41858         Fix typos.
41859         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
41860         values to be the right type.
41861
41862         For now, cater to gnulib strtod inaccuracies.
41863         * tests/test-strtod.c (main): Allow 1-ulp error on expected
41864         fractional results.  While not as nice from a QoI perspective, it
41865         is a quicker patch than correctly implementing decimal to binary
41866         rounding.
41867
41868 2008-03-31  Eric Blake  <ebb9@byu.net>
41869
41870         Guarantee a definition of NAN.
41871         * lib/math.in.h (NAN): Define if missing.
41872         * tests/test-math.c (main): Test it.
41873         * doc/posix-headers/math.texi (math.h): Document this.
41874         * lib/isnan.c (rpl_isnand): Use it.
41875         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
41876         * tests/test-floorf1.c (NaN): Likewise.
41877         * tests/test-frexp.c (NaN): Likewise.
41878         * tests/test-isnand.c (NaN): Likewise.
41879         * tests/test-isnanf.c (NaN): Likewise.
41880         * tests/test-round1.c (NaN): Likewise.
41881         * tests/test-roundf1.c (NaN): Likewise.
41882         * tests/test-snprintf-posix.h (NaN): Likewise.
41883         * tests/test-sprintf-posix.h (NaN): Likewise.
41884         * tests/test-trunc1.c (NaN): Likewise.
41885         * tests/test-truncf1.c (NaN): Likewise.
41886         * tests/test-vasnprintf-posix.c (NaN): Likewise.
41887         * tests/test-vasprintf-posix.c (NaN): Likewise.
41888         * modules/isnand-nolibm (Depends-on): Add math.
41889         * modules/isnanf-nolibm (Depends-on): Likewise.
41890         * modules/isnanl (Depends-on): Likewise.
41891         * modules/isnanl-nolibm (Depends-on): Likewise.
41892         * modules/snprintf-posix-tests (Depends-on): Likewise.
41893         * modules/sprintf-posix-tests (Depends-on): Likewise.
41894         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
41895         * modules/vsprintf-posix-tests (Depends-on): Likewise.
41896         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
41897         * modules/vasprintf-posix-tests (Depends-on): Likewise.
41898
41899 2008-03-31  Bruno Haible  <bruno@clisp.org>
41900
41901         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
41902         * doc/posix-functions/strtod.texi: Likewise.
41903
41904 2008-03-31  Bruno Haible  <bruno@clisp.org>
41905
41906         * tests/test-strtod.c (main): Don't use C99 syntax.
41907
41908 2008-03-31  Bruno Haible  <bruno@clisp.org>
41909
41910         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
41911         Reported by Eric Blake.
41912
41913 2008-03-31  Jim Meyering  <meyering@redhat.com>
41914
41915         Don't compare actual signbit return values.
41916         * tests/test-strtod.c (main): Rather, compare only their
41917         zero/non-zero nature.
41918
41919 2008-03-31  Eric Blake  <ebb9@byu.net>
41920
41921         More strtod documentation.
41922         * doc/posix-functions/strtod.texi (strtod): Interpret more test
41923         failures as distinct bugs.
41924
41925 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41926
41927         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
41928         Problem reported by Erik Benada in
41929         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
41930
41931 2008-03-30  Bruno Haible  <bruno@clisp.org>
41932
41933         * tests/test-strtod.c: Add comments about which assertion fails on which
41934         platform.
41935         * doc/posix-functions/strtod.texi: Add info about many more platforms.
41936
41937 2008-03-30  Eric Blake  <ebb9@byu.net>
41938
41939         Test signbit behavior on zeros.
41940         * tests/test-signbit.c (test_signbitf): Add tests for zero.
41941         (test_signbitd, test_signbitl): Likewise.
41942
41943         More strtod touchups.
41944         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
41945         sign of negative underflow, for now.  Use .5, not .1.
41946         * doc/posix-functions/strtod.texi (strtod): Mention these
41947         limitations.
41948         Reported by Jim Meyering.
41949
41950 2008-03-30  Bruno Haible  <bruno@clisp.org>
41951
41952         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
41953         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
41954
41955 2008-03-30  Bruno Haible  <bruno@clisp.org>
41956
41957         Avoid failure when attempting to return empty iconv results on some
41958         platforms.
41959         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
41960         allocation, don't report ENOMEM when the resulting string is empty.
41961
41962 2008-03-30  Bruno Haible  <bruno@clisp.org>
41963
41964         Fix buffer overrun.
41965         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
41966         Don't consider the width for tmp_length. Check count against tmp_length
41967         before doing the padding. Ensure enough allocation during padding.
41968
41969 2008-03-30  Eric Blake  <ebb9@byu.net>
41970
41971         strtod touchups.
41972         * lib/strtod.c (strtod): Avoid compiler warnings.
41973         Reported by Jim Meyering.
41974
41975 2008-03-30  Bruno Haible  <bruno@clisp.org>
41976
41977         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
41978         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
41979         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
41980         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
41981         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
41982         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
41983         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
41984         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
41985
41986         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
41987         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
41988         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
41989         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
41990         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
41991         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
41992         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
41993         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
41994
41995         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
41996         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
41997         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
41998         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
41999         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42000         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42001         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42002         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42003
42004         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42005         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42006
42007         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42008         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42009
42010         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42011         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42012
42013         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42014         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42015         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42016
42017         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42018         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42019         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42020
42021         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42022         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42023         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42024
42025         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42026         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42027         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42028
42029         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42030         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42031         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42032         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42033         (Depends-on): Add EOVERFLOW.
42034         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42035         (Depends-on): Add EOVERFLOW.
42036         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42037         (Depends-on): Add EOVERFLOW.
42038         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42039         (Depends-on): Add EOVERFLOW.
42040         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42041         (Depends-on): Add EOVERFLOW.
42042         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42043         (Depends-on): Add EOVERFLOW.
42044         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42045         (Depends-on): Add EOVERFLOW.
42046         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42047         (Depends-on): Add EOVERFLOW.
42048
42049         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42050         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42051         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42052
42053         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42054         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42055         * modules/snprintf (Depends-on): Add EOVERFLOW.
42056
42057         * lib/poll.c (EOVERFLOW): Remove fallback.
42058         * modules/poll (Depends-on): Add EOVERFLOW.
42059
42060         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42061         * modules/getugroups (Depends-on): Add EOVERFLOW.
42062
42063         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42064         * modules/getdelim (Depends-on): Add EOVERFLOW.
42065
42066         * lib/ftell.c (EOVERFLOW): Remove fallback.
42067         * modules/ftell (Depends-on): Add EOVERFLOW.
42068
42069         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42070         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42071         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42072
42073         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42074
42075         * modules/EOVERFLOW-tests: New file.
42076         * tests/test-EOVERFLOW.c: New file.
42077
42078         * modules/EOVERFLOW: New file.
42079         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42080
42081 2008-03-30  Bruno Haible  <bruno@clisp.org>
42082
42083         Fix bug introduced on 2007-06-10.
42084         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42085         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42086
42087 2008-03-30  Bruno Haible  <bruno@clisp.org>
42088
42089         Improve freadseek's efficiency after ungetc.
42090         * lib/freadseek.c: Include freadahead.h.
42091         (freadptrinc): New function, extracted from freadseek.
42092         (freadseek): Use it in a loop. Use freadahead to determine the number
42093         of loop iterations.
42094         * modules/freadseek (Depends-on): Add freadahead.
42095         (configure.ac): Require AC_C_INLINE.
42096
42097 2008-03-30  Bruno Haible  <bruno@clisp.org>
42098
42099         * lib/freadseek.c (freadseek): Don't ignore the return value of
42100         freadptr.
42101
42102 2008-03-29  Eric Blake  <ebb9@byu.net>
42103
42104         Add hex float support.
42105         * modules/strtod (Depends-on): Add c-ctype.
42106         (Link): Mention POW_LIB.
42107         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42108         whitespace between 'e' and exponent.
42109         * tests/test-strtod.c (main): Enable hex float tests.
42110         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42111         now provides.
42112
42113         Document various strtod bugs, with some fixes.
42114         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42115         "-0x", "inf", "nan", and hex constants.
42116         * doc/posix-functions/atof.texi (atof): Likewise.
42117         * modules/stdlib (Makefile.am): Support strtod.
42118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42119         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42120         detect additional strtod bugs.
42121         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42122         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42123         bool where appropriate.  Parse 'inf' and 'nan'.
42124         * tests/test-strtod.c: New file.
42125         * modules/strtod (Depends-on): Add stdbool, stdlib.
42126         (configure.ac): Turn on module indicator.
42127         * modules/strtod-tests: New module.
42128
42129 2008-03-29  Eric Blake  <ebb9@byu.net>
42130
42131         Fix ftell on mingw.
42132         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42133         * modules/ftell-tests (Depends-on): Add binary-io.
42134         * modules/ftello-tests (Depends-on): Likewise.
42135         * tests/test-ftell.c (main): Enhance test to cover behavior after
42136         ungetc.  Enforce binary mode.
42137         * tests/test-ftello.c (main): Likewise.
42138
42139         Pass test-freadseek on cygwin.
42140         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42141         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42142         ungetc buffer.
42143
42144         * tests/test-fflush2.c (main): Fix typo.
42145
42146 2008-03-29  Bruno Haible  <bruno@clisp.org>
42147
42148         * tests/test-fflush2.c (main): Temporarily disable the contents of
42149         this test.
42150         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42151         Reported by Eric Blake.
42152
42153 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42154
42155         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42156         (GC_SHA224_DIGEST_SIZE): Add.
42157
42158         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42159         (gc_hash_digest_length): Likewise.
42160         (gc_hash_buffer): Likewise.
42161
42162 2008-03-25  Bruno Haible  <bruno@clisp.org>
42163
42164         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42165         detail which gettext release to use.
42166         Reported by Simon Josefsson.
42167
42168 2008-03-26  Jim Meyering  <meyering@redhat.com>
42169
42170         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42171         * modules/gnumakefile (clean-GNUmakefile): Also, use
42172         test ... && ... || : syntax rather than if-then ... fi.
42173
42174         gnumakefile: Don't double-quote-expand $(VPATH) value.
42175         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42176
42177 2008-03-24  Eric Blake  <ebb9@byu.net>
42178
42179         Alter GNUmakefile to install into top directory.
42180         * modules/maintainer-makefile: Split, and add dependency...
42181         * modules/gnumakefile: to this new module.
42182         * build-aux/GNUmakefile: Move...
42183         * top/GNUmakefile: ...here.
42184         * build-aux/maint.mk: Move...
42185         * top/maint.mk: ...here.
42186         * MODULES.html.sh (Support for maintaining...): Document new
42187         module.
42188
42189 2008-03-23  Bruno Haible  <bruno@clisp.org>
42190
42191         * gnulib-tool: New options --vc-files, --no-vc-files.
42192         (func_usage): Document them.
42193         (vc_files): New variable.
42194         (func_import): Consider vc_files.
42195         (func_create_testdir): Set vc_files to empty.
42196         Suggested by Jim Meyering and Karl Berry.
42197
42198 2008-03-23  Bruno Haible  <bruno@clisp.org>
42199
42200         Fix regex compilation error on HP-UX 11.
42201         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42202         * modules/regex (Files): Add m4/mbstate_t.m4.
42203         Reported by Ton Voon <ton.voon@altinity.com>.
42204
42205 2008-03-23  Bruno Haible  <bruno@clisp.org>
42206
42207         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42208
42209 2008-03-23  Eric Blake  <ebb9@byu.net>
42210             Bruno Haible  <bruno@clisp.org>
42211
42212         Install files from top/ in the destination directory.
42213         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42214         augmentation also for the files from top/.
42215         (func_import, func_create_testdir): Rewrite file names:
42216         top/filename -> filename.
42217
42218 2008-03-23  Bruno Haible  <bruno@clisp.org>
42219
42220         Tweak "gnulib --version" output.
42221         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42222
42223 2008-03-23  Bruno Haible  <bruno@clisp.org>
42224
42225         Tweak "gnulib --version" output.
42226         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42227         rather than contents of ChangeLog, when possible.
42228
42229 2008-03-21  Eric Blake  <ebb9@byu.net>
42230
42231         More --version tweaks.
42232         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42233         date of last ChangeLog entry.
42234
42235 2008-03-21  Jim Meyering  <meyering@redhat.com>
42236
42237         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42238
42239 2008-03-20  Eric Blake  <ebb9@byu.net>
42240
42241         VPATH fix.
42242         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42243
42244 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42245
42246         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42247         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42248
42249 2008-03-20  Eric Blake  <ebb9@byu.net>
42250
42251         Sync GNUmakefile with coreutils.
42252         * build-aux/GNUmakefile (have-Makefile): Rename...
42253         (_have-Makefile): ...to this, for namespace consideration.
42254         (GNUmakefile.cfg): Include, if present.
42255         (_autoreconf): Define a default.
42256         (_is-dist-target): New rule for rebuilds to pick up intra-release
42257         version.
42258         (maint-cfg.mk): Rename...
42259         (cfg.mk): ...to this.
42260
42261 2008-03-18  Jim Meyering  <meyering@redhat.com>
42262
42263         New script and module: mktempd
42264         * MODULES.html.sh (maint+release support): Add mktempd.
42265         * build-aux/mktempd: New file.
42266         * modules/mktempd: New file.
42267
42268 2008-03-15  Jim Meyering  <meyering@redhat.com>
42269
42270         Undo last change.
42271         * lib/sha1.c, lib/md5.c: 63 != ~63.
42272         Reported by Andreas Schwab.
42273
42274         sha1.c, md5.c: Hoist a redundant expression.
42275         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42276         "ctx->buflen" only once, before calling *_process_block.
42277         * lib/md5.c (md5_process_bytes): Likewise.
42278
42279 2008-03-14  Eric Blake  <ebb9@byu.net>
42280
42281         Bump copyright year in files generated by gnulib-tool.
42282         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42283         gnulib-tool, rather than hard-coding it.
42284
42285         Fix 'gnulib-tool --version' output to work with git.
42286         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42287         (startup): ...here.
42288         (func_version): Use it to invoke git-version-gen, rather than
42289         relying on CVS keyword expansion.  Modernize wording.
42290         (cvsdatestamp, last_checkin_date, version): Kill unused
42291         variables.
42292
42293 2008-03-12  Jim Meyering  <meyering@redhat.com>
42294
42295         Recognize optional cast of the argument to free.
42296         * build-aux/useless-if-before-free: Update regexps.
42297
42298         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42299
42300 2008-03-11  Bruno Haible  <bruno@clisp.org>
42301
42302         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42303         by a single package.
42304         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42305         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42306         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42307         Reported by Sam Steingold <sds@gnu.org>.
42308
42309 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42310
42311         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42312         repositories.
42313
42314 2008-03-11  Bruno Haible  <bruno@clisp.org>
42315
42316         Avoid conflicts between local macro definitions.
42317         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42318         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42319
42320 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42321             Bruno Haible  <bruno@clisp.org>
42322
42323         Make va_copy work with some version of xlc on AIX 5.1.
42324         * lib/stdarg.in.h: New file.
42325         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42326         On AIX, use a <stdarg.h> file substitute.
42327         * modules/stdarg (Files): Add lib/stdarg.in.h.
42328         (Depends-on): Add include_next.
42329         (Makefile.am): Build a stdarg.h substitute if requested.
42330         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42331
42332 2008-03-10  Bruno Haible  <bruno@clisp.org>
42333
42334         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42335         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42336         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42337
42338 2008-03-10  Bruno Haible  <bruno@clisp.org>
42339
42340         * modules/stdlib (Depends-on): Add include_next, remove
42341         absolute-header.
42342
42343 2008-03-09  Bruno Haible  <bruno@clisp.org>
42344
42345         * lib/freadahead.h (freadahead): Document more precisely.
42346         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42347         the sum of both buffer sizes.
42348         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42349         * NEWS: Document the change.
42350
42351 2008-03-09  Bruno Haible  <bruno@clisp.org>
42352
42353         Extend freadptr to return also the buffer size.
42354         * lib/freadptr.h (freadptr): Add sizep argument.
42355         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42356         (freadptr): Add sizep argument. Determine buffer size like freadahead
42357         does.
42358         * tests/test-freadptr.c: Don't include freadahead.h.
42359         (main): Adapt for new calling convention of freadptr.
42360         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42361         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42362         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42363         tests/test-freadptr2.sh.
42364         (Depends): Remove freadahead.
42365         (TESTS): Add test-freadptr2.sh.
42366         (check_PROGRAMS): Add test-freadptr2.
42367
42368 2008-03-09  Bruno Haible  <bruno@clisp.org>
42369
42370         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42371         Report and solution by Simon Josefsson.
42372
42373 2008-03-06  Bruno Haible  <bruno@clisp.org>
42374
42375         Make fflush after ungetc work on BSD platforms.
42376         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42377         * tests/test-fflush2.c: New file.
42378         * tests/test-fflush2.sh: New file.
42379         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42380         tests/test-fflush2.c.
42381         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42382         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42383
42384 2008-03-06  Eric Blake  <ebb9@byu.net>
42385
42386         Likewise for ftello.
42387         * modules/ftello (Dependencies): Add extensions.
42388         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42389
42390 2008-03-06  Bruno Haible  <bruno@clisp.org>
42391
42392         * modules/fseeko (Dependencies): Add extensions.
42393         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42394         Needed on glibc systems.
42395
42396 2008-03-06  Bruno Haible  <bruno@clisp.org>
42397
42398         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42399         email address.
42400         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42401
42402 2008-03-06  Bruno Haible  <bruno@clisp.org>
42403
42404         * users.txt: Add libgnupdf.
42405
42406 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42407
42408         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42409         (Header File Substitutes, Function Substitutes,
42410         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42411         (Build robot for gnulib): Fix typo.
42412
42413 2008-03-06  Bruno Haible  <bruno@clisp.org>
42414
42415         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42416         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42417
42418 2008-03-06  Bruno Haible  <bruno@clisp.org>
42419
42420         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42421         * doc/gnulib.texi: Include it.
42422
42423 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42424
42425         * modules/func (License): Change license to unlimited; there was
42426         no LGPL parts in the module anyway.
42427
42428 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42429
42430         * modules/__func__: Renamed to modules/func.
42431         * modules/__func__-tests: Renamed to modules/func-tests.
42432         * tests/test-__func__.c: Renamed to tests/test-func.c.
42433         * m4/__func__.m4: Renamed to m4/func.m4.
42434         * doc/gnulib.texi (__func__): Section renamed to func.
42435         Suggested by Eric Blake <ebb9@byu.net>.
42436
42437 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42438
42439         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42440         about __func__.  Make example self-contained.  Suggested by Eric
42441         Blake <ebb9@byu.net>.
42442
42443         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42444         Suggested by Eric Blake <ebb9@byu.net>.
42445
42446 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42447
42448         * modules/__func__: New file.
42449         * modules/__func__-tests: New file.
42450         * tests/test-__func__.c: New file.
42451         * m4/__func__.m4: New file.
42452         * doc/gnulib.texi (__func__): Document __func__ module.
42453
42454 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42455
42456         * modules/byteswap (License): Re-license as LGPLv2+.
42457
42458 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42459
42460         * doc/Makefile: Add pdf target.
42461
42462 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42463
42464         * modules/inline (License): Use 'unlimited', since there are only
42465         *.m4 files in this module.
42466
42467 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42468             Bruno Haible  <bruno@clisp.org>
42469
42470         Add support for HP C 7.1 on OpenVMS 8.3.
42471         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42472
42473 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42474
42475         Update VMS specifics.
42476         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42477
42478 2008-03-02  Jim Meyering  <meyering@redhat.com>
42479
42480         Remove the last dependency on the "free" module.
42481         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42482         Reported by Bob Proulx.
42483
42484         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42485
42486         Remove useless "if" tests before free.  Deprecate "free" module.
42487         * doc/posix-functions/free.texi: Mention that this
42488         module is no longer useful.
42489         * modules/free (Notice): Say this module is obsolete.
42490         * modules/readutmp (Depends-on): Remove free.
42491         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42492         * lib/putenv.c (putenv): Likewise.
42493         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42494         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42495         * tests/test-c-strcasestr.c (main): Likewise.
42496         * tests/test-c-strstr.c (main): Likewise.
42497         * tests/test-mbscasestr1.c (main): Likewise.
42498         * tests/test-mbscasestr2.c (main): Likewise.
42499         * tests/test-mbsstr1.c (main): Likewise.
42500         * tests/test-mbsstr2.c (main): Likewise.
42501         * tests/test-memmem.c (main): Likewise.
42502         * tests/test-strcasestr.c (main): Likewise.
42503         * tests/test-striconv.c (main): Likewise.
42504         * tests/test-striconveh.c (main): Likewise.
42505         * tests/test-striconveha.c (main): Likewise.
42506         * tests/test-strstr.c (main): Likewise.
42507
42508         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42509
42510         bootstrap: sync from coreutils again
42511         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42512
42513 2008-03-01  Jim Meyering  <meyering@redhat.com>
42514
42515         bootstrap: sync from coreutils
42516         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42517         also when the target doesn't exist.
42518
42519 2008-03-01  Eric Blake  <ebb9@byu.net>
42520
42521         Fix bugs in last patch.
42522         * lib/memchr2.c (memchr2): Fix typo.
42523         * tests/test-memchr2.c: Test previous bug, and don't use GNU
42524         extension.
42525         Reported by Bruce Korb.
42526
42527         New module 'memchr2'.
42528         * modules/memchr2: New file.
42529         * modules/memchr2-tests: Likewise.
42530         * lib/memchr2.h: Likewise.
42531         * lib/memchr2.c: Likewise, based on memchr.c.
42532         * tests/test-memchr2.c: New test.
42533         * MODULES.html.sh (String handling): Add memchr2.
42534
42535 2008-02-29  Bruno Haible  <bruno@clisp.org>
42536
42537         * modules/freadseek-tests: New file.
42538         * tests/test-freadseek.sh: New file.
42539         * tests/test-freadseek.c: New file.
42540
42541         New module 'freadseek'.
42542         * modules/freadseek: New file.
42543         * lib/freadseek.h: New file.
42544         * lib/freadseek.c: New file.
42545         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
42546
42547 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42548
42549         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
42550         wydawca.
42551
42552         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
42553         program_invocation_name and program_invocation_short_name are
42554         present.
42555
42556 2008-02-28  Bruno Haible  <bruno@clisp.org>
42557
42558         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
42559         * tests/test-freadptr.sh: Also test non-seekable stdin.
42560
42561 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
42562
42563         * build-aux/bootstrap (source_base, m4_base)
42564         (doc_base, tests_base): New variables.
42565         (gnulib_tool_options): Do not hardcode base directories, use
42566         the above variables instead.
42567
42568 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
42569
42570         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
42571
42572 2008-02-28  Bruno Haible  <bruno@clisp.org>
42573
42574         * modules/freadptr-tests: New file.
42575         * tests/test-freadptr.sh: New file.
42576         * tests/test-freadptr.c: New file.
42577
42578         New module 'freadptr'.
42579         * modules/freadptr: New file.
42580         * lib/freadptr.h: New file.
42581         * lib/freadptr.c: New file.
42582         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
42583
42584 2008-02-26  Karl Berry  <karl@freefriends.org>
42585
42586         Sync from Libtool:
42587         * libltdl/argz.c (argz_add, argz_count): New functions.
42588         * libltdl/argz.in.h: Declare them.
42589         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
42590
42591 2008-02-22  Bruno Haible  <bruno@clisp.org>
42592
42593         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
42594         is a pointer type.  Needed for HP-UX 10.
42595         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
42596         * doc/posix-functions/gmtime_r.texi: Likewise.
42597         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42598
42599 2008-02-24  Bruno Haible  <bruno@clisp.org>
42600
42601         * modules/environ-tests: New file.
42602         * tests/test-environ.c: New file.
42603
42604         New module 'environ'.
42605         * modules/environ: New file.
42606         * lib/unistd.in.h (environ): New declaration.
42607         * m4/environ.m4: New file.
42608         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
42609         after use.
42610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
42611         HAVE_DECL_ENVIRON.
42612         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
42613         HAVE_DECL_ENVIRON.
42614         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
42615         wrong claim that 'environ' is missing on some systems.
42616         * modules/execute (Depends-on): Add environ.
42617         * lib/execute.c (environ): Remove fallback declaration.
42618         * modules/pipe (Depends-on): Add environ.
42619         * lib/pipe.c (environ): Remove fallback declaration.
42620         * modules/setenv (Depends-on): Add environ.
42621         * lib/setenv.c (environ): Remove fallback declaration.
42622         * modules/unsetenv (Depends-on): Add environ.
42623         * lib/unsetenv.c (environ): Remove fallback declaration.
42624         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
42625         m4/environ.m4.
42626         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
42627         (gl_PREREQ_UNSETENV): Likewise.
42628
42629 2008-02-24  Bruno Haible  <bruno@clisp.org>
42630
42631         * doc/posix-functions/environ.texi: Document the MacOS X problem.
42632
42633 2008-02-20  Bob Proulx  <bob@proulx.com>
42634
42635         Enable use of older two part flavor 'git describe'.
42636         * build-aux/git-version-gen: If using the older two part flavor of
42637         git version then recreate the third part now present in the
42638         newer three part flavor of git describe.
42639
42640 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
42641
42642         * lib/fts.c (fts_build): Typo correction to comment.
42643
42644 2008-02-17  Bruno Haible  <bruno@clisp.org>
42645
42646         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
42647         generating no-op conflicts.
42648
42649 2008-02-17  Bruno Haible  <bruno@clisp.org>
42650
42651         Speed up by 10%.
42652         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
42653         result_entries, rather than an index-based loop.
42654
42655 2008-02-17  Bruno Haible  <bruno@clisp.org>
42656
42657         Speed up by 25%.
42658         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
42659         'hashcode_cached'.
42660         (entry_create): New function.
42661         (entry_hashcode): Use the cached hashcode if possible.
42662         (read_changelog_file, try_split_merged_entry): Use entry_create.
42663
42664 2008-02-17  Bruno Haible  <bruno@clisp.org>
42665
42666         Speed up from O(n^2) to O(n) for long ChangeLog files.
42667         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
42668         (read_changelog_file): Change implementation of entries_reversed list
42669         to rbtreehash.
42670         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
42671
42672 2008-02-17  Bruno Haible  <bruno@clisp.org>
42673
42674         New option --split-merged-entry.
42675         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
42676         (find_paragraph_end, try_split_merged_entry): New functions.
42677         (long_options): Add option --split-merged-entry.
42678         (usage): Document option --split-merged-entry.
42679         (main): Implement option --split-merged-entry.
42680         Reported by Eric Blake.
42681
42682 2008-02-17  Bruno Haible  <bruno@clisp.org>
42683
42684         * lib/git-merge-changelog.c: Include c-strstr.h.
42685         (main): Support the "git pull --rebase" situation.
42686         * modules/git-merge-changelog (Depends-on): Add c-strstr.
42687         Reported by Eric Blake.
42688
42689 2008-02-16  Eric Blake  <ebb9@byu.net>
42690
42691         Avoid doubling \ in common case of "c-maybe" quoting style.
42692         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42693         eliding outer quotes.
42694         * lib/quotearg.h: Document this.
42695         * tests/test-quotearg.c (result_strings, inputs, results_g)
42696         (flag_results, locale_results): Test it by adding a new string to
42697         each test group.
42698         (compare_strings): Test new string.
42699
42700 2008-02-13  Eric Blake  <ebb9@byu.net>
42701
42702         Avoid trigraph quoting in default output.
42703         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42704         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42705         unless explicitly requested.
42706         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42707
42708 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42709
42710         Don't rely on signed integer overflowing to negative value.
42711         * lib/getugroups.c (getugroups): Include <limits.h>.
42712         Instead, compare against INT_MAX, and increment only if the test passes.
42713
42714 2008-02-13  Jim Meyering  <meyering@redhat.com>
42715         and Eric Blake  <ebb9@byu.net>
42716
42717         Avoid shadowing warning and compile errors on Linux.
42718         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42719         forwarding macros on Linux.
42720         (dcgettext): Define a stub, for Linux.
42721         (results_g, main): Avoid warnings.
42722
42723 2008-02-12  Eric Blake  <ebb9@byu.net>
42724
42725         Silence warning in last patch.
42726         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42727
42728         Quotearg part 4: add tests, fix c-maybe colon quoting.
42729         * lib/quotearg.h: Improve documentation.
42730         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42731         escapes when adding outer quotes.  When quoting trigraphs, use
42732         valid C notation.  When quoting NUL, omit extra characters if next
42733         character is not digit.  Alter prototype.
42734         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42735         callers.
42736         * modules/quotearg-tests: New module.
42737         * tests/test-quotearg.c: New test.
42738
42739 2008-02-07  Eric Blake  <ebb9@byu.net>
42740
42741         Quotearg part 3: add flag to control outer quote elision.
42742         * lib/quotearg.h (c_maybe_quoting_style): New style.
42743         (enum quoting_flags): Better documentation of flags.
42744         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42745         c-maybe style.
42746         (quotearg_buffer_restyled): Handle new flag to elide outer
42747         quotes.
42748
42749         Quotearg part 2: add flag that can control NUL elision.
42750         * lib/quotearg.h (set_quoting_flags): New prototype.
42751         * lib/quotearg.c (struct quoting_options): Add flag field.
42752         (set_quoting_flags): New function.
42753         (quotearg_buffer_restyled): Add flags parameter.
42754         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42755         (quotearg_n_options): Set the flag, since length cannot be
42756         returned.
42757         (quoting_options_from_style): Default flags correctly.
42758
42759         Quotearg part 1: more wrappers, restore quotearg_char state.
42760         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42761         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42762         (quotearg_colon_mem): New wrappers.
42763         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42764         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42765         functions.
42766         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42767         (quotearg_colon_mem): New functions.
42768
42769 2008-02-11  Bruno Haible  <bruno@clisp.org>
42770
42771         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42772         library in the current directory: it does not work with parallel make.
42773         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42774
42775 2008-02-11  Bruno Haible  <bruno@clisp.org>
42776
42777         * .gitattributes: New file.
42778
42779 2008-02-11  Jim Meyering  <meyering@redhat.com>
42780
42781         useless-if-before-free: Fix reversed exit values.
42782         * build-aux/useless-if-before-free: Use correct values
42783         for EXIT_MATCH and EXIT_NO_MATCH.
42784
42785         * build-aux/useless-if-before-free: Close stdout carefully.
42786
42787 2008-02-10  Bruno Haible  <bruno@clisp.org>
42788
42789         New module 'git-merge-changelog'.
42790         * modules/git-merge-changelog: New file.
42791         * lib/git-merge-changelog.c: New file.
42792
42793 2008-02-10  Jim Meyering  <meyering@redhat.com>
42794
42795         useless-if-before-free: New option: --list (-l).
42796
42797         useless-if-before-free: Don't exit immediately upon open failure.
42798         * build-aux/useless-if-before-free: Exit 2 for errors.
42799         Upon failure to open a file, don't exit immediately.
42800         Rather, just warn and continue with any remaining files.
42801
42802 2008-02-10  Bruno Haible  <bruno@clisp.org>
42803
42804         New abstract list operation 'node_set_value'.
42805         * lib/gl_list.h (gl_list_node_set_value): New function.
42806         (struct gl_list_implementation): New field node_set_value.
42807         * lib/gl_list.c (gl_list_node_set_value): New function.
42808         * lib/gl_array_list.c (gl_array_node_set_value): New function.
42809         (gl_array_list_implementation): Update.
42810         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
42811         (gl_carray_list_implementation): Update.
42812         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
42813         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42814         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42815         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
42816         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42817         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42818         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42819         Update.
42820         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42821         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
42822         (gl_sublist_list_implementation): Update.
42823
42824 2008-02-10  Bruno Haible  <bruno@clisp.org>
42825
42826         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
42827         Needed when ELEMENT is #defined to 'some_type *'.
42828
42829 2008-02-10  Jim Meyering  <meyering@redhat.com>
42830
42831         New script and module: useless-if-before-free
42832         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
42833         * build-aux/useless-if-before-free: New file.
42834         * modules/useless-if-before-free: New file.
42835
42836         * build-aux/gitlog-to-changelog: Use committer date, not author date.
42837
42838         xstrtol_error: Fix typo.
42839         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
42840         s/exit_failure/exit_status/.
42841
42842 2008-02-09  Jim Meyering  <meyering@redhat.com>
42843
42844         New script and module: gitlog-to-changelog
42845         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
42846         * modules/gitlog-to-changelog: New file.
42847         * build-aux/gitlog-to-changelog: New file.
42848
42849 2008-02-08  Jim Meyering  <meyering@redhat.com>
42850
42851         Avoid two "parameter unused" warnings.
42852         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
42853         Mark "st" as used.
42854
42855         Use "git COMMAND", not "git-COMMAND".
42856         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
42857         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
42858         * build-aux/git-version-gen: Use "git status", not "git-status".
42859
42860 2008-02-07  Bruno Haible  <bruno@clisp.org>
42861
42862         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
42863         Avoids a crash on Windows Vista.
42864         Reported by Adam Strzelecki <ono@java.pl> via
42865         Simon Josefsson <simon@josefsson.org>.
42866
42867 2008-02-06  Bruno Haible  <bruno@clisp.org>
42868
42869         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
42870         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
42871         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
42872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
42873         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42874         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42875         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
42876         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
42877         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42878         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42879         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42880         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42881         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42882         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42883         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42884         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
42885         left-adjust flag.
42886         * tests/test-snprintf-posix.h (test_function): Likewise.
42887         * tests/test-sprintf-posix.h (test_function): Likewise.
42888         * tests/test-vasprintf-posix.c (test_function): Likewise.
42889         * doc/posix-functions/fprintf.texi: Update.
42890         * doc/posix-functions/printf.texi: Update.
42891         * doc/posix-functions/snprintf.texi: Update.
42892         * doc/posix-functions/sprintf.texi: Update.
42893         * doc/posix-functions/vfprintf.texi: Update.
42894         * doc/posix-functions/vprintf.texi: Update.
42895         * doc/posix-functions/vsnprintf.texi: Update.
42896         * doc/posix-functions/vsprintf.texi: Update.
42897         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42898
42899 2008-02-06  Bruno Haible  <bruno@clisp.org>
42900
42901         Fix bug introduced on 2008-01-26.
42902         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
42903
42904 2008-02-06  Bruno Haible  <bruno@clisp.org>
42905
42906         Fix bug introduced on 2007-06-10.
42907         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
42908         !NEED_PRINTF_FLAG_ZERO.
42909
42910 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
42911
42912         getloadavg: use libperfstat on AIX5
42913         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
42914
42915 2008-02-03  Bruno Haible  <bruno@clisp.org>
42916
42917         * lib/diffseq.h: Add comments about required #includes.
42918         Reported by Michael Biggs <gnulib@doubleplum.net>.
42919
42920 2008-02-01  Bruno Haible  <bruno@clisp.org>
42921
42922         * users.txt: Add gnuit.
42923
42924 2008-01-31  Bruno Haible  <bruno@clisp.org>
42925
42926         * lib/md4.c (set_uint32): Mark as inline.
42927         * lib/md5.c (set_uint32): Likewise.
42928         * lib/sha1.c (set_uint32): Likewise.
42929         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
42930         * m4/md5.m4 (gl_MD5): Likewise.
42931         * m4/sha1.m4 (gl_SHA1): Likewise.
42932
42933 2008-01-31  Jim Meyering  <meyering@redhat.com>
42934
42935         Use "sizeof VAR", rather than a literal "4".
42936         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
42937         * lib/md4.c (md4_read_ctx): Likewise.
42938         * lib/sha1.c (sha1_read_ctx): Likewise.
42939
42940 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42941
42942         * tests/test-sha1.c: New file, based on test-md5.c.
42943
42944         * modules/crypto/sha1-tests: New file.
42945
42946 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42947
42948         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
42949
42950 2008-01-31  Jim Meyering  <meyering@redhat.com>
42951
42952         Prefer "sizeof v" over the equivalent "4".
42953         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
42954         * lib/md5.c (set_uint32): Likewise.
42955         * lib/sha1.c (set_uint32): Likewise.
42956
42957 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42958
42959         * lib/sha1.c (set_uint32): Mark function as static.
42960
42961 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42962
42963         md2: clarify comments to say that alignment is not required.
42964         * lib/md2.h: Remove warning about alignment in comment.
42965         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
42966         never been required.
42967
42968 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42969
42970         md4: adapt alignment constraint fix from sha1.
42971         * lib/md4.c (set_uint32): New function, from sha1.c
42972         (md4_read_ctx): Use it.
42973         (md4_finish_ctx): Doc fix.
42974         * lib/md4.h: Doc fix.
42975
42976 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42977
42978         md5: adapt alignment constraint fix from sha1.
42979         * lib/md5.c (set_uint32): New function, from sha1.c
42980         (md5_read_ctx): Use it.
42981         (md5_finish_ctx): Doc fix.
42982         * lib/md5.h: Doc fix.
42983
42984 2008-01-30  Peter Palfrader  <weasel@debian.org>
42985
42986         sha1: remove the result buffer alignment constraint
42987         * lib/sha1.c (set_uint32): New function.
42988         (sha1_read_ctx): Rewrite to remove the result buffer alignment
42989         constraint.
42990         (sha1_finish_ctx): Remove comment warning about alignment constraint.
42991         * lib/sha1.h: Likewise.
42992
42993 2008-01-30  Andreas Schwab  <schwab@suse.de>
42994             Bruno Haible  <bruno@clisp.org>
42995
42996         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
42997         correct definition of LDBL_MIN_EXP.
42998
42999 2008-01-30  Karl Berry  <karl@gnu.org>
43000
43001         * config/srclist-update: try to preserve x bit on updates.
43002         * config/srclistvars.sh: update for karl.
43003
43004 2008-01-29  Jim Meyering  <meyering@redhat.com>
43005
43006         vasnprintf.c: Avoid warning about unused label
43007         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43008         "overflow" label definition and associated code with the
43009         same cpp condition that guards the sole use of that label.
43010
43011 2008-01-26  Bruno Haible  <bruno@clisp.org>
43012
43013         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43014         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43015         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43016         * lib/isnanl-nolibm.h (isnanl): Likewise.
43017         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43018
43019 2008-01-26  Bruno Haible  <bruno@clisp.org>
43020
43021         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43022         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43023
43024 2008-01-26  Bruno Haible  <bruno@clisp.org>
43025
43026         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43027         GCC >= 4.0 built-in.
43028         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43029
43030 2008-01-26  Bruno Haible  <bruno@clisp.org>
43031
43032         Rename isnan, applicable to 'double' only, to isnand.
43033         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43034         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43035         (configure.ac): Update.
43036         (Include): Replace "isnan.h" with "isnand.h".
43037         * m4/isnand.m4: Renamed from m4/isnan.m4.
43038         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43039         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43040         instead of isnan.c.
43041         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43042         instead of HAVE_ISNAN_IN_LIBC.
43043         (isnand): Renamed from isnan.
43044         * lib/isnand.c: New file.
43045         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43046         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43047         (Makefile.am): Update.
43048         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43049         Include isnand.h instead of isnan.h.
43050         (main): Test isnand instead of isnan.
43051         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43052         isnan-nolibm.
43053         * modules/frexp (Depends-on): Likewise.
43054         * modules/frexp-tests (Depends-on): Likewise.
43055         * modules/frexp-nolibm (Depends-on): Likewise.
43056         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43057         * modules/isfinite (Depends-on): Likewise.
43058         * modules/round-tests (Depends-on): Likewise.
43059         * modules/signbit (Depends-on): Likewise.
43060         * modules/signbit-tests (Depends-on): Likewise.
43061         * modules/snprintf-posix (Depends-on): Likewise.
43062         * modules/sprintf-posix (Depends-on): Likewise.
43063         * modules/trunc-tests (Depends-on): Likewise.
43064         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43065         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43066         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43067         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43068         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43069         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43070         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43071         * modules/vasnprintf-posix (Depends-on): Likewise.
43072         * modules/vasprintf-posix (Depends-on): Likewise.
43073         * modules/vfprintf-posix (Depends-on): Likewise.
43074         * modules/vsnprintf-posix (Depends-on): Likewise.
43075         * modules/vsprintf-posix (Depends-on): Likewise.
43076         * lib/frexp.c: Include isnand.h instead of isnan.h.
43077         (ISNAN): Set to isnand instead of isnan.
43078         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43079         (gl_isfinited): Use isnand instead of isnan.
43080         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43081         (gl_signbitd): Use isnand instead of isnan.
43082         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43083         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43084         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43085         (main): Use isnand instead of isnan.
43086         * tests/test-round1.c: Include isnand.h.
43087         (main): Use isnand instead of isnan.
43088         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43089         (ISNAN): Set to isnand instead of isnan.
43090         * tests/test-trunc1.c: Include isnand.h.
43091         (main): Use isnand instead of isnan.
43092         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43093         (equal): Use isnand instead of isnan.
43094         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43095         isnand-nolibm.
43096         * NEWS: Mention the change.
43097
43098 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43099             Bruno Haible  <bruno@clisp.org>
43100
43101         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43102         the GCC builtins for signbits are present and set
43103         REPLACE_SIGNBIT_USING_GCC if so.
43104         * lib/math.in.h (signbit): Define using GCC builtins if
43105         REPLACE_SIGNBIT_USING_GCC is set.
43106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43107         REPLACE_SIGNBIT_USING_GCC.
43108         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43109
43110 2008-01-25  Jim Meyering  <meyering@redhat.com>
43111
43112         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43113         * lib/poll.c: Include <config.h>, not "config.h".
43114         * tests/test-getaddrinfo.c: Likewise.
43115
43116 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43117
43118         * modules/sockets-tests: New file.
43119
43120 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43121
43122         * modules/sockets: New module, can be used to call WSA_Startup and
43123         WSA_Cleanup when needed.
43124
43125         * lib/sockets.h, lib/sockets.c: New files.
43126
43127         * m4/sockets.m4: New file.
43128
43129         * tests/test-sockets.c: New file.
43130
43131 2008-01-19  Bruno Haible  <bruno@clisp.org>
43132
43133         * doc/posix-headers: Renamed from doc/headers.
43134         * doc/posix-functions: Renamed from doc/functions.
43135         * doc/gnulib.texi: Update.
43136
43137 2008-01-19  Bruno Haible  <bruno@clisp.org>
43138
43139         * doc/glibc-functions/strcasestr.texi: Include contents of
43140         doc/functions/strcasestr.texi, fixing the list of platforms.
43141         * doc/functions/strcasestr.texi: Remove file.
43142
43143 2008-01-19  Bruno Haible  <bruno@clisp.org>
43144
43145         * doc/glibc-functions/memmem.texi: Include contents of
43146         doc/functions/memmem.texi.
43147         * doc/functions/memmem.texi: Remove file.
43148
43149 2008-01-18  Bruno Haible  <bruno@clisp.org>
43150
43151         * doc/glibc-functions/*.texi: New files.
43152         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43153         to use the new files.
43154
43155 2008-01-17  Bruno Haible  <bruno@clisp.org>
43156
43157         * tests/test-gethostname.c (main): Fix printf statement.
43158
43159 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43160
43161         * modules/gethostname-tests: New file.
43162
43163         * tests/test-gethostname.c: New file.
43164
43165 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43166
43167         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43168         used by the UNAME case.  Reported by Bruno Haible
43169         <bruno@clisp.org>.
43170
43171 2008-01-17  Eric Blake  <ebb9@byu.net>
43172
43173         Convert c-strcasestr to be more efficient.
43174         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43175         (Depends-on): Add c-strcase, remove malloca, strnlen.
43176         * tests/test-c-strcasestr.c (main): Enhance test.
43177         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43178
43179 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43180
43181         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43182         Use it in creating po/Makevars.
43183
43184 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43185
43186         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43187         Applications that requires it should initialize libgcrypt
43188         manually.
43189
43190 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43191
43192         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43193
43194 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43195
43196         Fix problem with getdate on mingw32 reported by Simon Josefsson
43197         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43198         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43199         tzname", when deciding whether to declare tzname.
43200         * lib/strftime.c (tzname): Likewise.
43201
43202 2008-01-15  Bruno Haible  <bruno@clisp.org>
43203
43204         Work around a MacOS X 10.5 bug in frexpl().
43205         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43206         * doc/functions/frexpl.texi: Document the bug.
43207         Reported by Elias Pipping <pipping@gentoo.org>.
43208
43209 2008-01-14  Eric Blake  <ebb9@byu.net>
43210
43211         Touch up previous patch.
43212         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43213         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43214
43215         Convert strcasestr module to use Two-Way algorithm.
43216         * modules/strcasestr-simple: New module, based on the old
43217         strcasestr, but with Two-Way rather than KMP.
43218         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43219         * lib/string.in.h (rpl_strcasestr): Declare.
43220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43221         performance.
43222         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43223         * modules/string (Makefile.am): Support strcasestr.
43224         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43225         * modules/strcasestr-tests (Depends-on): Check for alarm.
43226         * tests/test-strcasestr.c: Augment test.
43227         * lib/str-two-way.h: Clean up stray macro.
43228         * NEWS: Document new module.
43229         * MODULES.html.sh (string handling): Likewise.
43230         * doc/functions/strcasestr.texi: New file.
43231         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43232         here, since it is not a POSIX function.
43233
43234 2008-01-14  Colin Watson  <cjwatson@debian.org>
43235             Bruno Haible  <bruno@clisp.org>
43236
43237         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43238         works fine; if not, set REPLACE_STRSIGNAL.
43239         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43241         REPLACE_STRSIGNAL.
43242         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43243         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43244         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43245
43246 2008-01-14  Bruno Haible  <bruno@clisp.org>
43247
43248         * modules/strsignal (Include): Change to <string.h>.
43249
43250 2008-01-14  Colin Watson  <cjwatson@debian.org>
43251
43252         * modules/argp (Notice): Add a notice recommending to change
43253         XGETTEXT_OPTIONS.
43254         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43255
43256 2008-01-13  Colin Watson  <cjwatson@debian.org>
43257
43258         * modules/strsignal-tests: New file.
43259         * tests/test-strsignal.c: New file.
43260
43261         * lib/strsignal.c: New file, from glibc with modifications.
43262         * lib/siglist.h: New file, from glibc with modifications.
43263         * lib/string.in.h (strsignal): New declaration.
43264         * m4/strsignal.m4: New file.
43265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43266         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43267         * modules/strsignal: New file.
43268         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43269         HAVE_DECL_STRSIGNAL.
43270
43271 2008-01-13  Bruno Haible  <bruno@clisp.org>
43272
43273         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43274         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43275         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43276         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43277
43278 2008-01-13  Bruno Haible  <bruno@clisp.org>
43279
43280         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43281         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43282         * lib/argp.h (__attribute__): Likewise.
43283         * lib/c-stack.c (__attribute__): Likewise.
43284         * lib/error.h (__attribute__): Likewise.
43285         * lib/fts.c (__attribute__): Likewise.
43286         * lib/openat.h (__attribute__): Likewise.
43287         * lib/stdio.in.h (__attribute__): Likewise.
43288         * lib/string.in.h (__attribute__): Likewise.
43289         * lib/utimens.c (__attribute__): Likewise.
43290         * lib/vasnprintf.h (__attribute__): Likewise.
43291         * lib/xalloc.h (__attribute__): Likewise.
43292         * lib/xprintf.h (__attribute__): Likewise.
43293         * lib/xstrtol.h (__attribute__): Likewise.
43294         * lib/xvasprintf.h (__attribute__): Likewise.
43295
43296 2008-01-12  Bruno Haible  <bruno@clisp.org>
43297
43298         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43299         * doc/glibc-headers/a.out.texi: New file.
43300         * doc/glibc-headers/aliases.texi: New file.
43301         * doc/glibc-headers/alloca.texi: New file.
43302         * doc/glibc-headers/ar.texi: New file.
43303         * doc/glibc-headers/argp.texi: New file.
43304         * doc/glibc-headers/argz.texi: New file.
43305         * doc/glibc-headers/byteswap.texi: New file.
43306         * doc/glibc-headers/crypt.texi: New file.
43307         * doc/glibc-headers/endian.texi: New file.
43308         * doc/glibc-headers/envz.texi: New file.
43309         * doc/glibc-headers/err.texi: New file.
43310         * doc/glibc-headers/error.texi: New file.
43311         * doc/glibc-headers/execinfo.texi: New file.
43312         * doc/glibc-headers/fpu_control.texi: New file.
43313         * doc/glibc-headers/fstab.texi: New file.
43314         * doc/glibc-headers/fts.texi: New file.
43315         * doc/glibc-headers/getopt.texi: New file.
43316         * doc/glibc-headers/ieee754.texi: New file.
43317         * doc/glibc-headers/ifaddrs.texi: New file.
43318         * doc/glibc-headers/libintl.texi: New file.
43319         * doc/glibc-headers/mcheck.texi: New file.
43320         * doc/glibc-headers/mntent.texi: New file.
43321         * doc/glibc-headers/obstack.texi: New file.
43322         * doc/glibc-headers/paths.texi: New file.
43323         * doc/glibc-headers/printf.texi: New file.
43324         * doc/glibc-headers/pty.texi: New file.
43325         * doc/glibc-headers/resolv.texi: New file.
43326         * doc/glibc-headers/shadow.texi: New file.
43327         * doc/glibc-headers/sysexits.texi: New file.
43328         * doc/glibc-headers/ttyent.texi: New file.
43329
43330 2008-01-12  Jim Meyering  <meyering@redhat.com>
43331
43332         announce-gen: emit Gnulib's git-based version string.
43333         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43334         New option --gnulib-version=V, where V is expected to be
43335         the output of running git describe in the gnulib directory.
43336         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43337         not useful, and plan to stop publishing an xdelta file with each
43338         coreutils release.
43339
43340         * build-aux/announce-gen: Also check for lzma-compressed files.
43341
43342 2008-01-11  Bruno Haible  <bruno@clisp.org>
43343
43344         * tests/test-memmem.c (main): Increase maximum allowed time.
43345         * tests/test-strstr.c (main): Likewise.
43346
43347 2008-01-11  Bruno Haible  <bruno@clisp.org>
43348
43349         * doc/functions/memmem.texi: Add more precisions about platforms.
43350         * doc/functions/strstr.texi: Likewise.
43351
43352 2008-01-10  Eric Blake  <ebb9@byu.net>
43353
43354         * m4/strstr.m4: Delete cruft from copy-n-paste.
43355         Reported by Bruno Haible.
43356
43357 2008-01-10  Bruno Haible  <bruno@clisp.org>
43358
43359         Make c-strstr rely on strstr.
43360         * lib/c-strstr.c: Don't include str-kmp.h.
43361         (c_strstr): Define in terms of strstr.
43362         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43363         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43364
43365 2008-01-10  Bruno Haible  <bruno@clisp.org>
43366
43367         * doc/gnulib.texi (String Functions in C Locale): New section.
43368         * doc/c-ctype.texi: New file.
43369         * doc/c-strcase.texi: New file.
43370         * doc/c-strcaseeq.texi: New file.
43371         * doc/c-strcasestr.texi: New file.
43372         * doc/c-strstr.texi: New file.
43373         * doc/c-strtod.texi: New file.
43374         * doc/c-strtold.texi: New file.
43375
43376 2008-01-10  Eric Blake  <ebb9@byu.net>
43377
43378         * lib/relocatable.h: Fix a comment.
43379
43380 2008-01-10  Eric Blake  <ebb9@byu.net>
43381
43382         Share two-way algorithm.
43383         * lib/str-two-way.h: New file, merged from...
43384         * lib/memmem.c: ...here...
43385         * lib/strstr.c: ...and here.
43386         * modules/memmem (Files): Use it.
43387         * modules/strstr (Files): Likewise.
43388
43389         Avoid quadratic strstr implementations.
43390         * lib/strstr.c: New file.
43391         * m4/strstr.m4: Likewise.
43392         * modules/strstr: Likewise.
43393         * modules/strstr-tests: Likewise.
43394         * tests/test-strstr.c: Likewise.
43395         * lib/string.in.h (rpl_strstr): Declare.
43396         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43398         * modules/string (Makefile.am): Likewise.
43399         * MODULES.html.sh (string handling): Mention new module.
43400         * doc/functions/strstr.texi (strstr): Document the bug.
43401
43402 2008-01-10  Bruno Haible  <bruno@clisp.org>
43403
43404         * lib/relocatable.h (relocate): State whether result is freshly
43405         allocated or not.
43406         * lib/relocatable.c (relocate): Return a freshly allocated string
43407         instead of a pointer to a privately held string.
43408         Reported by Sylvain Beucler <beuc@gnu.org>.
43409
43410 2008-01-10  Colin Watson  <cjwatson@debian.org>
43411
43412         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43413         s/S_ISNLK/S_ISLNK/.
43414
43415 2008-01-09  Bruno Haible  <bruno@clisp.org>
43416
43417         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43418         and other files.
43419         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43420         if it's only a guess.
43421         * modules/memmem: Simplify by depending on memmem-simple.
43422
43423 2008-01-09  Bruno Haible  <bruno@clisp.org>
43424
43425         Work around OpenBSD 4.0 tdelete() bug.
43426         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43427         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43428         macros and don't redefine the enum values.
43429         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43430         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43431         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43432
43433 2008-01-09  Bruno Haible  <bruno@clisp.org>
43434
43435         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43436         (main): Don't perform the tests if setlocale did not install a UTF-8
43437         locale. Needed on OpenBSD 4.0.
43438         * modules/wcwidth-tests (Depends-on): Add localcharset.
43439
43440 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43441
43442         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43443         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43444         * NEWS: announce this.
43445         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43446
43447 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43448         and Eric Blake  <ebb9@byu.net>
43449
43450         Add memmem-simple module.
43451         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43452         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43453         * modules/memmem-simple: New file.
43454         * modules/memmem (Description): Tweak.
43455         * MODULES.html.sh (string handling): Mention new module.
43456         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43457         addressed by memmem-simple.
43458         * NEWS: Document the difference.
43459
43460 2008-01-09  Eric Blake  <ebb9@byu.net>
43461
43462         Give gcc some memmem optimization hints.
43463         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43464         (strcasestr): Declare as pure.
43465         * modules/memmem (Maintainer): Claim my implementation.
43466
43467 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43468
43469         Support AIX 6.1 and higher.
43470         * build-aux/config.libpath: Likewise.
43471         * build-aux/config.rpath: Likewise.
43472
43473 2008-01-08  Jim Meyering  <meyering@redhat.com>
43474             Bruno Haible  <bruno@clisp.org>
43475
43476         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43477         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43478         Reported by Peter Fales in
43479         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43480
43481 2008-01-08  Bruno Haible  <bruno@clisp.org>
43482
43483         * modules/unictype/category-of (Depends-on): Add
43484         unictype/category-none.
43485         * modules/unictype/category-and-tests (Depends-on): Add
43486         unictype/category-{L,N,Lu,Nd}.
43487         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43488         * modules/unictype/category-or-tests (Depends-on): Add
43489         unictype/category-{L,N}.
43490         * modules/unictype/category-name-tests (Depends-on): Add
43491         unictype/category-{Z,Nl}.
43492         Reported by Simon Josefsson.
43493
43494 2008-01-08  Bruno Haible  <bruno@clisp.org>
43495
43496         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43497         convention better.
43498         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43499         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43500         Reported by Peter Miller <millerp@canb.auug.org.au>.
43501
43502 2008-01-08  Eric Blake  <ebb9@byu.net>
43503
43504         Rewrite memmem to guarantee linear complexity without malloc.
43505         * lib/memmem.c (memmem): Use Two-Way rather than
43506         Knuth-Morris-Pratt, to allow O(1) space usage.
43507         (critical_factorization, two_way_short_needle)
43508         (two_way_long_needle): New functions.
43509         (knuth_morris_pratt): Delete.
43510         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43511         Add stdint.
43512         * tests/test-memmem.c (main): Add tests for periodic needle and
43513         sublinear performance.
43514         * doc/functions/memmem.texi (memmem): Document other deficiencies
43515         in cygwin and older glibc.
43516
43517 2008-01-08  Bruno Haible  <bruno@clisp.org>
43518
43519         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
43520         augmentation.
43521
43522 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
43523
43524         Add a configure time option: --disable-acl.
43525         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
43526         AC_ARG_ENABLE(acl).
43527
43528 2008-01-06  Simon Josefsson  <simon@josefsson.org>
43529
43530         * tests/test-localename.c: Don't include obsolete "setenv.h".
43531
43532         * modules/localename-tests (Depends-on): Need unsetenv.
43533
43534 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43535
43536         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
43537
43538 2008-01-06  Colin Watson  <cjwatson@debian.org>
43539
43540         * users.txt: Add man-db.
43541
43542 2008-01-07  Bruno Haible  <bruno@clisp.org>
43543
43544         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
43545         previous section name.
43546
43547 2008-01-07  Bruno Haible  <bruno@clisp.org>
43548
43549         * lib/progname.c (set_program_name): Don't strip off a leading
43550         "lt-" prefix outside a .libs directory.
43551         Suggested by Paul Eggert.
43552
43553 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
43554             Bruno Haible  <bruno@clisp.org>
43555
43556         Improve memory cleanup in 'relocatable' module.
43557         * lib/relocatable.h (compute_curr_prefix): Change return type to
43558         'char *'.
43559         * lib/relocatable.c (compute_curr_prefix): Change return type to
43560         'char *'. Free curr_installdir after use.
43561         (relocate): Free curr_prefix_better after use.
43562         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
43563
43564 2008-01-01  Bruno Haible  <bruno@clisp.org>
43565
43566         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
43567         failure on older glibc systems.
43568         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43569
43570 2008-01-05  Eric Blake  <ebb9@byu.net>
43571
43572         Avoid quadratic system memmem.
43573         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
43574         Reported by Ralf Wildenhues.
43575
43576         Fix memmem test for mingw.
43577         * modules/memmem-tests (configure.ac): Check for alarm.
43578         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
43579         it.
43580         * doc/functions/memmem.texi: New file.
43581         * doc/gnulib.texi (Function Substitutes): Add memmem.
43582         Reported by Bruno Haible.
43583
43584 2008-01-04  Bruno Haible  <bruno@clisp.org>
43585
43586         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
43587         Require gl_HEADER_STRINGS_H_DEFAULTS, not
43588         gl_HEADER_STRING_H_DEFAULTS.
43589
43590 2008-01-04  Eric Blake  <ebb9@byu.net>
43591
43592         Shorten duration of memmem test.
43593         * tests/test-memmem.c (main): Use alarm to declare failure if test
43594         is taking too long.
43595         Reported by Ralf Wildenhues.
43596
43597 2007-12-21  Simon Josefsson  <simon@josefsson.org>
43598
43599         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
43600         string, needed by strerror.
43601
43602 2008-01-03  Colin Watson  <cjwatson@debian.org>
43603             Bruno Haible  <bruno@clisp.org>
43604
43605         * doc/gnulib-tool.texi (Localization): New section.
43606
43607 2008-01-02  Bruno Haible  <bruno@clisp.org>
43608
43609         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
43610         variables to 'unsigned char *' type.
43611         Reported by Paul Eggert.
43612
43613 2008-01-02  Jim Meyering  <jim@meyering.net>
43614
43615         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
43616
43617 2007-12-31  Jim Meyering  <jim@meyering.net>
43618
43619         Avoid use of private FTS type name.
43620         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
43621
43622 2007-12-30  Karl Berry  <karl@gnu.org>
43623
43624         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
43625         work around defect in Texinfo and/or the standalone Info browser.
43626
43627 2007-12-30  Bruno Haible  <bruno@clisp.org>
43628
43629         Unify 5 copies of the KMP code.
43630         * lib/str-kmp.h: New file.
43631         * lib/c-strcasestr.c: Include str-kmp.h.
43632         (knuth_morris_pratt): Remove function.
43633         (c_strcasestr): Update.
43634         * lib/c-strstr.c: Include str-kmp.h.
43635         (knuth_morris_pratt): Remove function.
43636         (c_strcasestr): Update.
43637         * lib/mbscasestr.c: Include str-kmp.h.
43638         (knuth_morris_pratt_unibyte): Remove function.
43639         * lib/mbsstr.c: Include str-kmp.h.
43640         (knuth_morris_pratt_unibyte): Remove function.
43641         * lib/strcasestr.c: Include str-kmp.h.
43642         (knuth_morris_pratt): Remove function.
43643         (strcasestr): Update.
43644         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
43645         * modules/c-strstr (Files): Likewise.
43646         * modules/mbscasestr (Files): Likewise.
43647         * modules/mbsstr (Files): Likewise.
43648         * modules/strcasestr (Files): Likewise.
43649         Suggested by Paul Eggert.
43650
43651 2007-12-30  Bruno Haible  <bruno@clisp.org>
43652
43653         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
43654         defined.
43655
43656 2007-12-30  Bruno Haible  <bruno@clisp.org>
43657
43658         * lib/xmalloca.h: Include xalloc.h.
43659         (xnmalloca): New macro.
43660
43661 2007-12-30  Bruno Haible  <bruno@clisp.org>
43662
43663         * lib/malloca.h (nmalloca): New macro.
43664         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
43665         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
43666         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
43667         knuth_morris_pratt_multibyte): Likewise.
43668         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
43669         knuth_morris_pratt_multibyte): Likewise.
43670         * lib/memmem.c (knuth_morris_pratt): Likewise.
43671         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
43672
43673 2007-12-25  Bruno Haible  <bruno@clisp.org>
43674
43675         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
43676         * lib/glob.c: Don't include openat.h.
43677         (link_exists2_p): Add back the code that deals with the
43678         !GLOB_ALTDIRFUNC case.
43679         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
43680         let it do the filename concatenation.
43681         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
43682         * modules/glob (Depends-on): Remove openat.
43683
43684 2007-12-31  Bruno Haible  <bruno@clisp.org>
43685
43686         * modules/dirfd (License): Change to LGPLv2+.
43687         Approved by Jim Meyering.
43688
43689 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43690
43691         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43692         when multiplying M by sizeof (size_t).
43693
43694 2007-12-10  Martin Lambers  <marlam@marlam.de>
43695
43696         Override getpagesize on mingw.
43697         * lib/getpagesize.c: New file.
43698         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43699         * modules/getpagesize (Files): Add lib/getpagesize.c.
43700         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43702         REPLACE_GETPAGESIZE.
43703         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43704
43705 2007-12-25  Bruno Haible  <bruno@clisp.org>
43706
43707         * modules/localcharset (Notice): New field.
43708         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43709         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43710
43711 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43712             Bruno Haible  <bruno@clisp.org>
43713
43714         Avoid using the syntax symbol() in formatted documentation.
43715         * MODULES.html.sh (func_module): When replacing symbol() with a
43716         hyperlink, remove the parentheses. Show an error if some remain.
43717         Recognize and render the '...' syntax.
43718         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43719         Rework. Add paragraph about GCC's inlining.
43720         * doc/alloca.texi: Likewise.
43721         * doc/error.texi: Remove parentheses from symbol reference.
43722         * doc/gnulib-intro.texi: Likewise.
43723         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43724         * modules/fnmatch (Description): Reword to say "the ... function".
43725         * modules/full-read (Description): Likewise.
43726         * modules/full-write (Description): Likewise.
43727         * modules/safe-read (Description): Likewise.
43728         * modules/safe-write (Description): Likewise.
43729         * modules/strchrnul (Description): Likewise.
43730         * modules/trim (Description): Likewise.
43731         * modules/error (Description): Remove parentheses from symbol
43732         references.
43733         * modules/verror (Description): Likewise.
43734         Reported by Karl Berry.
43735
43736 2007-12-25  Bruno Haible  <bruno@clisp.org>
43737
43738         Fixup after 2007-10-16 commit.
43739         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43740
43741 2007-12-24  Bruno Haible  <bruno@clisp.org>
43742
43743         Make --enable-relocatable work with DESTDIR.
43744         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43745         to compute installdir from destprog.
43746         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43747         also set the RELOC_DESTDIR variable.
43748         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43749
43750 2007-12-24  Bruno Haible  <bruno@clisp.org>
43751
43752         Fix link error due to xalloc_die().
43753         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43754         of xreadlink.
43755         * lib/relocwrapper.c: Update comments.
43756         * build-aux/install-reloc: Remove xreadlink.c from file list.
43757         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43758         xreadlink.c.
43759         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43760
43761 2007-12-24  Bruno Haible  <bruno@clisp.org>
43762
43763         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43764         * lib/setenv.h: Remove file.
43765         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43766         lib/setenv.h.
43767         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43768         (Depends-on): Add stdlib.
43769         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43770         gl_FUNC_UNSETENV.
43771         (Include): Replace setenv.h with <stdlib.h>.
43772         * modules/unsetenv: New file.
43773         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43774         * lib/unsetenv.c: Include <stdlib.h> first.
43775         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43776         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43777         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43778         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43779         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43780         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43782         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43783         * doc/functions/unsetenv.texi: Update.
43784         * modules/xsetenv (Depends-on): Add unsetenv.
43785         * modules/getdate (Depends-on): Likewise.
43786         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43787         * lib/xsetenv.c: Don't include setenv.h.
43788         * lib/getdate.y: Likewise.
43789         * lib/relocwrapper.c: Likewise.
43790         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43791         (Depends-on): Add stdlib.
43792         * NEWS: Mention the changes.
43793         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43794
43795 2007-12-23  Bruno Haible  <bruno@clisp.org>
43796
43797         * lib/memmem.c (memmem): Use lowercase variable names. Tab
43798         indentation.
43799
43800 2007-12-23  Bruno Haible  <bruno@clisp.org>
43801
43802         * lib/c-strcasestr.c: Add more comments.
43803         * lib/c-strstr.c: Likewise.
43804         * lib/mbscasestr.c: Likewise.
43805         * lib/mbsstr.c: Likewise.
43806         * lib/strcasestr.c: Likewise.
43807         * lib/memmem.c: Likewise.
43808
43809 2007-12-23  Bruno Haible  <bruno@clisp.org>
43810
43811         * tests/test-memmem.c: Include <string.h> first.
43812
43813 2007-12-22  Bruno Haible  <bruno@clisp.org>
43814
43815         * gnulib-tool (func_create_testdir): Change $auxdir while generating
43816         the contents of $testsbase.
43817         Reported by Ralf Wildenhues.
43818
43819 2007-12-22  Bruno Haible  <bruno@clisp.org>
43820
43821         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
43822         two variables local_ldadd_before, local_ldadd_last.
43823
43824 2007-12-20  Eric Blake  <ebb9@byu.net>
43825
43826         Work around circular library issue when cross-compiling.
43827         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
43828         that progname.o does not need to pull in rpl_memcmp.
43829
43830 2007-12-19  Eric Blake  <ebb9@byu.net>
43831
43832         Fix memmem to avoid O(n^2) worst-case complexity.
43833         * lib/memmem.c (knuth_morris_pratt): New function.
43834         (memmem): Use it if first few naive iterations fail.
43835         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
43836         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
43837         * modules/memchr (License): Likewise.
43838         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
43839         malloca.
43840         * tests/test-memmem.c: Rewrite, borrowing ideas from
43841         test-mbsstr1.c; the old version wouldn't even compile!
43842         * modules/memmem-tests: New file.
43843         * lib/string.in.h (rpl_memmem): Add declaration.
43844         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
43845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
43846         REPLACE_MEMMEM.
43847
43848 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43849
43850         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
43851         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
43852         before any system include files, and undef after them all.  This
43853         should fix a problem on VMS reported by John E. Malmberg in
43854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
43855
43856 2007-12-17  Eric Blake  <ebb9@byu.net>
43857
43858         Revert addition of verify, for BSD/OS.
43859         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
43860         can't handle large files, for the sake of obsolete platforms.
43861         * modules/fseeko (Depends-on): Remove verify.
43862         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
43863         * doc/functions/ftello.texi (ftello): Likewise.
43864         * doc/functions/fgetpos.texi (fgetpos): Likewise.
43865         Reported by Larry Jones.
43866
43867 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
43868
43869         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
43870         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
43871
43872 2007-12-17  Jim Meyering  <meyering@redhat.com>
43873
43874         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
43875         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
43876         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
43877         * modules/getcwd (Depends-on): Add openat.
43878         Reported by Petr Salinger.
43879
43880 2007-12-17  Bruno Haible  <bruno@clisp.org>
43881
43882         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
43883         avoid a segmentation fault of the configure test on x86_64 systems.
43884
43885 2007-12-15  Jim Meyering  <meyering@redhat.com>
43886
43887         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
43888
43889 2007-12-13  Eric Blake  <ebb9@byu.net>
43890
43891         Another fseek test.
43892         * tests/test-fseek.c (main): Also test ungetc handling.
43893         * tests/test-fseeko.c (main): Likewise.
43894         * modules/fseeko (Depends-on): Add verify.
43895         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
43896         large.
43897         Reported by Larry Jones.
43898
43899         Fix fseeko on mingw.
43900         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
43901         seek.
43902
43903         Beef up fseek tests.
43904         * tests/test-fseek.c (main): Also test eof handling.
43905         * tests/test-fseeko.c (main): Likewise.
43906         Reported by Larry Jones.
43907
43908 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
43909
43910         Fix fseeko on BSD-based platforms.
43911         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
43912         successful seek.
43913
43914 2007-12-12  Eric Blake  <ebb9@byu.net>
43915
43916         Allow circular dependency of separate libtests.a
43917         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
43918         when use_libtests.
43919
43920 2007-12-11  Eric Blake  <ebb9@byu.net>
43921
43922         Fix bug with -0.0L in previous patch.
43923         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
43924         * tests/test-isnan.c (main): Also test on zeroes.
43925         * tests/test-isnanf.c (main): Likewise.
43926         * tests/test-isnanl.h (main): Likewise.
43927
43928         Detect pseudo-denormals on x86 even when cross-compiling.
43929         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
43930         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
43931         invalid bit patterns that happen to satisfy ==.
43932
43933         Avoid link failures with separate libtests.a.
43934         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
43935         last, to satisfy circular dependencies.
43936
43937 2007-12-11  Eric Blake  <ebb9@byu.net>
43938         and Bruno Haible  <bruno@clisp.org>
43939
43940         Fix OpenBSD 4.0 <float.h> handling of long double.
43941         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
43942         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
43943         * doc/headers/float.texi (float.h): Document OpenBSD bug.
43944
43945 2007-12-11  Jim Meyering  <meyering@redhat.com>
43946
43947         * users.txt: Add libvirt.
43948
43949         Support versions of autoconf prior to 2.59c.
43950         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
43951         if it is not already defined.
43952
43953 2007-12-09  Bruno Haible  <bruno@clisp.org>
43954
43955         Let 'gnulib-tool --import' collect sources needed for the tests in
43956         tests/ rather than in lib/.
43957         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
43958         argument. If true, add rules to generate libtests.a, and put libtests.a
43959         into $(LDADD). Consider source files in subdirectories and set
43960         uses_subdirs.
43961         (func_emit_initmacro_start, func_emit_initmacro_end,
43962         func_emit_initmacro_done): Pass all arguments explicitly.
43963         (func_import): Determine two module lists main_modules,
43964         testsrelated_modules. Determine use_libtests. Determine two variables
43965         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
43966         instead of just sed_transform_lib_file. Determine two variables
43967         main_files and testsrelated_files. Compute 'files' as the union of
43968         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
43969         func_add_or_update. In the generated gnulib-comp.m4, collect the
43970         object files for tests/ in different variables than those for lib/.
43971         Substitute LIBTESTS_LIBDEPS.
43972         (func_create_testdir): Combine the uses_subdirs results from
43973         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
43974
43975 2007-12-09  Bruno Haible  <bruno@clisp.org>
43976
43977         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
43978         the build-aux directory.
43979
43980 2007-12-09  Bruno Haible  <bruno@clisp.org>
43981
43982         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
43983         introduced on 2006-09-09.
43984
43985 2007-12-07  Jim Meyering  <meyering@redhat.com>
43986
43987         Let these macros work also with autoconf-2.59.
43988         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
43989         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
43990         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43991
43992 2007-12-06  Jim Meyering  <meyering@redhat.com>
43993
43994         Avoid a configure-time syntax error in gl_FUNC_ACL.
43995         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
43996         function in each branch, before testing the cache variable.
43997
43998 2007-12-04  Eric Blake  <ebb9@byu.net>
43999
44000         Make scripts executable.
44001         * build-aux/config.guess: Add execute permissions.
44002         * build-aux/config.sub: Likewise.
44003         * build-aux/gendocs.sh: Likewise.
44004
44005         Fix frexp on mingw.
44006         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44007         cross-compiling.
44008         * doc/functions/frexp.texi (frexp): Document the bug.
44009
44010         Make cygwin fseeko check more reliable.
44011         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44012         version numbers, rather than unrelated feature check.
44013         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44014         * doc/functions/ftello.texi (ftello): Likewise.
44015         Reported by Bruno Haible.
44016
44017         * m4/strerror.m4: Bump version number.
44018
44019 2007-12-03  Bruno Haible  <bruno@clisp.org>
44020
44021         * doc/functions/mprotect.texi: Mention the mingw problem.
44022
44023 2007-12-03  Eric Blake  <ebb9@byu.net>
44024
44025         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44026         REPLACE_STRERROR is initialized before this macro.
44027
44028 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44029
44030         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44031         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44032         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44033         put -lsec in even for programs other than 'ls'.  This fixes a problem
44034         for gettext reported by Bruno Haible in
44035         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44036         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44037         Add support for Solaris 10.  This isn't efficient, but should get the
44038         job done for now.
44039
44040 2007-12-03  James Youngman  <jay@gnu.org>
44041
44042         * doc/regexprops-generic.texi: change "an close-group" to "a
44043         close-group" and "illegal" to "not allowed".
44044
44045 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44046
44047         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44048         pr_byname.h. Needed for the rare case when the maintainer has done
44049         "make maintainer-clean" in the source directory and then attempts a
44050         build outside the source directory.
44051         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44052         scripts_byname.h.
44053
44054 2007-12-02  Martin Lambers <marlam@marlam.de>
44055             Bruno Haible  <bruno@clisp.org>
44056
44057         * lib/getpagesize.h: Remove file.
44058         * lib/unistd.in.h: Include declaration of getpagesize here.
44059         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44060         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44061         HAVE_SYS_PARAM_H.
44062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44063         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44064         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44065         (Depends-on): Add unistd.
44066         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44067         (Include): Use <unistd.h> instead of getpagesize.h.
44068         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44069         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44070         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44071         gl_GETPAGESIZE invocation, already handled by module dependency.
44072         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44073
44074 2007-12-02  Bruno Haible  <bruno@clisp.org>
44075
44076         * modules/strings-tests: New file.
44077         * tests/test-strings.c: New file.
44078
44079         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44080         * lib/strings.in.h: New file.
44081         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44082         * m4/strings_h.m4: New file.
44083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44084         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44085         * modules/strings: New file.
44086         * modules/string (Makefile.am): Update.
44087         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44088         Reported by Karl Berry.
44089
44090 2007-12-01  Eric Blake  <ebb9@byu.net>
44091
44092         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44093         accomodate fix in cygwin 1.5.25.
44094
44095 2007-12-01  Jim Meyering  <meyering@redhat.com>
44096
44097         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44098         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44099         that would inhibit utf8-optimization of a regexp containing line-
44100         or buffer-anchors, e.g., `^', `$'.
44101
44102 2007-11-30  Bruno Haible  <bruno@clisp.org>
44103
44104         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44105         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44106         glthread_recursive_lock_init.
44107         * lib/lock.c (glthread_recursive_lock_init)
44108         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44109         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44110
44111 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44112
44113         New function qset_acl, like set_acl but with syscall semantics.
44114         * lib/acl.h (qset_acl): New decl.
44115         * lib/acl.c (qset_acl): New function.
44116         (set_acl): Use new function.  Use more-consistent diagnostics.
44117
44118 2007-11-28  Jim Meyering  <meyering@redhat.com>
44119
44120         * modules/physmem (License): Change from GPL to LGPLv2+.
44121
44122 2007-11-26  Bruno Haible  <bruno@clisp.org>
44123
44124         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44125         'long double' type has excess precision.
44126         Reported by Jim Meyering in
44127         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44128
44129 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44130
44131         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44132         Sync from <http://gnu.org/licenses>.
44133         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44134         with license text from same location.
44135         * doc/maintain.texi, doc/standards.texi:  Sync from
44136         <http://savannah.gnu.org/projects/gnustandards>.
44137
44138 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44139         and Jim Meyering  <meyering@redhat.com>
44140
44141         Adjust getdate' grammar to accept a slightly more regular language.
44142         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44143         Before, the former was rejected.
44144         * lib/getdate.y (digits_to_date_time): New function, factored
44145         out of ...
44146         (number): ...here.  Just call digits_to_date_time.
44147         (hybrid): New non-terminal to handle an <unsigned number,
44148         signed relative offset> sequence consistently.
44149
44150 2007-11-18  Jim Meyering  <meyering@redhat.com>
44151
44152         Pull my changes from coreutils:
44153         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44154         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44155         use of $gnulib_tool_option_extras, so that it's separated from the
44156         preceding argument.
44157
44158         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44159         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44160         parent destination directories before copying a file into place.
44161
44162 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44163
44164         bootstrap: work also with 4-argument variant of AC_INIT
44165         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44166
44167 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44168
44169         Port test-getaddrinfo to Solaris.
44170         Problem reported by Bruno Haible in
44171         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44172         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44173         explanation of setting 'hints'.
44174         Don't reject an implementation merely because it returns EAI_SERVICE.
44175         (EAI_SERVICE): Define to 0 if not defined.
44176
44177 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44178
44179         The license of gnu-make and posix-shell is now "GPLed build tool".
44180         * modules/gnu-make (License): Likewise.
44181         * modules/posix-shell (License): Likewise.
44182
44183         New module posix-shell, for determining a POSIX shell
44184         or perhaps something that is close enough to a POSIX shell.
44185         * m4/posix-shell.m4: New file.
44186         * modules/posix-shell: New file.
44187
44188         * MODULES.html.sh: Mention new module.
44189
44190         New module gnu-make, for determining whether we're using GNU Make.
44191         * m4/gnu-make.m4: New file.
44192         * modules/gnu-make: New file.
44193         * MODULES.html.sh: Mention new module.
44194
44195 2007-11-14  Jim Meyering  <meyering@redhat.com>
44196
44197         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44198         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44199         use this macro to create a function _definition_.
44200         Remove useless "#undef ARGMATCH_DIE".
44201
44202 2007-11-14  Bruno Haible  <bruno@clisp.org>
44203
44204         * lib/config.charset: Update for OpenBSD 4.1.
44205         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44206
44207 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44208
44209         Document 64-bit #if problems in stdint.texi.
44210         * doc/headers/stdint.texi (stdint.h): Mention problems with
44211         64-bit-#if, and how to work around them.
44212
44213         Don't insist on 'long long int' support in the preprocessor.  It
44214         breaks too many things.  For example, PRIdMAX still uses a 'long
44215         long int' format with the latest Sun compiler, even though
44216         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44217         preprocessor problem.  This causes the latest coreutils to dump
44218         core on Solaris 10 sparc with the Sun C compiler.
44219         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44220         the troublesome expressions at configure-time, not at #if-time.
44221         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44222         preprocessor.
44223         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44224         compile-time C checks, done at 'configure'-time.
44225         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44226         * modules/inttypes (Makefile): Substitute the new symbols that
44227         gl_INTTYPES_H now generates.
44228         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44229
44230 2007-11-12  Bruno Haible  <bruno@clisp.org>
44231
44232         Tests for Unicode character classification functions.
44233
44234         * modules/unictype/bidicategory-byname-tests: New file.
44235         * modules/unictype/bidicategory-name-tests: New file.
44236         * modules/unictype/bidicategory-of-tests: New file.
44237         * modules/unictype/bidicategory-test-tests: New file.
44238         * modules/unictype/block-list-tests: New file.
44239         * modules/unictype/block-of-tests: New file.
44240         * modules/unictype/block-test-tests: New file.
44241         * modules/unictype/category-C-tests: New file.
44242         * modules/unictype/category-Cc-tests: New file.
44243         * modules/unictype/category-Cf-tests: New file.
44244         * modules/unictype/category-Cn-tests: New file.
44245         * modules/unictype/category-Co-tests: New file.
44246         * modules/unictype/category-Cs-tests: New file.
44247         * modules/unictype/category-L-tests: New file.
44248         * modules/unictype/category-Ll-tests: New file.
44249         * modules/unictype/category-Lm-tests: New file.
44250         * modules/unictype/category-Lo-tests: New file.
44251         * modules/unictype/category-Lt-tests: New file.
44252         * modules/unictype/category-Lu-tests: New file.
44253         * modules/unictype/category-M-tests: New file.
44254         * modules/unictype/category-Mc-tests: New file.
44255         * modules/unictype/category-Me-tests: New file.
44256         * modules/unictype/category-Mn-tests: New file.
44257         * modules/unictype/category-N-tests: New file.
44258         * modules/unictype/category-Nd-tests: New file.
44259         * modules/unictype/category-Nl-tests: New file.
44260         * modules/unictype/category-No-tests: New file.
44261         * modules/unictype/category-P-tests: New file.
44262         * modules/unictype/category-Pc-tests: New file.
44263         * modules/unictype/category-Pd-tests: New file.
44264         * modules/unictype/category-Pe-tests: New file.
44265         * modules/unictype/category-Pf-tests: New file.
44266         * modules/unictype/category-Pi-tests: New file.
44267         * modules/unictype/category-Po-tests: New file.
44268         * modules/unictype/category-Ps-tests: New file.
44269         * modules/unictype/category-S-tests: New file.
44270         * modules/unictype/category-Sc-tests: New file.
44271         * modules/unictype/category-Sk-tests: New file.
44272         * modules/unictype/category-Sm-tests: New file.
44273         * modules/unictype/category-So-tests: New file.
44274         * modules/unictype/category-Z-tests: New file.
44275         * modules/unictype/category-Zl-tests: New file.
44276         * modules/unictype/category-Zp-tests: New file.
44277         * modules/unictype/category-Zs-tests: New file.
44278         * modules/unictype/category-and-not-tests: New file.
44279         * modules/unictype/category-and-tests: New file.
44280         * modules/unictype/category-byname-tests: New file.
44281         * modules/unictype/category-name-tests: New file.
44282         * modules/unictype/category-none-tests: New file.
44283         * modules/unictype/category-of-tests: New file.
44284         * modules/unictype/category-or-tests: New file.
44285         * modules/unictype/category-test-withtable-tests: New file.
44286         * modules/unictype/combining-class-tests: New file.
44287         * modules/unictype/ctype-alnum-tests: New file.
44288         * modules/unictype/ctype-alpha-tests: New file.
44289         * modules/unictype/ctype-blank-tests: New file.
44290         * modules/unictype/ctype-cntrl-tests: New file.
44291         * modules/unictype/ctype-digit-tests: New file.
44292         * modules/unictype/ctype-graph-tests: New file.
44293         * modules/unictype/ctype-lower-tests: New file.
44294         * modules/unictype/ctype-print-tests: New file.
44295         * modules/unictype/ctype-punct-tests: New file.
44296         * modules/unictype/ctype-space-tests: New file.
44297         * modules/unictype/ctype-upper-tests: New file.
44298         * modules/unictype/ctype-xdigit-tests: New file.
44299         * modules/unictype/decimal-digit-tests: New file.
44300         * modules/unictype/digit-tests: New file.
44301         * modules/unictype/mirror-tests: New file.
44302         * modules/unictype/numeric-tests: New file.
44303         * modules/unictype/property-alphabetic-tests: New file.
44304         * modules/unictype/property-ascii-hex-digit-tests: New file.
44305         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44306         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44307         * modules/unictype/property-bidi-block-separator-tests: New file.
44308         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44309         * modules/unictype/property-bidi-common-separator-tests: New file.
44310         * modules/unictype/property-bidi-control-tests: New file.
44311         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44312         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44313         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44314         * modules/unictype/property-bidi-european-digit-tests: New file.
44315         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44316         * modules/unictype/property-bidi-left-to-right-tests: New file.
44317         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44318         * modules/unictype/property-bidi-other-neutral-tests: New file.
44319         * modules/unictype/property-bidi-pdf-tests: New file.
44320         * modules/unictype/property-bidi-segment-separator-tests: New file.
44321         * modules/unictype/property-bidi-whitespace-tests: New file.
44322         * modules/unictype/property-byname-tests: New file.
44323         * modules/unictype/property-combining-tests: New file.
44324         * modules/unictype/property-composite-tests: New file.
44325         * modules/unictype/property-currency-symbol-tests: New file.
44326         * modules/unictype/property-dash-tests: New file.
44327         * modules/unictype/property-decimal-digit-tests: New file.
44328         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44329         * modules/unictype/property-deprecated-tests: New file.
44330         * modules/unictype/property-diacritic-tests: New file.
44331         * modules/unictype/property-extender-tests: New file.
44332         * modules/unictype/property-format-control-tests: New file.
44333         * modules/unictype/property-grapheme-base-tests: New file.
44334         * modules/unictype/property-grapheme-extend-tests: New file.
44335         * modules/unictype/property-grapheme-link-tests: New file.
44336         * modules/unictype/property-hex-digit-tests: New file.
44337         * modules/unictype/property-hyphen-tests: New file.
44338         * modules/unictype/property-id-continue-tests: New file.
44339         * modules/unictype/property-id-start-tests: New file.
44340         * modules/unictype/property-ideographic-tests: New file.
44341         * modules/unictype/property-ids-binary-operator-tests: New file.
44342         * modules/unictype/property-ids-trinary-operator-tests: New file.
44343         * modules/unictype/property-ignorable-control-tests: New file.
44344         * modules/unictype/property-iso-control-tests: New file.
44345         * modules/unictype/property-join-control-tests: New file.
44346         * modules/unictype/property-left-of-pair-tests: New file.
44347         * modules/unictype/property-line-separator-tests: New file.
44348         * modules/unictype/property-logical-order-exception-tests: New file.
44349         * modules/unictype/property-lowercase-tests: New file.
44350         * modules/unictype/property-math-tests: New file.
44351         * modules/unictype/property-non-break-tests: New file.
44352         * modules/unictype/property-not-a-character-tests: New file.
44353         * modules/unictype/property-numeric-tests: New file.
44354         * modules/unictype/property-other-alphabetic-tests: New file.
44355         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44356         * modules/unictype/property-other-grapheme-extend-tests: New file.
44357         * modules/unictype/property-other-id-continue-tests: New file.
44358         * modules/unictype/property-other-id-start-tests: New file.
44359         * modules/unictype/property-other-lowercase-tests: New file.
44360         * modules/unictype/property-other-math-tests: New file.
44361         * modules/unictype/property-other-uppercase-tests: New file.
44362         * modules/unictype/property-paired-punctuation-tests: New file.
44363         * modules/unictype/property-paragraph-separator-tests: New file.
44364         * modules/unictype/property-pattern-syntax-tests: New file.
44365         * modules/unictype/property-pattern-white-space-tests: New file.
44366         * modules/unictype/property-private-use-tests: New file.
44367         * modules/unictype/property-punctuation-tests: New file.
44368         * modules/unictype/property-quotation-mark-tests: New file.
44369         * modules/unictype/property-radical-tests: New file.
44370         * modules/unictype/property-sentence-terminal-tests: New file.
44371         * modules/unictype/property-soft-dotted-tests: New file.
44372         * modules/unictype/property-space-tests: New file.
44373         * modules/unictype/property-terminal-punctuation-tests: New file.
44374         * modules/unictype/property-test-tests: New file.
44375         * modules/unictype/property-titlecase-tests: New file.
44376         * modules/unictype/property-unassigned-code-value-tests: New file.
44377         * modules/unictype/property-unified-ideograph-tests: New file.
44378         * modules/unictype/property-uppercase-tests: New file.
44379         * modules/unictype/property-variation-selector-tests: New file.
44380         * modules/unictype/property-white-space-tests: New file.
44381         * modules/unictype/property-xid-continue-tests: New file.
44382         * modules/unictype/property-xid-start-tests: New file.
44383         * modules/unictype/property-zero-width-tests: New file.
44384         * modules/unictype/scripts-tests: New file.
44385         * modules/unictype/syntax-c-ident-tests: New file.
44386         * modules/unictype/syntax-c-whitespace-tests: New file.
44387         * modules/unictype/syntax-java-ident-tests: New file.
44388         * modules/unictype/syntax-java-whitespace-tests: New file.
44389         * tests/unictype/test-bidi_byname.c: New file.
44390         * tests/unictype/test-bidi_name.c: New file.
44391         * tests/unictype/test-bidi_of.c: New file.
44392         * tests/unictype/test-bidi_test.c: New file.
44393         * tests/unictype/test-block_list.c: New file.
44394         * tests/unictype/test-block_of.c: New file.
44395         * tests/unictype/test-block_test.c: New file.
44396         * tests/unictype/test-categ_and.c: New file.
44397         * tests/unictype/test-categ_and_not.c: New file.
44398         * tests/unictype/test-categ_byname.c: New file.
44399         * tests/unictype/test-categ_name.c: New file.
44400         * tests/unictype/test-categ_none.c: New file.
44401         * tests/unictype/test-categ_of.c: New file.
44402         * tests/unictype/test-categ_or.c: New file.
44403         * tests/unictype/test-categ_test_withtable.c: New file.
44404         * tests/unictype/test-combining.c: New file.
44405         * tests/unictype/test-decdigit.c: New file.
44406         * tests/unictype/test-digit.c: New file.
44407         * tests/unictype/test-mirror.c: New file.
44408         * tests/unictype/test-numeric.c: New file.
44409         * tests/unictype/test-pr_byname.c: New file.
44410         * tests/unictype/test-pr_test.c: New file.
44411         * tests/unictype/test-predicate-part1.h: New file.
44412         * tests/unictype/test-predicate-part2.h: New file.
44413         * tests/unictype/test-scripts.c: New file.
44414         * tests/unictype/test-sy_c_ident.c: New file.
44415         * tests/unictype/test-sy_java_ident.c: New file.
44416
44417         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44418         for Unicode 5.0.0.
44419         * tests/unictype/test-categ_Cc.c: Likewise.
44420         * tests/unictype/test-categ_Cf.c: Likewise.
44421         * tests/unictype/test-categ_Cn.c: Likewise.
44422         * tests/unictype/test-categ_Co.c: Likewise.
44423         * tests/unictype/test-categ_Cs.c: Likewise.
44424         * tests/unictype/test-categ_L.c: Likewise.
44425         * tests/unictype/test-categ_Ll.c: Likewise.
44426         * tests/unictype/test-categ_Lm.c: Likewise.
44427         * tests/unictype/test-categ_Lo.c: Likewise.
44428         * tests/unictype/test-categ_Lt.c: Likewise.
44429         * tests/unictype/test-categ_Lu.c: Likewise.
44430         * tests/unictype/test-categ_M.c: Likewise.
44431         * tests/unictype/test-categ_Mc.c: Likewise.
44432         * tests/unictype/test-categ_Me.c: Likewise.
44433         * tests/unictype/test-categ_Mn.c: Likewise.
44434         * tests/unictype/test-categ_N.c: Likewise.
44435         * tests/unictype/test-categ_Nd.c: Likewise.
44436         * tests/unictype/test-categ_Nl.c: Likewise.
44437         * tests/unictype/test-categ_No.c: Likewise.
44438         * tests/unictype/test-categ_P.c: Likewise.
44439         * tests/unictype/test-categ_Pc.c: Likewise.
44440         * tests/unictype/test-categ_Pd.c: Likewise.
44441         * tests/unictype/test-categ_Pe.c: Likewise.
44442         * tests/unictype/test-categ_Pf.c: Likewise.
44443         * tests/unictype/test-categ_Pi.c: Likewise.
44444         * tests/unictype/test-categ_Po.c: Likewise.
44445         * tests/unictype/test-categ_Ps.c: Likewise.
44446         * tests/unictype/test-categ_S.c: Likewise.
44447         * tests/unictype/test-categ_Sc.c: Likewise.
44448         * tests/unictype/test-categ_Sk.c: Likewise.
44449         * tests/unictype/test-categ_Sm.c: Likewise.
44450         * tests/unictype/test-categ_So.c: Likewise.
44451         * tests/unictype/test-categ_Z.c: Likewise.
44452         * tests/unictype/test-categ_Zl.c: Likewise.
44453         * tests/unictype/test-categ_Zp.c: Likewise.
44454         * tests/unictype/test-categ_Zs.c: Likewise.
44455         * tests/unictype/test-ctype_alnum.c: Likewise.
44456         * tests/unictype/test-ctype_alpha.c: Likewise.
44457         * tests/unictype/test-ctype_blank.c: Likewise.
44458         * tests/unictype/test-ctype_cntrl.c: Likewise.
44459         * tests/unictype/test-ctype_digit.c: Likewise.
44460         * tests/unictype/test-ctype_graph.c: Likewise.
44461         * tests/unictype/test-ctype_lower.c: Likewise.
44462         * tests/unictype/test-ctype_print.c: Likewise.
44463         * tests/unictype/test-ctype_punct.c: Likewise.
44464         * tests/unictype/test-ctype_space.c: Likewise.
44465         * tests/unictype/test-ctype_upper.c: Likewise.
44466         * tests/unictype/test-ctype_xdigit.c: Likewise.
44467         * tests/unictype/test-decdigit.h: Likewise.
44468         * tests/unictype/test-digit.h: Likewise.
44469         * tests/unictype/test-numeric.h: Likewise.
44470         * tests/unictype/test-pr_alphabetic.c: Likewise.
44471         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44472         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44473         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44474         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44475         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44476         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44477         * tests/unictype/test-pr_bidi_control.c: Likewise.
44478         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44479         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44480         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44481         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44482         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44483         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44484         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44485         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44486         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44487         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44488         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44489         * tests/unictype/test-pr_combining.c: Likewise.
44490         * tests/unictype/test-pr_composite.c: Likewise.
44491         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44492         * tests/unictype/test-pr_dash.c: Likewise.
44493         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44494         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44495         * tests/unictype/test-pr_deprecated.c: Likewise.
44496         * tests/unictype/test-pr_diacritic.c: Likewise.
44497         * tests/unictype/test-pr_extender.c: Likewise.
44498         * tests/unictype/test-pr_format_control.c: Likewise.
44499         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44500         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44501         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44502         * tests/unictype/test-pr_hex_digit.c: Likewise.
44503         * tests/unictype/test-pr_hyphen.c: Likewise.
44504         * tests/unictype/test-pr_id_continue.c: Likewise.
44505         * tests/unictype/test-pr_id_start.c: Likewise.
44506         * tests/unictype/test-pr_ideographic.c: Likewise.
44507         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44508         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44509         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44510         * tests/unictype/test-pr_iso_control.c: Likewise.
44511         * tests/unictype/test-pr_join_control.c: Likewise.
44512         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44513         * tests/unictype/test-pr_line_separator.c: Likewise.
44514         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44515         * tests/unictype/test-pr_lowercase.c: Likewise.
44516         * tests/unictype/test-pr_math.c: Likewise.
44517         * tests/unictype/test-pr_non_break.c: Likewise.
44518         * tests/unictype/test-pr_not_a_character.c: Likewise.
44519         * tests/unictype/test-pr_numeric.c: Likewise.
44520         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44521         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
44522         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
44523         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44524         * tests/unictype/test-pr_other_id_start.c: Likewise.
44525         * tests/unictype/test-pr_other_lowercase.c: Likewise.
44526         * tests/unictype/test-pr_other_math.c: Likewise.
44527         * tests/unictype/test-pr_other_uppercase.c: Likewise.
44528         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
44529         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
44530         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
44531         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
44532         * tests/unictype/test-pr_private_use.c: Likewise.
44533         * tests/unictype/test-pr_punctuation.c: Likewise.
44534         * tests/unictype/test-pr_quotation_mark.c: Likewise.
44535         * tests/unictype/test-pr_radical.c: Likewise.
44536         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44537         * tests/unictype/test-pr_soft_dotted.c: Likewise.
44538         * tests/unictype/test-pr_space.c: Likewise.
44539         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44540         * tests/unictype/test-pr_titlecase.c: Likewise.
44541         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44542         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44543         * tests/unictype/test-pr_uppercase.c: Likewise.
44544         * tests/unictype/test-pr_variation_selector.c: Likewise.
44545         * tests/unictype/test-pr_white_space.c: Likewise.
44546         * tests/unictype/test-pr_xid_continue.c: Likewise.
44547         * tests/unictype/test-pr_xid_start.c: Likewise.
44548         * tests/unictype/test-pr_zero_width.c: Likewise.
44549         * tests/unictype/test-sy_c_whitespace.c: Likewise.
44550         * tests/unictype/test-sy_java_whitespace.c: Likewise.
44551
44552 2007-11-12  Bruno Haible  <bruno@clisp.org>
44553
44554         Unicode character classification functions.
44555         * lib/unictype.h: New file.
44556         * modules/unictype/base: New file.
44557         * modules/unictype/category-L: New file.
44558         * modules/unictype/category-Lu: New file.
44559         * modules/unictype/category-Ll: New file.
44560         * modules/unictype/category-Lt: New file.
44561         * modules/unictype/category-Lm: New file.
44562         * modules/unictype/category-Lo: New file.
44563         * modules/unictype/category-M: New file.
44564         * modules/unictype/category-Mn: New file.
44565         * modules/unictype/category-Mc: New file.
44566         * modules/unictype/category-Me: New file.
44567         * modules/unictype/category-N: New file.
44568         * modules/unictype/category-Nd: New file.
44569         * modules/unictype/category-Nl: New file.
44570         * modules/unictype/category-No: New file.
44571         * modules/unictype/category-P: New file.
44572         * modules/unictype/category-Pc: New file.
44573         * modules/unictype/category-Pd: New file.
44574         * modules/unictype/category-Ps: New file.
44575         * modules/unictype/category-Pe: New file.
44576         * modules/unictype/category-Pi: New file.
44577         * modules/unictype/category-Pf: New file.
44578         * modules/unictype/category-Po: New file.
44579         * modules/unictype/category-S: New file.
44580         * modules/unictype/category-Sm: New file.
44581         * modules/unictype/category-Sc: New file.
44582         * modules/unictype/category-Sk: New file.
44583         * modules/unictype/category-So: New file.
44584         * modules/unictype/category-Z: New file.
44585         * modules/unictype/category-Zs: New file.
44586         * modules/unictype/category-Zl: New file.
44587         * modules/unictype/category-Zp: New file.
44588         * modules/unictype/category-C: New file.
44589         * modules/unictype/category-Cc: New file.
44590         * modules/unictype/category-Cf: New file.
44591         * modules/unictype/category-Cs: New file.
44592         * modules/unictype/category-Co: New file.
44593         * modules/unictype/category-Cn: New file.
44594         * modules/unictype/category-or: New file.
44595         * modules/unictype/category-of: New file.
44596         * modules/unictype/category-test: New file.
44597         * modules/unictype/category-test-withtable: New file.
44598         * modules/unictype/category-byname: New file.
44599         * modules/unictype/category-none: New file.
44600         * modules/unictype/category-and: New file.
44601         * modules/unictype/category-and-not: New file.
44602         * modules/unictype/category-name: New file.
44603         * modules/unictype/combining-class: New file.
44604         * modules/unictype/category-all: New file.
44605         * modules/unictype/bidicategory-all: New file.
44606         * modules/unictype/bidicategory-byname: New file.
44607         * modules/unictype/bidicategory-name: New file.
44608         * modules/unictype/bidicategory-of: New file.
44609         * modules/unictype/bidicategory-test: New file.
44610         * modules/unictype/decimal-digit: New file.
44611         * modules/unictype/digit: New file.
44612         * modules/unictype/numeric: New file.
44613         * modules/unictype/mirror: New file.
44614         * modules/unictype/property-white-space: New file.
44615         * modules/unictype/property-alphabetic: New file.
44616         * modules/unictype/property-other-alphabetic: New file.
44617         * modules/unictype/property-not-a-character: New file.
44618         * modules/unictype/property-default-ignorable-code-point: New file.
44619         * modules/unictype/property-other-default-ignorable-code-point: New
44620         file.
44621         * modules/unictype/property-deprecated: New file.
44622         * modules/unictype/property-logical-order-exception: New file.
44623         * modules/unictype/property-variation-selector: New file.
44624         * modules/unictype/property-private-use: New file.
44625         * modules/unictype/property-unassigned-code-value: New file.
44626         * modules/unictype/property-uppercase: New file.
44627         * modules/unictype/property-other-uppercase: New file.
44628         * modules/unictype/property-lowercase: New file.
44629         * modules/unictype/property-other-lowercase: New file.
44630         * modules/unictype/property-titlecase: New file.
44631         * modules/unictype/property-soft-dotted: New file.
44632         * modules/unictype/property-id-start: New file.
44633         * modules/unictype/property-other-id-start: New file.
44634         * modules/unictype/property-id-continue: New file.
44635         * modules/unictype/property-other-id-continue: New file.
44636         * modules/unictype/property-xid-start: New file.
44637         * modules/unictype/property-xid-continue: New file.
44638         * modules/unictype/property-pattern-white-space: New file.
44639         * modules/unictype/property-pattern-syntax: New file.
44640         * modules/unictype/property-join-control: New file.
44641         * modules/unictype/property-grapheme-base: New file.
44642         * modules/unictype/property-grapheme-extend: New file.
44643         * modules/unictype/property-other-grapheme-extend: New file.
44644         * modules/unictype/property-grapheme-link: New file.
44645         * modules/unictype/property-bidi-control: New file.
44646         * modules/unictype/property-bidi-left-to-right: New file.
44647         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
44648         * modules/unictype/property-bidi-arabic-right-to-left: New file.
44649         * modules/unictype/property-bidi-european-digit: New file.
44650         * modules/unictype/property-bidi-eur-num-separator: New file.
44651         * modules/unictype/property-bidi-eur-num-terminator: New file.
44652         * modules/unictype/property-bidi-arabic-digit: New file.
44653         * modules/unictype/property-bidi-common-separator: New file.
44654         * modules/unictype/property-bidi-block-separator: New file.
44655         * modules/unictype/property-bidi-segment-separator: New file.
44656         * modules/unictype/property-bidi-whitespace: New file.
44657         * modules/unictype/property-bidi-non-spacing-mark: New file.
44658         * modules/unictype/property-bidi-boundary-neutral: New file.
44659         * modules/unictype/property-bidi-pdf: New file.
44660         * modules/unictype/property-bidi-embedding-or-override: New file.
44661         * modules/unictype/property-bidi-other-neutral: New file.
44662         * modules/unictype/property-hex-digit: New file.
44663         * modules/unictype/property-ascii-hex-digit: New file.
44664         * modules/unictype/property-ideographic: New file.
44665         * modules/unictype/property-unified-ideograph: New file.
44666         * modules/unictype/property-radical: New file.
44667         * modules/unictype/property-ids-binary-operator: New file.
44668         * modules/unictype/property-ids-trinary-operator: New file.
44669         * modules/unictype/property-zero-width: New file.
44670         * modules/unictype/property-space: New file.
44671         * modules/unictype/property-non-break: New file.
44672         * modules/unictype/property-iso-control: New file.
44673         * modules/unictype/property-format-control: New file.
44674         * modules/unictype/property-dash: New file.
44675         * modules/unictype/property-hyphen: New file.
44676         * modules/unictype/property-punctuation: New file.
44677         * modules/unictype/property-line-separator: New file.
44678         * modules/unictype/property-paragraph-separator: New file.
44679         * modules/unictype/property-quotation-mark: New file.
44680         * modules/unictype/property-sentence-terminal: New file.
44681         * modules/unictype/property-terminal-punctuation: New file.
44682         * modules/unictype/property-currency-symbol: New file.
44683         * modules/unictype/property-math: New file.
44684         * modules/unictype/property-other-math: New file.
44685         * modules/unictype/property-paired-punctuation: New file.
44686         * modules/unictype/property-left-of-pair: New file.
44687         * modules/unictype/property-combining: New file.
44688         * modules/unictype/property-composite: New file.
44689         * modules/unictype/property-decimal-digit: New file.
44690         * modules/unictype/property-numeric: New file.
44691         * modules/unictype/property-diacritic: New file.
44692         * modules/unictype/property-extender: New file.
44693         * modules/unictype/property-ignorable-control: New file.
44694         * modules/unictype/property-test: New file.
44695         * modules/unictype/property-byname: New file.
44696         * modules/unictype/property-all: New file.
44697         * modules/unictype/scripts: New file.
44698         * modules/unictype/scripts-all: New file.
44699         * modules/unictype/block-of: New file.
44700         * modules/unictype/block-test: New file.
44701         * modules/unictype/block-list: New file.
44702         * modules/unictype/block-all: New file.
44703         * modules/unictype/syntax-c-whitespace: New file.
44704         * modules/unictype/syntax-java-whitespace: New file.
44705         * modules/unictype/syntax-c-ident: New file.
44706         * modules/unictype/syntax-java-ident: New file.
44707         * modules/unictype/ctype-alnum: New file.
44708         * modules/unictype/ctype-alpha: New file.
44709         * modules/unictype/ctype-cntrl: New file.
44710         * modules/unictype/ctype-digit: New file.
44711         * modules/unictype/ctype-graph: New file.
44712         * modules/unictype/ctype-lower: New file.
44713         * modules/unictype/ctype-print: New file.
44714         * modules/unictype/ctype-punct: New file.
44715         * modules/unictype/ctype-space: New file.
44716         * modules/unictype/ctype-upper: New file.
44717         * modules/unictype/ctype-xdigit: New file.
44718         * modules/unictype/ctype-blank: New file.
44719         * lib/unictype/bidi_byname.c: New file.
44720         * lib/unictype/bidi_name.c: New file.
44721         * lib/unictype/bidi_of.c: New file.
44722         * lib/unictype/bidi_test.c: New file.
44723         * lib/unictype/bitmap.h: New file.
44724         * lib/unictype/block_test.c: New file.
44725         * lib/unictype/blocks.c: New file.
44726         * lib/unictype/categ_C.c: New file.
44727         * lib/unictype/categ_Cc.c: New file.
44728         * lib/unictype/categ_Cf.c: New file.
44729         * lib/unictype/categ_Cn.c: New file.
44730         * lib/unictype/categ_Co.c: New file.
44731         * lib/unictype/categ_Cs.c: New file.
44732         * lib/unictype/categ_L.c: New file.
44733         * lib/unictype/categ_Ll.c: New file.
44734         * lib/unictype/categ_Lm.c: New file.
44735         * lib/unictype/categ_Lo.c: New file.
44736         * lib/unictype/categ_Lt.c: New file.
44737         * lib/unictype/categ_Lu.c: New file.
44738         * lib/unictype/categ_M.c: New file.
44739         * lib/unictype/categ_Mc.c: New file.
44740         * lib/unictype/categ_Me.c: New file.
44741         * lib/unictype/categ_Mn.c: New file.
44742         * lib/unictype/categ_N.c: New file.
44743         * lib/unictype/categ_Nd.c: New file.
44744         * lib/unictype/categ_Nl.c: New file.
44745         * lib/unictype/categ_No.c: New file.
44746         * lib/unictype/categ_P.c: New file.
44747         * lib/unictype/categ_Pc.c: New file.
44748         * lib/unictype/categ_Pd.c: New file.
44749         * lib/unictype/categ_Pe.c: New file.
44750         * lib/unictype/categ_Pf.c: New file.
44751         * lib/unictype/categ_Pi.c: New file.
44752         * lib/unictype/categ_Po.c: New file.
44753         * lib/unictype/categ_Ps.c: New file.
44754         * lib/unictype/categ_S.c: New file.
44755         * lib/unictype/categ_Sc.c: New file.
44756         * lib/unictype/categ_Sk.c: New file.
44757         * lib/unictype/categ_Sm.c: New file.
44758         * lib/unictype/categ_So.c: New file.
44759         * lib/unictype/categ_Z.c: New file.
44760         * lib/unictype/categ_Zl.c: New file.
44761         * lib/unictype/categ_Zp.c: New file.
44762         * lib/unictype/categ_Zs.c: New file.
44763         * lib/unictype/categ_and.c: New file.
44764         * lib/unictype/categ_and_not.c: New file.
44765         * lib/unictype/categ_byname.c: New file.
44766         * lib/unictype/categ_name.c: New file.
44767         * lib/unictype/categ_none.c: New file.
44768         * lib/unictype/categ_of.c: New file.
44769         * lib/unictype/categ_or.c: New file.
44770         * lib/unictype/categ_test.c: New file.
44771         * lib/unictype/combining.c: New file.
44772         * lib/unictype/ctype_alnum.c: New file.
44773         * lib/unictype/ctype_alpha.c: New file.
44774         * lib/unictype/ctype_blank.c: New file.
44775         * lib/unictype/ctype_cntrl.c: New file.
44776         * lib/unictype/ctype_digit.c: New file.
44777         * lib/unictype/ctype_graph.c: New file.
44778         * lib/unictype/ctype_lower.c: New file.
44779         * lib/unictype/ctype_print.c: New file.
44780         * lib/unictype/ctype_punct.c: New file.
44781         * lib/unictype/ctype_space.c: New file.
44782         * lib/unictype/ctype_upper.c: New file.
44783         * lib/unictype/ctype_xdigit.c: New file.
44784         * lib/unictype/decdigit.c: New file.
44785         * lib/unictype/digit.c: New file.
44786         * lib/unictype/identsyntaxmap.h: New file.
44787         * lib/unictype/mirror.c: New file.
44788         * lib/unictype/numeric.c: New file.
44789         * lib/unictype/pr_alphabetic.c: New file.
44790         * lib/unictype/pr_ascii_hex_digit.c: New file.
44791         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44792         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
44793         * lib/unictype/pr_bidi_block_separator.c: New file.
44794         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
44795         * lib/unictype/pr_bidi_common_separator.c: New file.
44796         * lib/unictype/pr_bidi_control.c: New file.
44797         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
44798         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
44799         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
44800         * lib/unictype/pr_bidi_european_digit.c: New file.
44801         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
44802         * lib/unictype/pr_bidi_left_to_right.c: New file.
44803         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
44804         * lib/unictype/pr_bidi_other_neutral.c: New file.
44805         * lib/unictype/pr_bidi_pdf.c: New file.
44806         * lib/unictype/pr_bidi_segment_separator.c: New file.
44807         * lib/unictype/pr_bidi_whitespace.c: New file.
44808         * lib/unictype/pr_byname.c: New file.
44809         * lib/unictype/pr_byname.gperf: New file.
44810         * lib/unictype/pr_combining.c: New file.
44811         * lib/unictype/pr_composite.c: New file.
44812         * lib/unictype/pr_currency_symbol.c: New file.
44813         * lib/unictype/pr_dash.c: New file.
44814         * lib/unictype/pr_decimal_digit.c: New file.
44815         * lib/unictype/pr_default_ignorable_code_point.c: New file.
44816         * lib/unictype/pr_deprecated.c: New file.
44817         * lib/unictype/pr_diacritic.c: New file.
44818         * lib/unictype/pr_extender.c: New file.
44819         * lib/unictype/pr_format_control.c: New file.
44820         * lib/unictype/pr_grapheme_base.c: New file.
44821         * lib/unictype/pr_grapheme_extend.c: New file.
44822         * lib/unictype/pr_grapheme_link.c: New file.
44823         * lib/unictype/pr_hex_digit.c: New file.
44824         * lib/unictype/pr_hyphen.c: New file.
44825         * lib/unictype/pr_id_continue.c: New file.
44826         * lib/unictype/pr_id_start.c: New file.
44827         * lib/unictype/pr_ideographic.c: New file.
44828         * lib/unictype/pr_ids_binary_operator.c: New file.
44829         * lib/unictype/pr_ids_trinary_operator.c: New file.
44830         * lib/unictype/pr_ignorable_control.c: New file.
44831         * lib/unictype/pr_iso_control.c: New file.
44832         * lib/unictype/pr_join_control.c: New file.
44833         * lib/unictype/pr_left_of_pair.c: New file.
44834         * lib/unictype/pr_line_separator.c: New file.
44835         * lib/unictype/pr_logical_order_exception.c: New file.
44836         * lib/unictype/pr_lowercase.c: New file.
44837         * lib/unictype/pr_math.c: New file.
44838         * lib/unictype/pr_non_break.c: New file.
44839         * lib/unictype/pr_not_a_character.c: New file.
44840         * lib/unictype/pr_numeric.c: New file.
44841         * lib/unictype/pr_other_alphabetic.c: New file.
44842         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
44843         * lib/unictype/pr_other_grapheme_extend.c: New file.
44844         * lib/unictype/pr_other_id_continue.c: New file.
44845         * lib/unictype/pr_other_id_start.c: New file.
44846         * lib/unictype/pr_other_lowercase.c: New file.
44847         * lib/unictype/pr_other_math.c: New file.
44848         * lib/unictype/pr_other_uppercase.c: New file.
44849         * lib/unictype/pr_paired_punctuation.c: New file.
44850         * lib/unictype/pr_paragraph_separator.c: New file.
44851         * lib/unictype/pr_pattern_syntax.c: New file.
44852         * lib/unictype/pr_pattern_white_space.c: New file.
44853         * lib/unictype/pr_private_use.c: New file.
44854         * lib/unictype/pr_punctuation.c: New file.
44855         * lib/unictype/pr_quotation_mark.c: New file.
44856         * lib/unictype/pr_radical.c: New file.
44857         * lib/unictype/pr_sentence_terminal.c: New file.
44858         * lib/unictype/pr_soft_dotted.c: New file.
44859         * lib/unictype/pr_space.c: New file.
44860         * lib/unictype/pr_terminal_punctuation.c: New file.
44861         * lib/unictype/pr_test.c: New file.
44862         * lib/unictype/pr_titlecase.c: New file.
44863         * lib/unictype/pr_unassigned_code_value.c: New file.
44864         * lib/unictype/pr_unified_ideograph.c: New file.
44865         * lib/unictype/pr_uppercase.c: New file.
44866         * lib/unictype/pr_variation_selector.c: New file.
44867         * lib/unictype/pr_white_space.c: New file.
44868         * lib/unictype/pr_xid_continue.c: New file.
44869         * lib/unictype/pr_xid_start.c: New file.
44870         * lib/unictype/pr_zero_width.c: New file.
44871         * lib/unictype/scripts.c: New file.
44872         * lib/unictype/sy_c_ident.c: New file.
44873         * lib/unictype/sy_c_whitespace.c: New file.
44874         * lib/unictype/sy_java_ident.c: New file.
44875         * lib/unictype/sy_java_whitespace.c: New file.
44876
44877         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
44878         Unicode 5.0.0.
44879         * lib/unictype/blocks.h: Likewise.
44880         * lib/unictype/categ_C.h: Likewise.
44881         * lib/unictype/categ_Cc.h: Likewise.
44882         * lib/unictype/categ_Cf.h: Likewise.
44883         * lib/unictype/categ_Cn.h: Likewise.
44884         * lib/unictype/categ_Co.h: Likewise.
44885         * lib/unictype/categ_Cs.h: Likewise.
44886         * lib/unictype/categ_L.h: Likewise.
44887         * lib/unictype/categ_Ll.h: Likewise.
44888         * lib/unictype/categ_Lm.h: Likewise.
44889         * lib/unictype/categ_Lo.h: Likewise.
44890         * lib/unictype/categ_Lt.h: Likewise.
44891         * lib/unictype/categ_Lu.h: Likewise.
44892         * lib/unictype/categ_M.h: Likewise.
44893         * lib/unictype/categ_Mc.h: Likewise.
44894         * lib/unictype/categ_Me.h: Likewise.
44895         * lib/unictype/categ_Mn.h: Likewise.
44896         * lib/unictype/categ_N.h: Likewise.
44897         * lib/unictype/categ_Nd.h: Likewise.
44898         * lib/unictype/categ_Nl.h: Likewise.
44899         * lib/unictype/categ_No.h: Likewise.
44900         * lib/unictype/categ_P.h: Likewise.
44901         * lib/unictype/categ_Pc.h: Likewise.
44902         * lib/unictype/categ_Pd.h: Likewise.
44903         * lib/unictype/categ_Pe.h: Likewise.
44904         * lib/unictype/categ_Pf.h: Likewise.
44905         * lib/unictype/categ_Pi.h: Likewise.
44906         * lib/unictype/categ_Po.h: Likewise.
44907         * lib/unictype/categ_Ps.h: Likewise.
44908         * lib/unictype/categ_S.h: Likewise.
44909         * lib/unictype/categ_Sc.h: Likewise.
44910         * lib/unictype/categ_Sk.h: Likewise.
44911         * lib/unictype/categ_Sm.h: Likewise.
44912         * lib/unictype/categ_So.h: Likewise.
44913         * lib/unictype/categ_Z.h: Likewise.
44914         * lib/unictype/categ_Zl.h: Likewise.
44915         * lib/unictype/categ_Zp.h: Likewise.
44916         * lib/unictype/categ_Zs.h: Likewise.
44917         * lib/unictype/categ_of.h: Likewise.
44918         * lib/unictype/combining.h: Likewise.
44919         * lib/unictype/ctype_alnum.h: Likewise.
44920         * lib/unictype/ctype_alpha.h: Likewise.
44921         * lib/unictype/ctype_blank.h: Likewise.
44922         * lib/unictype/ctype_cntrl.h: Likewise.
44923         * lib/unictype/ctype_digit.h: Likewise.
44924         * lib/unictype/ctype_graph.h: Likewise.
44925         * lib/unictype/ctype_lower.h: Likewise.
44926         * lib/unictype/ctype_print.h: Likewise.
44927         * lib/unictype/ctype_punct.h: Likewise.
44928         * lib/unictype/ctype_space.h: Likewise.
44929         * lib/unictype/ctype_upper.h: Likewise.
44930         * lib/unictype/ctype_xdigit.h: Likewise.
44931         * lib/unictype/decdigit.h: Likewise.
44932         * lib/unictype/digit.h: Likewise.
44933         * lib/unictype/mirror.h: Likewise.
44934         * lib/unictype/numeric.h: Likewise.
44935         * lib/unictype/pr_alphabetic.h: Likewise.
44936         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44937         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44938         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44939         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44940         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44941         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44942         * lib/unictype/pr_bidi_control.h: Likewise.
44943         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44944         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44945         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44946         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44947         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44948         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44949         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44950         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44951         * lib/unictype/pr_bidi_pdf.h: Likewise.
44952         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44953         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44954         * lib/unictype/pr_combining.h: Likewise.
44955         * lib/unictype/pr_composite.h: Likewise.
44956         * lib/unictype/pr_currency_symbol.h: Likewise.
44957         * lib/unictype/pr_dash.h: Likewise.
44958         * lib/unictype/pr_decimal_digit.h: Likewise.
44959         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44960         * lib/unictype/pr_deprecated.h: Likewise.
44961         * lib/unictype/pr_diacritic.h: Likewise.
44962         * lib/unictype/pr_extender.h: Likewise.
44963         * lib/unictype/pr_format_control.h: Likewise.
44964         * lib/unictype/pr_grapheme_base.h: Likewise.
44965         * lib/unictype/pr_grapheme_extend.h: Likewise.
44966         * lib/unictype/pr_grapheme_link.h: Likewise.
44967         * lib/unictype/pr_hex_digit.h: Likewise.
44968         * lib/unictype/pr_hyphen.h: Likewise.
44969         * lib/unictype/pr_id_continue.h: Likewise.
44970         * lib/unictype/pr_id_start.h: Likewise.
44971         * lib/unictype/pr_ideographic.h: Likewise.
44972         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44973         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44974         * lib/unictype/pr_ignorable_control.h: Likewise.
44975         * lib/unictype/pr_iso_control.h: Likewise.
44976         * lib/unictype/pr_join_control.h: Likewise.
44977         * lib/unictype/pr_left_of_pair.h: Likewise.
44978         * lib/unictype/pr_line_separator.h: Likewise.
44979         * lib/unictype/pr_logical_order_exception.h: Likewise.
44980         * lib/unictype/pr_lowercase.h: Likewise.
44981         * lib/unictype/pr_math.h: Likewise.
44982         * lib/unictype/pr_non_break.h: Likewise.
44983         * lib/unictype/pr_not_a_character.h: Likewise.
44984         * lib/unictype/pr_numeric.h: Likewise.
44985         * lib/unictype/pr_other_alphabetic.h: Likewise.
44986         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44987         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44988         * lib/unictype/pr_other_id_continue.h: Likewise.
44989         * lib/unictype/pr_other_id_start.h: Likewise.
44990         * lib/unictype/pr_other_lowercase.h: Likewise.
44991         * lib/unictype/pr_other_math.h: Likewise.
44992         * lib/unictype/pr_other_uppercase.h: Likewise.
44993         * lib/unictype/pr_paired_punctuation.h: Likewise.
44994         * lib/unictype/pr_paragraph_separator.h: Likewise.
44995         * lib/unictype/pr_pattern_syntax.h: Likewise.
44996         * lib/unictype/pr_pattern_white_space.h: Likewise.
44997         * lib/unictype/pr_private_use.h: Likewise.
44998         * lib/unictype/pr_punctuation.h: Likewise.
44999         * lib/unictype/pr_quotation_mark.h: Likewise.
45000         * lib/unictype/pr_radical.h: Likewise.
45001         * lib/unictype/pr_sentence_terminal.h: Likewise.
45002         * lib/unictype/pr_soft_dotted.h: Likewise.
45003         * lib/unictype/pr_space.h: Likewise.
45004         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45005         * lib/unictype/pr_titlecase.h: Likewise.
45006         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45007         * lib/unictype/pr_unified_ideograph.h: Likewise.
45008         * lib/unictype/pr_uppercase.h: Likewise.
45009         * lib/unictype/pr_variation_selector.h: Likewise.
45010         * lib/unictype/pr_white_space.h: Likewise.
45011         * lib/unictype/pr_xid_continue.h: Likewise.
45012         * lib/unictype/pr_xid_start.h: Likewise.
45013         * lib/unictype/pr_zero_width.h: Likewise.
45014         * lib/unictype/scripts.h: Likewise.
45015         * lib/unictype/scripts_byname.gperf: Likewise.
45016         * lib/unictype/sy_c_ident.h: Likewise.
45017         * lib/unictype/sy_c_whitespace.h: Likewise.
45018         * lib/unictype/sy_java_ident.h: Likewise.
45019         * lib/unictype/sy_java_whitespace.h: Likewise.
45020
45021         * lib/unictype/Makefile: New file.
45022         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45023         glibc.
45024         * lib/unictype/3level.h: New file, copied from glibc.
45025         * lib/unictype/3levelbit.h: New file.
45026
45027 2007-11-11  Bruno Haible  <bruno@clisp.org>
45028
45029         * modules/gperf: New file.
45030         * modules/iconv_open (Depends-on): Add it.
45031         (Makefile.am): Remove the GPERF definition.
45032
45033 2007-11-11  Bruno Haible  <bruno@clisp.org>
45034
45035         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45036         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45037
45038 2007-11-11  Bruno Haible  <bruno@clisp.org>
45039
45040         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45041         (usage): Remove function.
45042
45043 2007-11-11  Bruno Haible  <bruno@clisp.org>
45044
45045         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45046         gl_FUNC_CEILF_LIBS.
45047         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45048         gl_FUNC_CEIL_LIBS.
45049         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45050         gl_FUNC_CEILL_LIBS.
45051         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45052         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45053         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45054
45055 2007-11-11  Bruno Haible  <bruno@clisp.org>
45056
45057         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45058         roundf were declared but do not exist on functions.
45059         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45060         roundl were declared but do not exist on functions.
45061         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45062         HAVE_FLOORL_AND_CEILL, respectively.
45063         Needed for Sun C on Solaris 10.
45064
45065 2007-11-11  Bruno Haible  <bruno@clisp.org>
45066
45067         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45068         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45069         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45070         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45071         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45072         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45073         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45074         HAVE_DECL_ROUNDF.
45075         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45076         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45078         of HAVE_DECL_ROUND*.
45079         * modules/math (Makefile.am): Update.
45080
45081 2007-11-10  Bruno Haible  <bruno@clisp.org>
45082
45083         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45084         ptrdiff_t as m4/intl.m4.
45085
45086 2007-11-10  Jim Meyering  <meyering@redhat.com>
45087
45088         Avoid link failure for the argmatch test.
45089         * tests/test-argmatch.c (usage): Define function to avoid a link
45090         failure: argmatch_die requires a usage function.
45091
45092 2007-11-09  Bruno Haible  <bruno@clisp.org>
45093
45094         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45095         * doc/functions/vsnprintf.texi: Likewise.
45096         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45097         with a size argument < 2.
45098
45099 2007-11-09  Bruno Haible  <bruno@clisp.org>
45100
45101         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45102         buffer. Fixes an inefficiency introduced on 2007-11-03.
45103
45104 2007-11-09  Bruno Haible  <bruno@clisp.org>
45105
45106         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45107         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45108
45109 2007-11-08  Jim Meyering  <meyering@redhat.com>
45110
45111         Change cache variable name prefix "jm_" to "gl_" everywhere.
45112         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45113         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45114         * m4/uptime.m4: s/gl_/jm_/
45115
45116 2007-11-07  Bruno Haible  <bruno@clisp.org>
45117
45118         Update to GNU gettext 0.17.
45119         * m4/intl.m4: Update to GNU gettext 0.17.
45120         * m4/po.m4: Likewise.
45121         * modules/gettext (Files): Remove m4/ulonglong.m4.
45122         (configure.ac): Require gettext infrastructure from version 0.17.
45123
45124 2007-11-06  Bruno Haible  <bruno@clisp.org>
45125
45126         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45127         symbolic values are not defined in a public header.
45128         * lib/freadable.c (freadable) [QNX]: Likewise.
45129         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45130         * lib/freading.c (freading) [QNX]: Likewise.
45131         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45132         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45133         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45134         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45135         Reported by Alain Magloire.
45136
45137         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45138
45139 2007-11-05  Bruno Haible  <bruno@clisp.org>
45140
45141         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45142         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45143         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45144         Reported by Eric Blake.
45145
45146 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45147             Bruno Haible  <bruno@clisp.org>
45148
45149         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45150         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45151         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45152         (malloc): Undefine also before including <stdlib.h>.
45153         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45154         Needed on OSF/1 4.0.
45155
45156 2007-11-05  Jim Meyering  <meyering@redhat.com>
45157
45158         git-version-gen: sync from coreutils.
45159         * build-aux/git-version-gen: Add comments.
45160         Change the first '-' to '.' in the snapshot version string,
45161         e.g., 6.9-377-08144 -> 6.9.377-08144
45162         Remove first parameter.
45163         Don't declare a version "-dirty" merely because a time
45164         stamp has changed.
45165
45166 2007-11-04  Bruno Haible  <bruno@clisp.org>
45167
45168         * lib/lock.h: Protect all macro definitions containing an 'if'
45169         statement through a "do { ... } while (0)".
45170         * lib/tls.h: Likewise.
45171
45172 2007-11-04  Bruno Haible  <bruno@clisp.org>
45173
45174         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45175
45176 2007-11-04  Bruno Haible  <bruno@clisp.org>
45177
45178         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45179         * modules/fprintf-posix (Depends-on): Add nocrash.
45180         * modules/snprintf-posix (Depends-on): Likewise.
45181         * modules/sprintf-posix (Depends-on): Likewise.
45182         * modules/vasnprintf-posix (Depends-on): Likewise.
45183         * modules/vasprintf-posix (Depends-on): Likewise.
45184         * modules/vfprintf-posix (Depends-on): Likewise.
45185         * modules/vsnprintf-posix (Depends-on): Likewise.
45186         * modules/vsprintf-posix (Depends-on): Likewise.
45187         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45188         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45189         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45190         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45191         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45192         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45193         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45194
45195 2007-11-04  Bruno Haible  <bruno@clisp.org>
45196
45197         * modules/nocrash: New file.
45198         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45199         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45200
45201 2007-11-04  Bruno Haible  <bruno@clisp.org>
45202
45203         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45204         precision handling.
45205         * tests/test-vasprintf-posix.c (test_function): Likewise.
45206         * tests/test-snprintf-posix.h (test_function): Likewise.
45207         * tests/test-sprintf-posix.h (test_function): Likewise.
45208
45209         Fix *printf behaviour for large precisions on mingw and BeOS.
45210         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45211         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45213         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45214         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45215         gl_PRINTF_PRECISION and test its result. Invoke
45216         gl_PREREQ_VASNPRINTF_PRECISION.
45217         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45218         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45219         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45220         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45221         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45222         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45223         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45224         * doc/functions/fprintf.texi: Update.
45225         * doc/functions/printf.texi: Update.
45226         * doc/functions/snprintf.texi: Update.
45227         * doc/functions/sprintf.texi: Update.
45228         * doc/functions/vfprintf.texi: Update.
45229         * doc/functions/vprintf.texi: Update.
45230         * doc/functions/vsnprintf.texi: Update.
45231         * doc/functions/vsprintf.texi: Update.
45232
45233 2007-11-04  Bruno Haible  <bruno@clisp.org>
45234
45235         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45236
45237 2007-11-04  Bruno Haible  <bruno@clisp.org>
45238
45239         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45240         Reported by Sylvain Beucler <beuc@gnu.org>.
45241
45242 2007-11-03  Bruno Haible  <bruno@clisp.org>
45243
45244         * tests/test-fprintf-posix2.sh: New file.
45245         * tests/test-fprintf-posix2.c: New file.
45246         * modules/fprintf-posix-tests (Files): Add them.
45247         (TESTS): Add test-fprintf-posix2.sh.
45248         (configure.ac): Check for getrlimit and setrlimit.
45249         (check_PROGRAMS): Add test-fprintf-posix2.
45250
45251         * tests/test-printf-posix2.sh: New file.
45252         * tests/test-printf-posix2.c: New file.
45253         * modules/printf-posix-tests (Files): Add them.
45254         (TESTS): Add test-printf-posix2.sh.
45255         (configure.ac): Check for getrlimit and setrlimit.
45256         (check_PROGRAMS): Add test-printf-posix2.
45257
45258         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45259         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45260         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45261         (decode_double): New function, copied from decode_long_double.
45262         (scale10_round_decimal_decoded): New function, extracted from
45263         scale10_round_decimal_long_double.
45264         (scale10_round_decimal_long_double): Use it.
45265         (scale10_round_decimal_double): New function.
45266         (floorlog10): New function.
45267         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45269         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45270         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45271         gl_PRINTF_ENOMEM and test its result. Invoke
45272         gl_PREREQ_VASNPRINTF_ENOMEM.
45273         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45275         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45276         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45277         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45279         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45280         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45281         * modules/snprintf-posix (Depends-on): Likewise.
45282         * modules/sprintf-posix (Depends-on): Likewise.
45283         * modules/vasnprintf-posix (Depends-on): Likewise.
45284         * modules/vasprintf-posix (Depends-on): Likewise.
45285         * modules/vfprintf-posix (Depends-on): Likewise.
45286         * modules/vsnprintf-posix (Depends-on): Likewise.
45287         * modules/vsprintf-posix (Depends-on): Likewise.
45288         * doc/functions/fprintf.texi: Update.
45289         * doc/functions/printf.texi: Update.
45290         * doc/functions/snprintf.texi: Update.
45291         * doc/functions/sprintf.texi: Update.
45292         * doc/functions/vfprintf.texi: Update.
45293         * doc/functions/vprintf.texi: Update.
45294         * doc/functions/vsnprintf.texi: Update.
45295         * doc/functions/vsprintf.texi: Update.
45296
45297 2007-11-03  Bruno Haible  <bruno@clisp.org>
45298
45299         * modules/frexp-nolibm-tests: New file.
45300
45301         * modules/frexp-nolibm: New file.
45302         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45303
45304 2007-11-03  Bruno Haible  <bruno@clisp.org>
45305
45306         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45307         value is C99 compliant.
45308         Needed for OSF/1 5.1.
45309
45310 2007-11-03  Bruno Haible  <bruno@clisp.org>
45311
45312         Fix out-of-memory handling of vasnprintf.
45313         * lib/printf-parse.c: Include <errno.h>.
45314         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45315         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45316         is already set.
45317
45318 2007-11-02  Eric Blake  <ebb9@byu.net>
45319
45320         Fix tests on cygwin.
45321         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45322
45323 2007-11-01  Bruno Haible  <bruno@clisp.org>
45324
45325         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45326         warning.
45327         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45328         needed for POSIX compatibility.
45329
45330 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45331
45332         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45333         for compatibility with GNU.
45334
45335 2007-11-01  Bruno Haible  <bruno@clisp.org>
45336
45337         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45338         (putenv): Renamed from rpl_putenv. Change argument type from
45339         'const char *' to 'char *'.
45340         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45341         of defining putenv in config.h, just set REPLACE_PUTENV.
45342         * modules/putenv (Depends-on): Add stdlib.
45343         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45344         (Include): Use <stdlib.h>.
45345         * lib/stdlib.in.h (putenv): New declaration.
45346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45347         REPLACE_PUTENV.
45348         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45349         REPLACE_PUTENV.
45350         Needed for MacOS X 10.5.0.
45351         Reported by Peter O'Gorman <peter@pogma.com>.
45352
45353 2007-11-01  Jim Meyering  <meyering@redhat.com>
45354
45355         Treat an empty date string exactly like "0".
45356         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45357         if the remaining date string (to be parsed) is empty, use "0".
45358         Reported by Mischa Molhoek and discussed in this thread:
45359         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45360
45361 2007-10-31  Bruno Haible  <bruno@clisp.org>
45362
45363         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45364         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45365         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45366         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45367         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45368         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45369
45370 2007-10-31  Bruno Haible  <bruno@clisp.org>
45371
45372         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45373         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45374         (AC_TYPE_LONG_LONG_INT): Use it.
45375         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45376         it as well.
45377         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45378         to m4/longlong.m4.
45379         * modules/stdint (Files): Remove m4/ulonglong.m4.
45380         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45381         m4/ulonglong.m4.
45382         * modules/strtoumax (Files): Likewise.
45383
45384 2007-10-30  Bruno Haible  <bruno@clisp.org>
45385
45386         * modules/xvasprintf-posix: New file.
45387         Suggested by Eric Blake.
45388
45389 2007-10-30  Bruno Haible  <bruno@clisp.org>
45390
45391         * modules/xprintf-posix-tests: New file.
45392         * tests/test-xprintf-posix.sh: New file.
45393         * tests/test-xprintf-posix.c: New file.
45394         * tests/test-xfprintf-posix.c: New file.
45395
45396         * modules/xprintf-posix: New file.
45397
45398 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45399
45400         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45401         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45402         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45403
45404 2007-10-29  Bruno Haible  <bruno@clisp.org>
45405
45406         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45407         contain the special marker '_cv_'.
45408         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45409         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45410         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45411         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45412         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45413         Reported by Ralf Wildenhues.
45414
45415 2007-10-29  Bruno Haible  <bruno@clisp.org>
45416
45417         * gnulib-tool (func_import): When --lgpl is not specified, set
45418         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45419         GPLv3.
45420         Reported by Simon Josefsson.
45421
45422 2007-10-28  Bruno Haible  <bruno@clisp.org>
45423
45424         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45425         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45426         HAVE_DECL_ISFINITE.
45427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45428         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45429         HAVE_DECL_ISFINITE.
45430
45431 2007-10-28  Bruno Haible  <bruno@clisp.org>
45432
45433         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45434         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45435
45436 2007-10-28  Bruno Haible  <bruno@clisp.org>
45437
45438         Fix link errors with Sun C 5.0 on Solaris 10.
45439         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45440         function is declared but not present in the compiler's libm.
45441         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45442         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45443         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45444         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45445         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45446         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45447         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45449         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45450         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45451         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45452         HAVE_DECL_FLOORL.
45453
45454 2007-10-28  Bruno Haible  <bruno@clisp.org>
45455
45456         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45457         gl_FUNC_FLOORL. Cache the result.
45458         (gl_FUNC_FLOORL): Use it.
45459         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45460         gl_FUNC_CEILL. Cache the result.
45461         (gl_FUNC_CEILL): Use it.
45462
45463         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45464         gl_FUNC_FLOOR. Cache the result.
45465         (gl_FUNC_FLOOR): Use it.
45466         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45467         gl_FUNC_CEIL. Cache the result.
45468         (gl_FUNC_CEIL): Use it.
45469
45470         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45471         gl_FUNC_FLOORF. Cache the result.
45472         (gl_FUNC_FLOORF): Use it.
45473         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45474         gl_FUNC_CEILF. Cache the result.
45475         (gl_FUNC_CEILF): Use it.
45476
45477 2007-10-28  Bruno Haible  <bruno@clisp.org>
45478
45479         * gnulib-tool: Allow specifying the LGPL version number through
45480         --lgpl=2 or --lgpl=3.
45481         (func_usage): Document --lgpl with argument.
45482         Handle --lgpl=... arguments.
45483         (func_import): Recognize also gl_LGPL calls with an argument. When
45484         --lgpl=2 is used and the module's license is just LGPL, report an
45485         error. Set sed_transform_lib_file according to the lgpl variable. In
45486         the generated files, use --lgpl or gl_LGPL invocations with argument,
45487         if necessary.
45488         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45489         an LGPv2+ license.
45490         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45491         gl_LGPL macro.
45492
45493 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45494             Bruno Haible  <bruno@clisp.org>
45495
45496         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45497         (u16_uctomb_aux): Likewise.
45498         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45499         !HAVE_INLINE.
45500         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45501
45502 2007-10-28  Bruno Haible  <bruno@clisp.org>
45503
45504         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45505         Invoke AM_GETTEXT_OPTION if it exists.
45506         * modules/vasprintf: Likewise.
45507         * modules/verror: Likewise.
45508         * modules/xprintf: Likewise.
45509         * modules/xvasprintf: Likewise.
45510
45511 2007-10-27  Ben Pfaff  <blp@gnu.org>
45512
45513         * lib/math.in.h: Define isfinite macro and prototypes for
45514         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45515         implementations.
45516         * m4/math_h.m4: New substitutions for isfinite module.
45517         * lib/isfinite.c: New file.
45518         * m4/isfinite.m4: New file.
45519         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
45520         * modules/isfinite: New file.
45521         * modules/isfinite-tests: New file.
45522         * tests/tests-isfinite.c: New file.
45523         * doc/functions/isfinite.texi: Mention isfinite module.
45524         * MODULES.html.sh: Mention new module.
45525
45526 2007-10-27  Ben Pfaff  <blp@gnu.org>
45527
45528         Ralf Wildenhues reported that Tru64 4.0D declares the round
45529         functions but does not have definitions.
45530         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
45531         cannot be found in any library, set the output variable to
45532         "missing" instead of "".
45533         * m4/round.m4: Also use our substitute if we cannot find round in
45534         any library, even if it is declared.
45535         * m4/roundf.m4: Likewise for roundf.
45536         * m4/roundl.m4: Likewise for roundl.
45537         * lib/math.in.h: Undefine roundf, round, roundl before defining
45538         their replacements, to allow for hypothetical systems where these
45539         may be defined as macros but not available in libraries.
45540
45541 2007-10-27  Bruno Haible  <bruno@clisp.org>
45542
45543         * doc/gnulib.texi: Invoke @firstparagraphindent.
45544         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
45545         changes in gnulib.
45546         (Source changes): New section.
45547
45548 2007-10-26  Bruno Haible  <bruno@clisp.org>
45549
45550         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
45551         borrowed from autoconf.
45552
45553 2007-10-26  Bruno Haible  <bruno@clisp.org>
45554
45555         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
45556         strerror returned the empty string. Needed on HP-UX 11.00.
45557
45558 2007-10-24  Micah Cowan  <micah@cowan.name>
45559
45560         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
45561         * build-aux/bootstrap: Remove support for now-unnecessary option,
45562         --cvs-user, and envvars CVS_USER, CVS_RSH.
45563
45564 2007-10-24  Jim Meyering  <meyering@redhat.com>
45565
45566         Avoid diagnostics from sha1sum when there is no cached checksum.
45567         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
45568         if the po.s1 file hasn't been created yet.
45569
45570         * build-aux/bootstrap: Sync from coreutils:
45571         2007-10-24  Jim Meyering  <meyering@redhat.com>
45572         Get gnulib from the git repository, not from an obsolete cvs one.
45573         * build-aux/bootstrap: Suggestion from Micah Cowan.
45574         2007-10-04  Jim Meyering  <jim@meyering.net>
45575         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
45576         (update_po_files): Work also when there are no .po files in po/.
45577
45578 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45579
45580         * README: Append ".git" to git and cg examples.
45581         Problem reported by Benoit Sigoure.
45582
45583 2007-10-23  Micah Cowan  <micah@cowan.name>
45584
45585         * users.txt: Add wget.
45586
45587 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45588
45589         Fix linking of some unistdio tests on FreeBSD.
45590         * modules/unistdio/u16-vsnprintf-tests
45591         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
45592         * modules/unistdio/u16-vsprintf-tests
45593         (test_u16_vsnprintf1_LDADD): Likewise.
45594         * modules/unistdio/u32-vsnprintf-tests
45595         (test_u32_vsnprintf1_LDADD): Likewise.
45596         * modules/unistdio/u32-vsprintf-tests
45597         (test_u32_vsprintf1_LDADD): Likewise.
45598         * modules/unistdio/u8-vsnprintf-tests
45599         (test_u8_vsnprintf1_LDADD): Likewise.
45600         * modules/unistdio/u8-vsprintf-tests
45601         (test_u8_vsprintf1_LDADD): Likewise.
45602         * modules/unistdio/ulc-vsnprintf-tests
45603         (test_ulc_vsnprintf1_LDADD): Likewise.
45604         * modules/unistdio/ulc-vsprintf-tests
45605         (test_ulc_vsprintf1_LDADD): Likewise.
45606
45607         Fix linking of some uniconv tests on FreeBSD.
45608         * modules/uniconv/u16-conv-from-enc-tests
45609         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
45610         * modules/uniconv/u16-conv-to-enc-tests
45611         (test_u16_conv_to_enc_LDADD): Likewise.
45612         * modules/uniconv/u16-strconv-from-enc-tests
45613         (test_u16_strconv_from_enc_LDADD): Likewise.
45614         * modules/uniconv/u16-strconv-to-enc-tests
45615         (test_u16_strconv_to_enc_LDADD): Likewise.
45616         * modules/uniconv/u32-conv-from-enc-tests
45617         (test_u32_conv_from_enc_LDADD): Likewise.
45618         * modules/uniconv/u32-conv-to-enc-tests
45619         (test_u32_conv_to_enc_LDADD): Likewise.
45620         * modules/uniconv/u32-strconv-from-enc-tests
45621         (test_u32_strconv_from_enc_LDADD): Likewise.
45622         * modules/uniconv/u32-strconv-to-enc-tests
45623         (test_u32_strconv_to_enc_LDADD): Likewise.
45624         * modules/uniconv/u8-conv-from-enc-tests
45625         (test_u8_conv_from_enc_LDADD): Likewise.
45626         * modules/uniconv/u8-conv-to-enc-tests
45627         (test_u8_conv_to_enc_LDADD): Likewise.
45628         * modules/uniconv/u8-strconv-from-enc-tests
45629         (test_u8_strconv_from_enc_LDADD): Likewise.
45630         * modules/uniconv/u8-strconv-to-enc-tests
45631         (test_u8_strconv_to_enc_LDADD): Likewise.
45632
45633 2007-10-22  Bruno Haible  <bruno@clisp.org>
45634
45635         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
45636         size.
45637
45638 2007-10-22  Eric Blake  <ebb9@byu.net>
45639
45640         Tweak x*printf documentation.
45641         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
45642         variable name and comments.
45643         Suggested by Bruno Haible.
45644
45645 2007-10-22  Bruno Haible  <bruno@clisp.org>
45646
45647         * lib/acl.c (copy_acl): Fix file name in comment.
45648
45649 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45650
45651         Fix Tru64 problem with stdbool.h.
45652         * lib/stdbool.in.h (false, true):
45653         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
45654         Don't declare as an enum in this situation; it runs afoul of Tru64.
45655         Problem reported by Steven M. Schweda in
45656         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
45657
45658 2007-10-22  Eric Blake  <ebb9@byu.net>
45659
45660         Also wrap vf?printf.
45661         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
45662         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
45663         (xvprintf, xvfprintf): New functions.
45664
45665 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45666
45667         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
45668         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
45669
45670         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
45671         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
45672
45673 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45674
45675         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
45676         by Bruno Haible.
45677
45678 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45679
45680         * lib/getloadavg.c
45681         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
45682         Undef `sys' after including sys/table.h, for Tru64 4.0D.
45683
45684         * tests/test-i-ring.c: Work for C89.
45685
45686 2007-10-22  Bruno Haible  <bruno@clisp.org>
45687
45688         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
45689         -1u, in preprocessor expression, so that we don't test for the bug
45690         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45692
45693 2007-10-22  Eric Blake  <ebb9@byu.net>
45694
45695         * tests/test-yesno.sh: Silence stderr during test.
45696
45697 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45698
45699         * modules/crypto/gc-camellia: New file.
45700
45701         * m4/gc-camellia.m4: New file.
45702
45703         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45704
45705         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45706
45707 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45708
45709         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45710         --help to stdout.  Reported by sms@antinode.org (Steven
45711         M. Schweda).
45712
45713 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45714
45715         * users.txt: Fix link to libksba.
45716
45717 2007-10-21  Ben Pfaff  <blp@gnu.org>
45718
45719         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45720         round.c roundf implementation that depends on floorf and ceilf to
45721         be tested unconditionally.
45722
45723 2007-10-21  Ben Pfaff  <blp@gnu.org>
45724
45725         * m4/check-libm-func.m4: Removed.
45726         * m4/check-math-lib.m4: New file.
45727         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45728         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45729         definition and lack of AC_LIBOBJ([roundf]).
45730         * m4/roundl.m4: Ditto, and similarly for roundl.
45731         * modules/round: Reference new m4 file.
45732         * modules/roundf: Ditto.
45733         * modules/roundl: Ditto.
45734         * tests/test-round2.c (main): Use ROUND instead of round.
45735         Bug report from Bruno Haible.
45736
45737 2007-10-21  Bruno Haible  <bruno@clisp.org>
45738
45739         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45740         context.
45741
45742 2007-10-21  Bruno Haible  <bruno@clisp.org>
45743
45744         * tests/test-wcwidth.c (main): Allow negative result for some control
45745         characters.
45746
45747         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45748         Needed on OSF/1 5.1.
45749
45750 2007-10-21  Bruno Haible  <bruno@clisp.org>
45751
45752         * tests/test-floorf1.c: Include isnanf.h.
45753         (main): Use isnanf() instead of isnan().
45754         * tests/test-ceilf1.c: Include isnanf.h.
45755         (main): Use isnanf() instead of isnan().
45756         * tests/test-truncf1.c: Include isnanf.h.
45757         (main): Use isnanf() instead of isnan().
45758         * tests/test-roundf1.c: Include isnanf.h.
45759         (main): Use isnanf() instead of isnan().
45760
45761 2007-10-21  Eric Blake  <ebb9@byu.net>
45762
45763         * users.txt: Update URL for m4.
45764
45765 2007-10-21  Bruno Haible  <bruno@clisp.org>
45766
45767         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45768
45769 2007-10-21  Bruno Haible  <bruno@clisp.org>
45770
45771         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45772         Git's management files if the CVS files are not present.
45773
45774 2007-10-20  Bruno Haible  <bruno@clisp.org>
45775
45776         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45777         gcc-3.4.x.
45778
45779 2007-10-20  Ben Pfaff  <blp@gnu.org>
45780
45781         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45782         implementations.
45783         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45784         * lib/round.c: New file.
45785         * lib/roundf.c: New file.
45786         * lib/roundl.c: New file.
45787         * m4/round.m4: New file.
45788         * m4/roundf.m4: New file.
45789         * m4/roundl.m4: New file.
45790         * m4/check-libm-func-m4: New file.
45791         * modules/math: Replace round, roundf, roundl related @VARS@ in
45792         math.in.h.
45793         * modules/round: New file.
45794         * modules/round-tests: New file.
45795         * modules/roundf: New file.
45796         * modules/roundf-tests: New file.
45797         * modules/roundl: New file.
45798         * modules/roundl-tests: New file.
45799         * tests/test-round1.c: New file.
45800         * tests/test-round2.c: New file.
45801         * tests/test-roundf1.c: New file.
45802         * tests/test-roundf2.c: New file.
45803         * tests/test-roundl.c: New file.
45804         * doc/functions/round.texi: Mention round module.
45805         * doc/functions/roundf.texi: Mention roundf module.
45806         * doc/functions/roundl.texi: Mention roundl module.
45807         * MODULES.html.sh: Mention new modules.
45808         Thanks to Bruno Haible for suggestions.
45809
45810 2007-10-20  Jim Meyering  <meyering@redhat.com>
45811
45812         * lib/xprintf.c: Include <config.h> unconditionally.
45813
45814         Change xprintf's license to GPL.
45815         * modules/xprintf (License): s/LGPL/GPL/, since this module
45816         depends on modules (exit and exitfail) which are GPL.
45817         Suggestion from Bruno Haible.
45818
45819         xprintf fixes.
45820         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
45821         Use a clearer diagnostic.
45822         Patch from Bruno Haible.
45823
45824 2007-10-20  Bruno Haible  <bruno@clisp.org>
45825
45826         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
45827         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
45828         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45829
45830 2007-10-20  Bruno Haible  <bruno@clisp.org>
45831
45832         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
45833         precision in the comparison result > x - 1 or similar.
45834         * tests/test-ceilf2.c (correct_result_p): Likewise.
45835         * tests/test-truncf2.c (correct_result_p): Likewise.
45836         * tests/test-trunc2.c (correct_result_p): Likewise.
45837         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45838
45839 2007-10-20  Bruno Haible  <bruno@clisp.org>
45840
45841         * modules/ceil: New file.
45842         * m4/ceil.m4: New file.
45843         * doc/functions/ceil.texi: Mention the 'ceil' module.
45844
45845 2007-10-20  Bruno Haible  <bruno@clisp.org>
45846
45847         * modules/floor: New file.
45848         * m4/floor.m4: New file.
45849         * doc/functions/floor.texi: Mention the 'floor' module.
45850
45851 2007-10-20  Bruno Haible  <bruno@clisp.org>
45852
45853         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
45854         of %a.
45855         * modules/floorf-tests (Depends-on): Likewise.
45856         * modules/truncf-tests (Depends-on): Likewise.
45857         * modules/trunc-tests (Depends-on): Likewise.
45858         Reported by Ben Pfaff.
45859
45860 2007-10-19  Jim Meyering  <meyering@redhat.com>
45861
45862         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
45863         Don't bother testing specific errno values.  Just test ferror.
45864
45865         New module: xprintf
45866         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
45867
45868 2007-10-19  Bruno Haible  <bruno@clisp.org>
45869
45870         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
45871         syntax.
45872         * modules/javaexec (Makefile.am): Likewise.
45873         * modules/relocatable-prog (Makefile.am): Likewise.
45874         Suggested by Jim Meyering.
45875
45876 2007-10-18  Bruno Haible  <bruno@clisp.org>
45877
45878         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
45879         Reported by Jim Meyering.
45880
45881 2007-10-18  Eric Blake  <ebb9@byu.net>
45882
45883         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
45884
45885 2007-10-18  Bruno Haible  <bruno@clisp.org>
45886
45887         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
45888         the format string into writable memory. Needed in Fortify conditions.
45889
45890 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
45891             Bruno Haible  <bruno@clisp.org>
45892
45893         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
45894         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
45895         * modules/trim (Depends-on): Add mbchar.
45896         (configure.ac): Add gl_FUNC_MBRTOWC.
45897         (Makefile.am): Augment lib_SOURCES.
45898
45899 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45900
45901         Modify glob.c to use fstatat and dirfd, to simplify it.
45902         Suggested by Eric Blake.
45903         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
45904         Don't include <stdbool.h>; not used.
45905         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
45906         (link_exists_p): Simplify implementation, since we can now assume
45907         dirfd and fstatat.
45908         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
45909
45910 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45911
45912         * gnulib-tool (func_get_dependencies): Fix sed script to
45913         match only tests.
45914
45915 2007-10-17  Bruno Haible  <bruno@clisp.org>
45916
45917         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
45918         allow locale names without encoding suffix.
45919         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45920         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45921
45922 2007-10-16  Bruno Haible  <bruno@clisp.org>
45923
45924         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
45925         * lib/getgroups.c (getgroups): Likewise.
45926         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
45927
45928 2007-10-16  Bruno Haible  <bruno@clisp.org>
45929
45930         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
45931         * modules/malloc-posix (License): Likewise.
45932         * modules/realloc-posix (License): Likewise.
45933         * modules/calloc-posix (License): Likewise.
45934         * modules/intprops (License): Change from GPL to LGPL, with
45935         Paul Eggert's approval.
45936
45937 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45938
45939         Merge glibc changes into lib/glob.c.
45940
45941         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
45942         2007-10-15 04:59:03 UTC.  Here are the changes:
45943
45944         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
45945
45946         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
45947
45948         * lib/glob.c: Add some branch prediction throughout.
45949
45950         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
45951
45952         [BZ #5103]
45953         * lib/glob.c (glob): Recognize patterns starting \/.
45954
45955         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
45956
45957         [BZ #3996]
45958         * lib/glob.c (attribute_hidden): Define if not defined.
45959         (glob): Unescape dirname, filename or username when needed and not
45960         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
45961         is NULL.  Handle unescaped [ in pattern without closing ].
45962         Don't pass GLOB_CHECK down to recursive glob for directories.
45963         (__glob_pattern_type): New function.
45964         (__glob_pattern_p): Implement using __glob_pattern_type.
45965         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
45966         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
45967         Remove unreachable code.
45968
45969         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
45970
45971         * lib/glob.c (glob_in_dir): Add some comments and asserts to
45972         explain why there are no leaks.
45973
45974         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
45975
45976         [BZ #3253]
45977         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
45978         time, rather allocate increasingly bigger arrays of pointers, if
45979         possible with alloca, if too large with malloc.
45980
45981 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45982
45983         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
45984         Problem reported by H.Merijn Brand in
45985         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
45986         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
45987         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45988
45989 2007-10-15  Bruno Haible  <bruno@clisp.org>
45990
45991         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
45992         with explicit rpl_ prefix.
45993         * lib/fopen.c (fopen): Likewise.
45994         * lib/freopen.c (freopen): Likewise.
45995         * lib/iconv.c (iconv): Likewise.
45996         * lib/iconv_close.c (iconv_close): Likewise.
45997
45998 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45999
46000         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46001
46002 2007-10-15  Bruno Haible  <bruno@clisp.org>
46003
46004         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46005         <stddef.h> instead of <stdlib.h> since we only need NULL.
46006         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46007
46008 2007-10-15  Bruno Haible  <bruno@clisp.org>
46009
46010         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46011         Replace paragraph talking about LIBOBJS.
46012         Reported by Colin Watson <cjwatson@debian.org>.
46013
46014 2007-10-15  Bruno Haible  <bruno@clisp.org>
46015
46016         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46017         <stdlib.h> before using NULL.
46018
46019 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46020
46021         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46022         Reported by Albert Chin <china@thewrittenword.com>.
46023
46024 2007-10-14  Bruno Haible  <bruno@clisp.org>
46025
46026         * modules/iconv_open-utf-tests: New file.
46027         * tests/test-iconv-utf.c: New file.
46028
46029         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46030         * modules/iconv_open-utf: New file.
46031         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46032         (iconv, iconv_close): New declarations.
46033         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46034         be defined.
46035         (iconv_open): Add special handling of conversion between UTF-8 and
46036         UTF-{16,32}{BE,LE}.
46037         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46038         * lib/iconv_close.c: New file.
46039         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46040         gl_FUNC_ICONV_OPEN.
46041         (gl_FUNC_ICONV_OPEN): Use it.
46042         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46043         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46044         and REPLACE_ICONV_UTF.
46045         * modules/iconv_open (Depends-on): Add c-strcase.
46046         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46047         ICONV_CONST.
46048         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46049
46050 2007-10-13  Albert Chin  <china@thewrittenword.com>
46051             Bruno Haible  <bruno@clisp.org>
46052
46053         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46054         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46055
46056 2007-10-13  Bruno Haible  <bruno@clisp.org>
46057
46058         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46059         defined, use the ISO C99 inline semantics.
46060         * lib/argp.h (ARGP_EI): Likewise.
46061
46062 2007-10-13  Bruno Haible  <bruno@clisp.org>
46063
46064         Handle 'inline' change in gcc 4.3.0.
46065         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46066         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46067         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46068         argp_fmtstream_point): Disable 'extern' declaration if the function
46069         definition is going to be provided inline.
46070         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46071         semantics, not the ISO C99 inline semantics.
46072         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46073         'extern' declaration if the function definition is going to be provided
46074         inline.
46075         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46076         the GNU C inline semantics, not the ISO C99 inline semantics. With
46077         GCC 4.2, avoid a warning.
46078
46079 2007-10-13  Bruno Haible  <bruno@clisp.org>
46080
46081         * lib/freading.h (freading): Enable the use of __freading for
46082         glibc >= 2.7.
46083         * lib/freading.c (freading): Likewise.
46084
46085 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46086
46087         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46088         "warning: C99 inline functions are not supported; using GNU89".
46089
46090 2007-10-12  Bruno Haible  <bruno@clisp.org>
46091
46092         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46093         of 2.
46094         * tests/test-ceilf2.c: New file.
46095         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46096
46097         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46098         * modules/ceilf-tests: Update.
46099
46100 2007-10-12  Bruno Haible  <bruno@clisp.org>
46101
46102         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46103         of 2.
46104         * tests/test-floorf2.c: New file.
46105         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46106
46107         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46108         * modules/floorf-tests: Update.
46109
46110 2007-10-12  Bruno Haible  <bruno@clisp.org>
46111
46112         * tests/test-trunc2.c: New file.
46113         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46114
46115         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46116         * modules/trunc-tests: Update.
46117
46118 2007-10-12  Bruno Haible  <bruno@clisp.org>
46119
46120         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46121         of 2.
46122         * tests/test-truncf2.c: New file.
46123         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46124
46125         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46126         * modules/truncf-tests: Update.
46127
46128 2007-10-11  Eric Blake  <ebb9@byu.net>
46129
46130         Don't claim strerror is broken on Interix.
46131         * doc/functions/strerror.texi (strerror): Known broken systems are
46132         now Solaris 8, and not Interix.
46133         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46134         Interix on cross-compile.
46135         Reported by Martin Koeppe in
46136         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46137
46138 2007-10-11  Bruno Haible  <bruno@clisp.org>
46139
46140         * modules/i-ring-tests: New file.
46141         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46142         instead of assert.
46143
46144 2007-10-11  Bruno Haible  <bruno@clisp.org>
46145
46146         * modules/filenamecat-tests: New file.
46147         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46148         * lib/filenamecat.c: Remove test code.
46149
46150 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46151
46152         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46153
46154         * lib/strerror.c: Include <string.h> always, to test interface,
46155         and to remove the need for the dummy.
46156         Include intprops.h to compute width instead of doing it ourselves
46157         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46158         (strerror): Define it to return NULL if there's no system strerror.
46159         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46160         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46161         ancient pre-strerror Unix systems well any more.  Saying "unknown
46162         system error" is enough.
46163         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46164         simpler strerror.c implementation.
46165         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46166         Simplify the tests to reflect the simpler strerror implementation.
46167         * modules/strerror (Depends-on): Add intprops.
46168
46169 2007-10-09  Eric Blake  <ebb9@byu.net>
46170
46171         Silence test-fpending.
46172         * modules/fpending-tests (Files): Add wrapper script.
46173         * tests/test-fpending.sh: New file.
46174
46175 2007-10-09  Bruno Haible  <bruno@clisp.org>
46176
46177         * MODULES.html.sh (func_module): Don't create a hyperlink for
46178         function names like 'printf_frexp'.
46179         (Misc): Add crc, memxor.
46180         (Characteristics of floating types): New section.
46181         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46182         isnanf-nolibm, signbit, trunc, truncf, truncl.
46183         (Enhancements for ISO C 99 functions): New subsection Input/output.
46184         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46185         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46186         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46187         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46188         (Enhancements for POSIX:2001 functions): Add chdir-long.
46189         (File system functions): Add areadlink, chdir-safer, read-file.
46190         Remove cycle-check.
46191         (File system as inode set): New section.
46192         (Date and time): Add gethrxtime.
46193         (Multithreading): Add openmp.
46194         (Internationalization functions): Add localename.
46195         (Unicode string functions): Add unistr/u*-mbsnlen.
46196         (Support for maintaining and releasing projects): Add git-version-gen.
46197         (Lone files): Remove directories.
46198
46199 2007-10-08  Ben Pfaff  <blp@gnu.org>
46200
46201         * lib/xmalloca.h: Fix typo in comment.
46202
46203 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46204
46205         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46206         when avoiding problems with integer overflow.  Use a portable test
46207         instead.
46208
46209 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46210
46211         * modules/dummy (License): Change to LGPLv2+.
46212         * modules/float (License): Likewise
46213         * modules/realloc (License): Likewise
46214         * modules/stdlib (License): Likewise
46215
46216 2007-10-07  Bruno Haible  <bruno@clisp.org>
46217
46218         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46219         * floor.c (TWO_MANT_DIG): Likewise.
46220         * ceil.c (TWO_MANT_DIG): Likewise.
46221         Reported by Ben Pfaff.
46222
46223 2007-10-07  Bruno Haible  <bruno@clisp.org>
46224
46225         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46226         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46227         * lib/frexp.c (FUNC): Likewise.
46228         * lib/printf-frexp.h (printf_frexp): Likewise.
46229         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46230         * lib/printf-frexp.c (FUNC): Likewise.
46231         Suggested by Jim Meyering.
46232
46233 2007-10-07  Jim Meyering  <meyering@redhat.com>
46234
46235         Make xnanosleep's integer overflow test more robust.
46236         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46237         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46238
46239 2007-10-07  Bruno Haible  <bruno@clisp.org>
46240
46241         * NEWS: Mention the license change.
46242
46243         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46244         abbreviations in the modules files.
46245
46246         Change copyright notice from GPLv2+ to GPLv3+.
46247         * README: Change copyright notice.
46248         * MODULES.html.sh: Likewise.
46249         * build-aux/bootstrap.conf: Likewise.
46250         * build-aux/config.libpath: Likewise.
46251         * build-aux/csharpcomp.sh.in: Likewise.
46252         * build-aux/csharpexec.sh.in: Likewise.
46253         * build-aux/install-reloc: Likewise.
46254         * build-aux/javacomp.sh.in: Likewise.
46255         * build-aux/javaexec.sh.in: Likewise.
46256         * build-aux/ldd.sh.in: Likewise.
46257         * build-aux/reloc-ldflags: Likewise.
46258         * build-aux/relocatable.sh.in: Likewise.
46259         * build-aux/x-to-1.in: Likewise.
46260         * check-module: Likewise.
46261         * config/srclistvars.sh: Likewise.
46262         * gnulib-tool: Likewise.
46263         * lib/acl-internal.h: Likewise.
46264         * lib/acl.c: Likewise.
46265         * lib/acl.h: Likewise.
46266         * lib/acl_entries.c: Likewise.
46267         * lib/areadlink-with-size.c: Likewise.
46268         * lib/areadlink.c: Likewise.
46269         * lib/areadlink.h: Likewise.
46270         * lib/argmatch.c: Likewise.
46271         * lib/argmatch.h: Likewise.
46272         * lib/argp-ba.c: Likewise.
46273         * lib/argp-eexst.c: Likewise.
46274         * lib/argp-fmtstream.c: Likewise.
46275         * lib/argp-fmtstream.h: Likewise.
46276         * lib/argp-fs-xinl.c: Likewise.
46277         * lib/argp-help.c: Likewise.
46278         * lib/argp-namefrob.h: Likewise.
46279         * lib/argp-parse.c: Likewise.
46280         * lib/argp-pin.c: Likewise.
46281         * lib/argp-pv.c: Likewise.
46282         * lib/argp-pvh.c: Likewise.
46283         * lib/argp-xinl.c: Likewise.
46284         * lib/argp.h: Likewise.
46285         * lib/at-func.c: Likewise.
46286         * lib/atanl.c: Likewise.
46287         * lib/backupfile.c: Likewise.
46288         * lib/backupfile.h: Likewise.
46289         * lib/basename.c: Likewise.
46290         * lib/binary-io.h: Likewise.
46291         * lib/byteswap.in.h: Likewise.
46292         * lib/c-stack.c: Likewise.
46293         * lib/c-stack.h: Likewise.
46294         * lib/c-strcasestr.c: Likewise.
46295         * lib/c-strcasestr.h: Likewise.
46296         * lib/c-strstr.c: Likewise.
46297         * lib/c-strstr.h: Likewise.
46298         * lib/c-strtod.c: Likewise.
46299         * lib/calloc.c: Likewise.
46300         * lib/canon-host.c: Likewise.
46301         * lib/canon-host.h: Likewise.
46302         * lib/canonicalize-lgpl.c: Likewise.
46303         * lib/canonicalize.c: Likewise.
46304         * lib/canonicalize.h: Likewise.
46305         * lib/ceil.c: Likewise.
46306         * lib/ceilf.c: Likewise.
46307         * lib/ceill.c: Likewise.
46308         * lib/chdir-long.c: Likewise.
46309         * lib/chdir-long.h: Likewise.
46310         * lib/chdir-safer.c: Likewise.
46311         * lib/chdir-safer.h: Likewise.
46312         * lib/chown.c: Likewise.
46313         * lib/classpath.c: Likewise.
46314         * lib/classpath.h: Likewise.
46315         * lib/clean-temp.c: Likewise.
46316         * lib/clean-temp.h: Likewise.
46317         * lib/cloexec.c: Likewise.
46318         * lib/close-stream.c: Likewise.
46319         * lib/closein.c: Likewise.
46320         * lib/closein.h: Likewise.
46321         * lib/closeout.c: Likewise.
46322         * lib/closeout.h: Likewise.
46323         * lib/concat-filename.c: Likewise.
46324         * lib/copy-file.c: Likewise.
46325         * lib/copy-file.h: Likewise.
46326         * lib/count-one-bits.h: Likewise.
46327         * lib/crc.c: Likewise.
46328         * lib/crc.h: Likewise.
46329         * lib/creat-safer.c: Likewise.
46330         * lib/csharpcomp.c: Likewise.
46331         * lib/csharpcomp.h: Likewise.
46332         * lib/csharpexec.c: Likewise.
46333         * lib/csharpexec.h: Likewise.
46334         * lib/cycle-check.c: Likewise.
46335         * lib/cycle-check.h: Likewise.
46336         * lib/diacrit.c: Likewise.
46337         * lib/diacrit.h: Likewise.
46338         * lib/diffseq.h: Likewise.
46339         * lib/dirchownmod.c: Likewise.
46340         * lib/dirent.in.h: Likewise.
46341         * lib/dirfd.c: Likewise.
46342         * lib/dirfd.h: Likewise.
46343         * lib/dirname.c: Likewise.
46344         * lib/dirname.h: Likewise.
46345         * lib/dummy.c: Likewise.
46346         * lib/dup-safer.c: Likewise.
46347         * lib/dup2.c: Likewise.
46348         * lib/eealloc.h: Likewise.
46349         * lib/error.c: Likewise.
46350         * lib/error.h: Likewise.
46351         * lib/euidaccess.c: Likewise.
46352         * lib/exclude.c: Likewise.
46353         * lib/exclude.h: Likewise.
46354         * lib/execute.c: Likewise.
46355         * lib/execute.h: Likewise.
46356         * lib/exitfail.c: Likewise.
46357         * lib/exitfail.h: Likewise.
46358         * lib/expl.c: Likewise.
46359         * lib/fatal-signal.c: Likewise.
46360         * lib/fatal-signal.h: Likewise.
46361         * lib/fbufmode.c: Likewise.
46362         * lib/fbufmode.h: Likewise.
46363         * lib/fchdir.c: Likewise.
46364         * lib/fchmodat.c: Likewise.
46365         * lib/fchownat.c: Likewise.
46366         * lib/fcntl--.h: Likewise.
46367         * lib/fcntl-safer.h: Likewise.
46368         * lib/fcntl.in.h: Likewise.
46369         * lib/fd-safer.c: Likewise.
46370         * lib/fflush.c: Likewise.
46371         * lib/file-has-acl.c: Likewise.
46372         * lib/file-set.c: Likewise.
46373         * lib/file-type.c: Likewise.
46374         * lib/file-type.h: Likewise.
46375         * lib/fileblocks.c: Likewise.
46376         * lib/filemode.c: Likewise.
46377         * lib/filemode.h: Likewise.
46378         * lib/filename.h: Likewise.
46379         * lib/filenamecat.c: Likewise.
46380         * lib/filenamecat.h: Likewise.
46381         * lib/findprog.c: Likewise.
46382         * lib/findprog.h: Likewise.
46383         * lib/float.in.h: Likewise.
46384         * lib/floor.c: Likewise.
46385         * lib/floorf.c: Likewise.
46386         * lib/floorl.c: Likewise.
46387         * lib/fopen-safer.c: Likewise.
46388         * lib/fopen.c: Likewise.
46389         * lib/fpending.c: Likewise.
46390         * lib/fpending.h: Likewise.
46391         * lib/fprintf.c: Likewise.
46392         * lib/fprintftime.h: Likewise.
46393         * lib/fpucw.h: Likewise.
46394         * lib/fpurge.c: Likewise.
46395         * lib/fpurge.h: Likewise.
46396         * lib/freadable.c: Likewise.
46397         * lib/freadable.h: Likewise.
46398         * lib/freadahead.c: Likewise.
46399         * lib/freadahead.h: Likewise.
46400         * lib/freading.c: Likewise.
46401         * lib/freading.h: Likewise.
46402         * lib/free.c: Likewise.
46403         * lib/freopen.c: Likewise.
46404         * lib/frexp.c: Likewise.
46405         * lib/frexpl.c: Likewise.
46406         * lib/fseek.c: Likewise.
46407         * lib/fseterr.c: Likewise.
46408         * lib/fseterr.h: Likewise.
46409         * lib/fstatat.c: Likewise.
46410         * lib/fstrcmp.c: Likewise.
46411         * lib/fstrcmp.h: Likewise.
46412         * lib/fsusage.c: Likewise.
46413         * lib/fsusage.h: Likewise.
46414         * lib/ftell.c: Likewise.
46415         * lib/ftello.c: Likewise.
46416         * lib/fts-cycle.c: Likewise.
46417         * lib/fts.c: Likewise.
46418         * lib/fts_.h: Likewise.
46419         * lib/full-read.c: Likewise.
46420         * lib/full-read.h: Likewise.
46421         * lib/full-write.c: Likewise.
46422         * lib/full-write.h: Likewise.
46423         * lib/fwritable.c: Likewise.
46424         * lib/fwritable.h: Likewise.
46425         * lib/fwriteerror.c: Likewise.
46426         * lib/fwriteerror.h: Likewise.
46427         * lib/fwriting.c: Likewise.
46428         * lib/fwriting.h: Likewise.
46429         * lib/gcd.c: Likewise.
46430         * lib/gcd.h: Likewise.
46431         * lib/getcwd.c: Likewise.
46432         * lib/getdate.h: Likewise.
46433         * lib/getdate.y: Likewise.
46434         * lib/getdomainname.c: Likewise.
46435         * lib/getdomainname.h: Likewise.
46436         * lib/getgroups.c: Likewise.
46437         * lib/gethostname.c: Likewise.
46438         * lib/gethrxtime.c: Likewise.
46439         * lib/gethrxtime.h: Likewise.
46440         * lib/getloadavg.c: Likewise.
46441         * lib/getndelim2.c: Likewise.
46442         * lib/getndelim2.h: Likewise.
46443         * lib/getnline.c: Likewise.
46444         * lib/getnline.h: Likewise.
46445         * lib/getopt.c: Likewise.
46446         * lib/getopt.in.h: Likewise.
46447         * lib/getopt1.c: Likewise.
46448         * lib/getopt_int.h: Likewise.
46449         * lib/getpagesize.h: Likewise.
46450         * lib/getsubopt.c: Likewise.
46451         * lib/gettime.c: Likewise.
46452         * lib/getugroups.c: Likewise.
46453         * lib/getugroups.h: Likewise.
46454         * lib/getusershell.c: Likewise.
46455         * lib/gl_anyavltree_list1.h: Likewise.
46456         * lib/gl_anyavltree_list2.h: Likewise.
46457         * lib/gl_anyhash_list1.h: Likewise.
46458         * lib/gl_anyhash_list2.h: Likewise.
46459         * lib/gl_anylinked_list1.h: Likewise.
46460         * lib/gl_anylinked_list2.h: Likewise.
46461         * lib/gl_anyrbtree_list1.h: Likewise.
46462         * lib/gl_anyrbtree_list2.h: Likewise.
46463         * lib/gl_anytree_list1.h: Likewise.
46464         * lib/gl_anytree_list2.h: Likewise.
46465         * lib/gl_anytree_oset.h: Likewise.
46466         * lib/gl_anytreehash_list1.h: Likewise.
46467         * lib/gl_anytreehash_list2.h: Likewise.
46468         * lib/gl_array_list.c: Likewise.
46469         * lib/gl_array_list.h: Likewise.
46470         * lib/gl_array_oset.c: Likewise.
46471         * lib/gl_array_oset.h: Likewise.
46472         * lib/gl_avltree_list.c: Likewise.
46473         * lib/gl_avltree_list.h: Likewise.
46474         * lib/gl_avltree_oset.c: Likewise.
46475         * lib/gl_avltree_oset.h: Likewise.
46476         * lib/gl_avltreehash_list.c: Likewise.
46477         * lib/gl_avltreehash_list.h: Likewise.
46478         * lib/gl_carray_list.c: Likewise.
46479         * lib/gl_carray_list.h: Likewise.
46480         * lib/gl_linked_list.c: Likewise.
46481         * lib/gl_linked_list.h: Likewise.
46482         * lib/gl_linkedhash_list.c: Likewise.
46483         * lib/gl_linkedhash_list.h: Likewise.
46484         * lib/gl_list.c: Likewise.
46485         * lib/gl_list.h: Likewise.
46486         * lib/gl_oset.c: Likewise.
46487         * lib/gl_oset.h: Likewise.
46488         * lib/gl_rbtree_list.c: Likewise.
46489         * lib/gl_rbtree_list.h: Likewise.
46490         * lib/gl_rbtree_oset.c: Likewise.
46491         * lib/gl_rbtree_oset.h: Likewise.
46492         * lib/gl_rbtreehash_list.c: Likewise.
46493         * lib/gl_rbtreehash_list.h: Likewise.
46494         * lib/gl_sublist.c: Likewise.
46495         * lib/gl_sublist.h: Likewise.
46496         * lib/group-member.c: Likewise.
46497         * lib/group-member.h: Likewise.
46498         * lib/hard-locale.c: Likewise.
46499         * lib/hard-locale.h: Likewise.
46500         * lib/hash-pjw.c: Likewise.
46501         * lib/hash-pjw.h: Likewise.
46502         * lib/hash-triple.c: Likewise.
46503         * lib/hash.c: Likewise.
46504         * lib/hash.h: Likewise.
46505         * lib/human.c: Likewise.
46506         * lib/human.h: Likewise.
46507         * lib/i-ring.c: Likewise.
46508         * lib/i-ring.h: Likewise.
46509         * lib/idcache.c: Likewise.
46510         * lib/imaxabs.c: Likewise.
46511         * lib/imaxdiv.c: Likewise.
46512         * lib/inet_pton.c: Likewise.
46513         * lib/inet_pton.h: Likewise.
46514         * lib/intprops.h: Likewise.
46515         * lib/inttostr.c: Likewise.
46516         * lib/inttostr.h: Likewise.
46517         * lib/inttypes.in.h: Likewise.
46518         * lib/isapipe.c: Likewise.
46519         * lib/isdir.c: Likewise.
46520         * lib/isnan.c: Likewise.
46521         * lib/isnan.h: Likewise.
46522         * lib/isnanf.c: Likewise.
46523         * lib/isnanf.h: Likewise.
46524         * lib/isnanl-nolibm.h: Likewise.
46525         * lib/isnanl.c: Likewise.
46526         * lib/isnanl.h: Likewise.
46527         * lib/javacomp.c: Likewise.
46528         * lib/javacomp.h: Likewise.
46529         * lib/javaexec.c: Likewise.
46530         * lib/javaexec.h: Likewise.
46531         * lib/javaversion.c: Likewise.
46532         * lib/javaversion.h: Likewise.
46533         * lib/javaversion.java: Likewise.
46534         * lib/lbrkprop.h: Likewise.
46535         * lib/lchmod.h: Likewise.
46536         * lib/lchown.c: Likewise.
46537         * lib/ldexpl.c: Likewise.
46538         * lib/linebreak.c: Likewise.
46539         * lib/linebreak.h: Likewise.
46540         * lib/linebuffer.c: Likewise.
46541         * lib/linebuffer.h: Likewise.
46542         * lib/locale.in.h: Likewise.
46543         * lib/logl.c: Likewise.
46544         * lib/long-options.c: Likewise.
46545         * lib/long-options.h: Likewise.
46546         * lib/lstat.c: Likewise.
46547         * lib/lstat.h: Likewise.
46548         * lib/math.in.h: Likewise.
46549         * lib/mbchar.c: Likewise.
46550         * lib/mbchar.h: Likewise.
46551         * lib/mbfile.h: Likewise.
46552         * lib/mbiter.h: Likewise.
46553         * lib/mbscasecmp.c: Likewise.
46554         * lib/mbscasestr.c: Likewise.
46555         * lib/mbschr.c: Likewise.
46556         * lib/mbscspn.c: Likewise.
46557         * lib/mbslen.c: Likewise.
46558         * lib/mbsncasecmp.c: Likewise.
46559         * lib/mbsnlen.c: Likewise.
46560         * lib/mbspbrk.c: Likewise.
46561         * lib/mbspcasecmp.c: Likewise.
46562         * lib/mbsrchr.c: Likewise.
46563         * lib/mbssep.c: Likewise.
46564         * lib/mbsspn.c: Likewise.
46565         * lib/mbsstr.c: Likewise.
46566         * lib/mbstok_r.c: Likewise.
46567         * lib/mbswidth.c: Likewise.
46568         * lib/mbswidth.h: Likewise.
46569         * lib/mbuiter.h: Likewise.
46570         * lib/memcasecmp.c: Likewise.
46571         * lib/memcasecmp.h: Likewise.
46572         * lib/memchr.c: Likewise.
46573         * lib/memcmp.c: Likewise.
46574         * lib/memcoll.c: Likewise.
46575         * lib/memcoll.h: Likewise.
46576         * lib/memcpy.c: Likewise.
46577         * lib/memrchr.c: Likewise.
46578         * lib/mkancesdirs.c: Likewise.
46579         * lib/mkdir-p.c: Likewise.
46580         * lib/mkdir-p.h: Likewise.
46581         * lib/mkdir.c: Likewise.
46582         * lib/mkdirat.c: Likewise.
46583         * lib/mkdtemp.c: Likewise.
46584         * lib/mkstemp-safer.c: Likewise.
46585         * lib/mkstemp.c: Likewise.
46586         * lib/modechange.c: Likewise.
46587         * lib/modechange.h: Likewise.
46588         * lib/mountlist.c: Likewise.
46589         * lib/mountlist.h: Likewise.
46590         * lib/mpsort.c: Likewise.
46591         * lib/nanosleep.c: Likewise.
46592         * lib/obstack.c: Likewise.
46593         * lib/obstack.h: Likewise.
46594         * lib/open-safer.c: Likewise.
46595         * lib/open.c: Likewise.
46596         * lib/openat-die.c: Likewise.
46597         * lib/openat-priv.h: Likewise.
46598         * lib/openat-proc.c: Likewise.
46599         * lib/openat.c: Likewise.
46600         * lib/openat.h: Likewise.
46601         * lib/pagealign_alloc.c: Likewise.
46602         * lib/pagealign_alloc.h: Likewise.
46603         * lib/physmem.c: Likewise.
46604         * lib/physmem.h: Likewise.
46605         * lib/pipe-safer.c: Likewise.
46606         * lib/pipe.c: Likewise.
46607         * lib/pipe.h: Likewise.
46608         * lib/posixtm.c: Likewise.
46609         * lib/posixtm.h: Likewise.
46610         * lib/posixver.c: Likewise.
46611         * lib/printf-frexp.c: Likewise.
46612         * lib/printf-frexp.h: Likewise.
46613         * lib/printf-frexpl.c: Likewise.
46614         * lib/printf-frexpl.h: Likewise.
46615         * lib/printf.c: Likewise.
46616         * lib/progname.c: Likewise.
46617         * lib/progname.h: Likewise.
46618         * lib/progreloc.c: Likewise.
46619         * lib/putenv.c: Likewise.
46620         * lib/quote.c: Likewise.
46621         * lib/quote.h: Likewise.
46622         * lib/quotearg.c: Likewise.
46623         * lib/quotearg.h: Likewise.
46624         * lib/raise.c: Likewise.
46625         * lib/readline.c: Likewise.
46626         * lib/readline.h: Likewise.
46627         * lib/readlink.c: Likewise.
46628         * lib/readtokens.c: Likewise.
46629         * lib/readtokens.h: Likewise.
46630         * lib/readtokens0.c: Likewise.
46631         * lib/readtokens0.h: Likewise.
46632         * lib/readutmp.c: Likewise.
46633         * lib/readutmp.h: Likewise.
46634         * lib/realloc.c: Likewise.
46635         * lib/relocwrapper.c: Likewise.
46636         * lib/rename-dest-slash.c: Likewise.
46637         * lib/rename.c: Likewise.
46638         * lib/rmdir.c: Likewise.
46639         * lib/rpmatch.c: Likewise.
46640         * lib/safe-read.c: Likewise.
46641         * lib/safe-read.h: Likewise.
46642         * lib/safe-write.c: Likewise.
46643         * lib/safe-write.h: Likewise.
46644         * lib/same-inode.h: Likewise.
46645         * lib/same.c: Likewise.
46646         * lib/same.h: Likewise.
46647         * lib/save-cwd.c: Likewise.
46648         * lib/save-cwd.h: Likewise.
46649         * lib/savedir.c: Likewise.
46650         * lib/savedir.h: Likewise.
46651         * lib/savewd.c: Likewise.
46652         * lib/savewd.h: Likewise.
46653         * lib/search.in.h: Likewise.
46654         * lib/setenv.c: Likewise.
46655         * lib/setenv.h: Likewise.
46656         * lib/settime.c: Likewise.
46657         * lib/sh-quote.c: Likewise.
46658         * lib/sh-quote.h: Likewise.
46659         * lib/sig2str.c: Likewise.
46660         * lib/sig2str.h: Likewise.
46661         * lib/signal.in.h: Likewise.
46662         * lib/signbitd.c: Likewise.
46663         * lib/signbitf.c: Likewise.
46664         * lib/signbitl.c: Likewise.
46665         * lib/sigprocmask.c: Likewise.
46666         * lib/sincosl.c: Likewise.
46667         * lib/sleep.c: Likewise.
46668         * lib/sprintf.c: Likewise.
46669         * lib/sqrtl.c: Likewise.
46670         * lib/stat-time.h: Likewise.
46671         * lib/stdio--.h: Likewise.
46672         * lib/stdio-safer.h: Likewise.
46673         * lib/stdlib--.h: Likewise.
46674         * lib/stdlib-safer.h: Likewise.
46675         * lib/stdlib.in.h: Likewise.
46676         * lib/stpcpy.c: Likewise.
46677         * lib/stpncpy.c: Likewise.
46678         * lib/strchrnul.c: Likewise.
46679         * lib/strcspn.c: Likewise.
46680         * lib/strerror.c: Likewise.
46681         * lib/strftime.c: Likewise.
46682         * lib/strftime.h: Likewise.
46683         * lib/striconveh.c: Likewise.
46684         * lib/striconveh.h: Likewise.
46685         * lib/striconveha.c: Likewise.
46686         * lib/striconveha.h: Likewise.
46687         * lib/stripslash.c: Likewise.
46688         * lib/strnlen1.c: Likewise.
46689         * lib/strnlen1.h: Likewise.
46690         * lib/strtod.c: Likewise.
46691         * lib/strtoimax.c: Likewise.
46692         * lib/strtok_r.c: Likewise.
46693         * lib/strtol.c: Likewise.
46694         * lib/strtoll.c: Likewise.
46695         * lib/strtoul.c: Likewise.
46696         * lib/strtoull.c: Likewise.
46697         * lib/sysexits.in.h: Likewise.
46698         * lib/tempname.c: Likewise.
46699         * lib/tempname.h: Likewise.
46700         * lib/timespec.h: Likewise.
46701         * lib/tls.c: Likewise.
46702         * lib/tls.h: Likewise.
46703         * lib/tmpdir.c: Likewise.
46704         * lib/tmpdir.h: Likewise.
46705         * lib/tmpfile-safer.c: Likewise.
46706         * lib/tmpfile.c: Likewise.
46707         * lib/trigl.c: Likewise.
46708         * lib/trigl.h: Likewise.
46709         * lib/trim.c: Likewise.
46710         * lib/trim.h: Likewise.
46711         * lib/trunc.c: Likewise.
46712         * lib/truncf.c: Likewise.
46713         * lib/truncl.c: Likewise.
46714         * lib/tsearch.c: Likewise.
46715         * lib/unicodeio.c: Likewise.
46716         * lib/unicodeio.h: Likewise.
46717         * lib/unistd--.h: Likewise.
46718         * lib/unistd-safer.h: Likewise.
46719         * lib/unistdio/ulc-fprintf.c: Likewise.
46720         * lib/unistdio/ulc-vfprintf.c: Likewise.
46721         * lib/unlinkdir.c: Likewise.
46722         * lib/unlinkdir.h: Likewise.
46723         * lib/unlocked-io.h: Likewise.
46724         * lib/unsetenv.c: Likewise.
46725         * lib/userspec.c: Likewise.
46726         * lib/utime.c: Likewise.
46727         * lib/utimecmp.c: Likewise.
46728         * lib/utimecmp.h: Likewise.
46729         * lib/utimens.c: Likewise.
46730         * lib/verify.h: Likewise.
46731         * lib/verror.c: Likewise.
46732         * lib/verror.h: Likewise.
46733         * lib/version-etc-fsf.c: Likewise.
46734         * lib/version-etc.c: Likewise.
46735         * lib/version-etc.h: Likewise.
46736         * lib/vfprintf.c: Likewise.
46737         * lib/vprintf.c: Likewise.
46738         * lib/vsprintf.c: Likewise.
46739         * lib/w32spawn.h: Likewise.
46740         * lib/wait-process.c: Likewise.
46741         * lib/wait-process.h: Likewise.
46742         * lib/wcwidth.c: Likewise.
46743         * lib/write-any-file.c: Likewise.
46744         * lib/xalloc-die.c: Likewise.
46745         * lib/xalloc.h: Likewise.
46746         * lib/xasprintf.c: Likewise.
46747         * lib/xgetcwd.c: Likewise.
46748         * lib/xgetcwd.h: Likewise.
46749         * lib/xgetdomainname.c: Likewise.
46750         * lib/xgetdomainname.h: Likewise.
46751         * lib/xgethostname.c: Likewise.
46752         * lib/xmalloc.c: Likewise.
46753         * lib/xmalloca.c: Likewise.
46754         * lib/xmalloca.h: Likewise.
46755         * lib/xmemcoll.c: Likewise.
46756         * lib/xnanosleep.c: Likewise.
46757         * lib/xreadlink.c: Likewise.
46758         * lib/xreadlink.h: Likewise.
46759         * lib/xsetenv.c: Likewise.
46760         * lib/xsetenv.h: Likewise.
46761         * lib/xstriconv.c: Likewise.
46762         * lib/xstriconv.h: Likewise.
46763         * lib/xstrndup.c: Likewise.
46764         * lib/xstrndup.h: Likewise.
46765         * lib/xstrtod.c: Likewise.
46766         * lib/xstrtod.h: Likewise.
46767         * lib/xstrtol-error.c: Likewise.
46768         * lib/xstrtol.c: Likewise.
46769         * lib/xstrtol.h: Likewise.
46770         * lib/xtime.h: Likewise.
46771         * lib/xvasprintf.c: Likewise.
46772         * lib/xvasprintf.h: Likewise.
46773         * lib/yesno.c: Likewise.
46774         * lib/yesno.h: Likewise.
46775         * posix-modules: Likewise.
46776         * tests/test-alloca-opt.c: Likewise.
46777         * tests/test-arcfour.c: Likewise.
46778         * tests/test-arctwo.c: Likewise.
46779         * tests/test-argmatch.c: Likewise.
46780         * tests/test-argp-2.sh: Likewise.
46781         * tests/test-argp.c: Likewise.
46782         * tests/test-arpa_inet.c: Likewise.
46783         * tests/test-array_list.c: Likewise.
46784         * tests/test-array_oset.c: Likewise.
46785         * tests/test-atexit.c: Likewise.
46786         * tests/test-avltree_list.c: Likewise.
46787         * tests/test-avltree_oset.c: Likewise.
46788         * tests/test-avltreehash_list.c: Likewise.
46789         * tests/test-base64.c: Likewise.
46790         * tests/test-binary-io.c: Likewise.
46791         * tests/test-byteswap.c: Likewise.
46792         * tests/test-c-ctype.c: Likewise.
46793         * tests/test-c-strcasecmp.c: Likewise.
46794         * tests/test-c-strcasestr.c: Likewise.
46795         * tests/test-c-strncasecmp.c: Likewise.
46796         * tests/test-c-strstr.c: Likewise.
46797         * tests/test-canonicalize-lgpl.c: Likewise.
46798         * tests/test-canonicalize.c: Likewise.
46799         * tests/test-carray_list.c: Likewise.
46800         * tests/test-ceilf.c: Likewise.
46801         * tests/test-ceill.c: Likewise.
46802         * tests/test-count-one-bits.c: Likewise.
46803         * tests/test-crc.c: Likewise.
46804         * tests/test-dirname.c: Likewise.
46805         * tests/test-fbufmode.c: Likewise.
46806         * tests/test-fcntl.c: Likewise.
46807         * tests/test-fflush.c: Likewise.
46808         * tests/test-floorf.c: Likewise.
46809         * tests/test-floorl.c: Likewise.
46810         * tests/test-fopen.c: Likewise.
46811         * tests/test-fprintf-posix.c: Likewise.
46812         * tests/test-fprintf-posix.h: Likewise.
46813         * tests/test-fpurge.c: Likewise.
46814         * tests/test-freadable.c: Likewise.
46815         * tests/test-freadahead.c: Likewise.
46816         * tests/test-freading.c: Likewise.
46817         * tests/test-freopen.c: Likewise.
46818         * tests/test-frexp.c: Likewise.
46819         * tests/test-frexpl.c: Likewise.
46820         * tests/test-fseek.c: Likewise.
46821         * tests/test-fseeko.c: Likewise.
46822         * tests/test-fseterr.c: Likewise.
46823         * tests/test-fstrcmp.c: Likewise.
46824         * tests/test-ftell.c: Likewise.
46825         * tests/test-ftello.c: Likewise.
46826         * tests/test-fwritable.c: Likewise.
46827         * tests/test-fwriting.c: Likewise.
46828         * tests/test-getaddrinfo.c: Likewise.
46829         * tests/test-getpass.c: Likewise.
46830         * tests/test-gettimeofday.c: Likewise.
46831         * tests/test-hmac-md5.c: Likewise.
46832         * tests/test-hmac-sha1.c: Likewise.
46833         * tests/test-iconv.c: Likewise.
46834         * tests/test-iconvme.c: Likewise.
46835         * tests/test-inttypes.c: Likewise.
46836         * tests/test-isnan.c: Likewise.
46837         * tests/test-isnanf.c: Likewise.
46838         * tests/test-isnanl-nolibm.c: Likewise.
46839         * tests/test-isnanl.c: Likewise.
46840         * tests/test-isnanl.h: Likewise.
46841         * tests/test-ldexpl.c: Likewise.
46842         * tests/test-linked_list.c: Likewise.
46843         * tests/test-linkedhash_list.c: Likewise.
46844         * tests/test-locale.c: Likewise.
46845         * tests/test-localename.c: Likewise.
46846         * tests/test-lock.c: Likewise.
46847         * tests/test-lseek.c: Likewise.
46848         * tests/test-malloca.c: Likewise.
46849         * tests/test-math.c: Likewise.
46850         * tests/test-mbscasecmp.c: Likewise.
46851         * tests/test-mbscasestr1.c: Likewise.
46852         * tests/test-mbscasestr2.c: Likewise.
46853         * tests/test-mbscasestr3.c: Likewise.
46854         * tests/test-mbscasestr4.c: Likewise.
46855         * tests/test-mbschr.c: Likewise.
46856         * tests/test-mbscspn.c: Likewise.
46857         * tests/test-mbsncasecmp.c: Likewise.
46858         * tests/test-mbspbrk.c: Likewise.
46859         * tests/test-mbspcasecmp.c: Likewise.
46860         * tests/test-mbsrchr.c: Likewise.
46861         * tests/test-mbsspn.c: Likewise.
46862         * tests/test-mbsstr1.c: Likewise.
46863         * tests/test-mbsstr2.c: Likewise.
46864         * tests/test-mbsstr3.c: Likewise.
46865         * tests/test-md5.c: Likewise.
46866         * tests/test-memmem.c: Likewise.
46867         * tests/test-netinet_in.c: Likewise.
46868         * tests/test-open.c: Likewise.
46869         * tests/test-printf-frexp.c: Likewise.
46870         * tests/test-printf-frexpl.c: Likewise.
46871         * tests/test-printf-posix.c: Likewise.
46872         * tests/test-printf-posix.h: Likewise.
46873         * tests/test-rbtree_list.c: Likewise.
46874         * tests/test-rbtree_oset.c: Likewise.
46875         * tests/test-rbtreehash_list.c: Likewise.
46876         * tests/test-read-file.c: Likewise.
46877         * tests/test-rijndael.c: Likewise.
46878         * tests/test-search.c: Likewise.
46879         * tests/test-signbit.c: Likewise.
46880         * tests/test-sleep.c: Likewise.
46881         * tests/test-snprintf-posix.c: Likewise.
46882         * tests/test-snprintf-posix.h: Likewise.
46883         * tests/test-snprintf.c: Likewise.
46884         * tests/test-sprintf-posix.c: Likewise.
46885         * tests/test-sprintf-posix.h: Likewise.
46886         * tests/test-stat-time.c: Likewise.
46887         * tests/test-stdbool.c: Likewise.
46888         * tests/test-stdint.c: Likewise.
46889         * tests/test-stdio.c: Likewise.
46890         * tests/test-stdlib.c: Likewise.
46891         * tests/test-stpncpy.c: Likewise.
46892         * tests/test-strcasestr.c: Likewise.
46893         * tests/test-striconv.c: Likewise.
46894         * tests/test-striconveh.c: Likewise.
46895         * tests/test-striconveha.c: Likewise.
46896         * tests/test-string.c: Likewise.
46897         * tests/test-sys_select.c: Likewise.
46898         * tests/test-sys_socket.c: Likewise.
46899         * tests/test-sys_stat.c: Likewise.
46900         * tests/test-sys_time.c: Likewise.
46901         * tests/test-sysexits.c: Likewise.
46902         * tests/test-time.c: Likewise.
46903         * tests/test-tls.c: Likewise.
46904         * tests/test-trunc.c: Likewise.
46905         * tests/test-truncf.c: Likewise.
46906         * tests/test-truncl.c: Likewise.
46907         * tests/test-unistd.c: Likewise.
46908         * tests/test-vasnprintf-posix.c: Likewise.
46909         * tests/test-vasnprintf-posix2.c: Likewise.
46910         * tests/test-vasnprintf.c: Likewise.
46911         * tests/test-vasprintf-posix.c: Likewise.
46912         * tests/test-vasprintf.c: Likewise.
46913         * tests/test-verify.c: Likewise.
46914         * tests/test-vfprintf-posix.c: Likewise.
46915         * tests/test-vprintf-posix.c: Likewise.
46916         * tests/test-vsnprintf-posix.c: Likewise.
46917         * tests/test-vsnprintf.c: Likewise.
46918         * tests/test-vsprintf-posix.c: Likewise.
46919         * tests/test-wchar.c: Likewise.
46920         * tests/test-wctype.c: Likewise.
46921         * tests/test-wcwidth.c: Likewise.
46922         * tests/test-xstrtol.c: Likewise.
46923         * tests/test-xvasprintf.c: Likewise.
46924         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
46925         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
46926         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46927         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46928         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46929         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
46930         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46931         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46932         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46933         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
46934         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46935         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46936         * tests/uniname/test-uninames.c: Likewise.
46937         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
46938         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
46939         * tests/unistdio/test-u16-printf1.h: Likewise.
46940         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
46941         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
46942         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
46943         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
46944         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
46945         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
46946         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
46947         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
46948         * tests/unistdio/test-u32-printf1.h: Likewise.
46949         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
46950         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
46951         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
46952         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
46953         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
46954         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
46955         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
46956         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
46957         * tests/unistdio/test-u8-printf1.h: Likewise.
46958         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
46959         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
46960         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
46961         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
46962         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
46963         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
46964         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
46965         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
46966         * tests/unistdio/test-ulc-printf1.h: Likewise.
46967         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
46968         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
46969         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
46970         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
46971         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
46972         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
46973         * tests/uniwidth/test-u16-strwidth.c: Likewise.
46974         * tests/uniwidth/test-u16-width.c: Likewise.
46975         * tests/uniwidth/test-u32-strwidth.c: Likewise.
46976         * tests/uniwidth/test-u32-width.c: Likewise.
46977         * tests/uniwidth/test-u8-strwidth.c: Likewise.
46978         * tests/uniwidth/test-u8-width.c: Likewise.
46979         * tests/uniwidth/test-uc_width.c: Likewise.
46980         * config/srclist-update: Likewise.
46981         (fixlicense): Update to GPLv3+.
46982
46983         Change copyright notice from LGPLv2.1+ to LGPLv3+.
46984         * tests/test-tsearch.c: Change copyright notice.
46985
46986         Change copyright notice from LGPLv2.0+ to LGPLv3+.
46987         * lib/c-strcaseeq.h: Change copyright notice.
46988         * lib/streq.h: Likewise.
46989         * lib/uniconv.h: Likewise.
46990         * lib/uniconv/u-conv-from-enc.h: Likewise.
46991         * lib/uniconv/u-conv-to-enc.h: Likewise.
46992         * lib/uniconv/u-strconv-from-enc.h: Likewise.
46993         * lib/uniconv/u-strconv-to-enc.h: Likewise.
46994         * lib/uniconv/u16-conv-from-enc.c: Likewise.
46995         * lib/uniconv/u16-conv-to-enc.c: Likewise.
46996         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
46997         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
46998         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
46999         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47000         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47001         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47002         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47003         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47004         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47005         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47006         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47007         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47008         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47009         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47010         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47011         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47012         * lib/uniname.h: Likewise.
47013         * lib/uniname/uniname.c: Likewise.
47014         * lib/unistdio.h: Likewise.
47015         * lib/unistdio/u-asnprintf.h: Likewise.
47016         * lib/unistdio/u-asprintf.h: Likewise.
47017         * lib/unistdio/u-printf-args.c: Likewise.
47018         * lib/unistdio/u-printf-args.h: Likewise.
47019         * lib/unistdio/u-printf-parse.h: Likewise.
47020         * lib/unistdio/u-snprintf.h: Likewise.
47021         * lib/unistdio/u-sprintf.h: Likewise.
47022         * lib/unistdio/u-vasprintf.h: Likewise.
47023         * lib/unistdio/u-vsnprintf.h: Likewise.
47024         * lib/unistdio/u-vsprintf.h: Likewise.
47025         * lib/unistdio/u16-asnprintf.c: Likewise.
47026         * lib/unistdio/u16-asprintf.c: Likewise.
47027         * lib/unistdio/u16-printf-parse.c: Likewise.
47028         * lib/unistdio/u16-snprintf.c: Likewise.
47029         * lib/unistdio/u16-sprintf.c: Likewise.
47030         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47031         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47032         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47033         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47034         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47035         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47036         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47037         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47038         * lib/unistdio/u16-vasnprintf.c: Likewise.
47039         * lib/unistdio/u16-vasprintf.c: Likewise.
47040         * lib/unistdio/u16-vsnprintf.c: Likewise.
47041         * lib/unistdio/u16-vsprintf.c: Likewise.
47042         * lib/unistdio/u32-asnprintf.c: Likewise.
47043         * lib/unistdio/u32-asprintf.c: Likewise.
47044         * lib/unistdio/u32-printf-parse.c: Likewise.
47045         * lib/unistdio/u32-snprintf.c: Likewise.
47046         * lib/unistdio/u32-sprintf.c: Likewise.
47047         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47048         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47049         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47050         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47051         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47052         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47053         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47054         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47055         * lib/unistdio/u32-vasnprintf.c: Likewise.
47056         * lib/unistdio/u32-vasprintf.c: Likewise.
47057         * lib/unistdio/u32-vsnprintf.c: Likewise.
47058         * lib/unistdio/u32-vsprintf.c: Likewise.
47059         * lib/unistdio/u8-asnprintf.c: Likewise.
47060         * lib/unistdio/u8-asprintf.c: Likewise.
47061         * lib/unistdio/u8-printf-parse.c: Likewise.
47062         * lib/unistdio/u8-snprintf.c: Likewise.
47063         * lib/unistdio/u8-sprintf.c: Likewise.
47064         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47065         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47066         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47067         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47068         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47069         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47070         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47071         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47072         * lib/unistdio/u8-vasnprintf.c: Likewise.
47073         * lib/unistdio/u8-vasprintf.c: Likewise.
47074         * lib/unistdio/u8-vsnprintf.c: Likewise.
47075         * lib/unistdio/u8-vsprintf.c: Likewise.
47076         * lib/unistdio/ulc-asnprintf.c: Likewise.
47077         * lib/unistdio/ulc-asprintf.c: Likewise.
47078         * lib/unistdio/ulc-printf-parse.c: Likewise.
47079         * lib/unistdio/ulc-snprintf.c: Likewise.
47080         * lib/unistdio/ulc-sprintf.c: Likewise.
47081         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47082         * lib/unistdio/ulc-vasprintf.c: Likewise.
47083         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47084         * lib/unistdio/ulc-vsprintf.c: Likewise.
47085         * lib/unistr.h: Likewise.
47086         * lib/unistr/u-cpy-alloc.h: Likewise.
47087         * lib/unistr/u-cpy.h: Likewise.
47088         * lib/unistr/u-endswith.h: Likewise.
47089         * lib/unistr/u-move.h: Likewise.
47090         * lib/unistr/u-set.h: Likewise.
47091         * lib/unistr/u-startswith.h: Likewise.
47092         * lib/unistr/u-stpcpy.h: Likewise.
47093         * lib/unistr/u-stpncpy.h: Likewise.
47094         * lib/unistr/u-strcat.h: Likewise.
47095         * lib/unistr/u-strcpy.h: Likewise.
47096         * lib/unistr/u-strcspn.h: Likewise.
47097         * lib/unistr/u-strdup.h: Likewise.
47098         * lib/unistr/u-strlen.h: Likewise.
47099         * lib/unistr/u-strncat.h: Likewise.
47100         * lib/unistr/u-strncpy.h: Likewise.
47101         * lib/unistr/u-strnlen.h: Likewise.
47102         * lib/unistr/u-strpbrk.h: Likewise.
47103         * lib/unistr/u-strspn.h: Likewise.
47104         * lib/unistr/u-strstr.h: Likewise.
47105         * lib/unistr/u-strtok.h: Likewise.
47106         * lib/unistr/u16-check.c: Likewise.
47107         * lib/unistr/u16-chr.c: Likewise.
47108         * lib/unistr/u16-cmp.c: Likewise.
47109         * lib/unistr/u16-cpy-alloc.c: Likewise.
47110         * lib/unistr/u16-cpy.c: Likewise.
47111         * lib/unistr/u16-endswith.c: Likewise.
47112         * lib/unistr/u16-mblen.c: Likewise.
47113         * lib/unistr/u16-mbsnlen.c: Likewise.
47114         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47115         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47116         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47117         * lib/unistr/u16-mbtouc.c: Likewise.
47118         * lib/unistr/u16-mbtoucr.c: Likewise.
47119         * lib/unistr/u16-move.c: Likewise.
47120         * lib/unistr/u16-next.c: Likewise.
47121         * lib/unistr/u16-prev.c: Likewise.
47122         * lib/unistr/u16-set.c: Likewise.
47123         * lib/unistr/u16-startswith.c: Likewise.
47124         * lib/unistr/u16-stpcpy.c: Likewise.
47125         * lib/unistr/u16-stpncpy.c: Likewise.
47126         * lib/unistr/u16-strcat.c: Likewise.
47127         * lib/unistr/u16-strchr.c: Likewise.
47128         * lib/unistr/u16-strcmp.c: Likewise.
47129         * lib/unistr/u16-strcpy.c: Likewise.
47130         * lib/unistr/u16-strcspn.c: Likewise.
47131         * lib/unistr/u16-strdup.c: Likewise.
47132         * lib/unistr/u16-strlen.c: Likewise.
47133         * lib/unistr/u16-strmblen.c: Likewise.
47134         * lib/unistr/u16-strmbtouc.c: Likewise.
47135         * lib/unistr/u16-strncat.c: Likewise.
47136         * lib/unistr/u16-strncmp.c: Likewise.
47137         * lib/unistr/u16-strncpy.c: Likewise.
47138         * lib/unistr/u16-strnlen.c: Likewise.
47139         * lib/unistr/u16-strpbrk.c: Likewise.
47140         * lib/unistr/u16-strrchr.c: Likewise.
47141         * lib/unistr/u16-strspn.c: Likewise.
47142         * lib/unistr/u16-strstr.c: Likewise.
47143         * lib/unistr/u16-strtok.c: Likewise.
47144         * lib/unistr/u16-to-u32.c: Likewise.
47145         * lib/unistr/u16-to-u8.c: Likewise.
47146         * lib/unistr/u16-uctomb-aux.c: Likewise.
47147         * lib/unistr/u16-uctomb.c: Likewise.
47148         * lib/unistr/u32-check.c: Likewise.
47149         * lib/unistr/u32-chr.c: Likewise.
47150         * lib/unistr/u32-cmp.c: Likewise.
47151         * lib/unistr/u32-cpy-alloc.c: Likewise.
47152         * lib/unistr/u32-cpy.c: Likewise.
47153         * lib/unistr/u32-endswith.c: Likewise.
47154         * lib/unistr/u32-mblen.c: Likewise.
47155         * lib/unistr/u32-mbsnlen.c: Likewise.
47156         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47157         * lib/unistr/u32-mbtouc.c: Likewise.
47158         * lib/unistr/u32-mbtoucr.c: Likewise.
47159         * lib/unistr/u32-move.c: Likewise.
47160         * lib/unistr/u32-next.c: Likewise.
47161         * lib/unistr/u32-prev.c: Likewise.
47162         * lib/unistr/u32-set.c: Likewise.
47163         * lib/unistr/u32-startswith.c: Likewise.
47164         * lib/unistr/u32-stpcpy.c: Likewise.
47165         * lib/unistr/u32-stpncpy.c: Likewise.
47166         * lib/unistr/u32-strcat.c: Likewise.
47167         * lib/unistr/u32-strchr.c: Likewise.
47168         * lib/unistr/u32-strcmp.c: Likewise.
47169         * lib/unistr/u32-strcpy.c: Likewise.
47170         * lib/unistr/u32-strcspn.c: Likewise.
47171         * lib/unistr/u32-strdup.c: Likewise.
47172         * lib/unistr/u32-strlen.c: Likewise.
47173         * lib/unistr/u32-strmblen.c: Likewise.
47174         * lib/unistr/u32-strmbtouc.c: Likewise.
47175         * lib/unistr/u32-strncat.c: Likewise.
47176         * lib/unistr/u32-strncmp.c: Likewise.
47177         * lib/unistr/u32-strncpy.c: Likewise.
47178         * lib/unistr/u32-strnlen.c: Likewise.
47179         * lib/unistr/u32-strpbrk.c: Likewise.
47180         * lib/unistr/u32-strrchr.c: Likewise.
47181         * lib/unistr/u32-strspn.c: Likewise.
47182         * lib/unistr/u32-strstr.c: Likewise.
47183         * lib/unistr/u32-strtok.c: Likewise.
47184         * lib/unistr/u32-to-u16.c: Likewise.
47185         * lib/unistr/u32-to-u8.c: Likewise.
47186         * lib/unistr/u32-uctomb.c: Likewise.
47187         * lib/unistr/u8-check.c: Likewise.
47188         * lib/unistr/u8-chr.c: Likewise.
47189         * lib/unistr/u8-cmp.c: Likewise.
47190         * lib/unistr/u8-cpy-alloc.c: Likewise.
47191         * lib/unistr/u8-cpy.c: Likewise.
47192         * lib/unistr/u8-endswith.c: Likewise.
47193         * lib/unistr/u8-mblen.c: Likewise.
47194         * lib/unistr/u8-mbsnlen.c: Likewise.
47195         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47196         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47197         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47198         * lib/unistr/u8-mbtouc.c: Likewise.
47199         * lib/unistr/u8-mbtoucr.c: Likewise.
47200         * lib/unistr/u8-move.c: Likewise.
47201         * lib/unistr/u8-next.c: Likewise.
47202         * lib/unistr/u8-prev.c: Likewise.
47203         * lib/unistr/u8-set.c: Likewise.
47204         * lib/unistr/u8-startswith.c: Likewise.
47205         * lib/unistr/u8-stpcpy.c: Likewise.
47206         * lib/unistr/u8-stpncpy.c: Likewise.
47207         * lib/unistr/u8-strcat.c: Likewise.
47208         * lib/unistr/u8-strchr.c: Likewise.
47209         * lib/unistr/u8-strcmp.c: Likewise.
47210         * lib/unistr/u8-strcpy.c: Likewise.
47211         * lib/unistr/u8-strcspn.c: Likewise.
47212         * lib/unistr/u8-strdup.c: Likewise.
47213         * lib/unistr/u8-strlen.c: Likewise.
47214         * lib/unistr/u8-strmblen.c: Likewise.
47215         * lib/unistr/u8-strmbtouc.c: Likewise.
47216         * lib/unistr/u8-strncat.c: Likewise.
47217         * lib/unistr/u8-strncmp.c: Likewise.
47218         * lib/unistr/u8-strncpy.c: Likewise.
47219         * lib/unistr/u8-strnlen.c: Likewise.
47220         * lib/unistr/u8-strpbrk.c: Likewise.
47221         * lib/unistr/u8-strrchr.c: Likewise.
47222         * lib/unistr/u8-strspn.c: Likewise.
47223         * lib/unistr/u8-strstr.c: Likewise.
47224         * lib/unistr/u8-strtok.c: Likewise.
47225         * lib/unistr/u8-to-u16.c: Likewise.
47226         * lib/unistr/u8-to-u32.c: Likewise.
47227         * lib/unistr/u8-uctomb-aux.c: Likewise.
47228         * lib/unistr/u8-uctomb.c: Likewise.
47229         * lib/unitypes.h: Likewise.
47230         * lib/uniwidth.h: Likewise.
47231         * lib/uniwidth/cjk.h: Likewise.
47232         * lib/uniwidth/u16-strwidth.c: Likewise.
47233         * lib/uniwidth/u16-width.c: Likewise.
47234         * lib/uniwidth/u32-strwidth.c: Likewise.
47235         * lib/uniwidth/u32-width.c: Likewise.
47236         * lib/uniwidth/u8-strwidth.c: Likewise.
47237         * lib/uniwidth/u8-width.c: Likewise.
47238         * lib/uniwidth/width.c: Likewise.
47239
47240 2007-10-07  Bruno Haible  <bruno@clisp.org>
47241
47242         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47243         The file is still under LGPL (see modules/inttypes).
47244
47245 2007-10-06  Bruno Haible  <bruno@clisp.org>
47246
47247         * modules/trunc (Dependencies): Add 'extensions'.
47248         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47249         Reported by Ben Pfaff <blp@gnu.org>.
47250
47251 2007-10-06  Bruno Haible  <bruno@clisp.org>
47252
47253         * modules/freopen-tests: New file.
47254         * tests/test-freopen.c: New file.
47255
47256         * modules/fopen-tests: New file.
47257         * tests/test-fopen.c: New file.
47258
47259         * modules/fopen: New file.
47260         * lib/fopen.c: New file.
47261         * m4/fopen.m4: New file.
47262         * modules/freopen: New file.
47263         * lib/freopen.c: New file.
47264         * m4/freopen.m4: New file.
47265         * lib/stdio.in.h (fopen, freopen): New declarations.
47266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47267         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47268         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47269         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47270         * doc/functions/fopen.texi: Mention the 'fopen' module.
47271         * doc/functions/freopen.texi: Mention the 'freopen' module.
47272
47273 2007-10-06  Bruno Haible  <bruno@clisp.org>
47274
47275         * modules/open-tests: New file.
47276         * tests/test-open.c: New file.
47277
47278         * modules/open: New file.
47279         * lib/open.c: New file.
47280         * m4/open.m4: New file.
47281         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47282         lib/open.c does.
47283         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47284         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47285         macros.
47286         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47287         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47288         REPLACE_OPEN.
47289         * doc/functions/open.texi: Mention the 'open' module.
47290
47291 2007-10-04  Bruno Haible  <bruno@clisp.org>
47292
47293         * modules/ceill-tests: New file.
47294         * tests/test-ceill.c: New file.
47295
47296         * modules/ceill: New file.
47297         * lib/ceill.c: Replace entire file.
47298         * m4/ceill.m4: New file.
47299         * lib/math.in.h (ceill): Replace declaration.
47300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47301         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47302         * doc/functions/ceill.texi: Mention the 'ceill' module.
47303         * modules/mathl (Files): Remove lib/ceill.c.
47304         (Depends-on): Add ceill.
47305
47306 2007-10-04  Bruno Haible  <bruno@clisp.org>
47307
47308         * modules/ceilf-tests: New file.
47309         * tests/test-ceilf.c: New file.
47310
47311         * modules/ceilf: New file.
47312         * lib/ceil.c: New file.
47313         * lib/ceilf.c: New file.
47314         * m4/ceilf.m4: New file.
47315         * lib/math.in.h (ceilf): New declaration.
47316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47317         HAVE_DECL_CEILF.
47318         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47319         HAVE_DECL_CEILF.
47320         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47321
47322 2007-10-04  Bruno Haible  <bruno@clisp.org>
47323
47324         * modules/floorl-tests: New file.
47325         * tests/test-floorl.c: New file.
47326
47327         * modules/floorl: New file.
47328         * lib/floorl.c: Replace entire file.
47329         * m4/floorl.m4: New file.
47330         * lib/math.in.h (floorl): Replace declaration.
47331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47332         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47333         * doc/functions/floorl.texi: Mention the 'floorl' module.
47334         * modules/mathl (Files): Remove lib/floorl.c.
47335         (Depends-on): Add floorl.
47336
47337 2007-10-04  Bruno Haible  <bruno@clisp.org>
47338
47339         * modules/floorf-tests: New file.
47340         * tests/test-floorf.c: New file.
47341
47342         * modules/floorf: New file.
47343         * lib/floor.c: New file.
47344         * lib/floorf.c: New file.
47345         * m4/floorf.m4: New file.
47346         * lib/math.in.h (floorf): New declaration.
47347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47348         HAVE_DECL_FLOORF.
47349         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47350         HAVE_DECL_FLOORF.
47351         * doc/functions/floorf.texi: Mention the 'floorf' module.
47352
47353 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47354             Bruno Haible  <bruno@clisp.org>
47355
47356         Advertise for the Git server instead of the CVS server.
47357         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47358         repository instead of the CVS one.
47359         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47360         about all VCS systems generically.
47361         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47362
47363 2007-10-04  Bruno Haible  <bruno@clisp.org>
47364
47365         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47366         means.
47367         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47368
47369 2007-10-04  Bruno Haible  <bruno@clisp.org>
47370
47371         * modules/truncl-tests: New file.
47372         * tests/test-truncl.c: New file.
47373
47374         * modules/truncl: New file.
47375         * lib/truncl.c: New file.
47376         * m4/truncl.m4: New file.
47377         * lib/math.in.h (truncl): New declaration.
47378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47379         HAVE_DECL_TRUNCL.
47380         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47381         HAVE_DECL_TRUNCL.
47382         * doc/functions/truncl.texi: Mention the 'truncl' module.
47383
47384 2007-10-04  Bruno Haible  <bruno@clisp.org>
47385
47386         * modules/truncf-tests: New file.
47387         * tests/test-truncf.c: New file.
47388
47389         * modules/truncf: New file.
47390         * lib/trunc.c: Make paramerizable through USE_* macros.
47391         * lib/truncf.c: New file.
47392         * m4/truncf.m4: New file.
47393         * lib/math.in.h (truncf): New declaration.
47394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47395         HAVE_DECL_TRUNCF.
47396         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47397         HAVE_DECL_TRUNCF.
47398         * doc/functions/truncf.texi: Mention the 'truncf' module.
47399
47400 2007-10-03  Bruno Haible  <bruno@clisp.org>
47401
47402         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47403         augmentation also for tests modules.
47404         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47405         * modules/atexit-tests (Makefile.am): Likewise.
47406         * modules/binary-io-tests (Makefile.am): Likewise.
47407         * modules/c-strcase-tests (Makefile.am): Likewise.
47408         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47409         * modules/canonicalize-tests (Makefile.am): Likewise.
47410         * modules/closein-tests (Makefile.am): Likewise.
47411         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47412         * modules/freadahead-tests (Makefile.am): Likewise.
47413         * modules/fseek-tests (Makefile.am): Likewise.
47414         * modules/fseeko-tests (Makefile.am): Likewise.
47415         * modules/ftell-tests (Makefile.am): Likewise.
47416         * modules/ftello-tests (Makefile.am): Likewise.
47417         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47418         * modules/isnanl-tests (Makefile.am): Likewise.
47419         * modules/lseek-tests (Makefile.am): Likewise.
47420         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47421         * modules/mbscasestr-tests (Makefile.am): Likewise.
47422         * modules/mbschr-tests (Makefile.am): Likewise.
47423         * modules/mbscspn-tests (Makefile.am): Likewise.
47424         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47425         * modules/mbspbrk-tests (Makefile.am): Likewise.
47426         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47427         * modules/mbsrchr-tests (Makefile.am): Likewise.
47428         * modules/mbsspn-tests (Makefile.am): Likewise.
47429         * modules/mbsstr-tests (Makefile.am): Likewise.
47430         * modules/printf-posix-tests (Makefile.am): Likewise.
47431         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47432         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47433         * modules/tsearch-tests (Makefile.am): Likewise.
47434         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47435         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47436         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47437         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47438         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47439         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47440         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47441         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47442         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47443         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47444         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47445         * modules/xstrtol-tests (Makefile.am): Likewise.
47446         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47447         * modules/yesno-tests (Makefile.am): Likewise.
47448
47449 2007-10-03  Bruno Haible  <bruno@clisp.org>
47450
47451         * modules/trunc-tests: New file.
47452         * tests/test-trunc.c: New file.
47453
47454         * modules/trunc: New file.
47455         * lib/trunc.c: New file.
47456         * m4/trunc.m4: New file.
47457         * lib/math.in.h (trunc): New declaration.
47458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47459         HAVE_DECL_TRUNC.
47460         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47461         HAVE_DECL_TRUNC.
47462         * doc/functions/trunc.texi: Mention the 'trunc' module.
47463
47464 2007-10-03  Bruno Haible  <bruno@clisp.org>
47465
47466         * tests/test-fpending.c: New file, mostly copied
47467         from coreutils/lib/t-fpending.c.
47468         * modules/fpending-tests: New file.
47469
47470 2007-10-03  Bruno Haible  <bruno@clisp.org>
47471
47472         Port the stdio extensions to QNX (untested).
47473         * lib/fseterr.c (fseterr): Add support for QNX.
47474         * lib/fbufmode.c (fbufmode): Likewise.
47475         * lib/freadable.c (freadable): Likewise.
47476         * lib/fwritable.c (fwritable): Likewise.
47477         * lib/freading.c (freading): Likewise.
47478         * lib/fwriting.c (fwriting): Likewise.
47479         * lib/freadahead.c (freadahed): Likewise.
47480         * lib/fpurge.c (fpurge): Likewise.
47481         * lib/fseeko.c (rpl_fseeko): Likewise.
47482
47483 2007-10-03  Bruno Haible  <bruno@clisp.org>
47484             Jim Meyering  <jim@meyering.net>
47485             Eric Blake  <ebb9@byu.net>
47486
47487         * doc/relocatable.texi: Use @command instead of @program.
47488
47489 2007-10-02  Jim Meyering  <jim@meyering.net>
47490
47491         Perform one more "_.h" -> ".in.h" substitution.
47492         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47493         instead of unistd_.h here, too.
47494
47495 2007-10-01  Bruno Haible  <bruno@clisp.org>
47496
47497         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47498         Needed for the alloca-opt module.
47499
47500 2007-09-30  Bruno Haible  <bruno@clisp.org>
47501
47502         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47503         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47504         alloca_.h.
47505         * lib/argz.in.h: Renamed from lib/argz_.h.
47506         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47507         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47508         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47509         byteswap_.h.
47510         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47511         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47512         dirent_.h.
47513         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47514         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47515         fcntl_.h.
47516         * lib/float.in.h: Renamed from lib/float_.h.
47517         * modules/float (Files, Makefile.am): Use float.in.h instead of
47518         float_.h.
47519         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
47520         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
47521         fnmatch_.h.
47522         * lib/getopt.in.h: Renamed from lib/getopt_.h.
47523         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
47524         getopt_.h.
47525         * lib/glob.in.h: Renamed from lib/glob_.h.
47526         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
47527         * lib/iconv.in.h: Renamed from lib/iconv_.h.
47528         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
47529         iconv_.h.
47530         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
47531         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
47532         inttypes_.h.
47533         * lib/locale.in.h: Renamed from lib/locale_.h.
47534         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
47535         locale_.h.
47536         * lib/math.in.h: Renamed from lib/math_.h.
47537         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
47538         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
47539         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
47540         of netinet_in_.h. Add dependency.
47541         * lib/poll.in.h: Renamed from lib/poll_.h.
47542         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
47543         * lib/search.in.h: Renamed from lib/search_.h.
47544         * modules/search (Files, Makefile.am): Use search.in.h instead of
47545         search_.h.
47546         * lib/signal.in.h: Renamed from lib/signal_.h.
47547         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
47548         _signal.h.
47549         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
47550         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
47551         stdbool_.h.
47552         * lib/stdint.in.h: Renamed from lib/stdint_.h.
47553         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
47554         stdint_.h.
47555         * lib/stdio.in.h: Renamed from lib/stdio_.h.
47556         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
47557         stdio_.h.
47558         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
47559         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
47560         stdlib_.h.
47561         * lib/string.in.h: Renamed from lib/string_.h.
47562         * modules/string (Files, Makefile.am): Use string.in.h instead of
47563         string_.h.
47564         * doc/gnulib-tool.texi (Initial import): Update.
47565         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
47566         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
47567         of sys_select_.h. Add dependency.
47568         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
47569         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
47570         of sys_socket_.h.
47571         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
47572         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
47573         sys_stat_.h.
47574         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
47575         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
47576         sys_time_.h.
47577         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47578         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
47579         sysexits_.h.
47580         * lib/time.in.h: Renamed from lib/time_.h.
47581         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
47582         * lib/unistd.in.h: Renamed from lib/unistd_.h.
47583         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
47584         unistd_.h.
47585         * lib/wchar.in.h: Renamed from lib/wchar_.h.
47586         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
47587         wchar_.h.
47588         * lib/wctype.in.h: Renamed from lib/wctype_.h.
47589         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
47590         wctype_.h.
47591         * build-aux/bootstrap (slurp): Update.
47592         * lib/.cppi-disable: Update.
47593
47594 2007-09-30  Bruno Haible  <bruno@clisp.org>
47595
47596         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
47597         Needed on BeOS.
47598
47599 2007-09-30  Bruno Haible  <bruno@clisp.org>
47600
47601         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
47602
47603 2007-09-29  Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
47606
47607 2007-09-29  Bruno Haible  <bruno@clisp.org>
47608
47609         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
47610         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
47611         * build-aux/install-reloc: Compile also areadlink.c.
47612         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
47613
47614 2007-09-29  Bruno Haible  <bruno@clisp.org>
47615
47616         * gnulib-tool (func_emit_initmacro_done): Indentation.
47617
47618 2007-09-29  Bruno Haible  <bruno@clisp.org>
47619
47620         * README: Add CVS checkout update instructions.
47621         Info from Bob Proulx <bob@proulx.com>.
47622
47623 2007-09-28  Eric Blake  <ebb9@byu.net>
47624
47625         Provide move-if-change.
47626         * build-aux/move-if-change: New file, based on best practice
47627         rather than any canonical upstream location.
47628
47629 2007-09-28  Jim Meyering  <jim@meyering.net>
47630
47631         Fix canonicalize loop-detection corner case.
47632         Do not attempt to stat the symlink values stored via seen_triple.
47633         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
47634         on linux-2.6.18, (but not 2.6.22).
47635         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
47636         triple_compare.  The former compares dev,ino,filename, while the latter
47637         would actually stat dirname(filename) when dev and ino were equal.
47638         * lib/hash-triple.c: Install <string.h>.
47639         (STREQ): Define.
47640         (triple_compare_ino_str): New function.
47641         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
47642
47643 2007-09-28  Eric Blake  <ebb9@byu.net>
47644
47645         Enforce that AC_REPLACE_FUNCS files exist.
47646         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
47647         override check for typos.
47648
47649         Fix test-closein on Solaris 10.
47650         * tests/test-closein.c (main): Don't assume stdin can be inherited
47651         closed on all systems.
47652         * tests/test-closein.sh: Likewise.
47653         Reported by Piotr Tarnowski.
47654
47655 2007-09-28  Jim Meyering  <jim@meyering.net>
47656
47657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
47658
47659 2007-09-27  Jim Meyering  <jim@meyering.net>
47660
47661         canonicalize: Avoid a false-positive cycle failure.
47662         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
47663         Sort.  Remove cycle-check.
47664         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
47665         not cycle-check.h.
47666         (seen_triple): New function.
47667         (canonicalize_filename_mode): Use it instead of cycle-check.
47668         * tests/test-canonicalize.c: Add a test for this bug.
47669         * tests/test-canonicalize.sh: Set up and run the test.
47670
47671         New module, file-set, from coreutils.
47672         * modules/file-set: Define it.
47673         * lib/file-set.c, lib/file-set.h: Implement.
47674
47675         New module, hash-triple, from coreutils.
47676         * modules/hash-triple: Define it.
47677         * lib/hash-triple.c, lib/hash-triple.h: Implement.
47678
47679 2007-09-25  Eric Blake  <ebb9@byu.net>
47680
47681         Fix strerror on Interix.
47682         * lib/string_.h (strerror): Declare replacement.
47683         * doc/functions/strerror.texi (strerror): Document the Interix
47684         shortcoming.
47685         * modules/string (Makefile.am): Support new hooks.
47686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
47687         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
47688         gl_FUNC_STRERROR_SEPARATE.
47689         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47690         * lib/strerror.c (rpl_strerror): Provide replacement.
47691         * modules/strerror (Depends-on): Add string.
47692         (configure.ac): Detect use of module.
47693         * tests/test-strerror.c: New file.
47694         * modules/strerror-tests: New test module.
47695         * modules/argp (Depends-on): Add strerror.
47696         * modules/error (Depends-on): Likewise.
47697         Reported by Martin Koeppe.
47698
47699 2007-09-24  Bruno Haible  <bruno@clisp.org>
47700
47701         * README: Update git instructions.
47702
47703 2007-09-24  Eric Blake  <ebb9@byu.net>
47704
47705         Revert fpending breakage from 2007-09-08.
47706         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47707         __fpending.c.
47708
47709 2007-09-24  Jim Meyering  <jim@meyering.net>
47710
47711         filenamecat.c: Add a test.
47712         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47713         showing how the function works when DIR is the empty string.
47714
47715 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47716
47717         * tests/test-canonicalize.sh: Turn on executable bit.
47718
47719 2007-09-19  Eric Blake  <ebb9@byu.net>
47720
47721         * README: Update CVS instructions.
47722
47723 2007-09-18  Bruno Haible  <bruno@clisp.org>
47724
47725         * modules/areadlink: New file.
47726         * lib/areadlink.h (areadlink): New declaration.
47727         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47728
47729 2007-09-17  Jim Meyering  <jim@meyering.net>
47730
47731         * lib/savewd.c (ESTALE) [!defined]: Define.
47732         Reported to be required on Interix by Martin Koeppe.
47733
47734 2007-09-17  Bruno Haible  <bruno@clisp.org>
47735
47736         * gnulib-tool (func_version): Use $version.
47737
47738 2007-09-16  Bruno Haible  <bruno@clisp.org>
47739
47740         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47741         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47742         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47743         Reported by Greg Schafer <gschafer@zip.com.au>.
47744
47745 2007-09-15  Bruno Haible  <bruno@clisp.org>
47746
47747         * gnulib-tool (sed): Try a little harder to make bash understand the
47748         alias.
47749         Reported by Bruce Korb <bruce.korb@gmail.com>.
47750
47751 2007-09-13  Eric Blake  <ebb9@byu.net>
47752
47753         * ChangeLog: Remove conflict markers.
47754
47755 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47756
47757         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47758         Reported by Bruno Haible <bruno@clisp.org>.
47759
47760 2007-09-12  Bruno Haible  <bruno@clisp.org>
47761
47762         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47763         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47764         is not defined.
47765
47766 2007-09-12  Eric Blake  <ebb9@byu.net>
47767
47768         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47769         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47770         Autoconf definition.
47771         * modules/euidaccess (Depends-on): Add extensions, for
47772         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47773         * modules/fnmatch (Depends-on): Likewise.
47774         * modules/getaddrinfo (Depends-on): Likewise.
47775         * modules/getdelim (Depends-on): Likewise.
47776         * modules/getline (Depends-on): Likewise.
47777         * modules/getsubopt (Depends-on): Likewise.
47778         * modules/gettext (Depends-on): Likewise.
47779         * modules/group-member (Depends-on): Likewise.
47780         * modules/mbchar (Depends-on): Likewise.
47781         * modules/memmem (Depends-on): Likewise.
47782         * modules/mempcpy (Depends-on): Likewise.
47783         * modules/memrchr (Depends-on): Likewise.
47784         * modules/pagealign_alloc (Depends-on): Likewise.
47785         * modules/readutmp (Depends-on): Likewise.
47786         * modules/stpcpy (Depends-on): Likewise.
47787         * modules/stpncpy (Depends-on): Likewise.
47788         * modules/strchrnul (Depends-on): Likewise.
47789         * modules/strndup (Depends-on): Likewise.
47790         * modules/strsep (Depends-on): Likewise.
47791         * modules/strverscmp (Depends-on): Likewise.
47792         * modules/vasprintf (Depends-on): Likewise.
47793         * modules/wcwidth (Depends-on): Likewise.
47794         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
47795         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
47796         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
47797         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
47798         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47799         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47800         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
47801         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47802         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
47803         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
47804         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47805         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47806         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47807         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47808         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
47809         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47810         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47811         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47812         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47813         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47814         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47815         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47816         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47817         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
47818         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
47819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47820         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
47821         so that lock.m4 can be used in gettext without extensions module.
47822
47823 2007-09-11  Bruno Haible  <bruno@clisp.org>
47824
47825         * m4/isc-posix.m4: Remove file.
47826         Suggested by Eric Blake.
47827
47828 2007-09-11  Eric Blake  <ebb9@byu.net>
47829
47830         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
47831
47832 2007-09-10  Bruno Haible  <bruno@clisp.org>
47833
47834         * posix-modules: Fix typo in error message.
47835         Reported by Matt <mkraai@beckman.com>.
47836
47837 2007-09-09  Bruno Haible  <bruno@clisp.org>
47838
47839         * doc/functions/getdelim.texi: Update list of platforms lacking the
47840         function.
47841         * doc/functions/getline.texi: Likewise.
47842
47843 2007-09-09  Jim Meyering  <jim@meyering.net>
47844
47845         * lib/hash.c (hash_initialize): Detect calloc failure.
47846         Reported by Bruno Haible.
47847
47848 2007-09-09  Bruno Haible  <bruno@clisp.org>
47849
47850         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
47851         malloc or realloc fails.
47852
47853 2007-09-09  Bruno Haible  <bruno@clisp.org>
47854
47855         * modules/getcwd (Depends-on): Add malloc-posix.
47856         * modules/glob (Depends-on): Likewise.
47857         * modules/putenv (Depends-on): Likewise.
47858         * modules/strdup (Depends-on): Likewise.
47859         * modules/getdelim (Depends-on): Add realloc-posix.
47860         * modules/read-file (Depends-on): Likewise.
47861
47862 2007-09-09  Bruno Haible  <bruno@clisp.org>
47863
47864         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
47865         (gl_FUNC_MALLOC_POSIX): Require it.
47866         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
47867         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
47868         * modules/realloc (Files): Add m4/malloc.m4.
47869         * modules/calloc (Files): Likewise.
47870
47871 2007-09-09  Bruno Haible  <bruno@clisp.org>
47872
47873         * modules/malloc-posix: New file.
47874         * modules/malloc (Depends-on): Add malloc-posix.
47875         * lib/malloc.c: Include errno.h.
47876         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
47877         and a POSIX-compatible malloc into a single function. Set ENOMEM
47878         when returning NULL.
47879         * m4/malloc.m4: New file.
47880         * doc/functions/malloc.texi: Mention the malloc-posix module.
47881         * lib/stdlib_.h (malloc): New declaration.
47882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47883         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
47884         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
47885         and HAVE_MALLOC_POSIX.
47886
47887 2007-09-09  Bruno Haible  <bruno@clisp.org>
47888
47889         * modules/realloc-posix: New file.
47890         * modules/realloc (Depends-on): Add realloc-posix.
47891         * lib/realloc.c: Include errno.h.
47892         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
47893         and a POSIX-compatible realloc into a single function. Set ENOMEM
47894         when returning NULL.
47895         * m4/realloc.m4: New file.
47896         * doc/functions/realloc.texi: Mention the realloc-posix module.
47897         * lib/stdlib_.h (realloc): New declaration.
47898         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47899         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
47900         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
47901         and HAVE_REALLOC_POSIX.
47902
47903 2007-09-09  Bruno Haible  <bruno@clisp.org>
47904
47905         * modules/calloc-posix: New file.
47906         * modules/calloc (Depends-on): Add calloc-posix.
47907         * lib/calloc.c: Include errno.h.
47908         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
47909         and a POSIX-compatible calloc into a single function. Set ENOMEM
47910         when returning NULL.
47911         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
47912         * doc/functions/calloc.texi: Mention the calloc-posix module.
47913         * lib/stdlib_.h (calloc): New declaration.
47914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47915         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
47916         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
47917         and HAVE_CALLOC_POSIX.
47918
47919 2007-09-09  Bruno Haible  <bruno@clisp.org>
47920
47921         Allow for modules to show an arbitrary notice.
47922         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
47923         * gnulib-tool: New option --extract-notice.
47924         (func_usage): Document it.
47925         (sed_extract_prog): Update.
47926         (func_get_notice): New function.
47927         (func_modules_notice): New function.
47928         (func_import, func_create_testdir): Invoke it.
47929         Suggested by Jim Meyering.
47930
47931 2007-09-09  Bruno Haible  <bruno@clisp.org>
47932
47933         * gnulib-tool: New options --verbose, --quiet.
47934         (func_usage): Document them.
47935         (verbose): New variable.
47936         (func_execute_command): New function.
47937         (func_import): Don't show the module list and the file list if
47938         $verbose < 0.
47939         (func_create_testdir): Likewise. Use func_execute_command.
47940         (func_create_megatestdir): Use func_execute_command.
47941
47942 2007-09-08  Bruno Haible  <bruno@clisp.org>
47943
47944         * gnulib-tool (func_import): Prefer rsync over wget when available,
47945         for fetching the PO files.
47946
47947 2007-09-08  Bruno Haible  <bruno@clisp.org>
47948
47949         * posix-modules: New file. Portions copied from gnulib-tool.
47950         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
47951
47952 2007-09-08  Jim Meyering  <jim@meyering.net>
47953
47954         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
47955         * lib/fpending.h: Rename from __fpending.h.
47956         * lib/fpending.c: Rename from __fpending.c.
47957         Include "fpending.h", not "__fpending.h".
47958         * lib/__fpending.h, lib/__fpending.c: Remove files.
47959         * modules/fpending (Files): Reflect new file names.
47960         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
47961
47962 2007-09-08  Bruno Haible  <bruno@clisp.org>
47963
47964         * m4/inttypes-h.m4: Remove stub file.
47965
47966 2007-09-07  Simon Josefsson  <simon@josefsson.org>
47967
47968         * doc/headers/stdint.texi: Discuss #include_next issue.
47969
47970 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47971
47972         * build-aux/bootstrap: Remove obsolete comment about wget --help.
47973
47974 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47975
47976         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
47977         in variable name.
47978
47979 2007-09-03  Jim Meyering  <jim@meyering.net>
47980
47981         New module: git-version-gen.
47982         * modules/git-version-gen: New file.
47983
47984         Import changes from coreutils for bootstrap script.
47985
47986         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
47987
47988         bootstrap: uses rsync to download the .po files
47989         * build-aux/bootstrap (po_download_command_format): New global.
47990         (download_po_files): Use rsync.
47991         (update_po_files): Don't remove .po files after download,
47992         so future rsync runs can take advantage of the copies.
47993
47994         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
47995
47996         Solve the unnecessary-.po-file-regeneration problem once and for all.
47997         * build-aux/bootstrap (download_po_files): New function, renamed from
47998         get_translations.  Now, downloads, but doesn't update LINGUAS.
47999         (update_po_files): New function.
48000
48001         bootstrap: Ignore more.
48002         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48003         uniwidth to e.g., lib/.gitignore.
48004         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48005
48006         * build-aux/bootstrap: New setting: vc_ignore.
48007         (insert_sorted_if_absent): Create $file if absent.
48008         Adapt to new, possibly empty, list: $vc_ignore.
48009
48010         bootstrap: generate more ignorable names
48011         * build-aux/bootstrap (slurp): When generating ignorable names,
48012         also map .sin to .sed, .gperf to .c, and .y to .c.
48013
48014 2007-09-03  Jim Meyering  <jim@meyering.net>
48015
48016         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48017         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48018
48019 2007-09-02  Bruno Haible  <bruno@clisp.org>
48020
48021         Fix mis-recognition of 'mcs' on QNX 6.
48022         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48023         output contains the string "Mono".
48024         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48025         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48026
48027 2007-09-01  Bruno Haible  <bruno@clisp.org>
48028
48029         Fix collision between uniwidth/* and linebreak modules.
48030         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48031         u32_width): Remove declarations.
48032         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48033         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48034         streq3, streq2, streq1, streq0): Remove functions.
48035         (STREQ): Remove macro.
48036         (is_cjk_encoding): Remove function.
48037         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48038         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48039         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48040         * NEWS: Document the change.
48041
48042 2007-09-01  Bruno Haible  <bruno@clisp.org>
48043
48044         * lib/streq.h: Add double-inclusion guard.
48045
48046 2007-09-01  Karl Berry  <karl@gnu.org>
48047
48048         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48049
48050 2007-08-28  Jim Meyering  <jim@meyering.net>
48051
48052         Rename mreadlink_with_size to areadlink_with_size.
48053         * NEWS: Document the change.
48054         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48055         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48056         * lib/mreadlink.h: Rename this to...
48057         * lib/areadlink.h: ...this.
48058         * modules/mreadlink-with-size: Rename this to...
48059         * modules/areadlink-with-size: ...this.
48060         * lib/canonicalize.c: Reflect the renaming.
48061         * modules/canonicalize: Likewise.
48062
48063 2007-08-26  Bruno Haible  <bruno@clisp.org>
48064
48065         * gnulib-tool (func_import): When deciding which files to remove,
48066         consider also dangling symbolic links.
48067         Reported by Eric Blake.
48068
48069 2007-08-26  Bruno Haible  <bruno@clisp.org>
48070
48071         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48072
48073 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48074
48075         * lib/readline.c: Don't include getline.h, the prototype is now
48076         found in stdio.h.
48077
48078 2007-08-23  Jim Meyering  <jim@meyering.net>
48079
48080         Getdelim touchup.
48081         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48082         around the funlockfile call, since funlockfile never sets errno.
48083         Don't set errno upon failed realloc.
48084
48085 2007-08-22  Eric Blake  <ebb9@byu.net>
48086
48087         Getline touchups.
48088         * lib/getdelim.c (getdelim): Revert regression that required *n to
48089         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48090         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48091         getdelim, rather than whether implementation is missing.
48092         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48093         * lib/stdio_.h (getline): Also declare if replacement is
48094         required.
48095         * doc/functions/getdelim.texi: New file.
48096         * doc/functions/getline.texi: Likewise.
48097         * doc/gnulib.texi (Function Substitutes): Add new files.
48098         Reported by Bruno Haible.
48099
48100 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48101
48102         * users.txt: Add Guile.
48103
48104 2007-08-22  Eric Blake  <ebb9@byu.net>
48105
48106         * tests/test-getdelim.c (main): Use remove, not unlink.
48107         * tests/test-getline.c (main): Likewise.
48108
48109         Move getline and getdelim into stdio.h, per POSIX 200x.
48110         * modules/getline (Files): Remove getline.h.
48111         (Depends-on): Add stdio.
48112         (configure.ac): Add module indicator.
48113         * modules/getdelim (Files): Remove getdelim.h.
48114         (Depends-on): Add stdio.
48115         (configure.ac): Add module indicator.
48116         * modules/stdio (Makefile.am): Work with new indicators.
48117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48118         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48119         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48120         * lib/getdelim.h: Delete.
48121         * lib/getline.h: Delete.
48122         * lib/stdio_.h (getdelim, getline): Declare.
48123         * modules/getdelim-tests: New module.
48124         * modules/getline-tests: Likewise.
48125         * tests/test-getdelim.c: New file.
48126         * tests/test-getline.c: Likewise.
48127         * NEWS: Document the change.
48128         * lib/getline.c: Update choice of header.
48129         * lib/csharpcomp.c: Likewise.
48130         * lib/getpass.c: Likewise.
48131         * lib/javacomp.c: Likewise.
48132         * lib/javaversion.c: Likewise.
48133         * lib/yesno.c: Likewise.
48134         * lib/getdelim.c: Likewise.
48135         (getdelim): Set errno on failure, and avoid memory leak.
48136
48137 2007-08-19  Bruno Haible  <bruno@clisp.org>
48138
48139         * modules/closein (Depends-on): Add freadahead.
48140         * lib/closein.c: Include freadahead.h.
48141         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48142         is zero.
48143
48144 2007-08-19  Bruno Haible  <bruno@clisp.org>
48145
48146         * modules/freadahead-tests: New file.
48147         * tests/test-freadahead.sh: New file.
48148         * tests/test-freadahead.c: New file.
48149
48150         * modules/freadahead: New file.
48151         * lib/freadahead.h: New file.
48152         * lib/freadahead.c: New file.
48153         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48154         fbufmode, fpurge, freadable, fwritable.
48155
48156 2007-08-19  Eric Blake  <ebb9@byu.net>
48157
48158         Test yesno in combination with closein.
48159         * lib/yesno.c (yesno): Document use of stdin.
48160         * modules/yesno-tests (Files): New module.
48161         * tests/test-yesno.c (main): New file.
48162         * tests/test-yesno.sh: Likewise.
48163
48164 2007-08-19  Bruno Haible  <bruno@clisp.org>
48165
48166         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48167         * lib/fseeko.c (rpl_fseeko): Likewise.
48168         * lib/fseterr.c (fseterr): Likewise.
48169
48170 2007-08-19  Bruno Haible  <bruno@clisp.org>
48171
48172         * tests/test-lseek.c (main): Disable a test for BeOS.
48173         * doc/functions/lseek.texi: Document the BeOS bug.
48174
48175 2007-08-19  Bruno Haible  <bruno@clisp.org>
48176             Eric Blake  <ebb9@byu.net>
48177
48178         * lib/lseek.c: Include <sys/stat.h>.
48179         (rpl_lseek): Add workaround code also for Unix platforms.
48180         Needed for BeOS.
48181         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48182         * doc/functions/lseek.texi: Document BeOS definiency.
48183
48184 2007-08-18  Bruno Haible  <bruno@clisp.org>
48185
48186         * modules/fstrcmp-tests: New file.
48187         * tests/test-fstrcmp.c: New file.
48188
48189 2007-08-18  Bruno Haible  <bruno@clisp.org>
48190
48191         * modules/fstrcmp: New file, from GNU gettext with modifications.
48192         * lib/fstrcmp.h: New file, from GNU gettext.
48193         * lib/fstrcmp.c: New file, from GNU gettext.
48194         * MODULES.html.sh (String handling): Add fstrcmp.
48195
48196 2007-08-18  Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48199         'bool'.
48200         (diag, compareseq): Remove const from the ctxt argument.
48201         (USE_HEURISTIC): Undefine at the end.
48202
48203 2007-08-18  Jim Meyering  <jim@meyering.net>
48204
48205         New file: lib/idcache.h
48206         * NEWS: Mention the addition.
48207         * modules/idcache (Files): Add lib/idcache.h
48208         * lib/idcache.c: Include "idcache.h".
48209         Don't include <sys/types.h>.
48210         Add a FIXME comment.
48211         Move file-scoped "static" declarations to the top.
48212         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48213
48214 2007-08-17  Bruno Haible  <bruno@clisp.org>
48215         and Paul Eggert  <eggert@cs.ucla.edu>
48216
48217         * MODULES.html.sh: Add diffseq.
48218         * modules/diffseq: New file.
48219         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48220         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48221
48222 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48223
48224         Import changes from coreutils for bootstrap script.
48225
48226         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48227
48228         * build-aux/bootstrap (slurp): Work even in environments where
48229         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48230         current code does not slurp files whose names start with ".", and
48231         this looks like it might be a troublesome area.
48232
48233         2007-07-11  Jim Meyering  <jim@meyering.net>
48234
48235         If there's a GPL vN copyright comment, require that N == 3.
48236
48237         2007-07-08  Jim Meyering  <jim@meyering.net>
48238
48239         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48240         * build-aux/bootstrap (mam_template): Move definition out of loop.
48241
48242         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48243
48244         * build-aux/bootstrap (symlink_to_dir): Rename function from
48245         symlink_to_gnulib.  Add a directory parameter.  Update all
48246         callers.
48247         (cp_mark_as_generated): Also check for -- and link to -- files in
48248         gl/.
48249
48250         2007-07-08  Jim Meyering  <jim@meyering.net>
48251
48252         Adapt to deeper hierarchy in gnulib.
48253         * build-aux/bootstrap (symlink_to_dir): If the destination
48254         directory doesn't exist, create it. This is required at least for
48255         "lib/uniwidth/cjk.h".
48256
48257         2007-05-15  Jim Meyering  <jim@meyering.net>
48258
48259         * build-aux/bootstrap: Now that generated Makefile.am files
48260         are no longer under version control, they must be created at
48261         bootstrap time.
48262
48263 2007-08-14  Ben Pfaff  <blp@gnu.org>
48264
48265         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48266
48267 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48268
48269         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48270         given the changes below.
48271         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48272         even on hosts that have padding bits beyond the supported 64.
48273
48274 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48275
48276         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48277         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48278         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48279         depends on it.
48280         (xstrtol_error): Remove.
48281         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48282         but with a different signature.
48283         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48284         * lib/xstrtol-error.c: Include exitfail.h.
48285         (xstrtol_fatal): New function, with a different signature from the
48286         old xstrtol_error, so that the caller need not worry about passing
48287         in an exit status, or about storage management of the option argument.
48288         (xstrtol_error): Now a static function.  Redo signature to
48289         implement xstrtol_fatal.  Output the correct number of hyphens in
48290         front of the option so that the caller need not worry about
48291         storage management.
48292         (N_): New macro.
48293         (_): Remove; not used now.
48294         * modules/xstrtol: Depend on getopt.
48295         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48296         of old STRTOL_FATAL_ERROR macro.
48297         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48298         of test program.
48299         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48300         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48301
48302 2007-08-08  Eric Blake  <ebb9@byu.net>
48303
48304         * lib/xstrtol-error.c: Add missing include.
48305
48306         Move xstrtol messages into gnulib domain, when --pobase is used.
48307         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48308         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48309         * modules/xstrtol (Files): Distribute new file.
48310         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48311         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48312         * tests/test-xstrtol.c: ...into new file.
48313         * tests/test-xstrtoul.c: Also test xstrtoul.
48314         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48315         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48316         * tests/test-xstrtol.sh: Drive the tests.
48317         * tests/test-xstrtoimax.sh: Likewise.
48318         * tests/test-xstrtoumax.sh: Likewise.
48319         * modules/xstrtol-tests: New module.
48320         * modules/xstrtoimax-tests: Likewise.
48321         * modules/xstrtoumax-tests: Likewise.
48322
48323 2007-08-08  Jim Meyering  <jim@meyering.net>
48324
48325         New function: mfile_name_concat.
48326         * lib/filenamecat.c (mfile_name_concat): New function, just like
48327         file_name_concat, but return NULL upon failure rather than exiting
48328         with a diagnostic.
48329         * lib/filenamecat.h: Declare it.
48330
48331 2007-08-07  Bruno Haible  <bruno@clisp.org>
48332
48333         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48334         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48335         warning from gcc.
48336         Reported by Eric Blake.
48337
48338 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48339
48340         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48341         * modules/crypto/arcfour (License): Likewise.
48342         * modules/crypto/des-tests (License): Likewise.
48343         * modules/crypto/gc-arctwo-tests (License): Likewise.
48344         * modules/crypto/gc-des-tests (License): Likewise.
48345         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48346         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48347         * modules/crypto/gc-md2-tests (License): Likewise.
48348         * modules/crypto/gc-md4-tests (License): Likewise.
48349         * modules/crypto/gc-md5-tests (License): Likewise.
48350         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48351         * modules/crypto/gc-rijndael-tests (License): Likewise.
48352         * modules/crypto/gc-sha1-tests (License): Likewise.
48353         * modules/crypto/gc-tests (License): Likewise.
48354         * modules/crypto/hmac-md5 (License): Likewise.
48355         * modules/crypto/hmac-sha1 (License): Likewise.
48356         * modules/crypto/md2-tests (License): Likewise.
48357         * modules/crypto/md4-tests (License): Likewise.
48358         * modules/crypto/md5 (License): Likewise.
48359         * modules/crypto/rijndael (License): Likewise.
48360         * modules/crypto/sha1 (License): Likewise.
48361         * modules/memxor (License): Likewise.
48362
48363 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48364         and Bruno Haible  <bruno@clisp.org>
48365
48366         * NEWS: Describe interface changes to human, xstrtol.
48367         * lib/human.h: Include <xstrtol.h>.
48368         (human_options): Return enum strtol_error, not int.  Remove
48369         bool arg; take int * instead.
48370         * lib/human.c: Don't include "gettext.h".
48371         (_): Remove; no longer used.
48372         Don't include <xstrtol.h>, since human.h does it.
48373         (human_options): Adjust to abovementioned interface changes.
48374         Do not report error to stderr; that's now the caller's
48375         responsibility.
48376         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48377         interface change.
48378         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48379         Str, Argument_type_string.  All uses changed.  Put " argument"
48380         in diagnostics to make them clearer.  Change wording of suffix
48381         message for clarity.
48382         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48383         Argument_type_string.
48384         (STRTOL_FATAL_WARN): Remove; no longer used.
48385         * modules/human (Depends-on): Remove gettext-h.
48386
48387 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48388
48389         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48390
48391 2007-07-31  Bruno Haible  <bruno@clisp.org>
48392
48393         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48394         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48395         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48396
48397 2007-07-31  Bruno Haible  <bruno@clisp.org>
48398
48399         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48400         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48401
48402 2007-07-30  Bruno Haible  <bruno@clisp.org>
48403
48404         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48405         * modules/c-ctype (License): Likewise.
48406         * modules/c-strcase (License): Likewise.
48407         * modules/check-version (License): Likewise.
48408         * modules/iconv (License): Likewise.
48409         * modules/iconv_open (License): Likewise.
48410         * modules/read-file (License): Likewise.
48411         * modules/striconv (License): Likewise.
48412         * modules/strverscmp (License): Likewise.
48413         * modules/vasprintf (License): Likewise.
48414         * modules/crypto/des (License): Likewise.
48415         * modules/crypto/gc (License): Likewise.
48416         * modules/crypto/gc-arcfour (License): Likewise.
48417         * modules/crypto/gc-arctwo (License): Likewise.
48418         * modules/crypto/gc-des (License): Likewise.
48419         * modules/crypto/gc-hmac-md5 (License): Likewise.
48420         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48421         * modules/crypto/gc-md2 (License): Likewise.
48422         * modules/crypto/gc-md4 (License): Likewise.
48423         * modules/crypto/gc-md5 (License): Likewise.
48424         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48425         * modules/crypto/gc-random (License): Likewise.
48426         * modules/crypto/gc-rijndael (License): Likewise.
48427         * modules/crypto/gc-sha1 (License): Likewise.
48428         * modules/crypto/md2 (License): Likewise.
48429         * modules/crypto/md4 (License): Likewise.
48430
48431 2007-07-30  Jim Meyering  <jim@meyering.net>
48432
48433         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48434         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48435         it has valid stat data.  This bug would cause du not to count the
48436         sizes of inaccessible directories.
48437         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48438         in <http://bugzilla.redhat.com/250077>.
48439
48440 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48441             Bruno Haible  <bruno@clisp.org>
48442
48443         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48444         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48445         #include_next, gives a diagnostic about it, but reports no error in
48446         the exit code.
48447         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48448
48449 2007-07-24  Ben Pfaff  <blp@gnu.org>
48450
48451         Improve name: "count-one-bits" is better than "popcount".
48452         * MODULES.html.sh: Update name.
48453         * lib/popcount.h: Renamed lib/count-one-bits.h.
48454         (popcount): Renamed count_one_bits.
48455         (popcountl): Renamed count_one_bits_l.
48456         (popcountll): Renamed count_one_bits_ll.
48457         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48458         * modules/popcount: Renamed module/count-one-bits.
48459         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48460         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48461
48462 2007-07-23  Ben Pfaff  <blp@gnu.org>
48463
48464         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48465         better code generation, and add U to large constants to avoid
48466         warnings, in non-GCC case.
48467         Suggested by Bruno Haible.
48468
48469 2007-07-23  Ben Pfaff  <blp@gnu.org>
48470
48471         * lib/popcount.h: Use verify_true instead of if...abort.
48472         * modules/popcount: Depend on verify module.
48473         Suggested by Jim Meyering.
48474
48475 2007-07-23  Bruno Haible  <bruno@clisp.org>
48476
48477         * gnulib-tool (func_import): Create a .cvsignore file also when the
48478         directory is not yet in CVS but the toplevel directory is. When
48479         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48480         Reported by Karl Berry.
48481
48482 2007-07-22  Ben Pfaff  <blp@gnu.org>
48483
48484         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48485         case.
48486         Suggested by Eric Blake.
48487
48488 2007-07-22  Ben Pfaff  <blp@gnu.org>
48489
48490         New module: popcount.
48491         * MODULES.html.sh: Add popcount.
48492         * modules/popcount: New file.
48493         * modules/popcount-tests: New file.
48494         * tests/test-popcount.c: New file.
48495         * lib/popcount.h: New file.
48496         * m4/popcount.m4: New file.
48497
48498 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48499
48500         * build-aux/announce-gen: Update to GPLv3.
48501
48502         * build-aux/config.guess: Update from config.
48503
48504 2007-07-21  Bruno Haible  <bruno@clisp.org>
48505
48506         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48507         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48508
48509 2007-07-20  Jim Meyering  <jim@meyering.net>
48510
48511         * check-module: Diagnose a self-dependency.
48512
48513 2007-07-19  Bruno Haible  <bruno@clisp.org>
48514
48515         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48516         empty.
48517         Reported by Eric Blake.
48518
48519 2007-07-18  Bruno Haible  <bruno@clisp.org>
48520
48521         * gnulib-tool: New options --po-base, --po-domain.
48522         (func_usage): Document them.
48523         (pobase, po_domain): New variables.
48524         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
48525         DEFAULT_TEXT_DOMAIN.
48526         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
48527         (func_import): Consider pobase and po_domain. Create a po/ directory.
48528         (func_create_testdir): Set pobase and po_domain to empty.
48529         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
48530         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
48531
48532 2007-07-18  Bruno Haible  <bruno@clisp.org>
48533
48534         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48535         EXTRA_DIST augmentation for files in build-aux/.
48536
48537 2007-07-16  Bruno Haible  <bruno@clisp.org>
48538
48539         * modules/lseek (License): Use the synonymous term "LGPLv2+".
48540         * modules/getdelim (License): Likewise.
48541
48542 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48543
48544         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
48545         * modules/d-type (License): Likewise.
48546         * modules/extensions (License): Likewise.
48547         * modules/fnmatch (License): Likewise.
48548         * modules/fseeko (License): Likewise.
48549         * modules/getaddrinfo (License): Likewise.
48550         * modules/getline (License): Likewise.
48551         * modules/getlogin_r (License): Likewise.
48552         * modules/getpass (License): Likewise.
48553         * modules/gettimeofday (License): Likewise.
48554         * modules/glob (License): Likewise.
48555         * modules/inet_ntop (License): Likewise.
48556         * modules/malloc (License): Likewise.
48557         * modules/malloca (License): Likewise.
48558         * modules/memmem (License): Likewise.
48559         * modules/mempcpy (License): Likewise.
48560         * modules/memset (License): Likewise.
48561         * modules/minmax (License): Likewise.
48562         * modules/mktime (License): Likewise.
48563         * modules/netinet_in (License): Likewise.
48564         * modules/pathmax (License): Likewise.
48565         * modules/poll (License): Likewise.
48566         * modules/regex (License): Likewise.
48567         * modules/snprintf (License): Likewise.
48568         * modules/stdbool (License): Likewise.
48569         * modules/stdint (License): Likewise.
48570         * modules/stdio (License): Likewise.
48571         * modules/strcase (License): Likewise.
48572         * modules/strcasestr (License): Likewise.
48573         * modules/strdup (License): Likewise.
48574         * modules/string (License): Likewise.
48575         * modules/strndup (License): Likewise.
48576         * modules/strnlen (License): Likewise.
48577         * modules/strpbrk (License): Likewise.
48578         * modules/strptime (License): Likewise.
48579         * modules/strsep (License): Likewise.
48580         * modules/sys_select (License): Likewise.
48581         * modules/sys_socket (License): Likewise.
48582         * modules/sys_stat (License): Likewise.
48583         * modules/sys_time (License): Likewise.
48584         * modules/time (License): Likewise.
48585         * modules/time_r (License): Likewise.
48586         * modules/timegm (License): Likewise.
48587         * modules/unistd (License): Likewise.
48588         * modules/vsnprintf (License): Likewise.
48589         * modules/wctype (License): Likewise.
48590
48591 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48592
48593         * modules/argz (License): LGPLv2+.
48594
48595 2007-07-15  Karl Berry  <karl@gnu.org>
48596
48597         * doc/gnulib.texi: revise node structure per new fdl.texi.
48598
48599 2007-07-14  Bruno Haible  <bruno@clisp.org>
48600
48601         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
48602         the output file.
48603         * lib/uniname/uninames.h: Regenerated.
48604
48605 2007-07-14  Karl Berry  <karl@gnu.org>
48606
48607         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
48608         omitting sectioning and index commands.
48609
48610 2007-07-13  Bruno Haible  <bruno@clisp.org>
48611
48612         New gnulib-tool option --more-symlinks.
48613         * gnulib-tool (func_usage): Document --more-symlinks.
48614         (do_copyrights): New variable.
48615         Recognize option --more-symlinks.
48616         (func_import): Don't add a copyright notice transform to
48617         sed_transform_lib_file if do_copyrights is empty.
48618
48619 2007-07-13  Bruno Haible  <bruno@clisp.org>
48620
48621         * lib/vasnprintf.c (decimal_point_char): Define also if
48622         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
48623         && !NEED_PRINTF_DIRECTIVE_A.
48624         Reported by Clemens Koller <clemens.koller@anagramm.de> via
48625         Gary V. Vaughan <gary@gnu.org>.
48626
48627 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
48628
48629         * lib/inttypes_.h: Undo previous change, since it was fixed
48630         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
48631
48632 2007-07-13  Bruno Haible  <bruno@clisp.org>
48633
48634         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
48635         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
48636
48637 2007-07-13  Jim Meyering  <jim@meyering.net>
48638
48639         df: Don't fail for Tru64's "file-on-file mount".
48640         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
48641         so we fall through and use statfs instead.  Details here:
48642         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
48643         Reported by Albert Chin.
48644
48645 2007-07-13  Bruno Haible  <bruno@clisp.org>
48646
48647         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
48648         * modules/configmake (License): Likewise.
48649         * modules/gettext (License): Likewise.
48650         * modules/gettext-h (License): Likewise.
48651         * modules/include_next (License): Likewise.
48652         * modules/link-warning (License): Likewise.
48653         * modules/localcharset (License): Likewise.
48654         * modules/localename (License): Likewise.
48655         * modules/lock (License): Likewise.
48656         * modules/relocatable-lib-lgpl (License): Likewise.
48657         * modules/size_max (License): Likewise.
48658         * modules/vasnprintf (License): Likewise.
48659         * modules/wchar (License): Likewise.
48660         * modules/xsize (License): Likewise.
48661
48662 2007-07-13  Bruno Haible  <bruno@clisp.org>
48663
48664         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
48665         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
48666
48667 2007-07-12  Bruno Haible  <bruno@clisp.org>
48668
48669         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
48670         in the modules files.
48671
48672 2007-07-11  Karl Berry  <karl@gnu.org>
48673
48674         * MODULES.html.sh (func_module): use
48675          sed -e '\|^'"${includefile}"'$|d'
48676          instead of /.../d, to avoid errors on $includefile's containing /.
48677
48678 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48679
48680         * gnulib-tool (func_import): Avoid duplication of --avoid
48681         statements
48682         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
48683         names to `_' in variable names.
48684
48685 2007-07-10  Eric Blake  <ebb9@byu.net>
48686
48687         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
48688         * NEWS: Document this change.
48689
48690 2007-07-08  Bruno Haible  <bruno@clisp.org>
48691
48692         Update to Unicode 5.0.
48693         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48694         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48695         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48696         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48697         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48698         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48699         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48700         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48701         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48702         U+10A3F, U+1D242..U+1D244.
48703         (nonspacing_table_ind): Update.
48704         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48705         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48706
48707 2007-07-08  Bruno Haible  <bruno@clisp.org>
48708
48709         Update to Unicode 5.0.
48710         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48711         code transform. Extend the name index field of unicode_name_to_code and
48712         unicode_code_to_name from 16 to 24 bits.
48713         * lib/uniname/uniname.c (unicode_character_name,
48714         unicode_name_character): Add the range 0x12xxx to the code transform.
48715         * lib/uniname/uninames.h: Regenerated.
48716         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48717
48718 2007-07-07  Bruno Haible  <bruno@clisp.org>
48719
48720         * modules/wcwidth-tests: New file.
48721         * tests/test-wcwidth.c: New file.
48722
48723         Work around MacOS X wcwidth() bug.
48724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48725         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48726         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48727         original wcwidth in non-UTF-8 locales.
48728         * modules/wcwidth (Depends-on): Add localcharset, streq,
48729         uniwidth/width.
48730         * doc/functions/wcwidth.texi: Update.
48731
48732 2007-07-07  Bruno Haible  <bruno@clisp.org>
48733
48734         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48735         (wcwidth): New declaration.
48736         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48737         macros.
48738         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48739         here. Prepare for creating <wchar.h> unconditionally.
48740         * modules/wchar (Depends-on): Add link-warning.
48741         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48742         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48743         * lib/wcwidth.h: Remove file.
48744         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48745         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48746         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48747         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48748         (Include): Replace wcwidth.h with <wchar.h>.
48749         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48750         * lib/mbchar.h: Don't include wcwidth.h.
48751         * lib/mbswidth.c: Likewise.
48752         * NEWS: Mention the change.
48753
48754 2007-07-07  Bruno Haible  <bruno@clisp.org>
48755
48756         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48757         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48758         definition with an external declaration.
48759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48760         defined as a function. Remove AC_C_INLINE requirement.
48761         * modules/wcwidth (Files): Add lib/wcwidth.c.
48762         (Makefile.am): Remove redundant statement.
48763
48764 2007-07-07  Bruno Haible  <bruno@clisp.org>
48765
48766         * MODULES.html.sh (Unicode string functions): Add the new modules.
48767
48768         * tests/uniwidth/test-u32-strwidth.c: New file.
48769         * modules/uniwidth/u32-strwidth-tests: New file.
48770
48771         * lib/uniwidth/u32-strwidth.c: New file.
48772         * modules/uniwidth/u32-strwidth: New file.
48773
48774         * tests/uniwidth/test-u16-strwidth.c: New file.
48775         * modules/uniwidth/u16-strwidth-tests: New file.
48776
48777         * lib/uniwidth/u16-strwidth.c: New file.
48778         * modules/uniwidth/u16-strwidth: New file.
48779
48780         * tests/uniwidth/test-u8-strwidth.c: New file.
48781         * modules/uniwidth/u8-strwidth-tests: New file.
48782
48783         * lib/uniwidth/u8-strwidth.c: New file.
48784         * modules/uniwidth/u8-strwidth: New file.
48785
48786         * tests/uniwidth/test-u32-width.c: New file.
48787         * modules/uniwidth/u32-width-tests: New file.
48788
48789         * lib/uniwidth/u32-width.c: New file.
48790         * modules/uniwidth/u32-width: New file.
48791
48792         * tests/uniwidth/test-u16-width.c: New file.
48793         * modules/uniwidth/u16-width-tests: New file.
48794
48795         * lib/uniwidth/u16-width.c: New file.
48796         * modules/uniwidth/u16-width: New file.
48797
48798         * tests/uniwidth/test-u8-width.c: New file.
48799         * modules/uniwidth/u8-width-tests: New file.
48800
48801         * lib/uniwidth/u8-width.c: New file.
48802         * modules/uniwidth/u8-width: New file.
48803
48804         * tests/uniwidth/test-uc_width.c: New file.
48805         * modules/uniwidth/width-tests: New file.
48806
48807         * lib/uniwidth/width.c: New file, from GNU libiconv.
48808         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
48809         * modules/uniwidth/width: New file.
48810
48811         * lib/uniwidth.h: New file, from GNU libiconv.
48812         * modules/uniwidth/base: New file.
48813
48814 2007-07-07  Bruno Haible  <bruno@clisp.org>
48815
48816         * lib/uniname.h: New file, from GNU gettext.
48817         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
48818         * lib/uniname/uninames.h: New file, from GNU gettext.
48819         * lib/uniname/uniname.c: New file, from GNU gettext.
48820         * tests/uniname/test-uninames.sh: New file.
48821         * tests/uniname/test-uninames.c: New file, from GNU gettext.
48822         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
48823         * modules/uniname/base: New file.
48824         * modules/uniname/uniname: New file.
48825         * modules/uniname/uniname-tests: New file.
48826         * MODULES.html.sh (Unicode string functions): Add the new modules.
48827
48828 2007-07-06  Bruno Haible  <bruno@clisp.org>
48829
48830         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
48831
48832 2007-07-06  Bruno Haible  <bruno@clisp.org>
48833
48834         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
48835         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
48836         includes <cygwin/sys_time.h> which includes <sys/select.h> which
48837         include <sys/time.h>.
48838         Reported by Eric Blake.
48839
48840 2007-07-06  Eric Blake  <ebb9@byu.net>
48841
48842         Fix testing canonicalize on cygwin.
48843         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48844         Revert patch from 2007-06-19.
48845         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
48846         canonicalize module is also in use.
48847         * tests/test-canonicalize.c: New file.
48848         * tests/test-canonicalize.sh: Likewise.
48849         * modules/canonicalize-tests: Likewise.
48850
48851 2007-07-06  Jim Meyering  <jim@meyering.net>
48852
48853         * lib/getugroups.c (getugroups): Detect getgrent failure.
48854         Adjust comment to reflect reality: this function may return -1.
48855
48856 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48857
48858         * build-aux/bootstrap (TP_URL,get_translations): Update to use
48859         the new TP address.
48860         (usage): Fix typo
48861         (gnulib_mk): New variable.
48862
48863 2007-07-05  Jim Meyering  <jim@meyering.net>
48864
48865         Don't let endgrent clobber errno, no matter how improbable.
48866         * lib/getugroups.c (getugroups): Save and restore errno around
48867         endgrent call.
48868
48869         Close the group DB even when failing with 2^31 or more members.
48870         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
48871
48872 2007-07-04  Jim Meyering  <jim@meyering.net>
48873
48874         * lib/getugroups.h: New file.
48875         * lib/getugroups.c: Include "getugroups.h".
48876         Remove uses of "register" keyword.
48877         Move local variable, "cp", down into scope where used.
48878         Give "username" parameter the "const" attribute.
48879         * modules/getugroups (Files): Add lib/getugroups.h
48880
48881 2007-07-04  Karl Berry  <karl@gnu.org>
48882
48883         * MODULES.html.sh (func_all_modules): Complete rename of
48884         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
48885
48886 2007-07-02  Bruno Haible  <bruno@clisp.org>
48887
48888         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
48889         mode, when inttypes.h comes from gnulib.
48890         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48891
48892 2007-07-02  Simon Josefsson  <simon@josefsson.org>
48893
48894         * NEWS: Mention lgpl module name change.
48895
48896         * modules/lgpl-2.1: Renamed from lgpl.
48897
48898         * NEWS: Mention gpl module name change.
48899
48900         * modules/gpl-3.0: New file, based on gpl-2.0.
48901
48902         * modules/gpl-2.0: Renamed from gpl.
48903
48904         * modules/gpl: Fix filename, doc/gpl.texi is now found at
48905         doc/gpl-2.0.texi.
48906
48907 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
48908
48909         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
48910         #define __STDC_LIMIT_MACROS temporarily while including
48911         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
48912         Problem reported by Joel E. Denny in
48913         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
48914
48915 2007-07-01  Bruno Haible  <bruno@clisp.org>
48916
48917         * lib/unistdio.h: New file.
48918         * lib/unistdio/u-asnprintf.h: New file.
48919         * lib/unistdio/u-asprintf.h: New file.
48920         * lib/unistdio/u-printf-args.c: New file.
48921         * lib/unistdio/u-printf-args.h: New file.
48922         * lib/unistdio/u-printf-parse.h: New file.
48923         * lib/unistdio/u-snprintf.h: New file.
48924         * lib/unistdio/u-sprintf.h: New file.
48925         * lib/unistdio/u-vasprintf.h: New file.
48926         * lib/unistdio/u-vsnprintf.h: New file.
48927         * lib/unistdio/u-vsprintf.h: New file.
48928         * lib/unistdio/ulc-asnprintf.c: New file.
48929         * lib/unistdio/ulc-asprintf.c: New file.
48930         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
48931         * lib/unistdio/ulc-printf-parse.c: New file.
48932         * lib/unistdio/ulc-snprintf.c: New file.
48933         * lib/unistdio/ulc-sprintf.c: New file.
48934         * lib/unistdio/ulc-vasnprintf.c: New file.
48935         * lib/unistdio/ulc-vasprintf.c: New file.
48936         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
48937         * lib/unistdio/ulc-vsnprintf.c: New file.
48938         * lib/unistdio/ulc-vsprintf.c: New file.
48939         * lib/unistdio/u8-asnprintf.c: New file.
48940         * lib/unistdio/u8-asprintf.c: New file.
48941         * lib/unistdio/u8-printf-parse.c: New file.
48942         * lib/unistdio/u8-snprintf.c: New file.
48943         * lib/unistdio/u8-sprintf.c: New file.
48944         * lib/unistdio/u8-vasnprintf.c: New file.
48945         * lib/unistdio/u8-vasprintf.c: New file.
48946         * lib/unistdio/u8-vsnprintf.c: New file.
48947         * lib/unistdio/u8-vsprintf.c: New file.
48948         * lib/unistdio/u8-u8-asnprintf.c: New file.
48949         * lib/unistdio/u8-u8-asprintf.c: New file.
48950         * lib/unistdio/u8-u8-snprintf.c: New file.
48951         * lib/unistdio/u8-u8-sprintf.c: New file.
48952         * lib/unistdio/u8-u8-vasnprintf.c: New file.
48953         * lib/unistdio/u8-u8-vasprintf.c: New file.
48954         * lib/unistdio/u8-u8-vsnprintf.c: New file.
48955         * lib/unistdio/u8-u8-vsprintf.c: New file.
48956         * lib/unistdio/u16-asnprintf.c: New file.
48957         * lib/unistdio/u16-asprintf.c: New file.
48958         * lib/unistdio/u16-printf-parse.c: New file.
48959         * lib/unistdio/u16-snprintf.c: New file.
48960         * lib/unistdio/u16-sprintf.c: New file.
48961         * lib/unistdio/u16-vasnprintf.c: New file.
48962         * lib/unistdio/u16-vasprintf.c: New file.
48963         * lib/unistdio/u16-vsnprintf.c: New file.
48964         * lib/unistdio/u16-vsprintf.c: New file.
48965         * lib/unistdio/u16-u16-asnprintf.c: New file.
48966         * lib/unistdio/u16-u16-asprintf.c: New file.
48967         * lib/unistdio/u16-u16-snprintf.c: New file.
48968         * lib/unistdio/u16-u16-sprintf.c: New file.
48969         * lib/unistdio/u16-u16-vasnprintf.c: New file.
48970         * lib/unistdio/u16-u16-vasprintf.c: New file.
48971         * lib/unistdio/u16-u16-vsnprintf.c: New file.
48972         * lib/unistdio/u16-u16-vsprintf.c: New file.
48973         * lib/unistdio/u32-asnprintf.c: New file.
48974         * lib/unistdio/u32-asprintf.c: New file.
48975         * lib/unistdio/u32-printf-parse.c: New file.
48976         * lib/unistdio/u32-snprintf.c: New file.
48977         * lib/unistdio/u32-sprintf.c: New file.
48978         * lib/unistdio/u32-vasnprintf.c: New file.
48979         * lib/unistdio/u32-vasprintf.c: New file.
48980         * lib/unistdio/u32-vsnprintf.c: New file.
48981         * lib/unistdio/u32-vsprintf.c: New file.
48982         * lib/unistdio/u32-u32-asnprintf.c: New file.
48983         * lib/unistdio/u32-u32-asprintf.c: New file.
48984         * lib/unistdio/u32-u32-snprintf.c: New file.
48985         * lib/unistdio/u32-u32-sprintf.c: New file.
48986         * lib/unistdio/u32-u32-vasnprintf.c: New file.
48987         * lib/unistdio/u32-u32-vasprintf.c: New file.
48988         * lib/unistdio/u32-u32-vsnprintf.c: New file.
48989         * lib/unistdio/u32-u32-vsprintf.c: New file.
48990         * tests/unistdio/test-ulc-asnprintf1.c: New file.
48991         * tests/unistdio/test-ulc-asnprintf1.h: New file.
48992         * tests/unistdio/test-ulc-printf1.h: New file.
48993         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
48994         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
48995         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
48996         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
48997         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
48998         * tests/unistdio/test-ulc-vasprintf1.c: New file.
48999         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49000         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49001         * tests/unistdio/test-u8-asnprintf1.c: New file.
49002         * tests/unistdio/test-u8-asnprintf1.h: New file.
49003         * tests/unistdio/test-u8-printf1.h: New file.
49004         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49005         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49006         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49007         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49008         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49009         * tests/unistdio/test-u8-vasprintf1.c: New file.
49010         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49011         * tests/unistdio/test-u8-vsprintf1.c: New file.
49012         * tests/unistdio/test-u16-asnprintf1.c: New file.
49013         * tests/unistdio/test-u16-asnprintf1.h: New file.
49014         * tests/unistdio/test-u16-printf1.h: New file.
49015         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49016         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49017         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49018         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49019         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49020         * tests/unistdio/test-u16-vasprintf1.c: New file.
49021         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49022         * tests/unistdio/test-u16-vsprintf1.c: New file.
49023         * tests/unistdio/test-u32-asnprintf1.c: New file.
49024         * tests/unistdio/test-u32-asnprintf1.h: New file.
49025         * tests/unistdio/test-u32-printf1.h: New file.
49026         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49027         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49028         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49029         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49030         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49031         * tests/unistdio/test-u32-vasprintf1.c: New file.
49032         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49033         * tests/unistdio/test-u32-vsprintf1.c: New file.
49034         * modules/unistdio/base: New file.
49035         * modules/unistdio/u-printf-args: New file.
49036         * modules/unistdio/ulc-asnprintf: New file.
49037         * modules/unistdio/ulc-asprintf: New file.
49038         * modules/unistdio/ulc-fprintf: New file.
49039         * modules/unistdio/ulc-printf-parse: New file.
49040         * modules/unistdio/ulc-snprintf: New file.
49041         * modules/unistdio/ulc-sprintf: New file.
49042         * modules/unistdio/ulc-vasnprintf: New file.
49043         * modules/unistdio/ulc-vasprintf: New file.
49044         * modules/unistdio/ulc-vfprintf: New file.
49045         * modules/unistdio/ulc-vsnprintf: New file.
49046         * modules/unistdio/ulc-vsprintf: New file.
49047         * modules/unistdio/u8-asnprintf: New file.
49048         * modules/unistdio/u8-asprintf: New file.
49049         * modules/unistdio/u8-printf-parse: New file.
49050         * modules/unistdio/u8-snprintf: New file.
49051         * modules/unistdio/u8-sprintf: New file.
49052         * modules/unistdio/u8-vasnprintf: New file.
49053         * modules/unistdio/u8-vasprintf: New file.
49054         * modules/unistdio/u8-vsnprintf: New file.
49055         * modules/unistdio/u8-vsprintf: New file.
49056         * modules/unistdio/u8-u8-asnprintf: New file.
49057         * modules/unistdio/u8-u8-asprintf: New file.
49058         * modules/unistdio/u8-u8-snprintf: New file.
49059         * modules/unistdio/u8-u8-sprintf: New file.
49060         * modules/unistdio/u8-u8-vasnprintf: New file.
49061         * modules/unistdio/u8-u8-vasprintf: New file.
49062         * modules/unistdio/u8-u8-vsnprintf: New file.
49063         * modules/unistdio/u8-u8-vsprintf: New file.
49064         * modules/unistdio/u16-asnprintf: New file.
49065         * modules/unistdio/u16-asprintf: New file.
49066         * modules/unistdio/u16-printf-parse: New file.
49067         * modules/unistdio/u16-snprintf: New file.
49068         * modules/unistdio/u16-sprintf: New file.
49069         * modules/unistdio/u16-vasnprintf: New file.
49070         * modules/unistdio/u16-vasprintf: New file.
49071         * modules/unistdio/u16-vsnprintf: New file.
49072         * modules/unistdio/u16-vsprintf: New file.
49073         * modules/unistdio/u16-u16-asnprintf: New file.
49074         * modules/unistdio/u16-u16-asprintf: New file.
49075         * modules/unistdio/u16-u16-snprintf: New file.
49076         * modules/unistdio/u16-u16-sprintf: New file.
49077         * modules/unistdio/u16-u16-vasnprintf: New file.
49078         * modules/unistdio/u16-u16-vasprintf: New file.
49079         * modules/unistdio/u16-u16-vsnprintf: New file.
49080         * modules/unistdio/u16-u16-vsprintf: New file.
49081         * modules/unistdio/u32-asnprintf: New file.
49082         * modules/unistdio/u32-asprintf: New file.
49083         * modules/unistdio/u32-printf-parse: New file.
49084         * modules/unistdio/u32-snprintf: New file.
49085         * modules/unistdio/u32-sprintf: New file.
49086         * modules/unistdio/u32-vasnprintf: New file.
49087         * modules/unistdio/u32-vasprintf: New file.
49088         * modules/unistdio/u32-vsnprintf: New file.
49089         * modules/unistdio/u32-vsprintf: New file.
49090         * modules/unistdio/u32-u32-asnprintf: New file.
49091         * modules/unistdio/u32-u32-asprintf: New file.
49092         * modules/unistdio/u32-u32-snprintf: New file.
49093         * modules/unistdio/u32-u32-sprintf: New file.
49094         * modules/unistdio/u32-u32-vasnprintf: New file.
49095         * modules/unistdio/u32-u32-vasprintf: New file.
49096         * modules/unistdio/u32-u32-vsnprintf: New file.
49097         * modules/unistdio/u32-u32-vsprintf: New file.
49098         * modules/unistdio/ulc-asnprintf-tests: New file.
49099         * modules/unistdio/ulc-vasnprintf-tests: New file.
49100         * modules/unistdio/ulc-vasprintf-tests: New file.
49101         * modules/unistdio/ulc-vsnprintf-tests: New file.
49102         * modules/unistdio/ulc-vsprintf-tests: New file.
49103         * modules/unistdio/u8-asnprintf-tests: New file.
49104         * modules/unistdio/u8-vasnprintf-tests: New file.
49105         * modules/unistdio/u8-vasprintf-tests: New file.
49106         * modules/unistdio/u8-vsnprintf-tests: New file.
49107         * modules/unistdio/u8-vsprintf-tests: New file.
49108         * modules/unistdio/u16-asnprintf-tests: New file.
49109         * modules/unistdio/u16-vasnprintf-tests: New file.
49110         * modules/unistdio/u16-vasprintf-tests: New file.
49111         * modules/unistdio/u16-vsnprintf-tests: New file.
49112         * modules/unistdio/u16-vsprintf-tests: New file.
49113         * modules/unistdio/u32-asnprintf-tests: New file.
49114         * modules/unistdio/u32-vasnprintf-tests: New file.
49115         * modules/unistdio/u32-vasprintf-tests: New file.
49116         * modules/unistdio/u32-vsnprintf-tests: New file.
49117         * modules/unistdio/u32-vsprintf-tests: New file.
49118         * MODULES.html.sh (Unicode string functions): Add the new modules.
49119
49120 2007-07-01  Bruno Haible  <bruno@clisp.org>
49121
49122         * lib/sprintf.c (sprintf): Limit the available length estimation,
49123         to avoid address wraparound.
49124         * lib/vsprintf.c (vsprintf): Likewise.
49125         * modules/sprintf-posix (Dependencies): Add stdint.
49126         * modules/vsprintf-posix (Dependencies): Likewise.
49127
49128 2007-07-01  Bruno Haible  <bruno@clisp.org>
49129
49130         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49131         Windows PATH as well. Conservative double-quoting. Comments.
49132
49133 2007-07-01  Bruno Haible  <bruno@clisp.org>
49134             Eric Blake  <ebb9@byu.net>
49135             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49136
49137         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49138         empty components in $PATH, denoting '.'.
49139
49140 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49141
49142         * gnulib-tool: Fix indentation.
49143         (func_create_megatestdir): Likewise.
49144         Report by Bruno Haible.
49145
49146 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49147
49148         Sync from Automake.
49149         * build-aux/gnupload: Fix shell portability issues with for loops.
49150         Report by Karl Berry.
49151
49152 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49153
49154         * build-aux/maint.mk (POURL): Use translationproject.org.
49155
49156 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49157             Bruno Haible  <bruno@clisp.org>
49158
49159         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49160         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49161         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49162         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49163         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49164
49165 2007-06-27  Bruno Haible  <bruno@clisp.org>
49166
49167         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49168         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49169
49170 2007-06-26  Karl Berry  <karl@gnu.org>
49171
49172         * MODULES.html.sh: remove xreadlink-with-size.
49173
49174 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49175
49176         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49177         method that I hope also handles the double-include problem noted
49178         by Bruno Haible in
49179         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49180
49181 2007-06-23  Bruno Haible  <bruno@clisp.org>
49182
49183         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49184         Don't let the 'mostlyclean' target fail if the last subdirectory could
49185         not be removed.
49186         Reported by Karl Berry.
49187
49188 2007-06-23  Bruno Haible  <bruno@clisp.org>
49189
49190         * gnulib-tool (echo): Add a speedier workaround for ksh.
49191         * tests/test-echo.sh: Likewise.
49192
49193 2007-06-23  Bruno Haible  <bruno@clisp.org>
49194
49195         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49196         * tests/test-echo.sh: Likewise.
49197
49198 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49199
49200         * gnulib-tool (IFS): Initialize early, so we don't set it to
49201         empty later.
49202         (self_abspathname): Rewrite algorithm to set it, reindent.
49203         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49204         (func_create_megatestdir): Merge some sed scripts.
49205
49206 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49207
49208         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49209         exposed by Sun Studio 11 cc on Solaris 8.
49210
49211 2007-06-22  Bruno Haible  <bruno@clisp.org>
49212
49213         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49214         backslashes.
49215         * tests/test-echo.sh: New file.
49216
49217 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49218
49219         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49220         simplify `sed_replace_build_aux' scripts, they are portable but
49221         echoing them with `echo' is not.
49222         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49223
49224 2007-06-21  Karl Berry  <karl@gnu.org>
49225
49226         * config/srclist.txt: guess we can't handle the licenses via
49227         srclist at the moment.
49228
49229 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49230
49231         * MODULES.html.sh: Add include_next.
49232         * modules/include_next: New file.
49233
49234 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49235
49236         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49237         INCLUDE_NEXT.
49238         (gl_CHECK_NEXT_HEADERS): New macro.
49239         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49240         the obsolescent gl_ABSOLUTE_HEADER.
49241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49242         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49243         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49244         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49245         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49246         * m4/math_h.m4 (gl_MATH_H): Likewise.
49247         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49248         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49249         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49250         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49251         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49252         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49253         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49254         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49255         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49256         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49257         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49258         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49259         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49260         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49261         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49262         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49263         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49264         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49265         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49266         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49267         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49268         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49269         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49270         * lib/float_.h: Likewise.
49271         * lib/inttypes_.h: Likewise.
49272         * lib/math_.h: Likewise.
49273         * lib/search_.h: Likewise.
49274         * lib/signal_.h: Likewise.
49275         * lib/stdint_.h: Likewise.
49276         * lib/stdio_.h: Likewise.
49277         * lib/stdlib_.h: Likewise.
49278         * lib/string_.h: Likewise.
49279         * lib/sys_stat_.h: Likewise.
49280         * lib/sys_time_.h: Likewise.
49281         * lib/time_.h: Likewise.
49282         * lib/unistd_.h: Likewise.
49283         * lib/wchar_.h: Likewise.
49284         * lib/wctype_.h: Likewise.
49285         * lib/dirent_.h: Likewise.
49286         * lib/iconv_.h: Likewise.
49287         * lib/locale_.h: Likewise.
49288         * lib/netinet_in_.h: Likewise.
49289         * lib/sys_select_.h: Likewise.
49290         * lib/sys_socket_.h: Likewise.
49291         * lib/sysexits_.h: Likewise.
49292         * modules/fcntl (Depends-on): Depend on include_next, not
49293         absolute_header.
49294         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49295         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49296         * modules/fchdir: Likewise.
49297         * modules/float: Likewise.
49298         * modules/iconv_open: Likewise.
49299         * modules/inttypes: Likewise.
49300         * modules/locale: Likewise.
49301         * modules/math: Likewise.
49302         * modules/netinet_in: Likewise.
49303         * modules/search: Likewise.
49304         * modules/signal: Likewise.
49305         * modules/stdint: Likewise.
49306         * modules/stdio: Likewise.
49307         * modules/stdlib: Likewise.
49308         * modules/string: Likewise.
49309         * modules/sys_select: Likewise.
49310         * modules/sys_socket: Likewise.
49311         * modules/sys_stat: Likewise.
49312         * modules/sys_time: Likewise.
49313         * modules/sysexits: Likewise.
49314         * modules/time: Likewise.
49315         * modules/unistd: Likewise.
49316         * modules/wchar: Likewise.
49317         * modules/wctype: Likewise.
49318         * modules/sys_stat: Change maintainer to "all".
49319         * modules/unistd: Likewise.
49320
49321 2007-06-20  Karl Berry  <karl@gnu.org>
49322
49323         * config/srclist.txt: track www changes in license files.
49324
49325 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49326
49327         * build-aux/bootstrap: Remove stray dot.
49328         Make sure build_aux settings are honored when linking
49329         gnulib_extra_files.
49330
49331 2007-06-19  Eric Blake  <ebb9@byu.net>
49332
49333         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49334         Allow compilation on cygwin.
49335
49336 2007-06-19  Jim Meyering  <jim@meyering.net>
49337
49338         xreadlink-with-size: Remove module.  No longer used.
49339         Ex-callers now use xreadlink or mreadlink-with-size.
49340         * modules/xreadlink-with-size: Remove module.
49341         * lib/xreadlink-with-size.c: Remove file.
49342         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49343         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49344         just before the function definition *is* accurate.
49345
49346         Eliminate one way canonicalize_filename_mode could exit.
49347         * lib/canonicalize.c (canonicalize_filename_mode):
49348         Use mreadlink_with_size, not xreadlink_with_size.
49349
49350 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49351
49352         Detect porting problems to FreeBSD/arm, which has time_t wider than
49353         long int.  Original problem reported for GNU diff by Xin Li in
49354         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49355         * modules/getdate (Depends-on): Add intprops, verify.
49356         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49357         is an integer type no wider than long int.
49358
49359 2007-06-18  Jim Meyering  <jim@meyering.net>
49360
49361         New module: mreadlink-with-size.
49362         * MODULES.html.sh: Add mreadlink-with-size.
49363         * modules/mreadlink-with-size: New module
49364         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49365         not xreadlink-with-size.
49366         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49367
49368 2007-06-16  Bruno Haible  <bruno@clisp.org>
49369
49370         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49371         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49372         Reported by Gary V. Vaughan <gary@gnu.org>.
49373
49374 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49375
49376         Revamp lchown so that it lives in unistd.h where it belongs.
49377         * lib/lchown.h: Remove.
49378         * lib/dirchownmod.c: Don't include lib/lchown.h.
49379         * lib/fchownat.c: Likewise.
49380         * lib/openat.c: Likewise.
49381         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49382         does not follow symlinks.
49383         (EOPNOTSUPP): Define if not defined.
49384         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49385         is defined to 0.
49386         (lchown): New decl.
49387         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49388         Do not check for lchown decl.
49389         Set REPLACE_LCHOWN.
49390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49391         REPLACE_LCHOWN.
49392         * modules/chown: Make it clear it follows symlinks.
49393         * modules/lchown: Make it clear it doesn't follow symlinks.
49394         (Files): Remove lib/lchown.h
49395         (Depends-on): Add unistd.
49396         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49397         (Include): Include <unistd.h>, not "lchown.h".
49398         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49399         REPLACE_LCHOWN.
49400
49401 2007-06-15  Jim Meyering  <jim@meyering.net>
49402
49403         Change license (GPL to LGPL) of fsusage and dependents.
49404         * modules/fsusage (License): Change to LGPL.
49405         * modules/full-read (License): Likewise.
49406         * modules/full-write (License): Likewise.
49407         * modules/safe-read (License): Likewise.
49408         * modules/safe-write (License): Likewise.
49409
49410 2007-06-14  Ben Pfaff  <blp@gnu.org>
49411
49412         Missing part of allocsa -> malloca transition.
49413         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49414         gl_MALLOCA.
49415
49416 2007-06-12  Bruno Haible  <bruno@clisp.org>
49417
49418         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49419         to ia64, x86_64, i386.
49420         Reported by Eric Blake.
49421
49422 2007-06-12  Bruno Haible  <bruno@clisp.org>
49423
49424         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49425         cross-compiling to x86_64.
49426
49427 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49428
49429         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49430         glitch reported by Ralf Wildenhues in
49431         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49432
49433         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49434         Vin Shelton.
49435
49436 2007-06-11  Bruno Haible  <bruno@clisp.org>
49437
49438         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49439         replacement string.
49440         Reported by Eric Blake.
49441
49442 2007-06-10  Bruno Haible  <bruno@clisp.org>
49443
49444         Prepare vasnprintf code for use with Unicode strings.
49445         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49446         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49447         TYPE_U32_STRING.
49448         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49449         a_u32_string variants.
49450         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49451         * lib/printf-args.c: Don't include config.h and the specification
49452         header if PRINTF_FETCHARGS is already defined.
49453         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49454         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49455         TYPE_U16_STRING, TYPE_U32_STRING.
49456         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49457         u16_directive, u16_directives, u32_directive, u32_directives): New
49458         types.
49459         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49460         New declarations.
49461         * lib/printf-parse.c: Don't include config.h and the specification
49462         header if PRINTF_PARSE is already defined. Eliminate the set of
49463         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49464         them now. Include c-ctype.h.
49465         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49466         directive and CHAR_T_ONLY_ASCII.
49467         * lib/vasnprintf.c: Don't include config.h and the specification header
49468         if VASNPRINTF is already defined.
49469         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49470         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49471         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49472         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49473         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49474         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49475         code accordingly.
49476         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49477         pad_ourselves also in this case, with the 'c' and 's' directives, and
49478         with a different notion of "width".
49479         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49480
49481 2007-06-10  Bruno Haible  <bruno@clisp.org>
49482
49483         * modules/unistr/u32-mbsnlen: New file.
49484         * lib/unistr/u32-mbsnlen.c: New file.
49485
49486         * modules/unistr/u16-mbsnlen: New file.
49487         * lib/unistr/u16-mbsnlen.c: New file.
49488
49489         * modules/unistr/u8-mbsnlen: New file.
49490         * lib/unistr/u8-mbsnlen.c: New file.
49491
49492         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49493         declarations.
49494
49495 2007-06-10  Bruno Haible  <bruno@clisp.org>
49496
49497         * lib/string_.h (mbsnlen): New declaration.
49498         * lib/mbsnlen.c: New file.
49499         * m4/mbsnlen.m4: New file.
49500         * modules/mbsnlen: New file.
49501         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49502         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49503         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49504
49505 2007-06-10  Bruno Haible  <bruno@clisp.org>
49506
49507         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49508
49509 2007-06-10  Bruno Haible  <bruno@clisp.org>
49510
49511         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49512         * lib/mbuiter.h: Likewise.
49513
49514 2007-06-10  Bruno Haible  <bruno@clisp.org>
49515
49516         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49517         declaration.
49518
49519 2007-06-10  Karl Berry  <karl@gnu.org>
49520
49521         * config/srclist.txt: remove gettext entries, Bruno prefers
49522         to update individually.
49523
49524 2007-06-10  Bruno Haible  <bruno@clisp.org>
49525
49526         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
49527         'maxlen'. Ensure only length + width bytes are allocated, not
49528         length + 1 + width.
49529
49530 2007-06-09  Bruno Haible  <bruno@clisp.org>
49531
49532         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
49533         (CHAR_T): Remove macro.
49534         (VASNPRINTF): Update.
49535
49536 2007-06-09  Bruno Haible  <bruno@clisp.org>
49537
49538         * MODULES.html.sh (Unicode string functions): Add the new modules.
49539
49540         * modules/uniconv/u32-conv-to-enc: New file.
49541         * lib/uniconv/u32-conv-to-enc.c: New file.
49542         * modules/uniconv/u32-conv-to-enc-tests: New file.
49543         * tests/uniconv/test-u32-conv-to-enc.c: New file.
49544
49545         * modules/uniconv/u16-conv-to-enc: New file.
49546         * lib/uniconv/u16-conv-to-enc.c: New file.
49547         * lib/uniconv/u-conv-to-enc.h: New file.
49548         * modules/uniconv/u16-conv-to-enc-tests: New file.
49549         * tests/uniconv/test-u16-conv-to-enc.c: New file.
49550
49551         * modules/uniconv/u8-conv-to-enc: New file.
49552         * lib/uniconv/u8-conv-to-enc.c: New file.
49553         * modules/uniconv/u8-conv-to-enc-tests: New file.
49554         * tests/uniconv/test-u8-conv-to-enc.c: New file.
49555
49556         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49557         u32_conv_to_encoding): New declarations.
49558
49559 2007-06-09  Bruno Haible  <bruno@clisp.org>
49560
49561         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
49562
49563 2007-06-09  Bruno Haible  <bruno@clisp.org>
49564
49565         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
49566         * modules/malloca: Renamed from modules/allocsa, updated.
49567         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
49568         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
49569         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
49570         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
49571         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
49572         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
49573         * modules/xmalloca: Renamed from modules/xallocsa, updated.
49574         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
49575         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
49576         * modules/c-strcasestr (Depends-on): Update.
49577         * lib/c-strcasestr.c: Update.
49578         * modules/c-strstr (Depends-on): Update.
49579         * lib/c-strstr.c: Update.
49580         * modules/canonicalize-lgpl (Depends-on): Update.
49581         * lib/canonicalize-lgpl.c: Update.
49582         * modules/clean-temp (Depends-on): Update.
49583         * lib/clean-temp.c: Update.
49584         * modules/csharpcomp (Depends-on): Update.
49585         * lib/csharpcomp.c: Update.
49586         * modules/csharpexec (Depends-on): Update.
49587         * lib/csharpexec.c: Update.
49588         * modules/javacomp (Depends-on): Update.
49589         * lib/javacomp.c: Update.
49590         * modules/javaexec (Depends-on): Update.
49591         * lib/javaexec.c: Update.
49592         * modules/mbscasestr (Depends-on): Update.
49593         * lib/mbscasestr.c: Update.
49594         * modules/mbsstr (Depends-on): Update.
49595         * lib/mbsstr.c: Update.
49596         * modules/setenv (Depends-on): Update.
49597         * lib/setenv.c: Update.
49598         * modules/strcasestr (Depends-on): Update.
49599         * lib/strcasestr.c: Update.
49600         * modules/striconveha (Depends-on): Update.
49601         * lib/striconveha.c: Update.
49602         * modules/relocatable-prog-wrapper (Files): Update.
49603         * lib/relocwrapper.c: Update.
49604         * build-aux/install-reloc: Update.
49605         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
49606
49607 2007-06-08  Bruno Haible  <bruno@clisp.org>
49608
49609         Port to uClibc.
49610         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
49611         * lib/fpurge.c (fpurge): Likewise.
49612         * lib/freading.c (freading): Likewise.
49613         * lib/fseeko.c (rpl_fseeko): Likewise.
49614         * lib/fseterr.c (fseterr): Likewise.
49615         * lib/fwriting.c (fwriting): Likewise.
49616         * tests/test-fflush.c (main): Avoid a failure on uClibc.
49617
49618 2007-06-08  Bruno Haible  <bruno@clisp.org>
49619
49620         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
49621         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
49622         * modules/gettext (Files): Add m4/intlmacosx.m4.
49623
49624 2007-06-07  Bruno Haible  <bruno@clisp.org>
49625
49626         * modules/localename-tests: New file.
49627         * tests/test-localename.c: New file.
49628
49629         New module 'localename'.
49630         * lib/localename.h: New file.
49631         * lib/localename.c: New file, from GNU gettext.
49632         * m4/localename.m4: New file.
49633         * modules/localename: New file.
49634
49635 2007-06-07  Bruno Haible  <bruno@clisp.org>
49636
49637         Work around the lack of <wchar.h> on some builds of uClibc.
49638         * doc/headers/wchar.texi: Update.
49639         * lib/wchar_.h: Include <wchar.h> only if it exists.
49640         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
49641         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
49642         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
49643         doesn't exist.
49644         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
49645         * modules/mbfile (Depends-on): Add wchar.
49646         * modules/mbiter (Depends-on): Likewise.
49647         * modules/mbuiter (Depends-on): Likewise.
49648         Reported by Simon Josefsson.
49649
49650 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49651
49652         Work around problem reported by Steven M. Schweda in
49653         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
49654         Tru64 5.1B with the Compaq compiler environment installed declares
49655         an 'isblank' function but does not define it in the C library.
49656         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
49657         * lib/regex_internal.h (isblank): Likewise.
49658         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
49659         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49660
49661 2007-06-05  Bruno Haible  <bruno@clisp.org>
49662
49663         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
49664         ia64.
49665         * modules/printf-safe: New file.
49666         * modules/fprintf-posix (Depends-on): Add printf-safe.
49667         * modules/printf-posix (Depends-on): Likewise.
49668         * modules/snprintf-posix (Depends-on): Likewise.
49669         * modules/sprintf-posix (Depends-on): Likewise.
49670         * modules/vasnprintf-posix (Depends-on): Likewise.
49671         * modules/vasprintf-posix (Depends-on): Likewise.
49672         * modules/vfprintf-posix (Depends-on): Likewise.
49673         * modules/vprintf-posix (Depends-on): Likewise.
49674         * modules/vsnprintf-posix (Depends-on): Likewise.
49675         * modules/vsprintf-posix (Depends-on): Likewise.
49676         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
49677         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
49678         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
49679         "no" on i386, x86_64, ia64.
49680         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
49681         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49682         on i386, x86_64, ia64.
49683         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
49684         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49685         on i386, x86_64, ia64.
49686         * tests/test-vasnprintf-posix.c: Include float.h.
49687         (LDBL80_WORDS): New macro.
49688         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49689         on i386, x86_64, ia64.
49690         * tests/test-vasprintf-posix.c: Include float.h.
49691         (LDBL80_WORDS): New macro.
49692         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49693         on i386, x86_64, ia64.
49694         * tests/test-snprintf-posix.c: Include float.h.
49695         * tests/test-sprintf-posix.c: Likewise.
49696         * tests/test-vsnprintf-posix.c: Likewise.
49697         * tests/test-vsprintf-posix.c: Likewise.
49698
49699 2007-06-05  Bruno Haible  <bruno@clisp.org>
49700
49701         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49702         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49703         non-IEEE numbers on i386, x86_64, ia64.
49704         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49705         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49706         * tests/test-isnanl.h: Include float.h.
49707         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49708
49709 2007-06-05  Bruno Haible  <bruno@clisp.org>
49710
49711         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49712         also the %a / %A. Handle the %a / %A code before this extra handling.
49713
49714 2007-06-05  Bruno Haible  <bruno@clisp.org>
49715
49716         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49717         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49718
49719 2007-06-05  Bruno Haible  <bruno@clisp.org>
49720
49721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49722         typo in variable name.
49723
49724 2007-06-05  Eric Blake  <ebb9@byu.net>
49725
49726         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49727         Reported by Simon Josefsson.
49728
49729 2007-06-04  Bruno Haible  <bruno@clisp.org>
49730
49731         Avoid test failures on some PowerPC platforms.
49732         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49733         Define differently for PowerPC.
49734         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49735         Reported by Gary V. Vaughan <gary@gnu.org>.
49736
49737 2007-06-02  Bruno Haible  <bruno@clisp.org>
49738
49739         Fix test-stdint failure on FreeBSD/ia64.
49740         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49741         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49742         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49743         * doc/headers/stdint.texi: Update.
49744
49745 2007-06-01  Bruno Haible  <bruno@clisp.org>
49746
49747         * tests/test-binary-io.c (main): Pass a third argument to open().
49748         Reported by Gary V. Vaughan <gary@gnu.org>.
49749
49750 2007-06-01  Bruno Haible  <bruno@clisp.org>
49751
49752         * doc/functions/frexpl.texi: Update for mingw.
49753
49754 2007-06-01  Bruno Haible  <bruno@clisp.org>
49755
49756         * tests/test-lseek.c (main): Disable test of errno for invalid third
49757         argument.
49758         * doc/functions/lseek.texi: Update.
49759         Reported by Gary V. Vaughan <gary@gnu.org>.
49760
49761 2007-05-28  Bruno Haible  <bruno@clisp.org>
49762
49763         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49764
49765 2007-05-31  Eric Blake  <ebb9@byu.net>
49766
49767         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49768         cross compiling.
49769
49770 2007-05-30  Eric Blake  <ebb9@byu.net>
49771         and Bruno Haible  <bruno@clisp.org>
49772
49773         Work around mingw test failures exposed by m4-1.4.9b.
49774         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49775         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49776         moment.
49777
49778 2007-05-30  Bruno Haible  <bruno@clisp.org>
49779
49780         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49781         assuming that they are closed. Needed on HP-UX 11.
49782
49783 2007-05-29  Bruno Haible  <bruno@clisp.org>
49784
49785         Fix a problem with #include_next.
49786         * lib/dirent_.h: Split the double-inclusion guard.
49787         * lib/fcntl_.h: Likewise.
49788         * lib/float_.h: Likewise.
49789         * lib/iconv_.h: Likewise.
49790         * lib/inttypes_.h: Likewise.
49791         * lib/locale_.h: Likewise.
49792         * lib/math_.h: Likewise.
49793         * lib/netinet_in_.h: Likewise.
49794         * lib/search_.h: Likewise.
49795         * lib/signal_.h: Likewise.
49796         * lib/stdint_.h: Likewise.
49797         * lib/stdio_.h: Likewise.
49798         * lib/stdlib_.h: Likewise.
49799         * lib/string_.h: Likewise.
49800         * lib/sys_select_.h: Likewise.
49801         * lib/sys_socket_.h: Likewise.
49802         * lib/sys_stat_.h: Likewise.
49803         * lib/sys_time_.h: Likewise.
49804         * lib/sysexits_.h: Likewise.
49805         * lib/time_.h: Likewise.
49806         * lib/unistd_.h: Likewise.
49807         * lib/wchar_.h: Likewise.
49808         * lib/wctype_.h: Likewise.
49809
49810 2007-05-29  Bruno Haible  <bruno@clisp.org>
49811
49812         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
49813         for the moment.
49814
49815 2007-05-29  Bruno Haible  <bruno@clisp.org>
49816
49817         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
49818         invocation.
49819         Reported by Eric Blake.
49820
49821 2007-05-29  Bruno Haible  <bruno@clisp.org>
49822
49823         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
49824         compiling case.
49825
49826 2007-05-29  Eric Blake  <ebb9@byu.net>
49827             Bruno Haible  <bruno@clisp.org>
49828
49829         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
49830         cross compiles.
49831
49832 2007-05-28  Eric Blake  <ebb9@byu.net>
49833
49834         * modules/closein-tests (test_closein_LDADD): Support test on
49835         cygwin with libtool.
49836
49837 2007-05-28  Bruno Haible  <bruno@clisp.org>
49838
49839         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
49840         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49841         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49842         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49843         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49844         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49845         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49846         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49847         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49848
49849 2007-05-28  Eric Blake  <ebb9@byu.net>
49850
49851         Unconditionally include <config.h> in unit tests.
49852         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
49853         * tests/test-allocsa.c, tests/test-arcfour.c,
49854         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
49855         tests/test-array_list.c, tests/test-array_oset.c,
49856         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
49857         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
49858         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
49859         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
49860         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
49861         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
49862         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
49863         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
49864         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
49865         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
49866         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
49867         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
49868         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
49869         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
49870         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
49871         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
49872         test-md5.c, test-memmem.c, test-printf-posix.c,
49873         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
49874         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
49875         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
49876         test-strcasestr.c, test-striconv.c, test-striconveh.c,
49877         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
49878         test-vasnprintf-posix2.c, test-vasnprintf.c,
49879         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
49880         test-vfprintf-posix.c, test-vprintf-posix.c,
49881         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
49882         test-xvasprintf.c: Likewise.
49883
49884 2007-05-28  Bruno Haible  <bruno@clisp.org>
49885
49886         * gnulib-tool (func_import): Remember the --with-tests command-line
49887         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
49888         Reported by Eric Blake.
49889
49890 2007-05-28  Bruno Haible  <bruno@clisp.org>
49891
49892         * modules/ftell-tests: New file.
49893         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
49894         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
49895
49896         * lib/ftell.c: New file.
49897         * modules/ftell: New file.
49898         * m4/ftell.m4: New file.
49899         * doc/functions/ftell.texi: Update.
49900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
49901         REPLACE_FTELL.
49902         * lib/stdio_.h (rpl_ftell): New declaration.
49903         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
49904         REPLACE_FTELL.
49905
49906 2007-05-28  Eric Blake  <ebb9@byu.net>
49907
49908         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
49909
49910 2007-05-28  Bruno Haible  <bruno@clisp.org>
49911
49912         * modules/fseek-tests: New file.
49913         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
49914         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
49915
49916         * lib/fseek.c: New file.
49917         * modules/fseek: New file.
49918         * m4/fseek.m4: New file.
49919         * doc/functions/fseek.texi: Update.
49920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
49921         REPLACE_FSEEK.
49922         * lib/stdio_.h (rpl_fseek): New declaration.
49923         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
49924         REPLACE_FSEEK.
49925
49926 2007-05-28  Bruno Haible  <bruno@clisp.org>
49927
49928         * lib/stdio_.h (fflush): More comments.
49929
49930 2007-05-28  Bruno Haible  <bruno@clisp.org>
49931
49932         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
49933         runtime test.
49934
49935 2007-05-28  Eric Blake  <ebb9@byu.net>
49936
49937         Improve lseek module.
49938         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
49939         * lib/unistd_.h (lseek): Scale back link warning message.
49940         * tests/test-lseek.c: Beef up test.
49941         * tests/test-lseek.sh: Exercise more facets of lseek.
49942         Reported by Bruno Haible.
49943
49944 2007-05-28  Bruno Haible  <bruno@clisp.org>
49945
49946         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
49947         to define.
49948
49949 2007-05-27  Bruno Haible  <bruno@clisp.org>
49950
49951         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
49952
49953 2007-05-27  Bruno Haible  <bruno@clisp.org>
49954
49955         * modules/openmp: New file.
49956         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
49957         Noah Misch.
49958
49959 2007-05-26  Bruno Haible  <bruno@clisp.org>
49960
49961         * modules/chdir-long (Depends-on): Add fchdir.
49962         * modules/chdir-safer (Depends-on): Likewise.
49963         * modules/fts (Depends-on): Likewise.
49964         * modules/fts-lgpl (Depends-on): Likewise.
49965         * modules/openat (Depends-on): Likewise.
49966         * modules/savewd (Depends-on): Likewise.
49967
49968 2007-05-24  Eric Blake  <ebb9@byu.net>
49969
49970         Fix lseek on mingw.
49971         * modules/lseek: New module.
49972         * m4/lseek.m4: New file.
49973         * lib/lseek.c: New file.
49974         * modules/lseek-tests: New file.
49975         * tests/test-lseek.c: New file.
49976         * tests/test-lseek.sh: New file.
49977         * MODULES.html.sh: Document lseek module.
49978         * modules/fflush (Depends-on): Add lseek, fseeko.
49979         * modules/fseeko (Depends-on): Likewise.
49980         * modules/ftello (Depends-on): Likewise.
49981         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
49982         broken.
49983         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
49984         broken.
49985         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
49986         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
49987         * lib/ftello.c (rpl_ftello): Likewise.
49988         * tests/test-fseeko.c (main): Test this.
49989         * tests/test-fseeko.sh: Likewise.
49990         * tests/test-ftello.c (main): Likewise.
49991         * tests/test-ftello.sh: Likewise.
49992         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
49993         implies replacing fseek.
49994         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
49995         HAVE_FTELLO.
49996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
49997         * modules/unistd (Makefile.am): Likewise.
49998         * lib/unistd_.h (lseek): Declare a replacement.
49999         * doc/functions/lseek.texi (lseek): Document this fix.
50000         * doc/functions/fseek.texi (fseek): Likewise.
50001         * doc/functions/ftell.texi (ftell): Likewise.
50002
50003 2007-05-24  Bruno Haible  <bruno@clisp.org>
50004
50005         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50006         in the printed representation of a NaN.
50007         * tests/test-vasprintf-posix.c (test_function): Likewise.
50008         * tests/test-snprintf-posix.h (test_function): Likewise.
50009         * tests/test-sprintf-posix.h (test_function): Likewise.
50010         Reported by Eric Blake.
50011
50012 2007-05-23  Eric Blake  <ebb9@byu.net>
50013
50014         Fix fseeko/ftello on cygwin 1.5.24.
50015         * doc/functions/fseeko.texi (fseeko): Document the fix.
50016         * doc/functions/ftello.texi (ftello): Document the fix.
50017         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50018         * doc/functions/stdout.text (stdout): New file.
50019         * doc/functions/stderr.text (stderr): New file.
50020         * doc/gnulib.texi (Function Substitutes): Use new files.
50021         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50022         prior to 1.7.0.
50023         * tests/test-ftello.c (main): Likewise for ftello.
50024         * tests/test-fseeko.sh: New file.
50025         * tests/test-ftello.sh: New file.
50026         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50027         with seekable stdin.
50028         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50029         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50030         (gl_REPLACE_FSEEKO): New macro.
50031         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50032         * modules/fseeko (Files): Distribute fseeko.c.
50033         * modules/ftello (Files): Distribute ftello.c.
50034         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50035         mode.
50036         * lib/ftello.c (rpl_ftello): New file.
50037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50038         fseeko, ftello.
50039         (gl_STDIN_LARGE_OFFSET): New macro.
50040         * modules/stdio (Makefile.am): Perform the replacement.
50041         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50042
50043 2007-05-23  Bruno Haible  <bruno@clisp.org>
50044
50045         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50046         GNULIB_POSIXCHECK is defined.
50047
50048 2007-05-21  Bruno Haible  <bruno@clisp.org>
50049
50050         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50051         Check also the output for NaN arguments. When cross-compiling, guess
50052         no on IRIX.
50053         * lib/vasnprintf.c: Update comments.
50054         * tests/test-vasnprintf-posix.c (strisnan): New function.
50055         (test_function): Use it.
50056         * tests/test-vasprintf-posix.c (strisnan): New function.
50057         (test_function): Use it.
50058         * tests/test-snprintf-posix.h (strisnan): New function.
50059         (test_function): Use it.
50060         * tests/test-sprintf-posix.h (strisnan): New function.
50061         (test_function): Use it.
50062         Reported by Eric Blake.
50063
50064 2007-05-20  Bruno Haible  <bruno@clisp.org>
50065
50066         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50067         numbers that fails on BeOS.
50068         * doc/functions/frexpl.texi: Update.
50069
50070 2007-05-20  Jim Meyering  <jim@meyering.net>
50071
50072         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50073         forced upon us by glibc-2.6.
50074
50075 2007-05-20  Bruno Haible  <bruno@clisp.org>
50076
50077         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50078         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50079         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50080         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50081         NEED_PRINTF_INFINITE.
50082         (is_infinitel): New function.
50083         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50085         gl_PREREQ_VASNPRINTF_INFINITE.
50086         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50087         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50088         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50089         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50090         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50091         gl_PREREQ_VASNPRINTF_INFINITE.
50092         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50093         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50094         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50095         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50096         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50097         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50098         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50099         * doc/functions/fprintf.texi: Update.
50100         * doc/functions/printf.texi: Update.
50101         * doc/functions/snprintf.texi: Update.
50102         * doc/functions/sprintf.texi: Update.
50103         * doc/functions/vfprintf.texi: Update.
50104         * doc/functions/vprintf.texi: Update.
50105         * doc/functions/vsnprintf.texi: Update.
50106         * doc/functions/vsprintf.texi: Update.
50107
50108 2007-05-20  Bruno Haible  <bruno@clisp.org>
50109
50110         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50111         was not found in libc.
50112         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50113
50114 2007-05-20  Bruno Haible  <bruno@clisp.org>
50115
50116         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50117         printed as "-nan" instead of "nan".
50118         * tests/test-vasprintf-posix.c (test_function): Likewise.
50119         * tests/test-snprintf-posix.h (test_function): Likewise.
50120         * tests/test-sprintf-posix.h (test_function): Likewise.
50121         Needed for HP-UX 11.
50122
50123 2007-05-20  Jim Meyering  <jim@meyering.net>
50124
50125         Fix buggy test for the fchownat-deref bug.
50126         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50127         symlink required for the run-test.  Without it, this test would
50128         always declare that fchownat doesn't work, and client code would
50129         unnecessarily use the replacement function with fixed libc.
50130         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50131         Reported by Greg Schafer.
50132
50133 2007-05-19  Bruno Haible  <bruno@clisp.org>
50134
50135         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50136         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50137         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50138         Needed for IRIX 6.5 and Solaris 2.5.1.
50139
50140 2007-05-19  Bruno Haible  <bruno@clisp.org>
50141
50142         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50143         (test_function): Skip tests involving -0.0 on platforms where
50144         -0.0 = 0.0.
50145         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50146         (test_function): Skip tests involving -0.0 on platforms where
50147         -0.0 = 0.0.
50148         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50149         (test_function): Skip tests involving -0.0 on platforms where
50150         -0.0 = 0.0.
50151         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50152         (test_function): Skip tests involving -0.0 on platforms where
50153         -0.0 = 0.0.
50154         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50155         tests.
50156         * tests/test-printf-posix.h (test_function): Likewise.
50157         * tests/test-printf-posix.output: Remove all -0.0 related results.
50158         Needed for IRIX 6.5.
50159
50160 2007-05-19  Bruno Haible  <bruno@clisp.org>
50161
50162         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50163         printed as "nan0x7fffffff" instead of "nan".
50164         * tests/test-vasprintf-posix.c (test_function): Likewise.
50165         * tests/test-snprintf-posix.h (test_function): Likewise.
50166         * tests/test-sprintf-posix.h (test_function): Likewise.
50167         * tests/test-fprintf-posix.h (NaN): Remove macro.
50168         (test_function): Remove all NaN related tests.
50169         * tests/test-printf-posix.h (NaN): Remove macro.
50170         (test_function): Remove all NaN related tests.
50171         * tests/test-printf-posix.output: Remove all NaN related results.
50172         Needed for IRIX 6.5.
50173
50174 2007-05-19  Bruno Haible  <bruno@clisp.org>
50175
50176         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50177         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50178
50179 2007-05-19  Bruno Haible  <bruno@clisp.org>
50180
50181         * lib/float_.h: New file.
50182         * m4/float_h.m4: New file.
50183         * modules/float: New file.
50184         * modules/isnanl (Dependencies): Add float.
50185         * modules/isnanl-nolibm (Dependencies): Likewise.
50186         * modules/mathl (Dependencies): Likewise.
50187         * modules/printf-frexpl (Dependencies): Likewise.
50188         * modules/signbit (Dependencies): Likewise.
50189         * modules/vasnprintf (Dependencies): Likewise.
50190         * doc/headers/float.texi: Update.
50191
50192 2007-05-19  Jim Meyering  <jim@meyering.net>
50193
50194         * lib/utimens.c (gl_futimens): Rename from futimens,
50195         now that glibc-2.6 declares futimens.
50196         * lib/utimens.h: Likewise.
50197
50198 2007-05-19  Bruno Haible  <bruno@clisp.org>
50199
50200         Avoid test failures on mingw.
50201         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50202         * tests/test-printf-posix.sh: Likewise.
50203         * tests/test-vfprintf-posix.sh: Likewise.
50204         * tests/test-vprintf-posix.sh: Likewise.
50205
50206 2007-05-19  Bruno Haible  <bruno@clisp.org>
50207
50208         Fix *printf result for NaN, Inf, -0.0 on mingw.
50209         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50210         * lib/vasnprintf.c: Include math.h and isnan.h.
50211         (is_infinite_or_zero): New function.
50212         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50213         values in the %f, %F, %e, %E, %g, %G directives.
50214         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50215         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50216         gl_PRINTF_INFINITE and test its result. Invoke
50217         gl_PREREQ_VASNPRINTF_INFINITE.
50218         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50219         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50220         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50221         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50222         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50223         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50224         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50225         * doc/functions/fprintf.texi: Update.
50226         * doc/functions/printf.texi: Update.
50227         * doc/functions/snprintf.texi: Update.
50228         * doc/functions/sprintf.texi: Update.
50229         * doc/functions/vfprintf.texi: Update.
50230         * doc/functions/vprintf.texi: Update.
50231         * doc/functions/vsnprintf.texi: Update.
50232         * doc/functions/vsprintf.texi: Update.
50233
50234 2007-05-19  Bruno Haible  <bruno@clisp.org>
50235
50236         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50237         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50238         Instead of multiplying with 10^k, set extra_zeroes to k.
50239         (scale10_round_long_double): Remove function.
50240
50241 2007-05-18  Bruno Haible  <bruno@clisp.org>
50242
50243         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50244         introduced on 2007-05-06.
50245
50246 2007-05-18  Bruno Haible  <bruno@clisp.org>
50247
50248         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50249         %g directives.
50250         * tests/test-vasprintf-posix.c (test_function): Likewise.
50251         * tests/test-snprintf-posix.h (test_function): Likewise.
50252         * tests/test-sprintf-posix.h (test_function): Likewise.
50253
50254 2007-05-18  Bruno Haible  <bruno@clisp.org>
50255
50256         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50257         (strmatch): New function.
50258         (test_function): Test the %f directive on numbers of various exponents.
50259         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50260         (strmatch): New function.
50261         (test_function): Test the %f directive on numbers of various exponents.
50262         * tests/test-snprintf-posix.h (strmatch): New function.
50263         (test_function): Test the %f directive on numbers of various exponents.
50264         * tests/test-sprintf-posix.h (strmatch): New function.
50265         (test_function): Test the %f directive on numbers of various exponents.
50266         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50267         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50268         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50269         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50270
50271 2007-05-18  Bruno Haible  <bruno@clisp.org>
50272
50273         Add support for 'long double' number output.
50274         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50275         * lib/vasnprintf.c: Include math.h and float+.h.
50276         (mp_limb_t): New type.
50277         (GMP_LIMB_BITS): New macro.
50278         (mp_twolimb_t): New type.
50279         (GMP_TWOLIMB_BITS): New macro.
50280         (mpn_t): New type.
50281         (multiply, divide, convert_to_decimal, decode_long_double,
50282         scale10_round_long_double, scale10_round_decimal_long_double,
50283         floorlog10l): New functions.
50284         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50285         for the %f, %F, %e, %E, %g, %G directives.
50286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50287         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50288         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50289         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50290         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50291         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50292         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50293         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50294         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50295         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50296         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50297         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50298         * modules/snprintf-posix (Depends-on): Likewise.
50299         * modules/sprintf-posix (Depends-on): Likewise.
50300         * modules/vasnprintf-posix (Depends-on): Likewise.
50301         * modules/vasprintf-posix (Depends-on): Likewise.
50302         * modules/vfprintf-posix (Depends-on): Likewise.
50303         * modules/vsnprintf-posix (Depends-on): Likewise.
50304         * modules/vsprintf-posix (Depends-on): Likewise.
50305         * modules/vasnprintf (Files): Add lib/float+.h.
50306         * doc/functions/fprintf.texi: Update.
50307         * doc/functions/printf.texi: Update.
50308         * doc/functions/snprintf.texi: Update.
50309         * doc/functions/sprintf.texi: Update.
50310         * doc/functions/vfprintf.texi: Update.
50311         * doc/functions/vprintf.texi: Update.
50312         * doc/functions/vsnprintf.texi: Update.
50313         * doc/functions/vsprintf.texi: Update.
50314
50315 2007-05-18  Bruno Haible  <bruno@clisp.org>
50316
50317         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50318
50319 2007-05-18  Bruno Haible  <bruno@clisp.org>
50320
50321         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50322         for printing 64-bit integers. Needed for mingw.
50323
50324 2007-05-18  Bruno Haible  <bruno@clisp.org>
50325
50326         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50327         gl_FUNC_FREXPL_WORKS.
50328         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50329
50330 2007-05-18  Bruno Haible  <bruno@clisp.org>
50331
50332         * modules/frexpl-nolibm-tests: New file.
50333
50334         * modules/frexpl-nolibm: New file.
50335         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50336
50337 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50338
50339         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50340         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50341         GCC 4.2, which otherwise issues a lot of warnings.
50342         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50343         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50344         Likewise.
50345         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50346         * modules/iconv_open (iconv.h): Likewise.
50347         * modules/locale (locale.h): Likewise.
50348         * modules/netinet_in (netinet/in.h): Likewise.
50349         * modules/sys_select (sys_select.h): Likewise.
50350         * modules/sys_socket (sys/socket.h): Likewise.
50351         * modules/sys_stat (sys/stat.h): Likewise.
50352         * modules/sysexits (sysexits.h): Likewise.
50353         * modules/unistd (unistd.h): Likewise.
50354
50355 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50356
50357         * modules/closein-tests (Makefile.am): Distribute
50358         `test-closein.sh'.
50359
50360 2007-05-17  Bruno Haible  <bruno@clisp.org>
50361
50362         * tests/test-printf-posix.output: Renamed from
50363         tests/test-fprintf-posix.out.
50364         * modules/fprintf-posix-tests: Update.
50365         * modules/printf-posix-tests: Update.
50366         * modules/vfprintf-posix-tests: Update.
50367         * modules/vprintf-posix-tests: Update.
50368         * tests/test-fprintf-posix.sh: Update.
50369         * tests/test-printf-posix.sh: Update.
50370         * tests/test-vfprintf-posix.sh: Update.
50371         * tests/test-vprintf-posix.sh: Update.
50372         Reported by Ralf Wildenhues.
50373
50374 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50375
50376         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50377         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50378         GCC 4.2, which otherwise issues a lot of warnings.
50379         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50380         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50381         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50382         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50383         it should no longer be needed.
50384         * lib/string_.h: Likewise.
50385         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50386         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50387         * modules/inttypes (inttypes.h): Likewise.
50388         * modules/math (math.h): Likewise.
50389         * modules/search (search.h): Likewise.
50390         * modules/signal (signal.h): Likewise.
50391         * modules/stdint (stdint.h): Likewise.
50392         * modules/stdio (stdio.h): Likewise.
50393         * modules/stdlib (stdlib.h): Likewise.
50394         * modules/string (string.h): Likewise.
50395         * modules/sys_time (sys/time.h): Likewise.
50396         * modules/time (time.h): Likewise.
50397         * modules/wchar (wchar.h): Likewise.
50398         * modules/wctype (wtype.h): Likewise.
50399
50400 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50401
50402         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50403
50404 2007-05-13  Bruno Haible  <bruno@clisp.org>
50405
50406         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50407         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50408         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50409         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50410         (gl_PREREQ_STRTOK_R): Don't require it here.
50411
50412 2007-05-13  Bruno Haible  <bruno@clisp.org>
50413
50414         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50415         when used in C++ mode.
50416
50417 2007-05-12  Bruno Haible  <bruno@clisp.org>
50418
50419         * lib/linebuffer.h: Tweak doc.
50420         * lib/linebuffer.c: Likewise.
50421
50422 2007-05-12  James Youngman  <jay@gnu.org>
50423
50424         * lib/linebuffer.c (readlinebuffer_delim): New function,
50425         like readlinebuffer, but use a caller-specified delimiter.
50426         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50427         as the delimiter.
50428         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50429
50430 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50431
50432         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50433         * modules/openat (Files): Remove openat-die.c.
50434         (Depends-on): Add openat-die.
50435         * modules/openat-die: New module.
50436
50437 2007-05-06  Bruno Haible  <bruno@clisp.org>
50438
50439         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50440         Update with info about Cygwin.
50441         * doc/functions/fprintf.texi: Update.
50442         * doc/functions/printf.texi: Update.
50443         * doc/functions/snprintf.texi: Update.
50444         * doc/functions/sprintf.texi: Update.
50445         * doc/functions/vfprintf.texi: Update.
50446         * doc/functions/vprintf.texi: Update.
50447         * doc/functions/vsnprintf.texi: Update.
50448         * doc/functions/vsprintf.texi: Update.
50449         Reported by Eric Blake.
50450
50451 2007-05-06  Bruno Haible  <bruno@clisp.org>
50452
50453         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50454         padding ourselves for the floating-point directives.
50455         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50456         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50457         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50458         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50459         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50460         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50461         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50462         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50463         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50464         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50466         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50467         * tests/test-snprintf-posix.h (test_function): Also check the width
50468         and some flags in the %f directive.
50469         * tests/test-sprintf-posix.h (test_function): Likewise.
50470         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50471         * tests/test-vasprintf-posix.c (test_function): Likewise.
50472         * doc/functions/fprintf.texi: Update.
50473         * doc/functions/printf.texi: Update.
50474         * doc/functions/snprintf.texi: Update.
50475         * doc/functions/sprintf.texi: Update.
50476         * doc/functions/vfprintf.texi: Update.
50477         * doc/functions/vprintf.texi: Update.
50478         * doc/functions/vsnprintf.texi: Update.
50479         * doc/functions/vsprintf.texi: Update.
50480
50481 2007-05-06  Bruno Haible  <bruno@clisp.org>
50482
50483         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50484         pass the ' flag character to sprintf or snprintf.
50485         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50488         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50489         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50490         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50491         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50492         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50494         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50496         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50497         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50498         flag.
50499         * tests/test-sprintf-posix.h (test_function): Likewise.
50500         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50501         * tests/test-vasprintf-posix.c (test_function): Likewise.
50502         * doc/functions/fprintf.texi: Update.
50503         * doc/functions/printf.texi: Update.
50504         * doc/functions/snprintf.texi: Update.
50505         * doc/functions/sprintf.texi: Update.
50506         * doc/functions/vfprintf.texi: Update.
50507         * doc/functions/vprintf.texi: Update.
50508         * doc/functions/vsnprintf.texi: Update.
50509         * doc/functions/vsprintf.texi: Update.
50510
50511 2007-05-01  Bruno Haible  <bruno@clisp.org>
50512
50513         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50514
50515 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50516
50517         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50518         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50519
50520 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50521
50522         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
50523         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
50524         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
50525
50526 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
50527
50528         * lib/argp-help.c (struct hol_entry): New member `ord'.
50529         (HOL_ENTRY_PTRCMP): Use ord for comparison
50530         (hol_sort): Initialize ord.
50531
50532 2007-05-01  Bruno Haible  <bruno@clisp.org>
50533
50534         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
50535         Reported by Eric Blake.
50536         * doc/gnulib.texi (Function Substitutes): Update.
50537
50538 2007-05-01  Bruno Haible  <bruno@clisp.org>
50539
50540         * doc/functions.texi: Remove file, now redundant through
50541         doc/functions/*.texi.
50542
50543 2007-05-01  Bruno Haible  <bruno@clisp.org>
50544
50545         * modules/argp (Depends-on): Add sleep.
50546
50547 2007-05-01  Bruno Haible  <bruno@clisp.org>
50548
50549         * modules/sleep-tests: New file.
50550         * tests/test-sleep.c: New file.
50551
50552         * modules/sleep: New file.
50553         * lib/sleep.c: New file.
50554         * m4/sleep.m4: New file.
50555         * lib/unistd_.h (sleep): New declaration.
50556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
50557         HAVE_SLEEP.
50558         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
50559         * doc/functions/sleep.texi: Document the sleep module.
50560
50561 2007-05-01  Bruno Haible  <bruno@clisp.org>
50562
50563         * lib/sigprocmask.h: Remove file.
50564         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
50565         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
50566         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
50567         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
50568         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50569         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
50570         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
50571         HAVE_SIGSET_T as a shell variable.
50572         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
50573         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
50574         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
50575         (Depends-on): Add signal. Remove verify.
50576         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50577         (Include): Mention <signal.h> instead of sigprocmask.h.
50578         * NEWS: Mention the change.
50579         * lib/fatal-signal.c: Don't include sigprocmask.h.
50580
50581 2007-05-01  Bruno Haible  <bruno@clisp.org>
50582
50583         * modules/signal: New file.
50584         * lib/signal_.h: New file.
50585         * m4/signal_h.m4: New file.
50586
50587 2007-05-01  Bruno Haible  <bruno@clisp.org>
50588
50589         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
50590         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
50591         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
50592         HAVE_WCTYPE_CTMP_BUG into wctype.h.
50593
50594 2007-05-01  Bruno Haible  <bruno@clisp.org>
50595
50596         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
50597         configure time.
50598         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
50599         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
50600         * modules/sys_stat (Makefile.am): Substitute their values into
50601         sys/stat.h.
50602
50603 2007-05-01  Bruno Haible  <bruno@clisp.org>
50604
50605         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
50606         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
50607         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
50608
50609 2007-05-01  Bruno Haible  <bruno@clisp.org>
50610
50611         * doc/header/assert.texi: Undo last change: don't mention the gnulib
50612         'assert' module here.
50613
50614 2007-05-01  Bruno Haible  <bruno@clisp.org>
50615
50616         * doc/functions/*.texi: New files.
50617         * doc/functions/google-ranking.txt: New file.
50618         * doc/gnulib.texi (Function Substitutes): New chapter.
50619         (ctime, inet_ntoa): Remove sections.
50620         * doc/ctime.texi: Remove file.
50621         * doc/inet_ntoa.texi: Remove file.
50622         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
50623         dependencies.
50624         (%.info): New rule, specifying a --reference-limit.
50625
50626 2007-05-01  Bruno Haible  <bruno@clisp.org>
50627
50628         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
50629
50630 2007-05-01  Bruno Haible  <bruno@clisp.org>
50631
50632         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
50633         the portability of 'mkdir' to mingw systems.
50634
50635 2007-05-01  Bruno Haible  <bruno@clisp.org>
50636
50637         * doc/headers/google-ranking.txt: New file.
50638
50639 2007-04-30  Eric Blake  <ebb9@byu.net>
50640
50641         Prefer fseeko to fseek.
50642         * modules/getpass (Depends-on): Add fseeko.
50643         * lib/getpass.c (getpass): Use fseeko, not fseek.
50644
50645 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
50646
50647         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
50648         assumes the sorting is stable, while most qsort implementations
50649         are not.  Use argument addresses to ensure they never compare as
50650         equal.
50651
50652         * tests/test-argp-2.sh (usage-indent test): Fix output
50653         (func_compare): Restore diff options
50654         * tests/test-argp.c: Restore #include "progname.h"
50655
50656 2007-04-29  Bruno Haible  <bruno@clisp.org>
50657
50658         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
50659         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50660         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
50661         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50662         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
50663         (configure.ac): Define CHECK_SNPRINTF_POSIX.
50664         (TESTS, check_PROGRAMS): Add test-snprintf.
50665         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
50666         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
50667         (TESTS, check_PROGRAMS): Add test-vsnprintf.
50668         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
50669         assertions that fail on HP-UX, OSF/1, or IRIX.
50670         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
50671
50672 2007-04-29  Bruno Haible  <bruno@clisp.org>
50673
50674         * MODULES.html.sh (posix_functions): Remove 'contents'.
50675
50676 2007-04-29  Karl Berry  <karl@gnu.org>
50677
50678         * config/srclist.txt (gendocs_template_min): new entry.
50679
50680 2007-04-29  Bruno Haible  <bruno@clisp.org>
50681
50682         Work around fpurge bug on BSD systems.
50683         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
50684         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
50685         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
50686         fpurge to rpl_fpurge if the system already has this function.
50687         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50688         the case where the system already has this function. Correct invariants
50689         on BSD systems.
50690         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50691         BSD systems.
50692
50693 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50694
50695         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50696         proposed by Sven Verdoolaege.
50697
50698         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50699         options.
50700         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50701         (usage and help tests): Update
50702
50703 2007-04-29  Bruno Haible  <bruno@clisp.org>
50704
50705         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50706         Print more information in case of failure. Disable a test on BeOS.
50707
50708 2007-04-29  Bruno Haible  <bruno@clisp.org>
50709
50710         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50711         This helps debugging on systems on which no gdb is available.
50712
50713 2007-04-29  Bruno Haible  <bruno@clisp.org>
50714
50715         * lib/freading.h: Improve comments.
50716         * lib/fwriting.h: Likewise.
50717         * tests/test-freading.c (main): Don't check freading immediately after
50718         repositioning. Needed for glibc.
50719
50720 2007-04-29  Bruno Haible  <bruno@clisp.org>
50721
50722         * lib/freading.c (freading): Trivial simplification.
50723
50724 2007-04-28  Bruno Haible  <bruno@clisp.org>
50725
50726         * tests/test-fwriting.c (main): Also test the interaction between
50727         fflush and fwriting.
50728         * modules/fwriting-tests (Depends-on): Add fflush.
50729
50730         * tests/test-freading.c (main): Also test the interaction between
50731         fflush and freading.
50732         * modules/freading-tests (Depends-on): Add fflush.
50733
50734 2007-04-28  Bruno Haible  <bruno@clisp.org>
50735
50736         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50737         fseeko and ftello.
50738         Suggested by Eric Blake.
50739
50740 2007-04-28  Jim Meyering  <jim@meyering.net>
50741
50742         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50743         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50744         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50745
50746 2007-04-27  Eric Blake  <ebb9@byu.net>
50747
50748         * doc/headers/assert.texi (assert.h): Document assert module use.
50749
50750 2007-04-27  Bruno Haible  <bruno@clisp.org>
50751
50752         * doc/headers/*.texi: New files.
50753         * doc/gnulib.texi (Header File Substitutes): New chapter.
50754         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50755         dependencies.
50756         (standards.info ,standards.html, standards.dvi): Update dependencies.
50757         (mostlyclean, clean): New targets.
50758
50759 2007-04-27  Bruno Haible  <bruno@clisp.org>
50760
50761         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50762         * modules/sysexits (Files, Makefile.am): Update.
50763
50764         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50765         * modules/sys_socket (Files, Makefile.am): Update.
50766
50767         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50768         * modules/sys_stat (Files, Makefile.am): Update.
50769
50770 2007-04-27  Eric Blake  <ebb9@byu.net>
50771
50772         * lib/freading.h: Improve comments.
50773         * lib/fwriting.h: Likewise.
50774         * lib/fflush.c: Likewise.
50775
50776         Fix closein for mingw.
50777         * modules/closein-tests: Add tests for closein.
50778         * tests/test-closein.c: New file.
50779         * tests/test-closein.sh: Likewise.
50780         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50781         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50782
50783 2007-04-27  Bruno Haible  <bruno@clisp.org>
50784
50785         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50786         version is < 6.
50787         * lib/math_.h [__DECC]: Likewise.
50788         * lib/stdio_.h [__DECC]: Likewise.
50789         * lib/stdlib_.h [__DECC]: Likewise.
50790         * lib/string_.h [__DECC]: Likewise.
50791         * lib/time_.h [__DECC]: Likewise.
50792         * lib/wchar_.h [__DECC]: Likewise.
50793         * lib/wctype_.h [__DECC]: Likewise.
50794
50795 2007-04-27  Bruno Haible  <bruno@clisp.org>
50796
50797         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
50798
50799 2007-04-27  Bruno Haible  <bruno@clisp.org>
50800
50801         * lib/fflush.c: Add comments.
50802         * modules/fpurge-tests (Depends-on): Add fflush.
50803         * modules/freadable-tests (Depends-on): Likewise.
50804         * modules/fwritable-tests (Depends-on): Likewise.
50805
50806 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
50807
50808         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
50809         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
50810         Report by Bruno Haible <bruno@clisp.org>.
50811
50812 2007-04-26  Eric Blake  <ebb9@byu.net>
50813
50814         Fix fflush on mingw.
50815         * modules/fflush (Depends-on): Add freading.
50816         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
50817         but unread data.
50818
50819 2007-04-26  Eric Blake  <ebb9@byu.net>
50820         and Bruno Haible  <bruno@clisp.org>
50821
50822         Implement freading and fwriting.
50823         * lib/freading.c: New file.
50824         * lib/freading.h: Likewise.
50825         * m4/freading.m4: Likewise.
50826         * modules/freading: Likewise.
50827         * modules/freading-tests: Likewise.
50828         * tests/test-freading.c: Likewise.
50829         * lib/fwriting.c: New file.
50830         * lib/fwriting.h: Likewise.
50831         * m4/fwriting.m4: Likewise.
50832         * modules/fwriting: Likewise.
50833         * modules/fwriting-tests: Likewise.
50834         * tests/test-fwriting.c: Likewise.
50835         * MODULES.html.sh (File stream based Input/Output): Mention them.
50836
50837 2007-04-26  Bruno Haible  <bruno@clisp.org>
50838
50839         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
50840         'long' when we assume it.
50841         Suggested by Eric Blake.
50842
50843 2007-04-26  Bruno Haible  <bruno@clisp.org>
50844
50845         Ensure fseeko, ftello are declared on glibc systems.
50846         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
50847         * modules/fseeko (configure.ac-early): Likewise.
50848         * modules/ftello (configure.ac-early): Likewise.
50849         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
50850         AC_FUNC_FSEEKO for this.
50851         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
50852         (gl_CHECK_FSEEKO): Remove macro.
50853
50854 2007-04-26  Bruno Haible  <bruno@clisp.org>
50855
50856         * tests/test-fflush.c (main): Also check the ftell result after
50857         fflush and fseek/fseeko.
50858         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
50859         file descriptor position cache in the stream.
50860         * lib/fseeko.c (rpl_fseeko): Likewise.
50861
50862 2007-04-26  Bruno Haible  <bruno@clisp.org>
50863
50864         * modules/fflush-tests (Depends-on): Add fseeko.
50865
50866 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
50867             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50868
50869         * lib/argz_.h: ensure error_t definition is obtained in same
50870         mechanism system argz.h would have.
50871         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
50872         argz facilities are known bad.  Err on the side of caution if
50873         cross-compiling.
50874
50875 2007-04-25  Eric Blake  <ebb9@byu.net>
50876
50877         * lib/fpurge.c (includes): Use stdlib.h for free.
50878         * tests/test-fflush.c (main): Also test fflush-fseeko.
50879
50880 2007-04-25  Bruno Haible  <bruno@clisp.org>
50881
50882         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
50883         * lib/fseeko.c: New file.
50884         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
50885         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
50886         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
50887         gl_FUNC_FSEEKO.
50888         (gl_FUNC_FSEEKO): Invoke it.
50889         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
50890         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
50891         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
50892
50893 2007-04-25  Bruno Haible  <bruno@clisp.org>
50894
50895         * modules/fflush (Depends-on): Add ftello.
50896
50897 2007-04-25  Bruno Haible  <bruno@clisp.org>
50898
50899         * modules/ftello-tests: New file.
50900         * tests/test-ftello.c: New file.
50901
50902         * modules/ftello: New file.
50903         * m4/ftello.m4: New file.
50904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
50905         HAVE_FTELLO.
50906         * lib/stdio_.h (ftello): New declaration.
50907         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
50908         HAVE_FTELLO.
50909
50910 2007-04-25  Bruno Haible  <bruno@clisp.org>
50911
50912         * modules/fseeko-tests: New file.
50913         * tests/test-fseeko.c: New file.
50914
50915         * modules/fseeko: New file.
50916         * m4/fseeko.m4: New file.
50917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
50918         HAVE_FSEEKO.
50919         * lib/stdio_.h (fseeko): New declaration.
50920         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
50921         HAVE_FSEEKO.
50922
50923 2007-04-25  Bruno Haible  <bruno@clisp.org>
50924
50925         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
50926
50927 2007-04-25  Bruno Haible  <bruno@clisp.org>
50928
50929         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
50930         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
50931         * tests/test-unistd.c: Likewise.
50932         * tests/test-fcntl.c: Likewise.
50933
50934 2007-04-23  Eric Blake  <ebb9@byu.net>
50935
50936         * lib/fflush.c: Fix missing include.
50937         Reported by Bruno Haible.
50938
50939 2007-04-23  Bruno Haible  <bruno@clisp.org>
50940
50941         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
50942         Reported by Eric Blake.
50943
50944 2007-04-23  Bruno Haible  <bruno@clisp.org>
50945
50946         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
50947
50948 2007-04-23  Bruno Haible  <bruno@clisp.org>
50949
50950         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
50951
50952 2007-04-23  Bruno Haible  <bruno@clisp.org>
50953
50954         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
50955         Needed on HP-UX 11.
50956
50957 2007-04-16  Eric Blake  <ebb9@byu.net>
50958
50959         Make fflush rely on fpurge.
50960         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
50961         open coding all variants.
50962         * modules/fflush (Depends-on): Add fpurge and unistd.
50963         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
50964         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
50965
50966         Fix --with-tests compilation on cygwin.
50967         * modules/argmatch-tests (Makefile.am): List gnulib library first
50968         in LDADD.
50969         * modules/argp-tests (Makefile.am): Likewise.
50970         * modules/array-list-tests (Makefile.am): Likewise.
50971         * modules/array-oset-tests (Makefile.am): Likewise.
50972         * modules/avltree-list-tests (Makefile.am): Likewise.
50973         * modules/avltree-oset-tests (Makefile.am): Likewise.
50974         * modules/avltreehash-list-tests (Makefile.am): Likewise.
50975         * modules/carray-list-tests (Makefile.am): Likewise.
50976         * modules/dirname-tests (Makefile.am): Likewise.
50977         * modules/frexp-tests (Makefile.am): Likewise.
50978         * modules/isnanl-tests (Makefile.am): Likewise.
50979         * modules/linked-list-tests (Makefile.am): Likewise.
50980         * modules/linkedhash-list-tests (Makefile.am): Likewise.
50981         * modules/lock-tests (Makefile.am): Likewise.
50982         * modules/rbtree-list-tests (Makefile.am): Likewise.
50983         * modules/rbtree-oset-tests (Makefile.am): Likewise.
50984         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
50985         * modules/tls-tests (Makefile.am): Likewise.
50986         * modules/tsearch-tests (Makefile.am): Likewise.
50987         * modules/xvasprintf-tests (Makefile.am): Likewise.
50988
50989         Fix fpurge for cygwin.
50990         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
50991         value.
50992         * modules/fpurge-tests (Depends-on): Clean up trash.
50993
50994 2007-04-16  Simon Josefsson  <simon@josefsson.org>
50995
50996         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
50997
50998         * m4/autobuild.m4: Re-indent.
50999
51000 2007-04-13  Bruno Haible  <bruno@clisp.org>
51001
51002         * modules/fpurge-tests: New file.
51003         * tests/test-fpurge.c: New file.
51004
51005         * modules/fpurge: New file.
51006         * lib/fpurge.h: New file.
51007         * lib/fpurge.c: New file.
51008         * m4/fpurge.m4: New file.
51009
51010 2007-04-13  Bruno Haible  <bruno@clisp.org>
51011
51012         * modules/fbufmode-tests: New file.
51013         * tests/test-fbufmode.c: New file.
51014
51015         * modules/fbufmode: New file.
51016         * lib/fbufmode.h: New file.
51017         * lib/fbufmode.c: New file.
51018         * m4/fbufmode.m4: New file.
51019
51020 2007-04-13  Bruno Haible  <bruno@clisp.org>
51021
51022         * modules/fwritable-tests: New file.
51023         * tests/test-fwritable.c: New file.
51024
51025         * modules/fwritable: New file.
51026         * lib/fwritable.h: New file.
51027         * lib/fwritable.c: New file.
51028         * m4/fwritable.m4: New file.
51029
51030 2007-04-13  Bruno Haible  <bruno@clisp.org>
51031
51032         * modules/freadable-tests: New file.
51033         * tests/test-freadable.c: New file.
51034
51035         * modules/freadable: New file.
51036         * lib/freadable.h: New file.
51037         * lib/freadable.c: New file.
51038         * m4/freadable.m4: New file.
51039
51040 2007-04-13  Bruno Haible  <bruno@clisp.org>
51041
51042         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51043         MOSTLYCLEANFILES.
51044
51045 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51046
51047         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51048         gzip bootstrap.conf to avoid dragging in i18n machinery.
51049         (gnulib_tool_option): Use it.
51050
51051 2007-04-13  Bruno Haible  <bruno@clisp.org>
51052
51053         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51054         %F directives.
51055         * tests/test-vasprintf-posix.c (test_function): Likewise.
51056         * tests/test-snprintf-posix.h (test_function): Likewise.
51057         * tests/test-sprintf-posix.h (test_function): Likewise.
51058         * tests/test-fprintf-posix.h (test_function): Likewise.
51059         * tests/test-printf-posix.h (test_function): Likewise.
51060         * tests/test-fprintf-posix.out: Likewise.
51061
51062 2007-04-13  Bruno Haible  <bruno@clisp.org>
51063
51064         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51065         * modules/tls-tests (configure.ac): Likewise.
51066         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51067
51068 2007-04-13  Bruno Haible  <bruno@clisp.org>
51069
51070         * lib/tls.c (glthread_tls_get): Fix return type.
51071         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51072
51073 2007-04-12  Eric Blake  <ebb9@byu.net>
51074
51075         * modules/gettime (Depends-on): Remove gettime.
51076         Reported by Dmitry V. Levin.
51077
51078 2007-04-12  Bruno Haible  <bruno@clisp.org>
51079
51080         * modules/fflush (Include): Mention <stdio.h>.
51081         * modules/strtoimax (Include): Mention <inttypes.h>.
51082         * modules/strtoumax (Include): Likewise.
51083
51084 2007-04-12  Eric Blake  <ebb9@byu.net>
51085
51086         * .cvsignore: New file.
51087         * .gitignore: Likewise.
51088
51089 2007-04-12  Bruno Haible  <bruno@clisp.org>
51090
51091         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51092         not before, since $(LDADD) often contains libgnu.a.
51093         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51094         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51095         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51096         Needed on Cygwin.
51097
51098 2007-04-12  Eric Blake  <ebb9@byu.net>
51099
51100         Work around glibc's failure to flush stdin on fclose.
51101         * lib/closein.c (close_stdin): Flush stdin before closing.
51102
51103         Work around glibc's failure to reset seekable stdin on exit.
51104         * modules/closein: New module.
51105         * lib/closein.c: New file.
51106         * lib/closein.h: Likewise.
51107         * m4/closein.m4: Likewise.
51108         * MODULES.html.sh (File stream based Input/Output): Document it.
51109
51110 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51111
51112         * gnulib-tool: Rename generated 'autobuild' script to
51113         'do-autobuild' in --create-megatestdir output.
51114
51115         * doc/gnulib.texi (Build robot for gnulib): Fix.
51116
51117 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51118
51119         * modules/sysexits (Depends-on): Add absolute-header.
51120
51121 2007-04-12  Eric Blake  <ebb9@byu.net>
51122
51123         No need to preserve errno on success.
51124         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51125         Reported by Bruno Haible.
51126
51127 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51128
51129         * MODULES.html.sh (Support for maintaining and releasing
51130         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51131
51132 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51133
51134         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51135
51136 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51137
51138         * modules/autobuild: New module.
51139
51140         * m4/autobuild.m4: New file.
51141
51142 2007-04-11  Bruno Haible  <bruno@clisp.org>
51143
51144         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51145         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51146         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51148         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51149         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51150         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51151         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51152         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51153         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51154         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51155         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51156         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51157         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51158         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51159         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51160         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51161         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51162         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51163         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51164         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51165         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51167         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51168         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51170         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51171         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51172         Reported by Eric Blake.
51173
51174 2007-04-11  Bruno Haible  <bruno@clisp.org>
51175
51176         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51177
51178 2007-04-10  Bruno Haible  <bruno@clisp.org>
51179
51180         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51181         for NaN and Infinity. Needed on FreeBSD 6.1.
51182         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51183         regarding results for "%010a" of Infinity and NaN.
51184         * tests/test-vasprintf-posix.c (test_function): Likewise.
51185         * tests/test-snprintf-posix.h (test_function): Likewise.
51186         * tests/test-sprintf-posix.h (test_function): Likewise.
51187         * tests/test-fprintf-posix.h (test_function): Likewise.
51188         * tests/test-printf-posix.h (test_function): Likewise.
51189         * tests/test-fprintf-posix.out: Likewise.
51190
51191 2007-04-10  Bruno Haible  <bruno@clisp.org>
51192
51193         * modules/locale-tests: New file.
51194         * tests/test-locale.c: New file.
51195
51196         * modules/locale: New file.
51197         * lib/locale_.h: New file.
51198         * m4/locale_h.m4: New file.
51199
51200 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51201             Bruno Haible  <bruno@clisp.org>
51202
51203         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51204         be determined, test for availability of the copysignf, copysign,
51205         copysignl functions.
51206         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51207         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51208         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51209
51210 2007-04-09  Eric Blake  <ebb9@byu.net>
51211
51212         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51213         * modules/stdio (Makefile.am): Support fflush.
51214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51215         * modules/fflush: New file.
51216         * lib/fflush.c: Likewise.
51217         * m4/fflush.m4: Likewise.
51218         * modules/fflush-tests: New test.
51219         * tests/test-fflush.c: Likewise.
51220         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51221
51222 2007-04-06  Bruno Haible  <bruno@clisp.org>
51223
51224         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51225         (VASNPRINTF): Use signbit for faster determination whether to print a
51226         minus sign.
51227         * modules/vasnprintf (Files): Remove lib/float+.h.
51228         * modules/fprintf-posix (Depends-on): Add signbit.
51229         * modules/snprintf-posix (Depends-on): Likewise.
51230         * modules/sprintf-posix (Depends-on): Likewise.
51231         * modules/vasnprintf-posix (Depends-on): Likewise.
51232         * modules/vasprintf-posix (Depends-on): Likewise.
51233         * modules/vfprintf-posix (Depends-on): Likewise.
51234         * modules/vsnprintf-posix (Depends-on): Likewise.
51235         * modules/vsprintf-posix (Depends-on): Likewise.
51236
51237 2007-04-06  Bruno Haible  <bruno@clisp.org>
51238
51239         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51240         * tests/test-frexpl.c (main): Likewise.
51241         * tests/test-ldexpl.c (main): Likewise.
51242         * modules/frexp-tests (Depends-on): Add signbit.
51243         * modules/frexpl-tests (Depdends-on): Likewise.
51244         * modules/ldexpl-tests (Depdends-on): Likewise.
51245
51246 2007-04-06  Bruno Haible  <bruno@clisp.org>
51247
51248         * modules/signbit-tests: New file.
51249         * tests/test-signbit.c: New file.
51250
51251         * modules/signbit: New file.
51252         * lib/signbitf.c: New file.
51253         * lib/signbitd.c: New file.
51254         * lib/signbitl.c: New file.
51255         * m4/signbit.m4: New file.
51256         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51257         (signbit): New macro.
51258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51259         REPLACE_SIGNBIT.
51260         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51261         REPLACE_FREXPL into math.h.
51262
51263 2007-04-06  Bruno Haible  <bruno@clisp.org>
51264
51265         * modules/isnanf-nolibm-tests: New file.
51266         * tests/test-isnanf.c: New file.
51267
51268         * modules/isnanf-nolibm: New file.
51269         * lib/isnanf.h: New file.
51270         * lib/isnanf.c: New file.
51271         * lib/isnan.c: Consider the USE_FLOAT macro.
51272         * m4/isnanf.m4: New file.
51273
51274 2007-04-06  Bruno Haible  <bruno@clisp.org>
51275
51276         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51277         (Link): New section.
51278
51279         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51280
51281 2007-04-06  Bruno Haible  <bruno@clisp.org>
51282
51283         Assume the 'long double' type.
51284         * m4/longdouble.m4: Remove file.
51285         * config/srclist.txt: Don't mention longdouble.m4.
51286         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51287         * lib/float+.h: Likewise.
51288         * lib/frexp.c: Likewise.
51289         * lib/printf-args.h: Likewise.
51290         * lib/printf-args.c: Likewise.
51291         * lib/printf-frexp.c: Likewise.
51292         * lib/printf-parse.c: Likewise.
51293         * lib/vasnprintf.c: Likewise.
51294         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51295         * m4/intl.m4: Likewise.
51296         * m4/isnanl.m4: Likewise.
51297         * m4/printf.m4: Likewise.
51298         * m4/printf-frexpl.m4: Likewise.
51299         * m4/vasnprintf.m4: Likewise.
51300         * modules/allocsa (Files): Remove m4/longdouble.m4.
51301         * modules/gettext (Files): Likewise.
51302         * modules/relocatable-prog-wrapper (Files): Likewise.
51303         * modules/vasnprintf (Files): Likewise.
51304         * modules/isnanl (Files): Likewise.
51305         (Include): Simplify.
51306         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51307         (Include): Simplify.
51308         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51309         (Include): Simplify.
51310         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51311         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51312         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51313         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51314         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51315         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51316         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51317         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51318         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51319         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51320         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51321         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51322         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51323         * tests/test-isnanl.c: Likewise.
51324         * tests/test-snprintf-posix.h: Likewise.
51325         * tests/test-sprintf-posix.h: Likewise.
51326         * tests/test-vasnprintf-posix.c: Likewise.
51327         * tests/test-vasnprintf-posix2.c: Likewise.
51328         * tests/test-vasprintf-posix.c: Likewise.
51329
51330 2007-04-06  Bruno Haible  <bruno@clisp.org>
51331
51332         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51333         * lib/math_.h [__DECC]: Include the overridden include file through
51334         #include_next, outside the double-inclusion guard.
51335         * lib/stdio_.h [__DECC]: Likewise.
51336         * lib/stdlib_.h [__DECC]: Likewise.
51337         * lib/string_.h [__DECC]: Likewise.
51338         * lib/time_.h [__DECC]: Likewise.
51339         * lib/wchar_.h [__DECC]: Likewise.
51340         * lib/wctype_.h [__DECC]: Likewise.
51341         * lib/inttypes_.h [__DECC]: Likewise.
51342         Reported by Albert Chin <china@thewrittenword.com> in
51343         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51344
51345 2007-04-04  Eric Blake  <ebb9@byu.net>
51346
51347         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51348         1.5.x.
51349
51350 2007-04-04  Bruno Haible  <bruno@clisp.org>
51351
51352         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51353         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51354
51355 2007-04-04  Bruno Haible  <bruno@clisp.org>
51356
51357         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51358         results for "%010a" of Infinity and NaN.
51359         * tests/test-vasprintf-posix.c (test_function): Likewise.
51360         * tests/test-snprintf-posix.h (test_function): Likewise.
51361         * tests/test-sprintf-posix.h (test_function): Likewise.
51362         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51363         * tests/test-printf-posix.h (test_function): Likewise.
51364         * tests/test-fprintf-posix.out: Update.
51365         Needed for FreeBSD 6.1.
51366
51367 2007-04-04  Bruno Haible  <bruno@clisp.org>
51368
51369         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51370         directly used by the gnulib modules nor by gnulib-tool.
51371
51372 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51373
51374         * DEPENDENCIES: Give overall description of version dependency
51375         desirability.  Use more-typical names for apps.
51376         Add shell, coreutils, diffutils, grep, tar, gzip.
51377
51378 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51379
51380         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51381
51382 2007-04-04  Karl Berry  <karl@gnu.org>
51383
51384         * MODULES.html.sh (func_module): missing '.
51385
51386 2007-04-03  Bruno Haible  <bruno@clisp.org>
51387
51388         * modules/argmatch-tests (Makefile.am): New variable
51389         test_argmatch_LDADD.
51390         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51391         * modules/array-list-tests (Makefile.am): New variable
51392         test_array_list_LDADD.
51393         * modules/array-oset-tests (Makefile.am): New variable
51394         test_array_oset_LDADD.
51395         * modules/avltree-list-tests (Makefile.am): New variable
51396         test_avltree_list_LDADD.
51397         * modules/avltree-oset-tests (Makefile.am): New variable
51398         test_avltree_oset_LDADD.
51399         * modules/avltreehash-list-tests (Makefile.am): New variable
51400         test_avltreehash_list_LDADD.
51401         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51402         test_canonicalize_lgpl_LDADD.
51403         * modules/carray-list-tests (Makefile.am): New variable
51404         test_carray_list_LDADD.
51405         * modules/dirname-tests (Makefile.am): New variable
51406         test_dirname_LDADD.
51407         * modules/linked-list-tests (Makefile.am): New variable
51408         test_linked_list_LDADD.
51409         * modules/linkedhash-list-tests (Makefile.am): New variable
51410         test_linkedhash_list_LDADD.
51411         * modules/rbtree-list-tests (Makefile.am): New variable
51412         test_rbtree_list_LDADD.
51413         * modules/rbtree-oset-tests (Makefile.am): New variable
51414         test_rbtree_oset_LDADD.
51415         * modules/rbtreehash-list-tests (Makefile.am): New variable
51416         test_rbtreehash_list_LDADD.
51417         * modules/xvasprintf-tests (Makefile.am): New variable
51418         test_xvasprintf_LDADD.
51419         Reported by Eric Blake.
51420
51421 2007-04-03  Eric Blake  <ebb9@byu.net>
51422
51423         * DEPENDENCIES: Weaken m4 requirements.
51424
51425 2007-04-03  Bruno Haible  <bruno@clisp.org>
51426
51427         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51428         * modules/isnanl-tests (configure.ac): Likewise.
51429
51430 2007-04-03  Ben Pfaff  <blp@gnu.org>
51431
51432         * modules/iconv_open: Add $(srcdir)/ to source directory
51433         references in Makefile fragments that call gperf, to fix VPATH
51434         builds.
51435
51436 2007-04-03  Bruno Haible  <bruno@clisp.org>
51437
51438         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51439         * lib/ldexpl.c: Undo last change.
51440
51441 2007-04-03  Bruno Haible  <bruno@clisp.org>
51442
51443         * modules/printf-frexpl (Depends-on): Undo last change.
51444         (Files): Add m4/ldexpl.m4.
51445
51446 2007-04-03  Bruno Haible  <bruno@clisp.org>
51447
51448         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51449         * modules/isnanl (Link): New section.
51450
51451         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51452         * modules/frexp (Link): New section.
51453
51454         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51455         * modules/frexpl (Link): New section.
51456
51457         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51458         * modules/ldexpl (Link): New section.
51459
51460 2007-04-03  Bruno Haible  <bruno@clisp.org>
51461
51462         * modules/TEMPLATE-EXTENDED: New file.
51463         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51464
51465 2007-04-03  Bruno Haible  <bruno@clisp.org>
51466
51467         * DEPENDENCIES: New file.
51468         Suggested by Simon Josefsson.
51469
51470 2007-04-03  Bruno Haible  <bruno@clisp.org>
51471
51472         * doc/gnulib.texi: Escape @.
51473
51474 2007-04-03  James Youngman  <jay@gnu.org>
51475         and Paul Eggert  <eggert@cs.ucla.edu>
51476
51477         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51478         birthtime on all systems that have birthtime, not just those which
51479         use st_birthtimensec rather than st_birthtim.  Putting zero in
51480         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51481         that the birth time is not available for files on an NFS mount.
51482
51483 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51484
51485         * modules/memxor: Move back from crypto/, suggested by Bruno.
51486         * modules/crypto/hmac-sha1: Fix memxor dependency.
51487
51488         * modules/crypto/gc: Moved from ../.
51489
51490 2007-04-02  Eric Blake  <ebb9@byu.net>
51491
51492         * lib/ldexpl.c (includes): Avoid libm.
51493
51494         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51495
51496 2007-04-02  Bruno Haible  <bruno@clisp.org>
51497
51498         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51499         on IRIX.
51500
51501 2007-04-02  Bruno Haible  <bruno@clisp.org>
51502
51503         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51504         x86 or x86_64 platforms running MacOS X.
51505         Reported by Ryan Schmidt <@ryandesign.com>.
51506
51507 2007-04-02  Bruno Haible  <bruno@clisp.org>
51508
51509         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51510         i386.
51511
51512 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51513
51514         * modules/crypto/arcfour: Moved from ../.
51515         * modules/crypto/arcfour-tests: Moved from ../.
51516         * modules/crypto/arctwo: Moved from ../.
51517         * modules/crypto/arctwo-tests: Moved from ../.
51518         * modules/crypto/des: Moved from ../.
51519         * modules/crypto/des-tests: Moved from ../.
51520         * modules/crypto/gc-arcfour: Moved from ../.
51521         * modules/crypto/gc-arcfour-tests: Moved from ../.
51522         * modules/crypto/gc-arctwo: Moved from ../.
51523         * modules/crypto/gc-arctwo-tests: Moved from ../.
51524         * modules/crypto/gc-des: Moved from ../.
51525         * modules/crypto/gc-des-tests: Moved from ../.
51526         * modules/crypto/gc-hmac-md5: Moved from ../.
51527         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
51528         * modules/crypto/gc-hmac-sha1: Moved from ../.
51529         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
51530         * modules/crypto/gc-md2: Moved from ../.
51531         * modules/crypto/gc-md2-tests: Moved from ../.
51532         * modules/crypto/gc-md4: Moved from ../.
51533         * modules/crypto/gc-md4-tests: Moved from ../.
51534         * modules/crypto/gc-md5: Moved from ../.
51535         * modules/crypto/gc-md5-tests: Moved from ../.
51536         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
51537         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
51538         * modules/crypto/gc-random: Moved from ../.
51539         * modules/crypto/gc-rijndael: Moved from ../.
51540         * modules/crypto/gc-rijndael-tests: Moved from ../.
51541         * modules/crypto/gc-sha1: Moved from ../.
51542         * modules/crypto/gc-sha1-tests: Moved from ../.
51543         * modules/crypto/gc-tests: Moved from ../.
51544         * modules/crypto/hmac-md5: Moved from ../.
51545         * modules/crypto/hmac-md5-tests: Moved from ../.
51546         * modules/crypto/hmac-sha1: Moved from ../.
51547         * modules/crypto/hmac-sha1-tests: Moved from ../.
51548         * modules/crypto/md2: Moved from ../.
51549         * modules/crypto/md2-tests: Moved from ../.
51550         * modules/crypto/md4: Moved from ../.
51551         * modules/crypto/md4-tests: Moved from ../.
51552         * modules/crypto/md5: Moved from ../.
51553         * modules/crypto/md5-tests: Moved from ../.
51554         * modules/crypto/memxor: Moved from ../.
51555         * modules/crypto/rijndael: Moved from ../.
51556         * modules/crypto/rijndael-tests: Moved from ../.
51557         * modules/crypto/sha1: Moved from ../.
51558
51559 2007-03-30  James Youngman  <jay@gnu.org>
51560
51561         * tests/test-stat-time.c (prepare_test): use chmod() rather than
51562         rename() to change the ctime of a file (because ctime is unaffected
51563         by rename on jfs2 on AIX 5.1).
51564         (main): Start by doing cleanup, in case a previous run failed leaving
51565         test files behind.
51566
51567 2007-03-31  Bruno Haible  <bruno@clisp.org>
51568
51569         Support old proprietary implementations of iconv.
51570         * modules/iconv_open: New file.
51571         * lib/iconv_.h: New file.
51572         * m4/iconv_h.m4: New file.
51573         * lib/iconv_open.c: New file.
51574         * lib/iconv_open-aix.gperf: New file.
51575         * lib/iconv_open-hpux.gperf: New file.
51576         * lib/iconv_open-irix.gperf: New file.
51577         * lib/iconv_open-osf.gperf: New file.
51578         * m4/iconv_open.m4: New file.
51579         * modules/linebreak (Depends-on): Add iconv_open.
51580         * modules/striconv (Depends-on): Likewise.
51581         * modules/striconveh (Depends-on): Likewise.
51582         * modules/unicodeio (Depends-on): Likewise.
51583         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
51584         (iconv_t)(-1).
51585         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
51586         conversion if cd is (iconv_t)(-1).
51587         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
51588         is not possible.
51589
51590 2007-03-31  Bruno Haible  <bruno@clisp.org>
51591
51592         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51593         work on Solaris either. Protect also second use of "autodetect_jp".
51594
51595 2007-03-31  Bruno Haible  <bruno@clisp.org>
51596
51597         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
51598         the function is not present.
51599
51600 2007-03-31  Bruno Haible  <bruno@clisp.org>
51601
51602         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
51603         the function is not present.
51604
51605 2007-03-31  Bruno Haible  <bruno@clisp.org>
51606
51607         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
51608         a bug in HP-UX iconv_open().
51609
51610 2007-03-31  Bruno Haible  <bruno@clisp.org>
51611
51612         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
51613         (Mathematics <math.h>): New section, add fpieee.
51614         (Input/output <stdio.h>): Add fseterr.
51615         (Mathematics <math.h>): New section, add printf-frexp.
51616         (Container data structures): Add sublist.
51617         (Core language properties): Add fpucw, inline.
51618         (Functions for greatest-width integer types <inttypes.h>): Add
51619         imaxabs, imaxdiv, inttypes.
51620         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
51621         isnanl-nolibm, ldexp.
51622         (Mathematics <math.h>): New section, add printf-frexpl.
51623         (Support for systems lacking POSIX:2001): Add fprintf-posix,
51624         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
51625         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
51626         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
51627         (Unicode string functions): Add unistr/u*-mbtoucr.
51628         (Java): Add javacomp-script, javaexec-script.
51629         (C#): Add csharpcomp-script, csharpexec-script.
51630         (Support for building libraries and executables): Add havelib,
51631         relocatable-*.
51632         (Support for maintaining and releasing projects): Renamed from
51633         'Support for maintaining and release projects'. Add announce-gen.
51634
51635 2007-03-31  Bruno Haible  <bruno@clisp.org>
51636
51637         * README: Talk primarily about git.
51638         (git and CVS): Renamed from CVS.
51639         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
51640         gnulib is available through git.
51641         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
51642
51643 2007-03-30  Bruno Haible  <bruno@clisp.org>
51644
51645         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
51646         * lib/poll_.h: Likewise.
51647         * lib/stat_.h: Likewise.
51648         * lib/sys_time_.h: Likewise.
51649         * lib/sysexit_.h: Likewise.
51650         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
51651         * lib/stdbool_.h: Likewise.
51652         * lib/byteswap_.h: Add double-inclusion guard.
51653
51654 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
51655
51656         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
51657
51658 2007-03-30  Karl Berry  <karl@gnu.org>
51659
51660         * config/srclist-update: double space after USA in the license
51661         substitution, since that's how it's usually (?) written.
51662
51663 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51664
51665         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
51666         reported by Bruno Haible.
51667
51668 2007-03-29  Bruno Haible  <bruno@clisp.org>
51669
51670         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
51671         a bug in AIX iconv().
51672
51673 2007-03-29  Bruno Haible  <bruno@clisp.org>
51674
51675         * modules/ldexpl-tests: New file.
51676         * tests/test-ldexpl.c: New file.
51677
51678 2007-03-29  Bruno Haible  <bruno@clisp.org>
51679
51680         * lib/ldexpl.c: Include fpucw.h.
51681         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
51682         multiplication.
51683         * modules/ldexpl (Depends-on): Add fpucw.
51684
51685 2007-03-29  Bruno Haible  <bruno@clisp.org>
51686
51687         * modules/ldexpl: New file.
51688         * m4/ldexpl.m4: New file.
51689         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51690         set.
51691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51692         REPLACE_LDEXPL.
51693         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51694         REPLACE_LDEXPL.
51695         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51696         gl_FUNC_LDEXPL_WORKS.
51697         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51698         * modules/mathl (Files): Remove lib/ldexpl.c.
51699         (Depends-on): Add ldexpl.
51700
51701 2007-03-29  Bruno Haible  <bruno@clisp.org>
51702
51703         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51704
51705 2007-03-29  Bruno Haible  <bruno@clisp.org>
51706
51707         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51708         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51709         and possibly also HP-UX.
51710         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51711         work on AIX, IRIX, HP-UX, OSF/1.
51712         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51713         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51714         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51715         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51716         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51717         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51718
51719 2007-03-29  Bruno Haible  <bruno@clisp.org>
51720
51721         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51722
51723 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51724
51725         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51726         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51727
51728 2007-03-29  Eric Blake  <ebb9@byu.net>
51729
51730         * lib/acl-internal.h: Remove redundant include.
51731         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51732         Cygwin when a file is locked.
51733
51734 2007-03-29  Bruno Haible  <bruno@clisp.org>
51735
51736         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51737         file.
51738         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51739
51740 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51741
51742         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51743         try to remove a parent directory if the child couldn't be removed
51744         (except for the first rmdir, which could fail because the child
51745         doesn't exist).  Problem reported by Jeff Blaine in
51746         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51747
51748 2007-03-28  Bruno Haible  <bruno@clisp.org>
51749
51750         * lib/striconveh.c (utf8conv_carefully): New function.
51751         (mem_cd_iconveh_internal): Invoke it.
51752
51753 2007-03-28  Bruno Haible  <bruno@clisp.org>
51754
51755         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51756         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51757         input.
51758         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51759         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51760         unistr/u8-uctomb.
51761
51762 2007-03-28  Bruno Haible  <bruno@clisp.org>
51763
51764         * modules/unistr/u8-mbtoucr: New file.
51765         * lib/unistr/u8-mbtoucr.c: New file.
51766         * modules/unistr/u16-mbtoucr: New file.
51767         * lib/unistr/u16-mbtoucr.c: New file.
51768         * modules/unistr/u16-mbtoucr: New file.
51769         * lib/unistr/u16-mbtoucr.c: New file.
51770         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51771
51772 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51773             Bruno Haible  <bruno@clisp.org>
51774
51775         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51776         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51777         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51778
51779         * m4/stdio_h.m4: Add stubs for vasprintf too.
51780
51781         * modules/stdio: Support vasprintf in sed command.
51782
51783         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51784         vasprintf.h.  Add stdio module indicator.
51785
51786         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51787         vasprintf.h.
51788
51789         * lib/vasprintf.h: File removed.
51790
51791         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51792         * lib/vasprintf.c: Ditto.
51793         * lib/xvasprintf.c: Ditto.
51794         * tests/test-vasprintf-posix.c: Ditto.
51795         * tests/test-vasprintf.c: Ditto.
51796
51797 2007-03-27  Bruno Haible  <bruno@clisp.org>
51798
51799         Make vasnprintf multithread-safe.
51800         * lib/vasnprintf.c (decimal_point_char): New function.
51801         (VASNPRINTF): Use it.
51802         Suggested by Simon Josefsson.
51803
51804 2007-03-27  Eric Blake  <ebb9@byu.net>
51805
51806         Support sub-second birthtime on cygwin.
51807         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
51808         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
51809         (get_stat_birthtime): Also work with st_birthtim.
51810
51811 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
51812
51813         * lib/stat-time.h (USE_BIRTHTIME): Remove.
51814         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
51815         (get_stat_birthtime_ns): Do not try to use "spare" fields.
51816         (get_stat_birthtime_ns): Simplify compile-time tests.
51817         (get_stat_birthtime): Change the API to look like
51818         get_stat_mtime etc., except return a negative tv_nsec on error.
51819         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
51820         Don't check for "spare" fields.
51821         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
51822         or for struct stat.st_birthtime, as these tests aren't used.
51823         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
51824
51825 2007-03-27  Bruno Haible  <bruno@clisp.org>
51826
51827         * lib/stat-time.h: Include <sys/stat.h>.
51828
51829 2007-03-27  James Youngman  <jay@gnu.org>
51830
51831         * lib/stat-time.h (get_stat_birthtime): New function for
51832           retrieving st_birthtime as provided by UFS2 (hence *BSD).
51833         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
51834           and its variants.
51835         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
51836         * modules/stat-time-test: New file.
51837         * tests/test-stat-time.c: New test, devised by Bruno Haible.
51838
51839 2007-03-26  Bruno Haible  <bruno@clisp.org>
51840
51841         Better support of signalling NaNs.
51842         * lib/atanl.c: Include isnanl.h.
51843         (atanl): Perform test for NaN at the beginning of the function and
51844         through a call to isnanl.
51845         * lib/cosl.c: Include isnanl.h.
51846         (cosl): Perform test for NaN at the beginning of the function and
51847         through a call to isnanl.
51848         * lib/ldexpl.c: Include isnanl.h.
51849         (ldexpl): Perform test for NaN through a call to isnanl.
51850         * lib/logl.c: Include isnanl.h.
51851         (logl): Perform test for NaN at the beginning of the function and
51852         through a call to isnanl.
51853         * lib/sinl.c: Include isnanl.h.
51854         (sinl): Perform test for NaN at the beginning of the function and
51855         through a call to isnanl.
51856         * lib/sqrtl.c: Include isnanl.h.
51857         (sqrtl): Perform test for NaN at the beginning of the function and
51858         through a call to isnanl.
51859         * lib/tanl.c: Include isnanl.h.
51860         (tanl): Perform test for NaN at the beginning of the function and
51861         through a call to isnanl.
51862         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
51863         * modules/mathl (Depends-on): Add isnanl.
51864
51865 2007-03-26  Eric Blake  <ebb9@byu.net>
51866
51867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
51868         regression in logic sense of previous patch.
51869
51870 2007-03-26  Bruno Haible  <bruno@clisp.org>
51871
51872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
51873         unportable shell command "if ! ...".
51874         Reported by Ralf Wildenhues.
51875
51876 2007-03-25  Bruno Haible  <bruno@clisp.org>
51877
51878         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
51879         <sysexits.h> file, and only add EX_CONFIG.
51880         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
51881         absolute file name and whether it is sufficient. Substitute also
51882         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
51883         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
51884         ABSOLUTE_SYSEXITS_H into sysexits.h.
51885
51886 2007-03-25  Bruno Haible  <bruno@clisp.org>
51887
51888         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
51889         hints is NULL.
51890
51891 2007-03-25  Bruno Haible  <bruno@clisp.org>
51892
51893         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
51894         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
51895
51896 2007-03-25  Bruno Haible  <bruno@clisp.org>
51897
51898         * lib/vasnprintf.c: Include langinfo.h.
51899         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
51900         multithread-safe.
51901         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
51902         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
51903         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51904         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51905         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51906         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51907         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51908         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
51909         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51910         Reported by Simon Josefsson.
51911
51912 2007-03-25  Bruno Haible  <bruno@clisp.org>
51913
51914         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
51915         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
51916         * modules/vasnprintf (Depends-on): Add stdint.
51917
51918 2007-03-25  Bruno Haible  <bruno@clisp.org>
51919
51920         * modules/fpieee: New file.
51921         * m4/fpieee.m4: New file.
51922         * modules/isnan-nolibm (Depends-on): Add fpieee.
51923         * modules/isnanl-nolibm (Depends-on): Add fpieee.
51924         * modules/isnanl (Depends-on): Add fpieee.
51925
51926 2007-03-25  Bruno Haible  <bruno@clisp.org>
51927
51928         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
51929
51930 2007-03-25  Bruno Haible  <bruno@clisp.org>
51931
51932         Avoid test failures on IRIX 6.5.
51933         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
51934         (main): Use it.
51935         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
51936         macros.
51937         (main): Use them.
51938
51939 2007-03-25  Bruno Haible  <bruno@clisp.org>
51940
51941         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
51942         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
51943         exists but doesn't work.
51944         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
51945         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
51946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
51947         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
51948         math.h.
51949
51950 2007-03-25  Bruno Haible  <bruno@clisp.org>
51951
51952         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
51953         returns inf. Needed on IRIX 6.5.
51954
51955 2007-03-25  Bruno Haible  <bruno@clisp.org>
51956
51957         * tests/test-frexpl.c: Include isnanl-nolibm.h.
51958         (main): Use isnanl instead of x != x idiom.
51959         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
51960
51961         * tests/test-frexp.c: Include isnan.h.
51962         (main): Use isnan instead of x != x idiom.
51963         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
51964
51965 2007-03-25  Bruno Haible  <bruno@clisp.org>
51966
51967         * tests/test-frexp.c (NaN): New function/macro.
51968         (main): Use it instead of 0.0 / 0.0.
51969         * tests/test-isnan.c (NaN): New function/macro.
51970         (main): Use it instead of 0.0 / 0.0.
51971         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
51972         (test_function): Use it instead of 0.0 / 0.0.
51973         * tests/test-vasprintf-posix.c (NaN): New function/macro.
51974         (test_function): Use it instead of 0.0 / 0.0.
51975         * tests/test-snprintf-posix.h (NaN): New function/macro.
51976         (test_function): Use it instead of 0.0 / 0.0.
51977         * tests/test-sprintf-posix.h (NaN): New function/macro.
51978         (test_function): Use it instead of 0.0 / 0.0.
51979         * tests/test-fprintf-posix.h (NaN): New function/macro.
51980         (test_function): Use it instead of 0.0 / 0.0.
51981         * tests/test-printf-posix.h (NaN): New function/macro.
51982         (test_function): Use it instead of 0.0 / 0.0.
51983
51984         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
51985
51986 2007-03-25  Bruno Haible  <bruno@clisp.org>
51987
51988         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
51989
51990 2007-03-25  Bruno Haible  <bruno@clisp.org>
51991
51992         * lib/regexec.c (merge_state_with_log): Make static.
51993
51994 2007-03-25  Bruno Haible  <bruno@clisp.org>
51995
51996         * lib/trigl.c (kernel_rem_pio2): Make static.
51997
51998 2007-03-25  Bruno Haible  <bruno@clisp.org>
51999
52000         * lib/sincosl.c (sincosl_table): Make static.
52001
52002 2007-03-25  Bruno Haible  <bruno@clisp.org>
52003
52004         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52005         if the compiler does not support C99.
52006
52007 2007-03-25  Bruno Haible  <bruno@clisp.org>
52008
52009         * modules/time (Makefile.am): Ensure all rule action lines start with a
52010         tab.
52011
52012 2007-03-24  Bruno Haible  <bruno@clisp.org>
52013
52014         * modules/tsearch-tests: New file.
52015         * tests/test-tsearch.sh: New file.
52016         * tests/test-tsearch.c: New file, mostly copied from glibc.
52017
52018         * modules/search-tests: New file.
52019         * tests/test-search.c: New file.
52020
52021         * modules/search: New file.
52022         * lib/search_.h: New file, incorporating lib/tsearch.h.
52023         * m4/search_h.m4: New file.
52024         * lib/tsearch.h: Remove file.
52025         * lib/tsearch.c: Include search.h instead of tsearch.h.
52026         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52027         HAVE_TSEARCH.
52028         * modules/tsearch (Files): Remove lib/tsearch.h.
52029         (Depends-on): Add search.
52030         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52031         (Include): Change tsearch.h into search.h.
52032
52033 2007-03-24  Bruno Haible  <bruno@clisp.org>
52034
52035         * modules/fpucw: New file.
52036         * lib/fpucw.h: New file.
52037         * lib/frexp.c: Include fpucw.h.
52038         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52039         (FUNC): Use them.
52040         * lib/printf-frexp.c: Include fpucw.h.
52041         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52042         (FUNC): Use them.
52043         * lib/vasnprintf.c: Include fpucw.h.
52044         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52045         'long double' calculations.
52046         * tests/test-frexpl.c: Include fpucw.h.
52047         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52048         * tests/test-printf-frexpl.c: Include fpucw.h.
52049         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52050         * modules/frexpl (Depends-on): Add fpucw.
52051         * modules/printf-frexpl (Depends-on): Likewise.
52052         * modules/fprintf-posix (Depends-on): Likewise.
52053         * modules/snprintf-posix (Depends-on): Likewise.
52054         * modules/sprintf-posix (Depends-on): Likewise.
52055         * modules/vasnprintf-posix (Depends-on): Likewise.
52056         * modules/vasprintf-posix (Depends-on): Likewise.
52057         * modules/vfprintf-posix (Depends-on): Likewise.
52058         * modules/vsnprintf-posix (Depends-on): Likewise.
52059         * modules/vsprintf-posix (Depends-on): Likewise.
52060         * modules/frexpl-tests (Depends-on): Likewise.
52061         * modules/printf-frexpl-tests (Depends-on): Likewise.
52062
52063 2007-03-24  Bruno Haible  <bruno@clisp.org>
52064
52065         * lib/float+.h: New file.
52066         * lib/isnan.c: Include float+.h.
52067         (SIZE): New macro.
52068         (FUNC): Compare only SIZE bytes of the value.
52069         * lib/vasnprintf.c: Include float+.h.
52070         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52071         SIZEOF_LDBL or SIZEOF_DBL bytes.
52072         * modules/isnan-nolibm (Files): Add lib/float+.h.
52073         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52074         * modules/isnanl (Files): Add lib/float+.h.
52075         * modules/vasnprintf (Files): Add lib/float+.h.
52076
52077 2007-03-24  Bruno Haible  <bruno@clisp.org>
52078
52079         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52080         include isnanl-nolibm.h.
52081
52082 2007-03-24  Bruno Haible  <bruno@clisp.org>
52083
52084         * tests/test-read-file.c (main): Don't produce spurious output for
52085         expected situations. Make the test fail if it encountered unexpected
52086         results.
52087
52088 2007-03-24  Bruno Haible  <bruno@clisp.org>
52089
52090         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52091         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52092
52093 2007-03-24  Bruno Haible  <bruno@clisp.org>
52094
52095         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52096
52097 2007-03-24  Bruno Haible  <bruno@clisp.org>
52098
52099         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52100         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52101
52102         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52103         * modules/utf8-ucs4: Turn into a symbolic link to module
52104         unistr/u8-mbtouc.
52105
52106         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52107         utf8-ucs4-unsafe.
52108         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52109         unistr/u8-mbtouc-unsafe.
52110
52111         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52112         * modules/utf16-ucs4: Turn into a symbolic link to module
52113         unistr/u16-mbtouc.
52114
52115         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52116         utf16-ucs4-unsafe.
52117         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52118         unistr/u16-mbtouc-unsafe.
52119
52120         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52121         * modules/ucs4-utf8: Turn into a symbolic link to module
52122         unistr/u8-ubtomb.
52123
52124         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52125         * modules/ucs4-utf16: Turn into a symbolic link to module
52126         unistr/u16-ubtomb.
52127
52128 2007-03-24  Bruno Haible  <bruno@clisp.org>
52129
52130         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52131         Enable the function only if HAVE_INLINE.
52132         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52133         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52134         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52135         Enable the function only if HAVE_INLINE.
52136         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52137         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52138         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52139         Enable the function only if HAVE_INLINE.
52140         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52141         Enable the function only if HAVE_INLINE.
52142         * modules/utf8-ucs4: Update.
52143         * modules/utf8-ucs4-unsafe: Update.
52144         * modules/utf16-ucs4: Update.
52145         * modules/utf16-ucs4-unsafe: Update.
52146         * modules/ucs4-utf8: Update.
52147         * modules/ucs4-utf16: Update.
52148
52149 2007-03-24  Bruno Haible  <bruno@clisp.org>
52150
52151         * lib/utf8-ucs4.h: Remove file.
52152         * lib/utf8-ucs4-unsafe.h: Remove file.
52153         * lib/utf16-ucs4.h: Remove file.
52154         * lib/utf16-ucs4-unsafe.h: Remove file.
52155         * lib/ucs4-utf8.h: Remove file.
52156         * lib/ucs4-utf16.h: Remove file.
52157         * lib/unistr.h: Include their previous contents.
52158         * m4/utf-ucs4.m4: Remove file.
52159         * m4/ucs4-utf.m4: Remove file.
52160         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52161         (Depends-on): Add unistr/base.
52162         (configure.ac): Remove gl_UTF_UCS4.
52163         (Makefile.am): Update.
52164         (Include): Change to unistr.h.
52165         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52166         (Depends-on): Add unistr/base.
52167         (configure.ac): Remove gl_UTF_UCS4.
52168         (Makefile.am): Update.
52169         (Include): Change to unistr.h.
52170         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52171         (Depends-on): Add unistr/base.
52172         (configure.ac): Remove gl_UTF_UCS4.
52173         (Makefile.am): Update.
52174         (Include): Change to unistr.h.
52175         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52176         (Depends-on): Add unistr/base.
52177         (configure.ac): Remove gl_UTF_UCS4.
52178         (Makefile.am): Update.
52179         (Include): Change to unistr.h.
52180         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52181         (Depends-on): Add unistr/base.
52182         (configure.ac): Remove gl_UCS4_UTF.
52183         (Makefile.am): Update.
52184         (Include): Change to unistr.h.
52185         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52186         (Depends-on): Add unistr/base.
52187         (configure.ac): Remove gl_UCS4_UTF.
52188         (Makefile.am): Update.
52189         (Include): Change to unistr.h.
52190         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52191         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52192         utf8-ucs4-unsafe.h.
52193         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52194         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52195         utf16-ucs4-unsafe.h.
52196         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52197         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52198         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52199         * lib/unistr/u8-strchr.c: Likewise.
52200         * lib/unistr/u8-strrchr.c: Likewise.
52201         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52202         * lib/unistr/u16-strchr.c: Likewise.
52203         * lib/unistr/u16-strrchr.c: Likewise.
52204         * lib/striconveh.c: Update.
52205         * lib/linebreak.c: Update.
52206
52207 2007-03-24  Bruno Haible  <bruno@clisp.org>
52208
52209         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52210         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52211
52212 2007-03-22  Bruno Haible  <bruno@clisp.org>
52213
52214         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52215
52216 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52217
52218         * MODULES.html.sh (File system functions): New module write-any-file.
52219         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52220         * m4/write-any-file.m4: New files.
52221
52222 2007-03-23  Eric Blake  <ebb9@byu.net>
52223
52224         * gnulib-tool: Rearrange space-tab sequences, since some editors
52225         like to eat them.
52226
52227 2007-03-23  Eric Blake  <ebb9@byu.net>
52228
52229         * lib/version-etc.c (version_etc_va): Update license wording to
52230         be more concise.  Recommended by Richard Stallman.
52231
52232 2007-03-22  Bruno Haible  <bruno@clisp.org>
52233
52234         * lib/poll.c (MSG_PEEK): New fallback definition.
52235
52236 2007-03-22  Bruno Haible  <bruno@clisp.org>
52237
52238         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52239         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52240         (main): Update.
52241         Fixes a compilation error on BeOS.
52242
52243 2007-03-22  Bruno Haible  <bruno@clisp.org>
52244
52245         * modules/frexpl-tests: New file.
52246         * tests/test-frexpl.c: New file.
52247
52248         * modules/frexpl: New file.
52249         * m4/frexpl.m4: New file.
52250         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52251         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52253         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52254         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52255         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52256
52257 2007-03-22  Bruno Haible  <bruno@clisp.org>
52258
52259         * lib/frexpl.c: Share code with lib/frexp.c.
52260         * modules/mathl (Files): Add lib/frexp.c.
52261         (Depends-on): Add isnanl-nolibm.
52262
52263 2007-03-22  Bruno Haible  <bruno@clisp.org>
52264
52265         * modules/printf-frexp (Files): Add m4/frexp.m4.
52266         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52267         only if the found frexp function actually works.
52268
52269 2007-03-22  Bruno Haible  <bruno@clisp.org>
52270
52271         * lib/frexp.c: Remove older implementation that uses divisions.
52272
52273 2007-03-21  Bruno Haible  <bruno@clisp.org>
52274
52275         * modules/frexp-tests: New file.
52276         * tests/test-frexp.c: New file.
52277
52278         * modules/frexp: New file.
52279         * lib/frexp.c: New file.
52280         * m4/frexp.m4: New file.
52281         * lib/math_.h (frexp): New declaration.
52282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52283         REPLACE_FREXP.
52284         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52285
52286 2007-03-21  Bruno Haible  <bruno@clisp.org>
52287
52288         * modules/isnanl-tests: New file.
52289         * tests/test-isnanl.c: New file.
52290
52291         * modules/isnanl: New file.
52292         * lib/isnanl.h: New file.
52293         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52294         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52295         gl_FUNC_ISNANL_WORKS.
52296         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52297         New macros.
52298
52299 2007-03-21  Bruno Haible  <bruno@clisp.org>
52300
52301         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52302         lib/isnanl.h.
52303         (Include): Update.
52304         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52305         * lib/vasnprintf.c: Update.
52306         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52307         tests/test-isnanl.h, remove tests/test-isnanl.c.
52308         (Makefile.am): Update.
52309         * tests/test-isnanl-nolibm.c: New file.
52310         * tests/test-isnanl.h: New file.
52311         * tests/test-isnanl.c: Remove file.
52312
52313 2007-03-21  Jim Meyering  <jim@meyering.net>
52314
52315         When trying to open ".", treat ESTALE like EACCES.
52316         * lib/savewd.c (savewd_save): Resort to forking not just upon
52317         failure with EACCES, but also when errno is ESTALE.
52318
52319 2007-03-20  Bruno Haible  <bruno@clisp.org>
52320
52321         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52322         Needed on AIX 5.1. Reported by Matthew Woehlke.
52323
52324 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52325
52326         Suggestions by Bruno Haible:
52327         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52328         our own.
52329         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52330         * modules/acl (Depends-on): Add gettext.
52331
52332 2007-03-19  Bruno Haible  <bruno@clisp.org>
52333
52334         * modules/iconvme: Remove file.
52335         * lib/iconvme.h: Remove file.
52336         * lib/iconvme.c: Remove file.
52337         * m4/iconvme.m4: Remove file.
52338
52339 2007-03-19  Bruno Haible  <bruno@clisp.org>
52340
52341         * doc/relocatable-maint.texi: Break long shell script line.
52342         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52343
52344 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52345
52346         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52347         handle file_has_acl.
52348         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52349         * lib/acl.c: Move header inclusions and related macro defns into
52350         lib/acl-internal.h.
52351         (S_ISLNK): Remove defn, since that's now done for us.
52352         (file_has_acl): Move to lib/file-has-acl.c.
52353         Call acl_trivial if available.  This is the crucial part of the fix.
52354         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52355         shared within the library.  Rewrite a bit, partly to make it compatible
52356         with the GNU coding style.
52357         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52358         Remove unnecessary double-quotes.
52359         Don't test for acl_to_text; the build will catch that.
52360         Replace acl_entries if it doesn't exist and it is needed.
52361         Check for -lsec and acl_trivial (as used on Solaris 10).
52362         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52363         lib/file-has-acl.c.
52364         (Depends-on): Add sys_stat, for S_ISLNK.
52365
52366 2007-03-19  Ben Pfaff  <blp@gnu.org>
52367
52368         * doc/gnulib.texi: Fix typos.
52369         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52370
52371 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52372
52373         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52374         If size is zero here, buf must be zero.
52375
52376 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52377
52378         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52379         <bruno@clisp.org>.
52380
52381 2007-03-18  Bruno Haible  <bruno@clisp.org>
52382
52383         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52384         Suggested by Eric Blake.
52385
52386 2007-03-18  Ben Pfaff  <blp@gnu.org>
52387
52388         * doc/relocatable.texi: Recommend using as prefix a directory
52389         that does not exist and will never be created.  Based on
52390         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52391         and others.
52392
52393 2007-03-17  Bruno Haible  <bruno@clisp.org>
52394
52395         * lib/fchownat.c: Include lchown.h.
52396
52397 2007-03-17  Bruno Haible  <bruno@clisp.org>
52398
52399         Fix endless loop when the given allocated size was > INT_MAX.
52400         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52401         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52402         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52403         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52404         * lib/sprintf.c (sprintf): Likewise.
52405
52406 2007-03-17  Bruno Haible  <bruno@clisp.org>
52407
52408         * tests/test-argp-2.sh (func_compare): Output a context diff.
52409
52410 2007-03-17  Bruno Haible  <bruno@clisp.org>
52411
52412         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52413         locale's decimal-point character.
52414
52415 2007-03-17  Bruno Haible  <bruno@clisp.org>
52416
52417         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52418         before comparing it. Needed because on some platforms (e.g. x86) a
52419         'long double' occupies less bytes than sizeof (long double).
52420
52421 2007-03-17  Bruno Haible  <bruno@clisp.org>
52422
52423         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52424         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52425         * tests/test-getaddrinfo.c (simple): Likewise.
52426         * tests/test-read-file.c (main): Likewise.
52427
52428 2007-03-17  Bruno Haible  <bruno@clisp.org>
52429
52430         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52431
52432 2007-03-17  Bruno Haible  <bruno@clisp.org>
52433
52434         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52435         unused variable.
52436
52437 2007-03-17  Bruno Haible  <bruno@clisp.org>
52438
52439         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52440         * tests/test-c-strncasecmp.c: Likewise.
52441
52442 2007-03-17  Bruno Haible  <bruno@clisp.org>
52443
52444         * modules/stdlib (Depends-on): Add unistd.
52445         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52446         Needed for MacOS X 10.3.
52447
52448 2007-03-17  Bruno Haible  <bruno@clisp.org>
52449
52450         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52451
52452 2007-03-17  Bruno Haible  <bruno@clisp.org>
52453
52454         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52455
52456 2007-03-17  Bruno Haible  <bruno@clisp.org>
52457
52458         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52459         to reflect files copied from gnulib (with or without modifications).
52460         Suggested by Jim Meyering.
52461
52462 2007-03-17  Eric Blake  <ebb9@byu.net>
52463
52464         * NEWS: Document stdlib change from 2007-02-18.
52465
52466 2007-03-17  Jim Meyering  <jim@meyering.net>
52467
52468         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52469         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52470         someone uses a name containing shell meta-characters.
52471         Reported by Alfred M. Szmidt.
52472
52473         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52474
52475 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52476
52477         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52478         and copy gettext configuration files only if configure.ac contains
52479         a use of AM_GNU_GETTEXT_VERSION.
52480
52481 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52482
52483         * build-aux/bootstrap (gnulib_name): New variable.
52484         (gnulib_tool_options): Use it.
52485
52486 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52487
52488         * tests/test-des.c: Use new namespace.
52489
52490 2007-03-15  Bruno Haible  <bruno@clisp.org>
52491
52492         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52493         Reported by James Youngman <jay@gnu.org>.
52494
52495 2007-03-15  Bruno Haible  <bruno@clisp.org>
52496
52497         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52498         declared prototype. Needed with cc on OSF/1 5.1.
52499
52500 2007-03-15  Bruno Haible  <bruno@clisp.org>
52501
52502         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52503         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52504         (struct gl_list_implementation): Add dispose_fn argument to the
52505         'create_empty', 'create' methods.
52506         (struct gl_list_impl_base): Add field 'dispose_fn'.
52507         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52508         argument.
52509         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52510         dispose_fn argument.
52511         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52512         dispose_fn on the dropped values.
52513         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52514         dispose_fn argument.
52515         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52516         dropped values.
52517         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52518         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52519         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
52520         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52521         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
52522         argument.
52523         (gl_tree_list_free): Call dispose_fn on the dropped values.
52524         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
52525         the dropped values.
52526         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52527         Add dispose_fn argument.
52528         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
52529         Call dispose_fn on the dropped values.
52530         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
52531         Add dispose_fn argument.
52532         (gl_sublist_create): Initialize the 'dispose_fn' field.
52533         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
52534         * tests/test-array_list.c (main): Update.
52535         * tests/test-carray_list.c (main): Update.
52536         * tests/test-avltree_list.c (main): Update.
52537         * tests/test-rbtree_list.c (main): Update.
52538         * tests/test-avltreehash_list.c (main): Update.
52539         * tests/test-rbtreehash_list.c (main): Update.
52540         * tests/test-linked_list.c (main): Update.
52541         * tests/test-linkedhash_list.c (main): Update.
52542         * tests/test-array_oset.c (main): Update.
52543
52544 2007-03-15  Bruno Haible  <bruno@clisp.org>
52545
52546         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
52547         (gl_oset_create_empty): Add dispose_fn argument.
52548         (struct gl_oset_implementation): Add dispose_fn argument to
52549         'create_empty' method.
52550         (struct gl_oset_impl_base): Add dispose_fn field.
52551         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
52552         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
52553         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
52554         values.
52555         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
52556         (gl_tree_oset_free): Call dispose_fn on the dropped values.
52557         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52558         dropped value.
52559         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52560         dropped value.
52561         * tests/test-array_oset.c (main): Update.
52562         * tests/test-avltree_oset.c (main): Update.
52563         * tests/test-rbtree_oset.c (main): Update.
52564         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
52565
52566 2007-03-13  Bruno Haible  <bruno@clisp.org>
52567
52568         * tests/test-stdbool.c (i): Update after last patch.
52569
52570 2007-03-12  Bruno Haible  <bruno@clisp.org>
52571
52572         * lib/quotearg.c: Include <wctype.h> early, before the definition of
52573         the iswprint macro. Needed on Solaris 2.5.1.
52574
52575 2007-03-12  Bruno Haible  <bruno@clisp.org>
52576
52577         * tests/test-printf-frexp.c (main): Declare x as volatile.
52578
52579 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52580
52581         * doc/gnulib.texi (Build robot for gnulib): New section.
52582
52583 2007-03-12  Jim Meyering  <jim@meyering.net>
52584
52585         * build-aux/bootstrap: New file.
52586         * build-aux/bootstrap.conf: New file, from coreutils.
52587
52588 2007-03-11  Bruno Haible  <bruno@clisp.org>
52589
52590         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
52591
52592 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52593
52594         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
52595         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
52596         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
52597
52598 2007-03-11  Bruno Haible  <bruno@clisp.org>
52599
52600         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
52601         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
52602
52603 2007-03-11  Bruno Haible  <bruno@clisp.org>
52604
52605         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
52606         formula. Needed for SunPRO C 5.0.
52607
52608 2007-03-11  Bruno Haible  <bruno@clisp.org>
52609
52610         * modules/long-options (Depends-on): Add getopt.
52611
52612 2007-03-11  Bruno Haible  <bruno@clisp.org>
52613
52614         * modules/modechange (Depends-on): Add stdbool.
52615
52616 2007-03-11  Bruno Haible  <bruno@clisp.org>
52617
52618         * modules/i-ring (Depends-on): Add stdbool.
52619
52620 2007-03-11  Bruno Haible  <bruno@clisp.org>
52621
52622         * modules/gc-des (Depends-on): Add stdbool.
52623
52624 2007-03-11  Bruno Haible  <bruno@clisp.org>
52625
52626         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
52627
52628 2007-03-11  Bruno Haible  <bruno@clisp.org>
52629
52630         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
52631
52632 2007-03-11  Bruno Haible  <bruno@clisp.org>
52633
52634         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
52635
52636 2007-03-11  Bruno Haible  <bruno@clisp.org>
52637
52638         * lib/vasnprintf.c (sprintf): Undefine.
52639
52640 2007-03-11  Bruno Haible  <bruno@clisp.org>
52641
52642         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
52643         initializers in SunPRO C and Compaq C compilers.
52644
52645 2007-03-11  Bruno Haible  <bruno@clisp.org>
52646
52647         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
52648         decrementing code ANSI C compliant.
52649
52650 2007-03-11  Bruno Haible  <bruno@clisp.org>
52651
52652         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
52653         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
52654
52655 2007-03-11  Bruno Haible  <bruno@clisp.org>
52656
52657         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
52658         <stdbool.h> substitute doesn't pass.
52659
52660 2007-03-11  Bruno Haible  <bruno@clisp.org>
52661
52662         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
52663
52664 2007-03-11  Bruno Haible  <bruno@clisp.org>
52665
52666         * gnulib-tool (func_create_megatestdir): Create also an autobuild
52667         script, for submission to autobuild.josefsson.org.
52668
52669 2007-03-10  Bruno Haible  <bruno@clisp.org>
52670
52671         * modules/canonicalize-lgpl-tests: New file.
52672         * tests/test-canonicalize-lgpl.sh: New file.
52673         * tests/test-canonicalize-lgpl.c: New file.
52674
52675         * modules/c-strcase-tests: New file.
52676         * tests/test-c-strcase.sh: New file.
52677         * tests/test-c-strcasecmp.c: New file.
52678         * tests/test-c-strncasecmp.c: New file.
52679
52680         * modules/atexit-tests: New file.
52681         * tests/test-atexit.sh: New file.
52682         * tests/test-atexit.c: New file.
52683
52684 2007-03-10  Bruno Haible  <bruno@clisp.org>
52685
52686         * tests/test-binary-io.sh: Use temporary filenames that are not so
52687         likely to clash with those of other tests (in a parallel make).
52688         * tests/test-binary-io.c: Likewise.
52689
52690 2007-03-10  Bruno Haible  <bruno@clisp.org>
52691
52692         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52693         fallback; use #error instead.
52694         Suggested by Simon Josefsson.
52695
52696 2007-03-10  Bruno Haible  <bruno@clisp.org>
52697
52698         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52699         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52700         first and the last.
52701
52702 2007-03-10  Bruno Haible  <bruno@clisp.org>
52703
52704         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52705
52706 2007-03-10  Bruno Haible  <bruno@clisp.org>
52707
52708         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52709         "make distcheck".
52710         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52711         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52712         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52713
52714 2007-03-10  Bruno Haible  <bruno@clisp.org>
52715
52716         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52717         variable.
52718         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52719         variable.
52720
52721 2007-03-09  Eric Blake  <ebb9@byu.net>
52722         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52723
52724         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52725         types are not being provided by gnulib.
52726         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52727         types are supported.
52728
52729 2007-03-10  Bruno Haible  <bruno@clisp.org>
52730
52731         * lib/stdio_.h (__attribute__): New macro.
52732         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52733         vsprintf): Specify __attribute__ __format__ for GCC.
52734         Suggested by Eric Blake.
52735
52736 2007-03-09  Bruno Haible  <bruno@clisp.org>
52737
52738         * modules/printf-posix-tests: New file.
52739         * tests/test-printf-posix.sh: New file.
52740         * tests/test-printf-posix.c: New file.
52741
52742         * modules/printf-posix: New file.
52743         * lib/printf.c: New file.
52744         * m4/printf-posix-rpl.m4: New file.
52745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52746         REPLACE_PRINTF.
52747         * lib/stdio_.h (printf): New declaration.
52748         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52749         ____strfmon____): New macros.
52750         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52751         REPLACE_PRINTF.
52752
52753 2007-03-09  Bruno Haible  <bruno@clisp.org>
52754
52755         * tests/test-vasnprintf-posix2.sh: New file.
52756         * tests/test-vasnprintf-posix2.c: New file.
52757         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52758         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52759         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52760
52761         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52762         a locale dependent decimal point, rather than always '.'.
52763
52764 2007-03-09  Eric Blake  <ebb9@byu.net>
52765
52766         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52767         spite of platforms like Tandem/NSK that define it to -1.
52768
52769 2007-03-08  Bruno Haible  <bruno@clisp.org>
52770
52771         * modules/vprintf-posix-tests: New file.
52772         * tests/test-vprintf-posix.sh: New file.
52773         * tests/test-vprintf-posix.c: New file.
52774         * tests/test-printf-posix.h: New file.
52775
52776         * modules/vprintf-posix: New file.
52777         * lib/vprintf.c: New file.
52778         * m4/vprintf-posix.m4: New file.
52779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52780         REPLACE_VPRINTF.
52781         * lib/stdio_.h (vprintf): New declaration.
52782         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52783         REPLACE_VPRINTF.
52784
52785 2007-03-08  Bruno Haible  <bruno@clisp.org>
52786
52787         * modules/fprintf-posix-tests: New file.
52788         * tests/test-fprintf-posix.sh: New file.
52789         * tests/test-fprintf-posix.c: New file.
52790
52791         * modules/fprintf-posix: New file.
52792         * lib/fprintf.c: New file.
52793         * m4/fprintf-posix.m4: New file.
52794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
52795         REPLACE_FPRINTF.
52796         * lib/stdio_.h (fprintf): New declaration.
52797         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
52798         REPLACE_FPRINTF.
52799
52800 2007-03-08  Bruno Haible  <bruno@clisp.org>
52801
52802         * modules/vfprintf-posix-tests: New file.
52803         * tests/test-vfprintf-posix.sh: New file.
52804         * tests/test-vfprintf-posix.c: New file.
52805         * tests/test-fprintf-posix.h: New file.
52806         * tests/test-fprintf-posix.out: New file.
52807
52808         * modules/vfprintf-posix: New file.
52809         * lib/vfprintf.c: New file.
52810         * m4/vfprintf-posix.m4: New file.
52811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
52812         REPLACE_VFPRINTF.
52813         * lib/stdio_.h (vfprintf): New declaration.
52814         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
52815         REPLACE_VFPRINTF.
52816
52817 2007-03-08  Bruno Haible  <bruno@clisp.org>
52818
52819         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
52820
52821 2007-03-08  Bruno Haible  <bruno@clisp.org>
52822
52823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
52824         instead of 'expr' invocations.
52825         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52827         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52829         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52830         Suggested by Paul Eggert.
52831
52832 2007-03-08  Bruno Haible  <bruno@clisp.org>
52833
52834         * modules/fseterr-tests: New file.
52835         * tests/test-fseterr.c: New file.
52836
52837         * modules/fseterr: New file.
52838         * lib/fseterr.h: New file.
52839         * lib/fseterr.c: New file.
52840
52841 2007-03-08  Bruno Haible  <bruno@clisp.org>
52842
52843         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
52844         * lib/getopt_.h: Likewise.
52845         * lib/mbswidth.h: Likewise.
52846         * lib/setenv.h: Likewise.
52847         * lib/vasnprintf.h: Likewise.
52848         * lib/vasprintf.h: Likewise.
52849         * lib/verror.h: Likewise.
52850         * lib/xsetenv.h: Likewise.
52851         * lib/xvasprintf.h: Likewise.
52852
52853 2007-03-08  Jim Meyering  <jim@meyering.net>
52854
52855         * users.txt: Add parted.
52856
52857         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
52858
52859 2007-03-07  Bruno Haible  <bruno@clisp.org>
52860
52861         * m4/printf.m4: Make the shell script snippets copy&pastable.
52862
52863 2007-03-02  Bruno Haible  <bruno@clisp.org>
52864
52865         * lib/netinet_in_.h: New file.
52866         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
52867         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
52868         * modules/netinet_in (Files): Add lib/netinet_in_.h.
52869         (Depends-on): Add absolute-header.
52870         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
52871         into netinet/in.h.
52872
52873 2007-03-03  Bruno Haible  <bruno@clisp.org>
52874
52875         * lib/sys_select_.h: New file.
52876         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
52877         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
52878         * modules/sys_select (Files): Add lib/sys_select_.h.
52879         (Depends-on): Add absolute-header.
52880         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
52881         into sys/select.h.
52882
52883 2007-03-02  Bruno Haible  <bruno@clisp.org>
52884
52885         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
52886         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
52887         values.
52888         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
52889         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
52890         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
52891         * modules/sys_socket (Depends-on): Add absolute-header.
52892         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
52893         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
52894         (Include): Remove requirement of inclusion of <sys/types.h>.
52895
52896 2007-03-02  Bruno Haible  <bruno@clisp.org>
52897
52898         * lib/byteswap_.h (bswap_32): Fix formula.
52899
52900 2007-03-06  Bruno Haible  <bruno@clisp.org>
52901
52902         * modules/sprintf-posix-tests: New file.
52903         * tests/test-sprintf-posix.c: New file.
52904
52905         * modules/sprintf-posix: New file.
52906         * lib/sprintf.c: New file.
52907         * m4/sprintf-posix.m4: New file.
52908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
52909         REPLACE_SPRINTF.
52910         * lib/stdio_.h (sprintf): New declaration.
52911         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
52912         REPLACE_SPRINTF.
52913
52914 2007-03-06  Bruno Haible  <bruno@clisp.org>
52915
52916         * modules/vsprintf-posix-tests: New file.
52917         * tests/test-vsprintf-posix.c: New file.
52918         * tests/test-sprintf-posix.h: New file.
52919
52920         * modules/vsprintf-posix: New file.
52921         * lib/vsprintf.c: New file.
52922         * m4/vsprintf-posix.m4: New file.
52923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
52924         REPLACE_VSPRINTF.
52925         * lib/stdio_.h (vsprintf): New declaration.
52926         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
52927         REPLACE_VSPRINTF.
52928
52929 2007-03-06  Bruno Haible  <bruno@clisp.org>
52930
52931         * modules/vsnprintf (Depend-on): Remove minmax.
52932
52933 2007-03-06  Bruno Haible  <bruno@clisp.org>
52934
52935         * modules/snprintf-posix-tests: New file.
52936         * tests/test-snprintf-posix.c: New file.
52937
52938         * modules/snprintf-posix: New file.
52939         * m4/snprintf-posix.m4: New file.
52940         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
52941         gl_FUNC_SNPRINTF.
52942         (gl_FUNC_SNPRINTF): Invoke it.
52943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
52944         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
52945         is set.
52946         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
52947
52948 2007-03-06  Bruno Haible  <bruno@clisp.org>
52949
52950         * modules/vsnprintf-posix-tests: New file.
52951         * tests/test-vsnprintf-posix.c: New file.
52952         * tests/test-snprintf-posix.h: New file.
52953
52954         * modules/vsnprintf-posix: New file.
52955         * m4/vsnprintf-posix.m4: New file.
52956         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
52957         gl_FUNC_VSNPRINTF.
52958         (gl_FUNC_VSNPRINTF): Invoke it.
52959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
52960         * lib/stdio_.h (vsnprintf): Define as a replacement if
52961         REPLACE_VSNPRINTF is set.
52962         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
52963
52964 2007-03-06  Bruno Haible  <bruno@clisp.org>
52965
52966         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
52967         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
52968
52969 2007-03-06  Bruno Haible  <bruno@clisp.org>
52970
52971         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
52972         (asinl): Declare also if HAVE_DECL_ASINL is set.
52973         (atanl): Declare also if HAVE_DECL_ATANL is set.
52974         (ceill): Declare also if HAVE_DECL_CEILL is set.
52975         (cosl): Declare also if HAVE_DECL_COSL is set.
52976         (expl): Declare also if HAVE_DECL_EXPL is set.
52977         (floorl): Declare also if HAVE_DECL_FLOORL is set.
52978         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
52979         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
52980         (logl): Declare also if HAVE_DECL_LOGL is set.
52981         (sinl): Declare also if HAVE_DECL_SINL is set.
52982         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
52983         (tanl): Declare also if HAVE_DECL_TANL is set.
52984         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
52985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
52986         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
52987         declaration of frexpl, ldexpl.
52988         * modules/printf-frexpl (Depends-on): Add math.
52989         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
52990
52991 2007-03-05  Bruno Haible  <bruno@clisp.org>
52992
52993         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
52994         frexpl and ldexpl are declared.
52995         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
52996
52997 2007-03-05  Bruno Haible  <bruno@clisp.org>
52998
52999         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53000         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53001
53002 2007-03-05  Bruno Haible  <bruno@clisp.org>
53003
53004         * lib/stdio_.h: Include <stddef.h>.
53005
53006 2007-03-05  Bruno Haible  <bruno@clisp.org>
53007
53008         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53009
53010 2007-03-05  Bruno Haible  <bruno@clisp.org>
53011
53012         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53013         NetBSD 4, from Ralf Wildenhues.
53014
53015 2007-03-04  Bruno Haible  <bruno@clisp.org>
53016
53017         * lib/vasprintf.h: Update #if logic for the case when the functions
53018         exist but are overridden.
53019
53020 2007-03-04  Bruno Haible  <bruno@clisp.org>
53021
53022         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53023         implementations: glibc-2.4 and MacOS X 10.3.
53024         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53025         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53026         * tests/test-vasprintf-posix.c (test_function): Likewise.
53027
53028 2007-03-04  Bruno Haible  <bruno@clisp.org>
53029
53030         * modules/vasprintf-posix-tests: New file.
53031         * tests/test-vasprintf-posix.c: New file.
53032
53033         * modules/vasprintf-posix: New file.
53034         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53035         defined.
53036         * m4/vasprintf-posix.m4: New file.
53037         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53038         gl_FUNC_VASPRINTF.
53039         (gl_FUNC_VASPRINTF): Invoke it.
53040         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53041         here.
53042         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53043
53044 2007-03-04  Bruno Haible  <bruno@clisp.org>
53045
53046         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53047         REPLACE_GETTIMEOFDAY.
53048         * modules/sys_time (Makefile.am): Likewise.
53049         * m4/sys_time_h.m4: Likewise.
53050         * m4/gettimeofday.m4: Likewise.
53051
53052 2007-03-04  Bruno Haible  <bruno@clisp.org>
53053
53054         * modules/vasnprintf-posix-tests: New file.
53055         * tests/test-vasnprintf-posix.c: New file.
53056
53057         * modules/vasnprintf-posix: New file.
53058         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53059         printf-frexpl.h.
53060         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53061         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53062         REPLACE_VASNPRINTF is defined.
53063         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53064         gl_FUNC_VASNPRINTF.
53065         (gl_FUNC_VASNPRINTF): Invoke it.
53066         * m4/vasnprintf-posix.m4: New file.
53067         * m4/printf.m4: New file.
53068
53069 2007-03-04  Bruno Haible  <bruno@clisp.org>
53070
53071         Compile progreloc.c only if --enable-relocatable is specified.
53072         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53073         if --enable-relocatable was specified.
53074         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53075         lib_SOURCES.
53076
53077 2007-03-04  Jim Meyering  <jim@meyering.net>
53078
53079         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53080         Use it consistently, rather than enumerating errno constants.
53081
53082 2007-03-04  Bruno Haible  <bruno@clisp.org>
53083
53084         * modules/xvasprintf-tests: New file.
53085         * tests/test-xvasprintf.c: New file.
53086
53087         * modules/vasprintf-tests: New file.
53088         * tests/test-vasprintf.c: New file.
53089
53090         * modules/vasnprintf-tests: New file.
53091         * tests/test-vasnprintf.c: New file.
53092
53093         * modules/vsnprintf-tests: New file.
53094         * tests/test-vsnprintf.c: New file.
53095
53096         * modules/snprintf-tests: New file.
53097         * tests/test-snprintf.c: New file.
53098
53099 2007-03-04  Bruno Haible  <bruno@clisp.org>
53100
53101         Compile relocatable.c only if --enable-relocatable is specified.
53102         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53103         gl_RELOCATABLE_LIBRARY.
53104         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53105         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53106         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53107         gl_RELOCATABLE_LIBRARY.
53108         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53109         (Makefile.am): Remove lib_SOURCES.
53110         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53111         gl_RELOCATABLE_LIBRARY.
53112         (Makefile.am): Remove lib_SOURCES.
53113         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53114         always.
53115         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53116         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53117
53118 2007-03-04  Bruno Haible  <bruno@clisp.org>
53119
53120         * modules/argmatch-tests: New file.
53121         * tests/test-argmatch.c: New file.
53122
53123         * tests/test-allocsa.c (main): Halve the number of loop runs.
53124
53125         * modules/alloca-opt-tests: New file.
53126         * tests/test-alloca-opt.c: New file.
53127
53128 2007-03-04  Jim Meyering  <jim@meyering.net>
53129
53130         Work around difference between Linux ACLs and Solaris 10 ZFS.
53131         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53132         for EINVAL.
53133
53134 2007-03-03  Bruno Haible  <bruno@clisp.org>
53135
53136         * modules/relocatable-prog (Depends-on): Add back progreloc's
53137         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53138
53139 2007-03-03  Bruno Haible  <bruno@clisp.org>
53140
53141         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53142         * modules/relocatable-lib: New file.
53143
53144 2007-03-03  Bruno Haible  <bruno@clisp.org>
53145
53146         * modules/relocatable-prog: Renamed from modules/relocatable.
53147         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53148
53149 2007-03-03  Bruno Haible  <bruno@clisp.org>
53150
53151         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53152         m4/relocatable-lib.m4.
53153         (Depends-on): Remove 'relocatable'.
53154         (configure.ac): Add gl_RELOCATABLE_NOP.
53155
53156 2007-03-03  Bruno Haible  <bruno@clisp.org>
53157
53158         * modules/relocatable-prog-wrapper: New file.
53159         * modules/relocatable (Depends-on): Add it. Remove all other
53160         dependencies except progname.
53161         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53162
53163         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53164         (gl_FUNC_STRERROR): Nop.
53165         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53166
53167         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53168         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53169
53170         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53171         (gl_FUNC_READLINK): Update.
53172
53173         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53174
53175 2007-03-03  Bruno Haible  <bruno@clisp.org>
53176
53177         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53178         * modules/xreadlink (Depends-on): Add unistd.
53179         * modules/xreadlink-with-size (Depends-on): Likewise.
53180
53181 2007-03-03  Bruno Haible  <bruno@clisp.org>
53182
53183         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53184         extracted from gt_FUNC_SETENV.
53185         (gt_FUNC_SETENV): Remove macro.
53186         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53187         remove gt_FUNC_SETENV.
53188
53189 2007-03-03  Bruno Haible  <bruno@clisp.org>
53190
53191         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53192         ENABLE_RELOCATABLE here.
53193         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53194
53195 2007-03-03  Bruno Haible  <bruno@clisp.org>
53196
53197         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53198         * tests/test-rbtreehash_list.c: Include progname.h.
53199         (main): Call set_program_name.
53200
53201         * modules/rbtree-oset-tests (Depends-on): Add progname.
53202         * tests/test-rbtree_oset.c: Include progname.h.
53203         (main): Call set_program_name.
53204
53205         * modules/rbtree-list-tests (Depends-on): Add progname.
53206         * tests/test-rbtree_list.c: Include progname.h.
53207         (main): Call set_program_name.
53208
53209         * modules/linked-list-tests (Depends-on): Add progname.
53210         * tests/test-linked_list.c: Include progname.h.
53211         (main): Call set_program_name.
53212
53213 2007-03-03  Bruno Haible  <bruno@clisp.org>
53214
53215         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53216         All uses of __restrict changed to _Restrict_.
53217         * lib/glob_.h (__restrict): Remove macro.
53218
53219 2007-03-02  Bruno Haible  <bruno@clisp.org>
53220
53221         * modules/gettext (configure.ac): Require gettext infrastructure
53222         from version 0.16.1.
53223
53224 2007-03-02  Bruno Haible  <bruno@clisp.org>
53225
53226         * modules/linkedhash-list-tests (Depends-on): Add progname.
53227         * tests/test-linkedhash_list.c: Include progname.h.
53228         (main): Call set_program_name.
53229
53230         * modules/carray-list-tests (Depends-on): Add progname.
53231         * tests/test-carray_list.c: Include progname.h.
53232         (main): Call set_program_name.
53233
53234         * modules/avltreehash-list-tests (Depends-on): Add progname.
53235         * tests/test-avltreehash_list.c: Include progname.h.
53236         (main): Call set_program_name.
53237
53238         * modules/avltree-oset-tests (Depends-on): Add progname.
53239         * tests/test-avltree_oset.c: Include progname.h.
53240         (main): Call set_program_name.
53241
53242         * modules/avltree-list-tests (Depends-on): Add progname.
53243         * tests/test-avltree_list.c: Include progname.h.
53244         (main): Call set_program_name.
53245
53246         * modules/array-oset-tests (Depends-on): Add progname.
53247         * tests/test-array_oset.c: Include progname.h.
53248         (main): Call set_program_name.
53249
53250         * modules/array-list-tests (Depends-on): Add progname.
53251         * tests/test-array_list.c: Include progname.h.
53252         (main): Call set_program_name.
53253
53254         * modules/argp-tests (Depends-on): Add progname.
53255         * tests/test-argp.c: Include argp.h first. Include progname.h.
53256         (main): Call set_program_name.
53257
53258 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53259
53260         * doc/gnulib-tool.texi (Initial import): Reword description of
53261         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53262         limited effect even if defined after the first system include.
53263
53264 2007-03-01  Bruno Haible  <bruno@clisp.org>
53265
53266         * build-aux/config.libpath: Update to libtool-1.5.22.
53267         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53268
53269 2007-03-01  Bruno Haible  <bruno@clisp.org>
53270
53271         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53272         foo_CFLAGS.
53273         Reported by Ralf Wildenhues.
53274
53275 2007-03-01  Bruno Haible  <bruno@clisp.org>
53276
53277         * build-aux/install-reloc: Remove object files left over by some
53278         compilers.
53279         Reported by Ralf Wildenhues.
53280
53281 2007-03-01  Bruno Haible  <bruno@clisp.org>
53282
53283         * build-aux/install-reloc: Break long lines.
53284
53285 2007-03-01  Bruno Haible  <bruno@clisp.org>
53286
53287         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53288         Reported by Ralf Wildenhues.
53289
53290 2007-03-01  Bruno Haible  <bruno@clisp.org>
53291
53292         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53293         include ordering constraints.
53294
53295 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53296
53297         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53298         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53299         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53300         as another example.
53301         * lib/time_.h: Fix misspelling.
53302         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53303         Require gl_HEADER_TIME_H_DEFAULTS.
53304         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53305         * m4/time_r.m4 (gl_TIME_R): Likewise.
53306         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53307
53308 2007-03-01  Bruno Haible  <bruno@clisp.org>
53309
53310         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53311         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53312
53313 2007-03-01  Jim Meyering  <jim@meyering.net>
53314
53315         * modules/xreadlink (Maintainer): Add my name.
53316         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53317
53318 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53319             Bruno Haible  <bruno@clisp.org>
53320
53321         * build-aux/install-reloc: Compile also c-ctype.c.
53322         * build-aux/relocatable.sh.in: New file.
53323         * doc/relocatable.texi: New file.
53324         * doc/relocatable-maint.texi: New file.
53325         * doc/gnulib.texi: Include relocatable-maint.texi.
53326         * lib/progreloc.c: Include unistd.h unconditionally.
53327         * lib/relocwrapper.c: Include unistd.h unconditionally.
53328         Include c-ctype.h.
53329         (add_dotbin): Use c_tolower.
53330         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53331         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53332         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53333         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53334         to m4/relocatable-lib.m4.
53335         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53336         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53337         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53338         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53339         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53340         * modules/relocatable: New file.
53341         * modules/relocatable-lib: New file.
53342         * modules/relocatable-script: New file.
53343
53344 2007-02-28  Bruno Haible  <bruno@clisp.org>
53345
53346         Import --enable-relocatable infrastructure.
53347         * build-aux/config.libpath: New file, from GNU gettext.
53348         * build-aux/install-reloc: New file, from GNU gettext.
53349         * build-aux/reloc-ldflags: New file, from GNU gettext.
53350         * lib/relocatable.h: New file, from GNU gettext.
53351         * lib/relocatable.c: New file, from GNU gettext.
53352         * lib/relocwrapper.c: New file, from GNU gettext.
53353         * m4/relocatable.m4: New file, from GNU gettext.
53354
53355 2007-02-28  Bruno Haible  <bruno@clisp.org>
53356
53357         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53358
53359         * modules/xreadlink: New file, from GNU gettext with modifications.
53360         * lib/xreadlink.c: New file, from GNU gettext.
53361         * lib/xreadlink.h: Add comments.
53362         (xreadlink): New declaration.
53363
53364         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53365         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53366         lib/xreadlink-with-size.c.
53367         (configure.ac): Remove gl_XREADLINK invocation.
53368         (Makefile.am): Augment lib_SOURCES.
53369         * m4/xreadlink.m4: Remove file.
53370         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53371         (xreadlink_with_size): Renamed from xreadink.
53372         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53373         * modules/canonicalize (Depends-on): Replace xreadlink with
53374         xreadlink-with-size.
53375         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53376
53377 2007-02-25  Jim Meyering  <jim@meyering.net>
53378
53379         * build-aux/announce-gen: When complaining about excess arguments,
53380         list them.
53381
53382 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53383
53384         * README: Document signed integer overflow situation more
53385         accurately.
53386
53387 2007-02-25  Bruno Haible  <bruno@clisp.org>
53388
53389         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53390         'a' or 'A' conversion.
53391
53392 2007-02-25  Bruno Haible  <bruno@clisp.org>
53393
53394         * modules/filename: Renamed from modules/pathname.
53395         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53396         lib/concatpath.c with lib/concat-filename.c.
53397         (Makefile.am): Update.
53398         (Include): Replace pathname.h with filename.h.
53399         * lib/filename.h: Renamed from lib/pathname.h.
53400         (concatenated_filename): Renamed from concatenated_pathname.
53401         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53402         (concatenated_filename): Renamed from concatenated_pathname.
53403         * lib/findprog.c: Include filename.h instead of pathname.h.
53404         (find_in_path): Update.
53405         * lib/javacomp.c: Include filename.h instead of pathname.h.
53406         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53407         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53408         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53409         is_oldgcj_14_13_usable, is_javac_usable): Update.
53410         * lib/javaexec.c: Include filename.h instead of pathname.h.
53411         (execute_java_class): Update.
53412         * modules/findprog: Update.
53413         * modules/javacomp: Update.
53414         * modules/javaexec: Update.
53415         * MODULES.html.sh (File system functions): Add 'filename', remove
53416         'pathname'.
53417
53418 2007-02-25  Bruno Haible  <bruno@clisp.org>
53419
53420         * modules/printf-frexpl-tests: New file.
53421         * tests/test-printf-frexpl.c: New file.
53422
53423         * modules/printf-frexpl: New file.
53424         * lib/printf-frexpl.h: New file.
53425         * lib/printf-frexpl.c: New file.
53426         * m4/printf-frexpl.m4: New file.
53427
53428 2007-02-25  Bruno Haible  <bruno@clisp.org>
53429
53430         * modules/printf-frexp-tests: New file.
53431         * tests/test-printf-frexp.c: New file.
53432
53433         * modules/printf-frexp: New file.
53434         * lib/printf-frexp.h: New file.
53435         * lib/printf-frexp.c: New file.
53436         * m4/printf-frexp.m4: New file.
53437
53438 2007-02-25  Bruno Haible  <bruno@clisp.org>
53439
53440         Assume automake >= 1.10 for the tests.
53441         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53442         * modules/arctwo-tests: Likewise.
53443         * modules/argp-tests: Likewise.
53444         * modules/avltree-list-tests: Likewise.
53445         * modules/avltree-oset-tests: Likewise.
53446         * modules/avltreehash-list-tests: Likewise.
53447         * modules/carray-list-tests: Likewise.
53448         * modules/crc-tests: Likewise.
53449         * modules/des-tests: Likewise.
53450         * modules/gc-arcfour-tests: Likewise.
53451         * modules/gc-arctwo-tests: Likewise.
53452         * modules/gc-des-tests: Likewise.
53453         * modules/gc-hmac-md5-tests: Likewise.
53454         * modules/gc-hmac-sha1-tests: Likewise.
53455         * modules/gc-md2-tests: Likewise.
53456         * modules/gc-md4-tests: Likewise.
53457         * modules/gc-md5-tests: Likewise.
53458         * modules/gc-pbkdf2-sha1-tests: Likewise.
53459         * modules/gc-rijndael-tests: Likewise.
53460         * modules/gc-sha1-tests: Likewise.
53461         * modules/gc-tests: Likewise.
53462         * modules/getaddrinfo-tests: Likewise.
53463         * modules/hmac-md5-tests: Likewise.
53464         * modules/hmac-sha1-tests: Likewise.
53465         * modules/linked-list-tests: Likewise.
53466         * modules/linkedhash-list-tests: Likewise.
53467         * modules/lock-tests: Likewise.
53468         * modules/md2-tests: Likewise.
53469         * modules/md4-tests: Likewise.
53470         * modules/md5-tests: Likewise.
53471         * modules/rbtree-list-tests: Likewise.
53472         * modules/rbtree-oset-tests: Likewise.
53473         * modules/rbtreehash-list-tests: Likewise.
53474         * modules/read-file-tests: Likewise.
53475         * modules/rijndael-tests: Likewise.
53476         * modules/stdint-tests: Likewise.
53477         * modules/tls-tests: Likewise.
53478
53479 2007-02-24  Bruno Haible  <bruno@clisp.org>
53480
53481         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53482         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53483         function; instead check whether isnan with a double argument links.
53484         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53485         function; instead check whether isnan with a 'long double' argument
53486         links.
53487         Reported by Eric Blake <ebb9@byu.net>.
53488
53489 2007-02-24  Bruno Haible  <bruno@clisp.org>
53490
53491         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53492         defined.
53493         * lib/isnanl.c: Remove all code. Just include isnan.c.
53494         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53495
53496 2007-02-25  Jim Meyering  <jim@meyering.net>
53497
53498         Avoid conflicting types for 'unsetenv' on FreeBSD.
53499         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53500         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53501         in stdlib.h.
53502
53503 2007-02-24  Bruno Haible  <bruno@clisp.org>
53504
53505         * modules/isnanl-nolibm-tests: New file.
53506         * tests/test-isnanl.c: New file.
53507
53508         * modules/isnanl-nolibm: New file.
53509         * lib/isnanl.h: New file.
53510         * lib/isnanl.c: New file.
53511         * m4/isnanl.m4: New file.
53512
53513 2007-02-24  Bruno Haible  <bruno@clisp.org>
53514
53515         * modules/isnan-nolibm-tests: New file.
53516         * tests/test-isnan.c: New file.
53517
53518         * modules/isnan-nolibm: New file.
53519         * lib/isnan.h: New file.
53520         * lib/isnan.c: New file.
53521         * m4/isnan.m4: New file.
53522
53523 2007-02-24  Bruno Haible  <bruno@clisp.org>
53524
53525         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
53526         assume that an exponent fits in 20 bits.
53527
53528 2007-02-24  Jim Meyering  <jim@meyering.net>
53529
53530         * m4/regex.m4: Update the description of the configure-time option,
53531         --without-included-regex, to state accurately what the defaults are,
53532         and perhaps to give people an idea why using this option is risky.
53533
53534 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53535
53536         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
53537         loops on small arguments.  This attempts to avoid the problem
53538         Bruno Haible reported for AIX 4.3.2 in
53539         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
53540
53541 2007-02-23  Bruno Haible  <bruno@clisp.org>
53542
53543         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
53544         Needed for help2man.
53545
53546 2007-02-23  Karl Berry  <karl@gnu.org>
53547
53548         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
53549         exists, foo.h should be cvs-ignored, not committed.
53550
53551 2007-02-23  Eric Blake  <ebb9@byu.net>
53552
53553         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
53554         * lib/stat-time.h (includes): Likewise.
53555         * lib/utimecmp.c (includes): Likewise.
53556         * lib/utimens.h (includes): Likewise.
53557         * lib/getdate.y (includes): Also include "timespec.h" for use
53558         internal to the module.
53559         * modules/utimens (Depends-on): Revert yesterday's patch.
53560         * modules/nanosleep (Depends-on): Add missing dependency.
53561
53562 2007-02-22  Bruno Haible  <bruno@clisp.org>
53563
53564         * lib/glob.c: Don't include getlogin_r.h.
53565
53566 2007-02-22  Jim Meyering  <jim@meyering.net>
53567
53568         * modules/utimens (Depends-on): Add timespec, required for
53569         utimens.h's inclusion of timespec.h.
53570
53571 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53572
53573         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
53574         long unreadable paths in GNU/Linux.  Problem reported by Andreas
53575         Schwab in
53576         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53577         I'll try to think of a better way to fix the Solaris problem.
53578
53579         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
53580         like glibc; on Solaris 10, it fails with errno == EINVAL.
53581         POSIX says the behavior is unspecified if the first argument is NULL,
53582         so play it safe and never pass NULL to the system getcwd.
53583
53584 2007-02-21  Jim Meyering  <jim@meyering.net>
53585
53586         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
53587         of gettimeofday.  It would conflict with the one now always
53588         provided via sys_time_.h.  Reported by Matthew Woehlke, as
53589         an IRIX 6.5 build failure.
53590
53591 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53592
53593         Minor fixups to port to Solaris 10 with Sun C 5.8.
53594         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
53595         * modules/getcwd (Depends-on): Add dirfd.
53596         * lib/putenv.c (putenv): #undef it.
53597         (rpl_putenv): New decl.
53598         (malloc, free): Include <stdlib.h> rather than prototyping separately.
53599
53600 2007-02-20  Bruno Haible  <bruno@clisp.org>
53601
53602         * modules/stdio-tests: New file.
53603         * tests/test-stdio.c: New file.
53604
53605         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
53606         (Depends-on): Add stdio.
53607         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53608         (Include): Use <stdio.h> instead of vsnprintf.h.
53609         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53610         HAVE_DECL_VSNPRINTF.
53611         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
53612
53613         * modules/snprintf (Files): Remove lib/snprintf.h.
53614         (Depends-on): Add stdio.
53615         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53616         (Include): Use <stdio.h> instead of snprintf.h.
53617         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53618         HAVE_DECL_SNPRINTF.
53619         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
53620         * lib/getaddrinfo.c: Likewise.
53621
53622         * modules/stdio: New file.
53623         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
53624         * lib/snprintf.h: Remove file.
53625         * lib/vsnprintf.h: Remove file.
53626         * lib/.cppi-disable: Remove snprintf.h.
53627         * m4/stdio_h.m4: New file.
53628         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
53629
53630 2007-02-20  Jim Meyering  <jim@meyering.net>
53631
53632         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
53633         used by e.g., mingw.  From Bruno Haible.
53634
53635 2007-02-19  Bruno Haible  <bruno@clisp.org>
53636
53637         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
53638         warnings.
53639         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53640
53641 2007-02-19  Bruno Haible  <bruno@clisp.org>
53642
53643         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
53644         from mingw users.
53645
53646 2007-02-19  Bruno Haible  <bruno@clisp.org>
53647
53648         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
53649         warnings.
53650         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
53651
53652 2007-02-19  Jim Meyering  <jim@meyering.net>
53653
53654         Don't use FD after a successful "fdopendir (fd)".
53655         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
53656         Reset it by calling dirfd on the just-obtained DIR*.
53657
53658         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
53659         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
53660
53661 2007-02-18  Bruno Haible  <bruno@clisp.org>
53662
53663         * lib/readlink.c: Include <unistd.h>.
53664         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
53665         HAVE_READLINK.
53666         * modules/readlink (Depends-on): Add unistd.
53667         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53668         (Include): Add <unistd.h>.
53669
53670         * lib/getlogin_r.h: Remove file.
53671         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
53672         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
53673         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
53674         HAVE_DECL_GETLOGIN_R.
53675         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
53676         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53677         (Include): Use <unistd.h> instead of getlogin_r.h.
53678
53679         * lib/getcwd.h: Remove file.
53680         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
53681         * lib/xgetcwd.c: Likewise.
53682         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
53683         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
53684         * modules/getcwd (Files): Remove lib/getcwd.h.
53685         (Depends-on): Add unistd.
53686         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53687         (Include): Use <unistd.h> instad of getcwd.h.
53688
53689         * lib/ftruncate.c: Include <unistd.h> first.
53690         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53691         Set HAVE_FTRUNCATE.
53692         * modules/ftruncate (Depends-on): Add unistd.
53693         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53694
53695         * lib/fchdir.c: Include <unistd.h> first.
53696         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53697         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53698         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53699         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53700         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53701
53702         * lib/dup2.c: Include <unistd.h> first.
53703         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53704         HAVE_DUP2.
53705         * modules/dup2 (Depends-on): Add unistd.
53706         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53707
53708         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53709         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53710         REPLACE_CHOWN. Don't define chown as a macro here.
53711         * modules/chown (Depends-on): Add unistd.
53712         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53713
53714         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53715         Add definition for GL_LINK_WARNING.
53716         (chown, dup2): New declarations.
53717         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53718         link warning.
53719         (ftruncate): New declaration.
53720         (getcwd): New declaration, taken from old getcwd.h.
53721         (getlogin_r): New declaration, taken from old getlogin_r.h.
53722         (readlink): New declaration.
53723         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53724         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53725         (gl_PREREQ_UNISTD): Remove macro.
53726         (gl_UNISTD_MODULE_INDICATOR): New macro.
53727         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53728         many new variables. Don't set UNISTD_H.
53729         * modules/unistd (Description): Change.
53730         (Depends-on): Add link-warning.
53731         (configure.ac): Update.
53732         (Makefile.am): Create unistd.h always. Substitute many new variables
53733         into it.
53734
53735 2007-02-18  Bruno Haible  <bruno@clisp.org>
53736
53737         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53738         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53739         HAVE_GETSUBOPT.
53740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53741         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53742         * lib/getsubopt.h: Remove file.
53743         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53744         (Depends-on): Add stdlib.
53745         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53746         (Includes): Use <stdlib.h> instead of getsubopt.h.
53747         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53748         Set HAVE_GETSUBOPT.
53749         * lib/getsubopt.c: Don't include getsubopt.h.
53750
53751 2007-02-18  Bruno Haible  <bruno@clisp.org>
53752
53753         * modules/fchdir (Depends-on): Add dup2.
53754
53755 2007-02-18  Bruno Haible  <bruno@clisp.org>
53756
53757         * lib/stdlib_.h: Handle glibc's special invocation convention
53758         specially.
53759
53760 2007-02-18  Bruno Haible  <bruno@clisp.org>
53761
53762         * modules/stdlib-tests: New file.
53763         * tests/test-stdlib.c: New file.
53764
53765         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53766         (Depends-on): Add stdlib.
53767         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53768         (Includes): Use <stdlib.h> instead of mkstemp.h.
53769         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53770         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53771         * lib/mkstemp.c: Don't include mkstemp.h.
53772         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53773         * lib/stdlib--.h: Don't include mkstemp.h.
53774
53775         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53776         (Depends-on): Add stdlib.
53777         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53778         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53779         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53780         HAVE_MKDTEMP.
53781         * lib/mkdtemp.c: Don't include mkdtemp.h.
53782         * lib/clean-temp.c: Don't include mkdtemp.h.
53783
53784         * modules/exit (Files): Remove lib/exit.h.
53785         (Depends-on): Add stdlib.
53786         (Makefile.am): Remove lib_SOURCES.
53787         (Include): Use <stdlib.h> instead of exit.h.
53788         * lib/argmatch.c: Don't include exit.h.
53789         * lib/execute.c: Likewise.
53790         * lib/pagealign_alloc.c: Likewise.
53791         * lib/pipe.c: Likewise.
53792         * lib/wait-process.c: Likewise.
53793         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
53794         * lib/exitfail.c: Likewise.
53795         * lib/savewd.c: Likewise.
53796         * lib/xsetenv.c: Likewise.
53797
53798         * modules/stdlib: New file.
53799         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
53800         and extra comments about mkstemp().
53801         * lib/exit.h: Remove file.
53802         * lib/mkdtemp.h: Remove file.
53803         * lib/mkstemp.h: Remove file.
53804         * m4/stdlib_h.m4: New file.
53805         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
53806
53807 2007-02-18  Bruno Haible  <bruno@clisp.org>
53808
53809         * modules/math-tests: New file.
53810         * tests/test-math.c: New file.
53811
53812         * modules/math: New file.
53813         * modules/mathl (Files): Remove lib/mathl.h.
53814         (Depends-on): Add math.
53815         (Makefile.am): Don't mention mathl.h.
53816         (Include): Use <math.h> instead of mathl.h.
53817         * lib/math_.h: New file.
53818         * lib/mathl.h: Remove file.
53819         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
53820         mathl.h.
53821         * lib/asinl.c: Likewise.
53822         * lib/atanl.c: Likewise.
53823         * lib/ceill.c: Likewise.
53824         * lib/cosl.c: Likewise.
53825         * lib/expl.c: Likewise.
53826         * lib/floorl.c: Likewise.
53827         * lib/frexpl.c: Likewise.
53828         * lib/ldexpl.c: Likewise.
53829         * lib/logl.c: Likewise.
53830         * lib/sincosl.c: Likewise.
53831         * lib/sinl.c: Likewise.
53832         * lib/sqrtl.c: Likewise.
53833         * lib/tanl.c: Likewise.
53834         * lib/trigl.c: Likewise.
53835         * m4/math_h.m4: New file.
53836         * MODULES.html.sh (Mathematics): Add math.
53837
53838 2007-02-17  Bruno Haible  <bruno@clisp.org>
53839
53840         * modules/wctype-tests: New file.
53841         * tests/test-wctype.c: New file.
53842
53843         * modules/wchar-tests: New file.
53844         * tests/test-wchar.c: New file.
53845
53846         * modules/unistd-tests: New file.
53847         * tests/test-unistd.c: New file.
53848
53849         * modules/time-tests: New file.
53850         * tests/test-time.c: New file.
53851
53852         * modules/sysexits-tests: New file.
53853         * tests/test-sysexits.c: New file.
53854
53855         * modules/sys_time-tests: New file.
53856         * tests/test-sys_time.c: New file.
53857
53858         * modules/sys_stat-tests: New file.
53859         * tests/test-sys_stat.c: New file.
53860
53861         * modules/sys_socket-tests: New file.
53862         * tests/test-sys_socket.c: New file.
53863
53864         * modules/sys_select-tests: New file.
53865         * tests/test-sys_select.c: New file.
53866
53867         * modules/string-tests: New file.
53868         * tests/test-string.c: New file.
53869
53870         * modules/stdbool-tests: New file.
53871         * tests/test-stdbool.c: New file.
53872
53873         * modules/netinet_in-tests: New file.
53874         * tests/test-netinet_in.c: New file.
53875
53876         * modules/inttypes-tests: New file.
53877         * tests/test-inttypes.c: New file.
53878
53879         * modules/fcntl-tests: New file.
53880         * tests/test-fcntl.c: New file.
53881
53882         * modules/byteswap-tests: New file.
53883         * tests/test-byteswap.c: New file.
53884
53885         * modules/arpa_inet-tests: New file.
53886         * tests/test-arpa_inet.c: New file.
53887
53888 2007-02-17  Bruno Haible  <bruno@clisp.org>
53889
53890         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
53891         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
53892         if the corresponding module is not enabled. Emit link warnings if
53893         the function is used nevertheless.
53894         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
53895         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
53896         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
53897         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
53898         * modules/inttypes (Depends-on): Add link-warning.
53899         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53900         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
53901         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
53902         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
53903         * modules/imaxdiv (configure.ac): Likewise.
53904         * modules/strtoimax (configure.ac): Likewise.
53905         * modules/strtoumax (configure.ac): Likewise.
53906
53907 2007-02-17  Bruno Haible  <bruno@clisp.org>
53908
53909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
53910         gl_STRING_MODULE_INDICATOR_DEFAULTS.
53911         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
53912         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
53913
53914 2007-02-17  Bruno Haible  <bruno@clisp.org>
53915
53916         * modules/link-warning: New file.
53917         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
53918         * lib/string_.h (GL_LINK_WARNING): Remove definition.
53919         * modules/string (Depends-on): Add link-warning.
53920         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53921         string.h.
53922         * MODULES.html.sh (Support for building libraries and executables): Add
53923         link-warning.
53924
53925 2007-02-17  Bruno Haible  <bruno@clisp.org>
53926
53927         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
53928         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
53929         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
53930         long lines.
53931
53932 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
53933             Bruno Haible  <bruno@clisp.org>
53934
53935         * modules/tmpfile: New file.
53936         * lib/tmpfile.c: New file.
53937         * m4/tmpfile.m4: New file.
53938         * MODULES.html.sh (func_all_modules): New section "Input/output".
53939
53940 2007-02-15  Bruno Haible  <bruno@clisp.org>
53941
53942         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
53943         (supports_delete_on_close): New function.
53944         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
53945
53946 2007-02-14  Bruno Haible  <bruno@clisp.org>
53947
53948         * modules/mbspcasecmp-tests: New file.
53949         * tests/test-mbspcasecmp.sh: New file.
53950         * tests/test-mbspcasecmp.c: New file.
53951
53952         New module mbspcasecmp.
53953         * modules/mbspcasecmp: New file.
53954         * lib/mbspcasecmp.c: New file.
53955         * lib/string_.h (strncasecmp): Change warning message.
53956         (mbspcasecmp): New declaration.
53957         * m4/mbspcasecmp.m4: New file.
53958         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53959         GNULIB_MBSPCASECMP.
53960         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
53961         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
53962
53963 2007-02-14  Bruno Haible  <bruno@clisp.org>
53964
53965         * modules/mbsncasecmp-tests: New file.
53966         * tests/test-mbsncasecmp.sh: New file.
53967         * tests/test-mbsncasecmp.c: New file.
53968
53969         New module mbsncasecmp.
53970         * modules/mbsncasecmp: New file.
53971         * lib/mbsncasecmp.c: New file.
53972         * lib/string_.h (mbsncasecmp): New declaration.
53973         * m4/mbsncasecmp.m4: New file.
53974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53975         GNULIB_MBSNCASECMP.
53976         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
53977         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
53978
53979 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53980
53981         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
53982         Verify that it doesn't overlap with our flags.
53983         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
53984         do not have the desired effect in multibyte locales; instead, use
53985         mbscasecmp.
53986         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
53987         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
53988         we don't require GNU fnmatch ourselves (if our users require it, they
53989         should do so explicitly).
53990
53991         Fix regex code so it doesn't rely on strcasecmp.
53992         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
53993         Otherwise, include gnulib's langinfo.h.
53994         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
53995         undesirable behavior in non-C locales.  Instead, rely on localecharset.
53996         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
53997         * modules/regex (FILES): Remove m4/codeset.m4.
53998         (Depends-on): Add localcharset.  Remove strcase.
53999
54000 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54001
54002         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54003         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54004
54005 2007-02-13  Bruno Haible  <bruno@clisp.org>
54006
54007         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54008         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54009
54010 2007-02-12  Bruno Haible  <bruno@clisp.org>
54011
54012         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54013         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54014         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54015         time warning rather than a link error.
54016
54017 2007-02-12  Bruno Haible  <bruno@clisp.org>
54018
54019         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54020         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54021         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54022
54023 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54024
54025         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54026         args, not 2.
54027
54028 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54029
54030         New module 'time', so that apps can include <time.h> as per
54031         POSIX and GNU instead of separate include files like time_r.h
54032         and timegm.h.  This implementation tries out a simpler approach
54033         for replacing decls in standard include files (as compared to
54034         the string module), somewhat as an experiment.
54035
54036         * config/srclist.txt: Comment out mktime.c for now.
54037         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54038         since it doesn't apply any more.  Use generic wording instead.
54039         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54040         'time'.
54041         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54042         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54043         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54044         Don't include <sys/types.h>; no longer needed since we assume C89.
54045         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54046         * lib/strftime.c: Likewise.
54047         * lib/time_r.c: Likewise.
54048         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54049         * lib/nanosleep.c: Include <time.h> first, to check interface.
54050         * lib/strptime.c: Likewise.
54051         * lib/time_r.c: Likewise.
54052         * lib/timegm.c: Likewise.
54053         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54054         needed.
54055         * lib/timegm.c: Don't include timegm.h; no longer needed.
54056         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54057         time.h now handles any problems in that area.
54058         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54059         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54060         that time.h defines struct timespec.
54061         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54062         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54063         handles that.
54064         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54065         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54066         needed.  Set REPLACE_LOCALTIME.
54067         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54068         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54069         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54070         nanosleep; time_h.m4 now does that.  Don't require
54071         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54072         module handles this now.
54073         * modules/getdate (Depends-on): Remove timespec.  Add time.
54074         * modules/nanosleep (Depends-on): Likewise.
54075         * modules/stat-time (Depends-on): Likewise.
54076         * modules/nanosleep (Include): Include time.h, not timespec.h.
54077         * modules/strptime (Files): Remove lib/strptime.h.
54078         (Depends-on): Add extensions, time.
54079         (Include): Include time.h, not strptime.h.
54080         * modules/time_r (Files): Remove lib/time_r.h.
54081         (Depends-on): Add time.
54082         (Include): Include time.h, not time_r.h.
54083         * modules/timegm: Likewise.
54084         * modules/timespec (Description): Now does timespec-related decls
54085         of our own, instead of struct timespec itself.
54086         (Depends-on): Add time; remove extensions.
54087         (Maintainer): Add self.
54088         * modules/utimecmp (Depends-on): Add time; remove timespec.
54089         * modules/utimens (Depends-on): Likewise.
54090         * modules/xnanosleep (Depends-on): Likewise.
54091
54092 2007-02-11  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/c-strstr.c: Include allocsa.h.
54095         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54096         * lib/c-strcasestr.c: Include allocsa.h.
54097         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54098         * lib/strcasestr.c: Include allocsa.h.
54099         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54100         * lib/mbsstr.c: Include allocsa.h.
54101         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54102         allocsa/freesa instead of malloc/free.
54103         * lib/mbscasestr.c: Include allocsa.h.
54104         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54105         allocsa/freesa instead of malloc/free.
54106         * modules/c-strstr (Depends-on): Add allocsa.
54107         * modules/c-strcasestr (Depends-on): Likewise.
54108         * modules/strcasestr (Depends-on): Likewise.
54109         * modules/mbsstr (Depends-on): Likewise.
54110         * modules/mbscasestr (Depends-on): Likewise.
54111
54112 2007-02-11  Bruno Haible  <bruno@clisp.org>
54113
54114         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54115
54116         * modules/mbsspn-tests: New file.
54117         * tests/test-mbsspn.sh: New file.
54118         * tests/test-mbsspn.c: New file.
54119
54120 2007-02-11  Bruno Haible  <bruno@clisp.org>
54121
54122         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54123
54124         * modules/mbspbrk-tests: New file.
54125         * tests/test-mbspbrk.sh: New file.
54126         * tests/test-mbspbrk.c: New file.
54127
54128 2007-02-11  Bruno Haible  <bruno@clisp.org>
54129
54130         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54131         unneeded cast.
54132
54133         * modules/mbscspn-tests: New file.
54134         * tests/test-mbscspn.sh: New file.
54135         * tests/test-mbscspn.c: New file.
54136
54137 2007-02-11  Bruno Haible  <bruno@clisp.org>
54138
54139         * modules/mbscasecmp-tests: New file.
54140         * tests/test-mbscasecmp.sh: New file.
54141         * tests/test-mbscasecmp.c: New file.
54142
54143 2007-02-11  Bruno Haible  <bruno@clisp.org>
54144
54145         Ensure O(n) worst-case complexity of mbscasestr.
54146         * lib/mbscasestr.c: Include stdbool.h.
54147         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54148         functions.
54149         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54150         the bookkeeping indicates that it's worth it.
54151         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54152
54153         * modules/mbscasestr-tests: New file.
54154         * tests/test-mbscasestr1.c: New file.
54155         * tests/test-mbscasestr2.sh: New file.
54156         * tests/test-mbscasestr2.c: New file.
54157         * tests/test-mbscasestr3.sh: New file.
54158         * tests/test-mbscasestr3.c: New file.
54159         * tests/test-mbscasestr4.sh: New file.
54160         * tests/test-mbscasestr4.c: New file.
54161         * m4/locale-tr.m4: New file.
54162
54163 2007-02-11  Bruno Haible  <bruno@clisp.org>
54164
54165         Ensure O(n) worst-case complexity of mbsstr.
54166         * lib/mbsstr.c: Include stdbool.h.
54167         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54168         functions.
54169         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54170         bookkeeping indicates that it's worth it.
54171         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54172
54173         * modules/mbsstr-tests: New file.
54174         * tests/test-mbsstr1.c: New file.
54175         * tests/test-mbsstr2.sh: New file.
54176         * tests/test-mbsstr2.c: New file.
54177         * tests/test-mbsstr3.sh: New file.
54178         * tests/test-mbsstr3.c: New file.
54179         * m4/locale-fr.m4: New file.
54180
54181 2007-02-11  Bruno Haible  <bruno@clisp.org>
54182
54183         * lib/mbsrchr.c (mbsrchr): Fix bug.
54184
54185         * modules/mbsrchr-tests: New file.
54186         * tests/test-mbsrchr.sh: New file.
54187         * tests/test-mbsrchr.c: New file.
54188
54189 2007-02-11  Bruno Haible  <bruno@clisp.org>
54190
54191         * lib/mbschr.c (mbschr): Fix bug.
54192
54193         * modules/mbschr-tests: New file.
54194         * tests/test-mbschr.sh: New file.
54195         * tests/test-mbschr.c: New file.
54196         * m4/locale-zh.m4: New file.
54197
54198 2007-02-11  Bruno Haible  <bruno@clisp.org>
54199
54200         Support for copying multibyte string iterators.
54201         * lib/mbiter.h: Include <string.h>.
54202         (mbiter_multi_copy): New function.
54203         (mbi_copy): New macro.
54204         * lib/mbuiter.h: Include <string.h>.
54205         (mbuiter_multi_copy): New function.
54206         (mbui_copy): New macro.
54207
54208 2007-02-11  Bruno Haible  <bruno@clisp.org>
54209
54210         New module mbslen.
54211         * modules/mbslen: New file.
54212         * lib/mbslen.c: New file.
54213         * lib/string_.h (mbslen): New declaration.
54214         * m4/mbslen.m4: New file.
54215         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54216         GNULIB_MBSLEN.
54217         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54218         * MODULES.html.sh (Internationalization functions): Add mbslen.
54219
54220 2007-02-11  Bruno Haible  <bruno@clisp.org>
54221
54222         Ensure O(n) worst-case complexity of strcasestr substitute.
54223         * lib/strcasestr.c: Include stdbool.h.
54224         (knuth_morris_pratt): New function.
54225         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54226         bookkeeping indicates that it's worth it.
54227         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54228
54229         * modules/strcasestr-tests: New file.
54230         * tests/test-strcasestr.c: New file.
54231
54232 2007-02-11  Bruno Haible  <bruno@clisp.org>
54233
54234         Ensure O(n) worst-case complexity of c_strcasestr.
54235         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54236         (knuth_morris_pratt): New function.
54237         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54238         the bookkeeping indicates that it's worth it.
54239         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54240
54241         * modules/c-strcasestr-tests: New file.
54242         * tests/test-c-strcasestr.c: New file.
54243
54244 2007-02-11  Bruno Haible  <bruno@clisp.org>
54245
54246         Ensure O(n) worst-case complexity of c_strstr.
54247         * lib/c-strstr.c: Include stdbool.h, string.h.
54248         (knuth_morris_pratt): New function.
54249         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54250         bookkeeping indicates that it's worth it.
54251         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54252
54253         * lib/c-strstr.c: Complete rewrite for maintainability.
54254
54255         * modules/c-strstr-tests: New file.
54256         * tests/test-c-strstr.c: New file.
54257
54258 2007-02-11  Bruno Haible  <bruno@clisp.org>
54259
54260         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54261         5.2.1 and earlier, whereby \055 was treated just like the range
54262         delimiter '-'.
54263         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54264
54265 2007-02-08  Bruno Haible  <bruno@clisp.org>
54266
54267         * modules/regex (Depends-on): Add stdbool.
54268         Reported by Dalibor Topic <robilad@kaffe.org>.
54269
54270 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54271
54272         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54273         Prefer returning from main to exiting from it.
54274         Remove unnecessary parens after sizeof.
54275
54276 2007-02-05  Bruno Haible  <bruno@clisp.org>
54277
54278         New module mbssep.
54279         * modules/mbssep: New file.
54280         * lib/mbssep.c: New file.
54281         * lib/string_.h (strsep): Add a conditional link warning.
54282         (mbssep): New declaration.
54283         * m4/mbssep.m4: New file.
54284         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54285         GNULIB_MBSSEP.
54286         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54287         * MODULES.html.sh (Internationalization functions): Add mbssep.
54288
54289 2007-02-05  Bruno Haible  <bruno@clisp.org>
54290
54291         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54292         Optimize search in case of 1 delimiter.
54293
54294 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54295
54296         * lib/acl.h: Include sys/types.h before sys/acl.h.
54297
54298 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54299
54300         Merge upstream fix for glibc bugzilla #3957:
54301
54302         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54303
54304         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54305         bit for RE_HAT_LISTS_NOT_NEWLINE.
54306         (build_charclass_op): Remove bogus comment.
54307
54308 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54309
54310         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54311
54312 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54313
54314         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54315         * lib/memmem.c [!defined _LIBC]: Include config.h.
54316
54317 2007-02-04  Bruno Haible  <bruno@clisp.org>
54318
54319         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54320         warning message.
54321
54322 2007-02-04  Bruno Haible  <bruno@clisp.org>
54323
54324         New module mbstok_r.
54325         * modules/mbstok_r: New file.
54326         * lib/mbstok_r.c: New file.
54327         * lib/string_.h (strtok_r): Change argument names to match the
54328         comments. Add a conditional link warning.
54329         (mbstok_r): New declaration.
54330         * m4/mbstok_r.m4: New file.
54331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54332         GNULIB_MBSTOK_R.
54333         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54334         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54335
54336 2007-02-04  Bruno Haible  <bruno@clisp.org>
54337
54338         New module mbsspn.
54339         * modules/mbsspn: New file.
54340         * lib/mbsspn.c: New file.
54341         * lib/string_.h (strspn): Add a conditional link warning.
54342         (mbsspn): New declaration.
54343         * m4/mbsspn.m4: New file.
54344         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54345         GNULIB_MBSSPN.
54346         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54347         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54348
54349 2007-02-04  Bruno Haible  <bruno@clisp.org>
54350
54351         New module mbspbrk.
54352         * modules/mbspbrk: New file.
54353         * lib/mbspbrk.c: New file.
54354         * lib/string_.h (strpbrk): Add a conditional link warning.
54355         (mbspbrk): New declaration.
54356         * m4/mbspbrk.m4: New file.
54357         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54358         GNULIB_MBSPBRK.
54359         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54360         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54361
54362 2007-02-04  Bruno Haible  <bruno@clisp.org>
54363
54364         New module mbscspn.
54365         * modules/mbscspn: New file.
54366         * lib/mbscspn.c: New file.
54367         * lib/string_.h (strcspn): Add a conditional link warning.
54368         (mbscspn): New declaration.
54369         * m4/mbscspn.m4: New file.
54370         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54371         GNULIB_MBSCSPN.
54372         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54373         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54374
54375 2007-02-04  Bruno Haible  <bruno@clisp.org>
54376
54377         New module mbscasestr, reduced goal of strcasestr.
54378         * modules/mbscasestr: New file.
54379         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54380         (mbscasestr): Renamed from strcasestr.
54381         * lib/strcasestr.c: Don't include mbuiter.h.
54382         (strcasestr): Remove support for multibyte locales.
54383         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54384         Change the conditional link warning.
54385         (mbscasestr): New declaration.
54386         * m4/mbscasestr.m4: New file.
54387         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54388         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54389         REPLACE_STRCASESTR.
54390         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54392         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54393         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54394         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54395         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54396         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54397         (Depends-on): Remove mbuiter.
54398         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54399
54400 2007-02-04  Bruno Haible  <bruno@clisp.org>
54401
54402         Simplify handling of strncasecmp.
54403         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54404         the conditional link warning.
54405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54406         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54407         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54408         * modules/strcase (configure.ac): Don't invoke
54409         gl_STRING_MODULE_INDICATOR.
54410         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54411
54412 2007-02-04  Bruno Haible  <bruno@clisp.org>
54413
54414         New module mbscasecmp, reduced goal of strcasecmp.
54415         * modules/mbscasecmp: New file.
54416         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54417         (mbscasecmp): Renamed from strcasecmp.
54418         * lib/strcasecmp.c: Don't include mbuiter.h.
54419         (strcasecmp): Remove support for multibyte locales.
54420         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54421         Change the conditional link warning.
54422         (mbscasecmp): New declaration.
54423         * m4/mbscasecmp.m4: New file.
54424         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54425         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54426         REPLACE_STRCASECMP.
54427         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54428         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54429         GNULIB_MBSCASECMP.
54430         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54431         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54432         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54433         (Depends-on): Remove mbuiter.
54434         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54435
54436 2007-02-04  Bruno Haible  <bruno@clisp.org>
54437
54438         New module mbsstr. Remove module strstr.
54439         * modules/mbsstr: New file.
54440         * modules/strstr: Remove file.
54441         * lib/mbsstr.c: Renamed from lib/strstr.c.
54442         (mbsstr): Renamed from strstr.
54443         * lib/string_.h (strstr): Remove declaration. Change the conditional
54444         link warning.
54445         (mbsstr): New declaration.
54446         * m4/mbsstr.m4: New file.
54447         * m4/strstr.m4: Remove file.
54448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54449         REPLACE_STRSTR.
54450         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54451         Don't initialize GNULIB_STRSTR.
54452         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54453         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54454         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54455         (Support for systems lacking ANSI C 89): Remove strstr.
54456
54457 2007-02-04  Bruno Haible  <bruno@clisp.org>
54458
54459         New module mbsrchr.
54460         * modules/mbsrchr: New file.
54461         * lib/mbsrchr.c: New file.
54462         * lib/string_.h (strrchr): Add a conditional link warning.
54463         (mbsrchr): New declaration.
54464         * m4/mbsrchr.m4: New file.
54465         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54466         GNULIB_MBSRCHR.
54467         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54468         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54469
54470 2007-02-04  Bruno Haible  <bruno@clisp.org>
54471
54472         New module mbschr.
54473         * modules/mbschr: New file.
54474         * lib/mbschr.c: New file.
54475         * lib/string_.h (strchr): Add a conditional link warning.
54476         (mbschr): New declaration.
54477         * m4/mbschr.m4: New file.
54478         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54479         GNULIB_MBSCHR.
54480         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54481         * MODULES.html.sh (Internationalization functions): Add mbschr.
54482
54483 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54484
54485         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54486
54487         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54488
54489 2007-02-04  Bruno Haible  <bruno@clisp.org>
54490
54491         New module description section 'configure.ac-early'.
54492         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54493         (func_get_autoconf_early_snippet): New function.
54494         (func_import, func_create_testdir): Use it. Remove special cases for
54495         modules 'extensions' and 'lock'.
54496         * modules/extensions (configure.ac-early): Require
54497         gl_USE_SYSTEM_EXTENSIONS.
54498         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54499
54500 2007-02-04  Bruno Haible  <bruno@clisp.org>
54501
54502         Make use of gcj-4.3's -fsource and -ftarget option.
54503         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54504         and if so try the options -fsource and -ftarget.
54505         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54506         source_version, ftarget_option, target_version arguments.
54507         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54508         (is_envjavac_oldgcj_14_14_usable): Renamed from
54509         is_envjavac_gcj_14_14_usable.
54510         (is_envjavac_oldgcj_14_13_usable): Renamed from
54511         is_envjavac_gcj_14_13_usable.
54512         (is_gcj_present): Update.
54513         (is_gcj_43, is_gcj43_usable): New functions.
54514         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54515         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54516         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54517         try the options -fsource and -ftarget.
54518
54519 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54520
54521         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
54522         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
54523         larger value.
54524
54525 2007-02-03  Jim Meyering  <jim@meyering.net>
54526
54527         Give tools a better chance to allocate space for very large buffers.
54528         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
54529
54530         Make pwd and readlink work also when run with an unreadable parent dir
54531         on systems with openat support.
54532         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
54533         provided getcwd function, even when we have openat support.
54534         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
54535
54536 2007-02-02  Bruno Haible  <bruno@clisp.org>
54537
54538         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54539         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
54540         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
54541         portability problems if one of these functions is only used on specific
54542         platforms.
54543         Reported by Paul Eggert.
54544
54545 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
54546
54547         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
54548         is causing more trouble than it's curing.
54549         * lib/regex_internal.h (__mempcpy): Remove.
54550         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
54551         (and make the code a tad smaller to boot).
54552         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
54553
54554 2007-02-02  Jim Meyering  <jim@meyering.net>
54555
54556         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
54557         section, not in the Makefile.am: one.
54558
54559 2007-02-02  Eric Blake  <ebb9@byu.net>
54560
54561         * lib/strchrnul.c: Always include config.h first.
54562
54563         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
54564         gnulib strstr is not necessary here.
54565
54566 2007-02-02  Simon Josefsson  <simon@josefsson.org>
54567
54568         * m4/socklen.m4: Fix typo.
54569
54570 2007-02-02  Eric Blake  <ebb9@byu.net>
54571
54572         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
54573         * modules/netinet_in (Makefile.am): Likewise.
54574
54575 2007-02-01  Bruno Haible  <bruno@clisp.org>
54576
54577         * lib/string_.h (GL_LINK_WARNING): New macro.
54578         (strcasecmp, strstr, strcasestr): If provided by the system,
54579         conditionally define as a macro that leads to a warning instead of to
54580         an error.
54581         (strncasecmp): Conditionally define as a macro that leads to a warning.
54582
54583 2007-02-01  Karl Berry  <karl@gnu.org>
54584
54585         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
54586
54587 2007-02-01  Bruno Haible  <bruno@clisp.org>
54588
54589         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
54590         renamings.
54591
54592 2007-02-01  Eric Blake  <ebb9@byu.net>
54593
54594         * modules/regex (Depends-on): Revert dependence on mempcpy.
54595         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
54596         module's definition of mempcpy.
54597         Reported by Paul Eggert.
54598
54599 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54600
54601         * lib/string_.h: If the gnulib module XYZ is not present, undefine
54602         the symbol XYZ before redefining it.  This fixes a problem with
54603         programs that don't use XYZ, when compiled on systems that define
54604         XYZ to something else.
54605
54606 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
54607
54608         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
54609         occurs when "mkdir -m foo" creates a setgid directory that is (1)
54610         writeable to group or other and (2) is intended to have a special
54611         mode bit that is set or cleared.  In such a case, the directory
54612         should be neither group- nor other-writeable until the special
54613         mode bits are right.
54614
54615 2007-01-31  Eric Blake  <ebb9@byu.net>
54616
54617         * modules/mountlist (Depends-on): Add strstr.
54618
54619         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
54620         bug.
54621         * modules/string (Makefile.am): Remove redundant replacement.
54622         * modules/regex (Depends-on): Add mempcpy.
54623
54624 2007-01-31  Bruno Haible  <bruno@clisp.org>
54625
54626         New module description field 'Link'.
54627         * gnulib-tool (func_usage): Document --extract-link-directive.
54628         (sed_extract_prog): Recognize 'Link' directive.
54629         (func_get_link_directive): New function.
54630         (func_import): Show summary of link directives.
54631         Handle --extract-link-directive option.
54632         * modules/acl (Link): New section.
54633         * modules/clock-time (Link): New section.
54634         * modules/euidaccess (Link): New section.
54635         * modules/gettext (Link): New section.
54636         * modules/iconv (Link): New section.
54637         * modules/lock (Link): New section.
54638         * modules/nanosleep (Link): New section.
54639         * modules/readline (Link): New section.
54640
54641 2007-01-27  Bruno Haible  <bruno@clisp.org>
54642
54643         Enforce the use of gnulib modules for unportable <string.h> functions.
54644         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54645         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
54646         (gl_HEADER_STRING_H_BODY): Require it.
54647         * lib/string_.h: If the gnulib module XYZ is not present, redefine
54648         the symbol XYZ to one that gives a link error.
54649         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
54650         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
54651         * modules/mempcpy (configure.ac): Likewise.
54652         * modules/memrchr (configure.ac): Likewise.
54653         * modules/stpcpy (configure.ac): Likewise.
54654         * modules/stpncpy (configure.ac): Likewise.
54655         * modules/strcase (configure.ac): Likewise.
54656         * modules/strcasestr (configure.ac): Likewise.
54657         * modules/strchrnul (configure.ac): Likewise.
54658         * modules/strdup (configure.ac): Likewise.
54659         * modules/strndup (configure.ac): Likewise.
54660         * modules/strnlen (configure.ac): Likewise.
54661         * modules/strpbrk (configure.ac): Likewise.
54662         * modules/strsep (configure.ac): Likewise.
54663         * modules/strstr (configure.ac): Likewise.
54664         * modules/strtok_r (configure.ac): Likewise.
54665
54666 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
54667
54668         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
54669
54670 2007-01-30  Jim Meyering  <jim@meyering.net>
54671
54672         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
54673
54674 2007-01-29  Bruno Haible  <bruno@clisp.org>
54675
54676         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
54677         * lib/execute.c: Likewise.
54678         * lib/pipe.c: Likewise.
54679         * lib/printf-args.h: Likewise.
54680         * lib/printf-args.c: Likewise.
54681         * lib/printf-parse.c: Likewise.
54682         * lib/vasnprintf.c: Likewise.
54683
54684 2007-01-29  Eric Blake  <ebb9@byu.net>
54685
54686         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
54687         declaration.
54688
54689 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54690
54691         * lib/strptime.h (strptime): Use 'restrict' for args where
54692         POSIX requires this.
54693         * lib/strptime.c (strptime): Likewise.
54694         Change license notice from LGPL to GPL, since gnulib-tool will
54695         change this as needed.
54696         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54697         defined.
54698         Include "strptime.h" first, to check interface.
54699         Do not #undef _LIBC and _NL_CURRENT.
54700         Do not include <stdlib.h>; no longer needed.
54701         Include "time_r.h" and declare ptime_locale_status
54702         only if _LIBC is not defined.
54703         (__P): Remove unused macro.
54704         (match_string): Bring back glibc version, but use it only if _LIBC
54705         is defined.
54706         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54707         Remove unnecessary assertion and abort() call.
54708         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54709         * m4/strptime.m4: Fix serial number comment.
54710         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54711         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54712         (Depends-on): Add time_r.
54713
54714 2007-01-29  Bruno Haible  <bruno@clisp.org>
54715
54716         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54717         strptime.
54718         * modules/strptime (Depends-on): Add stdbool.
54719         * lib/strptime.h: Include <time.h> always. Add comments.
54720
54721 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54722
54723         * modules/strptime: New file.
54724         * lib/strptime.h: New file.
54725         * lib/strptime.c: New file.
54726         * m4/strptime.m4: New file.
54727
54728 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54729
54730         * MODULES.html.sh: New module mpsort.
54731         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54732
54733         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54734         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54735         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54736         All uses changed.
54737         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54738         All uses changed.
54739         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54740         to _Restrict_.
54741         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54742         the parameter matches the prototype.
54743
54744 2007-01-28  Jim Meyering  <jim@meyering.net>
54745
54746         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54747         sys/time.h here, reverting that part of the previous patch:
54748         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54749
54750 2007-01-28  Bruno Haible  <bruno@clisp.org>
54751
54752         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54753         value of $(SYS_TIME_H).
54754         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54755         remove it conditionally, too. [added by Jim Meyering]
54756         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54757         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54758         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54759         GETTIMEOFDAY_REPLACEMENT to 1.
54760
54761 2007-01-28  Bruno Haible  <bruno@clisp.org>
54762
54763         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54764         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54766         Set UNISTD_H instead of UNISTD_H2.
54767         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54768
54769 2007-01-28  Bruno Haible  <bruno@clisp.org>
54770
54771         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54772         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54773
54774 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54775
54776         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54777         (func_create_testdir): Ensure C locale for `grep' and `tr'
54778         character ranges.
54779         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54780         ACLOCAL_AMFLAGS parsing state machine.
54781
54782 2007-01-27  Bruno Haible  <bruno@clisp.org>
54783
54784         * modules/unistr/base: Update.
54785
54786 2007-01-27  Bruno Haible  <bruno@clisp.org>
54787
54788         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54789         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54790         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54791         modules/unistr/u32-mbtouc.
54792         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
54793         * lib/unistr.h: Update.
54794         * lib/linebreak.c: Update.
54795         * modules/unistr/u32-mbtouc: Renamed from
54796         modules/unistr/u32-mbtouc-safe.
54797         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
54798         * lib/unistr.h: Update.
54799         * lib/unistr/u32-to-u8.c: Update.
54800         * lib/unistr/u32-to-u16.c: Update.
54801
54802 2007-01-27  Bruno Haible  <bruno@clisp.org>
54803
54804         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
54805         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
54806         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
54807         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
54808         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
54809         * modules/unistr/u16-mbtouc-unsafe: Renamed from
54810         modules/unistr/u16-mbtouc.
54811         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
54812         * lib/unistr.h: Update.
54813         * lib/linebreak.c: Update.
54814         * modules/linebreak: Update.
54815         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
54816         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
54817         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
54818         * modules/unistr/u16-mbtouc: Renamed from
54819         modules/unistr/u16-mbtouc-safe.
54820         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
54821         * lib/unistr.h: Update.
54822         * lib/unistr/u16-to-u8.c: Update.
54823         * modules/unistr/u16-to-u8: Update.
54824         * lib/unistr/u16-to-u32.c: Update.
54825         * modules/unistr/u16-to-u32: Update.
54826
54827 2007-01-27  Bruno Haible  <bruno@clisp.org>
54828
54829         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
54830         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
54831         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
54832         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
54833         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
54834         * modules/unistr/u8-mbtouc-unsafe: Renamed from
54835         modules/unistr/u8-mbtouc.
54836         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
54837         * lib/unistr.h: Update.
54838         * lib/striconveh.c: Update.
54839         * modules/striconveh: Update.
54840         * lib/linebreak.c: Update.
54841         * modules/linebreak: Update.
54842         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
54843         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
54844         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
54845         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
54846         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
54847         * lib/unistr.h: Update.
54848         * lib/striconveh.c: Update.
54849         * modules/striconveh: Update.
54850         * lib/unistr/u8-to-u16.c: Update.
54851         * modules/unistr/u8-to-u16: Update.
54852         * lib/unistr/u8-to-u32.c: Update.
54853         * modules/unistr/u8-to-u32: Update.
54854
54855 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54856
54857         Sync from Libtool.
54858         * lib/argz.c: Do not include strings.h nor memory.h, include
54859         string.h unconditionally.  Patch by Simon Josefsson.
54860
54861 2007-01-27  Bruno Haible  <bruno@clisp.org>
54862
54863         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
54864         from gl_HEADER_STRING_H_BODY.
54865         (gl_HEADER_STRING_H_BODY): Require it.
54866         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
54867         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54868         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54869         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54871         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
54872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54873         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54874         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
54875         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54876         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54877         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
54878         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54879         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54880         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54881
54882 2007-01-27  Bruno Haible  <bruno@clisp.org>
54883
54884         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
54885         check_PROGRAMS into noinst_PROGRAMS.
54886         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
54887         check_PROGRAMS in this case.
54888         (func_import): Set for_test to false.
54889         (func_create_testdir): Set for_test to true.
54890
54891 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54892             Bruno Haible  <bruno@clisp.org>
54893
54894         * modules/strcasestr (Files): Remove lib/strcasestr.h.
54895         (Depends-on): Add string.
54896         (Includes): Use <string.h> instead of strcasestr.h.
54897         * modules/string (Makefile.am): Also substitute the value of
54898         REPLACE_STRCASESTR.
54899         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
54900         assume strcasestr is declared in <string.h> not <strings.h>. Also
54901         set REPLACE_STRCASESTR.
54902         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
54903         REPLACE_STRCASESTR.
54904         * lib/strcasestr.h: Remove file.
54905         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
54906         * lib/string_.h (strcasestr): New declaration.
54907
54908 2007-01-27  Bruno Haible  <bruno@clisp.org>
54909
54910         * lib/string_.h: Use 'extern'.
54911
54912 2007-01-27  Jim Meyering  <jim@meyering.net>
54913
54914         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
54915         of set-but-not-used local, "q".
54916
54917         * lib/mempcpy.c: Include <config.h> before <string.h>.
54918         This fixes a compilation error on HP-UX, due to the system's
54919         "restrict"-using mempcpy prototype.
54920
54921 2007-01-26  Bruno Haible  <bruno@clisp.org>
54922
54923         Small optimization.
54924         * lib/javacomp.c: Include c-strstr.h.
54925          (is_envjavac_gcj): Use c_strstr instead of strstr.
54926         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
54927
54928 2007-01-26  Bruno Haible  <bruno@clisp.org>
54929
54930         * MODULES.html.sh (Unicode string functions): Add the new modules.
54931
54932         * modules/uniconv/u32-strconv-to-locale: New file.
54933         * lib/uniconv/u32-strconv-to-locale.c: New file.
54934
54935         * modules/uniconv/u16-strconv-to-locale: New file.
54936         * lib/uniconv/u16-strconv-to-locale.c: New file.
54937
54938         * modules/uniconv/u8-strconv-to-locale: New file.
54939         * lib/uniconv/u8-strconv-to-locale.c: New file.
54940
54941         * modules/uniconv/u32-strconv-from-locale: New file.
54942         * lib/uniconv/u32-strconv-from-locale.c: New file.
54943
54944         * modules/uniconv/u16-strconv-from-locale: New file.
54945         * lib/uniconv/u16-strconv-from-locale.c: New file.
54946
54947         * modules/uniconv/u8-strconv-from-locale: New file.
54948         * lib/uniconv/u8-strconv-from-locale.c: New file.
54949
54950         * modules/uniconv/u32-strconv-to-enc: New file.
54951         * lib/uniconv/u32-strconv-to-enc.c: New file.
54952         * modules/uniconv/u32-strconv-to-enc-tests: New file.
54953         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
54954
54955         * modules/uniconv/u16-strconv-to-enc: New file.
54956         * lib/uniconv/u16-strconv-to-enc.c: New file.
54957         * lib/uniconv/u-strconv-to-enc.h: New file.
54958         * modules/uniconv/u16-strconv-to-enc-tests: New file.
54959         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
54960
54961         * modules/uniconv/u8-strconv-to-enc: New file.
54962         * lib/uniconv/u8-strconv-to-enc.c: New file.
54963         * modules/uniconv/u8-strconv-to-enc-tests: New file.
54964         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
54965
54966         * modules/uniconv/u32-strconv-from-enc: New file.
54967         * lib/uniconv/u32-strconv-from-enc.c: New file.
54968         * modules/uniconv/u32-strconv-from-enc-tests: New file.
54969         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
54970
54971         * modules/uniconv/u16-strconv-from-enc: New file.
54972         * lib/uniconv/u16-strconv-from-enc.c: New file.
54973         * modules/uniconv/u16-strconv-from-enc-tests: New file.
54974         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
54975
54976         * modules/uniconv/u8-strconv-from-enc: New file.
54977         * lib/uniconv/u8-strconv-from-enc.c: New file.
54978         * lib/uniconv/u-strconv-from-enc.h: New file.
54979         * modules/uniconv/u8-strconv-from-enc-tests: New file.
54980         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
54981
54982         * modules/uniconv/u32-conv-from-enc: New file.
54983         * lib/uniconv/u32-conv-from-enc.c: New file.
54984         * modules/uniconv/u32-conv-from-enc-tests: New file.
54985         * tests/uniconv/test-u32-conv-from-enc.c: New file.
54986
54987         * modules/uniconv/u16-conv-from-enc: New file.
54988         * lib/uniconv/u16-conv-from-enc.c: New file.
54989         * lib/uniconv/u-conv-from-enc.h: New file.
54990         * modules/uniconv/u16-conv-from-enc-tests: New file.
54991         * tests/uniconv/test-u16-conv-from-enc.c: New file.
54992
54993         * modules/uniconv/u8-conv-from-enc: New file.
54994         * lib/uniconv/u8-conv-from-enc.c: New file.
54995         * modules/uniconv/u8-conv-from-enc-tests: New file.
54996         * tests/uniconv/test-u8-conv-from-enc.c: New file.
54997
54998         * modules/uniconv/base: New file.
54999         * lib/uniconv.h: New file.
55000
55001 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55002
55003         * doc/gnulib-tool.texi (Initial import): Update to match current
55004         behavior with strdup module.
55005         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55006         * lib/memmem.h: Remove; all uses removed.  This is now done
55007         by <string.h>.
55008         * lib/mempcpy.h: Likewise.
55009         * lib/memrchr.h: Likewise.
55010         * lib/stpcpy.h: Likewise.
55011         * lib/stpncpy.h: Likewise.
55012         * lib/strcase.h: Likewise.
55013         * lib/strchrnul.h: Likewise.
55014         * lib/strdup.h: Likewise.
55015         * lib/strndup.h: Likewise.
55016         * lib/strnlen.h: Likewise.
55017         * lib/strpbrk.h: Likewise.
55018         * lib/strsep.h: Likewise.
55019         * lib/strstr.h: Likewise.
55020         * lib/strtok_r.h: Likewise.
55021         * lib/string_.h: New file.
55022         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55023         Rely on <string.h> instead.
55024         * lib/canon-host.c: Likewise.
55025         * lib/chdir-long.c: Likewise.
55026         * lib/concatpath.c: Likewise.
55027         * lib/exclude.c: Likewise.
55028         * lib/fchdir.c: Likewise.
55029         * lib/getaddrinfo.c: Likewise.
55030         * lib/getcwd.c: Likewise.
55031         * lib/getsubopt.c: Likewise.
55032         * lib/glob.c: Likewise.
55033         * lib/hard-locale.c: Likewise.
55034         * lib/iconvme.c: Likewise.
55035         * lib/javacomp.c: Likewise.
55036         * lib/mempcpy.c: Likewise.
55037         * lib/memrchr.c: Likewise.
55038         * lib/regex_internal.h: Likewise.
55039         * lib/stpncpy.c: Likewise.
55040         * lib/strcasecmp.c: Likewise.
55041         * lib/strchrnul.c: Likewise.
55042         * lib/strdup.c: Likewise.
55043         * lib/striconv.c: Likewise.
55044         * lib/striconveh.c: Likewise.
55045         * lib/striconveha.c: Likewise.
55046         * lib/strncasecmp.c: Likewise.
55047         * lib/strndup.c: Likewise.
55048         * lib/strnlen.c: Likewise.
55049         * lib/strsep.c: Likewise.
55050         * lib/strstr.c: Likewise.
55051         * lib/strtok_r.c: Likewise.
55052         * lib/userspec.c: Likewise.
55053         * lib/w32spawn.h: Likewise.
55054         * lib/xstrndup.c: Likewise.
55055         * lib/mountlist.c (strstr): Remove decl.
55056         * m4/string_h.m4: New file.
55057         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55058         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55059         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55060         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55061         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55062         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55063         Set REPLACE_STRCASECMP if necessary.
55064         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55065         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55066         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55067         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55068         HAVE_DECL_STRDUP if necessary.
55069         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55070         since gl_FUNC_STRNDUP does that now.
55071         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55072         Check for decl here...
55073         (gl_PREREQ_STRNLEN): ... not here.
55074         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55075         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55076         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55077         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55078         necessary.
55079         * modules/string: New file.
55080         * modules/memmem (Files): Remove special-purpose include file.
55081         (Depends-on): Add string.
55082         (Include): Include <string.h>, not the removed file.
55083         * modules/mempcpy: Likewise.
55084         * modules/memrchr: Likewise.
55085         * modules/stpcpy: Likewise.
55086         * modules/stpncpy: Likewise.
55087         * modules/strcase: Likewise.
55088         * modules/strchrnul: Likewise.
55089         * modules/strdup: Likewise.
55090         * modules/strndup: Likewise.
55091         * modules/strnlen: Likewise.
55092         * modules/strpbrk: Likewise.
55093         * modules/strsep: Likewise.
55094         * modules/strstr: Likewise.
55095         * modules/strtok_r: Likewise.
55096         * tests/test-dirname.c: Don't include "strdup.h", since
55097         <string.h> now suffices.
55098         * tests/test-memmem.c: Don't include "memmem.h", since
55099         <string.h> now suffices.
55100
55101 2007-01-25  Bruno Haible  <bruno@clisp.org>
55102
55103         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55104         *resultp is 0.
55105
55106         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55107         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55108         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55109         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55110
55111         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55112         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55113         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55114         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55115         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55116         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55117
55118 2007-01-24  Bruno Haible  <bruno@clisp.org>
55119
55120         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55121         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55122         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55123         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55124         gl_FUNC_FTS_CORE.
55125         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55126         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55127         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55128         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55129         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55130         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55131         gl_FUNC_FCHOWNAT.
55132         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55133         gl_FUNC_STRFTIME.
55134         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55135         Reported by Ralf Wildenhues.
55136
55137 2007-01-24  Bruno Haible  <bruno@clisp.org>
55138
55139         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55140         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55141         gl_GETADDRINFO.
55142         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55143         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55144         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55145
55146 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55147
55148         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55149         Don't use 'exit'; just return from 'main'.
55150         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55151
55152         * lib/fnmatch_.h: Readjust white space and comments to match
55153         glibc, to avoid spurious diffs.
55154
55155 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55156
55157         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55158         2004-12-01 change by Jakub Jelinek, since this code won't compile
55159         if !LIBC.  Problem reported by Bob Proulx.
55160
55161 2007-01-23  Bruno Haible  <bruno@clisp.org>
55162
55163         * lib/striconveh.c: Include c-strcaseeq.h.
55164         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55165         * modules/striconveh (Depends-on): Add c-strcaseeq.
55166
55167 2007-01-23  Bruno Haible  <bruno@clisp.org>
55168
55169         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55170
55171         * modules/c-strcaseeq: New file.
55172         * lib/c-strcaseeq.h: New file.
55173
55174         * modules/streq: New file.
55175         * lib/streq.h: New file.
55176
55177 2007-01-23  Bruno Haible  <bruno@clisp.org>
55178
55179         * modules/striconveha-tests: New file.
55180         * tests/test-striconveha.c: New file.
55181
55182         * lib/striconveha.h: Include <stdbool.h>.
55183         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55184         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55185         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55186         (mem_iconveha): New function.
55187         (str_iconveha_notranslit): Renamed from str_iconveha.
55188         (str_iconveha): New function.
55189         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55190         c-strcase.
55191
55192 2007-01-23  Bruno Haible  <bruno@clisp.org>
55193
55194         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55195         encodings without forgiving before trying any encoding with handler.
55196         (str_iconveha): Try all encodings without forgiving before trying any
55197         encoding with handler.
55198
55199 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55200
55201         Import the following changes from libc.
55202
55203         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55204
55205         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55206
55207         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55208
55209         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55210         normal_bracket label.
55211
55212         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55213
55214         [BZ #361]
55215         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55216         to normal_bracket after fetching the next character.
55217
55218 2007-01-22  Bruno Haible  <bruno@clisp.org>
55219
55220         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55221         argument.
55222         * lib/striconveh.c (iconv_carefully_1): New function.
55223         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55224         argument.
55225         (str_cd_iconveh): Update.
55226         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55227         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55228         * tests/test-striconveh.c (MAGIC): New macro.
55229         (new_offsets): New function.
55230         (main): Test call with and without offsets.
55231
55232 2007-01-22  Bruno Haible  <bruno@clisp.org>
55233
55234         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55235         * modules/sys_select (Makefile.am): Likewise.
55236         * modules/sys_socket (Makefile.am): Likewise.
55237         * modules/sys_time (Makefile.am): Likewise.
55238
55239 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55240
55241         * modules/gettimeofday (License): Change from GPL to LGPL, since
55242         gettimeofday is a library function.
55243
55244 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55245
55246         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55247
55248 2007-01-21  Bruno Haible  <bruno@clisp.org>
55249
55250         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55251
55252 2007-01-21  Bruno Haible  <bruno@clisp.org>
55253
55254         * modules/striconveha: New file.
55255         * lib/striconveha.h: New file.
55256         * lib/striconveha.c: New file.
55257         * MODULES.html.sh (Internationalization functions): Add striconveha.
55258         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55259         string.
55260         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55261
55262 2007-01-21  Bruno Haible  <bruno@clisp.org>
55263
55264         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55265         * lib/striconveh.c (str_iconveh): Likewise.
55266
55267 2007-01-21  Bruno Haible  <bruno@clisp.org>
55268
55269         * lib/striconveh.h (mem_iconveh): New declaration.
55270         * lib/striconveh.c (mem_iconveh): New function.
55271         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55272
55273 2007-01-21  Bruno Haible  <bruno@clisp.org>
55274
55275         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55276
55277         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55278         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55279         original result buffer.
55280         (str_cd_iconveh): Update.
55281         * tests/test-striconveh.c (main): Update.
55282
55283         * lib/striconv.h (mem_cd_iconv): Change specification.
55284         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55285         result buffer.
55286         (str_cd_iconv): Update.
55287         * tests/test-striconv.c (main): Update.
55288
55289 2007-01-21  Bruno Haible  <bruno@clisp.org>
55290
55291         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55292
55293 2007-01-20  Jim Meyering  <jim@meyering.net>
55294
55295         * lib/userspec.c (parse_with_separator): If a user or group string
55296         starts with "+", skip the corresponding name-to-ID look-up, since
55297         such a look-up must fail: user and group names may not include "+".
55298
55299 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55300
55301         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55302         since we now assume the sys_time module.
55303         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55304         check for sys/time.h; no longer needed.
55305         * modules/poll (Depends-on): Depend on sys_time.
55306
55307 2007-01-18  Bruno Haible  <bruno@clisp.org>
55308
55309         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55310         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55311
55312         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55313         gettimeofday.
55314
55315         * tests/test-gettimeofday.c: Include <time.h>.
55316         (dummy): Remove variable.
55317
55318         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55319         gl_HEADER_SYS_TIME_H.
55320         (gl_HEADER_SYS_TIME_H): New macro.
55321
55322         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55323         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55324         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55325         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55326         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55327         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55328         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55329         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55330         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55331         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55332         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55333
55334         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55335         last change; it caused a compilation error when cross-compiling to
55336         Cygwin.
55337
55338 2007-01-18  Jim Meyering  <jim@meyering.net>
55339
55340         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55341         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55342         than the race-prone "test -d sys || mkdir sys".
55343         (configure.ac): Use AC_PROG_MKDIR_P.
55344         * modules/sys_select: Likewise.
55345         * modules/sys_socket: Likewise.
55346         * modules/sys_time: Likewise.
55347
55348 2007-01-18  Eric Blake  <ebb9@byu.net>
55349
55350         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55351         replace gettimeofday.
55352         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55353         name, to avoid infinite recursion.
55354
55355 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55356
55357         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55358         module sys_time.
55359         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55360         assume timespec.h defines struct timeval.
55361         * lib/settime.c: Likewise.
55362         * lib/utimens.c: Likewise.
55363         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55364         since we now assume the gettimeofday module.
55365         * lib/tempname.c (__gen_tempname): Likewise.
55366         * lib/gettimeofday.h: Remove.
55367         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55368         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55369         Include <time.h>, for 'time()'.
55370         (localtime_buffer_addr): Also use this workaround if
55371         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55372         to simplify the uses.  All uses changed.
55373         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55374         that #undef is inside {}, and 'const' follows type name consistently.
55375         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55376         (gettimeofday): Do not use the maximum possible value for
55377         tv->tv_usec, since that might break usages other than ls.c.
55378         Instead, we'll leave ls.c alone.  This undoes today's patch
55379         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55380         we've never observed the problem but might as well keep the
55381         canary.
55382         * lib/nanosleep.c: Include timespec.h first, for interface check.
55383         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55384         now assume the sys_time module.
55385         * lib/tempname.c: Likewise.
55386         * lib/timespec.h: Likewise.
55387         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55388         needed.
55389         * lib/strftime.c: Likewise.
55390         * lib/timespec.h: Likewise.
55391         * lib/posixtm.c: Include posixtm.h first, for interface check.
55392         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55393         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55394         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55395         * lib/sys_time_.h: New file.
55396         * lib/timespec.h (struct timespec): Use long int, not long.
55397         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55398         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55399         Remove obsolescent call to AC_HEADER_TIME.
55400         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55401         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55402         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55403         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55404         Likewise.
55405         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55406         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55407         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55408         into the sys_time module.  Check for gettimeofday just once.
55409         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55410         for gettimeofday signature to just check the signature.  Merely
55411         compile it, since linking doesn't test signature.  Improve test for
55412         whether gettimeofday.o is actually needed.
55413         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55414         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55415         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55416         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55417         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55418         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55419         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55420         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55421         than worrying about sys/time.h.
55422         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55423         Don't bother worrying about TIME_WITH_SYS_TIME.
55424         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55425         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55426         * m4/sys_time_h.m4: New file.
55427         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55428         Don't include sys/time.h.  Return from main rather than exiting.
55429         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55430         all uses changed.
55431         * modules/gethrxtime (Depends-on): Add sys_time.
55432         * modules/gettime (Depends-on): Likewise.
55433         * modules/gettimeofday (Depends-on): Likewise.
55434         * modules/nanosleep (Depends-on): Likewise.
55435         * modules/settime (Depends-on): Likewise.
55436         * modules/tempname (Depends-on): Likewise.
55437         * modules/utimens (Depends-on): Likewise.
55438         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55439         (Include): Change back to <sys/time.h>.
55440         (Maintainer): Add self.
55441         * modules/sys_time: New file.
55442         * modules/tempname (Depends-on): Add gettimeofday.
55443         * tests/test-gettimeofday.c: Include <sys/time.h>
55444         rather than gettimeofday.h.
55445
55446 2007-01-17  Bruno Haible  <bruno@clisp.org>
55447
55448         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55449         the license default to GPL.
55450         (func_create_testdir): Don't complain if a module is LGPL and its
55451         tests module depends on GPLed modules.
55452
55453 2007-01-17  Bruno Haible  <bruno@clisp.org>
55454
55455         * lib/gettimeofday.c (gettimeofday): Add code for the case
55456         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55457         maximum possible value for tv->tv_usec, rather than the minimum one.
55458
55459 2005-10-08  Martin Lambers  <marlam@marlam.de>
55460 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55461 2007-01-16  Bruno Haible  <bruno@clisp.org>
55462
55463         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55464         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55465         gl_FUNC_GETTIMEOFDAY.
55466         (Include): Add gettimeofday.h.
55467         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55468         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55469         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55470         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55471         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55472         * lib/gettimeofday.h: New file.
55473         * lib/gettimeofday.c: Include <sys/timeb.h>.
55474         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55475         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55476         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55477         fall back on time().
55478
55479         * tests/test-gettimeofday.c: New file.
55480         * modules/gettimeofday-tests: New file.
55481
55482 2007-01-16  Eric Blake  <ebb9@byu.net>
55483
55484         * modules/fnmatch (Depends-on): Depend on wchar.
55485         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55486         * m4/fnmatch.m4: Likewise.
55487         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55488         * m4/mbchar.m4: Likewise.
55489         * modules/mbswidth (Depends-on): Depend on wchar.
55490         * lib/mbswidth.c: Assume <wchar.h>.
55491         * m4/mbswidth.m4: Likewise.
55492         * modules/quotearg (Depends-on): Depend on wchar.
55493         * lib/quotearg.c: Assume <wchar.h>.
55494         * m4/quotearg.m4: Likewise.
55495         * modules/regex (Depends-on): Depend on wchar.
55496         * lib/regex_internal.h: Assume <wchar.h>.
55497         * m4/regex.m4: Likewise.
55498         * modules/stdint (Depends-on): Depend on wchar.
55499         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55500         * m4/stdint.m4: Likewise.
55501         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55502         * modules/strftime (Depends-on): Depend on wchar.
55503         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55504         * modules/strtol (Depends-on): Depend on wchar.
55505         * lib/strtol.c: Assume <wchar.h>.
55506         * modules/wcwidth (Depends-on): Depend on wchar.
55507         * lib/wcwidth.h: Assume <wchar.h>.
55508         * m4/wcwidth.m4: Likewise.
55509
55510 2007-01-16  Bruno Haible  <bruno@clisp.org>
55511
55512         * modules/csharpexec-script: New, created from...
55513         * modules/csharpexec: ... this.
55514
55515 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55516
55517         * modules/javaexec-script: New, created from...
55518         * modules/javaexec: ... this.
55519
55520 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55521
55522         * modules/poll (Dependencies): Add sys_select.
55523
55524 2007-01-15  Jim Meyering  <jim@meyering.net>
55525
55526         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
55527         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
55528         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
55529         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
55530
55531 2007-01-15  Bruno Haible  <bruno@clisp.org>
55532
55533         * modules/striconveh: New file.
55534         * lib/striconveh.h: New file.
55535         * lib/striconveh.c: New file.
55536         * MODULES.html.sh (Internationalization functions): Add striconveh.
55537
55538         * modules/striconveh-tests: New file.
55539         * tests/test-striconveh.c: New file.
55540
55541 2007-01-15  Bruno Haible  <bruno@clisp.org>
55542
55543         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
55544         not from GNU libiconv or GNU libc.
55545
55546 2007-01-15  Bruno Haible  <bruno@clisp.org>
55547
55548         * doc/gnulib-intro.texi (Copyright): Explain the different license
55549         terms for module descriptions, autoconf macros, tests, documentation.
55550
55551 2007-01-14  Bruno Haible  <bruno@clisp.org>
55552
55553         * modules/striconv-tests: New file.
55554         * tests/test-striconv.c: New file.
55555
55556 2007-01-14  Bruno Haible  <bruno@clisp.org>
55557
55558         * modules/iconv-tests: New file.
55559         * tests/test-iconv.c: New file.
55560
55561 2007-01-14  Bruno Haible  <bruno@clisp.org>
55562
55563         * gnulib-tool (func_get_license): For test modules, use the license of
55564         the main module.
55565
55566 2007-01-14  Bruno Haible  <bruno@clisp.org>
55567
55568         * modules/iconv (Include): Clarify that <iconv.h> can only be included
55569         if iconv is found to exist.
55570
55571 2007-01-14  Bruno Haible  <bruno@clisp.org>
55572
55573         * modules/c-ctype-tests: New file.
55574         * tests/test-c-ctype.c: New file.
55575
55576 2007-01-14  Bruno Haible  <bruno@clisp.org>
55577
55578         * modules/binary-io-tests: New file.
55579         * tests/test-binary-io.sh: New file.
55580         * tests/test-binary-io.c: New file.
55581
55582 2007-01-14  Bruno Haible  <bruno@clisp.org>
55583
55584         * modules/array-oset-tests: New file.
55585         * tests/test-array_oset.c: New file.
55586
55587 2007-01-14  Bruno Haible  <bruno@clisp.org>
55588
55589         * modules/array-list-tests: New file.
55590         * tests/test-array_list.c: New file.
55591
55592 2007-01-14  Bruno Haible  <bruno@clisp.org>
55593
55594         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
55595         and make.
55596         Reported by Simon Josefsson in
55597         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
55598
55599 2007-01-14  Bruno Haible  <bruno@clisp.org>
55600
55601         * modules/allocsa-tests: New file.
55602         * tests/test-allocsa.c: New file.
55603
55604 2007-01-14  Bruno Haible  <bruno@clisp.org>
55605
55606         * modules/fchdir (Depends-on): Add absolute-header.
55607         * modules/unistd (Depends-on): Likewise.
55608
55609 2006-12-30  Bruno Haible  <bruno@clisp.org>
55610
55611         * modules/fchdir: New file.
55612         * modules/unistd (Files): Add lib/unistd_.h.
55613         (Makefile.am): Generate unistd.h from unistd_.h.
55614         * lib/fchdir.c: New file.
55615         * lib/dirent_.h: New file.
55616         * lib/unistd_.h: New file.
55617         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
55618         * m4/fchdir.m4: New file.
55619         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
55620         (gl_HEADER_UNISTD): Invoke it.
55621         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
55622         function.
55623         * lib/backupfile.c (opendir, closedir): Undefine.
55624         * lib/chown.c (open, close): Undefine.
55625         * lib/clean-temp.c (open, close): Undefine.
55626         * lib/copy-file.c (open, close): Undefine.
55627         * lib/execute.c (open, close): Undefine.
55628         * lib/fsusage.c (open, close): Undefine.
55629         * lib/gc-gnulib.c (open, close): Undefine.
55630         * lib/getcwd.c (opendir, closedir): Undefine.
55631         * lib/glob.c (opendir, closedir): Undefine.
55632         * lib/javacomp.c (open, close): Undefine.
55633         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
55634         * lib/openat-proc.c (open, close): Undefine.
55635         * lib/pagealign_alloc.c (open, close): Undefine.
55636         * lib/pipe.c (open, close): Undefine.
55637         * lib/progreloc.c (open, close): Undefine.
55638         * lib/savedir.c (opendir, closedir): Undefine.
55639         * lib/utime.c (open, close): Undefine.
55640         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
55641
55642 2007-01-10  Bruno Haible  <bruno@clisp.org>
55643
55644         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
55645
55646 2007-01-12  Eric Blake  <ebb9@byu.net>
55647
55648         Provide a robust <wchar.h>.  Further simplifications are now
55649         possible in other modules, but not included here.
55650         * modules/wchar: New module.
55651         * m4/wchar.m4: New file.
55652         * lib/wchar_.h: Likewise.
55653         * modules/mbchar (Depends-on): Depend on wchar, as the first use
55654         of the new module.
55655         * MODULES.html.sh (Extended multibyte and wide character utilities):
55656         New section.
55657
55658 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
55659
55660         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
55661         to a reasonable default for memory allocation.
55662         (xreadlink): Don't allocate a huge buffer, to work around a buggy
55663         file system that reports garbage st_size values for symlinks.
55664         Problem reported by Liyang Hu.
55665
55666 2007-01-11  Simon Josefsson  <simon@josefsson.org>
55667
55668         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
55669         Emacs .#* auto-save files).
55670
55671 2007-01-11  Bruno Haible  <bruno@clisp.org>
55672
55673         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
55674         directory.
55675
55676 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55677
55678         Use @...@ consistently in lib/wctype_.h.
55679         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
55680         on it being set to 1 or 0.
55681         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
55682         go back to AC_SUBSTing it.
55683         * modules/wctype (Makefile.am): Undo previous change.
55684
55685 2007-01-10  Eric Blake  <ebb9@byu.net>
55686
55687         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
55688         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
55689         * modules/wctype (Makefile.am): Likewise.
55690         Reported by Chris McGuire.
55691
55692 2007-01-10  Jim Meyering  <jim@meyering.net>
55693
55694         fts.c: a small readability/maintainability improvement
55695         * lib/fts.c (fts_read): Make this code slightly more readable and
55696         maintainable by hoisting the "sp->fts_cur = p" assignments to
55697         immediately follow the statements that set P.  Derived from
55698         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55699
55700 2007-01-10  Eric Blake  <ebb9@byu.net>
55701
55702         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55703         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55705         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55706         Reported by Chris McGuire.
55707
55708 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55709
55710         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55711         in sed script.
55712
55713 2007-01-09  Bruno Haible  <bruno@clisp.org>
55714
55715         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55716         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55717         variables.
55718         (func_module): Use them.
55719
55720 2007-01-09  Bruno Haible  <bruno@clisp.org>
55721
55722         * modules/unistr/base: New file.
55723         * lib/unistr.h: New file.
55724
55725         * modules/unistr/u8-to-u16: New file.
55726         * lib/unistr/u8-to-u16.c: New file.
55727
55728         * modules/unistr/u8-to-u32: New file.
55729         * lib/unistr/u8-to-u32.c: New file.
55730
55731         * modules/unistr/u16-to-u8: New file.
55732         * lib/unistr/u16-to-u8.c: New file.
55733
55734         * modules/unistr/u16-to-u32: New file.
55735         * lib/unistr/u16-to-u32.c: New file.
55736
55737         * modules/unistr/u32-to-u8: New file.
55738         * lib/unistr/u32-to-u8.c: New file.
55739
55740         * modules/unistr/u32-to-u16: New file.
55741         * lib/unistr/u32-to-u16.c: New file.
55742
55743         * modules/unistr/u8-check: New file.
55744         * modules/unistr/u16-check: New file.
55745         * modules/unistr/u32-check: New file.
55746         * lib/unistr/u8-check.c: New file.
55747         * lib/unistr/u16-check.c: New file.
55748         * lib/unistr/u32-check.c: New file.
55749
55750         * modules/unistr/u8-chr: New file.
55751         * modules/unistr/u16-chr: New file.
55752         * modules/unistr/u32-chr: New file.
55753         * lib/unistr/u8-chr.c: New file.
55754         * lib/unistr/u16-chr.c: New file.
55755         * lib/unistr/u32-chr.c: New file.
55756
55757         * modules/unistr/u8-cmp: New file.
55758         * modules/unistr/u16-cmp: New file.
55759         * modules/unistr/u32-cmp: New file.
55760         * lib/unistr/u8-cmp.c: New file.
55761         * lib/unistr/u16-cmp.c: New file.
55762         * lib/unistr/u32-cmp.c: New file.
55763
55764         * modules/unistr/u8-cpy: New file.
55765         * modules/unistr/u16-cpy: New file.
55766         * modules/unistr/u32-cpy: New file.
55767         * lib/unistr/u8-cpy.c: New file.
55768         * lib/unistr/u16-cpy.c: New file.
55769         * lib/unistr/u32-cpy.c: New file.
55770         * lib/unistr/u-cpy.h: New file.
55771
55772         * modules/unistr/u8-cpy-alloc: New file.
55773         * modules/unistr/u16-cpy-alloc: New file.
55774         * modules/unistr/u32-cpy-alloc: New file.
55775         * lib/unistr/u8-cpy-alloc.c: New file.
55776         * lib/unistr/u16-cpy-alloc.c: New file.
55777         * lib/unistr/u32-cpy-alloc.c: New file.
55778         * lib/unistr/u-cpy-alloc.h: New file.
55779
55780         * modules/unistr/u8-endswith: New file.
55781         * modules/unistr/u16-endswith: New file.
55782         * modules/unistr/u32-endswith: New file.
55783         * lib/unistr/u8-endswith.c: New file.
55784         * lib/unistr/u16-endswith.c: New file.
55785         * lib/unistr/u32-endswith.c: New file.
55786         * lib/unistr/u-endswith.h: New file.
55787
55788         * modules/unistr/u8-mblen: New file.
55789         * modules/unistr/u16-mblen: New file.
55790         * modules/unistr/u32-mblen: New file.
55791         * lib/unistr/u8-mblen.c: New file.
55792         * lib/unistr/u16-mblen.c: New file.
55793         * lib/unistr/u32-mblen.c: New file.
55794
55795         * modules/unistr/u8-mbtouc: New file.
55796         * modules/unistr/u16-mbtouc: New file.
55797         * modules/unistr/u32-mbtouc: New file.
55798         * lib/unistr/u8-mbtouc.c: New file.
55799         * lib/unistr/u16-mbtouc.c: New file.
55800         * lib/unistr/u32-mbtouc.c: New file.
55801
55802         * modules/unistr/u8-mbtouc-safe: New file.
55803         * modules/unistr/u16-mbtouc-safe: New file.
55804         * modules/unistr/u32-mbtouc-safe: New file.
55805         * lib/unistr/u8-mbtouc-safe.c: New file.
55806         * lib/unistr/u16-mbtouc-safe.c: New file.
55807         * lib/unistr/u32-mbtouc-safe.c: New file.
55808
55809         * modules/unistr/u8-move: New file.
55810         * modules/unistr/u16-move: New file.
55811         * modules/unistr/u32-move: New file.
55812         * lib/unistr/u8-move.c: New file.
55813         * lib/unistr/u16-move.c: New file.
55814         * lib/unistr/u32-move.c: New file.
55815         * lib/unistr/u-move.h: New file.
55816
55817         * modules/unistr/u8-next: New file.
55818         * modules/unistr/u16-next: New file.
55819         * modules/unistr/u32-next: New file.
55820         * lib/unistr/u8-next.c: New file.
55821         * lib/unistr/u16-next.c: New file.
55822         * lib/unistr/u32-next.c: New file.
55823
55824         * modules/unistr/u8-prev: New file.
55825         * modules/unistr/u16-prev: New file.
55826         * modules/unistr/u32-prev: New file.
55827         * lib/unistr/u8-prev.c: New file.
55828         * lib/unistr/u16-prev.c: New file.
55829         * lib/unistr/u32-prev.c: New file.
55830
55831         * modules/unistr/u8-set: New file.
55832         * modules/unistr/u16-set: New file.
55833         * modules/unistr/u32-set: New file.
55834         * lib/unistr/u8-set.c: New file.
55835         * lib/unistr/u16-set.c: New file.
55836         * lib/unistr/u32-set.c: New file.
55837         * lib/unistr/u-set.h: New file.
55838
55839         * modules/unistr/u8-startswith: New file.
55840         * modules/unistr/u16-startswith: New file.
55841         * modules/unistr/u32-startswith: New file.
55842         * lib/unistr/u8-startswith.c: New file.
55843         * lib/unistr/u16-startswith.c: New file.
55844         * lib/unistr/u32-startswith.c: New file.
55845         * lib/unistr/u-startswith.h: New file.
55846
55847         * modules/unistr/u8-stpcpy: New file.
55848         * modules/unistr/u16-stpcpy: New file.
55849         * modules/unistr/u32-stpcpy: New file.
55850         * lib/unistr/u8-stpcpy.c: New file.
55851         * lib/unistr/u16-stpcpy.c: New file.
55852         * lib/unistr/u32-stpcpy.c: New file.
55853         * lib/unistr/u-stpcpy.h: New file.
55854
55855         * modules/unistr/u8-stpncpy: New file.
55856         * modules/unistr/u16-stpncpy: New file.
55857         * modules/unistr/u32-stpncpy: New file.
55858         * lib/unistr/u8-stpncpy.c: New file.
55859         * lib/unistr/u16-stpncpy.c: New file.
55860         * lib/unistr/u32-stpncpy.c: New file.
55861         * lib/unistr/u-stpncpy.h: New file.
55862
55863         * modules/unistr/u8-strcat: New file.
55864         * modules/unistr/u16-strcat: New file.
55865         * modules/unistr/u32-strcat: New file.
55866         * lib/unistr/u8-strcat.c: New file.
55867         * lib/unistr/u16-strcat.c: New file.
55868         * lib/unistr/u32-strcat.c: New file.
55869         * lib/unistr/u-strcat.h: New file.
55870
55871         * modules/unistr/u8-strchr: New file.
55872         * modules/unistr/u16-strchr: New file.
55873         * modules/unistr/u32-strchr: New file.
55874         * lib/unistr/u8-strchr.c: New file.
55875         * lib/unistr/u16-strchr.c: New file.
55876         * lib/unistr/u32-strchr.c: New file.
55877
55878         * modules/unistr/u8-strcmp: New file.
55879         * modules/unistr/u16-strcmp: New file.
55880         * modules/unistr/u32-strcmp: New file.
55881         * lib/unistr/u8-strcmp.c: New file.
55882         * lib/unistr/u16-strcmp.c: New file.
55883         * lib/unistr/u32-strcmp.c: New file.
55884
55885         * modules/unistr/u8-strcpy: New file.
55886         * modules/unistr/u16-strcpy: New file.
55887         * modules/unistr/u32-strcpy: New file.
55888         * lib/unistr/u8-strcpy.c: New file.
55889         * lib/unistr/u16-strcpy.c: New file.
55890         * lib/unistr/u32-strcpy.c: New file.
55891         * lib/unistr/u-strcpy.h: New file.
55892
55893         * modules/unistr/u8-strcspn: New file.
55894         * modules/unistr/u16-strcspn: New file.
55895         * modules/unistr/u32-strcspn: New file.
55896         * lib/unistr/u8-strcspn.c: New file.
55897         * lib/unistr/u16-strcspn.c: New file.
55898         * lib/unistr/u32-strcspn.c: New file.
55899         * lib/unistr/u-strcspn.h: New file.
55900
55901         * modules/unistr/u8-strdup: New file.
55902         * modules/unistr/u16-strdup: New file.
55903         * modules/unistr/u32-strdup: New file.
55904         * lib/unistr/u8-strdup.c: New file.
55905         * lib/unistr/u16-strdup.c: New file.
55906         * lib/unistr/u32-strdup.c: New file.
55907         * lib/unistr/u-strdup.h: New file.
55908
55909         * modules/unistr/u8-strlen: New file.
55910         * modules/unistr/u16-strlen: New file.
55911         * modules/unistr/u32-strlen: New file.
55912         * lib/unistr/u8-strlen.c: New file.
55913         * lib/unistr/u16-strlen.c: New file.
55914         * lib/unistr/u32-strlen.c: New file.
55915         * lib/unistr/u-strlen.h: New file.
55916
55917         * modules/unistr/u8-strmblen: New file.
55918         * modules/unistr/u16-strmblen: New file.
55919         * modules/unistr/u32-strmblen: New file.
55920         * lib/unistr/u8-strmblen.c: New file.
55921         * lib/unistr/u16-strmblen.c: New file.
55922         * lib/unistr/u32-strmblen.c: New file.
55923
55924         * modules/unistr/u8-strmbtouc: New file.
55925         * modules/unistr/u16-strmbtouc: New file.
55926         * modules/unistr/u32-strmbtouc: New file.
55927         * lib/unistr/u8-strmbtouc.c: New file.
55928         * lib/unistr/u16-strmbtouc.c: New file.
55929         * lib/unistr/u32-strmbtouc.c: New file.
55930
55931         * modules/unistr/u8-strncat: New file.
55932         * modules/unistr/u16-strncat: New file.
55933         * modules/unistr/u32-strncat: New file.
55934         * lib/unistr/u8-strncat.c: New file.
55935         * lib/unistr/u16-strncat.c: New file.
55936         * lib/unistr/u32-strncat.c: New file.
55937         * lib/unistr/u-strncat.h: New file.
55938
55939         * modules/unistr/u8-strncmp: New file.
55940         * modules/unistr/u16-strncmp: New file.
55941         * modules/unistr/u32-strncmp: New file.
55942         * lib/unistr/u8-strncmp.c: New file.
55943         * lib/unistr/u16-strncmp.c: New file.
55944         * lib/unistr/u32-strncmp.c: New file.
55945
55946         * modules/unistr/u8-strncpy: New file.
55947         * modules/unistr/u16-strncpy: New file.
55948         * modules/unistr/u32-strncpy: New file.
55949         * lib/unistr/u8-strncpy.c: New file.
55950         * lib/unistr/u16-strncpy.c: New file.
55951         * lib/unistr/u32-strncpy.c: New file.
55952         * lib/unistr/u-strncpy.h: New file.
55953
55954         * modules/unistr/u8-strnlen: New file.
55955         * modules/unistr/u16-strnlen: New file.
55956         * modules/unistr/u32-strnlen: New file.
55957         * lib/unistr/u8-strnlen.c: New file.
55958         * lib/unistr/u16-strnlen.c: New file.
55959         * lib/unistr/u32-strnlen.c: New file.
55960         * lib/unistr/u-strnlen.h: New file.
55961
55962         * modules/unistr/u8-strpbrk: New file.
55963         * modules/unistr/u16-strpbrk: New file.
55964         * modules/unistr/u32-strpbrk: New file.
55965         * lib/unistr/u8-strpbrk.c: New file.
55966         * lib/unistr/u16-strpbrk.c: New file.
55967         * lib/unistr/u32-strpbrk.c: New file.
55968         * lib/unistr/u-strpbrk.h: New file.
55969
55970         * modules/unistr/u8-strrchr: New file.
55971         * modules/unistr/u16-strrchr: New file.
55972         * modules/unistr/u32-strrchr: New file.
55973         * lib/unistr/u8-strrchr.c: New file.
55974         * lib/unistr/u16-strrchr.c: New file.
55975         * lib/unistr/u32-strrchr.c: New file.
55976
55977         * modules/unistr/u8-strspn: New file.
55978         * modules/unistr/u16-strspn: New file.
55979         * modules/unistr/u32-strspn: New file.
55980         * lib/unistr/u8-strspn.c: New file.
55981         * lib/unistr/u16-strspn.c: New file.
55982         * lib/unistr/u32-strspn.c: New file.
55983         * lib/unistr/u-strspn.h: New file.
55984
55985         * modules/unistr/u8-strstr: New file.
55986         * modules/unistr/u16-strstr: New file.
55987         * modules/unistr/u32-strstr: New file.
55988         * lib/unistr/u8-strstr.c: New file.
55989         * lib/unistr/u16-strstr.c: New file.
55990         * lib/unistr/u32-strstr.c: New file.
55991         * lib/unistr/u-strstr.h: New file.
55992
55993         * modules/unistr/u8-strtok: New file.
55994         * modules/unistr/u16-strtok: New file.
55995         * modules/unistr/u32-strtok: New file.
55996         * lib/unistr/u8-strtok.c: New file.
55997         * lib/unistr/u16-strtok.c: New file.
55998         * lib/unistr/u32-strtok.c: New file.
55999         * lib/unistr/u-strtok.h: New file.
56000
56001         * modules/unistr/u8-uctomb: New file.
56002         * modules/unistr/u16-uctomb: New file.
56003         * modules/unistr/u32-uctomb: New file.
56004         * lib/unistr/u8-uctomb.c: New file.
56005         * lib/unistr/u16-uctomb.c: New file.
56006         * lib/unistr/u32-uctomb.c: New file.
56007
56008         * MODULES.html.sh (Unicode string functions): Add the new modules.
56009
56010 2007-01-08  Bruno Haible  <bruno@clisp.org>
56011
56012         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56013         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56014         subdirectories.
56015
56016 2007-01-08  Karl Berry  <karl@gnu.org>
56017
56018         * doc/error.texi: mention that main() fns must set program_name
56019         when progname is used.
56020
56021 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56022
56023         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56024         WCTYPE_H is empty, for the benefit of builds from non-distclean
56025         directories.  Problem reported by Eric Blake in
56026         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56027
56028 2007-01-08  Bruno Haible  <bruno@clisp.org>
56029
56030         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56031         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56032         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56033         PROVIDE_CANONICALIZE_FILENAME_MODE.
56034         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56035
56036 2007-01-08  Bruno Haible  <bruno@clisp.org>
56037
56038         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56039         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56040         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56041         * lib/fts.c: Likewise.
56042         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56043
56044 2006-12-25  Bruno Haible  <bruno@clisp.org>
56045
56046         * modules/utf8-ucs4-safe: New file.
56047         * lib/utf8-ucs4-safe.h: New file.
56048         * lib/unistr/utf8-ucs4-safe.c: New file.
56049
56050         * modules/utf16-ucs4-safe: New file.
56051         * lib/utf16-ucs4-safe.h: New file.
56052         * lib/unistr/utf16-ucs4-safe.c: New file.
56053
56054         * MODULES.html.sh (Unicode string functions): Add the new modules.
56055
56056 2007-01-08  Bruno Haible  <bruno@clisp.org>
56057
56058         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56059         (Depends-on): Add unitypes.
56060         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56061         (u8_mbtouc_aux): Move out to separate file.
56062         (u8_mbtouc): Use ucs4_t, uint8_t types.
56063         * lib/unistr/utf8-ucs4.c: New file.
56064
56065         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56066         (Depends-on): Add unitypes.
56067         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56068         (u16_mbtouc_aux): Move out to separate file.
56069         (u16_mbtouc): Use ucs4_t, uint16_t types.
56070         * lib/unistr/utf16-ucs4.c: New file.
56071
56072         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56073         (Depends-on): Add unitypes.
56074         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56075         (u8_uctomb_aux): Move out to separate file.
56076         (u8_uctomb): Use ucs4_t, uint8_t types.
56077         * lib/unistr/ucs4-utf8.c: New file.
56078
56079         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56080         (Depends-on): Add unitypes.
56081         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56082         (u16_uctomb_aux): Move out to separate file.
56083         (u16_uctomb): Use ucs4_t, uint16_t types.
56084         * lib/unistr/ucs4-utf16.c: New file.
56085
56086 2006-12-25  Bruno Haible  <bruno@clisp.org>
56087
56088         * modules/unitypes: New file.
56089         * lib/unitypes.h: New file.
56090         * MODULES.html.sh (func_all_modules): New section "Unicode string
56091         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56092         this section. Add unitypes.
56093
56094 2007-01-08  Bruno Haible  <bruno@clisp.org>
56095
56096         Avoid variable names that conflict with those from libtool.
56097         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56098         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56099         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56100         library_names_spec to acl_library_names_spec, hardcode_* to
56101         acl_hardcode_*.
56102         Reported by Ralf Wildenhues.
56103
56104 2007-01-08  Bruno Haible  <bruno@clisp.org>
56105
56106         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56107         definition.
56108         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56109         definition.
56110         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56111         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56112         definition.
56113         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56114         definition.
56115         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56116         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56117         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56118         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56119         definition.
56120         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56121         definition.
56122         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56123         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56124         GC_USE_<algorithm>.
56125         * lib/gc-libgcrypt.c: Likewise.
56126         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56127         * modules/gc-arctwo (configure.ac): Likewise.
56128         * modules/gc-des (configure.ac): Likewise.
56129         * modules/gc-hmac-md5 (configure.ac): Likewise.
56130         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56131         * modules/gc-md2 (configure.ac): Likewise.
56132         * modules/gc-md4 (configure.ac): Likewise.
56133         * modules/gc-md5 (configure.ac): Likewise.
56134         * modules/gc-random (configure.ac): Likewise.
56135         * modules/gc-rijndael (configure.ac): Likewise.
56136         * modules/gc-sha1 (configure.ac): Likewise.
56137
56138 2007-01-08  Bruno Haible  <bruno@clisp.org>
56139
56140         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56141         macro definition.
56142         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56143         definition.
56144         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56145         definition.
56146         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56147         * modules/fcntl-safer (configure.ac): Likewise.
56148         * modules/fopen-safer (configure.ac): Likewise.
56149         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56150         GNULIB_FWRITEERROR macro definition.
56151
56152 2007-01-08  Bruno Haible  <bruno@clisp.org>
56153
56154         * m4/gnulib-common.m4: New file.
56155         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56156         (func_get_filelist): Add m4/gnulib-common.m4.
56157
56158 2007-01-08  Bruno Haible  <bruno@clisp.org>
56159
56160         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56161         command.
56162
56163 2007-01-08  Jim Meyering  <jim@meyering.net>
56164
56165         Use a more robust test for a "can't happen" condition.
56166         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56167         narrowed the st_size value.  Presuming the "can't happen" condition
56168         is true, that narrowing could conceivably convert an invalid st_size
56169         value into a valid one.  Instead, use a change based on Matthew
56170         Woehlke's original patch.
56171
56172         Slight readability improvement: use an assert-like macro
56173         in place of literal "abort ()" uses.
56174         * lib/fts.c (fts_assert): Define.
56175         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56176         Use this macro instead of a bare 'abort'.
56177
56178 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56179
56180         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56181         simply work around them.
56182         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56183         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56184         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56185         declaring.
56186         Don't bother to define as macros, since the standard doesn't require it.
56187         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56188         longer worry about IRIX 5.3.
56189         (HAVE_WCTYPE_CTMP_BUG): Remove.
56190
56191 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56192
56193         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56194         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56195         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56196         Problems reported by Georg Schwarz for IRIX 5.3.
56197
56198         * gnulib-tool (autoconf_minversion): Take the maximum version number
56199         found, not the minimum.  Problem reported by James Youngman.
56200
56201 2007-01-03  Karl Berry  <karl@gnu.org>
56202
56203         * doc/error.texi: new file, explaining interaction with progname.
56204         * doc/gnulib.texi: include it.  Update copyright.
56205
56206 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56207
56208         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56209         AC_CANONICAL_HOST, to improve autobuild outputs.
56210
56211 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56212             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56213
56214         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56215         sockets, server sockets, and other file descriptors.  Count errors
56216         to compute the return value.  Reorder the code a bit to be easier
56217         to follow.  Don't set event bits that were not requested (except
56218         POLLERR and POLLHUP).
56219
56220 2007-01-01  Bruno Haible  <bruno@clisp.org>
56221
56222         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56223
56224 2007-01-03  Jim Meyering  <jim@meyering.net>
56225
56226         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56227
56228 2007-01-02  Bruno Haible  <bruno@clisp.org>
56229
56230         * modules/settime (Include): Require timespec.h.
56231         * modules/nanosleep (Include): Likewise.
56232
56233 2007-01-01  Bruno Haible  <bruno@clisp.org>
56234
56235         * gnulib-tool (func_emit_copyright_notice): Bump year.
56236         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56237
56238 2007-01-01  Bruno Haible  <bruno@clisp.org>
56239
56240         Improve support for OpenBSD.
56241         * build-aux/config.rpath (libname_spec): Export.
56242         (library_names_spec): New variable. Export.
56243         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56244         library_names_spec from the config.rpath output. Locate shared library
56245         through the name pattern in library_names_spec.
56246
56247 2007-01-01  Eric Blake  <ebb9@byu.net>
56248
56249         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56250
56251 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56252
56253         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56254         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56255         assume the C locale, and avoid an "eval" that could cause trouble.
56256         Problem with SORT reported by Bob Proulx.
56257
56258         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56259         Define.  Trivial patch from Henning Nielsen Lund, originally
56260         sent to bug-grep@gnu.org today.
56261
56262 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56263
56264         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56265         struct stat.  Problem reported by Henning Nielsen Lund.
56266         * lib/acl.c: Include acl.h first, to check interface.  Don't
56267         bother to include sys/types.h and sys/stat.h again.
56268
56269 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56270
56271         Import the following change from libc; problem reported by
56272         Sven Verdoolaege.
56273
56274         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56275
56276         [BZ #1373]
56277         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56278
56279 2006-12-28  Jim Meyering  <jim@meyering.net>
56280
56281         * build-aux/announce-gen: Do not assume that the package
56282         builds any of tar.gz, tar.bz2, and .xdelta files.
56283         Suggestion from Simon Josefsson.
56284
56285 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56286
56287         * modules/announce-gen: New file.
56288
56289 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56290
56291         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56292         handles its gotchas now.
56293         * lib/mbswidth.c: Likewise.
56294         * lib/wcwidth.h: Likewise.
56295         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56296         and iswcntrl; the wctype module does this stuff now.
56297         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56299         * modules/mbchar (Depends-on): Add wctype.
56300         * modules/mbswidth (Depends-on): Likewise.
56301         * modules/wcwidth (Depends-on): Likewise.
56302
56303 2006-12-27  Eric Blake  <ebb9@byu.net>
56304
56305         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56306         module uses more than what <wctype.h> is required to provide.
56307
56308 2006-12-26  Eric Blake  <ebb9@byu.net>
56309
56310         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56311
56312 2006-12-26  Eric Blake  <ebb9@byu.net>
56313
56314         * modules/absolute-header: New module.
56315         * modules/fcntl (Depends-on): Depend on it.
56316         * modules/inttypes (Depends-on): Likewise.
56317         * modules/stdint (Depends-on): Likewise.
56318         * modules/sys_stat (Depends-on): Likewise.
56319         * modules/wctype (Depends-on): Likewise.
56320         * MODULES.html.sh (Support for building libraries and
56321         executables): Document it.
56322
56323 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56324
56325         * gnulib-tool (SED): Remove, undoing previous change.
56326         The problem was that it broke coreutils on Solaris, because
56327         "sed --posix" leaked into a makefile.
56328         (sed): New alias, if 'alias' and GNU sed.
56329
56330 2006-12-24  Jim Meyering  <jim@meyering.net>
56331
56332         Work around an fchownat bug in glibc-2.4:
56333         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56334         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56335         in spite of the -P option.
56336         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56337         New macros.
56338         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56339         * modules/openat (Files): Add lib/fchownat.c.
56340         * lib/openat.c (fchownat): Don't define here.  Move to...
56341         * lib/fchownat.c: ...this new file.
56342
56343 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56344
56345         Fix bug reported by Bruno Haible in
56346         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56347         where quotearg.c didn't compile on Mac OS X 10.2 because it
56348         lacks <wchar.h> and wint_t.
56349         * lib/wctype_.h (__wctype_wint_t): New type.
56350         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56351         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56352         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56353         Arg is now of type __wctype_wint_t, not wint_t.
56354         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56355         substitute HAVE_WINT_T.
56356         * modules/wctype (Files): Add m4/wint_t.m4.
56357         (wctype.h): Substitute HAVE_WINT_T.
56358
56359 2006-12-23  Bruno Haible  <bruno@clisp.org>
56360
56361         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56362
56363 2006-12-23  Bruno Haible  <bruno@clisp.org>
56364
56365         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56366         S_ISLNK.
56367         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56368         mingw.
56369
56370 2006-12-22  Bruno Haible  <bruno@clisp.org>
56371
56372         * lib/copy-file.c: Include acl.h.
56373         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56374         Close the file descriptors only after being done with copy_acl.
56375         * modules/copy-file (Depends-on): Add acl.
56376
56377 2006-12-22  Bruno Haible  <bruno@clisp.org>
56378
56379         * gnulib-tool (SED): New variable.
56380         Use $SED instead of sed everywhere.
56381
56382 2006-12-22  Bruno Haible  <bruno@clisp.org>
56383
56384         * modules/no-c++: New file.
56385         * m4/no-c++.m4: New file.
56386         * MODULES.html.sh (Support for building libraries and executables):
56387         Add no-c++.
56388
56389 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56390
56391         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56392         Include <limits.h>, and use its INT_MAX to rewrite the
56393         j loop so that it does not overflow 'int'.  Problem reported by
56394         Ralf Wildenhues in
56395         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56396         Play it safe by shifting left by 1 rather than multiplying by 2,
56397         as GCC is less likely to optimize this away when the value
56398         is signed (when it assumes overflow leads to undefined behavior).
56399         Also, don't assume time_t uses two's complement.
56400
56401 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56402
56403         * MODULES.html.sh: New module wctype.
56404         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56405         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56406         <wctype.h>, since the new wctype module should fix this.
56407         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56408         the wctype module should arrange for it.
56409         * lib/regex_internal.h: Likewise.
56410         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56411         since the wctype module should handle this now.
56412         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56413         * modules/fnmatch (Depends-on): Add wctype.
56414         * modules/quotearg (Depends-on): Likewise.
56415         * modules/regex (Depends-on): Likewise.
56416
56417 2006-12-19  Bruno Haible  <bruno@clisp.org>
56418
56419         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56420         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56421
56422 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56423
56424         * modules/savewd (Depends-on): Fix dependency on fcntl.
56425
56426 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56427
56428         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56429         conforms to C99, rather than relying on the user's environment
56430         setting of STDINT_H.
56431
56432 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56433         and Eric Blake  <ebb9@byu.net>
56434
56435         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56436         This is more consistent with the other defines here.
56437         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56438         Port to z/OS.  Problem reported by Paul Gilmartin.
56439         Change local vars to use gl_ prefix rather than ac_.
56440         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56441         with other defines.
56442         * modules/double-slash-root: New module.
56443         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56444         (Depends-on): Add double-slash-root.
56445         * MODULES.html.sh (File system functions): Mention new module.
56446
56447 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56448
56449         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56450         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56451         This is for the benefit of gzip, which doesn't do i18n.
56452
56453 2006-12-12  Jim Meyering  <jim@meyering.net>
56454
56455         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56456         Reported by Andreas Schwab <schwab@suse.de>.
56457
56458 2006-12-12  Bruno Haible  <bruno@clisp.org>
56459
56460         Merge these changes.
56461         2006-09-05  Bruno Haible  <bruno@clisp.org>
56462         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56463         iconv_alloc succeeded.
56464         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56465         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56466         test for " && dest " at the end - dest is always != NULL there. Call
56467         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56468         with 2xNULL arguments, also to flush the state storage. Handle the
56469         IRIX iconv behaviour. Realloc the final result, to throw away unused
56470         memory.
56471
56472 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56473
56474         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56475         and fchmodat unconditionally, since glibc 2.4 has them.
56476         Problem reported by Arkadiusz Miskiewicz.
56477
56478 2006-12-10  Bruno Haible  <bruno@clisp.org>
56479
56480         * gnulib-tool (func_import): Show the include files only for those
56481         modules that are copied and specified.
56482         Reported by Karl Berry.
56483
56484 2006-12-08  Jim Meyering  <jim@meyering.net>
56485
56486         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56487         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56488
56489         * build-aux/announce-gen: Add two new options, both optional:
56490         --bootstrap-tools=TOOL_LIST
56491               a comma-separated list of tools, e.g.,
56492               autoconf,automake,bison,gnulib
56493         --gnulib-snapshot-date=DATE
56494               if gnulib is in the bootstrap tool list,
56495               then report this as the snapshot date.
56496               If not specified, use the current date/time.
56497               If you specify a date here, be sure it's UTC.
56498
56499 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56500
56501         * tests/test-argp-2.sh: Fix test to match actual output.
56502         (func_compare): Fix sed script to be portable.
56503
56504 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56505
56506         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56507         workaround for this case.  It is not autoconfigured now; offhand
56508         it's hard to see how to autoconfigure it.
56509
56510 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56511
56512         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56513         a directory that is about to be chowned.  Such a directory's
56514         initial file permissions should permit the owner only and this
56515         should not be changed until after the chown, since the group and
56516         other bits would be incorrect if they granted permission before
56517         the chown.
56518
56519         Fix porting problem for iswctype reported by Georg Schwarz in:
56520         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
56521         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
56522         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
56523         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
56524         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56525
56526 2006-12-03  Jim Meyering  <jim@meyering.net>
56527
56528         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
56529         p->fts_statp may not yet be defined.
56530         (fts_read): Instead, set it in the caller, once p->fts_statp is
56531         sure to be defined, and corresponds to a top-level directory.
56532         This bug made du -x fail.  Here's the coreutils test case:
56533         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
56534         Reported by Mike Frysinger.
56535
56536 2006-12-01  Jim Meyering  <jim@meyering.net>
56537
56538         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
56539         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
56540         Reported by Simon Josefsson.
56541
56542 2006-11-30  Jim Meyering  <jim@meyering.net>
56543
56544         * m4/warning.m4: Use the all-permissive copyright notice
56545         recommended by RMS (rather than LGPL).
56546         * m4/vararrays.m4: Likewise.
56547         * m4/flexmember.m4: Likewise.
56548
56549 2006-11-29  Bruno Haible  <bruno@clisp.org>
56550
56551         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56552         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
56553         using +=.
56554         Reported by Simon Josefsson <simon@josefsson.org>.
56555
56556 2006-11-28  James Youngman <jay@gnu.org>
56557
56558         * README: Advise users that they might find the bug-gnulib@gnu.org
56559         and autotools-announce@gnu.org mailing lists useful.
56560
56561 2006-11-28  Bruno Haible  <bruno@clisp.org>
56562
56563         * m4/ptrdiff_max.m4: Remove file.
56564
56565 2006-11-21  Bruno Haible  <bruno@clisp.org>
56566
56567         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
56568         _AC_COMPUTE_INT.
56569         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56570         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
56571         _AC_COMPUTE_INT.
56572         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56573         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
56574         _AC_COMPUTE_INT.
56575         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56576
56577 2006-11-28  Jim Meyering  <jim@meyering.net>
56578
56579         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
56580         warning from "gcc -Wshadow" about shadowing the builtin.
56581
56582 2006-11-27  Bruno Haible  <bruno@clisp.org>
56583
56584         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
56585         _AC_COMPUTE_INT.
56586         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56587
56588 2006-11-27  Bruno Haible  <bruno@clisp.org>
56589             Paul Eggert  <eggert@cs.ucla.edu>
56590
56591         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
56592
56593 2006-11-26  Bruno Haible  <bruno@clisp.org>
56594
56595         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56596         noinst_LTLIBRARIES.
56597
56598 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56599             Bruno Haible  <bruno@clisp.org>
56600
56601         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
56602         if compiling with "gcc -ansi".
56603
56604 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56605
56606         Fix some incompatibilities with gcc -ansi -pedantic.
56607         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
56608         if compiling pedantically with GCC, unless it's C99 or later.
56609         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
56610         it mishandles gcc -ansi -pedantic as well.
56611         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
56612         if gcc -pedantic.
56613         * lib/regexec.c (check_node_accept_bytes): Don't use auto
56614         initializers for struct if -pedantic, unless it's C99 or later.
56615
56616 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
56617
56618         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
56619         Don't close an fd more than once. Identical atimes indicate
56620         success, not failure.
56621
56622 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
56623
56624         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
56625
56626 2006-11-23  Jim Meyering  <jim@meyering.net>
56627
56628         * build-aux/announce-gen: New file.  From coreutils.
56629
56630 2006-11-22  Jim Meyering  <jim@meyering.net>
56631
56632         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
56633         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
56634         (fts_read): Use a temporary to narrow the overused st_size member
56635         before using it in a switch statement.  Reported by Matthew Woehlke.
56636
56637         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
56638         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56639
56640 2006-11-20  Bruno Haible  <bruno@clisp.org>
56641
56642         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
56643         changequote instead of pairs of brackets.
56644         Reported by Andreas Schwab <schwab@suse.de>.
56645
56646 2006-11-21  Jim Meyering  <jim@meyering.net>
56647
56648         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
56649         so as to remain compatible with older compilers.
56650         Patch from Michael Deutschmann.
56651
56652 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56653
56654         * MODULES.html.sh (File system functions): Add openat.
56655
56656         * lib/openat.h (rpl_fstatat): New macro, if
56657         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
56658         (fstatat): Define to rpl_fstatat under the same conditions,
56659         unless COMPILING_FSTATAT.
56660         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
56661         seems to have the bug.
56662         * lib/fstatat.c: New file.
56663         * modules/openat (Files): Add it.
56664
56665 2006-11-20  Bruno Haible  <bruno@clisp.org>
56666
56667         * Makefile: New file.
56668
56669 2006-11-20  Jim Meyering  <jim@meyering.net>
56670
56671         The beginnings of syntax-related checks for gnulib.
56672         * lib/Makefile: New file.
56673         * lib/t-idcache: New script.  Ensure that the two halves of
56674         idcache.c stay in sync.
56675
56676         * lib/idcache.c: Adjust comments in user- and group- portions to
56677         be more accurate, and to be consistent with one another.
56678
56679 2006-11-20  Jim Meyering  <jim@meyering.net>
56680
56681         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
56682         continue using the flexible array member (thus, this module performs
56683         half as many malloc calls), with the addition that...
56684         (getgroup, getuser): Consistently record a non-match via an empty
56685         "name" string, and map an empty string match to a NULL return value.
56686         * modules/idcache (Depends-on): Re-add flexmember.
56687
56688         * lib/idcache.c (getuser): Remove all uses of the register keyword.
56689         (getuidbyname, getgroup, getgidbyname): Likewise.
56690
56691         Use cleaner syntax: NULL rather than 0.
56692         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56693
56694 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56695
56696         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56697         It mishandled the case where the group was missing.
56698         Problem reported by Greg Schafer.
56699         * modules/idcache: Likewise.
56700
56701 2006-11-18  Jim Meyering  <jim@meyering.net>
56702
56703         * check-module (%exempt_header): Add exception for some
56704         conditionally-included headers.
56705
56706         * modules/i-ring (Depends-on): Add verify.
56707         (License): Change to LGPL.
56708
56709 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56710
56711         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56712         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56713         and inttostr.h.  Use snprintf rather than uinttostr, so that
56714         LGPLed code doesn't depend on GPLed.
56715
56716 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56717
56718         * modules/inline (License): Change from GPL to LGPL.
56719
56720 2006-11-17  Jim Meyering  <jim@meyering.net>
56721
56722         * modules/d-type (License): Switch to LGPL.
56723
56724 2006-11-15  Bruno Haible  <bruno@clisp.org>
56725
56726         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56727
56728 2006-11-15  Eric Blake  <ebb9@byu.net>
56729
56730         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56731         the module dependency.
56732
56733 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56734             Bruno Haible  <bruno@clisp.org>
56735
56736         * gnulib-tool (func_create_testdir): Add license consistency check.
56737
56738 2006-11-15  Eric Blake  <ebb9@byu.net>
56739
56740         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56741         random "(cached)" in configure output.
56742
56743 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56744
56745         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56746         test for conforming inttypes.h is both announced and cached.
56747
56748         * MODULES.html.sh (seen_modules, seen_files): New variables.
56749         (func_module): Rewrite to use a few less gnulib-tool and sed
56750         invocations.  Avoid a couple of quadratic algorithms for ...
56751         (missed_modules, missed_files): ... these, with ...
56752         (func_append, func_tmpdir): ... these new functions, from
56753         gnulib-tool.  Analogously, install traps for cleanup.
56754
56755         * tests/test-gc.c (main): Remove unused variables.
56756         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56757
56758 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56759
56760         * modules/inttostr (License): Change to LGPL.
56761
56762 2006-11-14  Eric Blake  <ebb9@byu.net>
56763
56764         * modules/tempname (License): Change to LGPL.
56765
56766 2006-11-14  Eric Blake  <ebb9@byu.net>
56767
56768         * doc/functions.texi (Function Portability): *printf functions on
56769         Cygwin now understand all POSIX size specifiers.
56770
56771 2006-11-14  Bruno Haible  <bruno@clisp.org>
56772
56773         * modules/c-ctype (License): Change to LGPL.
56774
56775 2006-11-12  Bruno Haible  <bruno@clisp.org>
56776
56777         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56778         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56779         for GNOME libraries, for which the include files are installed in
56780         subdirectories of $prefix/include.
56781
56782 2006-11-12  Bruno Haible  <bruno@clisp.org>
56783
56784         * m4/lib-link.m4: Require at least autoconf-2.54.
56785         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56786         name to underscores for the --with option.
56787
56788 2006-11-13  Bruno Haible  <bruno@clisp.org>
56789
56790         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56791         the tests directory.
56792         Reported by Ralf Wildenhues.
56793
56794 2006-11-13  Bruno Haible  <bruno@clisp.org>
56795
56796         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
56797         (func_emit_initmacro_end): Undo the override here.
56798         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
56799         Works around the famous automake error in coreutils.
56800
56801 2006-11-13  Eric Blake  <ebb9@byu.net>
56802
56803         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
56804         element, not its node.
56805
56806 2006-11-12  Bruno Haible  <bruno@clisp.org>
56807
56808         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
56809         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
56810
56811 2006-11-12  Bruno Haible  <bruno@clisp.org>
56812
56813         * gnulib-tool: New option --local-symlink.
56814         (func_usage): Document it.
56815         (lsymbolic): New variable.
56816         (func_import, func_create_testdir): If --symlink was not specified,
56817         test whether --local-symlink was specified and the file comes from
56818         the local_gnulib_dir.
56819
56820 2006-11-12  Bruno Haible  <bruno@clisp.org>
56821
56822         * gnulib-tool (func_ln): New function.
56823         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
56824
56825 2006-11-12  Bruno Haible  <bruno@clisp.org>
56826
56827         Finish support for source files in subdirectories.
56828         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
56829         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
56830         AUTOMAKE_OPTIONS.
56831         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
56832
56833 2006-11-12  Bruno Haible  <bruno@clisp.org>
56834
56835         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56836         EXTRA_lib_SOURCES augmentation.
56837         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
56838
56839 2006-11-12  Jim Meyering  <jim@meyering.net>
56840
56841         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
56842         file descriptors.  This also averts a failure on systems with
56843         native openat support when a traversed directory lacks "x" access.
56844         * lib/fts_.h: Include "i-ring.h"
56845         (struct FTS) [fts_fd_ring]: New member.
56846         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
56847         (FCHDIR): Add parentheses.
56848         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
56849         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
56850         When descending, rather than simply closing the previous
56851         fts_cwd_fd value, push that file descriptor onto the ring.
56852         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
56853         (fts_open): Initialize the new fd_ring member.
56854         (fts_close): Clear the ring.
56855         (fts_safe_changedir): When possible, use our new fd_ring to skip
56856         the diropen and fstat and dev/ino comparison that would normally
56857         accompany a virtual `chdir ("..")'.
56858
56859         * modules/fts (Depends-on): Add i-ring.
56860         * modules/i-ring: New module.
56861         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
56862         * m4/i-ring.m4: New file.
56863
56864 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56865
56866         * gnulib-tool (func_create_testdir): Fix replacement of
56867         `build-aux' in configure.ac.  Run autotools in gltests
56868         subdirectory.
56869         (func_create_testdir, func_create_megatestdir, test): There is
56870         no need for '--force' in most autotool invocations in a new
56871         tree.  Actually fail the whole test if any of the tools, or the
56872         configure or make stages fail.
56873
56874         Sync from Automake.
56875         * build-aux/gnupload: Revert last change.  Add pointer to upload
56876         instructions of the GNU Maintenance Instructions.
56877         Suggestion by Karl Berry.
56878
56879 2006-11-10  Jim Meyering  <jim@meyering.net>
56880
56881         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
56882
56883 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56884
56885         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
56886         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
56887         (bind_textdomain_codeset) [! ENABLE_NLS]:
56888         Evaluate all the arguments.  That way, callers get compatible behavior
56889         if the arguments have side effects.  Also, it avoids some GCC
56890         diagnostics in some cases; Joel E. Denny reported problems when Bison
56891         was configured with --enable-gcc-warnigs.
56892
56893 2006-11-10  Jim Meyering  <jim@meyering.net>
56894
56895         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
56896         relevant options in CFLAGS (like -O, -fno-inline) are taken into
56897         account.
56898
56899 2006-11-10  Jim Meyering  <jim@meyering.net>
56900
56901         * modules/inline: New file/module.
56902         * modules/xalloc (Files): Remove m4/inline.m4.
56903         (Depends-on): Add inline, instead.
56904         * modules/oset: Likewise.
56905         * modules/list: Likewise.
56906
56907 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56908
56909         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
56910         Problem reported by Matthew Woehlke.
56911
56912 2006-11-09  Bruno Haible  <bruno@clisp.org>
56913
56914         * lib/tempname.c (gen_tempname): Remove variant that invokes
56915         __gen_tempname.
56916         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
56917         __gen_tempname.
56918
56919 2006-11-08  Bruno Haible  <bruno@clisp.org>
56920
56921         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
56922         to 'yes' instead of 'cross-compiling'.
56923
56924 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
56925
56926         * lib/quotearg.h (quotearg_free): New decl.
56927         * lib/quotearg.c (quotearg_free): New function.
56928         (slot0, nslots, slotvec0, slotvec):
56929         Now file-scope so that quotearg_free can get at them.
56930
56931 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56932
56933         Sync from Automake.
56934         * build-aux/gnupload: Add missing 'gnu' to example URL.
56935         Report by Karl Berry.
56936
56937 2006-11-08  Bruno Haible  <bruno@clisp.org>
56938
56939         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
56940         Suggested by Paul Eggert.
56941
56942 2006-11-08  Jim Meyering  <jim@meyering.net>
56943
56944         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
56945         It's already included if !_LIBC.
56946         (fts_safe_changedir): Add a comment.
56947
56948 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56949
56950         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
56951         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
56952         Matthew Woehlke.
56953
56954         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
56955         definitions up, to avoid colliding with change below.
56956         (static_inline) [HAVE_INLINE]: New macro.
56957         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
56958         Provide extern decls when !HAVE_INLINE.  Do not define unless
56959         static_inline is defined, either by us or by xmalloc.c.  Use
56960         static_inline rather than static inline.
56961         (XCALLOC): Optimize sizeof(T) = 1 case.
56962         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
56963
56964 2006-11-07  Bruno Haible  <bruno@clisp.org>
56965
56966         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
56967         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
56968         AC_C_INLINE.
56969         * modules/xalloc (Files): Add m4/inline.m4.
56970
56971 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56972
56973         * README: Fix typo.
56974         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
56975         (Miscellanous Notes): ...from this.
56976
56977 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56978
56979         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
56980         Mention that offsetof should be used instead of sizeof.
56981         From Bruno Haible.
56982
56983 2006-11-07  Bruno Haible  <bruno@clisp.org>
56984
56985         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
56986
56987 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56988
56989         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56990         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
56991         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56992         (gl_tree_add_before, gl_tree_add_after):
56993         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
56994         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
56995         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56996         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
56997         (gl_linked_add_after, gl_linked_add_at): Likewise.
56998         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
56999         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57000         (gl_tree_add_before, gl_tree_add_after): Likewise.
57001         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57002         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57003         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57004
57005 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57006
57007         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57008
57009 2006-11-06  Bruno Haible  <bruno@clisp.org>
57010
57011         * m4/inline.m4: New file.
57012         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57013         * modules/list (Files): Add m4/inline.m4.
57014         * modules/oset (Files): Likewise.
57015
57016 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57017
57018         * lib/idcache.c: Include <stddef.h>, for offsetof.
57019         (struct userid.name): Change from char * to a flexible array member.
57020         All uses changed.
57021         * modules/idcache (Depends-on): Add flexmember.
57022
57023         * MODULES.html.sh (Core language properties): New module flexmember.
57024         * modules/flexmember, m4/flexmember.m4: New files.
57025
57026         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57027         inline functions that are identical with the old xnmalloc_inline,
57028         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57029         that we can avoid some unnecessary integer multiplications and
57030         divisions in the common case where the element size is known at
57031         compile time.
57032         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57033         needed.
57034         (xnboundedmalloc): Remove.
57035         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57036         arguments, for consistency with rest of this header.
57037         (xcharalloc): Rewrite using XNMALLOC.
57038         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57039         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57040         versions have been moved to lib/xalloc.h and renamed to be the
57041         non-*_inline versions.
57042         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57043         and xnrealloc functions, since those functions are now inline and
57044         now call us.
57045         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57046         renaming described above.
57047         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57048         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57049         captures the dependency in AC_C_INLINE.
57050
57051         New module canonicalize-lgpl, proposed by Charles Wilson in
57052         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57053         with a few small changes afterwards.
57054         * MODULES.html.sh (File system functions): New module
57055         canonicalize-lgpl.
57056         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57057         and canonicalize_file_name.
57058         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57059         * modules/canonicalize-lgpl: New files.
57060
57061 2006-11-05  Bruno Haible  <bruno@clisp.org>
57062
57063         * gnulib-tool (func_import, func_create_testdir): Create directories
57064         also for files in subdirectories of lib/.
57065
57066 2006-11-05  Bruno Haible  <bruno@clisp.org>
57067
57068         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57069         ANSI C compliant.
57070
57071 2006-11-03  Bruno Haible  <bruno@clisp.org>
57072
57073         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57074         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57075         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57076         (xnboundedmalloc): New inline function.
57077         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57078         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57079         xmalloc.
57080         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57081         xmalloc.
57082         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57083         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57084         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57085         xmalloc.
57086         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57087         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57088         xmalloc.
57089         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57090         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57091         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57092         xmalloc.
57093         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57094         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57095         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57096         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57097         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57098         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57099         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57100
57101 2006-11-03  Bruno Haible  <bruno@clisp.org>
57102
57103         * lib/c-ctype.h [C++]: Define functions without name mangling.
57104         * lib/fwriteerror.h [C++]: Likewise.
57105         * lib/gcd.h [C++]: Likewise.
57106         * lib/linebreak.h [C++]: Likewise.
57107
57108 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57109
57110         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57111         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57112         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57113         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57114         Check for functions and headers just once.
57115         Check for declaration of canonicalize_file_name.
57116         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57117
57118 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57119
57120         * gnulib-tool (func_import): Fix typo in actioncmd.
57121
57122 2006-11-02  Bruno Haible  <bruno@clisp.org>
57123
57124         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57125         newline sequence in the Makefile.am snippet as a space, like "make"
57126         does.
57127         Reported by Roger Persson <perrog@gmail.com>.
57128
57129 2006-11-01  Bruno Haible  <bruno@clisp.org>
57130
57131         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57132         already declared in <string.h>.
57133         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57134
57135 2006-11-01  Bruno Haible  <bruno@clisp.org>
57136
57137         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57138         * lib/strcase.h: Include <string.h>.
57139         (strcasecmp): Define to rpl_strcasecmp here.
57140
57141 2006-11-01  Bruno Haible  <bruno@clisp.org>
57142
57143         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57144
57145 2006-11-01  Eric Blake  <ebb9@byu.net>
57146
57147         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57148
57149         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57150
57151 2006-10-29  Bruno Haible  <bruno@clisp.org>
57152
57153         Make it compile in C++ mode.
57154         * lib/full-write.c (full_rw): Add a cast.
57155
57156 2006-11-01  Bruno Haible  <bruno@clisp.org>
57157
57158         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57159         be POSIX compliant.
57160         Reported by Roger Persson <perrog@gmail.com>.
57161
57162 2006-11-01  Eric Blake  <ebb9@byu.net>
57163
57164         * lib/getopt_.h: Fix comments.
57165
57166 2006-10-31  Eric Blake  <ebb9@byu.net>
57167
57168         * modules/tmpdir (Depends-on): Add sys_stat.
57169         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57170         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57171         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57172         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57173         tempname.
57174
57175 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57176
57177         Avoid some C++ diagnostics reported by Bruno Haible.
57178         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57179         xmalloc.
57180         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57181         (struct slotvec): Move to top level.
57182         (quotearg_n_options): Rewrite to avoid xmalloc.
57183         * lib/xalloc.h (xcharalloc): New function.
57184         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57185         [defined __cplusplus]: Add function template that provides result
57186         type propagation.  This part of the change is from Bruno Haible.
57187
57188 2006-10-29  Bruno Haible  <bruno@clisp.org>
57189
57190         Make it compile in C++ mode.
57191         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57192         * lib/strnlen1.c (strnlen1): Cast memchr result.
57193         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57194         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57195         (create_temp_dir): Rename local variable 'template'.
57196         (compile_csharp_using_sscli): Add cast.
57197         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57198         * lib/findprog.c (find_in_path): Likewise.
57199         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57200         * lib/wait-process.c (register_slave_subprocess): Likewise.
57201
57202 2006-10-22  Bruno Haible  <bruno@clisp.org>
57203
57204         * modules/tsearch: New file.
57205         * lib/tsearch.h: New file.
57206         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57207         * m4/tsearch.m4: New file.
57208         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57209
57210 2006-10-29  Eric Blake  <ebb9@byu.net>
57211
57212         * lib/arcfour.c: Assume config.h.
57213         * lib/arctwo.c: Likewise.
57214         * lib/base64.c: Likewise.
57215         * lib/check-version.c: Likewise.
57216         * lib/crc.c: Likewise.
57217         * lib/des.c: Likewise.
57218         * lib/gc-gnulib.c: Likewise.
57219         * lib/gc-libgcrypt.c: Likewise.
57220         * lib/gc-pbkdf2-sha1.c: Likewise.
57221         * lib/getaddrinfo.c: Likewise.
57222         * lib/getdelim.c: Likewise.
57223         * lib/getline.c: Likewise.
57224         * lib/hmac-md5.c: Likewise.
57225         * lib/hmac-sha1.c: Likewise.
57226         * lib/iconvme.c: Likewise.
57227         * lib/md2.c: Likewise.
57228         * lib/md4.c: Likewise.
57229         * lib/memxor.c: Likewise.
57230         * lib/read-file.c: Likewise.
57231         * lib/readline.c: Likewise.
57232         * lib/rijndael-alg-fst.c: Likewise.
57233         * lib/rijndael-api-fst.c: Likewise.
57234         * lib/xgetdomainname.c: Likewise.
57235
57236 2006-10-28  Eric Blake  <ebb9@byu.net>
57237
57238         * lib/xstrndup.c: Assume config.h.
57239
57240 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57241
57242         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57243         stat-macros.h is now for our own macros, whereas stat_h is for
57244         macros in the <sys/stat.h> name space.
57245         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57246         (STAT_MACROS_H): Remove.
57247         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57248         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57249         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57250         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57251         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57252         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57253         Move these macros to ...
57254         * lib/stat_.h: here.  Don't include stat-macros.h.
57255         * lib/canonicalize.c: Don't include stat-macros.h.
57256         * lib/chown.c: Likewise.
57257         * lib/euidaccess.c: Likewise.
57258         * lib/file-type.c: Likewise.
57259         * lib/filemode.c: Likewise.
57260         * lib/glob.c: Likewise.
57261         * lib/isapipe.c: Likewise.
57262         * lib/lchown.c: Likewise.
57263         * lib/lstat.c: Likewise.
57264         * lib/mkdir-p.c: Likewise.
57265         * lib/rmdir.c: Likewise.
57266         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57267         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57268         unless mkdir isn't declared, to speed up 'configure'.
57269         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57270         would define all the S_* symbols.
57271         * modules/canonicalize (Depends-on):
57272         Depend on sys_stat, not stat-macros.
57273         * modules/chown: Likewise.
57274         * modules/euidaccess: Likewise.
57275         * modules/filemode: Likewise.
57276         * modules/file-type: Likewise.
57277         * modules/glob: Likewise.
57278         * modules/isapipe: Likewise.
57279         * modules/lchown: Likewise.
57280         * modules/lstat: Likewise.
57281         * modules/mkancesdirs: Likewise.
57282         * modules/rmdir: Likewise.
57283         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57284         * modules/modechange: Likewise.
57285         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57286         (configure.ac): Remove gl_STAT_MACROS.
57287         * modules/sys_stat (Depends-on): Remove stat-macros.
57288
57289 2006-10-27  Bruno Haible  <bruno@clisp.org>
57290
57291         * m4/signed.m4: Remove file.
57292         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57293         invocation.
57294         * modules/vasnprintf (Files): Remove m4/signed.m4.
57295
57296 2006-10-27  Bruno Haible  <bruno@clisp.org>
57297
57298         Update to GNU gettext 0.16.
57299         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57300         m4/inttypes-h.m4, m4/signed.m4.
57301         * m4/gettext.m4: Update to GNU gettext 0.16.
57302         * m4/intl.m4: New file, from GNU gettext.
57303         * m4/intldir.m4: New file, from GNU gettext.
57304         * config/srclist.txt: Update
57305
57306 2006-10-27  Eric Blake  <ebb9@byu.net>
57307
57308         * MODULES.html.sh: Document tempname.
57309         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57310         dependencies.
57311         (Files): Move lib/tempname.c...
57312         * modules/tempname: ...to this new module.
57313         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57314         (gl_PREREQ_TEMPNAME): Move...
57315         * m4/tempname.m4: ...to this new file.
57316         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57317         * modules/sys_stat (Depends-on): Add stat-macros.
57318         * lib/stat_.h (includes): Pick up stat macros.
57319         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57320         if stat macros are broken.
57321         * lib/tempname.c (includes): No need to include "stat-macros.h".
57322         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57323         (direxists, __path_search) [!_LIBC]: Don't compile these in
57324         gnulib; the tmpdir module covers that.
57325         * lib/tempname.h: New file.
57326
57327 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57328
57329         * COPYING: Explain how gnulib-tool converts licence headers.
57330         Almost all wording by Eric Blake.
57331
57332 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57333
57334         * lib/mbchar.h (is_basic_table): Make read-only.
57335         * lib/mbchar.c (is_basic_table): Likewise.
57336         Reported by John Darrington.
57337
57338 2006-10-25  Bruno Haible  <bruno@clisp.org>
57339
57340         * lib/progname.h (set_program_name): Undefine before defining.
57341
57342 2006-10-25  Bruno Haible  <bruno@clisp.org>
57343
57344         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57345         false for non-gcc C++ compilers.
57346         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57347
57348 2006-10-24  Bruno Haible  <bruno@clisp.org>
57349
57350         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57351         iconv implementations like Irix iconv.
57352
57353 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57354
57355         * modules/vararrays: New file.
57356         * m4/vararrays.m4: New file, taken from diffutils.
57357         * MODULES.html.sh: New module vararrays.
57358
57359 2006-10-24  Karl Berry  <karl@gnu.org>
57360
57361         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57362         Don't call GNU Unix.
57363
57364 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57365
57366         * users.txt: Add Libtool.
57367
57368         Sync from Libtool:
57369
57370         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57371
57372         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57373         to gnulib's policy of including config.h unconditionally.
57374
57375 2006-10-24  Bruno Haible  <bruno@clisp.org>
57376
57377         * modules/wcwidth (Files): Add m4/wint_t.m4.
57378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57379         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57380
57381 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57382
57383         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57384         to pacify GCC with some -W flags enabled.  Problem reported by
57385         Bruno Haible.
57386
57387 2006-10-24  Jim Meyering  <jim@meyering.net>
57388
57389         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57390         Reported by Karl Berry.
57391
57392 2006-10-23  Bruno Haible  <bruno@clisp.org>
57393
57394         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57395
57396 2006-10-24  Bruno Haible  <bruno@clisp.org>
57397
57398         * lib/gl_list.h: Use C comment style, not C++ comment style.
57399
57400 2006-10-23  Eric Blake  <ebb9@byu.net>
57401
57402         * lib/getaddrinfo.c (includes): Add missing include.
57403
57404 2006-10-23  Bruno Haible  <bruno@clisp.org>
57405             Paul Eggert  <eggert@cs.ucla.edu>
57406
57407         Ability to rename obstack_free.
57408         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57409         obstack_free.
57410         (obstack_free): Invoke the __obstack_free macro.
57411         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57412
57413 2006-10-23  Bruno Haible  <bruno@clisp.org>
57414             Paul Eggert  <eggert@cs.ucla.edu>
57415
57416         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57417         __argc, __argv from the declaration. (They are defined as macros on
57418         mingw.)
57419
57420 2006-10-22  Bruno Haible  <bruno@clisp.org>
57421
57422         * doc/gnulib-intro.texi: New file.
57423         * doc/gnulib.texi: Include it.
57424
57425 2006-10-21  Bruno Haible  <bruno@clisp.org>
57426
57427         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57428         "Introduction", "Miscellanous Notes", "Particular Modules".
57429
57430 2006-10-21  Bruno Haible  <bruno@clisp.org>
57431
57432         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57433         Change mostlyclean-local rule to avoid sh syntax error from bash
57434         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57435
57436 2006-10-23  Jim Meyering  <jim@meyering.net>
57437
57438         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57439         in place of snprintf.
57440
57441         * modules/inttostr (Files): Add lib/uinttostr.c.
57442         * lib/uinttostr.c (inttostr): New file/function.
57443         * lib/inttostr.h (uinttostr): Declare.
57444         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57445         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57446         Add uinttostr.
57447         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57448
57449 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57450
57451         * lib/canonicalize.c (ELOOP): Define if not already defined.
57452         Problem reported by Bruno Haible in
57453         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57454
57455 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57456
57457         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57458         Problem reported by Perry Smith and Ville Laurikari.
57459
57460         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57461         uses.
57462
57463 2006-10-19  Bruno Haible  <bruno@clisp.org>
57464
57465         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57466         for mingw.
57467
57468 2006-10-19  Bruno Haible  <bruno@clisp.org>
57469
57470         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57471         Needed for mingw.
57472
57473 2006-10-19  Bruno Haible  <bruno@clisp.org>
57474
57475         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57476
57477 2006-10-19  Bruno Haible  <bruno@clisp.org>
57478
57479         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57480         it.
57481
57482 2006-10-19  Bruno Haible  <bruno@clisp.org>
57483
57484         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57485         invocation.
57486
57487 2006-10-19  Bruno Haible  <bruno@clisp.org>
57488
57489         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57490         mountlist by default.
57491
57492 2006-10-16  Bruno Haible  <bruno@clisp.org>
57493
57494         * lib/c-strstr.c: Include c-strstr.h.
57495
57496 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57497
57498         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57499         in a slash.
57500
57501 2006-10-18  Bruno Haible  <bruno@clisp.org>
57502
57503         * lib/lock.h [C++]: Wrap definitions in extern "C".
57504
57505 2006-10-18  Bruno Haible  <bruno@clisp.org>
57506
57507         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57508         gl_LIBOBJS list.
57509
57510 2006-10-18  Bruno Haible  <bruno@clisp.org>
57511
57512         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57513
57514 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57515
57516         * lib/xstrtol.h: Include gettext.h.
57517         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57518         Problem reported by Eric Blake.
57519         * modules/xstrtol (Depends-on): Add gettext-h.
57520
57521 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
57522
57523         * lib/strftime.c (advance): New macro.
57524         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
57525         incomplete type, so you can't add 0 to it.  Problem and patch
57526         reported by Eelco Dolstra for dietlibc.
57527
57528 2006-10-18  Jim Meyering  <jim@meyering.net>
57529
57530         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
57531         type for a local, and rename it: s/up/user_proc/.
57532
57533 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57534
57535         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
57536         READ_UTMP_USER_PROCESS.
57537         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
57538
57539 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57540
57541         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
57542         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
57543
57544 2006-10-17  Eric Blake  <ebb9@byu.net>
57545
57546         * lib/sigprocmask.c (sigprocmask): Fix typo.
57547
57548         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
57549
57550         * modules/clean-temp (Makefile.am): Don't add to make output...
57551         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
57552         config.h.
57553
57554 2006-10-17  Bruno Haible  <bruno@clisp.org>
57555
57556         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
57557         differently if DEFAULT_TEXT_DOMAIN is set.
57558
57559 2006-10-16  Bruno Haible  <bruno@clisp.org>
57560
57561         * lib/clean-temp.c: Include fwriteerror.h.
57562
57563 2006-10-16  Bruno Haible  <bruno@clisp.org>
57564
57565         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
57566
57567 2006-10-16  Bruno Haible  <bruno@clisp.org>
57568
57569         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
57570         * lib/sigprocmask.h: Include <sys/types.h>.
57571         (sigset_t): Use the system's definition if present.
57572
57573 2006-10-17  Eric Blake  <ebb9@byu.net>
57574
57575         * lib/xvasprintf.c (includes): Assume config.h.
57576         * lib/xasprintf.c (includes): Likewise.
57577
57578 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57579
57580         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
57581         at least as wide as intmax_t.
57582
57583 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
57584
57585         (Imported from Automake.)
57586         * build-aux/gnupload: Update to version 1.1 of directive file.
57587
57588 2006-10-16  Eric Blake  <ebb9@byu.net>
57589
57590         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
57591         match Automake 1.10a.
57592
57593 2006-10-14  Bruno Haible  <bruno@clisp.org>
57594
57595         * modules/sigprocmask: New file.
57596         * lib/sigprocmask.h: New file.
57597         * lib/sigprocmask.c: New file.
57598         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
57599         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
57600         request sigprocmask.o.
57601         (gl_PREREQ_SIGPROCMASK): New macro.
57602         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
57603         (Depends-on): Add sigprocmask.
57604         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
57605         gt_SIGNALBLOCKING. Test for 'raise' only once.
57606         * lib/fatal-signal.c: Include sigprocmask.h.
57607         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
57608         unblock_fatal_signals): Define always.
57609         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57610         sigprocmask.
57611
57612 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57613
57614         Sync from Automake.
57615         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
57616         which incorrectly sets the mode of an existing destination
57617         directory.  In some cases the unpatched install-sh could do the
57618         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
57619         system.  We hope this is rare in practice, but it's clearly worth
57620         fixing.  Problem reported by Alex Unleashed in
57621         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
57622         Also, don't bother to check for -m bugs unless we're using -m;
57623         suggested by Stepan Kasal.
57624
57625 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57626
57627         Sync from Automake.
57628         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
57629         `-c' flag, so they appear at the same position as in %FASTDEP%
57630         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
57631         which ignores unknown options only after the first non-option.
57632         Bug report against M4 by Nelson H. F. Beebe.
57633
57634 2006-10-13  Jim Meyering  <jim@meyering.net>
57635
57636         Fix a bug in yesterday's change.
57637         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
57638         p->fts_statp->st_dev would be used uninitialized.
57639         Ensures that we always call fts_stat on the very first entry.
57640         Miklos Szeredi reported that find -xdev stopped working.
57641
57642 2006-10-12  Bruno Haible  <bruno@clisp.org>
57643
57644         * gnulib-tool (func_get_automake_snippet): Append an automatically
57645         computed EXTRA_DIST augmentation.
57646         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
57647         * modules/alloca-opt (Makefile.am): Likewise.
57648         * modules/allocsa (Makefile.am): Likewise.
57649         * modules/arcfour (Makefile.am): Likewise.
57650         * modules/arctwo (Makefile.am): Likewise.
57651         * modules/argmatch (Makefile.am): Likewise.
57652         * modules/argz (Makefile.am): Likewise.
57653         * modules/atexit (Makefile.am): Likewise.
57654         * modules/backupfile (Makefile.am): Likewise.
57655         * modules/byteswap (Makefile.am): Likewise.
57656         * modules/c-strtod (Makefile.am): Likewise.
57657         * modules/c-strtold (Makefile.am): Likewise.
57658         * modules/calloc (Makefile.am): Likewise.
57659         * modules/canon-host (Makefile.am): Likewise.
57660         * modules/canonicalize (Makefile.am): Likewise.
57661         * modules/chdir-long (Makefile.am): Likewise.
57662         * modules/chdir-safer (Makefile.am): Likewise.
57663         * modules/check-version (Makefile.am): Likewise.
57664         * modules/chown (Makefile.am): Likewise.
57665         * modules/cloexec (Makefile.am): Likewise.
57666         * modules/close-stream (Makefile.am): Likewise.
57667         * modules/closeout (Makefile.am): Likewise.
57668         * modules/crc (Makefile.am): Likewise.
57669         * modules/csharpexec (Makefile.am): Likewise.
57670         * modules/cycle-check (Makefile.am): Likewise.
57671         * modules/des (Makefile.am): Likewise.
57672         * modules/dev-ino (Makefile.am): Likewise.
57673         * modules/dirfd (Makefile.am): Likewise.
57674         * modules/dirname (Makefile.am): Likewise.
57675         * modules/dup2 (Makefile.am): Likewise.
57676         * modules/eealloc (Makefile.am): Likewise.
57677         * modules/error (Makefile.am): Likewise.
57678         * modules/euidaccess (Makefile.am): Likewise.
57679         * modules/exclude (Makefile.am): Likewise.
57680         * modules/exitfail (Makefile.am): Likewise.
57681         * modules/fcntl-safer (Makefile.am): Likewise.
57682         * modules/fcntl (Makefile.am): Likewise.
57683         * modules/file-type (Makefile.am): Likewise.
57684         * modules/fileblocks (Makefile.am): Likewise.
57685         * modules/filemode (Makefile.am): Likewise.
57686         * modules/filenamecat (Makefile.am): Likewise.
57687         * modules/fnmatch (Makefile.am): Likewise.
57688         * modules/fopen-safer (Makefile.am): Likewise.
57689         * modules/fpending (Makefile.am): Likewise.
57690         * modules/fprintftime (Makefile.am): Likewise.
57691         * modules/free (Makefile.am): Likewise.
57692         * modules/fsusage (Makefile.am): Likewise.
57693         * modules/ftruncate (Makefile.am): Likewise.
57694         * modules/fts (Makefile.am): Likewise.
57695         * modules/gc-arcfour (Makefile.am): Likewise.
57696         * modules/gc-des (Makefile.am): Likewise.
57697         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57698         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57699         * modules/gc-md4 (Makefile.am): Likewise.
57700         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57701         * modules/gc-sha1 (Makefile.am): Likewise.
57702         * modules/gc (Makefile.am): Likewise.
57703         * modules/getaddrinfo (Makefile.am): Likewise.
57704         * modules/getcwd (Makefile.am): Likewise.
57705         * modules/getdelim (Makefile.am): Likewise.
57706         * modules/getdomainname (Makefile.am): Likewise.
57707         * modules/getgroups (Makefile.am): Likewise.
57708         * modules/gethostname (Makefile.am): Likewise.
57709         * modules/gethrxtime (Makefile.am): Likewise.
57710         * modules/getline (Makefile.am): Likewise.
57711         * modules/getloadavg (Makefile.am): Likewise.
57712         * modules/getlogin_r (Makefile.am): Likewise.
57713         * modules/getndelim2 (Makefile.am): Likewise.
57714         * modules/getopt (Makefile.am): Likewise.
57715         * modules/getpagesize (Makefile.am): Likewise.
57716         * modules/getpass-gnu (Makefile.am): Likewise.
57717         * modules/getpass (Makefile.am): Likewise.
57718         * modules/getsubopt (Makefile.am): Likewise.
57719         * modules/gettime (Makefile.am): Likewise.
57720         * modules/gettimeofday (Makefile.am): Likewise.
57721         * modules/getugroups (Makefile.am): Likewise.
57722         * modules/getusershell (Makefile.am): Likewise.
57723         * modules/glob (Makefile.am): Likewise.
57724         * modules/group-member (Makefile.am): Likewise.
57725         * modules/hard-locale (Makefile.am): Likewise.
57726         * modules/hash (Makefile.am): Likewise.
57727         * modules/hmac-md5 (Makefile.am): Likewise.
57728         * modules/hmac-sha1 (Makefile.am): Likewise.
57729         * modules/human (Makefile.am): Likewise.
57730         * modules/idcache (Makefile.am): Likewise.
57731         * modules/imaxabs (Makefile.am): Likewise.
57732         * modules/imaxdiv (Makefile.am): Likewise.
57733         * modules/inet_ntop (Makefile.am): Likewise.
57734         * modules/inet_pton (Makefile.am): Likewise.
57735         * modules/intprops (Makefile.am): Likewise.
57736         * modules/inttostr (Makefile.am): Likewise.
57737         * modules/inttypes (Makefile.am): Likewise.
57738         * modules/isapipe (Makefile.am): Likewise.
57739         * modules/javaversion (Makefile.am): Likewise.
57740         * modules/lchmod (Makefile.am): Likewise.
57741         * modules/lchown (Makefile.am): Likewise.
57742         * modules/localcharset (Makefile.am): Likewise.
57743         * modules/long-options (Makefile.am): Likewise.
57744         * modules/lstat (Makefile.am): Likewise.
57745         * modules/malloc (Makefile.am): Likewise.
57746         * modules/mathl (Makefile.am): Likewise.
57747         * modules/mbchar (Makefile.am): Likewise.
57748         * modules/md2 (Makefile.am): Likewise.
57749         * modules/md4 (Makefile.am): Likewise.
57750         * modules/md5 (Makefile.am): Likewise.
57751         * modules/memcasecmp (Makefile.am): Likewise.
57752         * modules/memchr (Makefile.am): Likewise.
57753         * modules/memcmp (Makefile.am): Likewise.
57754         * modules/memcoll (Makefile.am): Likewise.
57755         * modules/memcpy (Makefile.am): Likewise.
57756         * modules/memmem (Makefile.am): Likewise.
57757         * modules/memmove (Makefile.am): Likewise.
57758         * modules/mempcpy (Makefile.am): Likewise.
57759         * modules/memrchr (Makefile.am): Likewise.
57760         * modules/memset (Makefile.am): Likewise.
57761         * modules/memxor (Makefile.am): Likewise.
57762         * modules/mkancesdirs (Makefile.am): Likewise.
57763         * modules/mkdir-p (Makefile.am): Likewise.
57764         * modules/mkdir (Makefile.am): Likewise.
57765         * modules/mkdtemp (Makefile.am): Likewise.
57766         * modules/mkstemp (Makefile.am): Likewise.
57767         * modules/mktime (Makefile.am): Likewise.
57768         * modules/modechange (Makefile.am): Likewise.
57769         * modules/mountlist (Makefile.am): Likewise.
57770         * modules/nanosleep (Makefile.am): Likewise.
57771         * modules/obstack (Makefile.am): Likewise.
57772         * modules/openat (Makefile.am): Likewise.
57773         * modules/pagealign_alloc (Makefile.am): Likewise.
57774         * modules/pathmax (Makefile.am): Likewise.
57775         * modules/physmem (Makefile.am): Likewise.
57776         * modules/poll (Makefile.am): Likewise.
57777         * modules/posixtm (Makefile.am): Likewise.
57778         * modules/posixver (Makefile.am): Likewise.
57779         * modules/putenv (Makefile.am): Likewise.
57780         * modules/quote (Makefile.am): Likewise.
57781         * modules/quotearg (Makefile.am): Likewise.
57782         * modules/raise (Makefile.am): Likewise.
57783         * modules/read-file (Makefile.am): Likewise.
57784         * modules/readline (Makefile.am): Likewise.
57785         * modules/readlink (Makefile.am): Likewise.
57786         * modules/readtokens (Makefile.am): Likewise.
57787         * modules/readutmp (Makefile.am): Likewise.
57788         * modules/realloc (Makefile.am): Likewise.
57789         * modules/regex (Makefile.am): Likewise.
57790         * modules/rename-dest-slash (Makefile.am): Likewise.
57791         * modules/rename (Makefile.am): Likewise.
57792         * modules/rijndael (Makefile.am): Likewise.
57793         * modules/rmdir (Makefile.am): Likewise.
57794         * modules/rpmatch (Makefile.am): Likewise.
57795         * modules/safe-read (Makefile.am): Likewise.
57796         * modules/safe-write (Makefile.am): Likewise.
57797         * modules/same-inode (Makefile.am): Likewise.
57798         * modules/same (Makefile.am): Likewise.
57799         * modules/save-cwd (Makefile.am): Likewise.
57800         * modules/savedir (Makefile.am): Likewise.
57801         * modules/setenv (Makefile.am): Likewise.
57802         * modules/settime (Makefile.am): Likewise.
57803         * modules/sha1 (Makefile.am): Likewise.
57804         * modules/sig2str (Makefile.am): Likewise.
57805         * modules/snprintf (Makefile.am): Likewise.
57806         * modules/stat-macros (Makefile.am): Likewise.
57807         * modules/stat-time (Makefile.am): Likewise.
57808         * modules/stdbool (Makefile.am): Likewise.
57809         * modules/stdint (Makefile.am): Likewise.
57810         * modules/stdlib-safer (Makefile.am): Likewise.
57811         * modules/stpcpy (Makefile.am): Likewise.
57812         * modules/stpncpy (Makefile.am): Likewise.
57813         * modules/strcase (Makefile.am): Likewise.
57814         * modules/strcasestr (Makefile.am): Likewise.
57815         * modules/strchrnul (Makefile.am): Likewise.
57816         * modules/strcspn (Makefile.am): Likewise.
57817         * modules/strdup (Makefile.am): Likewise.
57818         * modules/strerror (Makefile.am): Likewise.
57819         * modules/strftime (Makefile.am): Likewise.
57820         * modules/strndup (Makefile.am): Likewise.
57821         * modules/strnlen (Makefile.am): Likewise.
57822         * modules/strpbrk (Makefile.am): Likewise.
57823         * modules/strsep (Makefile.am): Likewise.
57824         * modules/strstr (Makefile.am): Likewise.
57825         * modules/strtod (Makefile.am): Likewise.
57826         * modules/strtoimax (Makefile.am): Likewise.
57827         * modules/strtok_r (Makefile.am): Likewise.
57828         * modules/strtol (Makefile.am): Likewise.
57829         * modules/strtoll (Makefile.am): Likewise.
57830         * modules/strtoul (Makefile.am): Likewise.
57831         * modules/strtoull (Makefile.am): Likewise.
57832         * modules/strtoumax (Makefile.am): Likewise.
57833         * modules/strverscmp (Makefile.am): Likewise.
57834         * modules/sys_socket (Makefile.am): Likewise.
57835         * modules/sys_stat (Makefile.am): Likewise.
57836         * modules/sysexits (Makefile.am): Likewise.
57837         * modules/time_r (Makefile.am): Likewise.
57838         * modules/timegm (Makefile.am): Likewise.
57839         * modules/timespec (Makefile.am): Likewise.
57840         * modules/tmpfile-safer (Makefile.am): Likewise.
57841         * modules/trim (Makefile.am): Likewise.
57842         * modules/unistd-safer (Makefile.am): Likewise.
57843         * modules/unlinkdir (Makefile.am): Likewise.
57844         * modules/unlocked-io (Makefile.am): Likewise.
57845         * modules/userspec (Makefile.am): Likewise.
57846         * modules/utime (Makefile.am): Likewise.
57847         * modules/utimecmp (Makefile.am): Likewise.
57848         * modules/utimens (Makefile.am): Likewise.
57849         * modules/vasnprintf (Makefile.am): Likewise.
57850         * modules/vasprintf (Makefile.am): Likewise.
57851         * modules/vsnprintf (Makefile.am): Likewise.
57852         * modules/xalloc (Makefile.am): Likewise.
57853         * modules/xgetcwd (Makefile.am): Likewise.
57854         * modules/xnanosleep (Makefile.am): Likewise.
57855         * modules/xreadlink (Makefile.am): Likewise.
57856         * modules/xstrtod (Makefile.am): Likewise.
57857         * modules/xstrtol (Makefile.am): Likewise.
57858         * modules/xstrtold (Makefile.am): Likewise.
57859         * modules/yesno (Makefile.am): Likewise.
57860         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
57861
57862 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57863
57864         * modules/error (Makefile.am): Distribute files through
57865         EXTRA_DIST, not lib_SOURCES.
57866
57867 2006-10-12  Eric Blake  <ebb9@byu.net>
57868
57869         * modules/error (Makefile.am): Distribute files in /lib.
57870         * modules/obstack (Makefile.am): Likewise.
57871
57872 2006-10-12  Bruno Haible  <bruno@clisp.org>
57873
57874         * modules/acl (Makefile.am): Distribute all files in lib/ through
57875         EXTRA_DIST.
57876         * modules/arcfour (Makefile.am): Likewise.
57877         * modules/arctwo (Makefile.am): Likewise.
57878         * modules/argmatch (Makefile.am): Likewise.
57879         * modules/argz (Makefile.am): Likewise.
57880         * modules/atexit (Makefile.am): Likewise.
57881         * modules/backupfile (Makefile.am): Likewise.
57882         * modules/c-strtod (Makefile.am): Likewise.
57883         * modules/c-strtold (Makefile.am): Likewise.
57884         * modules/calloc (Makefile.am): Likewise.
57885         * modules/canon-host (Makefile.am): Likewise.
57886         * modules/canonicalize (Makefile.am): Likewise.
57887         * modules/chdir-long (Makefile.am): Likewise.
57888         * modules/chdir-safer (Makefile.am): Likewise.
57889         * modules/check-version (Makefile.am): Likewise.
57890         * modules/chown (Makefile.am): Likewise.
57891         * modules/cloexec (Makefile.am): Likewise.
57892         * modules/close-stream (Makefile.am): Likewise.
57893         * modules/closeout (Makefile.am): Likewise.
57894         * modules/crc (Makefile.am): Likewise.
57895         * modules/cycle-check (Makefile.am): Likewise.
57896         * modules/des (Makefile.am): Likewise.
57897         * modules/dirfd (Makefile.am): Likewise.
57898         * modules/dirname (Makefile.am): Likewise.
57899         * modules/dup2 (Makefile.am): Likewise.
57900         * modules/euidaccess (Makefile.am): Likewise.
57901         * modules/exclude (Makefile.am): Likewise.
57902         * modules/exitfail (Makefile.am): Likewise.
57903         * modules/fcntl-safer (Makefile.am): Likewise.
57904         * modules/file-type (Makefile.am): Likewise.
57905         * modules/fileblocks (Makefile.am): Likewise.
57906         * modules/filemode (Makefile.am): Likewise.
57907         * modules/filenamecat (Makefile.am): Likewise.
57908         * modules/fnmatch (Makefile.am): Likewise.
57909         * modules/fopen-safer (Makefile.am): Likewise.
57910         * modules/fpending (Makefile.am): Likewise.
57911         * modules/fprintftime (Makefile.am): Likewise.
57912         * modules/free (Makefile.am): Likewise.
57913         * modules/fsusage (Makefile.am): Likewise.
57914         * modules/ftruncate (Makefile.am): Likewise.
57915         * modules/fts (Makefile.am): Likewise.
57916         * modules/gc (Makefile.am): Likewise.
57917         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57918         * modules/getaddrinfo (Makefile.am): Likewise.
57919         * modules/getcwd (Makefile.am): Likewise.
57920         * modules/getdelim (Makefile.am): Likewise.
57921         * modules/getdomainname (Makefile.am): Likewise.
57922         * modules/getgroups (Makefile.am): Likewise.
57923         * modules/gethostname (Makefile.am): Likewise.
57924         * modules/gethrxtime (Makefile.am): Likewise.
57925         * modules/getline (Makefile.am): Likewise.
57926         * modules/getloadavg (Makefile.am): Likewise.
57927         * modules/getlogin_r (Makefile.am): Likewise.
57928         * modules/getopt (Makefile.am): Likewise.
57929         * modules/getpass (Makefile.am): Likewise.
57930         * modules/getpass-gnu (Makefile.am): Likewise.
57931         * modules/getsubopt (Makefile.am): Likewise.
57932         * modules/gettime (Makefile.am): Likewise.
57933         * modules/gettimeofday (Makefile.am): Likewise.
57934         * modules/getugroups (Makefile.am): Likewise.
57935         * modules/getusershell (Makefile.am): Likewise.
57936         * modules/glob (Makefile.am): Likewise.
57937         * modules/group-member (Makefile.am): Likewise.
57938         * modules/hard-locale (Makefile.am): Likewise.
57939         * modules/hash (Makefile.am): Likewise.
57940         * modules/hmac-md5 (Makefile.am): Likewise.
57941         * modules/hmac-sha1 (Makefile.am): Likewise.
57942         * modules/human (Makefile.am): Likewise.
57943         * modules/idcache (Makefile.am): Likewise.
57944         * modules/imaxabs (Makefile.am): Likewise.
57945         * modules/imaxdiv (Makefile.am): Likewise.
57946         * modules/inet_ntop (Makefile.am): Likewise.
57947         * modules/inet_pton (Makefile.am): Likewise.
57948         * modules/inttostr (Makefile.am): Likewise.
57949         * modules/isapipe (Makefile.am): Likewise.
57950         * modules/lchown (Makefile.am): Likewise.
57951         * modules/long-options (Makefile.am): Likewise.
57952         * modules/lstat (Makefile.am): Likewise.
57953         * modules/malloc (Makefile.am): Likewise.
57954         * modules/mathl (Makefile.am): Likewise.
57955         * modules/mbchar (Makefile.am): Likewise.
57956         * modules/md2 (Makefile.am): Likewise.
57957         * modules/md4 (Makefile.am): Likewise.
57958         * modules/md5 (Makefile.am): Likewise.
57959         * modules/memcasecmp (Makefile.am): Likewise.
57960         * modules/memchr (Makefile.am): Likewise.
57961         * modules/memcmp (Makefile.am): Likewise.
57962         * modules/memcoll (Makefile.am): Likewise.
57963         * modules/memcpy (Makefile.am): Likewise.
57964         * modules/memmem (Makefile.am): Likewise.
57965         * modules/memmove (Makefile.am): Likewise.
57966         * modules/mempcpy (Makefile.am): Likewise.
57967         * modules/memrchr (Makefile.am): Likewise.
57968         * modules/memset (Makefile.am): Likewise.
57969         * modules/memxor (Makefile.am): Likewise.
57970         * modules/mkancesdirs (Makefile.am): Likewise.
57971         * modules/mkdir (Makefile.am): Likewise.
57972         * modules/mkdir-p (Makefile.am): Likewise.
57973         * modules/mkdtemp (Makefile.am): Likewise.
57974         * modules/mkstemp (Makefile.am): Likewise.
57975         * modules/mktime (Makefile.am): Likewise.
57976         * modules/modechange (Makefile.am): Likewise.
57977         * modules/mountlist (Makefile.am): Likewise.
57978         * modules/nanosleep (Makefile.am): Likewise.
57979         * modules/openat (Makefile.am): Likewise.
57980         * modules/pagealign_alloc (Makefile.am): Likewise.
57981         * modules/physmem (Makefile.am): Likewise.
57982         * modules/poll (Makefile.am): Likewise.
57983         * modules/posixtm (Makefile.am): Likewise.
57984         * modules/posixver (Makefile.am): Likewise.
57985         * modules/putenv (Makefile.am): Likewise.
57986         * modules/quote (Makefile.am): Likewise.
57987         * modules/quotearg (Makefile.am): Likewise.
57988         * modules/raise (Makefile.am): Likewise.
57989         * modules/read-file (Makefile.am): Likewise.
57990         * modules/readline (Makefile.am): Likewise.
57991         * modules/readlink (Makefile.am): Likewise.
57992         * modules/readtokens (Makefile.am): Likewise.
57993         * modules/readutmp (Makefile.am): Likewise.
57994         * modules/realloc (Makefile.am): Likewise.
57995         * modules/regex (Makefile.am): Likewise.
57996         * modules/rename (Makefile.am): Likewise.
57997         * modules/rename-dest-slash (Makefile.am): Likewise.
57998         * modules/rijndael (Makefile.am): Likewise.
57999         * modules/rmdir (Makefile.am): Likewise.
58000         * modules/rpmatch (Makefile.am): Likewise.
58001         * modules/safe-read (Makefile.am): Likewise.
58002         * modules/safe-write (Makefile.am): Likewise.
58003         * modules/same (Makefile.am): Likewise.
58004         * modules/save-cwd (Makefile.am): Likewise.
58005         * modules/savedir (Makefile.am): Likewise.
58006         * modules/setenv (Makefile.am): Likewise.
58007         * modules/settime (Makefile.am): Likewise.
58008         * modules/sha1 (Makefile.am): Likewise.
58009         * modules/sig2str (Makefile.am): Likewise.
58010         * modules/snprintf (Makefile.am): Likewise.
58011         * modules/stdlib-safer (Makefile.am): Likewise.
58012         * modules/stpcpy (Makefile.am): Likewise.
58013         * modules/stpncpy (Makefile.am): Likewise.
58014         * modules/strcase (Makefile.am): Likewise.
58015         * modules/strcasestr (Makefile.am): Likewise.
58016         * modules/strchrnul (Makefile.am): Likewise.
58017         * modules/strcspn (Makefile.am): Likewise.
58018         * modules/strdup (Makefile.am): Likewise.
58019         * modules/strerror (Makefile.am): Likewise.
58020         * modules/strftime (Makefile.am): Likewise.
58021         * modules/strndup (Makefile.am): Likewise.
58022         * modules/strnlen (Makefile.am): Likewise.
58023         * modules/strpbrk (Makefile.am): Likewise.
58024         * modules/strsep (Makefile.am): Likewise.
58025         * modules/strstr (Makefile.am): Likewise.
58026         * modules/strtod (Makefile.am): Likewise.
58027         * modules/strtoimax (Makefile.am): Likewise.
58028         * modules/strtok_r (Makefile.am): Likewise.
58029         * modules/strtol (Makefile.am): Likewise.
58030         * modules/strtoll (Makefile.am): Likewise.
58031         * modules/strtoul (Makefile.am): Likewise.
58032         * modules/strtoull (Makefile.am): Likewise.
58033         * modules/strtoumax (Makefile.am): Likewise.
58034         * modules/strverscmp (Makefile.am): Likewise.
58035         * modules/time_r (Makefile.am): Likewise.
58036         * modules/timegm (Makefile.am): Likewise.
58037         * modules/tmpfile-safer (Makefile.am): Likewise.
58038         * modules/unistd-safer (Makefile.am): Likewise.
58039         * modules/unlinkdir (Makefile.am): Likewise.
58040         * modules/userspec (Makefile.am): Likewise.
58041         * modules/utime (Makefile.am): Likewise.
58042         * modules/utimecmp (Makefile.am): Likewise.
58043         * modules/utimens (Makefile.am): Likewise.
58044         * modules/vasnprintf (Makefile.am): Likewise.
58045         * modules/vasprintf (Makefile.am): Likewise.
58046         * modules/vsnprintf (Makefile.am): Likewise.
58047         * modules/xalloc (Makefile.am): Likewise.
58048         * modules/xgetcwd (Makefile.am): Likewise.
58049         * modules/xnanosleep (Makefile.am): Likewise.
58050         * modules/xreadlink (Makefile.am): Likewise.
58051         * modules/xstrtod (Makefile.am): Likewise.
58052         * modules/xstrtol (Makefile.am): Likewise.
58053         * modules/xstrtold (Makefile.am): Likewise.
58054         * modules/yesno (Makefile.am): Likewise.
58055
58056 2006-10-12  Jim Meyering  <jim@meyering.net>
58057
58058         * m4/getloadavg.m4: Revert the change below.
58059
58060         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58061         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58062         fail with a symlink, which is what coreutils' ./bootstrap now
58063         creates by default.
58064
58065 2006-10-12  Bruno Haible  <bruno@clisp.org>
58066
58067         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58068         mingw.
58069         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58070         MSVC and mingw explicitly.
58071
58072 2006-10-11  Simon Josefsson  <jas@extundo.com>
58073             Bruno Haible  <bruno@clisp.org>
58074
58075         Add support for multiple gnulib-tool invocations in the scope of a
58076         single configure.ac file.
58077         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58078         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58079         with the same contents as the _LIBADD variable.
58080         (func_emit_initmacro_start, func_emit_initmacro_end,
58081         func_emit_initmacro_done): New functions.
58082         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58083         gl_LIBOBJS and gl_LTLIBOBJS.
58084
58085 2006-10-11  Bruno Haible  <bruno@clisp.org>
58086
58087         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58088         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58089         autoreconf. Instead, invoke autopoint explicitly but move back the
58090         *.m4 files from gnulib.
58091
58092 2006-10-11  Bruno Haible  <bruno@clisp.org>
58093
58094         * gnulib-tool (func_usage): Make module names after --create-testdir
58095         optional.
58096         (func_create_testdir): If no module was specified, use nearly all
58097         modules.
58098
58099 2006-10-12  Jim Meyering  <jim@meyering.net>
58100
58101         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58102         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58103         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58104         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58105         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58106         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58107         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58108         (fts_set_stat_required): New function.
58109         (fts_open): Defer the calls to fts_stat, if possible or requested.
58110         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58111         into fts_stat itself.
58112         (fts_read): Perform any required (deferred) fts_stat call.
58113         (fts_build): Likewise, for the directory we're about to open and read.
58114         In the readdir loop, carefully decide whether each entry will require
58115         an eventual call to fts_stat, using dirent.d_type info if available.
58116         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58117         a command line argument into this function.  Update all callers.
58118         Map a return value of FTS_DOT to FTS_D for a command line argument.
58119         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58120         Thanks to Miklos Szeredi for his tenacity and for the initial
58121         bug report about "find" failing on a FUSE-based file system.
58122
58123         * lib/fts.c (fts_open): Use consistent indentation.
58124
58125 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58126
58127         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58128         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58129         reported by Jim Meyering.  All uses of cache variables renamed
58130         to match Autoconf's.
58131         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58132         the other one.
58133
58134         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58135         Fix misspelling in diagnostic.
58136
58137 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58138
58139         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58140         defined.  Problem reported by Matthew Woehlke.
58141
58142         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58143         Add support for Tandem NonStop R series.
58144         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58145         Use new macro.
58146
58147         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58148         (has_trailing_slash): Omit size arg; all callers changed.
58149         Omit 'inline', since it doesn't help performance and we'd
58150         need to configure it.
58151         Don't count //, ///, etc. as having a trailing slash.
58152         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58153         (rpl_rename_dest_slash): On failure, use rename's errno rather
58154         than (in some cases) an incorrect or junk errno.
58155         Simplify code by removing need to compute length; this does
58156         cause it to make two passes instead of one over the file name,
58157         but it's worth it.
58158
58159         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58160         change, since Autoconf's version may no longer be appropriate now
58161         that we are using CVS Autoconf's version.  Add support for Tandem.
58162
58163 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58164             Bruno Haible  <bruno@clisp.org>
58165
58166         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58167         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58168         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58169         gl_AC_TYPE_LONG_LONG.
58170
58171         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58172         instead of HAVE_LONG_LONG.
58173         * lib/printf-args.c (printf_fetchargs): Likewise.
58174         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58175         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58176         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58177         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58178         gl_AC_TYPE_LONG_LONG.
58179
58180 2006-10-11  Bruno Haible  <bruno@clisp.org>
58181
58182         * m4/longlong.m4: Add comments.
58183         * m4/ulonglong.m4: Likewise.
58184
58185 2006-10-10  Bruno Haible  <bruno@clisp.org>
58186
58187         Make it possible to #define stpcpy, strdup to aliases.
58188         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58189         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58190
58191 2006-10-10  Bruno Haible  <bruno@clisp.org>
58192
58193         Make it possible to #define gcd to an alias.
58194         * lib/gcd.c: Include config.h.
58195
58196 2006-10-10  Bruno Haible  <bruno@clisp.org>
58197
58198         Make it possible to #define c_isascii to an alias.
58199         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58200         defined. Undefine the macros before defining them, to avoid gcc
58201         warnings.
58202         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58203         define NO_C_CTYPE_MACROS early.
58204
58205 2006-10-10  Bruno Haible  <bruno@clisp.org>
58206
58207         Make it possible to #define set_program_name to an alias.
58208         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58209         ENABLE_RELOCATABLE early.
58210
58211 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58212
58213         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58214         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58215         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58216         More generally, don't assume that 64-bit signed int is available
58217         if unsigned int is, and vice versa.
58218         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58219         unsigned symbols, not on their signed counterparts.
58220         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58221         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58222         (UINT64_C, UINTMAX_C):
58223         Likewise.
58224         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58225         unsigned counterparts.
58226         (Have_long_long, Unsigned): New macros.
58227         (Int): Renamed from INT.
58228         (strtoimax): Use the new macros.
58229         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58230         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58231         * modules/inttypes (inttypes.h): Substitute
58232         HAVE_UNSIGNED_LONG_LONG_INT.
58233         * modules/stdint (stdint.h): Likewise.
58234         (Files): Add m4/ulonglong.m4.
58235
58236 2006-10-10  Bruno Haible  <bruno@clisp.org>
58237
58238         Fix a gcc -Wshadow warning.
58239         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58240         to 'bucket'.
58241         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58242         gl_linked_indexof_from_to): Likewise.
58243         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58244         Likewise.
58245         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58246         Likewise.
58247         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58248         Reported by Eric Blake.
58249
58250 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58251
58252         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58253         for NetBSD.  Problem reported by Bruno Haible.
58254
58255 2006-10-09  Jim Meyering  <jim@meyering.net>
58256
58257         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58258         Patch from Bruno Haible.
58259
58260 2006-10-09  Jim Meyering  <jim@meyering.net>
58261
58262         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58263         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58264         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58265
58266 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58267
58268         Don't include <config.h> twice; this doesn't work in some cases,
58269         e.g., when config.h has "#define intmax_t long long int" and
58270         we include <config.h>, <inttypes.h>, <config.h> in that order.
58271         Problem reported by Matthew Woehlke in:
58272         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58273         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58274         * lib/fts-cycle.c: Don't include config.h.
58275         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58276         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58277         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58278         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58279         inttypes.h.
58280         * lib/xstrtoumax.c: Likewise.
58281         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58282         __strtol and the like, so that this module is more like its siblings.
58283         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58284         Remove; no longer needed now that we assume gnulib inttypes.h.
58285
58286 2006-10-08  Bruno Haible  <bruno@clisp.org>
58287
58288         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58289         option.
58290
58291 2006-10-07  Jim Meyering  <jim@meyering.net>
58292
58293         * modules/inttypes (inttypes.h): Revert what seems to have been
58294         an inadvertent part of today's change: use "|", not "/" in the
58295         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58296
58297 2006-10-07  Bruno Haible  <bruno@clisp.org>
58298
58299         * modules/sublist: New file.
58300
58301 2006-10-07  Bruno Haible  <bruno@clisp.org>
58302
58303         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58304         * modules/argz (argz.h): Likewise.
58305         * modules/arpa_inet (arpa/inet.h): Likewise.
58306         * modules/byteswap (byteswap.h): Likewise.
58307         * modules/configmake (configmake.h): Likewise.
58308         * modules/fcntl (fcntl.h): Likewise.
58309         * modules/fnmatch (fnmatch.h): Likewise.
58310         * modules/getopt (getopt.h): Likewise.
58311         * modules/glob (glob.h): Likewise.
58312         * modules/inttypes (inttypes.h): Likewise.
58313         * modules/netinet_in (netinet/in.h): Likewise.
58314         * modules/poll (poll.h): Likewise.
58315         * modules/stdbool (stdbool.h): Likewise.
58316         * modules/stdint (stdint.h): Likewise.
58317         * modules/sys_select (sys/select.h): Likewise.
58318         * modules/sys_socket (sys/socket.h): Likewise.
58319         * modules/sys_stat (sys/stat.h): Likewise.
58320         * modules/sysexits (sysexits.h): Likewise.
58321         * modules/unistd (unistd.h): Likewise.
58322         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58323         Add a "DO NOT EDIT" comment to the generated file.
58324         (func_import): Likewise for gnulib-comp.m4.
58325
58326 2006-10-07  Bruno Haible  <bruno@clisp.org>
58327
58328         * lib/gl_sublist.h: New file.
58329         * lib/gl_sublist.c: New file.
58330
58331 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58332
58333         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58334         name (relative to the original working directory) and the file
58335         name component (relative to the temporary working directory).  All
58336         callers changed.
58337         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58338         * lib/mkdir-p.c (make_dir_parents): Likewise.
58339         * lib/mkdir-p.h (make_dir_parents): Likewise.
58340
58341 2006-10-06  Eric Blake  <ebb9@byu.net>
58342
58343         Define several macros for use by the clean-temp module.
58344         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58345         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58346         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58347
58348         * lib/clean-temp.h (close_stream_temp): New declaration.
58349         * lib/clean-temp.c (includes): Pull in headers according to what
58350         other modules are in use.
58351         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58352
58353 2006-10-06  Bruno Haible  <bruno@clisp.org>
58354
58355         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58356         instead of fopen, fwriteerror.
58357
58358 2006-10-06  Bruno Haible  <bruno@clisp.org>
58359
58360         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58361         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58362         int.
58363         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58364         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58365         Return an error indicator.
58366         Suggested by Eric Blake.
58367
58368 2006-10-06  Bruno Haible  <bruno@clisp.org>
58369
58370         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58371         Reported by Eric Blake.
58372
58373 2006-10-06  Bruno Haible  <bruno@clisp.org>
58374
58375         * modules/closeout (Description): Mention stderr too.
58376
58377 2006-10-06  Bruno Haible  <bruno@clisp.org>
58378         and Paul Eggert  <eggert@cs.ucla.edu>
58379
58380         * lib/closeout.c (close_stdout): Also close stderr.
58381         * lib/closeout.h: Update comment.
58382
58383 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58384
58385         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58386         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58387         * lib/dirchownmod.c: Include lchown.h.
58388         * lib/lchown.c: Don't include files that lchown.h now includes.
58389         Don't declare chown, since lchown.h now does that.
58390         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58391         (lchown): Define to rpl_chown if lchown is declared but
58392         does not exist.  Declare using a prototype if lchown is not
58393         declared.  Add a copyright notice.
58394         * lib/mkstemp.h: Include <unistd.h>.
58395         * lib/openat.c: Include lchown.h.
58396
58397         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58398         we now test for that separately.
58399         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58400         rather than O_NOFOLLOW, when testing whether it's possible to
58401         avoid a race condition reliably.
58402         * lib/savewd.c (savewd_chdir): Likewise.
58403
58404         Remove macros that are no longer needed now that stdint.h is
58405         reliable.
58406         * lib/fsusage.c (UINTMAX_MAX): Remove.
58407         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58408         * lib/utimecmp.c (SIZE_MAX): Remove.
58409
58410         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58411
58412         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58413         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58414         O_NOATIME works.
58415
58416 2006-10-05  Bruno Haible  <bruno@clisp.org>
58417
58418         * lib/gl_list.h (gl_sortedlist_search_from_to,
58419         gl_sortedlist_indexof_from_to): New declarations.
58420         (gl_list_implementation): New fields sortedlist_search_from_to,
58421         sortedlist_indexof_from_to.
58422         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58423         inline functions.
58424         * lib/gl_list.c (gl_sortedlist_search_from_to,
58425         gl_sortedlist_indexof_from_to): New functions.
58426         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58427         function.
58428         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58429         (gl_array_sortedlist_search_from_to): New function.
58430         (gl_array_list_implementation): Update.
58431         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58432         function.
58433         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58434         (gl_carray_sortedlist_search_from_to): New function.
58435         (gl_carray_list_implementation): Update.
58436         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58437         gl_linked_sortedlist_indexof_from_to): New functions.
58438         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58439         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58440         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58441         gl_tree_sortedlist_indexof_from_to): New functions.
58442         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58443         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58444         Update.
58445         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58446         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58447         Update.
58448
58449 2006-10-05  Bruno Haible  <bruno@clisp.org>
58450
58451         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58452         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58453         (struct gl_list_implementation): Add fields search_from_to,
58454         indexof_from_to. Remove fields search, indexof.
58455         (gl_list_search): Use the search_from_to method.
58456         (gl_list_search_from, gl_list_search_from_to): New functions.
58457         (gl_list_indexof): Use the indexof_from_to method.
58458         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58459         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58460         (gl_list_search_from, gl_list_search_from_to): New functions.
58461         (gl_list_indexof): Use the indexof_from_to method.
58462         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58463         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58464         gl_array_indexof. Add start_index, end_index arguments.
58465         (gl_array_search_from_to): Renamed from gl_array_search. Add
58466         start_index, end_index arguments.
58467         (gl_array_remove, gl_array_list_implementation): Update.
58468         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58469         gl_carray_indexof. Add start_index, end_index arguments.
58470         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58471         start_index, end_index arguments.
58472         (gl_carray_remove, gl_carray_list_implementation): Update.
58473         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58474         gl_linked_search. Add start_index, end_index arguments.
58475         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58476         start_index, end_index arguments.
58477         (gl_linked_remove): Update.
58478         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58479         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58480         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58481         field to 'size_t'.
58482         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58483         gl_tree_search. Add start_index, end_index arguments.
58484         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58485         start_index, end_index arguments.
58486         (gl_tree_remove): Update.
58487         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58488         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58489         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58490         function.
58491         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58492         gl_tree_search. Add start_index, end_index arguments.
58493         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58494         start_index, end_index arguments.
58495         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58496         Update.
58497         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58498
58499 2006-10-05  Bruno Haible  <bruno@clisp.org>
58500
58501         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58502
58503         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58504         fwriteerror_temp): New declarations.
58505         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58506         (descriptors): New variable.
58507         (cleanup): First, close the descriptors.
58508         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58509         fclose_temp, fwriteerror_temp): New functions.
58510
58511 2006-10-04  Jim Meyering  <jim@meyering.net>
58512
58513         * lib/fts.c (fts_open): Tiny comment change.
58514
58515 2006-10-04  Bruno Haible  <bruno@clisp.org>
58516
58517         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58518         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58519         gl_LOCK_BODY.
58520         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
58521         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
58522         gl_LOCK_EARLY_BODY.
58523         (gl_LOCK): Require gl_LOCK_BODY.
58524
58525 2006-10-04  Bruno Haible  <bruno@clisp.org>
58526
58527         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
58528         (gl_oset_search_atleast): New declaration.
58529         (struct gl_oset_implementation): Add field 'search_atleast'.
58530         (gl_oset_search_atleast): New inline function.
58531         * lib/gl_oset.c (gl_oset_search_atleast): New function.
58532         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
58533         (gl_array_oset_implementation): Update.
58534         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
58535         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
58536         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
58537
58538 2006-10-04  Bruno Haible  <bruno@clisp.org>
58539
58540         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
58541
58542 2006-10-03  Bruno Haible  <bruno@clisp.org>
58543
58544         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
58545         from gl_avltreehash_list_implementation.
58546
58547 2006-10-03  Bruno Haible  <bruno@clisp.org>
58548
58549         * lib/gl_oset.c (gl_oset_add): Fix return type.
58550
58551 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
58552
58553         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
58554
58555 2006-10-02  Eric Blake  <ebb9@byu.net>
58556
58557         * modules/strnlen (Depends-on): Add extensions.
58558
58559 2006-10-02  Eric Blake  <ebb9@byu.net>
58560
58561         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
58562         definition in 2.60+.
58563
58564 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
58565
58566         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
58567         checks.
58568
58569 2006-10-02  Bruno Haible  <bruno@clisp.org>
58570
58571         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
58572         to the AUTOMAKE_OPTIONS.
58573         Reported by Jim Meyering.
58574
58575 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58576
58577         Work around bug in Solaris 10 /proc file system:
58578         /proc/self/fd/NNN/.. isn't the parent directory of
58579         the directory whose file descriptor is NNN.  This needs to
58580         be worked around at run time, not compile time, since a
58581         program might be built on Solaris 8, where things work, and
58582         run on Solaris 10.
58583         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
58584         to use the following interface instead:
58585         (OPENAT_BUFFER_SIZE): New macro.
58586         (openat_proc_name): New function.
58587         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
58588         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
58589         Likewise.
58590         * lib/openat-proc.c: New file.
58591         * modules/openat (Files): Add lib/openat-proc.c.
58592         (Depends-on): Add same-inode, stdbool.
58593         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
58594
58595 2006-09-29  Bruno Haible  <bruno@clisp.org>
58596
58597         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
58598         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
58599         argument. Set stdout_closed before testing for ferror, not after.
58600         (fwriteerror, fwriteerror_no_ebadf): New functions.
58601
58602 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58603
58604         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
58605
58606 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
58607
58608         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
58609         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
58610
58611 2006-09-28  Jim Meyering  <jim@meyering.net>
58612
58613         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
58614         Include <unistd.h>.
58615
58616 2006-09-28  Bruno Haible  <bruno@clisp.org>
58617
58618         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
58619         * modules/linkedhash-list (Depends-on): Likewise.
58620         * modules/rbtreehash-list (Depends-on): Likewise.
58621
58622 2006-09-28  Bruno Haible  <bruno@clisp.org>
58623
58624         * lib/strndup.h: Simplify the redefinition of strndup.
58625         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
58626         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
58627
58628 2006-09-28  Bruno Haible  <bruno@clisp.org>
58629
58630         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
58631         * lib/gl_linkedhash_list.c: Likewise.
58632         * lib/gl_rbtreehash_list.c: Likewise.
58633
58634 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58635
58636         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
58637         getaddrinfo.
58638
58639         * lib/__fpending.h: Don't include <stdio_ext.h> unless
58640         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
58641         it causes <stdio_ext.h> to cause a compile-time error.
58642         Problem reported by Nelson H. F. Beebe.
58643         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
58644         of HAVE_DECL___PENDING.
58645
58646         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
58647         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
58648         declaration.
58649
58650 2006-09-27  Jim Meyering  <jim@meyering.net>
58651
58652         This file could end up with a definition for a function
58653         named __strndup, rather than rpl_strndup on a system with
58654         incomplete weak_alias support.
58655         * lib/strndup.c (strndup): Rename from __strndup.
58656         Remove #defines that used to map __strndup to strndup.
58657         Don't use K&R prototypes.
58658         Remove LIBC-related code, since this file is not sync'd with glibc.
58659         * lib/strndup.h: Revamp, accordingly.
58660         * m4/strndup.m4: Modernize.
58661
58662 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58663
58664         * modules/savewd (Depends-on): Add 'raise'.
58665         * lib/savewd.c: Include <signal.h>, for 'raise'.
58666
58667 2006-09-26  Jim Meyering  <jim@meyering.net>
58668
58669         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
58670         when we detect Darwin 8.7.0's acl_get_file bug.
58671         Rearrange to perform the new (below) run-test while $LIBS
58672         contains any acl-related library.  Set USE_ACL at the end.
58673         (gl_ACL_GET_FILE): New function.
58674
58675 2006-09-26  Eric Blake  <ebb9@byu.net>
58676
58677         * lib/verror.c: Include <config.h> unconditionally.
58678
58679 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
58680
58681         * modules/clock-time (Maintainer): Add self.
58682         * modules/getlogin_r (Depends-on): Add extensions.
58683
58684 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58685
58686         * modules/clock-time: New module.
58687         * modules/nanosleep (Depends-on): Add clock-time.
58688         * modules/gethrxtime (Depends-on): Likewise.
58689         * modules/gettime (Depends-on): Likewise.
58690         * modules/settime (Depends-on): Likewise.
58691
58692         * modules/fts-lgpl: Depend on openat.
58693         * modules/mkancesdirs: Depend on savewd.
58694         * modules/mkdir-p: Likewise.
58695
58696 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58697
58698         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58699
58700         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58701         `gl_have_arbitrary_file_name_length_limit' to
58702         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58703         actually works between configure runs.
58704
58705 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58706             Bruno Haible  <bruno@clisp.org>
58707
58708         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58709
58710 2006-09-25  Jim Meyering  <jim@meyering.net>
58711
58712         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58713         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58714
58715 2006-09-25  Eric Blake  <ebb9@byu.net>
58716
58717         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58718         exec's in 2006-09-18 patch when shuffling fds.
58719
58720 2006-09-25  Bruno Haible  <bruno@clisp.org>
58721
58722         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58723         Reported by Jim Meyering.
58724
58725 2006-09-24  Jim Meyering  <jim@meyering.net>
58726
58727         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58728         compare a pointer against a literal "0".  That caused failures with
58729         at least HP-UX's hpcc.
58730
58731 2006-09-22  Simon Josefsson  <jas@extundo.com>
58732
58733         * modules/gc-sha1:
58734         * modules/gc-md4:
58735         * modules/gc-hmac-sha1:
58736         * modules/gc-hmac-md5:
58737         * modules/gc-des:
58738         * modules/gc-arcfour: Distribute more files.
58739
58740 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58741
58742         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58743         (gl_linked_iterator_from_to): Initialize struct completely.
58744         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58745         (gl_tree_iterator_from_to): Likewise
58746         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58747         * lib/gl_array_list.c [lint] (gl_array_iterator)
58748         (gl_array_iterator_from_to): Likewise.
58749         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58750         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58751         (gl_carray_iterator_from_to): Likewise.
58752
58753         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58754         * lib/md4.c (md4_process_block): Remove unused variable.
58755         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58756         parentheses for clarity.
58757
58758 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58759
58760         * modules/bison-i18n (Depends-on): Add gettext.
58761
58762 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58763
58764         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58765         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58766         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58767         also add missing comma that caused broken test.
58768         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58769         stdlib.h, for `abort'.
58770         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58771         variables.
58772         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58773         include unistd.h if present, for `rmdir'.
58774         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58775         variables.
58776         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58777         in the process include standard headers for prototypes.
58778         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58779         gets declared on GNU/Linux.
58780         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58781         unistd.h, for `rmdir'.
58782         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58783
58784         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58785         always true.
58786         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58787
58788         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58789
58790 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58791
58792         * gnulib-tool (func_version): Create output all at once.  This
58793         may help avoid triggering unnecessary SIGPIPEs, and at any
58794         rate it doesn't hurt.
58795
58796 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58797             Bruno Haible  <bruno@clisp.org>
58798
58799         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
58800         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58801         * m4/signed.m4 (bh_C_SIGNED): Likewise.
58802
58803         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
58804         (gl_FUNC_VASPRINTF): Invoke it.
58805
58806 2006-09-22  Bruno Haible  <bruno@clisp.org>
58807
58808         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
58809         getloadavg.c as first argument.
58810
58811 2006-09-22  Bruno Haible  <bruno@clisp.org>
58812
58813         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
58814         at the beginning of the gl_INIT macro.
58815         * modules/getloadavg (configure.ac): Pass $gl_source_base to
58816         gl_GETLOADAVG.
58817
58818 2006-09-22  Bruno Haible  <bruno@clisp.org>
58819
58820         * gnulib-tool (func_create_megatestdir): Don't include the config-h
58821         module.
58822         Suggested by Ralf Wildenhues.
58823
58824 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58825
58826         Import this patch from libc:
58827
58828         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
58829
58830         * lib/regex_internal.c (re_string_reconstruct): Handle
58831         offset < pstr->valid_raw_len && pstr->offsets_needed case.
58832         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
58833         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
58834         re_string_context_at.
58835
58836         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
58837         now requires it.
58838         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
58839         gl_REGEX now does it for us.
58840         (gl_REGEX): Add test taken from
58841         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
58842
58843         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
58844         Check that large offsets work.  Modernize Autoconf usages.
58845         Prefer "yes" to mean a good thing rather than a bad.
58846         Don't put "#define mkstemp" in config.h, as this might interfere
58847         with standard system headers that "#define mkstemp mkstemp64".
58848
58849         * modules/mkstemp (Depends-on): Add extensions, so that
58850         mkstemp is visible on some platforms.
58851         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
58852         (Include): Change to "mkstemp.h" from <stdlib.h>.
58853         (Files): Add mkstemp.h.
58854
58855         * lib/mkstemp.h: New file, since some standard headers
58856         #define mkstemp.
58857         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
58858         Include "mkstemp.h".
58859         Make the _LIBC code resemble glibc original more,
58860         e.g., use K&R style.
58861         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
58862         (mkstemp): Remove, since mkstemp.h does this for us.
58863         * lib/stdlib--.h: Include mkstemp.h.
58864
58865         Import this patch from libc:
58866
58867         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58868
58869         * lib/tempname.c (__gen_tempname): Change attempts_min
58870         into a macro.  Use preprocessor to decide how to initialize
58871         attempts [Coverity CID 67].
58872
58873 2006-09-20  Bruno Haible  <bruno@clisp.org>
58874
58875         * lib/mkdtemp.c: Import from libc.
58876         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58877                 * sysdeps/posix/tempname.c (__gen_tempname): Change
58878                 attempts_min into a macro.  Use preprocessor to decide how to
58879                 initialize attempts [Coverity CID 67].
58880         2001-11-27  Paul Eggert  <eggert@twinsun.com>
58881                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
58882                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
58883
58884 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58885
58886         * gnulib-tool (func_exit): New function, to allow to pass the
58887         exit status portably through the trap.  Use everywhere.
58888         (--help, --version): Signal a write error.
58889         (trap): catch SIGPIPE, for write errors.
58890         Exit at the end of the trap, with the correct exit status.
58891
58892 2006-09-19  Karl Berry  <karl@gnu.org>
58893
58894         * doc/gnulib.texi: note about the license texinfo files.
58895
58896 2006-09-19  Eric Blake  <ebb9@byu.net>
58897
58898         * gnulib-tool: Avoid space-tab.
58899
58900 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58901
58902         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
58903         that prevented coreutils 6.1 from building.  Problem reported
58904         by Petter Reinholdtsen.
58905
58906 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58907
58908         * gnulib-tool (avoidlist): Fix typo that broke options like
58909         --avoid=lock that are used by coreutils bootstrap.
58910
58911 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
58912
58913         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
58914         more systematically.
58915
58916 2006-09-18  Jim Meyering  <jim@meyering.net>
58917
58918         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
58919
58920 2006-09-18  Bruno Haible  <bruno@clisp.org>
58921
58922         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
58923
58924 2006-09-18  Bruno Haible  <bruno@clisp.org>
58925
58926         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
58927         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
58928         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
58929         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
58930         * m4/gettext.m4: Require autoconf >= 2.52.
58931         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
58932         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
58933         of gl_cv_header_inttypes_h.
58934
58935 2006-09-18  Bruno Haible  <bruno@clisp.org>
58936
58937         * lib/javaversion.c: Include configmake.h.
58938
58939 2006-09-18  Bruno Haible  <bruno@clisp.org>
58940
58941         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
58942         avoid that the while loops be executed in a subshell.
58943
58944 2006-09-18  Bruno Haible  <bruno@clisp.org>
58945
58946         * MODULES.html.sh (func_module): Break long lines.
58947         Suggested by Bruce Korb <bkorb@gnu.org>.
58948
58949 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58950
58951         Speed up by a factor of 1.12.
58952         * gnulib-tool (nl): New variable.
58953         (func_import): Rewrite include directive extraction to only read each
58954         directive once.
58955
58956 2006-09-17  Bruno Haible  <bruno@clisp.org>
58957
58958         * modules/javaversion (Makefile.am): Remove DEFS setting.
58959         (Depends-on): Add configmake, for PKGDATADIR definition.
58960
58961 2006-09-17  Bruno Haible  <bruno@clisp.org>
58962
58963         * gnulib-tool (func_create_testdir): Rewrite all files at once.
58964
58965 2006-09-17  Bruno Haible  <bruno@clisp.org>
58966
58967         * gnulib-tool (func_append): New function, stolen from libtool.m4.
58968         (func_modules_transitive_closure, func_modules_add_dummy,
58969         func_modules_to_filelist, func_import, func_create_testdir,
58970         func_create_megatestdir, ...): Use it wherever possible.
58971         Suggested by Ralf Wildenhues.
58972
58973 2006-09-16  Karl Berry  <karl@gnu.org>
58974
58975         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
58976         to avoid sectioning errors.
58977         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
58978         [ifinfo]: blank line after @center-ed titles.
58979         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
58980         Spell FSF address consistently with others.
58981         (These changes approved by rms.)
58982
58983 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58984
58985         Speed up by a factor of 1.61.
58986         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
58987         already checked module names again.
58988
58989 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58990
58991         Speed up by a factor of 1.13.
58992         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
58993         for new_files, and the input to func_add_or_update.
58994
58995 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58996
58997         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
58998         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
58999
59000 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59001
59002         * modules/mkancesdirs (Depends-on): Add fcntl.
59003         * modules/savewd: New file.
59004         * MODULES.html.sh (File system functions): Add savewd.
59005
59006         * modules/configmake (Makefile.am): Add support for the
59007         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59008
59009 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59010
59011         * m4/savewd.m4: New file.
59012
59013 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59014
59015         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59016         (dirchownmod): New arg FD.  All callers changed.
59017         Use FD rather than opening the directory ourself, as opening is
59018         now the caller's responsibility.
59019         * lib/dirchownmod.h: Likewise.
59020         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59021         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59022         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59023         (test_dir): Remove.
59024         (mkancesdirs): Return length of prefix of FILE that has already
59025         been made, or -2 if there is a child doing the work.  Redo
59026         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59027         ".", and treat ".." specially since it might stray back into
59028         already-created areas.  Use a subprocess if necessary.  New arg
59029         WD; all users changed.  MAKE_DIR function should now return 1
59030         if it creates a directory that is not readable.  Return -2 if
59031         a child process is spun off.
59032         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59033         Adjust signature to match code.
59034         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59035         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59036         all users changed.
59037         * lib/savewd.c, lib/savewd.h: New files.
59038
59039 2006-09-15  Jim Meyering  <jim@meyering.net>
59040
59041         * modules/rename-dest-slash: New module.
59042         * MODULES.html.sh (posix_compat): Add it here.
59043
59044         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59045
59046 2006-09-15  Jim Meyering  <jim@meyering.net>
59047
59048         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59049         file.
59050
59051         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59052
59053 2006-09-15  Jim Meyering  <jim@meyering.net>
59054
59055         * lib/rename-dest-slash.c (has_trailing_slash): Use
59056         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59057         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59058         test before testing whether SRC is a directory.
59059         Suggestions from Bruno Haible.
59060
59061         Avoid a warning about an unused variable.
59062         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59063         into the #ifdef block where it's used.
59064
59065         * lib/rename-dest-slash.c: New file.
59066
59067 2006-09-14  Bruno Haible  <bruno@clisp.org>
59068
59069         * lib/allocsa.c: Include <config.h> unconditionally.
59070         * lib/asnprintf.c: Likewise.
59071         * lib/asprintf.c: Likewise.
59072         * lib/c-strcasecmp.c: Likewise.
59073         * lib/c-strcasestr.c: Likewise.
59074         * lib/c-strncasecmp.c: Likewise.
59075         * lib/c-strstr.c: Likewise.
59076         * lib/classpath.c: Likewise.
59077         * lib/clean-temp.c: Likewise.
59078         * lib/concatpath.c: Likewise.
59079         * lib/copy-file.c: Likewise.
59080         * lib/csharpcomp.c: Likewise.
59081         * lib/csharpexec.c: Likewise.
59082         * lib/execute.c: Likewise.
59083         * lib/fatal-signal.c: Likewise.
59084         * lib/findprog.c: Likewise.
59085         * lib/fwriteerror.c: Likewise.
59086         * lib/gl_array_list.c: Likewise.
59087         * lib/gl_array_oset.c: Likewise.
59088         * lib/gl_avltree_list.c: Likewise.
59089         * lib/gl_avltree_oset.c: Likewise.
59090         * lib/gl_avltreehash_list.c: Likewise.
59091         * lib/gl_carray_list.c: Likewise.
59092         * lib/gl_linked_list.c: Likewise.
59093         * lib/gl_linkedhash_list.c: Likewise.
59094         * lib/gl_list.c: Likewise.
59095         * lib/gl_oset.c: Likewise.
59096         * lib/gl_rbtree_list.c: Likewise.
59097         * lib/gl_rbtree_oset.c: Likewise.
59098         * lib/gl_rbtreehash_list.c: Likewise.
59099         * lib/imaxabs.c: Likewise.
59100         * lib/imaxdiv.c: Likewise.
59101         * lib/javacomp.c: Likewise.
59102         * lib/javaexec.c: Likewise.
59103         * lib/javaversion.c: Likewise.
59104         * lib/linebreak.c: Likewise.
59105         * lib/localcharset.c: Likewise.
59106         * lib/lock.c: Likewise.
59107         * lib/mbchar.c: Likewise.
59108         * lib/mbswidth.c: Likewise.
59109         * lib/mkdtemp.c: Likewise.
59110         * lib/pipe.c: Likewise.
59111         * lib/printf-args.c: Likewise.
59112         * lib/printf-parse.c: Likewise.
59113         * lib/progname.c: Likewise.
59114         * lib/progreloc.c: Likewise.
59115         * lib/readlink.c: Likewise.
59116         * lib/sh-quote.c: Likewise.
59117         * lib/stpcpy.c: Likewise.
59118         * lib/stpncpy.c: Likewise.
59119         * lib/strcasecmp.c: Likewise.
59120         * lib/strcasestr.c: Likewise.
59121         * lib/strcspn.c: Likewise.
59122         * lib/striconv.c: Likewise.
59123         * lib/strncasecmp.c: Likewise.
59124         * lib/strnlen1.c: Likewise.
59125         * lib/strstr.c: Likewise.
59126         * lib/strtok_r.c: Likewise.
59127         * lib/tls.c: Likewise.
59128         * lib/tmpdir.c: Likewise.
59129         * lib/unicodeio.c: Likewise.
59130         * lib/unsetenv.c: Likewise.
59131         * lib/vasnprintf.c: Likewise.
59132         * lib/vasprintf.c: Likewise.
59133         * lib/wait-process.c: Likewise.
59134         * lib/xallocsa.c: Likewise.
59135         * lib/xsetenv.c: Likewise.
59136         * lib/xstriconv.c: Likewise.
59137
59138 2006-09-13  Simon Josefsson  <jas@extundo.com>
59139
59140         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59141         that internally, suggested by Ralf Wildenhues
59142         <Ralf.Wildenhues@gmx.de>.
59143
59144 2006-09-13  Simon Josefsson  <jas@extundo.com>
59145
59146         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59147         @LIBOBJS@.
59148         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59149
59150 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59151
59152         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59153         longer worry about uses that don't define HAVE_CONFIG_H.
59154         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59155         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59156         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59157         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59158         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59159         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59160         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59161         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59162         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59163         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59164         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59165         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59166         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59167         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59168         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59169         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59170         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59171         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59172         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59173         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59174         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59175         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59176         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59177         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59178         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59179         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59180         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59181         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59182         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59183         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59184         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59185         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59186         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59187         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59188         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59189         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59190         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59191         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59192         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59193         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59194         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59195         Likewise.
59196
59197 2006-09-13  Eric Blake  <ebb9@byu.net>
59198
59199         * lib/getopt.c: Fix typo in last commit.
59200
59201 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59202
59203         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59204         dgettext.
59205
59206 2006-09-12  Jim Meyering  <jim@meyering.net>
59207
59208         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59209         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59210         Reported by Nelson H. F. Beebe.
59211
59212 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59213
59214         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59215         program_invocation_name and program_invocation_short_name are
59216         initialized.
59217         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59218         and program_invocation_short_name to argp.h, so they are visible
59219         to user programs.
59220         * lib/argp.h: Likewise
59221
59222 2006-09-10  Bruno Haible  <bruno@clisp.org>
59223
59224         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59225         m4/inttypes_h.m4, m4/uintmax_t.m4.
59226
59227 2006-09-10  Bruno Haible  <bruno@clisp.org>
59228
59229         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59230         gl_AC_TYPE_UINTMAX_T.
59231
59232 2006-09-10  Bruno Haible  <bruno@clisp.org>
59233
59234         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59235
59236 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59237
59238         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59239         convention.  Text proposed by Bruno Haible.
59240         (struct argp_option): Document the use of N_() wrappers.
59241
59242         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59243         '\v', and translate the two parts separately, instead of feeding
59244         the whole string to gettext.  This allows to exclude
59245         '\v' from the strings visible to the translator by writing doc
59246         strings as N_("..") "\v" N_("..").
59247
59248 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59249
59250         * config/srclist.txt: Undo latest change; the bug was fixed.
59251
59252 2006-09-09  Bruno Haible  <bruno@clisp.org>
59253
59254         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59255         assignments if building a library without libtool.
59256         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59257         in func_emit_lib_Makefile_am.
59258         (func_import): When building a static library libfoo.a, arrange to
59259         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59260         (func_create_testdir): Likewise.
59261         * modules/gc (configure.ac, Makefile.am): If building statically,
59262         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59263         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59264         * modules/striconv (configure.ac, Makefile.am): Likewise.
59265         Based on a suggestion by Ralf Wildenhues.
59266
59267 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59268
59269         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59270         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59271         Also:
59272
59273         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59274         Add year_2050_test to catch glibc bug 2821
59275         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59276
59277         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59278         Prefer #ifdef to #if.
59279
59280         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59281         Return from 'main' instead of calling 'exit'.
59282
59283 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59284
59285         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59286         returned the maximum time_t value rather than (time_t) -1.
59287         Problem originally reported by William Bardwell
59288         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59289
59290         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59291         Moved to here ...
59292         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59293         ... from here.
59294
59295 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59296
59297         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59298         2821 is fixed.
59299
59300 2006-09-08  Jim Meyering  <jim@meyering.net>
59301
59302         Don't make generated files read-only.  That would bother too many
59303         people.  However, do retain the ability to work when targets are
59304         read-only: remove the destination and temporary files before writing
59305         them (when generated via sed or echo), or by using the -f option for
59306         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59307         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59308         * modules/byteswap, modules/configmake, modules/fcntl:
59309         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59310         * modules/localcharset, modules/netinet_in, modules/poll:
59311         * modules/stdbool, modules/stdint, modules/sys_select:
59312         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59313
59314 2006-09-08  Jim Meyering  <jim@meyering.net>
59315
59316         Avoid new build failure on FreeBSD 6.0.
59317         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59318         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59319         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59320
59321 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59322
59323         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59324
59325 2006-09-07  Jim Meyering  <jim@meyering.net>
59326
59327         Fix global typo in last change: use chmod u-w, not chmod u-x.
59328         Spotted by Paul Eggert and Bruce Korb.
59329         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59330         * modules/byteswap, modules/configmake, modules/fcntl:
59331         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59332         * modules/localcharset, modules/netinet_in, modules/poll:
59333         * modules/stdbool, modules/stdint, modules/sys_select:
59334         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59335
59336 2006-09-06  Jim Meyering  <jim@meyering.net>
59337
59338         Make generated files be read-only.
59339         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59340         Ensure that each generated file is now read-only.
59341         * modules/argz: Likewise.
59342         * modules/arpa_inet: Likewise.
59343         * modules/byteswap: Likewise.
59344         * modules/configmake: Likewise.
59345         * modules/fcntl: Likewise.
59346         * modules/fnmatch: Likewise.
59347         * modules/getopt: Likewise.
59348         * modules/glob: Likewise.
59349         * modules/inttypes: Likewise.
59350         * modules/netinet_in: Likewise.
59351         * modules/poll: Likewise.
59352         * modules/stdbool: Likewise.
59353         * modules/stdint: Likewise.
59354         * modules/sys_select: Likewise.
59355         * modules/sys_socket: Likewise.
59356         * modules/sys_stat: Likewise.
59357         * modules/sysexits: Likewise.
59358         * modules/localcharset: Same as above, but continue using temporary
59359         file named "t-$@" (why different?) rather than the "$@-t" used
59360         everywhere else.
59361
59362         * modules/sysexits (Makefile.am): Replace literal occurrences
59363         of "sysexit.h" more readable, and more consistent, "$@".
59364
59365 2006-09-06  Bruno Haible  <bruno@clisp.org>
59366
59367         * modules/striconv: New file.
59368         * modules/xstriconv: New file.
59369         * MODULES.html.sh (Internationalization functions): Add striconv,
59370         xstriconv.
59371
59372 2006-09-06  Bruno Haible  <bruno@clisp.org>
59373
59374         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59375         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59376         not using libtool correctly.
59377
59378 2006-09-06  Bruno Haible  <bruno@clisp.org>
59379
59380         * lib/striconv.h: New file.
59381         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59382         iconvstring.c.
59383         * lib/xstriconv.h: New file.
59384         * lib/xstriconv.c: New file.
59385
59386 2006-09-06  Bruno Haible  <bruno@clisp.org>
59387
59388         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59389         lib_..._LDFLAGS.
59390
59391 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59392
59393         * lib/argz_.h: Sync from Libtool.
59394
59395         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59396                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59397
59398         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59399
59400 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59401
59402         * modules/trim: New file.
59403
59404 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59405
59406         * lib/trim.h: New file.
59407         * lib/trim.c: New file.
59408
59409 2006-09-05  Bruno Haible  <bruno@clisp.org>
59410
59411         * MODULES.html.sh (String handling): Add trim.
59412
59413 2006-09-04  Karl Berry  <karl@gnu.org>
59414
59415         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59416         until next release.
59417
59418 2006-09-03  Bruno Haible  <bruno@clisp.org>
59419
59420         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59421         correctly.
59422
59423 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59424
59425         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59426         not gl_GETLOADAVG.  Omit unneeded semicolons.
59427         Problems reported by Ralf Wildenhues in
59428         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59429         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59430         at the end, which is the usual gnulib style.
59431
59432         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59433         of doing all the work ourselves.
59434         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59435         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59436
59437 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59438
59439         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59440         Problem reported by Ralf Wildenhues in
59441         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59442
59443         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59444         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59445
59446 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59447
59448         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59449         yesterday's patch by changing test -n to test -z.
59450
59451 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59452
59453         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59454         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59455         the former is now obsolescent.
59456
59457         * modules/chdir-long (Depends-on): Add fcntl.
59458
59459 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59460
59461         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59462         obsolescent, and programs should use gnulib instead.
59463         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59464         but with prefixes changed.
59465
59466 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59467
59468         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59469         or stdbool.h, because they might not exist while configuring.
59470
59471         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59472         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59473         does that for us.
59474         (O_DIRECTORY): Remove.
59475
59476 2006-08-31  Eric Blake  <ebb9@byu.net>
59477
59478         * gnulib-tool: Don't let emacs change spaces to TAB.
59479
59480 2006-08-31  Bruno Haible  <bruno@clisp.org>
59481
59482         * gnulib-tool: When calling func_import more than once, do it in a
59483         subshell.
59484         Reported by Eric Blake <ebb9@byu.net>.
59485
59486 2006-08-31  Bruno Haible  <bruno@clisp.org>
59487
59488         * gnulib-tool (nl): Remove variable.
59489         (sed_transform_lib_file): Use more robust test for config-h module.
59490         (func_import): Fix typo in 2006-08-25 patch.
59491
59492 2006-08-31  Bruno Haible  <bruno@clisp.org>
59493
59494         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59495         specified, augment Makefile.am variables instead of assigning them.
59496
59497 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59498
59499         Work around a bug in both the Linux and SunOS 64-bit kernels:
59500         nanosleep mishandles sleeps for longer than 2**31 seconds.
59501         Problem reported by Frank v Waveren in
59502         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59504         Check for nanosleep bug.
59505         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59506
59507 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59508
59509         Work around a bug in both the Linux and SunOS 64-bit kernels:
59510         nanosleep mishandles sleeps for longer than 2**31 seconds.
59511         Problem reported by Frank v Waveren in
59512         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59513         * lib/nanosleep.c (BILLION): New constant.
59514         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59515         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59516         implementation.
59517
59518 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59519
59520         * modules/nanosleep (Depends-on): Add gettime.
59521
59522 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59523         and Simon Josefsson  <jas@extundo.com>
59524         and Oskar Liljeblad  <oskar@osk.mine.nu>
59525
59526         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
59527         * gnulib-tool (func_import): New license type 'unmodifiable license
59528         text'.
59529         * modules/fdl: Use it.  Longer description.
59530         * module/gpl, module/lgpl: New files.
59531
59532 2006-08-30  Jim Meyering  <jim@meyering.net>
59533
59534         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
59535         shadowing the parameter.
59536
59537 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59538
59539         Sync from Libtool:
59540
59541         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59542
59543         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
59544         sharing with gnulib.  Report by Eric Blake.
59545
59546 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59547
59548         * modules/isapipe: New file.
59549         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
59550
59551 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59552
59553         * modules/configmake (Makefile.am): Add a comment, and omit
59554         the CONFIGMAKE_ prefix from generated macro names.  Suggested
59555         by Bruno Haible.
59556
59557 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59558
59559         * m4/isapipe.m4: New file.
59560
59561 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59562
59563         * lib/isapipe.c, lib/isapipe.h: New files.
59564
59565 2006-08-29  Jim Meyering  <jim@meyering.net>
59566
59567         * modules/configmake (Makefile.am): Make configmake.h depend on
59568         Makefile.  Otherwise, a stale configmake.h could hang around.
59569
59570 2006-08-29  Eric Blake  <ebb9@byu.net>
59571
59572         * lib/error.c (error_at_line, print_errno_message): Match libc, after
59573         resolution of upstream bug 3044.
59574
59575 2006-08-29  Bruno Haible  <bruno@clisp.org>
59576
59577         * modules/localcharset (Depends-on): Add configmake.
59578         (Makefile.am): Remove setting of LIBDIR through DEFS.
59579
59580 2006-08-29  Bruno Haible  <bruno@clisp.org>
59581
59582         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
59583         defined.
59584
59585 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59586
59587         * modules/fcntl: New file.
59588         * modules/chdir-safer (Depends-on): Add fcntl.
59589         * modules/fts: Likewise.
59590         * modules/mkdir-p: Likewise.
59591
59592         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
59593         This undoes the most recent change, since we're now addressing the
59594         problem in a different way.
59595
59596         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
59597         into output, since the output might be called Makefile.am even
59598         if $makefile_name is something different.
59599         (func_import): Use $makefile_am rather than
59600         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
59601         empty.
59602
59603         * modules/inttypes (Files): Add m4/inttypes-h.m4.
59604
59605 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59606
59607         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
59608         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
59609         recent change to stdint.m4, since we're now addressing the problem in a
59610         different way.
59611
59612 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59613
59614         * m4/fcntl_h.m4: New file.
59615
59616 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59617
59618         * lib/fcntl_.h: New file.
59619         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
59620         the fcntl module.
59621         * lib/dirchownmod.c: Likewise.
59622         * lib/fts.c: Likewise.
59623
59624         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
59625         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
59626         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
59627         just before including <inttypes.h>, to avoid circular inclusion.
59628
59629 2006-08-28  Jim Meyering  <jim@meyering.net>
59630
59631         * doc/visibility.texi: Actually read and correct the grammar of the
59632         sentence affected by yesterday's change.
59633
59634 2006-08-28  Eric Blake  <ebb9@byu.net>
59635
59636         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
59637         needs wrapper.
59638
59639 2006-08-28  Eric Blake  <ebb9@byu.net>
59640
59641         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
59642
59643 2006-08-28  Eric Blake  <ebb9@byu.net>
59644
59645         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
59646
59647 2006-08-28  Bruno Haible  <bruno@clisp.org>
59648
59649         * modules/c-strstr: New file, from GNU gettext.
59650         * MODULES.html.sh (String handling): Add c-strstr.
59651
59652 2006-08-28  Bruno Haible  <bruno@clisp.org>
59653
59654         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
59655         macros.
59656         Reported by Eric Blake.
59657
59658 2006-08-28  Bruno Haible  <bruno@clisp.org>
59659
59660         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
59661         (VASNPRINTF): Return a string of length > INT_MAX without failing.
59662         * lib/vasprintf.c: Include errno.h, limits.h.
59663         (EOVERFLOW): New fallback definition.
59664         (vasprintf): Test here whether the string length is > INT_MAX.
59665         * lib/vsnprintf.c: Include errno.h, limits.h.
59666         (EOVERFLOW): New fallback definition.
59667         (vsnprintf): Fix bug when generated string was too long for the buffer.
59668         Test here whether the string length is > INT_MAX.
59669
59670 2006-08-28  Bruno Haible  <bruno@clisp.org>
59671
59672         * lib/inttypes_.h (SCNX*): Remove definitions.
59673         Reported by Eric Blake.
59674
59675 2006-08-28  Bruno Haible  <bruno@clisp.org>
59676
59677         * lib/c-strstr.h: New file, from GNU gettext.
59678         * lib/c-strstr.c: New file, from GNU gettext.
59679
59680 2006-08-28  Bruno Haible  <bruno@clisp.org>
59681
59682         * gnulib-tool: Reorder some statements.
59683
59684 2006-08-28  Bruno Haible  <bruno@clisp.org>
59685
59686         * gnulib-tool: New option --makefile-name.
59687         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
59688         $makefile_name.
59689         (func_import): Write $makefile_name to the cache file, and read it from
59690         there unless explicitly specified. Use $makefile_name as file name
59691         instead of Makefile.am. Adjust the recommendations accordingly.
59692
59693 2006-08-28  Bruno Haible  <bruno@clisp.org>
59694
59695         * gnulib-tool (func_verify_module): Check against misapplying patch.
59696
59697 2006-08-28  Bruno Haible  <bruno@clisp.org>
59698
59699         * gnulib-tool (func_relativize, func_relconcat): New functions.
59700         Give an error if --local-dir is given with --update.
59701         Remove trailing slashes from $local_gnulib_dir.
59702         (func_import): Store the relativized $local_gnulib_dir in
59703         gnulib-cache.m4, and read it from there if not specified explicitly.
59704
59705 2006-08-28  Bruno Haible  <bruno@clisp.org>
59706
59707         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59708         is the current directory. Respect also $local_gnulib_dir.
59709
59710 2006-08-28  Bruno Haible  <bruno@clisp.org>
59711             Simon Josefsson  <jas@extundo.com>
59712
59713         BeOS portability.
59714         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59715
59716 2006-08-27  Jim Meyering  <jim@meyering.net>
59717
59718         * doc/visibility.texi: Remove duplicate word: "pointer".
59719
59720 2006-08-26  Bruno Haible  <bruno@clisp.org>
59721
59722         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59723         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59724         (Makefile.am): Create inttypes.h from inttypes_.h.
59725         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59726
59727         * modules/imaxabs: New file.
59728
59729         * modules/imaxdiv: New file.
59730
59731 2006-08-26  Bruno Haible  <bruno@clisp.org>
59732
59733         * m4/inttypes.m4: New file.
59734         * m4/_inttypes_h.m4: Remove file.
59735         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59736         PRI_MACROS_BROKEN.
59737         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59738
59739         * m4/imaxabs.m4: New file.
59740
59741         * m4/imaxdiv.m4: New file.
59742
59743 2006-08-26  Bruno Haible  <bruno@clisp.org>
59744
59745         * lib/inttypes_.h: New file.
59746         * lib/inttypes.h: Remove file.
59747         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59748
59749         * lib/imaxabs.c: New file.
59750
59751         * lib/imaxdiv.c: New file.
59752
59753 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59754
59755         New config-h module, so that "make" output needn't be cluttered
59756         by -DHAVE_CONFIG_H.
59757         * MODULES.html.sh (Support for building libraries and executables):
59758         Add config-h.
59759         * modules/config-h: New file.
59760         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59761         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59762         the config-h module is used.
59763
59764         New configmake module, so that "make" output needn't be cluttered
59765         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59766         * MODULES.html.sh (Support for building libraries and executables):
59767         Add configmake.
59768         * modules/configmake: New file.
59769
59770 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59771
59772         * m4/config-h.m4: New file.
59773
59774 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59775
59776         * config/srclist.txt: Add elisp-comp.
59777
59778 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59779
59780         * MODULES.html.sh (Support for building libraries and executables):
59781         Add elisp-comp.
59782         * build-aux/elisp-comp: New file.
59783         * modules/elisp-comp: New file.
59784
59785 2006-08-24  Bruno Haible  <bruno@clisp.org>
59786
59787         * gnulib-tool (func_create_testdir): Use non-default values of
59788         sourcebase and m4base.
59789
59790 2006-08-24  Bruno Haible  <bruno@clisp.org>
59791
59792         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
59793         HTML structure.
59794
59795 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59796
59797         * modules/openat (Depends-on): Add lchown.
59798
59799 2006-08-23  Bruno Haible  <bruno@clisp.org>
59800
59801         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
59802         of gl_LOCK_EARLY instead of gl_LOCK.
59803
59804 2006-08-23  Bruno Haible  <bruno@clisp.org>
59805
59806         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
59807         on OSF/1 to no.
59808         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
59809
59810 2006-08-23  Bruno Haible  <bruno@clisp.org>
59811
59812         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
59813         as unusable.
59814
59815         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
59816         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
59817         (gl_LOCK): New macro.
59818
59819 2006-08-22  Simon Josefsson  <jas@extundo.com>
59820
59821         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
59822         to md5 module.
59823
59824 2006-08-22  Simon Josefsson  <jas@extundo.com>
59825
59826         * MODULES.html.sh: Add "Support for maintaining and release
59827         projects".
59828
59829         * build-aux/gnupload: New file, from coreutils.
59830
59831 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59832
59833         Avoid the need for AC_LIBSOURCES in m4 macros.
59834         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
59835         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
59836         * modules/check-version (EXTRA_DIST): Add check-version.h.
59837         * modules/crc (EXTRA_DIST): Add crc.h.
59838         * modules/des (EXTRA_DIST): Add des.h.
59839         * modules/gc (EXTRA_DIST): Add gc.h.
59840         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
59841         * modules/getline (EXTRA_DIST): Add getline.h.
59842         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
59843         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
59844         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
59845         * modules/md2 (EXTRA_DIST): Add md2.h.
59846         * modules/md4 (EXTRA_DIST): Add md4.h.
59847         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
59848         * modules/read-file (EXTRA_DIST): Add read-file.h.
59849         * modules/readline (EXTRA_DIST): Add readline.h.
59850         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
59851         rijndael-api-fst.h.
59852
59853 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59854
59855         * m4/rijndael.m4 (gl_ARCFOUR):
59856         * m4/arctwo.m4 (gl_ARCTWO):
59857         * m4/check-version.m4 (gl_CHECK_VERSION):
59858         * m4/crc.m4 (gl_CRC):
59859         * m4/des.m4 (gl_DES):
59860         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
59861         * m4/gc.m4 (gl_GC):
59862         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
59863         * m4/getline.m4 (gl_FUNC_GETLINE):
59864         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
59865         * m4/hmac-md5.m4 (gl_HMAC_MD5):
59866         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
59867         * m4/md2.m4 (gl_MD2):
59868         * m4/md4.m4 (gl_MD4):
59869         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
59870         * m4/read-file.m4 (gl_FUNC_READ_FILE):
59871         * m4/readline.m4 (gl_FUNC_READLINE):
59872         * m4/rijndael.m4 (gl_RIJNDAEL):
59873         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59874         to get the necessary .h files and whatnot.
59875
59876 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59877
59878         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
59879         gnulib rather than the other way around.
59880         * config/srclistvars.sh (COREUTILS): Remove.
59881
59882 2006-08-22  Jim Meyering  <jim@meyering.net>
59883
59884         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
59885
59886         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
59887
59888 2006-08-22  Eric Blake  <ebb9@byu.net>
59889
59890         * modules/regexprops-generic: New file.
59891         * MODULES.html.sh (Support for building documentation): List it.
59892
59893 2006-08-22  Eric Blake  <ebb9@byu.net>
59894
59895         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
59896         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
59897         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
59898         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
59899
59900 2006-08-22  Bruno Haible  <bruno@clisp.org>
59901
59902         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
59903         and lib_LTLIBRARIES like the other lib_* variables.
59904
59905 2006-08-22  Bruno Haible  <bruno@clisp.org>
59906
59907         * build-aux/x-to-1.in: New file, from GNU gettext.
59908
59909 2006-08-22  Bruno Haible  <bruno@clisp.org>
59910
59911         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
59912         <utmpx.h> exists.
59913
59914 2006-08-22  Bruno Haible  <bruno@clisp.org>
59915
59916         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
59917         <utmpx.h> exists.
59918
59919 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59920
59921         BeOS portability.
59922         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
59923         exist.
59924         Problem reported by Bruno Haible.
59925
59926 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59927
59928         Avoid the need for AC_LIBSOURCES in m4 macros.
59929         * modules/acl (EXTRA_DIST): Add acl.h.
59930         * modules/argmatch (Files): Add m4/argmatch.m4.
59931         (configure.ac): Add gl_ARGMATCH.
59932         (EXTRA_DIST): Renamed from lib_SOURCES, for
59933         consistency with the other modules.  Remove argmatch.c.
59934         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
59935         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
59936         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
59937         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
59938         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
59939         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
59940         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
59941         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
59942         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
59943         * modules/closeout (EXTRA_DIST): Add closeout.h.
59944         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
59945         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
59946         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
59947         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
59948         dirname.h; remove basename.c and stripslash.c.
59949         * modules/exclude (EXTRA_DIST): Add exclude.h.
59950         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
59951         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
59952         * modules/file-type (EXTRA_DIST): Add file-type.h.
59953         * modules/filemode (EXTRA_DIST): Add filemode.h.
59954         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
59955         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59956         * modules/fpending (EXTRA_DIST): Add __fpending.h.
59957         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
59958         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
59959         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
59960         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
59961         * modules/getdate (EXTRA_DIST): Add getdate.c.
59962         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
59963         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
59964         * modules/getpass (EXTRA_DIST): Add getpass.h.
59965         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
59966         * modules/group-member (EXTRA_DIST): Add group-member.h.
59967         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
59968         * modules/hash (EXTRA_DIST): Add hash.h.
59969         * modules/human (EXTRA_DIST): Add human.h.
59970         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
59971         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
59972         * modules/lchown (EXTRA_DIST): Add lchown.h.
59973         * modules/long-options (EXTRA_DIST): Add long-options.h.
59974         * modules/lstat (EXTRA_DIST): Add lstat.h.
59975         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
59976         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
59977         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
59978         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
59979         * modules/memxor (EXTRA_DIST): Add memxor.h.
59980         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
59981         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
59982         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
59983         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
59984         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
59985         * modules/physmem (EXTRA_DIST): Add physmem.h.
59986         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
59987         * modules/posixver (EXTRA_DIST): Add posixver.h.
59988         * modules/quote (EXTRA_DIST): Add quote.h.
59989         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
59990         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
59991         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
59992         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
59993         regex_internal.h regexec.c.
59994         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
59995         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
59996         * modules/same (EXTRA_DIST): Add same.h.
59997         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
59998         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
59999         * modules/savedir (EXTRA_DIST): Add savedir.h.
60000         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60001         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60002         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60003         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60004         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60005         * modules/strdup (EXTRA_DIST): Add strdup.h.
60006         * modules/strftime (EXTRA_DIST): Add strftime.h.
60007         * modules/strndup (EXTRA_DIST): Add strndup.h.
60008         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60009         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60010         * modules/time_r (EXTRA_DIST): Add time_r.h.
60011         * modules/timespec (EXTRA_DIST): Add timespec.h.
60012         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60013         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60014         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60015         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60016         * modules/userspec (EXTRA_DIST): Add userspec.h.
60017         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60018         * modules/utimens (EXTRA_DIST): Add utimens.h.
60019         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60020         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60021         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60022         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60023         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60024         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60025         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60026         * modules/yesno (EXTRA_DIST): Add yesno.h.
60027
60028 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60029
60030         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60031
60032         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60033         * m4/dev-ino.m4, same-inode.m4: Remove.
60034
60035         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60036         * m4/acl.m4 (AC_FUNC_ACL):
60037         * m4/backupfile.m4 (gl_BACKUPFILE):
60038         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60039         * m4/canon-host.m4 (gl_CANON_HOST):
60040         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60041         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60042         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60043         * m4/cloexec.m4 (gl_CLOEXEC):
60044         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60045         * m4/closeout.m4 (gl_CLOSEOUT):
60046         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60047         * m4/dirname.m4 (gl_DIRNAME):
60048         * m4/exclude.m4 (gl_EXCLUDE):
60049         * m4/exitfail.m4 (gl_EXITFAIL):
60050         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60051         * m4/file-type.m4 (gl_FILE_TYPE):
60052         * m4/filemode.m4 (gl_FILEMODE):
60053         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60054         * m4/fpending.m4 (gl_FUNC_FPENDING):
60055         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60056         * m4/fts.m4 (gl_FUNC_FTS):
60057         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60058         * m4/getdate.m4 (gl_GETDATE):
60059         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60060         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60061         * m4/getpass.m4 (gl_FUNC_GETPASS):
60062         * m4/gettime.m4 (gl_GETTIME):
60063         * m4/getugroups.m4 (gl_GETUGROUPS):
60064         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60065         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60066         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60067         * m4/hash.m4 (gl_HASH):
60068         * m4/idcache.m4 (gl_IDCACHE):
60069         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60070         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60071         * m4/long-options.m4 (gl_LONG_OPTIONS):
60072         * m4/lstat.m4 (gl_FUNC_LSTAT):
60073         * m4/md5.m4 (gl_MD5):
60074         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60075         * m4/memcoll.m4 (gl_MEMCOLL):
60076         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60077         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60078         * m4/memxor.m4 (gl_MEMXOR):
60079         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60080         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60081         * m4/modechange.m4 (gl_MODECHANGE):
60082         * m4/mountlist.m4 (gl_MOUNTLIST):
60083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60084         * m4/openat.m4 (gl_FUNC_OPENAT):
60085         * m4/pathmax.m4 (gl_PATHMAX):
60086         * m4/physmem.m4 (gl_PHYSMEM):
60087         * m4/posixtm.m4 (gl_POSIXTM):
60088         * m4/posixver.m4 (gl_POSIXVER):
60089         * m4/quote.m4 (gl_QUOTE):
60090         * m4/quotearg.m4 (gl_QUOTEARG):
60091         * m4/readtokens.m4 (gl_READTOKENS):
60092         * m4/readutmp.m4 (gl_READUTMP):
60093         * m4/regex.m4 (gl_REGEX):
60094         * m4/safe-read.m4 (gl_SAFE_READ):
60095         * m4/safe-write.m4 (gl_SAFE_WRITE):
60096         * m4/same.m4 (gl_SAME):
60097         * m4/save-cwd.m4 (gl_SAVE_CWD):
60098         * m4/savedir.m4 (gl_SAVEDIR):
60099         * m4/settime.m4 (gl_SETTIME):
60100         * m4/sha1.m4 (gl_SHA1):
60101         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60102         * m4/stat-macros.m4 (gl_STAT_MACROS):
60103         * m4/stat-time.m4 (gl_STAT_TIME):
60104         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60105         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60106         * m4/strdup.m4 (gl_FUNC_STRDUP):
60107         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60108         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60109         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60110         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60111         * m4/time_r.m4 (gl_TIME_R):
60112         * m4/timespec.m4 (gl_TIMESPEC):
60113         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60114         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60115         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60116         * m4/userspec.m4 (gl_USERSPEC):
60117         * m4/utimecmp.m4 (gl_UTIMECMP):
60118         * m4/utimens.m4 (gl_UTIMENS):
60119         * m4/xalloc.m4 (gl_XALLOC):
60120         * m4/xgetcwd.m4 (gl_XGETCWD):
60121         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60122         * m4/xreadlink.m4 (gl_XREADLINK):
60123         * m4/xstrtod.m4 (gl_XSTRTOD):
60124         * m4/yesno.m4 (gl_YESNO):
60125         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60126         to get the necessary .h files and whatnot.
60127
60128 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60129             Bruno Haible  <bruno@clisp.org>
60130
60131         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60132         /bin/sh understanding of '!' conditional negation.
60133
60134 2006-08-21  Jim Meyering  <jim@meyering.net>
60135
60136         * modules/openat (Depends-on): Really alphabetize.
60137
60138         * modules/acl (Depends-on): Add error and quote.
60139
60140         * check-module (find_included_lib_files): Add at-func.c to the
60141         ok-to-include-more-than-once white list.
60142
60143         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60144
60145 2006-08-21  Bruno Haible  <bruno@clisp.org>
60146
60147         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60148         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60149         Reported by Martin Lambers <marlam@marlam.de>.
60150
60151 2006-08-21  Bruno Haible  <bruno@clisp.org>
60152
60153         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60154         specify an installation location, don't emit a noinst_LIBRARIES or
60155         noinst_LTLIBRARIES assignment.
60156
60157 2006-08-21  Bruno Haible  <bruno@clisp.org>
60158
60159         BeOS portability.
60160         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60161         BeOS has mbrtowc() but no <wctype.h>.
60162
60163 2006-08-21  Bruno Haible  <bruno@clisp.org>
60164
60165         BeOS portability.
60166         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60167         exist.
60168
60169 2006-08-21  Bruno Haible  <bruno@clisp.org>
60170
60171         BeOS portability.
60172         * lib/mbchar.h: Include <wctype.h> only if it exists.
60173
60174 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60175
60176         Remove files that are no longer needed by their respective modules.
60177         * m4/obstack.m4: Remove.
60178         * m4/strerror_r.m4: Remove.
60179         * m4/uint32_t.m4: Remove.
60180         * m4/uintptr_t.m4: Remove.
60181         * m4/ullong_max.m4: Remove.
60182         * m4/xstrtoimax.m4: Remove.
60183         * m4/xstrtoumax.m4: Remove.
60184
60185         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60186         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60187         dependencies now capture this.
60188
60189         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60190         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60191         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60192         * m4/human.m4 (gl_HUMAN): Likewise.
60193         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60194         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60195
60196         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60197
60198         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60199         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60200         stdint.
60201         * m4/human.m4 (gl_HUMAN): Likewise.
60202         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60203         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60204         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60205         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60206         * m4/xstrtol (gl_XSTRTOL): Likewise.
60207
60208         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60209         AC_TYPE_LONG_LONG_INT.
60210         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60211         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60212         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60213         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60214
60215         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60216         on stdbool.
60217
60218         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60219         (gl_PREREQ_XSTRTOUL): Remove.
60220
60221         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60222
60223         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60224         mode.
60225
60226 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60227
60228         Add and change modules to make it easier for coreutils to use
60229         gnulib-tool.
60230         * modules/backupfile (Files): Remove m4/d-ino.m4.
60231         (Depends-on): Add d-ino.
60232         * modules/cycle-check (Depends-on): Add stdint.
60233         (lib_SOURCES): Add cycle-check.h.
60234         * modules/d-ino: New module.
60235         * modules/d-type: New module.
60236         * modules/error (Files): Remove m4/strerror_r.m4.
60237         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60238         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60239         m4/inttypes_h.m4, m4/uintmax_t.m4.
60240         (Depends-on): Add stdint.
60241         (lib_SOURCES): Add fsusage.h.
60242         * modules/getcwd (Files): Remove d-ino.m4.
60243         (Depends-on): Add d-ino.
60244         * modules/getndelim2 (Depends-on): Add stdint.
60245         * modules/glob (Files): Remove m4/d-type.m4.
60246         (Depends-on): Add d-type.
60247         * modules/host-os: New module.
60248         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60249         m4/inttypes_h.m4, m4/uintmax_t.m4.
60250         * Depends-on: Add stdint.
60251         (lib_SOURCES): Add human.h.
60252         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60253         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60254         m4/uintmax_t.m4, m4/ulonglong.m4.
60255         (Depends-on): Add stdint.
60256         (EXTRA_DIST): Add inttostr.h.
60257         * modules/lchmod: New module.
60258         * modules/link-follow: New module.
60259         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60260         (Depends-on): Add lchmod.
60261         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60262         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60263         (Depends-on): Add stdint.
60264         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60265         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60266         (Depends-on): Add stdint.
60267         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60268         * modules/perl: New module.
60269         * modules/regex (Depends-on): Add stdint.
60270         * modules/rmdir-errno: New module.
60271         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60272         m4/intmax_t.m4.
60273         (Depends-on): Add stdint.
60274         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60275         m4/uintmax_t.m4.
60276         (Depends-on): Add stdint.
60277         * modules/unlink-busy: New module.
60278         * modules/utimecmp (Depends-on): Add stdint.
60279         * modules/uptime: New module.
60280         * modules/winsz-ioctl: New module.
60281         * modules/winsz-termios: New module.
60282         * modules/xnanosleep (Depends-on): Add nanosleep.
60283         * modules/ullong_max: Remove.
60284         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60285         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60286         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60287         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60288         (Depends-on): Add inttypes.
60289         (lib_SOURCES): Add xstrtol.h.
60290         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60291         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60292         * MODULES.html.sh: Move 'assert' into the assert section.
60293         Move 'dummy' into the linking section.
60294         Remove ullong_max.
60295         Add section for compatibility checks for POSIX:2001 functions,
60296         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60297         winsz-ioctl, and winsz-termios into it.
60298         Add lchmod.
60299         Add top-level Misc section and put host-os, perl, and uptime
60300         into it.
60301
60302 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60303
60304         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60305         now assume the stdint module.  Do not include inttypes.h.
60306         * lib/fsusage.h: Likewise.
60307         * lib/getndelim2.c: Likewise.
60308         * lib/human.h: Likewise.
60309         * lib/inttostr.h: Likewise.
60310         * lib/obstack.c: Likewise.
60311         * lib/regex_internal.h: Likewise.
60312         * lib/tempname.c: Likewise.
60313         * lib/utimecmp.c: Likewise.
60314         * lib/xstrtol.h: Likewise.
60315
60316         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60317
60318         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60319         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60320         * lib/xtime.h: Likewise.
60321
60322 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60323
60324         * modules/openat (Files): Add lib/fchmodat.c.
60325         Fixes problem reported by Jay Youngman.
60326
60327 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60328
60329         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60330         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60331
60332 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60333             Bruno Haible  <bruno@clisp.org>
60334
60335         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60336         and is a script that invokes bison. Tighten the code. Add comments.
60337
60338 2006-08-18  Jim Meyering  <jim@meyering.net>
60339
60340         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60341         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60342         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60343         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60344
60345 2006-08-18  Bruno Haible  <bruno@clisp.org>
60346
60347         * modules/bison-i18n: New file.
60348         * MODULES.html.sh (Internationalization functions): Add it.
60349
60350 2006-08-18  Bruno Haible  <bruno@clisp.org>
60351
60352         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60353         sys/statvfs.h. When getmntinfo was found, check its declaration and
60354         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60355
60356 2006-08-18  Bruno Haible  <bruno@clisp.org>
60357
60358         * m4/bison-i18n.m4: New file, from bison.
60359
60360 2006-08-18  Bruno Haible  <bruno@clisp.org>
60361
60362         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60363         (ME_DUMMY): Treat "kernfs" as a dummy.
60364         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60365
60366 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60367
60368         Update from coreutils.
60369
60370         2006-08-15  Jim Meyering  <jim@meyering.net>
60371
60372         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60373
60374         2006-01-17  Jim Meyering  <jim@meyering.net>
60375
60376         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60377
60378         2006-01-11  Jim Meyering  <jim@meyering.net>
60379
60380         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60381         Check for the lchmod function.
60382
60383 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60384
60385         Update from coreutils.
60386
60387         * lib/__fpending.h: Add copyright notice.
60388         * lib/fprintftime.h: Likewise.
60389         * lib/savedir.c: Use (C) in copyright notice.
60390         * lib/savedir.h: Likewise.
60391
60392         2006-08-15  Jim Meyering  <jim@meyering.net>
60393
60394         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60395         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60396         in support of the EXPECTED_ERRNO macro.
60397         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60398         definitions.  Instead, define the appropriate symbols and include
60399         "at-func.c".
60400         * lib/mkdirat.c (mkdirat): Likewise.
60401         * lib/fchmodat.c (fchmodat): Likewise.
60402         (ENOSYS): Remove definition.
60403         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60404         it.  Don't include "unistd--.h" -- it wasn't ever used.
60405
60406         2006-01-17  Jim Meyering  <jim@meyering.net>
60407
60408         Rewrite fts.c not to change the current working directory,
60409         by using openat, fstatat, fdopendir, etc..
60410
60411         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60412         (HAVE_OPENAT_SUPPORT): Define.
60413         [_LIBC] (fchdir): Don't undef or define; no longer used.
60414         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60415         Now, this `function' always succeeds, and consumes its file descriptor
60416         parameter -- so callers must not close such FDs.  Update callers.
60417         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60418         (diropen): Add parameter, SP.  Adjust all callers.
60419         Implement using diropen_fd, rather than open.
60420         (fts_open): Initialize new member, fts_cwd_fd.
60421         Remove fts_rft-setting code.
60422         (fts_close): Close fts_cwd_fd, if necessary.
60423         (__opendir2): Define in terms of opendir or opendirat,
60424         depending on whether the FST_NOCHDIR flag is set.
60425         (fts_build): Since fts_safe_changedir consumes its FD, and since
60426         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60427         and close the dup'd file descriptor upon failure.
60428         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60429         (fts_safe_changedir): Tweak semantics to reflect that this function
60430         now calls cwd_advance_fd and hence consumes its FD argument.
60431         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60432         [struct FTS] (fts_rft): Remove now-unused member.
60433         [struct FTS] (fts_cycle.state): Improve comment.
60434
60435         * lib/openat.c (openat_needs_fchdir): New function.
60436         * lib/openat.h (openat_needs_fchdir): Declare it.
60437
60438 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60439
60440         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60441         Problem and fix reported by Pádraig Brady in
60442         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60443
60444 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60445
60446         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60447
60448 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60449
60450         * lib/memcoll.c (memcoll): Optimize for the common case where the
60451         arguments are bytewise equal.
60452
60453 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60454
60455         * doc/regexprops-generic.texi: Add a copyright notice.
60456
60457 2006-08-15  Bruno Haible  <bruno@clisp.org>
60458
60459         * modules/tmpdir (License): Change to LGPL.
60460
60461 2006-08-15  Bruno Haible  <bruno@clisp.org>
60462
60463         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60464         module.
60465
60466 2006-08-14  Simon Josefsson  <jas@extundo.com>
60467
60468         * config/srclist.txt: Add gnupload.
60469
60470 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60471
60472         Change copyright notice from LGPL 2 to GPL 2, since that's the
60473         standard form used in the gnulib repository.
60474         * tests/test-lock.c: Likewise.
60475         * tests/test-stdint.c: Likewise.
60476         * tests/test-tls.c: Likewise.
60477
60478         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60479         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60480         Add copyright notice.
60481
60482         * check-module: Add copyright notice.  Output a copyright
60483         notice if "--version" is specified.
60484         * modules/COPYING: New file.
60485         * tests/test-getaddrinfo.c: Add copyright notice.
60486         * tests/test-verify.c: Likewise.
60487
60488 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60489
60490         Change copyright notice from LGPL 2 to GPL 2, since that's the
60491         standard form used in the gnulib repository.
60492         * lib/lock.c: LGPL -> GPL.
60493         * lib/lock.h: Likewise.
60494         * lib/strnlen1.c: Likewise.
60495         * lib/strnlen1.h: Likewise.
60496         * lib/tls.c: Likewise.
60497         * lib/tls.h: Likewise.
60498         * lib/tmpdir.c: Likewise.
60499
60500         * lib/TODO: Remove; this belongs only in coreutils.
60501
60502 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60503
60504         Add copyright notices to long-enough files that lack them, since
60505         otherwise the files aren't clearly free.  Use the same notice that
60506         getdate.texi already uses.
60507         * doc/alloca-opt.texi: Add copyright notice.
60508         * doc/alloca.texi: Likewise.
60509         * doc/ctime.texi: Likewise.
60510         * doc/functions.texi: Likewise.
60511         * doc/gcd.texi: Likewise.
60512         * doc/gnulib-tool.texi: Likewise.
60513         * doc/inet_ntoa.texi: Likewise.
60514         * doc/visibility.texi: Likewise.
60515
60516         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60517         * doc/quote.texi: Add copyright notice.
60518
60519         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
60520         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
60521         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
60522         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
60523         is now obsolete, and give a pointer to the Sun list.
60524         Add copyright notice.
60525
60526 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60527
60528         * config/srclistvars.sh: Add copyright notice.
60529
60530 2006-08-14  Eric Blake  <ebb9@byu.net>
60531
60532         Import the following change from libc:
60533
60534         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
60535
60536         Upstream bug 2997.
60537         * lib/misc/error.c: Add space between program name and message if file
60538         name is missing.
60539
60540 2006-08-12  Karl Berry  <karl@gnu.org>
60541
60542         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
60543         remove, these originate in gnulib now.
60544
60545 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60546
60547         * doc/Makefile (standards.info standards.html standards.dvi):
60548         Also depend on make-stds.texi.
60549
60550 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60551
60552         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
60553         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
60554
60555         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
60556         in wchar_t.  Problem reported by Eric Blake.
60557
60558         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
60559         LEN is smaller than SIZE.  Suggested by Bruno Haible.
60560         Also, help the compiler to keep LEN in a register.
60561
60562 2006-08-11  Eric Blake  <ebb9@byu.net>
60563
60564         * users.txt: Sort.  Add tar.
60565
60566 2006-08-11  Bruno Haible  <bruno@clisp.org>
60567
60568         * users.txt: New file.
60569
60570 2006-08-11  Bruno Haible  <bruno@clisp.org>
60571
60572         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
60573         before <wchar.h>. Needed for OSF/1 and BSD/OS.
60574
60575 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60576
60577         * modules/snprintf (Depends-on): Remove minmax.
60578         (Maintainer): Add self and Bruno.
60579
60580 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60581
60582         * lib/.cppi-disable: Add snprintf.h, socket_.h.
60583         * lib/snprintf.c: Include <errno.h> and <limits.h>.
60584         (EOVERFLOW): Define if the system does not.
60585         Do not include "minmax.h"; it wasn't used.
60586         (snprintf): Don't assume size_t promotes to an unsigned type.
60587         Fix bug when generated string was too long for the buffer: the
60588         buffer's contents are supposed to be the initial prefix of the
60589         output.  Don't assume vasnprintf returns EOVERFLOW if the size
60590         exceeds INT_MAX; do the check ourselves.
60591
60592         Import the following changes from libc:
60593
60594         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
60595
60596         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
60597         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
60598         set wc to the byte which couldn't be converted.
60599         (re_string_reconstruct): Don't clear valid_raw_len before calling
60600         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
60601         tip_context using re_string_context_at.
60602
60603         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
60604
60605         * lib/posix/regex.h: g++ still cannot handled [restrict].
60606
60607         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
60608
60609         * lib/posix/regex.h: Remove special handling for VMS.
60610
60611 2006-08-10  Jim Meyering  <jim@meyering.net>
60612
60613         * modules/same-inode: New module.
60614         * modules/dev-ino: New module.
60615         * modules/cycle-check: Depend on these modules, rather than simply
60616         including their .h files.
60617         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
60618         required via m4/cycle-check.m4.
60619         * modules/same: Depend on new same-inode module, rather than
60620         including same-inode.h.
60621         * modules/chdir-safer: New file.
60622
60623         * modules/chown (Depends-on): Add stat-macros.
60624
60625 2006-08-10  Jim Meyering  <jim@meyering.net>
60626
60627         * m4/cycle-check.m4: New file.
60628         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
60629         * m4/dev-ino.m4, m4/same-inode.m4: New files.
60630
60631 2006-08-10  Eric Blake  <ebb9@byu.net>
60632
60633         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
60634         in from original proposal.
60635
60636 2006-08-10  Eric Blake  <ebb9@byu.net>
60637         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60638
60639         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
60640         namespace.
60641
60642 2006-08-10  Bruno Haible  <bruno@clisp.org>
60643
60644         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
60645         as well.
60646
60647 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60648
60649         Sync from coreutils.
60650
60651         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
60652
60653         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
60654         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
60655
60656 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60657
60658         * modules/restrict: Remove; no longer needed now that we assume
60659         Autoconf 2.59 or later.
60660         * MODULES.html.sh: Remove 'restrict'.
60661         * modules/argp (Depends-on): Remove 'restrict'.
60662         * modules/base64 (Depends-on): Likewise.
60663         * modules/gc (Depends-on): Likewise.
60664         * modules/getaddrinfo (Depends-on): Likewise.
60665         * modules/glob (Depends-on): Likewise.
60666         * modules/inet_ntop (Depends-on): Likewise.
60667         * modules/inet_pton (Depends-on): Likewise.
60668         * modules/memxor (Depends-on): Likewise.
60669         * modules/regex (Depends-on): Likewise.
60670         * modules/strtok_r (Depends-on): Likewise.
60671         * modules/time_r (Depends-on): Likewise.
60672
60673 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60674
60675         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
60676         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
60677         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60678         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
60679         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60680         * m4/memxor.m4 (gl_MEMXOR): Likewise.
60681         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
60682         gl_C_RESTRICT replaced by AC_C_RESTRICT.
60683
60684         Merge from coreutils.
60685         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
60686         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
60687         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60688         * m4/time_r.m4 (gl_TIME_R): Likewise.
60689
60690 2006-08-09  Karl Berry  <karl@gnu.org>
60691
60692         * config/srclist.txt: no more gettext-tools, per Bruno.
60693
60694 2006-08-08  Eric Blake  <ebb9@byu.net>
60695
60696         * modules/verror: New module.
60697         * MODULES.html.sh: Document it.
60698
60699 2006-08-08  Eric Blake  <ebb9@byu.net>
60700
60701         * lib/verror.h, lib/verror.c: New files.
60702
60703 2006-08-08  Eric Blake  <ebb9@byu.net>
60704
60705         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60706         verror_at_line output complies with GNU Coding Standards even when
60707         file is NULL.
60708
60709 2006-08-07  Bruno Haible  <bruno@clisp.org>
60710
60711         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60712         versions of AIX.
60713         Reported by Ralf Wildenhues.
60714
60715 2006-08-07  Bruno Haible  <bruno@clisp.org>
60716
60717         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60718         in an AC_DEFUN. Needed so that the autoconf snippets can use
60719         AC_REQUIRE.
60720
60721 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60722
60723         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60724         Initialize pkgdata_DATA.
60725         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60726         overriding it.
60727
60728 2006-08-06  Eric Blake  <ebb9@byu.net>
60729
60730         * lib/error.h: Fold in some upstream changes from glibc.
60731         * lib/error.c: Likewise.
60732
60733 2006-08-04  Bruno Haible  <bruno@clisp.org>
60734
60735         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60736         Make the mostlyclean-local rule depend on mostlyclean-generic.
60737         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60738
60739 2006-07-31  Bruno Haible  <bruno@clisp.org>
60740
60741         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60742         <stdlib.h>, <string.h>.
60743
60744 2006-07-30  Bruno Haible  <bruno@clisp.org>
60745
60746         * modules/readlink (License): Change to LGPL.
60747
60748 2006-07-30  Bruno Haible  <bruno@clisp.org>
60749
60750         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60751         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60752         set PKGDATADIR to point to it.
60753
60754 2006-07-30  Bruno Haible  <bruno@clisp.org>
60755
60756         * modules/csharpexec (configure.ac): Comment out macro invocation.
60757         * modules/javaexec (configure.ac): Likewise.
60758         * modules/javacomp-script (configure.ac): Likewise.
60759
60760         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60761
60762 2006-07-30  Bruno Haible  <bruno@clisp.org>
60763
60764         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60765         linked-list.
60766
60767 2006-07-30  Bruno Haible  <bruno@clisp.org>
60768
60769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60770
60771 2006-07-30  Bruno Haible  <bruno@clisp.org>
60772
60773         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60774         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60775         get removed.
60776
60777 2006-07-29  Bruno Haible  <bruno@clisp.org>
60778
60779         Make it possible for gnulib-tool to work with locally modified or
60780         augmented gnulib repositories.
60781         * gnulib-tool (func_usage): Document --local-dir option.
60782         (local_gnulib_dir): New variable.
60783         Handle --local-dir option.
60784         (func_lookup_file): New function.
60785         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60786         (func_get_description, func_get_filelist, func_get_description,
60787         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60788         func_get_automake_snippet, func_get_include_directive,
60789         func_get_license, func_get_maintainer): Use func_lookup_file.
60790         (func_import, func_create_testdir): Use func_lookup_file.
60791
60792 2006-07-29  Bruno Haible  <bruno@clisp.org>
60793
60794         * modules/setenv (Depends-on): Add unistd.
60795
60796 2006-07-29  Bruno Haible  <bruno@clisp.org>
60797
60798         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
60799
60800 2006-07-29  Bruno Haible  <bruno@clisp.org>
60801
60802         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
60803
60804 2006-07-29  Bruno Haible  <bruno@clisp.org>
60805
60806         * gnulib-tool (import, update): If there is no Makefile.am, look at
60807         aclocal.m4, instead of bailing out.
60808
60809 2006-07-29  Bruno Haible  <bruno@clisp.org>
60810
60811         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
60812         Categorize the options by when they are useful.
60813
60814 2006-07-29  Bruno Haible  <bruno@clisp.org>
60815
60816         * gnulib-tool (func_usage): Document option --no-libtool.
60817         Handle option --no-libtool.
60818         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
60819         for changed semantics of $libtool variable.
60820         (func_import): Likewise. If libtool is not used, show this through
60821         an option --no-libtool.
60822         (func_create_testdir): Update.
60823
60824 2006-07-29  Bruno Haible  <bruno@clisp.org>
60825
60826         * gnulib-tool (func_import): Extend error message about missing
60827         --doc-base.
60828
60829 2006-07-29  Bruno Haible  <bruno@clisp.org>
60830
60831         * gnulib-tool (func_import): Don't create the $docbase directory if
60832         there is no file to store there.
60833
60834 2006-07-29  Bruno Haible  <bruno@clisp.org>
60835
60836         * gnulib-tool (autoconf_minversion): If a --dir option is given and
60837         relevant, look for configure.ac there, not in the current directory.
60838         Also use a simple search for AC_PREREQ, not "autoconf --trace".
60839
60840 2006-07-29  Bruno Haible  <bruno@clisp.org>
60841
60842         * gnulib-tool (SORT): New variable.
60843         (func_usage): Undocument --assume-autoconf option.
60844         Remove --assume-autoconf option handling.
60845         (autoconf_minversion): Determine from the contents of configure.ac.
60846         (func_import): Remove autoconf_minversion handling.
60847         Suggested by Eric Blake.
60848
60849 2006-07-29  Bruno Haible  <bruno@clisp.org>
60850
60851         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
60852
60853 2006-07-29  Bruno Haible  <bruno@clisp.org>
60854
60855         * config/srclist.txt (*setenv.[ch]): Remove rules.
60856
60857 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60858
60859         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
60860
60861 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60862
60863         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
60864         arpa/inet.h.
60865
60866 2006-07-28  Simon Josefsson  <jas@extundo.com>
60867
60868         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
60869         * modules/inet_pton (Depends-on): Likewise.
60870
60871 2006-07-28  Simon Josefsson  <jas@extundo.com>
60872
60873         * m4/netinet_in_h.m4: New file.
60874
60875 2006-07-28  Simon Josefsson  <jas@extundo.com>
60876
60877         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
60878         #include's.
60879
60880 2006-07-28  Simon Josefsson  <jas@extundo.com>
60881
60882         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
60883         #include's.
60884
60885 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
60886
60887         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
60888         setgid on directories only if they set these bits.
60889         * lib/modechange.h: Remove obsolete comment about masks.
60890
60891 2006-07-28  Eric Blake  <ebb9@byu.net>
60892
60893         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
60894         macro expansion.
60895
60896 2006-07-28  Bruno Haible  <bruno@clisp.org>
60897
60898         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
60899
60900 2006-07-28  Bruno Haible  <bruno@clisp.org>
60901
60902         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
60903
60904 2006-07-28  Bruno Haible  <bruno@clisp.org>
60905
60906         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60907         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60908         Define fallbacks.
60909         Avoids link error on FreeBSD 4.x.
60910         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60911
60912         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
60913         encoding.
60914         * lib/mbswidth.c (iswcntrl): Likewise.
60915
60916 2006-07-27  Bruno Haible  <bruno@clisp.org>
60917
60918         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
60919         test.
60920
60921 2006-07-27  Bruno Haible  <bruno@clisp.org>
60922
60923         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
60924         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
60925         defined.
60926
60927 2006-07-26  Eric Blake  <ebb9@byu.net>
60928
60929         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
60930
60931 2006-07-26  Eric Blake  <ebb9@byu.net>
60932
60933         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
60934         like mingw that lack mkstemp.
60935         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
60936         avoid compilation warning on mingw.
60937
60938 2006-07-26  Bruno Haible  <bruno@clisp.org>
60939
60940         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
60941         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
60942         INT_FAST*_MIN, INTPTR_MIN.
60943
60944 2006-07-25  Bruno Haible  <bruno@clisp.org>
60945
60946         * modules/version-etc (Depends-on): Add stdarg.
60947
60948 2006-07-25  Bruno Haible  <bruno@clisp.org>
60949
60950         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
60951         complex commands.
60952
60953 2006-07-25  Bruno Haible  <bruno@clisp.org>
60954
60955         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
60956         defined in <stdarg.h> or config.h.
60957
60958 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60959
60960         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
60961         (gl_STDIO_SAFER): Remove.
60962
60963 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60964
60965         * MODULES.html.sh (File stream based Input/Output):
60966         Add fopen-safer, tmpfile-safer; remove stdio-safer.
60967         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
60968         * modules/fopen-safer, modules/tmpfile-safer: New files.
60969         * modules/stdio-safer: Remove.
60970
60971 2006-07-24  Bruno Haible  <bruno@clisp.org>
60972
60973         * modules/tmpdir: New file.
60974         * MODULES.html.sh (File system functions): Add it.
60975
60976 2006-07-24  Bruno Haible  <bruno@clisp.org>
60977
60978         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
60979         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
60980
60981 2006-07-24  Bruno Haible  <bruno@clisp.org>
60982
60983         * modules/clean-temp: New file.
60984
60985 2006-07-24  Bruno Haible  <bruno@clisp.org>
60986
60987         * m4/tmpdir.m4: New file, from GNU gettext.
60988
60989 2006-07-24  Bruno Haible  <bruno@clisp.org>
60990
60991         * lib/tmpdir.h: New file, from GNU gettext.
60992         * lib/tmpdir.c: New file, from GNU gettext.
60993
60994 2006-07-24  Bruno Haible  <bruno@clisp.org>
60995
60996         * lib/clean-temp.h: New file, from GNU gettext.
60997         * lib/clean-temp.c: New file, from GNU gettext.
60998
60999 2006-07-23  Eric Blake  <ebb9@byu.net>
61000
61001         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61002         (Depends-on): Add binary-io.
61003
61004 2006-07-23  Eric Blake  <ebb9@byu.net>
61005
61006         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61007
61008 2006-07-23  Eric Blake  <ebb9@byu.net>
61009
61010         * lib/tmpfile-safer.c: New file.
61011         * lib/stdio-safer.h (fopen_safer): Add prototype.
61012         * lib/stdio--.h (tmpfile): Make safer.
61013
61014 2006-07-23  Bruno Haible  <bruno@clisp.org>
61015
61016         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61017         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61018         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61019         gl_linked_remove_at): Use it.
61020
61021 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61022         and Simon Josefsson <jas@extundo.com>
61023
61024         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61025
61026         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61027
61028 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61029
61030         * modules/close-stream: New file.
61031         * modules/closeout (Description): Make it clear that it exits
61032         with a diagnostic on error.
61033         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61034         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61035
61036 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61037
61038         * m4/close-stream.m4: New file.
61039
61040 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61041
61042         * lib/close-stream.c, lib/close-stream.h: New files.
61043
61044 2006-07-22  Bruno Haible  <bruno@clisp.org>
61045
61046         Merge from GNU gettext 0.15.
61047
61048         2006-05-01  Bruno Haible  <bruno@clisp.org>
61049
61050                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61051
61052         2006-07-22  Bruno Haible  <bruno@clisp.org>
61053
61054                 * modules/javaversion: New file.
61055                 * MODULES.html.sh (Java): Add javaversion.
61056
61057         2006-03-12  Bruno Haible  <bruno@clisp.org>
61058
61059                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61060
61061         2005-12-04  Bruno Haible  <bruno@clisp.org>
61062
61063                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61064                 (untested).
61065
61066         2006-06-21  Bruno Haible  <bruno@clisp.org>
61067
61068                 Avoid warnings from recent versions of mcs.
61069                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61070                 -o, -L, -r any more. Use options documented since mcs-1.0
61071                 instead. Similarly for -g.
61072
61073         2005-12-04  Bruno Haible  <bruno@clisp.org>
61074
61075                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61076                 .resources, not .resource.
61077
61078         2005-07-09  Bruno Haible  <bruno@clisp.org>
61079
61080                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61081                 add a .dll suffix.
61082                 Reported by Mark Junker <mjscod@gmx.de>.
61083
61084         2006-07-22  Bruno Haible  <bruno@clisp.org>
61085
61086                 * modules/gettext: Upgrade to gettext-0.15.
61087                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61088                 m4/visibility.m4.
61089                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61090
61091 2006-07-22  Bruno Haible  <bruno@clisp.org>
61092
61093         Merge from GNU gettext 0.15.
61094
61095         2006-03-25  Bruno Haible  <bruno@clisp.org>
61096
61097                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61098
61099         2006-07-21  Bruno Haible  <bruno@clisp.org>
61100
61101                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61102                 "1.1".
61103
61104         2006-05-09  Bruno Haible  <bruno@clisp.org>
61105
61106                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61107                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61108                 for the conftestver execution.
61109
61110         2006-05-01  Bruno Haible  <bruno@clisp.org>
61111
61112                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61113                 optional target-version argument. Verify that the compiler
61114                 groks source of the specified source-version, or add -source
61115                 option as necessary. Verify that the compiler produces
61116                 bytecode in the specified target-version, or add -target and
61117                 -source options as necessary. Make the result of the test
61118                 available as variable CONF_JAVAC. Also log error output in
61119                 config.log.
61120
61121         2006-03-11  Bruno Haible  <bruno@clisp.org>
61122
61123                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61124
61125         2006-05-09  Bruno Haible  <bruno@clisp.org>
61126
61127                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61128                 CLASSPATH_SEPARATOR to a semicolon.
61129
61130         2006-03-12  Bruno Haible  <bruno@clisp.org>
61131
61132                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61133                 available as variable CONF_JAVA, for subsequent autoconf
61134                 tests. Also log error output in config.log.
61135
61136         2006-07-19  Bruno Haible  <bruno@clisp.org>
61137
61138                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61139                 that getline works on glibc2 systems. Needed to avoid trouble
61140                 in relocatable.c.
61141                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61142
61143         2005-12-04  Bruno Haible  <bruno@clisp.org>
61144
61145                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61146                 launcher (untested).
61147
61148         2005-12-04  Bruno Haible  <bruno@clisp.org>
61149
61150                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61151
61152         2006-07-22  Bruno Haible  <bruno@clisp.org>
61153
61154                 * gettext.m4: Update from GNU gettext-0.15.
61155                 * nls.m4: Likewise.
61156                 * po.m4: Likewise.
61157                 * inttypes-pri.m4: Likewise.
61158                 * inttypes-h.m4: Renamed from inttypes.m4.
61159                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61160
61161 2006-07-22  Bruno Haible  <bruno@clisp.org>
61162
61163         Merge from GNU gettext 0.15.
61164
61165         2005-07-05  Bruno Haible  <bruno@clisp.org>
61166
61167                 * printf-args.c (printf_fetchargs): Work around broken
61168                 definition of wint_t on mingw.
61169
61170         2005-02-12  Bruno Haible  <bruno@clisp.org>
61171
61172                 * xallocsa.h: Add extern "C" for C++.
61173
61174         2006-05-17  Bruno Haible  <bruno@clisp.org>
61175
61176                 Cygwin portability.
61177                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61178
61179         2006-04-30  Bruno Haible  <bruno@clisp.org>
61180
61181                 * progreloc.c: Include <mach-o/dyld.h> if available.
61182                 (find_executable): Use _NSGetExecutablePath when possible.
61183
61184         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61185
61186                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61187                 function.
61188
61189         2005-12-29  Bruno Haible  <bruno@clisp.org>
61190
61191                 * progreloc.c (set_program_name_and_installdir): Fix
61192                 compilation error.
61193
61194         2005-12-04  Bruno Haible  <bruno@clisp.org>
61195
61196                 Cygwin portability.
61197                 * progreloc.c: Include <windows.h> also on Cygwin.
61198                 (find_executable): Add support for Cygwin.
61199                 (set_program_name_and_installdir): Handle also platforms with
61200                 nonempty EXEEXT.
61201
61202         2006-07-11  Bruno Haible  <bruno@clisp.org>
61203
61204                 * javacomp.c: Fix a comment.
61205                 Reported by Jim Meyering.
61206
61207         2006-04-30  Bruno Haible  <bruno@clisp.org>
61208
61209                 * javacomp.h (compile_java_class): Add source_version,
61210                 target_version arguments.
61211                 * javacomp.c: Rewritten to choose only a compiler that
61212                 respects the specified source_version and target_version.
61213
61214         2006-06-27  Bruno Haible  <bruno@clisp.org>
61215
61216                 Assume correct S_ISDIR macro.
61217                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61218
61219         2006-07-22  Bruno Haible  <bruno@clisp.org>
61220
61221                 * javaversion.h: New file, from GNU gettext.
61222                 * javaversion.c: New file, from GNU gettext.
61223                 * javaversion.java: New file, from GNU gettext.
61224                 * javaversion.class: New file, from GNU gettext.
61225
61226         2006-05-17  Bruno Haible  <bruno@clisp.org>
61227
61228                 Cygwin portability.
61229                 * javaexec.c (execute_java_class): Test for jview program
61230                 also on Cygwin.
61231
61232         2006-04-09  Bruno Haible  <bruno@clisp.org>
61233
61234                 * fatal-signal.c: Don't include string.h.
61235                 (at_fatal_signal): Use a copying loop instead of memcpy.
61236
61237         2005-12-04  Bruno Haible  <bruno@clisp.org>
61238
61239                 * csharpexec.c: Add support for 'clix' launcher (untested).
61240                 (execute_csharp_using_sscli): New function.
61241                 (execute_csharp_program): Call it.
61242
61243         2006-06-21  Bruno Haible  <bruno@clisp.org>
61244
61245                 Avoid warnings from recent versions of mcs.
61246                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61247                 -o, -L, -r any more. Use options documented since mcs-1.0
61248                 instead. Similarly for -g.
61249
61250         2005-07-09  Bruno Haible  <bruno@clisp.org>
61251
61252                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61253                 add a .dll suffix.
61254                 Reported by Mark Junker <mjscod@gmx.de>.
61255
61256         2006-06-17  Bruno Haible  <bruno@clisp.org>
61257
61258                 * config.charset: Update for NetBSD 3.0.
61259
61260         2006-05-17  Bruno Haible  <bruno@clisp.org>
61261
61262                 Cygwin portability.
61263                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61264
61265         2006-05-16  Bruno Haible  <bruno@clisp.org>
61266
61267                 * localcharset.c [CYGWIN]: Include <windows.h>.
61268                 (get_charset_aliases): For Cygwin, return the same CPxxx
61269                 aliases list as under WIN32.
61270                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61271                 the environment variables. Fall back to GetACP().
61272
61273         2006-04-05  Bruno Haible  <bruno@clisp.org>
61274
61275                 * config.charset: Update Juan Manuel Guerrero's address.
61276
61277         2005-02-12  Bruno Haible  <bruno@clisp.org>
61278
61279                 * allocsa.h: Add extern "C" for C++.
61280
61281         2005-02-10  Bruno Haible  <bruno@clisp.org>
61282
61283                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61284                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61285
61286         2006-07-22  Bruno Haible  <bruno@clisp.org>
61287
61288                 * gettext.h: Update to GNU gettext-0.15.
61289
61290 2006-07-22  Bruno Haible  <bruno@clisp.org>
61291
61292         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61293         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61294         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61295
61296 2006-07-21  Eric Blake  <ebb9@byu.net>
61297
61298         * modules/stdlib-safer: New file.
61299         * MODULES.html.sh (File stream based Input/Output): Add
61300         stdlib-safer.
61301
61302 2006-07-21  Eric Blake  <ebb9@byu.net>
61303
61304         * lib/stdlib-safer.h: New file from coreutils, required by
61305         stdlib--.h.
61306
61307 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61308
61309         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61310
61311 2006-07-20  Bruno Haible  <bruno@clisp.org>
61312
61313         * gnulib-tool: Recognize new option --assume-autoconf.
61314         (autoconf_minversion): New variable.
61315         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61316
61317 2006-07-20  Bruno Haible  <bruno@clisp.org>
61318
61319         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61320
61321 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61322
61323         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61324         Reindent and repaginate.
61325
61326 2006-07-19  Derek Price  <derek@ximbiot.com>
61327
61328         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61329         Correct grammar.
61330
61331 2006-07-17  Bruno Haible  <bruno@clisp.org>
61332
61333         * modules/list: New file.
61334         * modules/array-list: New file.
61335         * modules/carray-list, modules/carray-list-tests: New files.
61336         * modules/linked-list, modules/linked-list-tests: New files.
61337         * modules/avltree-list, modules/avltree-list-tests: New files.
61338         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61339         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61340         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61341         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61342         * modules/oset: New file.
61343         * modules/array-oset: New file.
61344         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61345         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61346         * tests/test-carray_list.c: New file.
61347         * tests/test-linked_list.c: New file.
61348         * tests/test-avltree_list.c: New file.
61349         * tests/test-rbtree_list.c: New file.
61350         * tests/test-linkedhash_list.c: New file.
61351         * tests/test-avltreehash_list.c: New file.
61352         * tests/test-rbtreehash_list.c: New file.
61353         * tests/test-avltree_oset.c: New file.
61354         * tests/test-rbtree_oset.c: New file.
61355         * MODULES.html.sh (Container data structures): New section.
61356
61357 2006-07-17  Bruno Haible  <bruno@clisp.org>
61358
61359         * m4/gl_list.m4: New file.
61360
61361 2006-07-17  Bruno Haible  <bruno@clisp.org>
61362
61363         * lib/gl_list.h: New file.
61364         * lib/gl_list.c: New file.
61365         * lib/gl_array_list.h: New file.
61366         * lib/gl_array_list.c: New file.
61367         * lib/gl_carray_list.h: New file.
61368         * lib/gl_carray_list.c: New file.
61369         * lib/gl_linked_list.h: New file.
61370         * lib/gl_linked_list.c: New file.
61371         * lib/gl_anylinked_list1.h: New file.
61372         * lib/gl_anylinked_list2.h: New file.
61373         * lib/gl_avltree_list.h: New file.
61374         * lib/gl_avltree_list.c: New file.
61375         * lib/gl_anyavltree_list1.h: New file.
61376         * lib/gl_anyavltree_list2.h: New file.
61377         * lib/gl_rbtree_list.h: New file.
61378         * lib/gl_rbtree_list.c: New file.
61379         * lib/gl_anyrbtree_list1.h: New file.
61380         * lib/gl_anyrbtree_list2.h: New file.
61381         * lib/gl_anytree_list1.h: New file.
61382         * lib/gl_anytree_list2.h: New file.
61383         * lib/gl_linkedhash_list.h: New file.
61384         * lib/gl_linkedhash_list.c: New file.
61385         * lib/gl_anyhash_list1.h: New file.
61386         * lib/gl_anyhash_list2.h: New file.
61387         * lib/gl_avltreehash_list.h: New file.
61388         * lib/gl_avltreehash_list.c: New file.
61389         * lib/gl_rbtreehash_list.h: New file.
61390         * lib/gl_rbtreehash_list.c: New file.
61391         * lib/gl_anytreehash_list1.h: New file.
61392         * lib/gl_anytreehash_list2.h: New file.
61393
61394         * lib/gl_oset.h: New file.
61395         * lib/gl_oset.c: New file.
61396         * lib/gl_array_oset.h: New file.
61397         * lib/gl_array_oset.c: New file.
61398         * lib/gl_avltree_oset.h: New file.
61399         * lib/gl_avltree_oset.c: New file.
61400         * lib/gl_rbtree_oset.h: New file.
61401         * lib/gl_rbtree_oset.c: New file.
61402         * lib/gl_anytree_oset.h: New file.
61403
61404 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61405
61406         * m4/mkancesdirs.m4: New file.
61407         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61408         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61409         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61410         it.
61411
61412 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61413
61414         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61415         * lib/mkancesdirs.h: New files.
61416         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61417         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61418         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61419         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61420         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61421         callers changed.  Revamp internals significantly, by not
61422         attempting to create directories that are temporarily more
61423         permissive than the final results.  Do not attempt to use
61424         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61425         This removes some race conditions, fixes some bugs, and simplifies
61426         things.  Use new dirchownmod function to do owner and mode changes.
61427         * lib/mkdir-p.h: Likewise.
61428         * lib/modechange.c (octal_to_mode): New function.
61429         (struct mode_change): New member mentioned.
61430         (make_node_op_equals): New arg mentioned.  All callers changed.
61431         (mode_compile): Keep track of which mode bits the user has explicitly
61432         mentioned.
61433         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61434         New arg PMODE_BITS, to keep track of which mode bits the user
61435         mentioned; it treats S_ISUID and S_ISGID speciall.
61436         All callers changed.
61437         * lib/modechange.h: Likewise.
61438
61439 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61440
61441         * MODULES.html.sh: Add mkancestors.
61442         * modules/mkancesdirs: New module.
61443         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61444         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61445         The chdir-safer and afs files are now orphans; I'll remove them
61446         unless someone speaks up.
61447         Add lib/dirchownmod.c, lib/dirchownmod.h.
61448         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61449         Add lchown, mkancesdirs.
61450         (Maintainer): Add self.
61451
61452 2006-07-15  Karl Berry  <karl@gnu.org>
61453
61454         * gnulib-tool: help message wording/arrangement.
61455
61456 2006-07-14  Simon Josefsson  <jas@extundo.com>
61457
61458         * doc/gnulib.texi (Libtool and Windows): New section.
61459
61460 2006-07-12  Simon Josefsson  <jas@extundo.com>
61461
61462         * modules/gendocs (License): Fix license, approved by Karl.
61463
61464 2006-07-12  Eric Blake  <ebb9@byu.net>
61465
61466         * MODULES.html.sh: Add gendocs.
61467
61468 2006-07-11  Eric Blake  <ebb9@byu.net>
61469
61470         * modules/fdl: New module, to install doc/fdl.texi.
61471         * MODULES.html.sh: Add new section for documentation modules.
61472         * gnulib-tool: Avoid space-tab.
61473         (--doc-base): New option, to manage files from doc.
61474
61475 2006-07-11  Eric Blake  <ebb9@byu.net>
61476
61477         * m4/absolute-header.m4: Fix comments to match recent change.
61478
61479 2006-07-11  Eric Blake  <ebb9@byu.net>
61480
61481         * gnulib-tool: List --doc-base before --tests-base.
61482
61483 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61484
61485         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61486
61487 2006-07-11  Bruno Haible  <bruno@clisp.org>
61488
61489         * README: Mention where to put documentation.
61490
61491 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61492
61493         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61494
61495 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61496
61497         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61498         to stdint.m4.
61499
61500 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61501
61502         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61503         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61504         "no/such/file/stdint.h" when there is no such file, so that
61505         the resulting C code can be parsed by dodgy compilers.
61506         Problems reported by Bob Proulx.
61507
61508 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61509
61510         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61511         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61512         macros into the GNU _D_EXACT_NAMLEN.
61513         * lib/savedir.c:  Likewise.
61514         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61515
61516 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61517         and Paul Eggert  <eggert@cs.ucla.edu>
61518
61519         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
61520         * m4/savedir.m4:
61521         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61522         macros into the GNU _D_EXACT_NAMLEN.
61523
61524 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61525
61526         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
61527         around the absolute name, to work around a problem with the HP-UX
61528         11.23 native C compiler, reported by Bob Proulx.
61529
61530 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61531
61532         * doc/maintain.texi, make-stds.texi: Sync from
61533         <http://savannah.gnu.org/projects/gnustandards>.
61534
61535 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61536
61537         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
61538
61539 2006-07-09  Jim Meyering  <jim@meyering.net>
61540
61541         * m4/glob.m4: Remove a doubled word in a comment.
61542
61543 2006-07-09  Jim Meyering  <jim@meyering.net>
61544
61545         * lib/argp-pv.c: Remove a doubled word in a comment.
61546         * lib/check-version.c (check_version): Likewise.
61547         * lib/javacomp.c (compile_java_class): Likewise.
61548
61549 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61550
61551         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
61552         for the benefit of people using Autoconf 2.60.  If you want to
61553         support older Autoconf versions you can copy m4/onceonly_2_57.m4
61554         (or m4/onceonly.m4, if pre-2.57) manually.
61555
61556 2006-07-08  Jim Meyering  <jim@meyering.net>
61557
61558         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
61559         comment.
61560         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
61561         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
61562         comment.
61563
61564 2006-07-08  Jim Meyering  <jim@meyering.net>
61565
61566         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
61567
61568 2006-07-07  Simon Josefsson  <jas@extundo.com>
61569
61570         * tests/test-crc.c: Change expected crc value, the test vector
61571         were probably computed using the old broken crc.c?
61572
61573 2006-07-06  Simon Josefsson  <jas@extundo.com>
61574
61575         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
61576         now the canonical place for the M4 file).
61577
61578         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
61579         from the sys_socket dependency now.
61580
61581         * modules/inet_pton (Files): Ditto.
61582
61583         * modules/inet_ntop (Files): Ditto.
61584
61585 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61586
61587         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
61588         not gl_PREREQ_GETUSERSHELL.
61589
61590 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61591
61592         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
61593         with only one argument, for Autoconf 2.60.
61594         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
61595         expand to nothing, so add a shell command to avoid syntax error.
61596         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61597
61598 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61599
61600         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
61601
61602 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61603
61604         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
61605         no longer needed.  Check for isblank decl.
61606         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
61607         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
61608         of existence.
61609
61610 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61611
61612         * lib/getloadavg.c: Use __VMS, not VMS.
61613         * lib/getopt.c: Likewise.
61614         * lib/getpagesize.h: Likewise.
61615         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
61616         and probably does not work.
61617
61618 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61619
61620         * lib/.cppi-disable: Add wcwidth.
61621         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
61622         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
61623         (ISGRAPH): Remove.  All uses changed to isgraph.
61624         (FOLD) [!defined _LIBC]: Remove special case.
61625         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
61626         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
61627         HAVE_ISBLANK.
61628         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
61629         case.
61630
61631 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61632
61633         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
61634         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
61635         brackets.  Other minor changes to suppress some compiler
61636         warnings.
61637
61638 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61639         and Paul Eggert  <eggert@cs.ucla.edu>
61640
61641         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
61642         of invoking obsolescent AC_HEADER_DIRENT macro.
61643         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61644         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
61645         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61646         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
61647         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
61648         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61649         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
61650         * m4/readdir.m4: Remove; no longer needed.
61651
61652 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61653         and Paul Eggert  <eggert@cs.ucla.edu>
61654
61655         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
61656         Don't worry about this obsolete case any more.
61657         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
61658         directories.
61659         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
61660         worry about this obsolete case any more.
61661         * lib/fts.c: Likewise.
61662         * lib/getcwd.c: Likewise.
61663         * lib/glob.h: Likewise.
61664         * lib/savedir.c: Likewise.
61665
61666 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61667
61668         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
61669         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
61670         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
61671         needed.
61672         All uses removed.
61673         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61674         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61675         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
61676         needed.
61677         * m4/getdate.m4 (gl_GETDATE): Likewise.
61678         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61679         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61680         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61681         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61682         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61683         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61684         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
61685         needed.
61686
61687 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61688
61689         * lib/memcasecmp.c: Include <limits.h>.
61690         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61691         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61692         Don't assume isdigit succeeds only on '0' through '9'.
61693
61694 2006-07-05  Eric Blake  <ebb9@byu.net>
61695
61696         * modules/getaddrinfo (Depends-on): Add snprintf.
61697
61698 2006-07-05  Eric Blake  <ebb9@byu.net>
61699
61700         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61701         to avoid 'header present but could not be compiled' on cygwin.
61702
61703 2006-07-05  Eric Blake  <ebb9@byu.net>
61704
61705         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61706         missing from netdb.h.
61707         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61708
61709 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61710
61711         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61712         no longer needed.
61713         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61714         * m4/getdate.m4 (gl_GETDATE): Likewise.
61715         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61716         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61717         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61718         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61719         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61720
61721 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61722
61723         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61724         All uses of is_space replaced by isspace.
61725         * lib/exit.h: Don't talk about STDC_HEADERS.
61726         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61727         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61728         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61729         replaced by isprint etc.
61730         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61731         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61732         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61733         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61734         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61735         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61736
61737 2006-07-05  Bruno Haible  <bruno@clisp.org>
61738
61739         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61740         the function exists, before testing against AIX.
61741         Reported by Martin Lambers <marlam@marlam.de>.
61742
61743 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61744
61745         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61746         From Mark D. Baushke.
61747
61748 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61749
61750         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61751         to the absolute name, not just one, to bypass Sun C 5.8's
61752         "warning: #include of /usr/include/... may be non-portable".
61753
61754 2006-07-04  Eric Blake  <ebb9@byu.net>
61755
61756         * modules/dirname-tests: New test module.
61757         * tests/test-dirname.c: New file, replacing dirname.c
61758         TEST_DIRNAME section that was recently deleted.
61759
61760 2006-07-04  Bruno Haible  <bruno@clisp.org>
61761
61762         Assume ANSI C header files and <ctype.h> functions.
61763         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61764         (mbsnwidth): Use isprint, iscntrl instead.
61765
61766 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61767
61768         Merge from coreutils.
61769         * MODULES.html.sh: Add xstrtold.
61770         * modules/xstrtold: New file.
61771         * modules/cycle-check (Files): Add lib/same-inode.h.
61772         * modules/dirname (Files): Add m4/double-slash-root.m4.
61773         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61774         * modules/mkdir-p (Files): Add lib/same-inode.h.
61775         * modules/same (Files): Add lib/same-inode.h.
61776
61777 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61778
61779         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61780         This is to keep the terminology clean; POSIX talks about
61781         "absolute pathnames", not "full pathnames", but the GNU
61782         Coding Standards say to use "path" for something else;
61783         so use "absolute" to keep both sides happy.
61784         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61785         Set gl_absolute_header, not gl_full_header_path.
61786         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61787         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61788         All uses changed.
61789
61790         Merge from coreutils.
61791
61792         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61793
61794         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
61795         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
61796         want to require the building of c-strtod.o.
61797         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
61798         needs -lm directly.
61799         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
61800
61801         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61802
61803         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
61804         --as-needed option if available.  Problem reported by Albert Chin in
61805         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
61806         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
61807         cc merely issues a bunch of annoying warnings for --as-needed
61808         (this problem was reported by Bob Proulx).  Also, try linking with
61809         -lm to detect a bug in binutils 2.16 (this problem was reported
61810         by Ralf Wildenhues).
61811
61812         2006-06-18  Jim Meyering  <jim@meyering.net>
61813
61814         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
61815         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
61816         macro.
61817         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
61818         also check for glibc-2.4's abort-inducing bug.
61819
61820         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
61821         Low-probability clean-up should be to use rmdir to get rid of
61822         the just-created directory, not unlink.
61823
61824         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
61825         configure fail, and request a bug report to inform us about it.
61826         Add a comment that, barring reports to the contrary, in 2007 we'll
61827         assume ftruncate is universally available.
61828
61829         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61830
61831         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
61832
61833         2006-03-12  Jim Meyering  <jim@meyering.net>
61834
61835         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
61836         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
61837         * m4/same.m4 (gl_SAME): Likewise.
61838         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
61839
61840         2006-03-11  Eric Blake  <ebb9@byu.net>
61841
61842         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
61843         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
61844         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
61845         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
61846
61847 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61848
61849         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
61850         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
61851         reported by Mark D. Baushke, one in
61852         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
61853
61854         Merge from coreutils.
61855
61856         * lib/.cppi-disable: Add stdint_.h.
61857         * lib/.cvsignore: Add stdint.h.
61858
61859         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61860
61861         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
61862         both double and long double versions.
61863         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
61864         * lib/xstrtold.c: New file.
61865         * lib/xstrtod.h (xstrtold): New decl.
61866
61867         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61868
61869         * lib/filemode.c (setst): Remove.
61870         (strmode): Rewrite to avoid setst.  This makes the code shorter,
61871         (arguably) clearer, and the generated code is a bit smaller on my
61872         Debian GNU/Linux stable x86 host.
61873
61874         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61875
61876         * lib/filemode.c: Include "filemode.h" first, to test the interface.
61877         Assume that filemode.h includes sys/types.h and sys/stat.h.
61878         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
61879         (ftypelet): Reorder to put common cases first, for efficiency.
61880         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
61881         to do 'M'.
61882         (strmode): Renamed from mode_string, and now stores 12 bytes instead
61883         of 10, for compatibility with FreeBSD.  All callers changed.
61884         (filemodestring): Now stores 12 bytes instead of 10, and sets file
61885         types that can't be deduced solely from st_mode.  First arg is now a
61886         const pointer.
61887         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
61888         (strmode): Renamed from mode_string.
61889         (filemodestring): New decl.
61890         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
61891         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
61892         needed.
61893         (S_ISPORT, S_ISWHT): New macros, if not already defined.
61894
61895         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61896
61897         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
61898         fsusage.h now does that.  Include fsusage.h first, to test interface.
61899         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
61900         at most one method (the old code could have generated decls that
61901         didn't conform to C89, not that this was ever exercised).
61902         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
61903
61904         2006-03-19  Jim Meyering  <jim@meyering.net>
61905
61906         Work even in a chroot where d_ino values for entries in "/"
61907         don't match the stat.st_ino values for the same names.
61908         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
61909         number, iterate through all entries again, using lstat instead.
61910         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
61911         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
61912
61913         * lib/getcwd.c (__getcwd): Clarify a comment.
61914         Use memcpy in place of a call to strcpy.
61915
61916         2006-03-12  Jim Meyering  <jim@meyering.net>
61917
61918         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
61919         matches that of the current directory (which we're about to chdir ".."
61920         out of), then save the dev-ino of the parent, instead.
61921
61922         * lib/same-inode.h (SAME_INODE): New file/macro.
61923         * lib/chdir-safer.c (SAME_INODE): Remove definition.
61924         Include "same-inode.h", instead.
61925         * lib/same.c: Likewise.
61926         * lib/cycle-check.h: Include "same-inode.h".
61927         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
61928         * lib/cycle-check.c (SAME_INODE): Remove definition.
61929         * lib/root-dev-ino.h: Include "same-inode.h".
61930
61931         2006-03-11  Eric Blake  <ebb9@byu.net>
61932
61933         * lib/same.c (same_name): s/base_name/last_component/
61934         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
61935         * lib/filenamecat.c (file_name_concat): Likewise.
61936
61937         2006-03-11  Eric Blake  <ebb9@byu.net>,
61938                     Paul Eggert  <eggert@cs.ucla.edu>
61939
61940         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
61941         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
61942         drive prefix.
61943         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
61944         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
61945         (last_component): New method.
61946         * lib/dirname.c (dir_len): Determine when drive letters need a
61947         subsequent slash.  Preserve // when it is special.
61948         (dir_name): Don't append dot when drive letter is absolute.
61949         [TEST_DIRNAME]: Move into a full-blown gnulib test.
61950         * lib/basename.c (base_name): New semantics - malloc the result.
61951         Preserve // when it is special.  Preserve relative files that look
61952         like drive letters.
61953         (base_len): Preserve // when it is special.
61954         (last_component): New method, similar to old base_name semantics.
61955         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
61956         base_name.  Strip redundant slashes from ///.
61957
61958 2006-07-03  Jim Meyering  <jim@meyering.net>
61959
61960         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
61961         macro is used before the first cycle_check call.
61962
61963 2006-07-03  Eric Blake  <ebb9@byu.net>
61964
61965         * modules/dirname (Depends-on): Add xstrndup.
61966
61967 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61968
61969         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
61970         test cases, so that config.log is a bit easier to follow.
61971
61972 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61973
61974         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
61975         both are 64 bits, since this seems to be the tradition, and this
61976         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
61977         we ever run into a host that prefers long long to long in this
61978         case, we'll need another configure-time test.  Problem reported by
61979         Jim Meyering.
61980
61981 2006-07-02  Eric Blake  <ebb9@byu.net>
61982
61983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
61984
61985 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61986
61987         * modules/inttypes (Depends-on): No longer depends on stdint.
61988         * modules/stdint (Description): Say more about assumptions.
61989         Say that the fast types might differ.  Say macros are used.
61990         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
61991         (Makefile.am): Revise list of substituted symbols to match
61992         new stdint.m4.
61993         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
61994         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
61995         * tests/test-stdint.c (verify_same_types)
61996         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
61997         the code conforms to C99/C89.
61998         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
61999         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62000
62001 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62002
62003         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62004         but fix a bug, by requiring at least 64 bits.
62005         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62006         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62007         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62008         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62009
62010         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62011         changes.  Make 2.59 a prerequisite.  Check and substitute for
62012         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62013         inttypes.h.  Do not use special include files; just use the
62014         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62015         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62016         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62017         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62018         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62019         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62020         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62021         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62022         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62023         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62024         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62025         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62026         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62027         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62028         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62029         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62030         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62031         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62032         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62033         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62034         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62035         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62036         not check for things that C99 does not require, e.g., int8_t.  If
62037         a test isn't needed unless <stdint.h> isn't working, and is
62038         unlikely to be needed for any other reason, then don't do it
62039         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62040         size_t, since we assume C89 freestanding at least.  Do not check
62041         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62042         the right thing even if the types are not defined.  Instead use:
62043         (gl_STDINT_TYPE_PROPERTIES): New macro.
62044         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62045         testing whether <sys/types.h> clashes, as Autoconf does this for
62046         us now.  All uses removed.
62047         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62048         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62049         (gl_CHECK_TYPE_SAME):
62050         Remove; no longer needed.
62051         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62052         exists, since we'll return 0 anyway in that case.
62053         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62054
62055 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62056
62057         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62058         possible collision with system files.
62059         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62060         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62061         WCHAR_MIN and WCHAR_MAX in this case.
62062         (<stddef.h>): Do not include; no longer needed.
62063         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62064         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62065         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62066         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62067         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62068         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62069         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62070         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62071         !defined(__c99))]: Include in this case too, since it's harmless
62072         now.
62073         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62074         dangerous to do so.
62075         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62076         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62077         (_STDINT_MIN, _STDINT_MAX): New macros.
62078         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62079         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62080         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62081         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62082         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62083         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62084         macros, not typedefs; this simplifies things quite a bit.
62085         Use long int for all types narrower than int64_t.
62086         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62087         Define in terms of long long int or int64_t or long int,
62088         not int64_t or int32_t.  This saves some compile-time testing.
62089         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62090         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62091         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62092         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62093         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62094         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62095         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62096         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62097         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62098         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62099         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62100         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62101         undef any previous version and define our own version, for
62102         simplicity and consistency with the new macros for types.
62103         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62104         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62105         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62106         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62107         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62108         @WINT_T_SUFFIX@ to keep things simple here.
62109         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62110         Simplify by assuming typical 8/16/32/64 host, since we're
62111         already doing that elsewhere anyway.
62112         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62113         and assume long long int is 64 bits if available.  This
62114         speeds up 'configure'.
62115
62116 2006-07-01  Eric Blake  <ebb9@byu.net>
62117
62118         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62119         Reported by Andreas Buening.
62120
62121 2006-07-01  Eric Blake  <ebb9@byu.net>
62122
62123         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62124
62125 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62126
62127         * lib/getaddrinfo.c: fixed typo
62128
62129 2006-06-29  Jim Meyering  <jim@meyering.net>
62130
62131         * modules/strftime (Maintainer): Add my name, since with the
62132         FPRINTFTIME changes strftime.c has forked from glibc.
62133
62134 2006-06-29  Eric Blake  <ebb9@byu.net>
62135
62136         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62137
62138 2006-06-29  Eric Blake  <ebb9@byu.net>
62139
62140         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62141
62142 2006-06-29  Eric Blake  <ebb9@byu.net>
62143
62144         * lib/stat_.h: New file.
62145
62146 2006-06-29  Eric Blake  <ebb9@byu.net>
62147
62148         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62149         unused static function.
62150
62151 2006-06-29  Eric Blake  <ebb9@byu.net>
62152
62153         * doc/functions.texi (Function Portability): Document missing lstat
62154         on mingw.
62155
62156 2006-06-29  Eric Blake  <ebb9@byu.net>
62157
62158         * MODULES.html.sh: Add sys_stat.
62159         * modules/sys_stat: New module.
62160         * modules/mkstemp (Depends-on): Add sys_stat.
62161
62162 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62163
62164         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62165
62166 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62167
62168         * m4/c-bs-a.m4: Removed.
62169
62170 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62171
62172         * lib/strftime.c: Assume strftime() exists.
62173
62174 2006-06-29  Derek Price  <derek@ximbiot.com>
62175
62176         * modules/c-bs-a: Removed - \a is C89.
62177         * MODULES.html.sh: Remove c-bs-a.
62178
62179 2006-06-29  Bruno Haible  <bruno@clisp.org>
62180
62181         * modules/wcwidth (License): Change to LGPL.
62182
62183 2006-06-28  Simon Josefsson  <jas@extundo.com>
62184
62185         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62186         on _WIN32.
62187
62188         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62189         getnameinfo.
62190
62191 2006-06-28  Simon Josefsson  <jas@extundo.com>
62192
62193         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62194
62195 2006-06-28  Simon Josefsson  <jas@extundo.com>
62196
62197         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62198         functions there.  It will succeed on Windows XP, but on Windows
62199         2000 and (presumably) earlier, it will fail, and use the internal
62200         re-implementation.
62201         (use_win32_p): New function.
62202         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62203         Support AI_NUMERICSERV to disable getservbyname.
62204         (getnameinfo): New function, only supports
62205         NI_NUMERICHOST|NI_NUMERICSERV for now.
62206
62207         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62208         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62209         getnameinfo.
62210
62211 2006-06-28  Eric Blake  <ebb9@byu.net>
62212
62213         * modules/wcwidth: New file.
62214         * modules/mbchar (Depends-on): Add wcwidth.
62215         * modules/mbswidth (Depends-on): Add wcwidth.
62216         * MODULES.html.sh: Add wcwidth.
62217
62218 2006-06-28  Eric Blake  <ebb9@byu.net>
62219
62220         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62222
62223 2006-06-28  Eric Blake  <ebb9@byu.net>
62224
62225         * lib/xvasprintf.h: Fix comments.
62226
62227 2006-06-28  Eric Blake  <ebb9@byu.net>
62228
62229         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62230         * lib/mbswidth.c (wcwidth): Move from here...
62231         * lib/wcwidth.h: ...to this new file.
62232
62233 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62234
62235         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62236
62237         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62238         it's obsolete.
62239         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62240
62241 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62242
62243         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62244         Autoconf 2.60 says this stuff was obsolete.
62245
62246 2006-06-28  Bruno Haible  <bruno@clisp.org>
62247
62248         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62249
62250 2006-06-28  Bruno Haible  <bruno@clisp.org>
62251
62252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62253         gt_TYPE_WCHAR_T.
62254
62255 2006-06-28  Bruno Haible  <bruno@clisp.org>
62256
62257         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62258         declaration for wcwidth.
62259         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62260
62261 2006-06-28  Bruno Haible  <bruno@clisp.org>
62262
62263         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62264         (mkdir): Define using _mkdir.
62265
62266 2006-06-28  Bruno Haible  <bruno@clisp.org>
62267
62268         * lib/getaddrinfo.h: Fix POSIX URL.
62269         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62270         _WIN32.
62271         (use_win32_p): Make static.
62272         (getaddrinfo): Reject service name if it is empty or does not consist
62273         solely of decimal digits, or if its value is > 65535.
62274         (getnameinfo): Remove useless casts.
62275
62276 2006-06-27  Simon Josefsson  <jas@extundo.com>
62277
62278         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62279         Eggert and Martin Lambers.
62280
62281 2006-06-27  Simon Josefsson  <jas@extundo.com>
62282
62283         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62284         Eggert and Martin Lambers.
62285
62286 2006-06-27  Bruno Haible  <bruno@clisp.org>
62287
62288         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62289         result to 0, not to empty.
62290         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62291
62292 2006-06-27  Bruno Haible  <bruno@clisp.org>
62293
62294         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62295
62296 2006-06-26  Simon Josefsson  <jas@extundo.com>
62297
62298         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62299         present.
62300
62301 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62302
62303         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62304         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62305         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62306
62307 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62308
62309         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62310
62311 2006-06-26  Bruno Haible  <bruno@clisp.org>
62312
62313         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62314
62315 2006-06-26  Bruno Haible  <bruno@clisp.org>
62316
62317         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62318
62319 2006-06-26  Bruno Haible  <bruno@clisp.org>
62320
62321         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62322         SGI C compiler in pre-C99 mode.
62323         Suggested by Mark D. Baushke and Larry Jones.
62324
62325 2006-06-26  Bruno Haible  <bruno@clisp.org>
62326
62327         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62328         WCHAR_MAX.
62329         Reported by Mark D. Baushke and Larry Jones.
62330
62331 2006-06-26  Bruno Haible  <bruno@clisp.org>
62332
62333         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62334         in pre-C99 mode.
62335         Suggested by Mark D. Baushke and Larry Jones.
62336
62337 2006-06-23  Simon Josefsson  <jas@extundo.com>
62338             Bruno Haible  <bruno@clisp.org>
62339
62340         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62341         Emit mostlyclean-local rule.
62342         (func_emit_tests_Makefile_am): Likewise.
62343         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62344
62345 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62346
62347         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62348
62349 2006-06-23  Bruno Haible  <bruno@clisp.org>
62350
62351         * tests/test-stdint.c: Update to match ISO C 99 Technical
62352         Corrigendum 1.
62353
62354 2006-06-23  Bruno Haible  <bruno@clisp.org>
62355
62356         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62357
62358 2006-06-23  Bruno Haible  <bruno@clisp.org>
62359
62360         * lib/stdint_.h: Treat IRIX like OpenBSD.
62361
62362 2006-06-23  Bruno Haible  <bruno@clisp.org>
62363
62364         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62365         ISO C 99 Technical Corrigendum 1.
62366
62367 2006-06-22  Simon Josefsson  <jas@extundo.com>
62368
62369         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62370         MinGW.
62371
62372 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62373
62374         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62375         needed.  Some compiler complained about some of them.  Problem reported
62376         by Larry Jones in
62377         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62378
62379 2006-06-21  Simon Josefsson  <jas@extundo.com>
62380
62381         * tests/test-getaddrinfo.c: New file.
62382
62383         * modules/getaddrinfo-tests: New file.
62384
62385         * MODULES.html.sh: Add inet_pton.
62386
62387         * modules/inet_pton: New file.
62388
62389 2006-06-21  Simon Josefsson  <jas@extundo.com>
62390
62391         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62392         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62393         of using the (limited) gnulib implementation on Windows XP.
62394
62395         * m4/inet_pton.m4: New file.
62396
62397 2006-06-21  Simon Josefsson  <jas@extundo.com>
62398
62399         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62400         variable.
62401
62402         * lib/socket_.h: Don't define WINVER.
62403
62404         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62405         slightly modified to work in gnulib.
62406
62407 2006-06-21  Simon Josefsson  <jas@extundo.com>
62408
62409         * doc/gnulib.texi (Windows sockets): Add.
62410
62411 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62412
62413         * lib/read-file.c (fread_file): Start with buffer allocation of
62414         0 bytes rather than 1 byte; this simplifies the code.
62415         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62416         code to free buffer and save/restore errno.
62417         (internal_read_file): Remove unused local.
62418
62419 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62420
62421         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62422         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62423         Problem reported by Denis Excoffier in
62424         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62425
62426 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62427
62428         * modules/sys_socket, modules/socklen: Include sys/types since
62429         FreeBSD 4.x's sys/socket.h needs it.
62430
62431 2006-06-19  Simon Josefsson  <jas@extundo.com>
62432
62433         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62434
62435 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62436
62437         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62438
62439 2006-06-19  Bruno Haible  <bruno@clisp.org>
62440
62441         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62442         and FULL_PATH_INTTYPES_H in angle brackets.
62443         Reported by Mark D. Baushke <mdb@gnu.org>.
62444
62445 2006-06-17  Eric Blake  <ebb9@byu.net>
62446
62447         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62448         errno.
62449
62450 2006-06-17  Bruno Haible  <bruno@clisp.org>
62451
62452         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62453         <sys/inttypes.h>.
62454
62455 2006-06-17  Bruno Haible  <bruno@clisp.org>
62456
62457         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62458         whether errno is declared. Assume <errno.h> declares errno.
62459
62460 2006-06-17  Bruno Haible  <bruno@clisp.org>
62461
62462         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62463
62464 2006-06-17  Bruno Haible  <bruno@clisp.org>
62465
62466         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62467         problem on Solaris 2.5.1.
62468
62469 2006-06-16  Eric Blake  <ebb9@byu.net>
62470
62471         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62472         * lib/unicodeio.c [!defined errno]: Likewise.
62473         * lib/strtol.c [!defined errno]: Likewise.
62474         * lib/strtod.c [!defined errno]: Likewise.
62475
62476 2006-06-15  Eric Blake  <ebb9@byu.net>
62477
62478         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62479
62480 2006-06-15  Eric Blake  <ebb9@byu.net>
62481
62482         * config/srclist.txt (ssize_t.m4): Lose sync.
62483
62484 2006-06-15  Bruno Haible  <bruno@clisp.org>
62485
62486         * modules/stdint (Files): Include m4/full-header-path.m4,
62487         m4/size_max.m4, m4/wchar_t.m4.
62488         (Makefile.am): Many more substitutions.
62489         * modules/stdint-tests: New file.
62490         * tests/test-stdint.c: New file.
62491
62492 2006-06-15  Bruno Haible  <bruno@clisp.org>
62493
62494         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62495         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62496         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62497         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62498         gl_CHECK_TYPE_SAME): New macros.
62499
62500 2006-06-15  Bruno Haible  <bruno@clisp.org>
62501
62502         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62503
62504 2006-06-15  Bruno Haible  <bruno@clisp.org>
62505
62506         * lib/stdint_.h: Rewritten to be fully auto-configured.
62507         Fixes bug on HP-UX/IA64.
62508
62509 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62510
62511         * lib/getdate.y (__attribute__): Don't define if already defined.
62512         Problem reported by Larry Jones.
62513         * lib/utimens.c (__attribute__): Likewise.
62514
62515 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62516
62517         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62518         reported by Andreas Schwab.
62519
62520 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62521             Bruno Haible  <bruno@clisp.org>
62522
62523         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
62524         check for the declaration of strnlen and a run test that exposes the
62525         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
62526         rpl_strndup.
62527
62528 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62529             Bruno Haible  <bruno@clisp.org>
62530
62531         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
62532
62533 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62534
62535         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
62536         compile test, for Tru64 4.0D.
62537
62538 2006-05-28  Karl Berry  <karl@gnu.org>
62539
62540         * config/srclist.txt (printf-args.c): lose sync.
62541
62542 2006-05-26  Martin Lambers  <marlam@marlam.de>
62543
62544         * lib/getpass.c: Updates the test for the native W32 API, and adds
62545         missing includes, thus fixing compilation warnings.
62546
62547 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62548
62549         * lib/exclude.c (exclude_fnmatch): New function.
62550         (excluded_file_name): Call exclude_fnmatch.
62551         * lib/exclude.h (excluded_file_name): New prototype
62552
62553 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
62554
62555         * lib/tempname.c (small_open, large_open): New macros.
62556         (__open, __open64) [!_LIBC]: Remove.
62557         (__gen_tempname): Use small_open and large_open instead of __open
62558         and __open64.  This fixes a portability bug on HP-UX 11.11i
62559         reported by Simon Wing-Tang in
62560         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
62561
62562 2006-05-24  Bruno Haible  <bruno@clisp.org>
62563
62564         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
62565         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
62566         Reported by Thorsten Maerz <torte@netztorte.de> via
62567         Aaron Stone <aaron@serendipity.cx>.
62568
62569 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62570
62571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
62572         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
62573         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
62574         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
62575         not really conditional on the cache.
62576         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62577
62578 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62579
62580         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
62581         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
62582         (my_usleep): Don't mishandle maximum value.
62583
62584 2006-05-19  Jim Meyering  <jim@meyering.net>
62585
62586         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
62587
62588 2006-05-17  Bruno Haible  <bruno@clisp.org>
62589
62590         Cygwin portability.
62591         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
62592
62593 2006-05-17  Bruno Haible  <bruno@clisp.org>
62594
62595         * lib/stdint_.h: Fix recognition of Cygwin.
62596
62597 2006-05-15  Bruno Haible  <bruno@clisp.org>
62598
62599         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
62600         on libtool patch by Ralf Wildenhues.
62601
62602 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62603
62604         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
62605         test for C99 conformance; (bool) 0.5 is an integer constant
62606         expression, but (bool) -0.5 is not.  Problem reported by Fedor
62607         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
62608
62609 2006-05-11  Simon Josefsson  <jas@extundo.com>
62610
62611         * m4/xvasprintf.m4: Fix obvious typo.
62612
62613 2006-05-11  Jim Meyering  <jim@meyering.net>
62614
62615         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
62616         James Lemley.
62617
62618 2006-05-10  Simon Josefsson  <jas@extundo.com>
62619
62620         * lib/md4.c: Typo fix, update copyright years.
62621         (K1, K2): Don't use L because it turn computations into 64-bit on
62622         64-bit platforms.
62623
62624 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
62625
62626         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
62627         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
62628         unwanted sign propagation, e.g., on hosts with 64-bit int.
62629         There still are some problems with reeelly weird theoretical hosts
62630         (e.g., 33-bit int) but it's not worth worrying about now.
62631         * lib/sha1.c (rol): Likewise.
62632         (K1, K2, K3, K4): Remove unnecessary L suffix.
62633
62634 2006-05-10  Bruno Haible  <bruno@clisp.org>
62635
62636         * lib/des.c: Cast to avoid warnings.
62637
62638 2006-05-09  Bruno Haible  <bruno@clisp.org>
62639
62640         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
62641         (Depends-on): Depend also on xsize, stdarg.
62642         (configure.ac): Add gl_XVASPRINTF.
62643
62644 2006-05-09  Bruno Haible  <bruno@clisp.org>
62645
62646         * m4/xvasprintf.m4: New file.
62647
62648 2006-05-09  Bruno Haible  <bruno@clisp.org>
62649
62650         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
62651         (EOVERFLOW): Define fallback value.
62652         (xstrcat): New function.
62653         (xvasprintf): Recognize the special case of a string concatenation.
62654
62655 2006-05-08  Eric Blake  <ebb9@byu.net>
62656
62657         * gnulib-tool (func_version): Base copyright year on CVS date.
62658         (func_emit_copyright_notice): New function.
62659         (func_emit_lib_Makefile_am): Use it.
62660         (func_emit_tests_Makefile_am): Likewise.
62661         (func_import): Likewise.
62662
62663 2006-05-08  Bruno Haible  <bruno@clisp.org>
62664
62665         * modules/stdarg: New file.
62666         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
62667
62668 2006-05-08  Bruno Haible  <bruno@clisp.org>
62669
62670         * m4/stdarg.m4: New file, from GNU gettext.
62671
62672 2006-05-08  Bruno Haible  <bruno@clisp.org>
62673
62674         * config/srclist.txt (build-aux/config.rpath): different from latest
62675         release.
62676
62677 2006-05-08  Bruno Haible  <bruno@clisp.org>
62678
62679         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
62680
62681 2006-05-05  Jim Meyering  <jim@meyering.net>
62682
62683         * m4/warning.m4: New file, derived from bison's file by the same name.
62684
62685 2006-05-03  Bruno Haible  <bruno@clisp.org>
62686
62687         * lib/stdint_.h: Shorter URL.
62688         * lib/inttypes.h: Likewise.
62689
62690 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62691
62692         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62693
62694 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62695
62696         * lib/verify.h: Document the internals better.  Most of this change
62697         was written by Bruno Haible.
62698
62699 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62700
62701         * doc/verify.texi: New file, partly based on a proposal by
62702         Bruno Haible.
62703
62704 2006-05-02  Bruno Haible  <bruno@clisp.org>
62705
62706         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62707         test from here...
62708         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62709
62710 2006-04-29  Bruno Haible  <bruno@clisp.org>
62711
62712         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62713         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62714
62715 2006-04-29  Bruno Haible  <bruno@clisp.org>
62716
62717         * gnulib-tool: Make --update option actually work.
62718
62719 2006-04-29  Bruno Haible  <bruno@clisp.org>
62720
62721         * doc/gcd.texi: New file.
62722         * doc/gnulib.texi: Include it.
62723
62724 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62725
62726         * lib/getdate.y (get_date): When adding relative date, start with the
62727         initial time, not with the result of the first mktime call.
62728
62729 2006-04-25  Bruno Haible  <bruno@clisp.org>
62730
62731         * gnulib-tool (func_import): Output the include directives in three
62732         blocks, sorted separately.
62733         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62734
62735 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62736
62737         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62738         to define main with arguments, for C++.  Reported by Eric Blake.
62739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62740         Prefer 'int main ()' to 'int main (void)', for C++.
62741         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62742         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62743         for 'main', for C99 and C++.
62744
62745 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62746
62747         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62748         Don't assume that exit status -1 is valid.
62749         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62750         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62751         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62752         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62753         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62754         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62755         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62756         functions can be used without declaring them, or that you can
62757         exit with status -1.
62758         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62759
62760 2006-04-24  Karl Berry  <karl@gnu.org>
62761
62762         * config/srclist.txt (longdouble.m4): sync lost.
62763
62764 2006-04-24  Eric Blake  <ebb9@byu.net>
62765
62766         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62767
62768 2006-04-24  Bruno Haible  <bruno@clisp.org>
62769
62770         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62771         poll() implementation in AIX.
62772         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62773
62774 2006-04-24  Bruno Haible  <bruno@clisp.org>
62775
62776         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62777         assigned exactly once.
62778
62779 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62780             Bruno Haible  <bruno@clisp.org>
62781
62782         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62783         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62784         for AM_CPPFLAGS.
62785
62786 2006-04-23  Bruno Haible  <bruno@clisp.org>
62787
62788         * modules/copy-file: Depend on unistd.
62789         * modules/execute: Likewise.
62790         * modules/fatal-signal: Likewise.
62791         * modules/findprog: Likewise.
62792         * modules/mkdtemp : Likewise.
62793         * modules/pipe: Likewise.
62794         * modules/wait-process: Likewise.
62795
62796 2006-04-23  Bruno Haible  <bruno@clisp.org>
62797
62798         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
62799         condition was already detected.
62800         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62801
62802 2006-04-23  Bruno Haible  <bruno@clisp.org>
62803
62804         * lib/copy-file.c: Include <unistd.h> unconditionally.
62805         * lib/execute.c: Likewise.
62806         * lib/fatal-signal.c: Likewise.
62807         * lib/findprog.c: Likewise.
62808         * lib/mkdtemp.c: Likewise.
62809         * lib/pipe.h: Likewise.
62810         * lib/pipe.c: Likewise.
62811         * lib/wait-process.h: Likewise.
62812
62813 2006-04-23  Bruno Haible  <bruno@clisp.org>
62814
62815         * gnulib-tool (func_usage): Fix --import description. Document
62816         --update.
62817         (func_import): Create temporary file in a temporary directory, if
62818         --dry-run is specified. Silence errors from 'grep' when there are no
62819         m4 files in $m4dir.
62820         (func_create_testdir): Silence errors from 'grep' when there are no
62821         m4 files in $m4dir.
62822         Reported by Karl Berry <karl@freefriends.org>.
62823
62824 2006-04-20  Bruno Haible  <bruno@clisp.org>
62825
62826         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
62827         one argument, so that the code will be portable to Autoconf 2.60.
62828         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
62829         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62830         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
62831
62832 2006-04-19  Derek Price  <derek@ximbiot.com>
62833             Eric Blake  <ebb9@byu.net>
62834
62835         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
62836         rather than "/full/path.h".  Update comment to match.  Shorten &
62837         generalize m4_translit call via AS_TR_CPP.
62838
62839 2006-04-19  Derek Price  <derek@ximbiot.com>
62840             Eric Blake  <ebb9@byu.net>
62841
62842         * lib/inttypes.h: Correct grammar in comment.
62843
62844 2006-04-18  Derek Price  <derek@ximbiot.com>
62845             Paul Eggert  <eggert@cs.ucla.edu>
62846
62847         * modules/inttypes: New file.
62848         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
62849
62850 2006-04-18  Derek Price  <derek@ximbiot.com>
62851             Paul Eggert  <eggert@cs.ucla.edu>
62852
62853         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
62854         New files.
62855
62856 2006-04-18  Derek Price  <derek@ximbiot.com>
62857             Paul Eggert  <eggert@cs.ucla.edu>
62858
62859         * lib/inttypes.h: New file.
62860         * lib/strtoimax.c: Assume <inttypes.h>.
62861
62862 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
62863
62864         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
62865         isn't mounted.  Problem reported by Kir Kolyshkin.
62866
62867 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62868
62869         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
62870         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
62871         Derek R. Price.
62872         * lib/regex.h (RE_DUP_MAX): Update comment to match current
62873         implementation.
62874
62875 2006-04-12  Eric Blake  <ebb9@byu.net>
62876
62877         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
62878         is now done automatically by the corresponding Autoconf macro.
62879
62880 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
62881
62882         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
62883         time_r.h.
62884
62885 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62886
62887         Merge regex changes from libc, removing some of our
62888         POSIX-conformance changes that were rejected and redoing them in a
62889         less-intrusive way.
62890
62891         * lib/regcomp.c (re_compile_internal, init_dfa):
62892         Length arg is now size_t, not Idx.  All uses changed.
62893         (peek_token): Forward decl now says internal_function.
62894         (__re_error_msgid, __re_error_msgid_idx):
62895         Now static rather than extern with attribute_hidden.
62896         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
62897         For some reason libc prefers K&R style defns for external functions.
62898         (regerror) [!defined _LIBC]: Likewise.
62899         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
62900         (seek_collating_symbol_entry, lookup_collation_sequence_value):
62901         (build_range_exp, build_collating_symbol):
62902         Use K&R-style defn.
62903         (re_compile_fastmap): Use '\0' to memset, not 0.
62904         (utf8_sb_map): Make the calculations more obvious.
62905         (init_dfa, parse_bracket_exp, build_charclass_op):
62906         Call calloc and cast result, as glibc does.
62907         (init_word_char, fetch_token, peek_token, peek_token_bracket):
62908         (build_range_exp, build_collating_symbol):
62909         Now internal functions.
62910
62911         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
62912
62913         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
62914         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
62915         Don't depend on VMS; depend on __VMS instead, for POSIX
62916         namespace cleanness.
62917         (regoff_t): Define to ssize_t, not long int.
62918
62919         Remove the REG_ macros named below.  Instead, make the old names
62920         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
62921         __USE_GNU_REGEX.
62922         (REG_BACKSLASH_ESCAPE_IN_LISTS):
62923         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
62924         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
62925         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
62926         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
62927         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
62928         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
62929         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
62930         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
62931         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
62932         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
62933         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
62934         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
62935         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
62936         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
62937         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
62938         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
62939         (REG_NREGS):
62940         Remove.  All uses replaced by the old RE_* names.
62941         (RE_BACKSLASH_ESCAPE_IN_LISTS):
62942         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
62943         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
62944         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
62945         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
62946         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
62947         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
62948         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
62949         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
62950         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
62951         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
62952         Don't bother having these macros be independent of each others'
62953         values, since they no longer exist in the POSIX name space.
62954
62955         Rename the following member names back to their old names,
62956         unless !__USE_GNU_REGEX.  All uses changed back.
62957         (buffer): Renamed from re_buffer.
62958         (allocated): Renamed from re_allocated.
62959         (used): Renamed from re_used.
62960         (syntax): Renamed from re_syntax.
62961         (fastmap): Renamed from re_fastmap.
62962         (translate): Renamed from re_translate.
62963         (can_be_null): Renamed from re_can_be_null.
62964         (regs_allocated): Renamed from re_regs_allocated.
62965         (fastmap_accurate): Renamed from re_fastmap_accurate.
62966         (no_sub): Renamed from re_no_sub.
62967         (not_bol): Renamed from re_not_bol.
62968         (not_eol): Renamed from re_not_eol.
62969         (newline_anchor): Renamed from re_newline_anchor.
62970         (num_regs): Renamed from rm_num_regs.
62971         (start): Renamed from rm_start.
62972         (end): Renamed from rm_end.
62973
62974         (free_state): Move up a bit.
62975
62976         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
62977         #define to be empty.
62978         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
62979         when that is what is intended.
62980         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
62981         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
62982         (MAX): New macro.
62983         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
62984         All uses changed back to re_malloc, etc.  It's now the caller's
62985         responsibility to check for overflow; all callers changed.
62986         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
62987         (re_x2nrealloc): Remove.
62988         (free_state): Remove decl.
62989
62990         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
62991         (re_set_registers, re_exec):
62992         Use K&R-style defn.
62993
62994         2006-01-31  Roland McGrath  <roland@redhat.com>
62995
62996         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
62997         Reported by Mike Frysinger <vapier@gentoo.org>.
62998
62999         2006-01-15  Andreas Jaeger  <aj@suse.de>
63000
63001         [BZ #1950]
63002         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63003         build_wcs_upper_buffer change.
63004         (build_wcs_upper_buffer): Change return type.
63005
63006         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63007
63008         * lib/regex_internal.h: Include <stdint.h> if available.
63009
63010         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63011
63012         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63013
63014         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63015
63016         * lib/regcomp.c: Adjust for changed secondary hash function.
63017
63018         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63019
63020         * lib/regex.h: Pretty printing.
63021         Clean up namespace a bit.
63022
63023         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63024
63025         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63026         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63027
63028         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63029                     Ulrich Drepper  <drepper@redhat.com>
63030
63031         [BZ #1302]
63032         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63033         changed.
63034         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63035
63036         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63037
63038         [BZ #281]
63039         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63040         * lib/regcomp.c: Remove unnecessary uses of
63041         unsigned RE_TRANSLATE_TYPE.
63042         * lib/regex_internal.h: Likewise.
63043         * lib/regex_internal.c: Likewise.
63044         * lib/regexec.c: Likewise.
63045         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63046
63047         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63048
63049         * lib/regexec.c (find_recover_state): Remove unnecessary
63050         initialization.
63051         (transit_state_bkref): Make DFA a const pointer.
63052         (get_subexp): Likewise.
63053         (check_arrival): Likewise.
63054         (update_cur_sifted_state): Likewise.
63055         (re_search_internal): Likewise.
63056         (prune_impossible_nodes): Likewise.
63057         (acquire_init_state_context): Likewise.
63058         (proceed_next_node): Likewise.
63059         (set_regs): Likewise.
63060         (free_fail_stack_return): Likewise.
63061         (check_arrival_expand_ecl): Mark DFA parameter as const.
63062         (check_arrival_expand_ecl_sub): Likewise.
63063         (check_subexp_limits): Likewise.
63064         (sub_epsilon_src_nodes):  Likewise.
63065         (add_epsilon_src_nodes):  Likewise.
63066         (merge_state_array): Likewise.
63067         (update_regs): Likewise.
63068         (build_trtable): Likewise.
63069         (sift_states_backward): Mark MCTX parameter as const.
63070         (build_sifted_states): Likewise.
63071         (update_cur_sifted_state): Likewise.
63072         (sift_states_mkref): Likewise.
63073         (check_arrival_expand_ecl): Mark eclosure as const.
63074         (check_dst_limits_calc_pos_1): Likewise.
63075         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63076         pointer.
63077
63078         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63079
63080         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63081         (transit_state_sb): Likewise.
63082         (transit_state_mb): Likewise.
63083         (sift_states_iter_mb): Likewise.
63084         (check_arrival_add_next_nodes): Likewise.
63085         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63086         [_LIBC] (re_search_2_stub): Use mempcpy.
63087
63088         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63089         mbrtowc for very simple UTF-8 case.
63090
63091         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63092         a pointer-to-const.
63093         (re_acquire_state_context): Likewise.
63094         * lib/regex_internal.h: Adjust prototypes.
63095
63096         * lib/regex.c: Prevent using C++ compilers.
63097
63098         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63099         (re_acquire_state_context): Likewise.
63100
63101 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63102
63103         * modules/regex (Depends-on): Add ssize_t.
63104
63105 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63106
63107         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63108         translation table.
63109
63110 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63111
63112         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63113
63114 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63115             Bruno Haible  <bruno@clisp.org>
63116
63117         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63118         <sys/types.h> and <inttypes.h>.
63119
63120 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63121
63122         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63123         `__error_t_defined', so argp.h will not typedef the former.
63124
63125 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63126
63127         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63128         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63129         glibc names.  Even if glibc is changed to conform to POSIX, the
63130         traditional names will be available anyway, since regex depends on
63131         the extensions module.  Also, fix a longstanding typo in the
63132         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63133         reported by Emanuele Giaquinta.  Also, change sense of cached
63134         variable, so that the message makes sense.
63135
63136 2006-03-24  Simon Josefsson  <jas@extundo.com>
63137
63138         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63139         including some doc fixes.
63140         (base64_encode_alloc): Fix +1 bug on allocation failures.
63141
63142 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63143
63144         * lib/base64.c (base64_encode): Do not read past end of array with
63145         unsanitized input on systems with CHAR_BIT > 8.
63146
63147 2006-03-24  Eric Blake  <ebb9@byu.net>
63148
63149         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63150
63151 2006-03-22  Karl Berry  <karl@gnu.org>
63152
63153         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63154         * config/srclistvars.sh (COREUTILS): new var.
63155
63156 2006-03-17  Jim Meyering  <jim@meyering.net>
63157
63158         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63159         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63160
63161 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63162
63163         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63164         no longer needs it.  Instead, check that regoff_t is as least
63165         as wide as ptrdiff_t.
63166
63167         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63168         so that our regex.h stays compatible with the installed regex.
63169         This is helpful for installers who configure --without-included-regex.
63170         Problem reported by Emanuele Giaquinta.
63171
63172 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63173
63174         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63175         Typedef to long int, not to off_, as POSIX will likely change
63176         in that direction.
63177
63178 2006-03-15  Eric Blake  <ebb9@byu.net>
63179
63180         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63181
63182 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63183
63184         * lib/argp-help.c (validate_uparams): Fix typo
63185         * lib/argp-parse.c (argp_default_options): Consistently begin help
63186         messages with a lowercase letter.
63187
63188 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63189
63190         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63191         overrun buffers and shouldn't be used (much as gets shouldn't be
63192         used).
63193         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63194
63195 2006-03-08  Simon Josefsson  <jas@extundo.com>
63196
63197         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63198         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63199
63200 2006-03-08  Simon Josefsson  <jas@extundo.com>
63201
63202         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63203         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63204
63205 2006-03-08  Simon Josefsson  <jas@extundo.com>
63206
63207         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63208         signal that configure disabled the device.
63209
63210 2006-03-08  Simon Josefsson  <jas@extundo.com>
63211
63212         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63213         languages.
63214
63215 2006-03-07  Simon Josefsson  <jas@extundo.com>
63216
63217         * modules/getopt (Depends-on): Add unistd.
63218
63219         * modules/unistd: New file.
63220
63221 2006-03-07  Simon Josefsson  <jas@extundo.com>
63222
63223         * modules/gc-random: New file.
63224
63225 2006-03-07  Simon Josefsson  <jas@extundo.com>
63226
63227         * m4/unistd_h.m4: New file.
63228
63229 2006-03-07  Simon Josefsson  <jas@extundo.com>
63230
63231         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63232         test to be side-effect free by storing the result in the cache
63233         variable gl_cv_lib_readline, and moving the assignment of
63234         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63235         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63236
63237 2006-03-07  Simon Josefsson  <jas@extundo.com>
63238
63239         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63240         error on missing devices (the functions will return an error).
63241
63242         * m4/gc.m4: Move random stuff to gc-random.m4
63243
63244 2006-03-07  Simon Josefsson  <jas@extundo.com>
63245
63246         * lib/unistd_.h: New file.
63247
63248 2006-03-07  Simon Josefsson  <jas@extundo.com>
63249
63250         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63251
63252 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63253
63254         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63255         Problem reported by Juan Manuel Guerrero.
63256
63257 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63258
63259         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63260         the unistd module.
63261         * lib/getlogin_r.c: Likewise.
63262         * lib/getlogin_r.h: Likewise.
63263         * lib/glob.c: Likewise.
63264         * lib/pagealign_alloc.c: Likewise.
63265         * lib/unistd_.h: Remove; no longer needed.
63266
63267 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63268
63269         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63270         Add unistd.
63271         * modules/c-stack (Depends-on): Add unistd.
63272         * modules/getlogin_r: Likewise.
63273         * modules/glob: Likewise.
63274         * modules/pagealign_alloc: Likewise.
63275         * modules/unistd (Files): Remove lib/unistd_.h.
63276         (EXTRA_DIST): Remove.
63277         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63278         need unistd_.h.
63279         (MOSTLYCLEANFILES): Remove unistd.h-t.
63280
63281 2006-03-03  Simon Josefsson  <jas@extundo.com>
63282
63283         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63284
63285 2006-03-03  Simon Josefsson  <jas@extundo.com>
63286
63287         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63288         libidn and bison.
63289
63290 2006-03-03  Simon Josefsson  <jas@extundo.com>
63291
63292         * build-aux/maint.mk: Add indent target.
63293
63294 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63295
63296         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63297         our replacement poll.h in any case, to avoid a differing
63298         declaration from a system header.  Seen on AIX.
63299
63300 2006-03-01  Simon Josefsson  <jas@extundo.com>
63301
63302         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63303         <kasal@ucw.cz>.
63304
63305 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63306
63307         * modules/gettime (Depends-on): Add extensions module.
63308         * modules/nanosleep (Depends-on): Likewise.
63309         * modules/settime (Depends-on): Likewise.
63310
63311 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63312
63313         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63314         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63315         pedantically.
63316         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63317         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63318
63319         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63320         not "==".  Reported by Ralf Wildenhues.
63321
63322 2006-03-01  Karl Berry  <karl@gnu.org>
63323
63324         * doc/Copyright/request-*: new files, synced from gnuorg.
63325
63326 2006-03-01  Karl Berry  <karl@gnu.org>
63327
63328         * config/srclist.txt (Copyright/*): new entries.
63329
63330 2006-02-28  Simon Josefsson  <jas@extundo.com>
63331
63332         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63333
63334 2006-02-27  Simon Josefsson  <jas@extundo.com>
63335
63336         * lib/base64.h: Indent #define's.  From Jim Meyering
63337         <jim@meyering.net>.
63338
63339 2006-02-27  Jim Meyering  <jim@meyering.net>
63340
63341         Revert the change of 2006-02-24, so these files can continue
63342         to be sync'd from gettext.
63343         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63344         of `config.h'.
63345
63346 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63347
63348         * modules/intprops: New file.
63349         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63350         Add intprops.
63351         * modules/getloadavg (Files): Remove lib/intprops.h.
63352         (Depends-on): Add intprops.
63353         * modules/human: Likewise.
63354         * modules/inttostr: Likewise.
63355         * modules/openat: Likewise.
63356         * modules/sig2str: Likewise.
63357         * modules/userspec: Likewise.
63358         * modules/utimecmp: Likewise.
63359         * modules/xnanosleep: Likewise.
63360         * modules/xstrtol: Likewise.
63361
63362 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63363
63364         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63365         * modules/lock-tests (TESTS): Use $(EXEEXT).
63366         * modules/tls-tests: Likewise.
63367         * modules/argp-tests: Likewise.
63368         (check_PROGRAMS): New var, replacing...
63369         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63370
63371 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63372
63373         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63374         `config.h'.
63375
63376 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63377
63378         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63379
63380 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63381
63382         Sync from coreutils.
63383         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63384         gl_CHDIR_SAFER.
63385
63386 2006-02-22  Jim Meyering  <jim@meyering.net>
63387
63388         Sync from coreutils.
63389         * m4/chdir-safer.m4: New file.
63390
63391 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63392
63393         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63394         AT_FDCWD exceeds INT_MAX.
63395         * lib/openat.h (AT_FDCWD): Likewise.
63396
63397 2006-02-17  Eric Blake  <address@hidden>
63398
63399         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63400
63401 2006-02-16  Simon Josefsson  <jas@extundo.com>
63402
63403         * modules/getaddrinfo (Depends-on): Add sys_socket.
63404
63405 2006-02-15  Simon Josefsson  <jas@extundo.com>
63406
63407         * build-aux/maint.mk: Add dsyntax-check rule.
63408
63409 2006-02-15  Eric Blake  <ebb9@byu.net>
63410
63411         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63412         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63413         'present but cannot compile' warnings on cygwin.
63414         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63415         use ws2tcpip.h if sys/socket.h works.
63416         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63417         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63418
63419 2006-02-14  Simon Josefsson  <jas@extundo.com>
63420
63421         * modules/maintainer-makefile (Files): Rename.
63422
63423         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63424         and (the local) Makefile.cfg to maint-cfg.mk.
63425
63426         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63427         to the latter.
63428
63429         * modules/maintainer-makefile: New module.
63430
63431         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63432         severaly stripped to make it possible to build it up from scratch
63433         with reliable tests.
63434
63435         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63436         fixes to permit overriding the default actions when configure and
63437         makefile are not available.
63438
63439 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63440
63441         Sync from coreutils.
63442         * modules/lstat (Depends-on): Don't depend on xalloc.
63443         (License): Change from GPL to LGPL, since this is now simply a
63444         replacement for a libc function.
63445
63446 2006-02-14  Jim Meyering  <jim@meyering.net>
63447
63448         Sync from coreutils.
63449
63450         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63451         failure on deficient systems, and simplify gnulib lgpl dependencies.
63452         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63453         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63454
63455         * lib/xalloc-die.c: Remove unused definition of N_.
63456
63457 2006-02-14  Jim Meyering  <jim@meyering.net>
63458
63459         Sync from coreutils.
63460         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63461         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63462         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63463         double-quote uses of that variable, to accommodate the rare case in
63464         which getmntent is available in none of the libraries checked.  This
63465         happens at least on FreeBSD 5.0.
63466
63467 2006-02-13  Simon Josefsson  <jas@extundo.com>
63468
63469         * gnulib-tool (Usage): Fix --import, from
63470         karl@freefriends.org (Karl Berry).
63471
63472 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63473
63474         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63475
63476 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63477
63478         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63479         "autoupdate" on 2005-12-12.
63480
63481 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63482
63483         * modules/closeout (Depends-on): Remove atexit.
63484
63485 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63486
63487         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63488         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63489
63490 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63491
63492         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63493         __EXTENSIONS__ if this causes compilation to fail.  Problem
63494         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63495         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63496
63497 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63498
63499         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63500         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63501         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63502         All uses changed.
63503
63504 2006-01-26  Simon Josefsson  <jas@extundo.com>
63505
63506         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63507         prototype is visible on mingw32.
63508
63509         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63510         for mingw32.
63511
63512         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63513         mingw32).
63514
63515 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63516
63517         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63518         attempt to open for write; this always fails, at least on POSIX
63519         hosts.  This reinstates the 2006-01-09 change, which was
63520         inadvertently removed.
63521
63522 2006-01-26  Bruno Haible  <bruno@clisp.org>
63523
63524         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
63525         Reported by Paul Eggert.
63526
63527 2006-01-26  Bruno Haible  <bruno@clisp.org>
63528             Paul Eggert  <eggert@cs.ucla.edu>
63529
63530         * lib/stdbool_.h (_Bool)
63531         [(! (defined __cplusplus || defined __BEOS__)
63532           && !defined __GNUC__
63533           && !(defined __HP_cc || defined __xlc__
63534                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
63535                || defined __sgi))]:
63536         #define to signed char in these cases too; this simplifies
63537         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
63538         etc., separately) and makes it more conservative.
63539
63540 2006-01-25  Simon Josefsson  <jas@extundo.com>
63541
63542         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
63543         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
63544         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
63545
63546 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63547
63548         * lib/argp-namefrob.h: Bugfix. Remove stray #
63549
63550 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63551
63552         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
63553         so that we test the test.
63554         Check for yet another HP-UX cc bug involving *bool |= bool.
63555
63556 2006-01-25  Karl Berry  <karl@gnu.org>
63557
63558         * config/srclist.txt (vasnprintf.c): sync lost.
63559
63560 2006-01-25  Jim Meyering  <jim@meyering.net>
63561
63562         Sync from the stable (b5) branch of coreutils:
63563
63564         * lib/fts.c (fts_children): Don't let close() clobber errno from
63565         failed fchdir().
63566
63567         * lib/fts.c (fts_stat): When following a symlink-to-directory,
63568         don't necessarily interpret stat-fails+lstat-succeeds as indicating
63569         a dangling symlink.  That can also happen at least for ELOOP.
63570         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
63571         FYI, this bug predates the inclusion of fts.c in coreutils.
63572
63573         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
63574         in their own block, so pre-c99 compilers don't object.
63575
63576         Avoid the double-free (first in fts_read, second in fts_close) that
63577         would occur when an `active' directory is made inaccessible (e.g.,
63578         via chmod a-x) during a traversal.
63579         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63580         before returning.  Reproduce this failure by
63581         mkdir -p a/b; cd a; chmod a-x . b
63582         Reported by Stavros Passas.
63583
63584 2006-01-25  Jim Meyering  <jim@meyering.net>
63585
63586         * lib/fileblocks.c: Remove more useless parentheses.
63587         * lib/readutmp.h: Likewise.
63588
63589 2006-01-25  Bruno Haible  <bruno@clisp.org>
63590
63591         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
63592         warnings.
63593         Reported by Paul Eggert.
63594
63595 2006-01-25  Bruno Haible  <bruno@clisp.org>
63596
63597         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
63598         rid of a trap command. For Solaris sh.
63599         Reported by Mark D. Baushke <mdb@gnu.org>.
63600
63601 2006-01-24  Simon Josefsson  <jas@extundo.com>
63602
63603         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
63604         Bruno.
63605
63606 2006-01-24  Karl Berry  <karl@gnu.org>
63607
63608         * config/srclist.txt (argp-namefrob.h): sync lost.
63609
63610 2006-01-24  Jim Meyering  <jim@meyering.net>
63611
63612         * modules/openat (Files): Add lib/intprops.h.
63613         From Mark D. Baushke.
63614
63615 2006-01-24  Jim Meyering  <jim@meyering.net>
63616
63617         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
63618         Reported by Mark D. Baushke.
63619
63620 2006-01-24  Jim Meyering  <jim@meyering.net>
63621
63622         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
63623
63624 2006-01-24  Bruno Haible  <bruno@clisp.org>
63625
63626         * modules/strnlen (Maintainer): Change from glibc to all.
63627
63628 2006-01-24  Bruno Haible  <bruno@clisp.org>
63629
63630         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
63631         Patch by Paul Eggert.
63632
63633 2006-01-24  Bruno Haible  <bruno@clisp.org>
63634
63635         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
63636         already has it.
63637         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
63638         2005-11-26.
63639
63640         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
63641         'signed char' to avoid problems with the built-in _Bool type.
63642         Reported by Paul Eggert on 2005-11-26.
63643
63644 2006-01-24  Bruno Haible  <bruno@clisp.org>
63645
63646         * gnulib-tool (func_import): Avoid constructing complicated sed
63647         expressions inside backquote.
63648         Report and solution by Mark D. Baushke <mdb@gnu.org>.
63649
63650 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
63651
63652         These changes imported from libc.
63653         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
63654         test and two separate function calls.
63655         * lib/strndup.c (__strndup): Add libc_hidden_def.
63656
63657 2006-01-23  Simon Josefsson  <jas@extundo.com>
63658
63659         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
63660         Remove the test_*_SOURCES variable: automake infers it by default.
63661         * modules/tls-tests: Likewise.
63662
63663 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63664
63665         Work around porting bugs reported by Dieter in
63666         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
63667         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
63668         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
63669         Include "getopt.h" first, to check interface.
63670         (getenv): Declare only if defined HAVE_DECL_GETENV &&
63671         !HAVE_DECL_GETENV.
63672         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
63673         (__strndup): Revert to K&R-style function dfns, the glibc style.
63674         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
63675         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
63676         Include strnlen.h first, to get prototype properly.
63677         (strnlen): Renamed from __strnlen.
63678         Remove weak alias.
63679
63680 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63681
63682         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
63683
63684 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63685
63686         * config/srclist.txt: Adjust to reflect glibc reorganization.
63687         This affects only comments.
63688
63689 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63690
63691          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63692          Reported by Bruce Korb <bkorb@gnu.org>.
63693
63694 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63695
63696         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63697         to pacify gcc -Wswitch-default.
63698
63699 2006-01-22  Bruno Haible  <bruno@clisp.org>
63700
63701         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63702         temporary buffer for sprintf, take into account the precision also
63703         for 'd', 'i', 'u', 'o', 'x', 'X'.
63704
63705 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63706
63707         * modules/argp-tests: New module
63708         * tests/test-argp.c: New file
63709         * tests/test-argp-2.sh: New file
63710
63711 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63712
63713         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63714         (__argp_base_name): Removed
63715         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63716         typo.
63717         (__argp_base_name): Provide macro definition or extern declaration
63718         depending on the configuration
63719
63720 2006-01-20  Simon Josefsson  <jas@extundo.com>
63721
63722         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63723
63724 2006-01-20  Simon Josefsson  <jas@extundo.com>
63725
63726         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63727
63728 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63729
63730         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63731         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63732         Suggested by Bruno Haible.
63733
63734 2006-01-20  Karl Berry  <karl@gnu.org>
63735
63736         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63737         until changes propagate, I guess.
63738
63739 2006-01-19  Simon Josefsson  <jas@extundo.com>
63740
63741         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63742
63743 2006-01-19  Simon Josefsson  <jas@extundo.com>
63744
63745         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63746
63747 2006-01-19  Simon Josefsson  <jas@extundo.com>
63748
63749         * gnulib-tool: Set check_PROGRAMS.
63750
63751         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63752         modules/des-tests, modules/gc-arcfour-tests,
63753         modules/gc-arctwo-tests, modules/gc-des-tests,
63754         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63755         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63756         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63757         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63758         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63759         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63760         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63761         test_*_SOURCES.
63762
63763 2006-01-18  Simon Josefsson  <jas@extundo.com>
63764
63765         * modules/socklen (Depends-on): Depend on sys_socket.
63766
63767 2006-01-18  Simon Josefsson  <jas@extundo.com>
63768
63769         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63770         modules/des-tests, modules/gc-arcfour-tests,
63771         modules/gc-arctwo-tests, modules/gc-des-tests,
63772         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63773         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63774         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63775         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63776         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63777         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63778         $(EXEEXT) to automake TESTS variable, for mingw32.
63779
63780 2006-01-17  Simon Josefsson  <jas@extundo.com>
63781
63782         * modules/socklen (Include): Need sys/socket.h.
63783
63784 2006-01-17  Bruno Haible  <bruno@clisp.org>
63785
63786         * modules/ssize_t (Include): Add <sys/types.h>.
63787
63788 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63789
63790         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63791         it's not portable and it doesn't work with cross-compiles.
63792         Problem reported by Bruno Haible.  Fix missing-$ typo in
63793         'test "gl_cv_ignore_unused_libraries" ...' that prevented
63794         -zignore from being used with Sun's C compiler.
63795
63796 2006-01-12  Simon Josefsson  <jas@extundo.com>
63797
63798         * lib/base64.c: Fix warning, reported by Bruno Haible
63799         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
63800
63801 2006-01-12  Bruno Haible  <bruno@clisp.org>
63802
63803         * modules/ldd: New file.
63804         * build-aux/ldd.sh.in: New file.
63805         * MODULES.html.sh (Support for building libraries and executables): Add
63806         ldd.
63807
63808 2006-01-12  Bruno Haible  <bruno@clisp.org>
63809
63810         * m4/ldd.m4: New file.
63811
63812 2006-01-12  Bruno Haible  <bruno@clisp.org>
63813
63814         * gnulib-tool (func_import, func_create_testdir): Don't go into an
63815         endless loop while replacing $auxdir with build-aux.
63816
63817 2006-01-11  Simon Josefsson  <jas@extundo.com>
63818
63819         * lib/stdint_.h (SIZE_MAX): Add missing (.
63820
63821 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
63822
63823         Sync from coreutils.
63824         * lib/md5.c: Fix commentary typos.
63825         (alignof, UNALIGNED_P): No need for a GCC-specific version.
63826         * lib/md5.h (__attribute__): Remove; unused.
63827         * lib/sha1.c: Fix commentary to match md5 better.
63828         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
63829         so that we don't need to worry about alignment.  All uses changed.
63830         This merges the 2005-10-28 md5 change into sha1.
63831
63832 2006-01-11  Jim Meyering  <jim@meyering.net>
63833
63834         Sync from coreutils.
63835         * lib/md5.c (OP): Fix spacing.
63836
63837 2006-01-11  Bruno Haible  <bruno@clisp.org>
63838
63839         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63840         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
63841         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
63842
63843 2006-01-11  Bruno Haible  <bruno@clisp.org>
63844
63845         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63846         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
63847         the "early" section as well.
63848
63849 2006-01-11  Bruno Haible  <bruno@clisp.org>
63850
63851         Avoid "ar: no archive members specified" error on MacOS X.
63852         * gnulib-tool (func_modules_add_dummy): New function.
63853         (func_import, func_create_testdir): Invoke it.
63854
63855 2006-01-11  Bruno Haible  <bruno@clisp.org>
63856
63857         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
63858         with $auxdir in AC_CONFIG_FILES statements.
63859
63860 2006-01-11  Bruno Haible  <bruno@clisp.org>
63861
63862         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63863         Initialize also noinst_HEADERS to empty.
63864
63865 2006-01-11  Bruno Haible  <bruno@clisp.org>
63866
63867         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
63868         variables.
63869         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
63870         autoreconf.
63871
63872 2006-01-11  Bruno Haible  <bruno@clisp.org>
63873
63874         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
63875         overridable by the user.
63876         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63877
63878 2006-01-10  Simon Josefsson  <jas@extundo.com>
63879
63880         * modules/sys_socket: New file.
63881
63882 2006-01-10  Simon Josefsson  <jas@extundo.com>
63883
63884         * m4/sys_socket_h.m4: New file.
63885
63886 2006-01-10  Simon Josefsson  <jas@extundo.com>
63887
63888         * lib/socket_.h: New file.
63889
63890 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63891
63892         * modules/readutmp (Maintainer): Add myself.
63893
63894 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63895
63896         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
63897         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
63898         People who are still concerned with buggy memcmp implementations
63899         can invoke gl_FUNC_MEMCMP themselves.
63900
63901 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63902
63903         * lib/regex_internal.h (BITSET_WORD_BITS):
63904         Work around a bug in 64-bit PGC (before version 6.1-2), where the
63905         preprocessor mishandles large unsigned values as if they were signed.
63906         Problem reported by Claudio Fontana in
63907         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
63908
63909 2006-01-10  Jim Meyering  <jim@meyering.net>
63910
63911         Avoid the double-free (first in fts_read, second in fts_close) that
63912         would occur when an `active' directory is made inaccessible (e.g.,
63913         via chmod a-x) during a traversal.
63914         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63915         before returning.  Reproduce this failure by
63916         mkdir -p a/b; cd a; chmod a-x . b
63917         Reported by Stavros Passas.
63918
63919         Sync from coreutils.
63920         * lib/sha1.c: Tweak grammar in a comment.
63921
63922 2006-01-10  Jim Meyering  <jim@meyering.net>
63923
63924         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
63925         Patch by Joerg Sonnenberger.
63926
63927 2006-01-10  Bruno Haible  <bruno@clisp.org>
63928
63929         * modules/readutmp: Depend on module free.
63930         * modules/strtok_r: Depend on module restrict.
63931
63932 2006-01-10  Bruno Haible  <bruno@clisp.org>
63933
63934         * modules/gettext (configure.ac): Add an invocation of
63935         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
63936
63937 2006-01-10  Bruno Haible  <bruno@clisp.org>
63938
63939         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
63940         Reported by Werner Lemberg <wl@gnu.org>.
63941
63942 2006-01-10  Bruno Haible  <bruno@clisp.org>
63943
63944         * lib/localcharset.c: Update from GNU gettext.
63945
63946 2006-01-10  Bruno Haible  <bruno@clisp.org>
63947
63948         * lib/argp.h (__const): Remove macro. Use const instead.
63949         * lib/argp-fmtstream.h (__const): Likewise.
63950         * lib/glob_.h (__const): Remove macro.
63951         * lib/glob-libc.h: Use const instead of __const.
63952
63953 2006-01-10  Bruno Haible  <bruno@clisp.org>
63954
63955         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
63956         variable.
63957         Needed to avoid an automake error regarding the 'gettext' module.
63958
63959 2006-01-09  Simon Josefsson  <jas@extundo.com>
63960
63961         * modules/inet_ntop (Depends-on): Add restrict.
63962
63963 2006-01-09  Simon Josefsson  <jas@extundo.com>
63964
63965         * modules/gc-rijndael-tests (License): Put under LGPL.
63966
63967         * modules/gc-des-tests (License): Likewise.
63968
63969         * modules/gc-arcfour-tests (License): Likewise.
63970
63971         * modules/gc-arctwo-tests (License): Likewise.
63972
63973         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
63974
63975         * modules/gc-hmac-sha1-tests (Files): Likewise.
63976
63977         * modules/gc-hmac-md5-tests (License): Likewise.
63978
63979         * modules/gc-sha1-tests (License): Likewise.
63980
63981         * modules/gc-md5-tests (License): Likewise.
63982
63983         * modules/gc-md4-tests (License): Likewise.
63984
63985         * modules/gc-md2-tests (License): Likewise.
63986
63987         * modules/gc-tests (License): Likewise.
63988
63989         * modules/des-tests (License): Likewise.
63990
63991         * modules/md4-tests (License): Likewise.
63992
63993         * modules/md2-tests (License): Likewise.
63994
63995 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63996
63997         Sync from coreutils:
63998
63999         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64000         * modules/lib-ignore: New file.
64001         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64002         chdir-safer.m4, lchmod.m4.
64003         * modules/openat: Add mkdirat.c, openat-priv.h.
64004
64005 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64006
64007         Sync from coreutils.
64008         * m4/lib-ignore.m4: New file.
64009         * m4/lchmod.m4: New file.
64010
64011 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64012
64013         Sync from coreutils.
64014         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64015         for write access: POSIX says that must fail.
64016         * lib/fts.c (diropen): Likewise.
64017         * lib/save-cwd.c (save_cwd): Likewise.
64018         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64019         well, for minor improvements on hosts that lack O_DIRECTORY.
64020         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64021         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64022         Fall back on chown if open failed with EACCES.
64023
64024         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64025         Report an error at compile-time if only a 1-second nominal clock
64026         resolution is found.
64027
64028         * lib/lchmod.h: New file.
64029         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64030         (make_dir_parents): Use lchown rather than chown, and
64031         lchmod rather than chmod.
64032
64033         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64034         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64035         "proc" reported by n0dalus.
64036
64037         * lib/mountlist.c: Include <limits.h>.
64038         (dev_from_mount_options)
64039         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64040         New function.  It no longer assumes "dev=" has the System V meaning
64041         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64042         (read_file_system_list)
64043         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64044         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64045         dev= in that case.
64046
64047         * lib/posixtm.h (PDS_PRE_2000): New macro.
64048         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64049         allow_century.  All usages changed.  Reject dates outside the range
64050         1969-1999 if PDS_PRE_2000 is used.
64051
64052 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64053
64054         Sync from coreutils.
64055         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64056         (Time of day items): Mention the possibility of leap seconds.
64057         Problem reported by Dr. David Alan Gilbert.
64058
64059 2006-01-09  Jim Meyering  <jim@meyering.net>
64060
64061         Sync from coreutils.
64062
64063         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64064
64065         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64066
64067         * lib/modechange.c (mode_compile): Reject an invalid mode string
64068         that starts with an octal digit.  From Andreas Gruenbacher.
64069
64070         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64071         and dup to open_safer and dup_safer, respectively.
64072         (openat_permissive): Fix typo in comment.
64073
64074         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64075         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64076         (_): Remove; no longer needed.
64077         (openat): Renamed from rpl_openat; no need for rpl_openat
64078         since openat.h renames openat for us.
64079         Replace most of the body with a call to openat_permissive,
64080         to avoid duplicate code.
64081         Port to (probably hypothetical) environments were mode_t is
64082         wider than int.
64083         (openat_permissive): Require mode arg, so that we can check
64084         types better.  Put it just after flags.  Change cwd failure
64085         indicator from pointer-to-bool to pointer-to-errno-value.
64086         All callers changed.
64087         Invoke openat_save_fail and/or openat_restore_fail if
64088         cwd_errno is null, so that openat can call us.
64089         (openat_permissive, fdopendir, fstatat, unlinkat):
64090         Simplify errno handling to avoid some duplicate code,
64091         as it's OK to set errno on success.
64092         * lib/openat.h: Revamp code so that function macros depend on
64093         __OPENAT_PREFIX only, not also on AT_FDCWD.
64094         (openat_ro): Remove.  Caller changed to use openat_permissive.
64095         (openat_permissive): Now a macro, if not a function.
64096         (openat_restore_fail, openat_save_fail): Now always functions,
64097         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64098
64099         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64100         and openat.c.
64101         * lib/mkdirat.c: Include openat-priv.h.
64102         Remove definitions of macros defined therein.
64103         * lib/openat.c: Likewise.
64104
64105         * lib/mkdirat.c (mkdirat): New file and function.
64106         * lib/openat.h (mkdirat): Declare.
64107
64108         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64109
64110         * lib/openat.h (openat_permissive): Declare.
64111         (openat_ro): Define.
64112
64113         * lib/openat.c (EXPECTED_ERRNO): New macro.
64114         (openat_permissive): New function -- used in remove.c rewrite.
64115         (all functions): Set errno just before returning, only if there
64116         was an actual failure.
64117         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64118
64119         Emulate openat-family functions using Linux's procfs, if possible.
64120         Idea and some code based on Ulrich Drepper's glibc changes.
64121
64122         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64123         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64124         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64125         before falling back on save_cwd and restore_cwd.
64126         (fdopendir, fstatat, unlinkat): Likewise.
64127
64128         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64129         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64130
64131         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64132         as second argument to va_arg.  Otherwise, some versions of gcc
64133         warn that `if this code is reached, the program will abort'.
64134
64135 2006-01-09  Jim Meyering  <jim@meyering.net>
64136
64137         Sync from coreutils.
64138         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64139         Require openat-priv.h.
64140
64141 2006-01-09  Bruno Haible  <bruno@clisp.org>
64142
64143         * modules/strnlen (Include): Use strnlen.h.
64144
64145 2006-01-09  Bruno Haible  <bruno@clisp.org>
64146
64147         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64148
64149 2006-01-09  Bruno Haible  <bruno@clisp.org>
64150
64151         * lib/sysexit_.h (EX_OK): New macro.
64152         Suggested by Martin Lambers <marlam@marlam.de>.
64153
64154 2006-01-09  Bruno Haible  <bruno@clisp.org>
64155
64156         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64157         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64158
64159 2006-01-09  Bruno Haible  <bruno@clisp.org>
64160
64161         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64162         numbers.
64163
64164 2006-01-09  Bruno Haible  <bruno@clisp.org>
64165
64166         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64167         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64168         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64169         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64170
64171 2006-01-09  Bruno Haible  <bruno@clisp.org>
64172
64173         * build-aux/javacomp.sh.in: New file, moved from lib/.
64174         * modules/javacomp-script (Files): Update.
64175         (configure.ac): Add AC_CONFIG_FILES invocation.
64176         (EXTRA_DIST): Remove variable.
64177
64178         * build-aux/javaexec.sh.in: New file, moved from lib/.
64179         * modules/javaexec (Files): Update.
64180         (configure.ac): Add AC_CONFIG_FILES invocation.
64181         (EXTRA_DIST): Remove javaexec.sh.in.
64182
64183         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64184         * modules/csharpcomp-script (Files): Update.
64185         (configure.ac): Add AC_CONFIG_FILES invocation.
64186         (EXTRA_DIST): Remove variable.
64187
64188         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64189         * modules/csharpexec (Files): Update.
64190         (configure.ac): Add AC_CONFIG_FILES invocation.
64191         (EXTRA_DIST): Remove csharpexec.sh.in.
64192
64193 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64194
64195         Sync from coreutils.
64196
64197         Add POSIX ACL support
64198         * lib/acl.h (copy_acl, set_acl): Add declarations.
64199         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64200         systems other than Linux.
64201         (chmod_or_fchmod): New function: use fchmod when possible,
64202         and chmod otherwise.
64203         (file_has_acl): Add a POSIX ACL implementation, with a
64204         Linux-specific subcase.
64205         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64206         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64207         acls are unsupported.
64208         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64209         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64210         are unsupported.
64211
64212 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64213
64214         Sync from coreutils.
64215         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64216
64217 2006-01-07  Bruno Haible  <bruno@clisp.org>
64218
64219         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64220         gl_EARLY.
64221
64222 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64223
64224         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64225         Problem reported for Mingw by Mark Junker.
64226
64227 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64228
64229         * README: Gnulib normally doesn't generate a tarball.
64230
64231 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64232
64233         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64234         long int, not int, for nanosecond counts, so that people who are
64235         used to POSIX struct timespec won't be surprised.  Reported by Jim
64236         Meyering.
64237
64238 2005-12-28  Bruno Haible  <bruno@clisp.org>
64239
64240         * build-aux/config.rpath: Update from GNU gettext.
64241
64242 2005-12-16  Jim Meyering  <jim@meyering.net>
64243
64244         * modules/fprintftime: New module.
64245         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64246
64247 2005-12-16  Jim Meyering  <jim@meyering.net>
64248
64249         * m4/fprintftime.m4: New file.
64250
64251 2005-12-16  Jim Meyering  <jim@meyering.net>
64252
64253         * lib/fprintftime.c, lib/fprintftime.h: New files.
64254
64255 2005-12-15  Simon Josefsson  <jas@extundo.com>
64256
64257         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64258         new m4/socklen.m4.
64259
64260 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64261
64262         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64263         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64264
64265 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64266
64267         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64268         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64269         struct uparams is valid. Fall back to the default values if it is
64270         not.
64271
64272 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64273
64274         * modules/argp (Files): Add argp-pin.c
64275         (Depends-on): dirname
64276         (lib_SOURCES): Add argp-pin.c
64277
64278 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64279
64280         * m4/argp.m4:  Check if program_invocation_name and
64281         program_invocation_short_name are declared and define appropriate
64282         macros if they are not.
64283
64284 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64285
64286         * lib/argp-help.c (__argp_base_name): New function
64287         (__argp_short_program_name): Rewrite using __argp_base_name
64288         * lib/argp-namefrob.h: Define program_invocation_name and
64289         program_invocation_short_name if requested
64290         (__argp_base_name): Add prototype
64291         * lib/argp-parse.c (argp_def): Use gettext wrappers
64292         (argp_default_parser): Use __argp_base_name
64293         * lib/argp-pin.c: New file. Defines program_invocation_name and
64294         program_invocation_short_name on systems that lack them.
64295
64296 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64297
64298         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64299         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64300         porting problem reported by Georg Schwarz in
64301         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64302
64303 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64304
64305         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64306         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64307         porting problem reported by Georg Schwarz in
64308         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64309
64310 2005-12-05  Bruno Haible  <bruno@clisp.org>
64311
64312         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64313         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64314         Reported by Mark Junker <mjscod@gmx.de>.
64315
64316 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64317
64318         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64319         Use implementation from Albert Chin, with some
64320         comments/corrections by Stepan Kasal and myself.
64321
64322 2005-12-02  Bruno Haible  <bruno@clisp.org>
64323
64324         * gnulib-tool (func_import): Accept GPLed build tool modules when
64325         --lgpl is given.
64326         * modules/csharpcomp-script: New file.
64327         * modules/csharpcomp: Depend on it.
64328         * modules/javacomp-script: New file.
64329         * modules/javacomp: Depend on it.
64330         Suggested by Simon Josefsson.
64331
64332 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64333
64334         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64335         statement, to work around an HP-UX 10.20 compiler bug reported by
64336         Peter O'Gorman.
64337
64338 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64339
64340         * modules/savedir (Depends-on): Add openat.
64341
64342 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64343
64344         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64345         (uintmax_t) [defined uintmax_t]: Do not declare.
64346         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64347         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64348         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64349         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64350         sake of portability to weird hosts that C allows (though we don't
64351         know of any practical examples).
64352
64353         * lib/savedir.h (fdsavedir): New decl.
64354         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64355         contains most of the former guts of savedir.
64356         (savedir): Use savedirstream.
64357         Include "openat.h".
64358
64359 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64360
64361         * modules/obstack (Files): Add m4/ulonglong.m4.
64362         Problem reported by Davide Angelocola.
64363
64364 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64365
64366         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64367         coreutils no longer futzes with rounding modes.
64368
64369 2005-11-14  Jim Meyering  <jim@meyering.net>
64370
64371         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64372         replacement of mkstemp.
64373
64374 2005-11-10  Simon Josefsson  <jas@extundo.com>
64375
64376         * lib/readline.c: Remove EOL.
64377
64378 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64379
64380         * modules/gethrxtime (Depends-on): Add gettime.
64381
64382 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64383
64384         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64385         or gettimeofday; no longer needed.
64386
64387 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64388
64389         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64390         time business.
64391         (gethrxtime) [! (HAVE_NANOUPTIME
64392         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64393         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64394         our own approximation.
64395
64396 2005-11-08  Eric Blake  <ebb9@byu.net>
64397
64398         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64399
64400 2005-11-08  Eric Blake  <ebb9@byu.net>
64401
64402         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64403
64404 2005-11-04  Bruno Haible  <bruno@clisp.org>
64405
64406         * gnulib-tool: Implement --update mode.
64407
64408 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64409
64410         Fix porting problem reported by Theodoros V. Kalamatianos.
64411         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64412         Don't assume that futimes failing means we must fail.
64413
64414 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64415
64416         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64417         variables to suggest the intended function of the PATH_MAX check.
64418
64419 2005-10-30  Kean Johnston  <jkj@sco.com>
64420
64421         Trivial changes to support SCO systems.
64422         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64423         as PATH_MAX.
64424         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64425         where __ptr is null when no I/O is pending.
64426
64427 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64428
64429         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64430         leave errno alone.  Problem reported by Dmitry V. Levin.
64431
64432 2005-10-28  Simon Josefsson  <jas@extundo.com>
64433
64434         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64435         Test more.
64436
64437         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64438
64439         * modules/md2, modules/md2-tests: New files.
64440
64441 2005-10-28  Simon Josefsson  <jas@extundo.com>
64442
64443         * m4/inet_ntop.m4: More tests.
64444
64445         * m4/gc-md2.m4, md2.m4: New file.
64446
64447 2005-10-28  Simon Josefsson  <jas@extundo.com>
64448
64449         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64450         "restrict" keywords, as per POSIX.  Protect the function
64451         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64452         Don't use K&R prototypes.  Check the sprintf return values.
64453         Re-define EAFNOSUPPORT if not present.  Indent.
64454
64455         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64456         suggested by Bruno Haible <bruno@clisp.org>.
64457
64458         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64459
64460         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64461
64462         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64463         libgcrypt).
64464
64465         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64466
64467         * lib/md2.h, lib/md2.c: New files.
64468
64469 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64470
64471         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64472         errno alone.  Problem reported by Frederic Jolliton.
64473
64474 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64475
64476         * modules/verify (License): Change from GPL to LGPL.  This is a
64477         tiny module and there are apparently near-equivalents that are
64478         under the BSD license.
64479
64480 2005-10-24  Simon Josefsson  <jas@extundo.com>
64481
64482         * modules/sha1: Relicense to LGPL.
64483
64484 2005-10-24  Simon Josefsson  <jas@extundo.com>
64485
64486         * lib/md4.h: Shrink buffer size, now that we changed the type.
64487
64488 2005-10-23  Simon Josefsson  <jas@extundo.com>
64489
64490         * gnulib-tool (func_import): Fix --tests-base.
64491
64492 2005-10-22  Simon Josefsson  <jas@extundo.com>
64493
64494         * modules/arcfour (Depends-on): Need stdint.
64495
64496 2005-10-22  Simon Josefsson  <jas@extundo.com>
64497
64498         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64499         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64500
64501 2005-10-22  Simon Josefsson  <jas@extundo.com>
64502
64503         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64504         suggested by Bruno Haible <bruno@clisp.org>.
64505
64506 2005-10-22  Simon Josefsson  <jas@extundo.com>
64507
64508         * lib/crc.h: Include stddef.h, for size_t.
64509
64510 2005-10-22  Simon Josefsson  <jas@extundo.com>
64511
64512         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64513         arcfour_context struct (simplify test vector testing in GNU
64514         Shishi).
64515
64516 2005-10-21  Simon Josefsson  <jas@extundo.com>
64517
64518         * modules/des, modules/des-tests: New files.
64519
64520         * modules/gc-des, modules/gc-des-tests: New files.
64521
64522         * tests/test-des.c, tests/test-gc-des.c: New file.
64523
64524 2005-10-21  Simon Josefsson  <jas@extundo.com>
64525
64526         * modules/arctwo, modules/arctwo-tests: New files.
64527
64528         * tests/test-arctwo.c: New file.
64529
64530         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
64531
64532         * tests/test-gc-arctwo.c: New file.
64533
64534 2005-10-21  Simon Josefsson  <jas@extundo.com>
64535
64536         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
64537         Bruno Haible <bruno@clisp.org>.
64538
64539         * m4/gc-des.m4: New file.
64540
64541 2005-10-21  Simon Josefsson  <jas@extundo.com>
64542
64543         * m4/arctwo.m4: New file.
64544
64545         * m4/gc-arctwo.m4: New file.
64546
64547 2005-10-21  Simon Josefsson  <jas@extundo.com>
64548
64549         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
64550         block.
64551
64552 2005-10-21  Simon Josefsson  <jas@extundo.com>
64553
64554         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
64555         <bruno@clisp.org>.
64556
64557         * lib/hmac-sha1.c (hmac_sha1): Likewise.
64558
64559         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
64560         Bruno Haible <bruno@clisp.org>.
64561
64562         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
64563         <bruno@clisp.org>.
64564
64565 2005-10-21  Simon Josefsson  <jas@extundo.com>
64566
64567         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
64568
64569 2005-10-21  Simon Josefsson  <jas@extundo.com>
64570
64571         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
64572
64573 2005-10-21  Simon Josefsson  <jas@extundo.com>
64574
64575         * lib/des.h, lib/des.c: New files.
64576
64577         * lib/gc-gnulib.c: Support DES.c
64578
64579 2005-10-21  Simon Josefsson  <jas@extundo.com>
64580
64581         * lib/arctwo.h, lib/arctwo.c: New files.
64582
64583         * lib/gc-gnulib.c: Support ARCTWO.
64584
64585 2005-10-21  Simon Josefsson  <jas@extundo.com>
64586
64587         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
64588         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64589
64590 2005-10-21  Simon Josefsson  <jas@extundo.com>
64591
64592         * gnulib-tool (func_import, func_create_testdir): Define automake
64593         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
64594         Makefile.am snippet),
64595         suggested by Bruno Haible <bruno@clisp.org>.
64596
64597         * modules/gc (Makefile.am): Use it.
64598
64599 2005-10-21  Bruno Haible  <bruno@clisp.org>
64600
64601         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
64602         patch.
64603
64604 2005-10-19  Simon Josefsson  <jas@extundo.com>
64605
64606         * tests/test-gc-rijndael.c: New file.
64607
64608         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
64609
64610 2005-10-19  Simon Josefsson  <jas@extundo.com>
64611
64612         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
64613         interface too.
64614
64615 2005-10-19  Simon Josefsson  <jas@extundo.com>
64616
64617         * tests/test-gc-arcfour.c: New file.
64618
64619         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
64620
64621 2005-10-19  Simon Josefsson  <jas@extundo.com>
64622
64623         * modules/gc-md4, modules/gc-md4-tests: New file.
64624
64625         * tests/test-gc-md4.c: New file.
64626
64627 2005-10-19  Simon Josefsson  <jas@extundo.com>
64628
64629         * m4/gc-md4.m4: New file.
64630
64631 2005-10-19  Simon Josefsson  <jas@extundo.com>
64632
64633         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
64634         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
64635         <kasal@ucw.cz>.
64636
64637 2005-10-19  Simon Josefsson  <jas@extundo.com>
64638
64639         * m4/gc-arcfour.m4: New file.
64640
64641         * m4/gc-rijndael.m4: New file.
64642
64643 2005-10-19  Simon Josefsson  <jas@extundo.com>
64644
64645         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
64646
64647 2005-10-19  Simon Josefsson  <jas@extundo.com>
64648
64649         * lib/gc-gnulib.c: Support ARCFOUR.
64650
64651 2005-10-19  Simon Josefsson  <jas@extundo.com>
64652
64653         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
64654         support.
64655
64656         * lib/gc.h: Add ECB enum type.
64657
64658         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
64659
64660 2005-10-18  Simon Josefsson  <jas@extundo.com>
64661
64662         * tests/test-md5.c: New file.
64663
64664         * modules/md5-tests: New file.
64665
64666 2005-10-18  Simon Josefsson  <jas@extundo.com>
64667
64668         * tests/test-md4.c: New file.
64669
64670         * modules/md4, modules/md4-tests: New files.
64671
64672 2005-10-18  Simon Josefsson  <jas@extundo.com>
64673
64674         * m4/md4.m4: New file.
64675
64676 2005-10-18  Simon Josefsson  <jas@extundo.com>
64677
64678         * lib/md4.h, lib/md4.c: New files, based on md5.?.
64679
64680 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
64681
64682         * gnulib-tool (func_create_testdir): Omit the second check whether
64683         BUILT_SOURCES in nonempty.
64684
64685 2005-10-17  Simon Josefsson  <jas@extundo.com>
64686
64687         * tests/test-rijndael.c: New file.
64688
64689 2005-10-17  Simon Josefsson  <jas@extundo.com>
64690
64691         * modules/sha1: Depend on stdint instead of md5.
64692
64693         * modules/md5: Depend on stdint, remove uint32_t.
64694
64695 2005-10-17  Simon Josefsson  <jas@extundo.com>
64696
64697         * modules/gc-sha1-tests: New file.
64698
64699         * tests/test-gc-sha1.c: New file.
64700
64701 2005-10-17  Simon Josefsson  <jas@extundo.com>
64702
64703         * m4/md5.m4: Remove call to uint32_t.m4.
64704
64705 2005-10-17  Simon Josefsson  <jas@extundo.com>
64706
64707         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64708
64709         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64710         md5.h.
64711
64712         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64713
64714         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64715
64716 2005-10-17  Simon Josefsson  <jas@extundo.com>
64717
64718         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64719
64720 2005-10-17  Simon Josefsson  <jas@extundo.com>
64721
64722         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64723
64724 2005-10-17  Simon Josefsson  <jas@extundo.com>
64725
64726         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64727
64728         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64729
64730 2005-10-17  Bruno Haible  <bruno@clisp.org>
64731
64732         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64733         that it can also be used in a test.
64734
64735 2005-10-16  Bruno Haible  <bruno@clisp.org>
64736
64737         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64738         TESTS_ENVIRONMENT, so that individual tests can augment it.
64739
64740         * gnulib-tool (func_create_testdir): Use an intermediate target for
64741         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64742         macros, like $(ALLOCA_H), which cannot be passed through the command
64743         line.
64744
64745 2005-10-15  Simon Josefsson  <jas@extundo.com>
64746
64747         * modules/rijndael-tests: New file.
64748
64749         * modules/rijndael: New file.
64750
64751 2005-10-15  Simon Josefsson  <jas@extundo.com>
64752
64753         * m4/rijndael.m4: New file.
64754
64755 2005-10-15  Simon Josefsson  <jas@extundo.com>
64756
64757         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64758
64759         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64760
64761 2005-10-14  Simon Josefsson  <jas@extundo.com>
64762
64763         * tests/test-arcfour.c: New file.
64764
64765         * modules/arcfour, modules/arcfour-tests: New files.
64766
64767 2005-10-14  Simon Josefsson  <jas@extundo.com>
64768
64769         * m4/arcfour.m4: New file.
64770
64771 2005-10-14  Simon Josefsson  <jas@extundo.com>
64772
64773         * lib/arcfour.h, lib/arcfour.c: New files.
64774
64775 2005-10-14  Roland McGrath  <roland@redhat.com>
64776
64777         Import from libc.  [BZ #1331]
64778         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64779         macro argument.
64780         Reported by Matej Vela <vela@debian.org>.
64781
64782 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64783
64784         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64785         include <wchar.h>; no longer needed.
64786
64787 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64788
64789         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64790
64791 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64792         and  Ulrich Drepper  <drepper@redhat.com>
64793
64794         Import from libc.
64795         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
64796         instead of inline stream orientation test and two separate
64797         function calls.  Pay no attention to USE_IN_LIBIO.
64798
64799 2005-10-13  Simon Josefsson  <jas@extundo.com>
64800
64801         * modules/gc-hmac-md5-tests: New file.
64802
64803         * tests/test-gc-hmac-sha1.c: New file.
64804
64805         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
64806
64807         * modules/gc-hmac-md5-tests: New file.
64808
64809         * tests/test-gc-md5.c: New file.
64810
64811         * modules/gc-md5-tests: New file.
64812
64813 2005-10-13  Simon Josefsson  <jas@extundo.com>
64814
64815         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
64816         Move memory allocation outside of loop.
64817
64818 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64819
64820         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
64821         intermediate directory is in a read-only file system.  Problem
64822         reported by Eric Blake.
64823
64824 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
64825
64826         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
64827
64828 2005-10-12  Simon Josefsson  <jas@extundo.com>
64829
64830         * tests/test-hmac-sha1.c: New file.
64831
64832         * modules/hmac-sha1-tests: New file.
64833
64834         * modules/hmac-sha1: New file.
64835
64836 2005-10-12  Simon Josefsson  <jas@extundo.com>
64837
64838         * modules/gc-sha1: New file.
64839
64840 2005-10-12  Simon Josefsson  <jas@extundo.com>
64841
64842         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
64843
64844         * tests/test-gc-pbkdf2-sha1.c: New file.
64845
64846 2005-10-12  Simon Josefsson  <jas@extundo.com>
64847
64848         * modules/gc-md5, modules/gc-hmac-md5: New files.
64849
64850         * modules/gc (Files): Remove md5, memxor and hmac files.
64851
64852 2005-10-12  Simon Josefsson  <jas@extundo.com>
64853
64854         * m4/gc-pbkdf2-sha1.m4: New file.
64855
64856         * m4/gc-hmac-sha1.m4: New file.
64857
64858         * m4/gc-sha1: New file.
64859
64860         * m4/hmac-sha1.m4: New file.
64861
64862 2005-10-12  Simon Josefsson  <jas@extundo.com>
64863
64864         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
64865
64866         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
64867
64868 2005-10-12  Simon Josefsson  <jas@extundo.com>
64869
64870         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
64871         suggested by Bruno Haible <bruno@clisp.org>.
64872
64873 2005-10-12  Simon Josefsson  <jas@extundo.com>
64874
64875         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
64876
64877 2005-10-12  Simon Josefsson  <jas@extundo.com>
64878
64879         * lib/gc-pbkdf2-sha1.c: New file.
64880
64881         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
64882
64883 2005-10-12  Simon Josefsson  <jas@extundo.com>
64884
64885         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
64886
64887         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
64888
64889 2005-10-12  Simon Josefsson  <jas@extundo.com>
64890
64891         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
64892         GC_USE_HMAC_MD5, respectively.
64893
64894         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
64895         (gc_md5): Fix typo.
64896
64897         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
64898
64899         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
64900
64901         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
64902
64903 2005-10-12  Bruno Haible  <bruno@clisp.org>
64904
64905         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
64906         Reported by Stepan Kasal <kasal@ucw.cz>.
64907
64908 2005-10-11  Simon Josefsson  <jas@extundo.com>
64909
64910         * tests/test-crc.c: New file.
64911
64912         * modules/crc, modules/crc-tests: New files.
64913
64914 2005-10-11  Simon Josefsson  <jas@extundo.com>
64915
64916         * m4/crc.m4: New file.
64917
64918 2005-10-11  Simon Josefsson  <jas@extundo.com>
64919
64920         * lib/gc.h: Add gc_hash and gc_hash_buffer.
64921
64922         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
64923
64924         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
64925
64926 2005-10-11  Simon Josefsson  <jas@extundo.com>
64927
64928         * lib/crc.h, lib/crc.c: New files.
64929
64930         * lib/gc.h (gc_hash_buffer): Add doc.
64931
64932 2005-10-11  Bruno Haible  <bruno@clisp.org>
64933
64934         * modules/c-strcasestr: New file.
64935         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
64936
64937 2005-10-11  Bruno Haible  <bruno@clisp.org>
64938
64939         * modules/c-strcase: New file.
64940         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
64941
64942 2005-10-11  Bruno Haible  <bruno@clisp.org>
64943
64944         * lib/strcasecmp.c: Include limits.h.
64945         (strcasecmp): Avoid integer overflow on exotic platforms.
64946         * lib/strncasecmp.c: Include limits.h.
64947         (strncasecmp): Avoid integer overflow on exotic platforms.
64948         Reported by Paul Eggert.
64949
64950 2005-10-11  Bruno Haible  <bruno@clisp.org>
64951
64952         * lib/c-strcasestr.h: New file, from GNU gettext.
64953         * lib/c-strcasestr.c: New file, from GNU gettext.
64954
64955 2005-10-11  Bruno Haible  <bruno@clisp.org>
64956
64957         * lib/c-strcase.h: New file, from GNU gettext.
64958         * lib/c-strcasecmp.c: New file, from GNU gettext.
64959         * lib/c-strncasecmp.c: New file, from GNU gettext.
64960
64961 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64962
64963         * modules/mempcpy (License): GPL -> LGPL.
64964         * modules/strchrnul (License): Likewise.
64965         * modules/sysexits (License): Likewise.
64966
64967 2005-10-08  Simon Josefsson  <jas@extundo.com>
64968
64969         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
64970
64971 2005-10-07  Simon Josefsson  <jas@extundo.com>
64972
64973         * m4/memxor.m4: Remove gl_C_RESTRICT call.
64974
64975 2005-10-06  Simon Josefsson  <jas@extundo.com>
64976
64977         * tests/test-hmac-md5.c: New file.
64978
64979         * modules/hmac-md5-tests: New file.
64980
64981         * modules/hmac-md5: New file.
64982
64983 2005-10-06  Simon Josefsson  <jas@extundo.com>
64984
64985         * m4/hmac-md5.m4: New file.
64986
64987         * m4/memxor.m4: Require gl_C_RESTRICT.
64988
64989 2005-10-06  Simon Josefsson  <jas@extundo.com>
64990
64991         * lib/memxor.c (memxor): Avoid casts and warnings.
64992
64993 2005-10-06  Simon Josefsson  <jas@extundo.com>
64994
64995         * lib/hmac-md5.c: New file.
64996
64997         * lib/hmac.h: New file.
64998
64999 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65000
65001         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65002         promotes to int, not unsigned int, to catch the AIX 5.3
65003         compiler bug.
65004
65005 2005-10-05  Simon Josefsson  <jas@extundo.com>
65006
65007         * modules/memxor: New file.
65008
65009         * modules/iconv (Files): Move config.rpath to havelib, it is used
65010         there.
65011
65012         * modules/havelib (Files): Add config.rpath.
65013
65014 2005-10-05  Simon Josefsson  <jas@extundo.com>
65015
65016         * m4/memxor.m4: New file.
65017
65018 2005-10-05  Simon Josefsson  <jas@extundo.com>
65019
65020         * lib/memxor.c (memxor): Fix compiler error.
65021
65022         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65023         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65024
65025         * lib/memxor.h, lib/memxor.c: New files.
65026
65027         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65028         we assume all systems have it, suggested by Jim Meyering
65029         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65030         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65031         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65032         same reasons.
65033
65034 2005-10-05  Simon Josefsson  <jas@extundo.com>
65035
65036         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65037
65038 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65039
65040         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65041         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65042         needed, since the source code now assumes these .h files.
65043
65044 2005-10-05  Derek Price  <derek@ximbiot.com>
65045
65046         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65047
65048 2005-10-05  Bruno Haible  <bruno@clisp.org>
65049
65050         * modules/stdint (License): Change to LGPL.
65051
65052 2005-10-04  Simon Josefsson  <jas@extundo.com>
65053
65054         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65055         D. Baushke" <mdb@gnu.org>.
65056
65057 2005-10-04  Bruno Haible  <bruno@clisp.org>
65058
65059         * lib/verify.h (verify_true): Provide alternative definition for C++.
65060
65061 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65062
65063         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65064         (SSIZE_MAX): New macro, if not already defined.
65065         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65066         than 2 GiB.
65067
65068 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65069
65070         Sync from coreutils.
65071         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65072         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65073         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65074         ULLONG_MAX doesn't work with 2.7.2.1.
65075
65076 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65077
65078         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65079         From Ben Pfaff.
65080
65081         * modules/exclude (Depends-on): Depend on verify.
65082         * modules/strtoimax (Depends-on): Likewise.
65083         * modules/utimecmp (Depends-on): Likewise.
65084
65085 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65086
65087         * lib/exclude.c: Include verify.h.
65088         (verify): Remove.  All callers changed to use verify.h's version.
65089         * lib/strtoimax.c: Likewise.
65090         * lib/utimecmp.c: Likewis.e
65091
65092         Sync from coreutils.
65093         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65094         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65095         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65096         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65097         bother returning ENOSYS if settimeofday or stime fails; just let
65098         them return whatever errno they want to return.
65099         * lib/utimens.c: Include unistd.h, for dup2.
65100         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65101         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65102
65103 2005-10-02  Jim Meyering  <jim@meyering.net>
65104
65105         Sync from coreutils.
65106         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65107         from glibc-2.2.5 that fails for read-only files.
65108
65109 2005-10-02  Jim Meyering  <jim@meyering.net>
65110
65111         Sync from coreutils.
65112         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65113         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65114         `#if HAVE_CONFIG_H'.
65115         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65116         Remove AT_FDCWD test.
65117         Do not consume the fd unless successful.
65118         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65119         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65120         block, so that we don't even try to compile it if settimeofday is
65121         available.  This works around a compilation failure on OSF1 V5.1,
65122         due to stime requiring a `long int*' while tv_sec is `int'.
65123
65124 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65125
65126         Sync from coreutils.
65127         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65128         against `yes', rather than just testing for nonempty.
65129
65130 2005-10-01  Simon Josefsson  <jas@extundo.com>
65131
65132         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65133         and Darwin.
65134
65135         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65136         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65137         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65138         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65139         Check if struct addrinfo is declared.
65140
65141 2005-10-01  Simon Josefsson  <jas@extundo.com>
65142
65143         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65144         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65145         AI_* and EAI_* definitions.  Protect function declarations.
65146
65147 2005-10-01  Jim Meyering  <jim@meyering.net>
65148
65149         Sync from coreutils.
65150
65151         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65152         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65153         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65155         in the inet and nsl libraries.  Required on Solaris 5.7.
65156
65157 2005-10-01  Jim Meyering  <jim@meyering.net>
65158
65159         Sync from coreutils.
65160         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65161         in the inet and nsl libraries.  Required on Solaris 5.7.
65162
65163 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65164
65165         * lib/getdelim.c (getdelim): Remove unused variables.
65166
65167 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65168
65169         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65170         so that the code works even with ancient cpp.  Portability problem
65171         with GCC 2.7.2.1 reported by Thomas M.Ott.
65172
65173 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65174
65175         * modules/regex (Depends-on): Add strcase.
65176
65177         * modules/gethostname (Licence): Change from GPL to LGPL, since
65178         gethostname.c is a trivial implementation of a standard library
65179         function.
65180         * modules/poll (License): Change from GPL to LGPL, since it's
65181         derived from LGPL code.
65182
65183 2005-09-27  Jim Meyering  <jim@meyering.net>
65184
65185         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65186         HAVE_CONFIG_H.
65187
65188         * lib/intprops.h (signed_type_or_expr__): Define.
65189         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65190         for unsigned types.
65191
65192 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65193
65194         * lib/verify.h (verify_expr): Remove, replacing with:
65195         (verify_true): New macro that returns true instead of void.
65196         (verify_type__): Remove.
65197         (verify): Use verify_true rather than verify_type__.
65198
65199 2005-09-26  Bruno Haible  <bruno@clisp.org>
65200
65201         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65202         is necessary.
65203         (lib_SOURCES): Remove mbchar.c.
65204         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65205         (Files): Add m4/mbrtowc.m4.
65206         * modules/mbiter: Likewise.
65207         * modules/mbuiter: Likewise.
65208
65209 2005-09-26  Bruno Haible  <bruno@clisp.org>
65210
65211         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65212         compile mbchar.c if they are not both present.
65213         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65214         * m4/mbiter.m4 (gl_MBITER): Likewise.
65215         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65216         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65217         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65218
65219 2005-09-25  Jim Meyering  <jim@meyering.net>
65220
65221         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65222         also uses socklen_t.
65223
65224 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65225
65226         * lib/utimens.c (ENOSYS): Define if not already defined.
65227         (futimens): Support having a null PATH if the file descriptor
65228         is nonnegative.
65229
65230         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65231         Remove.
65232         (__attribute): Define to empty unless GCC 3.1 or later.
65233         This works around a core dump on OpenBSD 3.4, which has GCC
65234         2.95.3, which dumps core when given __attribute__(()).  It also
65235         simplifies other tests, since we really don't want to bother with
65236         worrying about which ancient version of GCC supported what.
65237         Original problem reported by Yoann Vandoorselaere, with part of
65238         the fix suggested by Derek Price.
65239
65240 2005-09-24  Jim Meyering  <jim@meyering.net>
65241
65242         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65243         so we can once again use a positive bitfield width of 1 -- now we
65244         don't have to explain why we were using a bitfield width of 2.
65245
65246 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65247
65248         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65249         and similarly for the other external symbols.  Problem reported
65250         by James Gallager.
65251
65252         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65253         bug reported by Jim Meyering.
65254
65255         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65256         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65257         not needed, since socklen is a prerequisite module.
65258
65259 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65260
65261         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65262         Problem reported by Eric Blake.
65263         (getaddrinfo): Initialize se so that it's not garbage.
65264         Redo internal storage allocation so that it doesn't make unportable
65265         assumptions about alignment.
65266         Fix a memory leak.
65267
65268         * lib/utimens.c (futimens): Use futimesat if available.
65269         Prefer it to futimes since it doesn't have the futimes bug.
65270
65271         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65272         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65273         Instead, declare a function that returns a pointer to an array,
65274         and use verify_type__ to declare the size of the array.
65275         Problem and germ of a solution reported by Bruno Haible.
65276         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65277         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65278
65279 2005-09-23  Jim Meyering  <jim@meyering.net>
65280
65281         Sync from coreutils.
65282         Correct build failure (socklen_t not defined) on at least
65283         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65284         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65285
65286 2005-09-23  Jim Meyering  <jim@meyering.net>
65287
65288         * modules/getaddrinfo (Depends-on): Add socklen.
65289
65290 2005-09-23  Bruno Haible  <bruno@clisp.org>
65291
65292         * tests/test-verify.c: New file.
65293
65294 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65295
65296         Sync from coreutils.
65297
65298         * modules/argmatch (Depends-on): Add verify.
65299         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65300         unistd-safer.
65301         * modules/save-cwd (Depends-on): Likewise.
65302
65303         * modules/openat (Files): Add lib/openat-die.c.
65304         (Depends-on): Remove error, exitfail.
65305         Add dirname.
65306
65307         * modules/verify: New file.
65308         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65309         with "verify" module.
65310
65311 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65312
65313         Sync from coreutils.
65314
65315         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65316         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65317         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65318         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65319         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65320         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65321         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65322         Don't bother checking for string.h, stdlib.h, unistd.h.
65323         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65324         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65325         module's job.
65326         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65327         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65328
65329         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65330         (gl_GETDATE): Use it.
65331
65332         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65333
65334 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65335
65336         Sync from coreutils.
65337
65338         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65339         stat-time.h.
65340         * lib/argmatch.h: Include verify.h
65341         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65342         (ARGMATCH_ASSERT): Remove; unused.
65343         * lib/canonicalize.c: Assume STDC_HEADERS.
65344         * lib/exclude.c: Include "strcase.h".
65345         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65346         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65347         and stdio-safer.h.
65348         (getusershell): Call fopen, not fopen_safer.
65349         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65350         Do not include unistd-safer.h.
65351         (save_cwd): Don't call fd_safer; no longer needed
65352         now that we include fcntl--.h.
65353
65354         * lib/getdate.y (relative_time): New type.
65355         (RELATIVE_TIME_0): New constant.
65356         (parser_control): Use relative_time instead of doing it ourselves.
65357         (%union): Add new relative_time rel member.
65358         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65359         Now typeless.
65360         (relunit, relunit_snumber): Now of type rel.
65361         (zone, rel, relunit, get_date): Adjust to above changes.
65362
65363         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65364         Do not include unistd-safer.h.
65365         (getloadavg): Don't call fd_safer; no longer needed
65366         now that we include fcntl--.h.
65367
65368         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65369         (make_dir_parents): Treat ENOSYS like EEXIST.
65370
65371         Improve quality of diagnostics on restore_cwd failure.
65372         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65373         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65374         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65375         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65376         each time through the loop.  Do not diagnose restore_cwd failure;
65377         that is the caller's job (and perhaps the caller does not care).
65378
65379         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65380         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65381         If the file already exists but is not a directory, don't bother
65382         to try to make its parents.
65383         Close potential file descriptor leak if we can't chdir("/") (!).
65384         Don't always return true if chdir($PWD) fails; return true only
65385         if the requested action was done successfully (except for the
65386         chdir($PWD)).
65387         Don't log final directory unless we actually made it.
65388         Refactor to avoid duplicate code to fix up permissions.
65389         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65390
65391         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65392         to make it a bit faster and (I hope) clearer.
65393         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65394         Fix bug in formats like %2N.
65395
65396         * lib/verify.h: New file.
65397
65398 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65399
65400         Sync from coreutils.
65401         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65402
65403 2005-09-22  Jim Meyering  <jim@meyering.net>
65404
65405         Sync from coreutils.
65406
65407         * m4/lstat.m4 (gl_FUNC_LSTAT):
65408         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65409         Remove obsolete comment.
65410         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65411         * m4/xstrtod.m4: Likewise.
65412
65413         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65414
65415 2005-09-22  Jim Meyering  <jim@meyering.net>
65416
65417         Sync from coreutils.
65418
65419         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65420
65421         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65422         the .tm_year member, since otherwise gcc-4.0 would now warn about
65423         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65424
65425         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65426         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65427
65428         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65429         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65430         when run in a time zone for which daylight savings time is in effect
65431         for the starting date.
65432
65433         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65434         stop us from restricting permissions of just-created absolute-named
65435         directories.
65436         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65437         to restore initial working directory.
65438         * lib/mkdir-p.c (make_dir_parents): New parameter:
65439         different_working_dir, to tell caller if/when we change the working
65440         directory and are unable to return to the initial one.
65441         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65442         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65443         `return false'.  This fixes a bug introduced on 2004-07-30.
65444
65445         * lib/openat.c (fdopendir): Be sure to close the supplied
65446         file descriptor before returning.  This makes our replacement
65447         implementation a little closer to Solaris's, where fdopendir
65448         ties the file descriptor to the returned DIR* pointer.
65449         * lib/openat.c (unlinkat): New function.
65450         * lib/openat.h (unlinkat): Add prototype.
65451         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65452         (openat_restore_fail): Rename from openat_restore_die.
65453         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65454
65455         Provide an alternative to exiting immediately upon save_cwd or
65456         restore_cwd failure.  Now, an application can arrange e.g.,
65457         to perform a longjump in that case.
65458         * lib/openat.c: Include dirname.h.
65459         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65460         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65461         and openat_restore_die rather than calling error directly.
65462         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65463
65464         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65465         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65466         define.
65467
65468         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65469         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65470                             int utc, int nanoseconds);
65471         Background:
65472         date should not have to allocate a megabyte of virtual memory to
65473         handle a format argument like +%1048575T.  When implemented with
65474         strftime, it must allocate such a buffer, use strftime to fill it
65475         in, print it, then free it.
65476         With fprintftime, it simply prints everything and exits.
65477         With no need for memory allocation, that's one fewer way to fail.
65478         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65479         optional field width, not before, so we accept %9:z, not %:9z.
65480         (my_strftime): Be sure to use L_('x') for literals.
65481
65482         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65483         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65484         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65485         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65486         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65487         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65488         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65489         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65490         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65491         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65492         * lib/xgethostname.c, lib/xreadlink.c:
65493         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65494
65495         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65496         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65497         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65498         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65499         and don't include <sys/file.h>).
65500
65501 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65502
65503         Sync from coreutils.
65504
65505         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65506         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65507         [!LDAV_DONE]: Avoid unused variable warning.
65508
65509 2005-09-21  Bruno Haible  <bruno@clisp.org>
65510
65511         * lib/unicodeio.h (unicode_to_mb): New declaration.
65512
65513 2005-09-20  Derek Price  <derek@ximbiot.com>
65514
65515         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65516         getaddrinfo.h.
65517
65518 2005-09-20  Bruno Haible  <bruno@clisp.org>
65519
65520         * gnulib-tool: Remove trailing slashes from the values specified for
65521         --source-base, --m4-base, --tests-base, --aux-dir.
65522         Suggested by Simon Josefsson <jas@extundo.com>.
65523
65524 2005-09-20  Bruno Haible  <bruno@clisp.org>
65525
65526         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
65527         func_modules_to_filelist, func_import, func_create_testdir): Make all
65528         sorting results locale-independent, so that gnulib-cache.m4 doesn't
65529         change when gnulib-tool is invoked in a different locale.
65530
65531 2005-09-19  Simon Josefsson  <jas@extundo.com>
65532
65533         * m4/socklen.m4: Fix typo.
65534
65535 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65536
65537         Use a consistent style for including <config.h>.
65538         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
65539         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
65540         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
65541         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
65542         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
65543         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
65544         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
65545         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
65546         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
65547         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
65548         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
65549         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
65550         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
65551         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
65552         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
65553         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
65554         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
65555         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
65556         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
65557         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
65558         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
65559         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
65560         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
65561         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
65562         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
65563         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
65564         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
65565         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
65566         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
65567         lib/xstrtoumax.c, lib/yesno.c:
65568         Standardize inclusion of config.h.
65569         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
65570         lib/inttostr.h:  Removed inclusion of config.h from header files.
65571         * lib/inttostr.c:  Adjusted in-tree users.
65572         * lib/timespec.h: Remove superfluous warning to include config.h.
65573         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
65574         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
65575         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
65576         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65577         config.h with HAVE_CONFIG_H.
65578
65579 2005-09-19  Jim Meyering  <jim@meyering.net>
65580
65581         * modules/pathmax (License): Change to LGPL.
65582
65583 2005-09-19  Derek Price  <derek@ximbiot.com>
65584
65585         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
65586
65587 2005-09-19  Bruno Haible  <bruno@clisp.org>
65588
65589         * gnulib-tool (import): Provide default for --tests-base.
65590
65591 2005-09-19  Bruno Haible  <bruno@clisp.org>
65592
65593         * doc/quote.texi: New file, extracted from gnulib.texi.
65594         * doc/ctime.texi: New file, extracted from gnulib.texi.
65595         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
65596         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
65597         * doc/gnulib.texi: Include them.
65598
65599 2005-09-18  Bruno Haible  <bruno@clisp.org>
65600
65601         Portability fix.
65602         * gnulib-tool (func_readlink): New function.
65603         (func_ln_if_changed): Use it.
65604
65605 2005-09-18  Bruno Haible  <bruno@clisp.org>
65606
65607         * gnulib-tool: Support --with-tests also with --import.
65608         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
65609         (func_import): Use variables $testsbase and $inctests. Emit a
65610         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
65611         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
65612         SUBDIRS += $testsdir.
65613         (func_create_testdir): Update.
65614
65615 2005-09-18  Bruno Haible  <bruno@clisp.org>
65616
65617         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
65618         instead of $dry_run.
65619         (func_cp_if_changed, func_mv_if_changed): Remove functions.
65620         (func_ln_if_changed): Don't handle dry-run here.
65621         (func_import): In dry-run mode, detect more precisely which actions
65622         would be performed, and don't use "...ing" verbs.
65623
65624 2005-09-18  Bruno Haible  <bruno@clisp.org>
65625
65626         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
65627         (func_import): Use join on two temporary files instead of three nested
65628         loops, in order to determine which files are new or old.
65629
65630 2005-09-18  Bruno Haible  <bruno@clisp.org>
65631
65632         * gnulib-tool (func_import): Comment out code that spits out the
65633         new files with --dry-run.
65634
65635 2005-09-18  Bruno Haible  <bruno@clisp.org>
65636
65637         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
65638
65639 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65640
65641         * lib/stat-time.h: New file.
65642         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
65643         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
65644         in a different way.
65645         (timespec_cmp): New function.
65646         * lib/utimecmp.c: Include stat-time.h.
65647         (SYSCALL_RESOLUTION): Depend on whether various struct stat
65648         members exist, not on the obsolescent ST_MTIM_NSEC.
65649         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
65650
65651 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65652
65653         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
65654
65655 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65656
65657         * MODULES.html.sh (File system functions): Add stat-time.
65658         * modules/stat-time: New file.
65659         * modules/timespec (Files): Remove m4/st_mtim.m4; this
65660         is now done in a different way, by the stat-time module.
65661         * modules/utimecmp (Depends-on): Add stat-time.
65662
65663 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65664
65665         * m4/st_mtim.m4: Remove.  Superseded by...
65666         * m4/stat-time.m4: New file.
65667         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
65668         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
65669
65670 2005-09-15  Derek Price  <derek@ximbiot.com>
65671
65672         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
65673
65674 2005-09-15  Derek Price  <derek@ximbiot.com>
65675
65676         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
65677         * lib/regex_internal.c: Ditto, using this...
65678         (__GNUC_PREREQ): ...new macro.
65679         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
65680         using...
65681         (__GNUC_PREREQ): ...this new macro.
65682
65683         * lib/strstr.h: Include string.h. Define strstr as a macro here.
65684
65685 2005-09-15  Derek Price  <derek@ximbiot.com>
65686             Paul Eggert  <eggert@cs.ucla.edu>
65687
65688         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
65689         changes, consolidating in...
65690         * lib/regex_internal.h: ...this file.
65691
65692 2005-09-13  Jim Meyering  <jim@meyering.net>
65693
65694         * lib/canon-host.c: Filter through gnu indent and reword comments
65695         slightly.
65696         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65697
65698 2005-09-13  Derek Price  <derek@ximbiot.com>
65699
65700         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65701         failure.
65702         Reported by Jim Meyering  <jim@meyering.net>.
65703
65704 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65705
65706         * lib/base64.c: Typo.
65707         (base64_encode): Put b64str in initialized data section.
65708
65709 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65710
65711         Merge glibc and coreutils changes into gnulib, plus a few
65712         extra fixes.
65713         * lib/md5.c: Use #error rather than a string.
65714         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65715         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65716         (__attribute__): Define to empty for non recent-GCC.
65717         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65718         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65719         Renamed from their non-__ counterparts, with new macros replacing
65720         them if not _LIBC.  Add __THROW attribute.
65721         (rol): Remove.
65722         (struct md5_ctx): Align buffer if using GCC.
65723         * lib/sha1.h (struct sha1_ctx): Likewise.
65724         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65725         The old name was backwards.
65726         (NOTSWAP): Remove; not used.
65727         (rol): New macro, moved here from md5.h.
65728         (sha1_process_block): Remove a FIXME that doesn't make sense.
65729
65730 2005-09-12  Derek Price  <derek@ximbiot.com>
65731
65732         Return usable errors from canon-host.
65733         * lib/canon-host.h: New file.
65734         * lib/canon-host.c (canon_host): Wrap...
65735         (canon_host_r): ...this new function, which now relies exclusively on
65736         getaddrinfo.
65737         (ch_strerror): New function.
65738         (last_cherror): New global.
65739         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65740         interface.
65741         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65742         void *.
65743         (freeaddrinfo): Free ai->ai_canonname when set.
65744
65745 2005-09-12  Derek Price  <derek@ximbiot.com>
65746
65747         Make canon-host require getaddrinfo.
65748         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65749         AC_LIBSOURCE canon-host.h.  Call...
65750         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65751         gl_GETADDRINFO.
65752         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65753
65754 2005-09-12  Derek Price  <derek@ximbiot.com>
65755
65756         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65757         LGPL.
65758         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65759
65760 2005-09-12  Derek Price  <derek@ximbiot.com>
65761
65762         * lib/gai_strerror.c: Include config.h when available.  Include
65763         getaddrinfo.h before other headers to test interface.
65764         Reported by Larry Jones <lawrence.jones@ugs.com>.
65765
65766 2005-09-12  Derek Price  <derek@ximbiot.com>
65767             Paul Eggert  <eggert@cs.ucla.edu>
65768
65769         * modules/glob (Files): Add glob-libc.h.
65770
65771 2005-09-12  Derek Price  <derek@ximbiot.com>
65772             Paul Eggert  <eggert@cs.ucla.edu>
65773
65774         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65775         glob_.h, glob-libc.h.
65776         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65777
65778 2005-09-12  Derek Price  <derek@ximbiot.com>
65779             Paul Eggert  <eggert@cs.ucla.edu>
65780
65781         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65782         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65783         protecting things that should be done only in gnulib contexts.
65784         * lib/glob_.h: New file, containing only the glob things needed for
65785         gnulib.
65786         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65787         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65788         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65789         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65790         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65791         and to respect the namespace rules better.
65792
65793 2005-09-08  Simon Josefsson  <jas@extundo.com>
65794
65795         * modules/socklen: New file.
65796
65797 2005-09-08  Simon Josefsson  <jas@extundo.com>
65798
65799         * m4/socklen.m4: New file.
65800
65801 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65802
65803         * modules/utimens (Files): Add m4/utimbuf.m4, since
65804         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
65805         Reported by Sergey Poznyakoff.
65806
65807 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65808
65809         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
65810         definitions, since that's the preferred style in glibc.
65811         Fix a minor spacing issue, and update copyright notice to match
65812         glibc's.
65813
65814 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65815
65816         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
65817
65818 2005-09-06  Simon Josefsson  <jas@extundo.com>
65819
65820         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
65821         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
65822
65823 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
65826         warning.
65827
65828 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65829
65830         * config/srclist.txt: Add glibc bug 1302.
65831
65832 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
65833
65834         Change bitset word type from unsigned int to unsigned long int,
65835         as this has better performance on typical 64-bit hosts.
65836         Port bitset code to hosts with unusual word sizes.
65837         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
65838         (build_collating_symbol):
65839         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
65840         argument is a bitset.  This is merely a style issue, but it makes
65841         it clearer that an entire array is expected.
65842         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
65843         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
65844         Port to the case where bitset_word is not the same as unsigned int.
65845         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65846         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
65847         Likewise.
65848         * lib/regexec.c (check_dst_limits_calc_pos_1,
65849         check_subexp_matching_top):
65850         (build_trtable, group_nodes_into_DFAstates):
65851         Likewise.
65852         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
65853         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
65854         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
65855         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
65856         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
65857         * lib/regcomp.c (optimize_subexps, lower_subexp):
65858         Work even if bitset_word has holes in its bitwise representation.
65859         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
65860         * lib/regexec.c (check_dst_limits_calc_pos_1,
65861         check_subexp_matching_top):
65862         Likewise.
65863         * lib/regex_internal.c (re_string_reconstruct):
65864         Don't assume UCHAR_MAX == 255.
65865         * lib/regex_internal.h (bitset_set_all): Likewise.
65866         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
65867         All uses changed.
65868         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
65869         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
65870         All uses changed.
65871         (BITSET_WORD_MAX): New macro.
65872         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
65873         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
65874         (bitset_empty, bitset_copy):
65875         Prefer sizeof (bitset) to multiplying it out ourselves.
65876         (bitset_not_merge): Remove; unused.
65877         (bitset_contain): Return bool, not unsigned int with one bit on.
65878         All callers changed.
65879         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
65880         alignment than re_node_set; do this by defining a new internal
65881         type struct dests_alloc and using it to allocate memory.
65882
65883 2005-09-05  Bruno Haible  <bruno@clisp.org>
65884
65885         * gnulib-tool (func_import): Fix comparison in handling of symbolic
65886         links.
65887
65888 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
65889
65890         * modules/size_max (Makefile.am): Add size_max.h
65891
65892 2005-09-04  Derek Price  <derek@ximbiot.com>
65893
65894         * gnulib-tool (func_import): Fix reversed $symbolic logic.
65895
65896 2005-09-03  Simon Josefsson  <jas@extundo.com>
65897
65898         * gnulib-tool: Fix typo.
65899
65900 2005-09-03  Simon Josefsson  <jas@extundo.com>
65901
65902         * config/srclist.txt: Add glibc bug 1293.
65903
65904 2005-09-03  Derek Price  <derek@ximbiot.com>
65905
65906         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
65907         From Larry Jones <lawrence.jones@ugs.com>.
65908
65909 2005-09-02  Simon Josefsson  <jas@extundo.com>
65910
65911         * modules/socklen: New file.
65912
65913 2005-09-02  Simon Josefsson  <jas@extundo.com>
65914
65915         * modules/havelib: New module.
65916
65917         * modules/gettext, modules/iconv, modules/lock, modules/readline:
65918         Use havelib.
65919
65920 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65921
65922         Check for arithmetic overflow when calculating sizes, to prevent
65923         some buffer-overflow issues.  These patches are conservative, in the
65924         sense that when I couldn't determine whether an overflow was possible,
65925         I inserted a run-time check.
65926         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
65927         macros.
65928         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
65929         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
65930         (re_xnrealloc, re_x2nrealloc): New inline functions.
65931         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
65932         parse_bracket_exp):
65933         (build_equiv_class, build_charclass): Check for arithmetic overflow
65934         in size expression calculations.
65935         * lib/regex_internal.c (re_string_realloc_buffers):
65936         (build_wcs_upper_buffer, re_node_set_add_intersect):
65937         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
65938         (re_dfa_add_node, register_state): Likewise.
65939         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
65940         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
65941         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
65942         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
65943
65944 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65945
65946         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65947         m4/ulonglong.m4.  Problem reported by Martin Lambers.
65948
65949 2005-09-02  Bruno Haible  <bruno@clisp.org>
65950
65951         Support for lib vs. lib64 distinction on biarch platforms.
65952         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
65953         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
65954         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
65955
65956 2005-09-02  Bruno Haible  <bruno@clisp.org>
65957
65958         * gnulib-tool (import): In the other first-use case, provide defaults
65959         as well.
65960
65961 2005-09-02  Bruno Haible  <bruno@clisp.org>
65962
65963         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
65964         patches not yet found in the latest gettext release.
65965
65966 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65967
65968         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
65969         to avoid a collision with bits/local_lim.h in glibc.
65970         All uses changed.  Problem reported by Dmitry V. Levin in
65971         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
65972
65973         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
65974         bugs in int versus size_t comparisons.
65975         (re_string_context_at): Fix bug where the code assumed that
65976         Idx is signed.
65977
65978         Use bool where appropriate.
65979         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
65980         All callers changed.
65981         (calc_eclosure_iter): Likewise, for ROOT arg.
65982         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
65983         (build_charclass_op): Likewise, for NON_MATCH arg.
65984         * lib/regex_internal.c (re_string_allocate, re_string_construct):
65985         (re_string_construct_common): Likewise, for ICASE arg.
65986         * lib/regexec.c (re_search_2_stub, re_search_stub):
65987         Likewise, for RET_LEN arg.
65988         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
65989         (set_regs): Likewise, for FL_BACKTRACK arg.
65990         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
65991         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
65992         (calc_eclosure_iter, parse_bracket_exp):
65993         Use bool for internal variables that are booleans.
65994         * lib/regexec.c (re_search_internal, check_matching,
65995         proceed_next_node):
65996         (set_regs, build_sifted_states, sift_states_bkref):
65997         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
65998         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65999         (find_collation_sequence_value):
66000         Likewise.
66001         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66002         (re_node_set_compare):
66003         Return bool, not int. All callers changed.
66004         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66005         (build_trtable, check_node_accept): Likewise.
66006         * lib/regex_internal.h: Include stdbool.h.
66007
66008         Fix bugs uncovered when converting to bool.
66009         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66010         failure instead of charging ahead blindly.
66011         * lib/regex_internal.c (register_state): Likewise.
66012         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66013         for freeing internal storage.
66014         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66015         bitset pieces used as boolean, to avoid undefined behavior
66016         on hosts that do int overflow checking.
66017
66018 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66019
66020         * config/srclist.txt: Add glibc bugs 1285-1287.
66021
66022 2005-09-01  Jim Meyering  <jim@meyering.net>
66023
66024         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66025         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66026         Require gl_STAT_MACROS, too.
66027
66028 2005-09-01  Bruno Haible  <bruno@clisp.org>
66029
66030         * gnulib-tool (import): In the first-use case, provide defaults.
66031
66032 2005-09-01  Bruno Haible  <bruno@clisp.org>
66033
66034         * gnulib-tool (func_import): Remove the .tmp files.
66035
66036 2005-09-01  Bruno Haible  <bruno@clisp.org>
66037
66038         * gnulib-tool (func_import): Fix handling of symbolic links.
66039
66040 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66041
66042         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66043         old glibc regex code mishandles strings longer than 2**31 bytes.
66044         This patch fixes this when the regex code is used in gnulib
66045         (i.e., outside glibc).
66046
66047         This patch should not affect the use of the regex code inside
66048         glibc.  No doubt this problem also needs to be handled for glibc
66049         as well, but the result will be an incompatible change to the
66050         glibc ABI, and the old ABI will have to be supported too.  That
66051         can be the the subject for another patch.
66052
66053         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66054         governing whether the rest of this patch is active.  By default,
66055         the macro is disabled and the patch has no effect.
66056         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66057         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66058         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66059         (re_match_2, re_set_registers): Use the new types.
66060         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66061         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66062         New macros.
66063         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66064         (re_string_context_at, bin_tree_t, re_dfastate_t):
66065         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66066         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66067         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66068         (re_string_char_size_at, re_string_wchar_at):
66069         (re_string_elem_size_at):
66070         Use the new types and macros to port to 64-bit hosts.
66071         Use unsigned types for internal values, so that the code
66072         mostly works even for arrays larger than SSIZE_MAX.
66073         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66074         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66075         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66076         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66077         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66078         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66079         (calc_inveclosure, parse_dup_op, build_range_exp):
66080         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66081         (fetch_number, create_token_tree, mark_opt_subexp):
66082         Likewise.
66083         * lib/regex_internal.c (re_string_construct_common,
66084         create_ci_newstate):
66085         (create_cd_newstate, re_string_allocate, re_string_construct):
66086         (re_string_realloc_buffers, build_wcs_upper_buffer):
66087         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66088         (re_string_reconstruct, re_string_peek_byte_case):
66089         (re_string_fetch_byte_case, re_string_context_at):
66090         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66091         (re_node_set_init_copy, re_node_set_add_intersect):
66092         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66093         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66094         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66095         (re_acquire_state, re_acquire_state_context, register_state):
66096         Likewise.
66097         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66098         search_cur_bkref_entry):
66099         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66100         (re_search_internal, re_search_2_stub, re_search_stub)
66101         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66102         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66103         (update_cur_sifted_state, check_dst_limits):
66104         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66105         (check_subexp_limits, sift_states_bkref, merge_state_array):
66106         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66107         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66108         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66109         (expand_bkref_cache, check_node_accept_bytes):
66110         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66111         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66112         (acquire_init_state_context, check_halt_node_context):
66113         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66114         (sift_states_backward, clean_state_log_if_needed):
66115         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66116         (find_recover_state, transit_state_sb, transit_state_mb):
66117         (transit_state_bkref, build_trtable, match_ctx_clean):
66118         Likewise.
66119         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66120         to work around an assumption that REG_MISSING is negative.
66121
66122         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66123         (seek_collating_symbol_entry) [defined _LIBC]:
66124         (lookup_collation_sequence_value) [defined _LIBC]:
66125         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66126         Use prototypes rather than old-style function definitions.
66127         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66128         (transit_state_sb) [0]:
66129         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66130
66131         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66132         rm_eo.
66133
66134         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66135         (optimize_subexps, lower_subexp):
66136         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66137         since the signed shift might overflow.  Use 1u<<31 instead.
66138         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66139         Likewise.
66140         * lib/regexec.c (check_dst_limits_calc_pos_1,
66141         check_subexp_matching_top): Likewise.
66142
66143         * lib/regcomp.c (optimize_subexps, lower_subexp):
66144         Use CHAR_BIT rather than 8, for clarity.
66145         * lib/regexec.c (check_dst_limits_calc_pos_1):
66146         (check_subexp_matching_top): Likewise.
66147         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66148         have to worry about portability issues when shifting it left.
66149         Remove no-longer-needed test for table_size > 0.
66150         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66151         in a word, as the resulting behavior is undefined.
66152         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66153         in one case, a <= should have been an <, and in another case the
66154         whole test was missing.
66155         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66156         the standard name CHAR_BIT.
66157         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66158         this is not true on one's complement and signed-magnitude hosts.
66159
66160         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66161         next_last_offset.
66162         (struct re_dfa_t): Remove unused member states_alloc.
66163         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66164
66165 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66166
66167         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66168         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66169         and large-file glibc and in 32-bit large-file Solaris.
66170
66171 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66172
66173         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66174         lengths fit in regoff_t; this isn't true if regoff_t is the same
66175         width as size_t.
66176         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66177         (= START + RANGE) instead of RANGE.  This avoids overflow
66178         problems when regoff_t is the same width as size_t.
66179         All callers changed.
66180         (re_search_2_stub): Check for overflow when adding the
66181         sizes of the two strings.
66182         (re_search_stub): Check for overflow when adding START
66183         to RANGE; if it occurs, substitute the extreme value.
66184
66185 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66186
66187         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66188
66189 2005-08-31  Jim Meyering  <jim@meyering.net>
66190
66191         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66192         a pointer-to-const.
66193         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66194         (register_state): Likewise.
66195         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66196         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66197         (group_nodes_into_DFAstates): Likewise.
66198
66199 2005-08-31  Jim Meyering  <jim@meyering.net>
66200
66201         * check-module: Add a FIXME comment.
66202
66203 2005-08-31  Eric Blake  <ebb9@byu.net>
66204
66205         * modules/unistd-safer (Files): Add unistd--.h.
66206         * modules/stdio-safer (Files): Add stdio--.h.
66207
66208 2005-08-31  Derek Price  <derek@ximbiot.com>
66209
66210         * lib/getdelim.c (getdelim): Return EOF on EOF.
66211         Reported by Larry Jones <lawrence.jones@ugs.com>.
66212
66213 2005-08-31  Bruno Haible  <bruno@clisp.org>
66214
66215         Avoid unnecessary diffs in the generated lib/Makefile.am.
66216         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66217         the generated files.
66218         (func_import): Don't set cmd.
66219
66220 2005-08-31  Bruno Haible  <bruno@clisp.org>
66221
66222         * lib/strstr.c: Include <stddef.h>, for NULL.
66223         * lib/strcasestr.c: Likewise.
66224         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66225
66226 2005-08-31  Bruno Haible  <bruno@clisp.org>
66227
66228         * gnulib-tool: New option --macro-prefix.
66229         (func_import): Use macro_prefix.
66230         (import): Handle option --macro-prefix.
66231
66232 2005-08-31  Bruno Haible  <bruno@clisp.org>
66233
66234         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66235         Also use new variables cached_lgpl, cached_libtool.
66236
66237 2005-08-31  Bruno Haible  <bruno@clisp.org>
66238
66239         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66240         always instantiating them.
66241
66242 2005-08-31  Bruno Haible  <bruno@clisp.org>
66243
66244         * gnulib-tool (func_import): Read the previous cached settings
66245         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66246         earlier added by gnulib but are now dropped. Warn when a gnulib file
66247         overwrites a non-gnulib file.
66248
66249 2005-08-31  Bruno Haible  <bruno@clisp.org>
66250
66251         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66252         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66253         projects that don't keep autogenerated files in CVS. Put into
66254         actioncmd only the specified modules, not the transitive closure.
66255
66256 2005-08-31  Bruno Haible  <bruno@clisp.org>
66257
66258         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66259         Create directories that shall be filled.
66260         (import): Don't look for gl_* macros in configure.ac. Recurse across
66261         all directories containing a gnulib-cache.m4 files, if meaningful.
66262
66263 2005-08-31  Bruno Haible  <bruno@clisp.org>
66264
66265         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66266         (import): Set seen_libtool when we see gl_LIBTOOL.
66267
66268 2005-08-31  Bruno Haible  <bruno@clisp.org>
66269
66270         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66271         declaration macro definitions from generated gnulib.m4.
66272
66273 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66274
66275         * lib/iconvme.h: Add prototype for iconv_alloc.
66276
66277 2005-08-29  Simon Josefsson  <jas@extundo.com>
66278
66279         * lib/iconvme.c: Fix errno.
66280
66281 2005-08-29  Bruno Haible  <bruno@clisp.org>
66282
66283         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66284         that it works when the directory contains spaces.
66285
66286 2005-08-29  Bruno Haible  <bruno@clisp.org>
66287
66288         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66289
66290 2005-08-29  Bruno Haible  <bruno@clisp.org>
66291
66292         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66293         Emit more advice.
66294
66295 2005-08-29  Bruno Haible  <bruno@clisp.org>
66296         and Stepan Kasal  <kasal@ucw.cz>
66297
66298         * check-module: If more parameters are given, check each of them
66299         separately; add more exceptions, as noted by Jim Meyering.
66300         (check_module): New procedure.
66301         (%exempt_header): Now contains all exceptions.
66302
66303 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66304
66305         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66306
66307 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66308
66309         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66310
66311 2005-08-28  Bruno Haible  <bruno@clisp.org>
66312
66313         * m4/gnulib-tool.m4: New file.
66314
66315 2005-08-27  Jim Meyering  <jim@meyering.net>
66316
66317         * modules/unistd-safer (Files): Add pipe-safer.c.
66318         * modules/fcntl-safer (Files): Add creat-safer.c.
66319
66320 2005-08-27  Jim Meyering  <jim@meyering.net>
66321
66322         * m4/stdlib-safer.m4: New file.  From coreutils.
66323         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66324         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66325         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66326         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66327         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66328
66329 2005-08-27  Jim Meyering  <jim@meyering.net>
66330
66331         * lib/fopen-safer.c: Merge minor changes from coreutils.
66332         * lib/dup-safer.c: Likewise.
66333         * lib/fd-safer.c: Likewise.
66334
66335         Merge from coreutils.
66336         * lib/stdio--.h: New file.
66337         * lib/stdlib--.h: New file.
66338         * lib/mkstemp-safer.c: New file.
66339
66340         GNU tar needs these.
66341         * lib/pipe-safer.c: New file.
66342         * lib/creat-safer.c: New file.
66343         * lib/fcntl--.h (creat): Define to creat_safer.
66344         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66345         * lib/unistd--.h (pipe): Define to pipe_safer.
66346         * lib/unistd-safer.h: Declare pipe_safer.
66347
66348 2005-08-26  Simon Josefsson  <jas@extundo.com>
66349
66350         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66351         Haible <bruno@clisp.org>.
66352
66353 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66354
66355         * lib/regex_internal.h: Remove all references to
66356         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66357         or better.
66358         (bitset_not, bitset_merge, bitset_not_merge):
66359         (bitset_mask, re_string_allocate, re_string_construct):
66360         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66361         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66362         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66363         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66364         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66365         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66366         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66367         (re_acquire_state_context):
66368         Remove unnecessary forward decls.
66369         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66370         Put __attribute at function definition,
66371         now that the function decl has been removed.
66372         * lib/regex_internal.c (re_string_peek_byte_case):
66373         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66374         Likewise.
66375
66376 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66377
66378         * m4/regex.m4: Add AC_PREREQ(2.50).
66379         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66380
66381 2005-08-25  Simon Josefsson  <jas@extundo.com>
66382
66383         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66384         __fsetlocking.
66385
66386 2005-08-25  Simon Josefsson  <jas@extundo.com>
66387
66388         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66389         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66390         GLIBC specific code.
66391
66392 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66393
66394         Make regex safe for g++.  This fixes one real bug (an "err"
66395         that should have been "*err").  g++ problem reported by
66396         Sam Steingold.
66397         * lib/regex_internal.h (re_calloc): New macro, consistent with
66398         re_malloc etc.  All callers of calloc changed to use re_calloc.
66399         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66400         not int.  All callers changed.
66401         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66402         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66403         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66404         (find_recover_state): Change "err" to "*err"; this fixes what
66405         appears to be a real bug.
66406         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66407         versus int.
66408
66409 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66410
66411         * modules/regex (Depends-on): Add malloc, since the code
66412         assumes that !malloc(0) means failure.
66413
66414 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66415
66416         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66417
66418         alloca modernization/simplification for regex.
66419         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66420         needs to be at the start of the file, and can be moved into
66421         regex_internal.h and simplified.
66422         * lib/regex_internal.h: Include <alloca.h>.
66423         (__libc_use_alloca) [!defined _LIBC]: New macro.
66424         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66425         now works outside glibc.
66426
66427 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66428
66429         * config/srclist.txt: Add glibc bugs 1241, 1245.
66430
66431 2005-08-25  Jim Meyering  <jim@meyering.net>
66432
66433         * lib/open-safer.c: Include <config.h>.
66434         Otherwise, we'd lose LARGEFILE support in any file using
66435         e.g. "fcntl--.h"
66436
66437 2005-08-25  Bruno Haible  <bruno@clisp.org>
66438
66439         * m4/minmax.m4: Require autoconf 2.52.
66440         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66441         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66442         alternatives of translit over the alphabet.
66443         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66444
66445 2005-08-24  Simon Josefsson  <jas@extundo.com>
66446
66447         * tests/test-getpass.c: New file.
66448
66449 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66450
66451         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66452         for GNU regex features.
66453
66454 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66455
66456         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66457         * lib/regex.h (regerror): Likewise.
66458
66459         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66460         requires this.  (The code never needed it.)
66461
66462         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66463         All uses of recently-renamed identifiers changed to use the new,
66464         POSIX-compliant names.  The code will build and run just fine
66465         without these changes, but it's better to eat our own dog food
66466         and use the standard-conforming names.
66467
66468         * lib/regex.h: Fix a multitude of POSIX name space violations.
66469         These changes have an effect only for programs that define
66470         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66471         do not change anything for programs compiled in the normal way.
66472         Also, there is no effect on the ABI.
66473
66474         (_REGEX_SOURCE): New macro.
66475         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66476         defined and _GNU_SOURCE is not; this fixes a name space violation.
66477
66478         Rename the following macros to obey POSIX requirements.
66479         The old names are still visible as macros if _REGEX_SOURCE is defined.
66480         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66481         RE_BACKSLASH_ESCAPE_IN_LISTS.
66482         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66483         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66484         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66485         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66486         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66487         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66488         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66489         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66490         (REG_INTERVALS): renamed from RE_INTERVALS.
66491         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66492         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66493         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66494         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66495         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66496         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66497         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66498         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66499         RE_UNMATCHED_RIGHT_PAREN_ORD.
66500         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66501         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66502         (REG_DEBUG): renamed from RE_DEBUG.
66503         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66504         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66505         unusual, since we can't clash with the POSIX REG_ICASE.
66506         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66507         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66508         (REG_NO_SUB): renamed from RE_NO_SUB.
66509         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66510         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66511         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66512         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66513         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66514         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66515         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66516         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66517         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66518         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66519         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
66520         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
66521         RE_SYNTAX_POSIX_MINIMAL_BASIC.
66522         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
66523         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
66524         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
66525         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
66526         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
66527         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
66528         (REG_FIXED): Renamed from REGS_FIXED.
66529         (REG_NREGS): Renamed from RE_NREGS.
66530
66531         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
66532         of other REG_* macros, since POSIX says the user is allowed to
66533         #undef these macros selectively.
66534
66535         (reg_errcode_t): Update comment stating what other tables need
66536         to be consistent.
66537
66538         Rename the following enum values to obey POSIX requirements.
66539         The old names are still visible as macros.
66540         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
66541         is not defined, since GNU is supposed to be a superset of POSIX as
66542         much as possible, and since we want reg_errcode_t to be a signed
66543         type for implementation consistency.
66544         (_REG_NOERROR): Renamed from REG_NOERROR.
66545         (_REG_NOMATCH): Renamed from REG_NOMATCH.
66546         (_REG_BADPAT): Renamed from REG_BADPAT.
66547         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
66548         (_REG_ECTYPE): Renamed from REG_ECTYPE.
66549         (_REG_EESCAPE): Renamed from REG_EESCAPE.
66550         (_REG_ESUBREG): Renamed from REG_ESUBREG.
66551         (_REG_EBRACK): Renamed from REG_EBRACK.
66552         (_REG_EPAREN): Renamed from REG_EPAREN.
66553         (_REG_EBRACE): Renamed from REG_EBRACE.
66554         (_REG_BADBR): Renamed from REG_BADBR.
66555         (_REG_ERANGE): Renamed from REG_ERANGE.
66556         (_REG_ESPACE): Renamed from REG_ESPACE.
66557         (_REG_BADRPT): Renamed from REG_BADRPT.
66558         (_REG_EEND): Renamed from REG_EEND.
66559         (_REG_ESIZE): Renamed from REG_ESIZE.
66560         (_REG_ERPAREN): Renamed from REG_ERPAREN.
66561         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
66562         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
66563         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
66564         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
66565
66566         (_REG_RE_NAME, _REG_RM_NAME): New macros.
66567         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
66568         changed.  But support the old name if the new one is not defined
66569         and if _REGEX_SOURCE.
66570
66571         Change the following member names in struct re_pattern_buffer.
66572         The old names are still supported if !_REGEX_SOURCE.
66573         The new names are always supported, regardless of _REGEX_SOURCE.
66574         (re_buffer): Renamed from buffer.
66575         (re_allocated): Renamed from allocated.
66576         (re_used): Renamed from used.
66577         (re_syntax): Renamed from syntax.
66578         (re_fastmap): Renamed from fastmap.
66579         (re_translate): Renamed from translate.
66580         (re_can_be_null): Renamed from can_be_null.
66581         (re_regs_allocated): Renamed from regs_allocated.
66582         (re_fastmap_accurate): Renamed from fastmap_accurate.
66583         (re_no_sub): Renamed from no_sub.
66584         (re_not_bol): Renamed from not_bol.
66585         (re_not_eol): Renamed from not_eol.
66586         (re_newline_anchor): Renamed from newline_anchor.
66587
66588         Change the following member names in struct re_registers.
66589         The old names are still supported if !_REGEX_SOURCE.
66590         The new names are always supported, regardless of _REGEX_SOURCE.
66591         (rm_num_regs): Renamed from num_regs.
66592         (rm_start): Renamed from start.
66593         (rm_end): Renamed from end.
66594
66595         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
66596         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
66597         Prepend __ to parameter names.
66598
66599         Undo yesterday's changes.
66600
66601 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66602
66603         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
66604         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
66605         lib/regex.c.
66606
66607 2005-08-24  Jim Meyering  <jim@meyering.net>
66608
66609         Sync from coreutils.
66610         * m4/fcntl-safer.m4: New file.
66611
66612         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
66613         and object files for this module.
66614
66615 2005-08-24  Jim Meyering  <jim@meyering.net>
66616
66617         Sync from coreutils.
66618         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
66619
66620 2005-08-24  Jim Meyering  <jim@meyering.net>
66621
66622         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
66623         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
66624
66625 2005-08-24  Jim Meyering  <jim@meyering.net>
66626
66627         * modules/fcntl-safer: New module.
66628         * modules/fts (Depends-on): Add fcntl-safer.
66629         * MODULES.html.sh (File descriptor based Input/Output):
66630         Add fcntl-safer.
66631
66632 2005-08-24  Bruno Haible  <bruno@clisp.org>
66633
66634         Support for unit test modules.
66635         * modules/README: Mention tests modules.
66636         * modules/TEMPLATE-TESTS: New file.
66637         * gnulib-tool: New options --extract-tests-module, --with-tests and
66638         --tests-base (unused for the moment).
66639         (testsbase, inctests): New variables.
66640         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
66641         (func_verify_module): Exclude TEMPLATE-TESTS.
66642         (func_verify_nontests_module, func_verify_tests_module): New functions.
66643         (func_get_dependencies): Add implicit dependency for tests modules.
66644         (func_get_tests_module): New function.
66645         (func_modules_transitive_closure): When --with-tests was specified,
66646         include the unit tests as well, unless explicitly avoided.
66647         (func_emit_lib_Makefile_am): Ignore the tests modules here.
66648         (func_emit_tests_Makefile_am): New function.
66649         (func_create_testdir): When --with-tests was specified, emit a
66650         tests/ directory.
66651         * MODULES.html.sh (Future developments): Update.
66652
66653 2005-08-24  Bruno Haible  <bruno@clisp.org>
66654
66655         * modules/tls-tests: New file.
66656         * tests/test-tls.c: New file, from GNU gettext.
66657
66658 2005-08-24  Bruno Haible  <bruno@clisp.org>
66659
66660         * modules/lock-tests: New file.
66661         * tests/test-lock.c: New file, from GNU gettext.
66662
66663 2005-08-24  Bruno Haible  <bruno@clisp.org>
66664
66665         * lib/lock.h: Add multiple inclusion guard.
66666         * lib/tls.h: Add multiple inclusion guard.
66667
66668 2005-08-24  Bruno Haible  <bruno@clisp.org>
66669
66670         * gnulib-tool: Add support for the --aux-dir option to
66671         --create-testdir, --create-megatestdir, --test, --megatest.
66672         (func_create_testdir, func_create_megatestdir): Optionally emit a
66673         AC_CONFIG_AUX_DIR directive.
66674         (create-testdir, create-megatestdir, test, megatest): Provide a
66675         default value for $auxdir.
66676
66677 2005-08-24  Bruno Haible  <bruno@clisp.org>
66678
66679         * gnulib-tool (import): Use compound statement instead of subshell
66680         where possible.
66681
66682 2005-08-24  Bruno Haible  <bruno@clisp.org>
66683
66684         * gnulib-tool (import): Change --aux-dir default to "build-aux".
66685
66686 2005-08-24  Bruno Haible  <bruno@clisp.org>
66687
66688         * gnulib-tool (func_version): Update.
66689
66690 2005-08-24  Bruno Haible  <bruno@clisp.org>
66691
66692         * gnulib-tool (func_import, func_create_testdir,
66693         func_create_megatestdir): Quote all autoconf macro arguments.
66694
66695 2005-08-24  Bruno Haible  <bruno@clisp.org>
66696
66697         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66698         option --force, because --force causes the aclocal.m4 of each
66699         subdirectory to be newer than the corresponding config.h.in.
66700
66701 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66702
66703         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66704         All contents moved to gl_REGEX.
66705         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66706         assume that it does.
66707
66708 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66709
66710         * lib/regex.h (REG_NOSYS)
66711         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66712         Define, since POSIX requires it as of 2001.
66713         (_REG_ENOSYS)
66714         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66715         New private symbol, used to keep the enum signed in all cases.
66716         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66717         Youngman in
66718         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66719
66720         * lib/regex_internal.c (re_string_skip_chars, register_state):
66721         (calc_state_hash):
66722         Remove forward decls; no longer needed now that we use prototypes.
66723         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66724         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66725         (clean_state_log_if_needed): Likewise.
66726
66727 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66728
66729         * config/srclist.txt: Add glibc bugs 1231-1233.
66730
66731 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66732
66733         Fix problems reported by Sam Steingold in
66734         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66735         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66736         assumed that reg_errcode_t is a signed type, which is not
66737         necessarily true if _XOPEN_SOURCE is not defined.
66738         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66739         since some compilers warn about it otherwise.
66740
66741 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66742
66743         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66744         (init_word_char, create_initial_state, duplicate_node_closure):
66745         (fetch_token, peek_token_bracket, build_range_exp):
66746         (build_collating_symbol): Remove forward decls; no longer needed
66747         now that we use prototypes.
66748
66749         * lib/regcomp.c:
66750         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66751         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66752         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66753         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66754         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66755         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66756         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66757         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66758         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66759         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66760         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66761         (build_charclass, build_charclass_op, fetch_number, create_tree):
66762         (create_token_tree, mark_opt_subexp, duplicate_tree):
66763         Use prototypes rather than old-style definitions.
66764
66765         * lib/regex_internal.c:
66766         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66767         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66768         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66769         (re_string_reconstruct, re_string_peek_byte_case):
66770         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66771         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66772         (re_node_set_init_copy, re_node_set_add_intersect):
66773         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66774         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66775         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66776         (re_acquire_state, re_acquire_state_context, register_state):
66777         (create_ci_newstate, create_cd_newstate, free_state):
66778         Likewise.
66779         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66780         re_search_2):
66781         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66782         (re_search_internal, prune_impossible_nodes):
66783         (acquire_init_state_context, check_matching, static):
66784         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66785         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66786         (update_regs, sift_states_backward, build_sifted_states):
66787         (clean_state_log_if_needed, merge_state_array):
66788         (update_cur_sifted_state, add_epsilon_src_nodes):
66789         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66790         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66791         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66792         (find_recover_state, check_subexp_matching_top, transit_state_mb):
66793         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
66794         (check_arrival, check_arrival_add_next_nodes):
66795         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66796         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66797         (check_node_accept_bytes, check_node_accept, extend_buffers):
66798         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
66799         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
66800         (sift_ctx_init):
66801         Likewise.
66802
66803         * lib/regex_internal.h:
66804         (re_string_allocate, re_string_construct, re_string_reconstruct):
66805         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
66806         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
66807         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
66808         (re_string_context_at, re_string_peek_byte_case):
66809         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
66810         is defined, since we now use prototypes always.
66811
66812         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
66813         C89 or better.  All uses removed.
66814
66815 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66816
66817         * config/srclist.txt: Add glibc bugs 1220-1227.
66818
66819 2005-08-20  Jim Meyering  <jim@meyering.net>
66820
66821         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
66822         of unused local, dfa.
66823
66824 2005-08-20  Bruno Haible  <bruno@clisp.org>
66825
66826         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
66827
66828 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66829
66830         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
66831         (re_node_set_insert_last, re_dfa_add_node):
66832         Rename local variables to avoid GCC shadowing warnings.
66833
66834 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66835
66836         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
66837         [defined lint]: Suppress bogus uninitialized-variable warnings.
66838
66839         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
66840         and let the caller return REG_ESPACE if out of space.  This
66841         removes an uninitialied-variable warning with GCC 4.0.1, and also
66842         avoids taking the address of a local variable.  All callers
66843         changed.
66844
66845 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66846
66847         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
66848         $LIBCSRC/posix/regexec.c.
66849         Add glibc bug 1217 for regcomp.c.
66850
66851 2005-08-19  Jim Meyering  <jim@meyering.net>
66852
66853         * lib/regexec.c (proceed_next_node): Redo local variables to
66854         avoid GCC shadowing warnings.
66855
66856 2005-08-18  Bruno Haible  <bruno@clisp.org>
66857
66858         * lib/strstr.c (strstr): Fix return value in multibyte case.
66859         * lib/strcasestr.c (strcasestr): Likewise.
66860
66861 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66862
66863         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
66864
66865 2005-08-17  Jim Meyering  <jim@meyering.net>
66866
66867         Make the %s format (seconds since the epoch) work for a negative
66868         number and when used with a zero-padded field width, e.g. %015s.
66869
66870         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
66871         label so that it precedes the code to set `digits'.  Otherwise,
66872         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
66873         print `00-22'.  Now, it prints `-0022', as it should.
66874
66875 2005-08-17  Bruno Haible  <bruno@clisp.org>
66876
66877         * modules/strstr (Files): Add m4/mbrtowc.m4.
66878         (Depends-on): Add mbuiter.
66879
66880 2005-08-17  Bruno Haible  <bruno@clisp.org>
66881
66882         * modules/strcasestr: New file.
66883         * MODULES.html.sh (String handling, based on ANSI C 89): Add
66884         strcasestr.
66885
66886 2005-08-17  Bruno Haible  <bruno@clisp.org>
66887
66888         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
66889
66890 2005-08-17  Bruno Haible  <bruno@clisp.org>
66891
66892         * modules/mbuiter: New file.
66893         * MODULES.html.sh (Extended multibyte and wide character utilities):
66894         Add mbuiter.
66895
66896 2005-08-17  Bruno Haible  <bruno@clisp.org>
66897
66898         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
66899         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
66900
66901 2005-08-17  Bruno Haible  <bruno@clisp.org>
66902
66903         * m4/strcasestr.m4: New file.
66904
66905 2005-08-17  Bruno Haible  <bruno@clisp.org>
66906
66907         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
66908         * lib/strstr.c: Completely rewritten, with multibyte locale support.
66909
66910 2005-08-17  Bruno Haible  <bruno@clisp.org>
66911
66912         * lib/strcasestr.h: New file.
66913         * lib/strcasestr.c: New file.
66914
66915 2005-08-17  Bruno Haible  <bruno@clisp.org>
66916
66917         * lib/strcasecmp.c: Use mbuiter.h.
66918
66919 2005-08-17  Bruno Haible  <bruno@clisp.org>
66920
66921         * lib/mbuiter.h: New file.
66922
66923 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66924
66925         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
66926         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
66927         and gl_GETOPT are both invoked via different paths (as happens
66928         with GNU tar CVS because it uses both argp and getopt), the former
66929         wins.
66930
66931 2005-08-16  Bruno Haible  <bruno@clisp.org>
66932
66933         * modules/tls: New file.
66934         * MODULES.html.sh (Multithreading): Add tls.
66935
66936 2005-08-16  Bruno Haible  <bruno@clisp.org>
66937
66938         * modules/strnlen1: New file.
66939         * MODULES.html.sh (String handling): Add strnlen1.
66940
66941 2005-08-16  Bruno Haible  <bruno@clisp.org>
66942
66943         * modules/strcase (Files): Add m4/mbrtowc.m4.
66944         (Depends-on): Add strnlen1, mbchar.
66945
66946 2005-08-16  Bruno Haible  <bruno@clisp.org>
66947
66948         * modules/mbiter: New file.
66949         * MODULES.html.sh (Extended multibyte and wide character utilities):
66950         Add mbiter.
66951
66952 2005-08-16  Bruno Haible  <bruno@clisp.org>
66953
66954         * modules/mbfile: New file.
66955         * MODULES.html.sh (Extended multibyte and wide character utilities):
66956         Add mbfile.
66957
66958 2005-08-16  Bruno Haible  <bruno@clisp.org>
66959
66960         * modules/mbchar: New file.
66961         * MODULES.html.sh (Extended multibyte and wide character utilities):
66962         New section.
66963
66964 2005-08-16  Bruno Haible  <bruno@clisp.org>
66965
66966         * m4/tls.m4: New file, from GNU gettext.
66967
66968 2005-08-16  Bruno Haible  <bruno@clisp.org>
66969
66970         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
66971         always.
66972         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
66973
66974 2005-08-16  Bruno Haible  <bruno@clisp.org>
66975
66976         * m4/mbiter.m4: New file.
66977
66978 2005-08-16  Bruno Haible  <bruno@clisp.org>
66979
66980         * m4/mbfile.m4: New file.
66981
66982 2005-08-16  Bruno Haible  <bruno@clisp.org>
66983
66984         * m4/mbchar.m4: New file.
66985
66986 2005-08-16  Bruno Haible  <bruno@clisp.org>
66987
66988         * lib/tls.h: New file, from GNU gettext.
66989         * lib/tls.c: New file, from GNU gettext.
66990
66991 2005-08-16  Bruno Haible  <bruno@clisp.org>
66992
66993         * lib/strnlen1.h: New file.
66994         * lib/strnlen1.c: New file.
66995
66996 2005-08-16  Bruno Haible  <bruno@clisp.org>
66997
66998         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
66999         (mbi_init): Update.
67000         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67001         NUL byte, not after it.
67002
67003 2005-08-16  Bruno Haible  <bruno@clisp.org>
67004
67005         * lib/strcase.h (strcasecmp): Add note in comments.
67006         * lib/strncasecmp.c: Use code from strcasecmp.c.
67007         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67008         (strcasecmp): Work correctly in multibyte locales.
67009
67010 2005-08-16  Bruno Haible  <bruno@clisp.org>
67011
67012         * lib/mbiter.h: New file.
67013
67014 2005-08-16  Bruno Haible  <bruno@clisp.org>
67015
67016         * lib/mbfile.h: New file.
67017
67018 2005-08-16  Bruno Haible  <bruno@clisp.org>
67019
67020         * lib/mbchar.h: New file.
67021         * lib/mbchar.c: New file.
67022
67023 2005-08-16  Bruno Haible  <bruno@clisp.org>
67024
67025         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67026         the valid ones. Makes the comparison operations transitive:
67027         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67028         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67029
67030 2005-08-15  Simon Josefsson  <jas@extundo.com>
67031
67032         * modules/ssize_t (License): Change to 'unlimited'.
67033
67034         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67035
67036 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67037
67038         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67039         Add comments for each pending glibc patch.
67040
67041 2005-08-15  Bruno Haible  <bruno@clisp.org>
67042
67043         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67044         __cplusplus is defined.
67045
67046 2005-08-14  Jim Meyering  <jim@meyering.net>
67047
67048         Sync from coreutils.
67049
67050         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67051         Use the hash-table-based cycle-detection code not just when
67052         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67053         Reported by James Youngman in
67054         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67055         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67056         FTS_TIGHT_CYCLE_CHECK.
67057         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67058         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67059         once again.
67060         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67061         * lib/fts.c (fd_safer): Remove decl.
67062         Include fcntl--.h rather than unistd-safer.h
67063         (fts_safe_changedir): Don't call fd_safer; no longer needed
67064         now that we include fcntl--.h.
67065
67066 2005-08-12  Simon Josefsson  <jas@extundo.com>
67067
67068         * modules/getndelim2: Use ssize_t module.
67069         * modules/getnline: Likewise.
67070         * modules/safe-read: Likewise.
67071         * modules/xreadlink: Likewise.
67072
67073         * modules/ssize_t: New file.
67074
67075 2005-08-12  Simon Josefsson  <jas@extundo.com>
67076
67077         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67078
67079 2005-08-12  Simon Josefsson  <jas@extundo.com>
67080
67081         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67082         ssize_t.
67083
67084 2005-08-12  Simon Josefsson  <jas@extundo.com>
67085
67086         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67087         readline, getdelim and check_version.
67088         (Support for systems lacking ISO C 99: Sizes of integer types):
67089         Add size_max.
67090
67091 2005-08-12  Bruno Haible  <bruno@clisp.org>
67092
67093         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67094
67095 2005-08-11  Simon Josefsson  <jas@extundo.com>
67096
67097         * modules/readline: New file.
67098
67099         * modules/strnlen (Files): Add strnlen.h.
67100
67101 2005-08-11  Simon Josefsson  <jas@extundo.com>
67102
67103         * m4/readline.m4: New file.
67104
67105 2005-08-11  Simon Josefsson  <jas@extundo.com>
67106
67107         * lib/readline.h, readline.c: New file.
67108
67109 2005-08-11  Simon Josefsson  <jas@extundo.com>
67110
67111         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67112         gl_AVOID.
67113
67114 2005-08-11  Bruno Haible  <bruno@clisp.org>
67115
67116         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67117
67118 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67119
67120         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67121
67122 2005-08-10  Simon Josefsson  <jas@extundo.com>
67123
67124         * tests/test-iconvme.c: New file.
67125
67126 2005-08-10  Simon Josefsson  <jas@extundo.com>
67127
67128         * m4/strnlen.m4: New file.
67129
67130         * m4/strndup.m4: Don't check for strnlen declaration, done in
67131         strnlen.m4.
67132
67133 2005-08-10  Simon Josefsson  <jas@extundo.com>
67134
67135         * lib/strndup.c: Use strnlen.h.
67136
67137         * lib/strnlen.h: New file.
67138
67139 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67140
67141         * README: Typos.
67142
67143 2005-08-02  Simon Josefsson  <jas@extundo.com>
67144
67145         * modules/readline: New file.
67146
67147 2005-08-02  Simon Josefsson  <jas@extundo.com>
67148
67149         * modules/getdelim: New file.
67150
67151         * modules/getline: Rewrite, don't use getndelim2.
67152
67153 2005-08-02  Simon Josefsson  <jas@extundo.com>
67154
67155         * m4/getline.m4: Separate out getdelim stuff into separate module.
67156
67157         * m4/getdelim.m4: New file.
67158
67159 2005-08-02  Simon Josefsson  <jas@extundo.com>
67160
67161         * lib/getline.h, getline.c: Rewrite.
67162
67163         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67164
67165 2005-07-31  Bruno Haible  <bruno@clisp.org>
67166
67167         * lib/lock.h (gl_lock_initializer): New macro.
67168         (gl_lock_define_initialized): Use it.
67169         (gl_rwlock_initializer): New macro.
67170         (gl_rwlock_define_initialized): Use it.
67171         (gl_recursive_lock_initializer): New macro.
67172         (gl_recursive_lock_define_initialized): Use it.
67173
67174 2005-07-30  Karl Berry  <karl@gnu.org>
67175
67176         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67177         Report from Ben Pfaff, regarding getopt.
67178
67179 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67180
67181         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67182         normal way.
67183         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67184         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67185         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67186         (gl_GETOPT): Use the new macros.  Most of the implementation
67187         is moved to the new macros.  This is for programs like Emacs
67188         that don't want all the functionality of gl_GETOPT.
67189
67190 2005-07-26  Bruno Haible  <bruno@clisp.org>
67191
67192         * m4/lock.m4: Update from GNU gettext.
67193
67194 2005-07-26  Bruno Haible  <bruno@clisp.org>
67195
67196         * lib/lock.h: Update from GNU gettext.
67197         * lib/lock.c: Update from GNU gettext.
67198
67199 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67200
67201         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67202         obsolescent AC_TRY_RUN.  Include the default includes files, for
67203         'exit'.
67204
67205 2005-07-24  Bruno Haible  <bruno@clisp.org>
67206
67207         * modules/visibility: New file.
67208         * MODULES.html.sh (Misc): Add visibility.
67209
67210 2005-07-24  Bruno Haible  <bruno@clisp.org>
67211
67212         * m4/visibility.m4: New file.
67213
67214 2005-07-24  Bruno Haible  <bruno@clisp.org>
67215
67216         * doc/visibility.texi: New file.
67217
67218 2005-07-22  Bruno Haible  <bruno@clisp.org>
67219
67220         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67221         $(ALLOCA_H), redundant through BUILT_SOURCES.
67222         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67223         redundant through BUILT_SOURCES.
67224         * modules/byteswap (Makefile.am): Remove explicit dependency on
67225         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67226         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67227         $(FNMATCH_H), redundant through BUILT_SOURCES.
67228         * modules/getopt (Makefile.am): Remove explicit dependency on
67229         $(GETOPT_H), redundant through BUILT_SOURCES.
67230         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67231         redundant through BUILT_SOURCES.
67232         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67233         redundant through BUILT_SOURCES.
67234         * modules/stdbool (Makefile.am): Remove explicit dependency on
67235         $(STDBOOL_H), redundant through BUILT_SOURCES.
67236         * modules/stdint (Makefile.am): Remove explicit dependency on
67237         $(STDINT_H), redundant through BUILT_SOURCES.
67238         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67239         Remove explicit dependency on $(SYSEXITS_H).
67240         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67241
67242 2005-07-18  Simon Josefsson  <jas@extundo.com>
67243
67244         * lib/check-version.c (check_version): Accept identical versions too.
67245
67246 2005-07-18  Bruno Haible  <bruno@clisp.org>
67247
67248         * modules/lock: New file.
67249         * MODULES.html.sh (Multithreading): New section.
67250
67251 2005-07-18  Bruno Haible  <bruno@clisp.org>
67252
67253         * m4/lock.m4: New file, from GNU gettext.
67254
67255 2005-07-18  Bruno Haible  <bruno@clisp.org>
67256
67257         * lib/lock.h: New file, from GNU gettext.
67258         * lib/lock.c: New file, from GNU gettext.
67259
67260 2005-07-18  Bruno Haible  <bruno@clisp.org>
67261
67262         * lib/lock.h (gl_once_t): New type.
67263         (gl_once_define, gl_once): New macros.
67264         * lib/lock.c (fresh_once): New variable.
67265         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67266         functions.
67267
67268 2005-07-16  Simon Josefsson  <jas@extundo.com>
67269
67270         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67271         workaround, suggested by Bruno.
67272
67273 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67274
67275         * modules/xalloc (Depends-on): Add xalloc-die.
67276         * modules/xvasprintf (Depends-on): Add xalloc-die.
67277
67278 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67279
67280         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67281         with a minor change.
67282
67283 2005-07-15  Bruno Haible  <bruno@clisp.org>
67284
67285         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67286         When using lib/poll.c, define poll as rpl_poll.
67287
67288 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67289
67290         * modules/argp (Depends-on): Remove unlocked-io.
67291
67292 2005-07-14  Derek Price  <derek@ximbiot.com>
67293
67294         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67295         for glob symlink bug.
67296
67297 2005-07-14  Bruno Haible  <bruno@clisp.org>
67298
67299         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67300         Instead, test for *_unlocked function declarations directly.
67301
67302 2005-07-11  Simon Josefsson  <jas@extundo.com>
67303
67304         * modules/size_max: New file.
67305
67306         * modules/xsize: Depend on size_max module for size_max.m4.
67307
67308 2005-07-11  Simon Josefsson  <jas@extundo.com>
67309
67310         * lib/size_max.h: New file.
67311
67312 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67313
67314         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67315         copyright symbol and the year.
67316         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67317         (version_etc_va): Use parameterized copyright notice.
67318         Reword to conform to the current GNU coding standards.
67319
67320 2005-07-11  Karl Berry  <karl@gnu.org>
67321
67322         * doc/gnulib.texi (Quoting): new node.
67323         (Initial import): more info, from Patrice.
67324
67325 2005-07-11  Bruno Haible  <bruno@clisp.org>
67326
67327         * gnulib-tool (func_usage): Document option --avoid.
67328         (Command line options): Handle --avoid.
67329         (func_acceptable): New function.
67330         (func_modules_transitive_closure): Use it.
67331
67332 2005-07-11  Bruno Haible  <bruno@clisp.org>
67333
67334         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67335         Reported by Jim Meyering.
67336
67337 2005-07-10  Bruno Haible  <bruno@clisp.org>
67338
67339         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67340         Needed when size_t is smaller than 'unsigned int'.
67341         Reported by Paul Eggert.
67342
67343 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67344
67345         * modules/argp (Depends-on): Add unlocked-io
67346
67347 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67348
67349         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67350         block of defines.
67351
67352 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67353
67354         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67355         fix now.
67356
67357 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67358         and Paul Eggert  <eggert@cs.ucla.edu>
67359
67360         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67361         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67362
67363 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67364
67365         * modules/regex (Files): Add lib/regex_internal.c,
67366         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67367         (Depends-on): Add extensions.
67368         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67369
67370 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67371
67372         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67373         pathconf.
67374         * m4/same.m4 (gl_SAME): Likewise.
67375         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67376
67377         * m4/regex.m4: Adjust to new libc regex implementation.
67378         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67379         all the .c and .h parts of (the new) regex.
67380         Quote the m4 stuff better.
67381         Check for RE_ICASE bug of old gnulib.
67382         Check for REG_STARTEND of recent libc.
67383         Rename local variables from jm_* to gl_*.
67384         Quote operand of "test -f".
67385         Say "recent enough" version of libc, not "version 2".
67386         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67387         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67388         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67389         Remove check for btowc, isascii.
67390         Require AM_LANGINFO_CODESET.
67391
67392 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67393
67394         * lib/regex.c, regex.h: Sync from libc.
67395         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67396         * lib/regexec.c:
67397         New files, synced from libc, except that regex_internal.h
67398         currently has a small porting fix.
67399
67400 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67401
67402         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67403         regex_internal.c, regexec.c.
67404         Add regex_internal.h too, but as a comment, since the libc version
67405         is currently broken in gnulib mode.
67406
67407 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67408
67409         Support programs like Emacs that use gnulib but not gettext.
67410         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67411         * modules/gettext-h: New file.
67412         * modules/gettext (Files): Remove lib/gettext.h.
67413         (Depends-on): Add gettext-h.
67414         (Makefile.am): Remove lib_SOURCES.
67415         * modules/argmatch, modules/c-stack, modules/closeout:
67416         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67417         * modules/execute, modules/file-type, modules/getaddrinfo:
67418         * modules/getopt, modules/human, modules/javacomp:
67419         * modules/javaexec, modules/mkdir-p, modules/obstack:
67420         * modules/openat, modules/pagealign_alloc, modules/pipe:
67421         * modules/quotearg, modules/regex, modules/rpmatch:
67422         * modules/unicodeio, modules/userspec, modules/version-etc:
67423         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67424         * modules/xsetenv:
67425         Depend on gettext-h, not gettext.
67426
67427 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67428
67429         * gnulib-tool (func_import): Add support for 'public domain' license.
67430         * modules/alloca, modules/atexit, modules/memmove:
67431         Now public domain, not GPL.
67432         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67433         * modules/realloc, modules/strerror, modules/strtod:
67434         Now LGPL, not GPL.
67435
67436 2005-07-05  Bruno Haible  <bruno@clisp.org>
67437
67438         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67439         autoconf CVS. Needed for mingw.
67440
67441 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67442
67443         Remove the dependency of the strftime module on the tzset module.
67444         * modules/strftime (Depends-on): Remove dependency on tzset.
67445
67446 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67447
67448         Remove the dependency of the strftime module on the tzset module.
67449         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67450         gl_FUNC_TZSET_CLOBBER.
67451
67452 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67453
67454         Remove the dependency of the strftime module on the tzset module.
67455         * lib/strftime.c (my_strftime)
67456         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67457         Copy the input structure, to work around some of the bug with
67458         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67459         Solaris releases, you should also use the tzset module, but we won't
67460         require it as a dependency any more since we don't want LGPLed code
67461         to depend on GPLed code.
67462
67463 2005-07-02  Jim Meyering  <jim@meyering.net>
67464
67465         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67466         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67467         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67468         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67469
67470 2005-07-02  Jim Meyering  <jim@meyering.net>
67471
67472         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67473
67474 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67475
67476         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67477         declares only 'struct timespec;' (!).
67478
67479 2005-07-01  Jim Meyering  <jim@meyering.net>
67480
67481         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67482         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67483         * lib/save-cwd.c, tempname.c:
67484         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67485         and don't include <sys/file.h>).
67486
67487 2005-06-29  Jim Meyering  <jim@meyering.net>
67488
67489         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67490         type name.  Use the variable name instead.
67491         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67492         Likewise.
67493
67494 2005-06-28  Simon Josefsson  <jas@extundo.com>
67495
67496         * modules/check-version (Files): Add check-version.m4.
67497
67498 2005-06-28  Simon Josefsson  <jas@extundo.com>
67499
67500         * m4/check-version.m4: New file, suggested by Jim Meyering
67501         <jim@meyering.net>.
67502
67503 2005-06-28  Simon Josefsson  <jas@extundo.com>
67504
67505         * lib/check-version.h, lib/check-version.c: New files.
67506
67507 2005-06-28  Simon Josefsson  <jas@extundo.com>
67508
67509         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67510         collision with global variable.  Better indentation.  Don't
67511         increment buffer pointer beyond buffer end.  Based on comments
67512         from Paul Eggert <eggert@cs.ucla.edu>.
67513
67514         * lib/base64.h: Indent.
67515
67516 2005-06-28  Simon Josefsson  <jas@extundo.com>
67517
67518         * doc/gnulib.texi (Library version handling): New section.
67519
67520 2005-06-28  Jim Meyering  <jim@meyering.net>
67521
67522         * check-module (find_included_lib_files): Hard-code another
67523         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
67524         but modules/fts-lgpl (correctly) does not list those files.
67525
67526         * modules/canonicalize (Files): Add lib/pathmax.h.
67527
67528 2005-06-25  Simon Josefsson  <jas@extundo.com>
67529
67530         * modules/check-version: New file.
67531
67532 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
67533
67534         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
67535         initializer of struct addrinfo, as an indication that we don't
67536         care how many members the structure has.
67537
67538 2005-06-24  Derek Price  <derek@ximbiot.com>
67539         and Bruno Haible  <bruno@clisp.org>
67540
67541         Remove stat module & update lstat.
67542         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
67543         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67544         * m4/stat.m4: Remove this file.
67545
67546 2005-06-24  Derek Price  <derek@ximbiot.com>
67547         and Bruno Haible  <bruno@clisp.org>
67548
67549         Remove stat module & update lstat.
67550         * lib/stat.c: Remove this file...
67551         (slash_aware_lstat): ...moving this content and its support...
67552         * lib/lstat.c (rpl_lstat): ...into here.
67553         * lib/lstat.h: New file.
67554
67555 2005-06-24  Derek Price  <derek@ximbiot.com>
67556         and Bruno Haible  <bruno@clisp.org>
67557
67558         Remove stat module & update lstat.
67559         * config/srclist.txt (libc sources): Remove stat.
67560
67561 2005-06-24  Derek Price  <derek@ximbiot.com>
67562         and Bruno Haible  <bruno@clisp.org>
67563
67564         Remove stat module & update lstat.
67565         * MODULES.html.sh (stat): Remove.
67566         * MODULES.html: Regenerated.
67567         * modules/lstat (Description): Correct function name.
67568         (Files): Add "lstat.h".
67569         (Depends-on): Remove stat, add xalloc, stat-macros.
67570         * modules/stat: Remove this file.
67571         (Include): Add "lstat.h", remove <sys/stat.h>.
67572
67573 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67574
67575         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
67576         (ranged_convert): Don't save conversion in a temporary struct.
67577         This causes a warning with GCC 4.0.0, and anyway in the typical
67578         case it's not worth the extra 100 bytes or so of code.
67579         (ranged_convert, __mktime_internal): When calling a function via a
67580         pointer P, use P () rather than (*P) (), as we now assume C89 or
67581         better.
67582
67583 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67584
67585         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
67586         "who -r" failed to give output.  Problem reported by Tim Waugh.
67587
67588         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
67589         (xcalloc): Use it to avoid needless tests.
67590         Problem reported by Jim Meyering.
67591
67592 2005-06-20  Derek Price  <derek@ximbiot.com>
67593
67594         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
67595         unnecessary for Autoconfs > 2.59c.
67596
67597 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67598
67599         * lib/argp.h (__option_is_short): Check upper limit of
67600         __key. Isprint() requires its argument to have the value
67601         of an unsigned char or EOF.
67602
67603 2005-06-16  Jim Meyering  <jim@meyering.net>
67604
67605         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
67606         when either N or S is zero.
67607
67608 2005-06-16  Derek Price  <derek@ximbiot.com>
67609
67610         * m4/bison.m4: Declare YACC & YFLAGS precious.
67611
67612 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
67613
67614         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
67615         multibyte string or pattern, fall back on unibyte matching.
67616         Problem reported by James Youngman.
67617
67618 2005-06-08  Bruno Haible  <bruno@clisp.org>
67619
67620         * modules/csharpcomp: New file.
67621         * MODULES.html.sh (C#): Add csharpcomp.
67622
67623 2005-06-08  Bruno Haible  <bruno@clisp.org>
67624
67625         * m4/csharpcomp.m4: New file, from GNU gettext.
67626
67627 2005-06-08  Bruno Haible  <bruno@clisp.org>
67628
67629         * lib/csharpcomp.h: New file, from GNU gettext.
67630         * lib/csharpcomp.c: New file, from GNU gettext.
67631         * lib/csharpcomp.sh.in: New file, from GNU gettext.
67632
67633 2005-06-08  Bruno Haible  <bruno@clisp.org>
67634
67635         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
67636         warning on mingw.
67637
67638 2005-06-07  Derek Price  <derek@ximbiot.com>
67639
67640         Sync from CVS.
67641         * lib/glob_.h: Indent nested #ifdef.
67642
67643 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         Sync from coreutils.
67646         Use "file name" when talking about file names, instead of "filename"
67647         or "path", as per the GNU coding standards.
67648         * lib/mkdir-p.c: Renamed from makepath.c.
67649         (make_dir_parents): Renamed from make_path.  All callers changed.
67650         * lib/mkdir-p.h: Likewise.  All includers changed.
67651         * lib/filenamecat.c: Renamed from path-concat.c.
67652         (file_name_concat): Renamed from path_concat.  All callers changed.
67653         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
67654         * lib/filenamecat.h: Likewise.  All includers changed.
67655         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
67656         in comments or local variable names.
67657         * lib/basename.c: Likewise.
67658         * lib/canonicalize.c, canonicalize.h: Likewise.
67659         * lib/dirname.c, dirname.h: Likewise.
67660         * lib/euidaccess.c: Likewise.
67661         * lib/exclude.c: Likewise
67662         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
67663         * lib/fsusage.c, fsuage.h: Likewise.
67664         * lib/fts.c, fts_.h: Likewise.
67665         * lib/getcwd.c: Likewise.
67666         * lib/getloadavg.c: Likewise.
67667         * lib/mkstemp.c: Likewise.
67668         * lib/mountlist.c, mountlist.h: Likewise.
67669         * lib/openat.c, openat.h: Likewise.
67670         * lib/readlink-stub.c: Likewise.
67671         * lib/readutmp.c, readutmp.h: Likewise.
67672         * lib/rename.c: Likewise.
67673         * lib/rmdir.c: Likewise.
67674         * lib/same.c: Likewise.
67675         * lib/savedir.c: Likewise.
67676         * lib/stripslash.c: Likewise.
67677         * lib/tempname.c: Likewise.
67678         * lib/xreadlink.c: Likewise.
67679         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
67680         All uses changed.
67681         * lib/exclude.h: Likewise.
67682
67683         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
67684         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67685         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
67686         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67687         * lib/pathmax.h: Include <limits.h> unconditionally, since other
67688         files have been getting away with it for years (MORE/BSD 4.3
67689         is extinct now).
67690         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67691         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67692
67693         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67694         Define to 256, not 255, as per modern POSIX.
67695
67696 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67697
67698         Sync from coreutils.
67699         Use "file name" when talking about file names, instead of "filename"
67700         or "path", as per the GNU coding standards.
67701         * MODULES.html.sh: mkdir-p renamed from makepath.
67702         filenamecat renamed from path-concat.
67703         * modules/filenamecat: Renamed from modules/path-concat.
67704         (Files): filenamecat.h and filenamecat.c renamed from
67705         path-concat.h and path-concat.c.
67706         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67707         (Include): filenamecat.h, not path-concat.h.
67708         * modules/mkdir-p: Renamed from modules/makepath.
67709         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67710         makepath.c.
67711         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67712         (Include): mkdir-p.h, not makepath.h.
67713
67714 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67715
67716         Sync from coreutils.
67717         * m4/mkdir-p.m4: Renamed from makepath.m4.
67718         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67719         Rename files from makepath.c to mkdir-p.c, and from
67720         makepath.h to mkdir-p.h.
67721         * m4/filenamecat.m4: Renamed from path-concat.m4.
67722         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67723         Rename files from path-concat.c to filenamecat.c,
67724         and from path-concat.h to filenamecat.h.
67725         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67726         "file name" in local variables or comments.
67727         * m4/rename.m4: Likewise.
67728
67729 2005-06-01  Bruno Haible  <bruno@clisp.org>
67730
67731         * modules/csharpexec: New file.
67732         * MODULES.html.sh (C#): New section.
67733
67734 2005-06-01  Bruno Haible  <bruno@clisp.org>
67735
67736         * m4/csharp.m4: New file, from GNU gettext.
67737         * m4/csharpexec.m4: New file, from GNU gettext.
67738
67739 2005-06-01  Bruno Haible  <bruno@clisp.org>
67740
67741         * lib/csharpexec.h: New file, from GNU gettext.
67742         * lib/csharpexec.c: New file, from GNU gettext.
67743         * lib/csharpexec.sh.in: New file, from GNU gettext.
67744
67745 2005-05-31  Derek Price  <derek@ximbiot.com>
67746             Paul Eggert  <eggert@cs.ucla.edu>
67747
67748         Sync from cvs.
67749         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67750
67751 2005-05-31  Derek Price  <derek@ximbiot.com>
67752             Paul Eggert  <eggert@cs.ucla.edu>
67753
67754         Sync from cvs.
67755         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67756
67757 2005-05-29  Derek Price  <derek@ximbiot.com>
67758
67759         * config/srclist.txt (glob_.h, glob.c): Add these files.
67760
67761 2005-05-29  Derek Price  <derek@ximbiot.com>
67762
67763         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67764         * modules/glob: New file.
67765         * modules/getlogin_r: Add link to POSIX spec in description.
67766
67767 2005-05-29  Derek Price  <derek@ximbiot.com>
67768             Paul Eggert  <eggert@cs.ucla.edu>
67769
67770         * m4/glob.m4: New file.
67771
67772 2005-05-29  Derek Price  <derek@ximbiot.com>
67773             Paul Eggert  <eggert@cs.ucla.edu>
67774
67775         * lib/glob_.h, lib/glob.c: New files.
67776
67777 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67778
67779         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67780         * modules/fts-lgpl (Depends-on): Remove gettext.
67781
67782 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67783
67784         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67785         and don't require gt_INTTYPES_PRI.
67786
67787 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67788
67789         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67790
67791         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67792         the configuration hassle isn't worth it.
67793         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
67794         (LONGEST_MODIFIER, PRIuMAX): Remove.
67795
67796 2005-05-27  Bruno Haible  <bruno@clisp.org>
67797
67798         * lib/getlogin_r.h: Remove second include of <stddef.h>.
67799
67800 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
67801
67802         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
67803         _POSIX_PTHREAD_SEMANTICS for Solaris.
67804
67805 2005-05-25  Derek Price  <derek@ximbiot.com>
67806
67807         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
67808
67809 2005-05-25  Derek Price  <derek@ximbiot.com>
67810             Paul Eggert  <eggert@cs.ucla.edu>
67811
67812         * modules/getlogin_r, m4/getlogin_r.m4: New files.
67813         * lib/getlogin_r.c, getlogin_r.h: New files.
67814
67815 2005-05-25  Bruno Haible  <bruno@clisp.org>
67816             Derek Price  <derek@ximbiot.com>
67817
67818         * lib/getlogin_r.h: Simplify API documentation.
67819
67820 2005-05-23  Derek Price  <derek@ximbiot.com>
67821
67822         * modules/minmax (Files): Add m4/minmax.m4.
67823         (configure.ac): Add gl_MINMAX.
67824
67825 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67826
67827         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
67828         so that unistd-safer.h (GPL'ed code) need not be included.
67829
67830 2005-05-22  Bruno Haible  <bruno@clisp.org>
67831
67832         * m4/minmax.m4: New file.
67833         Based on a patch by Derek Price <derek@ximbiot.com>.
67834
67835 2005-05-22  Bruno Haible  <bruno@clisp.org>
67836
67837         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
67838         (INT64_MIN): Fix definition.
67839         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
67840
67841         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
67842         NEED_SIGNED_INT_TYPES.
67843
67844         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
67845         HAVE_SYSTEM_INTTYPES.
67846
67847 2005-05-22  Bruno Haible  <bruno@clisp.org>
67848
67849         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
67850         Also include <sys/param.h> if it defines MIN, MAX.
67851         Based on a patch by Derek Price <derek@ximbiot.com>.
67852
67853 2005-05-21  Jim Meyering  <jim@meyering.net>
67854
67855         * modules/fts (Files): Add m4/inttypes-pri.m4.
67856         (Depends-on): Add lstat and remove gettext.  Alphabetize.
67857
67858 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67859
67860         New fts module.
67861         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
67862         (setup_dir, free_dir): New functions.
67863         (enter_dir, leave_dir): Define trivial
67864         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
67865         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
67866         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
67867         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
67868         Move to fts-cycle.c.
67869         (fts_open): Use setup_dir.
67870         (fts_close): Use free_dir.
67871         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
67872         This adds a label and some gotos, but the alternatives were messier.
67873         Check for memory allocation failure when entering a dir.
67874         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
67875         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
67876         (FTS): New member fts_cycle, that is a union that contains the
67877         old active_dir_ht and cycle_state.  All uses changed to mention
67878         fts_cycle.ht and fts_cycle.state.
67879         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
67880         fts.c, with the following changes:
67881         (setup_dir, free_dir): New functions.
67882         (enter_dir): Now returns bool.  Return true if successful, false
67883         if memory exhausted.  All callers changed.
67884         Do not bother partly cleaning up on
67885         memory allocation failure; that is free_dir's job.
67886         However, free ad if hash_insert fails, to avoid memory leak.
67887         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
67888         fts->fts_options to see which union member to use.
67889
67890 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67891
67892         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
67893         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
67894
67895 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67896
67897         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
67898
67899 2005-05-20  Jim Meyering  <jim@meyering.net>
67900
67901         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
67902         Now a macro, to pacify GCC.
67903
67904 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67905
67906         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
67907         of -1.
67908
67909 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67910
67911         * lib/chown.c (rpl_chown): Return -1 on failure.
67912
67913 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67914
67915         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
67916         Don't check for stddef.h.
67917         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
67918         don't use its results.
67919         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
67920         since we include them unconditionally.  Don't require
67921         AM_STDBOOL_H, since stdbool is a prerequisite.
67922         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
67923         since we assume C89 or better.
67924         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
67925         as we don't use their results.
67926         Don't check for fchdir, memmove, memset, strrchr, as we use
67927         them unconditionally.
67928         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
67929         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
67930
67931 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67932
67933         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
67934         Include <stddef.h> unconditionally, since we assume C89 now.
67935         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
67936         * lib/fts.c: Include fts_.h first, to check interface.
67937         Do not include intprops.h; no longer needed.
67938         Include cycle-check.h and hash.h, since fts_.h no longer does.
67939         Remove unnecessary casts of closedir to void.
67940         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
67941         decide whether to decrement nlinks.
67942         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
67943         (FTS): Use struct hash_table * instead of Hash_table, so that
67944         we no longer need to include hash.h here.
67945
67946 2005-05-18  Jim Meyering  <jim@meyering.net>
67947
67948         * modules/dirfd (License): Change to LGPL.  Most of the code
67949         is already in the public domain.
67950
67951 2005-05-18  Jim Meyering  <jim@meyering.net>
67952
67953         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
67954         Reported by Yoann Vandoorselaere.
67955
67956 2005-05-17  Jim Meyering  <jim@meyering.net>
67957
67958         * m4/fts.m4: New file, from coreutils.
67959
67960 2005-05-17  Jim Meyering  <jim@meyering.net>
67961
67962         * lib/fts.c, lib/fts_.h: New files, from coreutils.
67963
67964 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67965
67966         Sync from coreutils.
67967         * m4/unlinkdir.m4: New file.
67968
67969 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67970
67971         Sync from coreutils.
67972         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
67973         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
67974         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
67975         White space changes only.
67976         * lib/makepath.c (make_path): Port to hosts where leading "//" is
67977         special.
67978         * lib/yesno.c: Include getline.h, not ctype.h.
67979         (yesno): Don't remove leading white space; POSIX doesn't allow it.
67980         Use getline to remove arbitrary restriction on response length.
67981
67982 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67983
67984         * config/srclist-update: Spell out "Street" in FSF postal
67985         mail address; this is the style the FSF seems to prefer.
67986
67987         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
67988         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
67989         this updates FSF postal mail address.
67990
67991         Sync from coreutils.
67992         * modules/unlinkdir: New file.
67993         * modules/yesno (Depends-on): Add getline.
67994         * MODULES.html.sh (File system functions): Add unlinkdir.
67995
67996 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67997
67998         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
67999         lib/strsep.h:
68000         Change the initial comment to refer to GPL, not LGPL.
68001         gnulib-tool will change it to LGPL as needed.
68002
68003         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68004         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68005         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68006         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68007         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68008         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68009         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68010         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68011         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68012         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68013         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68014         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68015         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68016         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68017         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68018         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68019         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68020         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68021         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68022         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68023         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68024         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68025         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68026         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68027         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68028         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68029         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68030         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68031         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68032         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68033         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68034         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68035         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68036         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68037         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68038         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68039         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68040         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68041         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68042         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68043         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68044         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68045         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68046         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68047         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68048         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68049         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68050         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68051         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68052         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68053         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68054         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68055         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68056         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68057         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68058         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68059         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68060         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68061         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68062         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68063         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68064         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68065         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68066         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68067         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68068         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68069         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68070         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68071         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68072         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68073         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68074         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68075         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68076         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68077         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68078         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68079         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68080         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68081         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68082         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68083         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68084         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68085         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68086         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68087         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68088         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68089         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68090         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68091         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68092         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68093         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68094         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68095         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68096         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68097         lib/yesno.c, lib/yesno.h:
68098         Update FSF postal mail address.
68099
68100 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68101
68102         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68103         tests/test-memmem.c, tests/test-stpncpy.c:
68104         Update FSF postal mail address.
68105
68106 2005-05-13  Bruno Haible  <bruno@clisp.org>
68107
68108         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68109         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68110         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68111         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68112         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68113         Add support for 64-bit integers in the MSVC compiler.
68114
68115 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68116
68117         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68118
68119 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68120
68121         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68122
68123 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68124
68125         * doc/getdate.texi (General date syntax): Don't say that date
68126         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68127         Problem reported by Nic Ferrier.
68128
68129 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68130
68131         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68132         specified in ai_socktype. Fix invalid ai_protocol
68133         check. ai_protocol is usually set to 0 or depending on
68134         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68135         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68136         ai_socktype / ai_protocol in the returned addrinfo structure.
68137
68138 2005-05-10  Simon Josefsson  <jas@extundo.com>
68139
68140         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68141         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68142
68143 2005-05-10  Karl Berry  <karl@gnu.org>
68144
68145         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68146         (from http://www.gnu.org/licenses).
68147         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68148         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68149         fdl.texi suffices.
68150
68151 2005-05-10  Karl Berry  <karl@gnu.org>
68152
68153         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68154         (COPYING.DOC): remove.
68155
68156         * config/srclist-update: new FSF address.
68157
68158 2005-05-10  Derek Price  <derek@ximbiot.com>
68159
68160         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68161         possible.
68162
68163 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68164             Bruno Haible  <bruno@clisp.org>
68165
68166         * modules/inet_ntop: New file.
68167         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68168         inet_ntop.
68169
68170 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68171             Bruno Haible  <bruno@clisp.org>
68172
68173         * m4/inet_ntop.m4: New file.
68174
68175 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68176             Bruno Haible  <bruno@clisp.org>
68177
68178         * lib/inet_ntop.h: New file.
68179         * lib/inet_ntop.c: New file, from glibc with modifications.
68180
68181 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68182
68183         * modules/time_r (License): Change to LGPL.
68184         * modules/extensions (License): Change to LGPL.  Actually,
68185         the license is more permissive than that, but currently gnulib-tool
68186         doesn't know how to handle more-permissive licenses.
68187
68188         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68189         Problem reported by Dave Love.
68190
68191 2005-05-08  Jim Meyering  <jim@meyering.net>
68192
68193         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68194         blank.
68195
68196 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68197
68198         * modules/argmatch (Depends-on): Add stdbool.
68199         * modules/backupfile (Depends-on): Likewise.
68200         * modules/chdir-long (Depends-on): Likewise.
68201         * modules/closeout (Depends-on): Likewise.
68202         * modules/cycle-check (Depends-on): Likewise.
68203         * modules/dirname (Depends-on): Likewise.
68204         * modules/fnmatch (Depends-on): Likewise.
68205         * modules/fsusage (Depends-on): Likewise.
68206         * modules/fwriteerror (Depends-on): Likewise.
68207         * modules/getcwd (Depends-on): Likewise.
68208         * modules/getloadavg (Depends-on): Likewise.
68209         * modules/hard-locale (Depends-on): Likewise.
68210         * modules/makepath (Depends-on): Likewise.
68211         * modules/mountlist (Depends-on): Likewise.
68212         * modules/nanosleep (Depends-on): Likewise.
68213         * modules/posixtm (Depends-on): Likewise.
68214         * modules/quotearg (Depends-on): Likewise.
68215         * modules/readtokens (Depends-on): Likewise.
68216         * modules/readtokens0 (Depends-on): Likewise.
68217         * modules/readutmp (Depends-on): Likewise.
68218         * modules/save-cwd (Depends-on): Likewise.
68219         * modules/strftime (Depends-on): Likewise.
68220         * modules/userspec (Depends-on): Likewise.
68221         * modules/utimecmp (Depends-on): Likewise.
68222         * modules/xgetcwd (Depends-on): Likewise.
68223         * modules/xnanosleep (Depends-on): Likewise.
68224         * modules/xstrtod (Depends-on): Likewise.
68225         * modules/yesno (Depends-on): Likewise.
68226
68227 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68228
68229         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68230         needless checks.
68231
68232 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68233
68234         Merge from coreutils.  Among other things,
68235         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68236         * lib/fd-safer.c: New file.
68237         * lib/fcntl-safer.h, open-safer.c: Remove.
68238         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68239         * lib/dup-safer.c: Include unistd-safer.h first.
68240         Don't include errno.h.
68241         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68242         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68243         * lib/file-type.c: Rely on file-type.h change.
68244         * lib/getloadavg.c: Include unistd-safer.h.
68245         (getloadavg): Use safer open.
68246         * lib/getusershell.c: Include "stdio-safer.h".
68247         (getusershell): Use safer fopen.
68248         * lib/long-options.c (long_options): Use NULL rather than 0.
68249         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68250         'free'.
68251         * lib/modechange.c: Likewise.
68252         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68253         (MODE_DONE): New constant.
68254         (struct mode_change): Remove 'next' member.
68255         (make_node_op_equals): New function; like the old one of the
68256         same name, except it allocates an array.
68257         (mode_compile, mode_create_from_ref): Use it.
68258         (mode_compile): Allocate result as an array, not a linked list.
68259         Parse octal string ourself, so that we catch mistakes like "+0".
68260         (mode_adjust): Arg is an array, not a linked list.
68261         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68262         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68263         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68264         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68265         Remove.  This is now stat-macros.h's job.
68266         (talloc): Remove.  All callers replaced by xalloc, so that
68267         our invokers don't have to worry about reporting memory failures.
68268         (make_node_op_equals): Remove.
68269         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68270         New constants.
68271         (struct mode_change): Moved here from modechange.h.
68272         (mode_append_entry): Remove.
68273         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68274         apps to have incorrect behavior.  Use simpler algorithm for head
68275         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68276         Detect more invalid usages rather than having somewhat-random behavior.
68277         Don't insert an "a=" action, as that leads to incorrect behavior.
68278         (mode_compile, mode_create_from_ref): Return NULL on error instead
68279         of an enum, since now there's only one way to have an error.  All
68280         callers changed.
68281         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68282         at the correct time.  Simplify calculation of "+u" and its ilk.
68283         Don't mishandle "+X".
68284         (mode_free): Remove "register" and localize decls.
68285         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68286         (struct mode_change): Move to modechange.c; callers don't
68287         need to see this stuff.
68288         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68289         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68290         (mode_change, mode_adjust): Reflect the new signatures noted above.
68291         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68292         that might redefine system include files.
68293         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68294         (my_usleep): Use NULL rather than (void *) 0.
68295         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68296         Use siginterrupt to specify that system calls should be interrupted.
68297         (rpl_nanosleep): Move initialization of suspended closer to call of
68298         my_usleep.
68299         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68300         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68301         (desirable_utmp_entry): New function.
68302         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68303         using x2nrealloc, to simplify logic.
68304         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68305         size calculation.  Do not assume utmp file is a regular file.
68306         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68307         (READ_UTMP_CHECK_PIDS): New constant.
68308         * lib/save-cwd.c: Include unistd-safer.h.
68309         (save_cwd): Use fd_safer.
68310         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68311         [!_LIBC] Include "stat-macros.h" instead.
68312         * lib/unistd-safer.h (fd_safer): New decl.
68313
68314 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68315
68316         * modules/getloadavg (Depends-on): Add unistd-safer.
68317         * modules/getusershell (Depends-on): Add stdio-safer.
68318         * modules/lstat (Depends-on): Remove xalloc.
68319         * modules/mkstemp (Depends-on): Add stat-macros.
68320         * modules/modechange (Depends-on): Remove xstrtol.
68321         Add stat-macros, xalloc.
68322         * modules/save-cwd (Depends-on): Add unistd-safer.
68323         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68324         * modules/unistd-safer (Files): Add lib/fd-safer.c
68325         (Makefile.am): Remove lib_SOURCES.
68326
68327         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68328         Remove fcntl-safer; unistd-safer supersedes it.
68329
68330 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68331
68332         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68333         AC_HEADER_STAT.
68334         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68335         (gl_PREREQ_CHOWN): Remove.
68336         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68337         it.  Don't require AC_HEADER_STAT.
68338         (gl_PREREQ_LSTAT): Remove.
68339         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68340         Don't require AC_HEADER_STAT.
68341         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68342         (gl_PREREQ_RMDIR): Remove.
68343         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68344         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68345         the stat-macros module a prerequisite.
68346         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68347         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68348         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68349         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68350         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68351         variable names.
68352         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68353         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68354         variable prefixes.
68355         * m4/fcntl-safer.m4: Remove.
68356         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68357         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68358         Invoke gl_PREREQ_FD_SAFER.
68359         (gl_PREREQ_FD_SAFER): New macro.
68360         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68361         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68362         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68363         Remove duplicate call to AC_LIBOBJ(readutmp).
68364         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68365
68366         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68367         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68368
68369 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68370
68371         * MODULES.html.sh (Misc): Add byteswap.
68372
68373 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68374
68375         * modules/getcwd (Depends-on): Add extensions.
68376         * modules/openat (Depends-on): Likewise.
68377
68378 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68379
68380         * modules/byteswap: New file.
68381
68382 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68383
68384         * m4/byteswap.m4: New file.
68385
68386 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68387
68388         * lib/byteswap_.h: New file.
68389
68390 2005-04-25  Karl Berry  <karl@gnu.org>
68391
68392         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68393
68394 2005-04-25  Albert Chin  <china@thewrittenword.com>
68395
68396         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68397         Toolkit C bug.
68398
68399 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68400
68401         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68402         (func_ln_if_changed): Remove forcibly for no error message
68403         in case file does not exist.
68404
68405 2005-04-19  Simon Josefsson  <jas@extundo.com>
68406
68407         * gnulib-tool (Options): Make --symlink mean --symbolic.
68408
68409 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68410
68411         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68412
68413 2005-04-16  Simon Josefsson  <jas@extundo.com>
68414
68415         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68416
68417 2005-04-15  Simon Josefsson  <jas@extundo.com>
68418
68419         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68420
68421 2005-04-15  Simon Josefsson  <jas@extundo.com>
68422
68423         * gnulib-tool: Rename --symlink to --symbolic.
68424
68425 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68426
68427         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68428         symbolic links to files instead of copying/moving.  Add --aux-dir,
68429         specifying directory relative --dir where auxiliary build tools
68430         are placed.
68431
68432 2005-04-14  Bruno Haible  <bruno@clisp.org>
68433
68434         * modules/allocsa (License): Change to LGPL.
68435         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68436
68437 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68438
68439         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68440         that "UTC +1 second" continues to work.  Problem reported
68441         by Dmitry V. Levin.
68442         (relunit_snumber): New rule.
68443         (relunit): Use it.
68444
68445 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68446
68447         * lib/getdate.y (universal_time_zone_table): New constant.
68448         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68449         universal_time_zone_table.
68450         (lookup_zone): Prefer universal_time_zone_table to
68451         local_time_zone_table, so that "GMT" time stamps are allowed in
68452         London during the summer.  Problem reported by Ian Abbott.
68453
68454 2005-04-12  Jim Meyering  <jim@meyering.net>
68455
68456         * lib/human.c (humblock): Set *options even when returning due to
68457         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68458         warning from gcc-4.
68459
68460 2005-04-09  Jim Meyering  <jim@meyering.net>
68461
68462         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68463         -Wuninitialized: initialize tm0.tm_year.
68464
68465 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68466
68467         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68468         count, since there's no maximum.  All uses changed.
68469         Add member dsts_seen.
68470         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68471         not being INT_MAX.
68472         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68473         Use pc_rels_seen to decide whther a date is absolute.
68474
68475         * lib/getdate.y (number): Don't overwrite year.
68476         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68477         check.
68478
68479 2005-04-02  Simon Josefsson  <jas@extundo.com>
68480
68481         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68482         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68483
68484 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68485
68486         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68487         where no absolute path name can be longer than PATH_MAX.
68488
68489 2005-03-27  Jim Meyering  <jim@meyering.net>
68490
68491         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68492
68493 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68494
68495         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68496         "one's complement" -> "ones' complement" in comment, as per Knuth.
68497         "value of type" -> "type or expression" in comment.
68498         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68499
68500 2005-03-26  Jim Meyering  <jim@meyering.net>
68501
68502         Comment nits.
68503         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68504         Correct typos: s/or/of/.
68505
68506 2005-03-26  Jim Meyering  <jim@meyering.net>
68507
68508         * modules/check-include-files: Move to ../ and rename to...
68509         * check-module: ...this.
68510
68511 2005-03-25  Jim Meyering  <jim@meyering.net>
68512
68513         * modules/xvasprintf (Files): Add xalloc.h.
68514
68515 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68516
68517         * modules/gettext (Files): config/config.rpath ->
68518         build-aux/config.rpath
68519         * modules/iconv (Files): Likewise.
68520         Problem reported by Oskar Liljeblad.
68521
68522 2005-03-23  Jim Meyering  <jim@meyering.net>
68523
68524         * modules/check-include-files: New script to check for
68525         missing dependencies, multiple includes, etc.
68526
68527         * modules/c-strtold (Depends-on): Add xalloc.
68528         * modules/c-strtod (Depends-on): Add xalloc.
68529         * modules/hash (Depends-on): Add xalloc.
68530         (Files): Remove lib/xalloc.h.
68531
68532         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
68533         * modules/userspec (Files): Add lib/inttostr.h.
68534
68535 2005-03-23  Jim Meyering  <jim@meyering.net>
68536
68537         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
68538
68539 2005-03-22  Jim Meyering  <jim@meyering.net>
68540
68541         * modules/stat-macros: New module.
68542         * modules/canonicalize, modules/euidaccess, modules/file-type,
68543         * modules/filemode, modules/lchown, modules/makepath,
68544         * modules/rmdir, modules/stat: Depend on new stat-macros module
68545         rather than listing lib/stat-macros.h manually.
68546         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
68547
68548 2005-03-22  Jim Meyering  <jim@meyering.net>
68549
68550         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
68551
68552 2005-03-22  Bruno Haible  <bruno@clisp.org>
68553
68554         * config/srclist.txt: Replace target directory 'config' with
68555         'build-aux'.
68556         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
68557         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
68558         ../build-aux/.
68559
68560 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
68561
68562         * modules/chdir-long (Depends-on): Add mempcpy.
68563
68564         * modules/acl, modules/backupfile, modules/c-strtod,
68565         modules/c-strtold, modules/canon-host, modules/canonicalize,
68566         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
68567         modules/exclude, modules/exitfail, modules/file-type,
68568         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
68569         modules/getdate, modules/getline, modules/getpagesize,
68570         modules/getpass, modules/getugroups, modules/group-member,
68571         modules/hard-locale, modules/hash, modules/human, modules/idcache,
68572         modules/inttostr, modules/long-options, modules/makepath,
68573         modules/md5, modules/memcasecmp, modules/memcoll,
68574         modules/modechange, modules/mountlist, modules/path-concat,
68575         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
68576         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68577         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68578         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
68579         modules/strftime, modules/strndup, modules/strverscmp,
68580         modules/timespec, modules/unlocked-io, modules/userspec,
68581         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
68582         modules/yesno:
68583         Remove lib_SOURCES line from Makefile.am section, as this is now
68584         done automatically by the corresponding Autoconf macro.
68585
68586 2005-03-21  Jim Meyering  <jim@meyering.net>
68587
68588         Changes imported from coreutils.
68589
68590         * lib/cycle-check.c: Don't include xalloc.h.
68591
68592         * lib/path-concat.c: Don't include assert.h.
68593         (path_concat): Remove assertion that would have triggered
68594         for ABASE starting with more than one slash.
68595         Reported by Andreas Schwab.
68596
68597         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
68598         properly when ABASE is an absolute file name.
68599         Correct the description of this function.
68600         Include <assert.h>.
68601         Add an assertion and a test driver.
68602         This fixes a bug introduced on 2004-07-02.
68603         Andreas Schwab reported the resulting failure of cp --parents:
68604         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
68605
68606 2005-03-21  Jim Meyering  <jim@meyering.net>
68607
68608         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
68609         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
68610
68611 2005-03-21  Jim Meyering  <jim@meyering.net>
68612         and  Paul Eggert  <eggert@cs.ucla.edu>
68613
68614         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
68615         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
68616         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
68617         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
68618         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
68619         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
68620         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
68621         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
68622         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
68623         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
68624         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
68625         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
68626         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
68627         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
68628         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
68629         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
68630         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
68631         for these modules.
68632
68633 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
68634
68635         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
68636         (which shouldn't happen), generate nothing instead of returning 0
68637         immediately, so that nstrftime (NULL, ...) doesn't return 0.
68638
68639 2005-03-16  Bruno Haible  <bruno@clisp.org>
68640
68641         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
68642         HAVE_LONGLONG_64BIT.
68643
68644 2005-03-16  Bruno Haible  <bruno@clisp.org>
68645
68646         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
68647         HAVE_LONGLONG_64BIT.
68648
68649 2005-03-16  Bruno Haible  <bruno@clisp.org>
68650
68651         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
68652         HAVE_LONGLONG_64BIT.
68653
68654 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68655
68656         * lib/strftime.c (my_strftime): Prepend space to format so that we can
68657         reliably distinguish strftime failure from empty output on POSIX
68658         hosts.
68659
68660 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68661
68662         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
68663         (iconv_string): Don't guess a size-zero buffer, as that might cause
68664         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
68665         result would be 'too large', where 'too large' is (heuristically)
68666         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
68667         overflow concerns.  This will prevent some unwanted malloc failures
68668         when the inputs are very large.
68669
68670 2005-03-15  Karl Berry  <karl@gnu.org>
68671
68672         * config/srclist.txt (config.rpath): from gettext.
68673         * config/config.rpath: update.
68674
68675 2005-03-15  Bruno Haible  <bruno@clisp.org>
68676
68677         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
68678         to 'negate'.
68679
68680         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
68681         variable.
68682
68683         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
68684         results.
68685
68686 2005-03-14  Simon Josefsson  <jas@extundo.com>
68687
68688         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
68689         <fx@gnu.org>.
68690
68691 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68692
68693         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68694         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68695         intprops.h.
68696         * lib/strtol.c: Likewise.
68697
68698 2005-03-14  Jim Meyering  <jim@meyering.net>
68699
68700         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68701         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68702         to be nonzero so that we (and caller) can detect the difference
68703         between a valid zero-length expansion and an error return, even
68704         when the underlying strftime fails before writing anything into
68705         that location.
68706
68707 2005-03-14  Bruno Haible  <bruno@clisp.org>
68708
68709         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68710         Update from GNU gettext 0.14.3.
68711
68712 2005-03-10  Jim Meyering  <jim@meyering.net>
68713
68714         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68715
68716 2005-03-10  Jim Meyering  <jim@meyering.net>
68717
68718         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68719         so that this module works on systems without fchdir.
68720
68721 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68722
68723         Factor int-properties macros into a single file, except for
68724         glibc-related files.
68725         * lib/intprops.h: New file.
68726         * lib/getloadavg.c: Include it instead of limits.h.
68727         (INT_STRLEN_BOUND): Remove.
68728         * lib/human.c: Include intprops.h.
68729         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68730         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68731         302/1000.
68732         * lib/inttostr.h: Include intprops.h instead of limits.h.
68733         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68734         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68735         for consistency with intprops.h.
68736         (time_t_is_integer, twos_complement_arithmetic): Use them.
68737         * lib/sig2str.h: Include <signal.h>, intprops.h.
68738         (INT_STRLEN_BOUND): Remove.
68739         * lib/strftime.c (TYPE_SIGNED): Remove.
68740         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68741         * lib/strtol.c: Adjust comments to match intprops.h.
68742         * lib/userspec.c: Include intprops.h.
68743         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68744         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68745         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68746         instead of rolling our own expressions.
68747         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68748
68749         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68750         instead of int.
68751         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68752         the right thing even if adding 1900 would overflow.  Similarly
68753         for tm_mon + 1 and tm_yday + 1.
68754         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68755         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68756         (DO_SIGNED_NUMBER): New macro.
68757         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68758
68759 2005-03-07  Bruno Haible  <bruno@clisp.org>
68760
68761         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68762
68763 2005-03-07  Bruno Haible  <bruno@clisp.org>
68764
68765         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68766
68767 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68768
68769         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68770         (func_import): Only replace files via --import when they have actually
68771         changed.
68772
68773 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68774
68775         * m4/mmap-anon.m4: New file.
68776         * m4/pagealign_alloc.m4: New file.
68777
68778 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68779             Bruno Haible  <bruno@clisp.org>
68780
68781         * modules/pagealign_alloc: New file.
68782         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68783
68784 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68785             Bruno Haible  <bruno@clisp.org>
68786
68787         * lib/pagealign_alloc.h: New file.
68788         * lib/pagealign_alloc.c: New file.
68789
68790 2005-03-03  Bruno Haible  <bruno@clisp.org>
68791
68792         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
68793         Use an all-permissive copyright notice, recommended by RMS.
68794
68795 2005-03-02  Bruno Haible  <bruno@clisp.org>
68796
68797         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
68798         of AIX, the replacement has to be done only after <string.h> is
68799         included, therefore not in config.h. stpncpy.h does the replacement,
68800         and stpncpy.c uses it.
68801
68802 2005-03-02  Bruno Haible  <bruno@clisp.org>
68803
68804         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
68805         stpncpy.c uses it.
68806
68807 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68808
68809         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
68810         The workaround isn't strictly needed for POSIX conformance, and
68811         it's too much of a pain to configure and maintain.  We'll ask
68812         people to fix their kernels instead.
68813         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
68814         (NANOSLEEP_BUG_WORKAROUND): Remove.
68815         (xnanosleep): Remove the workaround.
68816
68817 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68818
68819         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
68820         Reported by Derek Price.
68821         (Include): Add "timespec.h".
68822
68823         * modules/xnanosleep (Depends-on): Remove gethrxtime.
68824
68825 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68826
68827         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
68828         to detect nanosleep bug.
68829
68830 2005-03-01  Bruno Haible  <bruno@clisp.org>
68831
68832         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
68833
68834 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68835
68836         * modules/gethrxtime: New file.
68837         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
68838         (Depends-on): Add gethrxtime.
68839         (configure.ac): Add gl_XNANOSLEEP.
68840         (Makefile.am): Remove lib_SOURCES line.
68841
68842 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68843
68844         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
68845         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
68846
68847 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68848
68849         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
68850         * lib/timespec.h (gettime): Return void, since it always
68851         succeeds now.  All uses changed.
68852         * lib/gettime.c (gettime): Likewise.
68853         [HAVE_NANOTIME]: Prefer nanotime.
68854         Assume gettimeofday succeeds, as POSIX requires.
68855         Assime time () succeeds, since other code already does.
68856         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
68857         (timespec_subtract): Remove.
68858         (NANOSLEEP_BUG_WORKAROUND): New constant.
68859         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
68860         things considerably.  Use it only on GNU/Linux hosts, since the
68861         workaround shouldn't be needed elsewhere.
68862
68863 2005-02-24  Bruno Haible  <bruno@clisp.org>
68864
68865         * modules/gettext (Files): Add m4/glibc2.m4.
68866
68867 2005-02-24  Bruno Haible  <bruno@clisp.org>
68868
68869         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
68870         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
68871         * m4/progtest.m4:
68872         Update from GNU gettext 0.14.2.
68873         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
68874
68875 2005-02-24  Bruno Haible  <bruno@clisp.org>
68876
68877         * lib/localcharset.c: Update from GNU gettext 0.14.2.
68878         * lib/config.charset: Update from GNU gettext 0.14.2.
68879
68880 2005-02-24  Bruno Haible  <bruno@clisp.org>
68881
68882         * lib/gettext.h: Update from GNU gettext 0.14.2.
68883
68884 2005-02-23  Simon Josefsson  <jas@extundo.com>
68885
68886         * m4/iconvme.m4: New file.
68887
68888 2005-02-23  Jim Meyering  <jim@meyering.net>
68889
68890         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
68891         change.
68892         Thanks to Bruno Haible for catching it.
68893
68894 2005-02-22  Simon Josefsson  <jas@extundo.com>
68895
68896         * modules/iconvme: New file.
68897
68898         * MODULES.html.sh: Add iconvme.
68899
68900 2005-02-22  Simon Josefsson  <jas@extundo.com>
68901
68902         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
68903
68904 2005-02-22  Simon Josefsson  <jas@extundo.com>
68905
68906         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
68907
68908 2005-02-22  Jim Meyering  <jim@meyering.net>
68909
68910         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
68911         s/ifndef/ifdef/.
68912
68913 2005-02-20  Neil Conway  <neilc@samurai.com>
68914
68915         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
68916         returned by OSX/Darwin if the specified buffer is not large
68917         enough for the hostname.
68918
68919 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68920
68921         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
68922         pass it to _help, otherwise the latter coredumps trying to
68923         dereference state.root_argp.
68924
68925 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68926
68927         * modules/chdir-long (Depends-on): Add memrchr.
68928         * modules/memrchr (Files): Add lib/memrchr.h.
68929         (Include): "memrchr.h".
68930
68931 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68932
68933         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
68934
68935 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         * lib/memrchr.h: New file.
68938         * lib/chdir-long.c: Include it.
68939         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
68940         Don't bother including stddef.h.
68941
68942 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68943
68944         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
68945         inclusion.
68946         Include <sys/types.h>, for dev_t.
68947         (ME_DUMMY, ME_REMOTE): Move from here....
68948         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
68949         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
68950         Dmitry V. Levin.
68951         Include mountlist.h first, to test the interface.
68952
68953 2005-01-29  Bruno Haible  <bruno@clisp.org>
68954
68955         * lib/progname.c (program_name): Initialize.
68956         Needed when linking statically on MacOS X.
68957
68958 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68959
68960         Sync from coreutils.
68961         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
68962         (Depends-on): Add c-strtod.
68963         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
68964
68965 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         Sync from coreutils.
68968         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
68969
68970         Remove files that are specific to coreutils.
68971         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
68972
68973 2005-01-28  Bruno Haible  <bruno@clisp.org>
68974
68975         * modules/javacomp: New file.
68976         * MODULES.html.sh (Java): Add javacomp.
68977
68978 2005-01-28  Bruno Haible  <bruno@clisp.org>
68979
68980         * m4/javacomp.m4: New file, from GNU gettext.
68981
68982 2005-01-28  Bruno Haible  <bruno@clisp.org>
68983
68984         * lib/javacomp.sh.in: New file, from GNU gettext.
68985         * lib/javacomp.h: New file, from GNU gettext.
68986         * lib/javacomp.c: New file, from GNU gettext.
68987
68988 2005-01-26  Simon Josefsson  <jas@extundo.com>
68989
68990         * lib/gai_strerror.c: Use GPL in header.
68991
68992 2005-01-26  Bruno Haible  <bruno@clisp.org>
68993
68994         * modules/javaexec: New file.
68995         * MODULES.html.sh (Java): Add javaexec.
68996
68997 2005-01-26  Bruno Haible  <bruno@clisp.org>
68998
68999         * m4/javaexec.m4: New file, from GNU gettext.
69000
69001 2005-01-26  Bruno Haible  <bruno@clisp.org>
69002
69003         * lib/javaexec.sh.in: New file, from GNU gettext.
69004         * lib/javaexec.h: New file, from GNU gettext.
69005         * lib/javaexec.c: New file, from GNU gettext.
69006
69007 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69008
69009         * modules/lchown (Depends-on): Remove lchown.h
69010
69011 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69012
69013         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69014         must be defined if the header file was not found, in order
69015         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69016
69017 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69018
69019         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69020         initializers for struct pentry_state.
69021         (__argp_error): Check return value of __asprintf
69022         (__argp_failure): Translate error message
69023
69024         * lib/argp-parse.c: Removed braces around the expansion of N_()
69025
69026 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69027
69028         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69029         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69030         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69031         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69032         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69033         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69034         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69035         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69036         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69037         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69038         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69039         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69040         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69041         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69042         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69043         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69044         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69045         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69046         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69047         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69048         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69049         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69050         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69051         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69052         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69053         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69054         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69055         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69056         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69057         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69058         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69059         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69060         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69061         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69062         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69063         Use an all-permissive copyright notice, recommended by RMS.
69064
69065 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69066
69067         * modules/chdir-long (Depends-on): Remove mempcpy.
69068
69069 2005-01-21  Jim Meyering  <jim@meyering.net>
69070
69071         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69072         same value as for Solaris 9.
69073
69074         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69075         component length.  This included changing the parameter to be
69076         of type `char *' rather than `char const *'.
69077         * lib/chdir-long.h (chdir_long): Update prototype.
69078
69079         * lib/openat.c (fdopendir, fstatat): New functions.
69080         * lib/openat.h: Include headers required for use of DIR and struct
69081         stat.
69082         [AT_SYMLINK_NOFOLLOW]: Define.
69083         (fdopendir, fstatat): Add prototypes.
69084
69085 2005-01-21  Bruno Haible  <bruno@clisp.org>
69086
69087         * modules/classpath: New file.
69088         * MODULES.html.sh (Java): Add classpath.
69089
69090 2005-01-21  Bruno Haible  <bruno@clisp.org>
69091
69092         * lib/classpath.h: New file, from GNU gettext.
69093         * lib/classpath.c: New file, from GNU gettext.
69094
69095 2005-01-20  Simon Josefsson  <jas@extundo.com>
69096
69097         * modules/version-etc-fsf: New file.
69098
69099 2005-01-20  Simon Josefsson  <jas@extundo.com>
69100
69101         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69102         * lib/version-etc.c: Remove version_etc_copyright.
69103         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69104         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69105
69106 2005-01-20  Simon Josefsson  <jas@extundo.com>
69107
69108         * lib/base64.h (isbase64): Add.
69109
69110         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69111         using a unsigned prototype, don't inline.
69112         (base64_decode): Use it.
69113
69114 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69115
69116         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69117         it.
69118
69119 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69120
69121         * lib/save-cwd.c (save_cwd): Remove code to support the case
69122         where fchdir is missing or flaky.
69123
69124 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69125
69126         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69127
69128 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69129
69130         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69131         AC_LIBSOURCES now does this.
69132         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69133         with new ullong_max module.
69134
69135 2005-01-19  Bruno Haible  <bruno@clisp.org>
69136
69137         * modules/sh-quote: New file.
69138         * MODULES.html.sh (Executing programs): Add sh-quote.
69139
69140 2005-01-19  Bruno Haible  <bruno@clisp.org>
69141
69142         * lib/sh-quote.h: New file, from GNU gettext.
69143         * lib/sh-quote.c: New file, from GNU gettext.
69144
69145 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69146
69147         Merge from coreutils.
69148         * m4/ullong_max.m4: New file.
69149         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69150         (gl_MACROS): Assume localeconv exists.
69151
69152 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69153
69154         Merge changes from coreutils, as described below in several
69155         changelogs dated today.
69156
69157         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69158         (O_DIRECTORY): Remove; not needed here, since "." must be
69159         a directory.  All uses removed.
69160         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69161         universal on Suns, and we also need to test for IRIX.
69162         Revamp code to use 'if' rather than '#if'.
69163         Avoid unnecessary comparison of cwd->desc to 0.
69164
69165         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69166         for known valid error numbers rather than observed invalid ones.
69167
69168 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69169
69170         * modules/ullong_max: New file.
69171
69172         * modules/chdir-long, modules/openat: New files.
69173         * modules/save-cwd (Depends-on): Depend on chdir-long.
69174         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69175
69176 2005-01-18  Jim Meyering  <jim@meyering.net>
69177
69178         Merge from coreutils.
69179         * m4/chdir-long.m4, m4/openat.m4: New files.
69180         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69181         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69182         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69183         is sane and DOES follow symlinks.  Besides, testing 20 different
69184         systems found no broken chown implementations.
69185         Prompted by a change in rsync's copy of this macro.
69186         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69187
69188         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69189
69190         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69191         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69192         NULL-means-set-to-current-time semantics.
69193         Remove temporary file immediately, rather than waiting
69194         for configure's at-exit trap code to do it.
69195
69196 2005-01-18  Jim Meyering  <jim@meyering.net>
69197
69198         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69199
69200         * lib/utimens.c (futimens): Account for the fact that futimes
69201         can also fail with errno == ENOSYS or errno == ENOENT.
69202         Patch from Dmitry V. Levin.
69203
69204         Change the name of the robust chdir function from chdir to chdir_long.
69205         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69206         (restore_cwd): Use chdir_long, not chdir.
69207         * lib/chdir-long.c: Renamed from chdir.c.
69208         * lib/chdir-long.h: Renamed from chdir.h.
69209         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69210         Hurd.
69211
69212 2005-01-18  Bruno Haible  <bruno@clisp.org>
69213
69214         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69215         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69216         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69217         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69218         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69219         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69220         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69221         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69222         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69223         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69224         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69225         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69226         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69227         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69228         Use an all-permissive copyright notice, recommended by RMS.
69229
69230 2005-01-18  Bob Proulx  <bob@proulx.com>
69231
69232         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69233         simplify offsetof() macro construct to avoid compile failure with
69234         native HP-UX 11.0 ANSI C compiler.
69235
69236 2005-01-17  Bruno Haible  <bruno@clisp.org>
69237
69238         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69239         redundant because stpncpy.m4 takes care of it.
69240
69241 2005-01-17  Bruno Haible  <bruno@clisp.org>
69242
69243         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69244
69245 2005-01-17  Bruno Haible  <bruno@clisp.org>
69246
69247         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69248         used.
69249
69250 2005-01-17  Bruno Haible  <bruno@clisp.org>
69251
69252         * lib/fwriteerror.h (fwriteerror): Change specification to include
69253         fclose.
69254         * lib/fwriteerror.c: Include <stdbool.h>.
69255         (fwriteerror): At the end, close the file stream. Record whether
69256         stdout was already closed.
69257
69258 2005-01-17  Bruno Haible  <bruno@clisp.org>
69259
69260         * lib/execute.c (environ): Declare if needed.
69261         * lib/pipe.c (environ): Likewise.
69262         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69263
69264 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69265
69266         * modules/argp: Depend on vsnprintf
69267
69268 2005-01-10  Jim Meyering  <jim@meyering.net>
69269
69270         * modules/closeout (Depends-on): Add atexit.
69271
69272 2005-01-06  Bruno Haible  <bruno@clisp.org>
69273
69274         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69275
69276 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69277
69278         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69279         definitions to be after all include files, to avoid collisions.
69280         Problem reported by Bob Proulx.
69281
69282 2005-01-04  Jim Meyering  <jim@meyering.net>
69283
69284         Changes imported from coreutils.
69285         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69286         as the mkstemp template, use a temporary directory and an
69287         8.3-friendly template to avoid trouble on systems like DJGPP.
69288         Reported by Juan M. Guerrero via Stepan Kasal.
69289         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69290         close. Remove the temporary directory right away, rather than waiting
69291         for configure's at-exit trap code to do it.
69292         Suggestion from Stepan Kasal.
69293
69294 2005-01-01  Simon Josefsson  <jas@extundo.com>
69295
69296         * gnulib-tool: Print #include directives when --import'ing.
69297
69298 2004-12-28  Simon Josefsson  <jas@extundo.com>
69299
69300         * tests/test-base64.c: Include required header files.  Remove
69301         unused variables.
69302
69303 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69304
69305         * modules/error (Depends-on): Remove gettext.
69306
69307 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69308
69309         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69310         not needed.  This removes a dependency on the gettext module.
69311         [defined _LIBC]: Do not include <libintl.h>; not needed.
69312
69313 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69314
69315         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69316         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69317
69318 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69319
69320         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69321         HAVE_DECL_STRTOLD.
69322
69323 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69324
69325         * modules/getdate (Depends-on): Remove alloca-opt.
69326
69327 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69328
69329         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69330
69331 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69332
69333         * lib/argp-parse.c: Include <stddef.h>.
69334         (alignof, alignto): New macros.
69335         (parser_init): Don't assume that void * is aligned sufficiently
69336         for struct option.
69337
69338         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69339         need to extend the stack.
69340         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69341         large.
69342
69343 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69344
69345         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69346
69347 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69348
69349         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69350         (2004-10-24) change.  Apparently this was a false alarm.
69351
69352         * modules/getdate: Depend on alloca-opt, not alloca.
69353
69354 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69355
69356         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69357         Remove now-obsolete comment about AIX.
69358         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69359         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69360         (YYMAXDEPTH): New macro.
69361
69362 2004-12-18  Simon Josefsson  <jas@extundo.com>
69363
69364         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69365
69366 2004-12-18  Bruno Haible  <bruno@clisp.org>
69367
69368         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69369
69370 2004-12-18  Bruno Haible  <bruno@clisp.org>
69371
69372         * lib/fatal-signal.c (fatal_signals): Make non-const.
69373         (init_fatal_signals): New function.
69374         (uninstall_handlers, install_handlers): Ignore signals that were set to
69375         SIG_IGN.
69376         (at_fatal_signal): Call init_fatal_signals.
69377         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69378         SIG_IGN.
69379         Reported by Paul Eggert.
69380
69381 2004-12-18  Bruno Haible  <bruno@clisp.org>
69382
69383         * doc/alloca.texi: New file.
69384         * doc/alloca-opt.texi: New file.
69385
69386 2004-12-17  Jim Meyering  <jim@meyering.net>
69387
69388         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69389         Otherwise, install-sh could exit with improper exit status when
69390         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69391
69392 2004-12-16  Simon Josefsson  <jas@extundo.com>
69393
69394         * tests/test-base64.c: Add license.
69395
69396 2004-12-15  Stepan Kasal  <address@hidden>
69397
69398         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69399
69400 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69401
69402         * modules/getcwd (Files): Add m4/d-ino.m4.
69403         Suggested by Mark D. Baushke.
69404
69405 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69406
69407         * lib/getdate.y (textint): New member "negative".
69408         (time_zone_hhmm): New function.
69409         Expect 14 shift-reduce conflicts, not 13.
69410         (o_colon_minutes): New rule.
69411         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69412         (yylex): Set the "negative" member of signed numbers.
69413
69414 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69415
69416         * doc/getdate.texi (Time of day items, Time zone items):
69417         Describe new formats +00:00, UTC+00:00.
69418
69419 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69420
69421         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69422         spurious "-l"s.  Problem reported by Stepan Kasal.
69423
69424 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69425
69426         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69427         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69428
69429 2004-12-04  Simon Josefsson  <jas@extundo.com>
69430
69431         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69432         Vandoorselaere <yoann@prelude-ids.org>.
69433
69434 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69435
69436         Changes imported from coreutils.
69437         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69438         exist.
69439         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69440
69441 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69442
69443         Changes imported from coreutils.
69444         * lib/hard-locale.c: Assume <locale.h> exists.
69445         Include "strdup.h".
69446         (GLIBC_VERSION): New macro.
69447         (hard_locale): Assume setlocale exists.
69448         Rewrite to avoid #ifdef.
69449         Use strdup rather than malloc + strcpy.
69450         * lib/human.c: Assume <locale.h> exists.
69451         (human_readable): Assume localeconv exists.
69452
69453 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69454
69455         * modules/hard-locale (Depends-on): Add strdup.
69456
69457 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69458
69459         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69460         convert T2, not T.  (Imported from libc.)
69461
69462 2004-11-30  Simon Josefsson  <jas@extundo.com>
69463
69464         * modules/restrict (License): Change to LGPL.
69465
69466 2004-11-30  Simon Josefsson  <jas@extundo.com>
69467
69468         * m4/restrict.m4: Add copyright and copying conditions.
69469
69470 2004-11-30  Simon Josefsson  <jas@extundo.com>
69471
69472         * m4/base64.m4: New file.
69473
69474 2004-11-30  Simon Josefsson  <jas@extundo.com>
69475
69476         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69477         base64.
69478
69479         * tests/test-base64.c: New file.
69480
69481         * modules/base64: New file.
69482
69483 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69484
69485         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69486         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69487
69488         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69489
69490 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69491
69492         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69493         (__getcwd.c): Don't restore errno; glibc doesn't.
69494         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69495         first, falling back to our code only if its results look suspicious.
69496         Ensure that the resulting buffer is only as large as necessary.
69497
69498         * lib/readutmp.c: Include readutmp.h first.
69499         Include <errno.h>, since readutmp.h no longer does that.
69500         * lib/readutmp.h: Don't include <errno.h>,
69501         <sys/param.h>, <time.h>; not needed to establish interface.
69502         (errno): Remove decl.
69503         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69504         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69505         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69506
69507 2004-11-28  Simon Josefsson  <jas@extundo.com>
69508
69509         * lib/base64.h, base64.c: New file.
69510
69511 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69512
69513         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69514
69515 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69516
69517         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69518         (Depends-on): Remove pathmax, same.  Add mempcpy.
69519         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
69520         (Makefile.am): Append getcwd.h to lib_SOURCES.
69521         (Include): Add getcwd.h.
69522         (Maintainer): Change from Jim Meyering to "all, glibc",
69523         since getdate now uses intended-for-glibc code.
69524         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
69525         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
69526
69527 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69528
69529         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
69530         HP's ANSI C compiler.
69531         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
69532         Declaring int functions causes warnings on some modern systems and
69533         shouldn't be needed to compile on ancient ones.
69534         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
69535         defined.
69536
69537         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
69538         with the following changes.
69539         (__set_errno): Parenthesize properly.
69540         Include <stdbool.h>.
69541         (MIN, MAX, MATCHING_INO): New macros.
69542         (__getcwd): Define with prototype, not K&R form.
69543         Use heuristics to allocate default buffer on stack if possible.
69544         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
69545         behavior, and to avoid the PATH_MAX limit when computing
69546         ../../../../...
69547         Use MATCHING_INO to compare inode number to file.
69548         Check for arithmetic overflow in size calculations.
69549         Fix bug in reallocation of dot array that caused getcwd to fail
69550         on directories nested deeper than 75.
69551         Be more careful about saving errno on error.
69552         Do not use realloc; use only free+malloc, as this is a bit
69553         more flexible and avoids a needless copy operation.
69554         Do not inspect st_dev and st_ino for symbolic links; POSIX
69555         doesn't specify the latter.
69556         Check for closedir errors.
69557         Avoid needless casts.
69558         Use "#ifdef weak_alias" around weak_alias, to be like other
69559         glibc code.
69560         The following changes to getcwd.c have effect only when used in
69561         gnulib; they have no effect inside glibc proper.
69562         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
69563         as alloca isn't used.
69564         (alloca, __alloca): Likewise.
69565         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
69566         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69567         unconditionally, as gnulib assumes C89 or better.
69568         Do not include <sys/param.h>.
69569         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
69570         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
69571         better.
69572         (NULL) [!defined NULL]: Remove; we assume C89 or better.
69573         Include <dirent.h> in a way that is compatible with modern Autoconf.
69574         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
69575         New macros, if not already defined.
69576         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69577         Use "_LIBC", not "defined _LIBC", for consistency.
69578         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
69579         a mempcpy module.
69580         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
69581         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
69582         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
69583         credit only to Jim Meyering and adjust the copyright dates.
69584         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
69585         <stdlib.h>, <unistd.h>, "pathmax.h".
69586         Instead, include "xgetcwd.h" (first) and "getcwd.h".
69587         (INITIAL_BUFFER_SIZE): Remove.
69588         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
69589
69590 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69591
69592         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
69593         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
69594         Use the _ONCE methods, for efficiency.
69595         Check for fcntl.h.  In test program, include <errno.h>
69596         and <fcntl.h> if available.  Remove old K&R cruft from
69597         test program.  Check for common errors in GNU/Linux,
69598         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
69599         don't do AC_LIBOBJ, as that's getcwd.m4's job.
69600         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
69601         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
69602         name accordingly.
69603         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
69604         accommodate new getcwd.c.
69605         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
69606         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
69607         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
69608         that's all we need now.
69609
69610 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69611
69612         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
69613         argp-parse.c depends on getopt internals, that means we should
69614         always use our getopt, to be on the safe side.
69615         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
69616         order not to spoil the result of an eventual previous invocation
69617         of gl_GETOPT_SUBSTITUTE.
69618
69619 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69620
69621         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
69622         redefinition warnings. To avoid them, include the defines
69623         in `#if !defined __need_getopt ... #endif'. The only place
69624         where __getopt_argv_const is used is in definitions
69625         of getopt_long and getopt_long_only below, which are as well
69626         protected by `#ifndef __need_getopt'.
69627         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
69628         __need_getopt after including <stdio.h> and <unistd.h> These
69629         headers might have defined it.
69630
69631 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69632
69633         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
69634
69635 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69636
69637         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
69638         (futimens): New function, which uses futimes if available.
69639         (futimens, utimens): Support timespec==NULL, with same semantics
69640         as utime and utimens.
69641         * lib/utimens.h (futimens): New decl.
69642
69643 2004-11-23  Jim Meyering  <jim@meyering.net>
69644
69645         * lib/getopt_.h: Remove trailing blanks.
69646
69647 2004-11-23  Jim Meyering  <jim@meyering.net>
69648
69649         * lib/__fpending.c: Add comment.
69650
69651 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
69652
69653         * modules/canonicalize (Depends-on): Add xreadlink.
69654         Problem reported by James Youngman.
69655
69656 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69657
69658         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
69659         New macros.
69660         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
69661         optopt): Use them instead of invoking ## directly; otherwise, the
69662         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
69663
69664 2004-11-19  Bruno Haible  <bruno@clisp.org>
69665
69666         * lib/strtok_r.c: Move comments from here...
69667         * lib/strtok_r.h: ... to here.
69668
69669 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69670
69671         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
69672         implementations that mishandle size_t overflow.
69673
69674 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69675
69676         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
69677         might fail.  Problem reported by Yoann Vandoorselaere.
69678         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
69679         implementations that mishandle size_t overflow.
69680
69681 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69682
69683         * modules/canon-host (Depends-on): Add strdup.
69684
69685 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69686
69687         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
69688
69689 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69690
69691         * lib/canon-host.c: Include "strdup.h".
69692         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69693         Use strdup instead of malloc/strcpy to duplicate strings.
69694
69695         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69696         (human_space_before_unit): New constant.
69697         * lib/human.c (human_readable): Support it.
69698
69699         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69700         (xgetcwd): Set errno correctly when failing.
69701         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69702         the failure is actually due to a PATH_MAX problem.
69703
69704         Further getopt changes to make it more likely that glibc will
69705         buy the changes back.
69706         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69707         (getopt): Use it, so to preserve glibc semantic
69708         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69709         when compiling for libc.
69710         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69711         (getopt_long, getopt_long_only): Use it.
69712
69713         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69714         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69715         (getopt): Argv is now char * const *, as per standard.
69716         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69717         not char *__getopt_argv_const *.
69718         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69719         _getopt_long_only_r): Likewise.
69720         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69721         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69722         _getopt_long_r, _getopt_long_only_r): Likewise.
69723         * lib/getopt_.h (__getopt_argv_const): Remove.
69724         (getopt): Argv is now char * const *, as per standard.
69725
69726         * lib/getdate.y (tORDINAL): New token.
69727         (day, relunit): Allow it for relative times.
69728         (relative_time_table): Use tORDINAL for ordinals.
69729
69730 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69733         Document that "second" isn't allowed as an ordinal number.
69734
69735 2004-11-16  Jim Meyering  <jim@meyering.net>
69736
69737         * modules/closeout (Depends-on): Add fpending.
69738
69739 2004-11-15  Jim Meyering  <jim@meyering.net>
69740
69741         * lib/closeout.c: Include "__fpending.h" once again.
69742         Include <stdbool.h>.
69743         (close_stdout): Don't fail just because stdout was closed initially,
69744         since some programs don't write to stdout in the normal course of
69745         operation (other than --version and --help), and we don't want this
69746         function to make e.g. `touch file >&-' fail.
69747         But do fail if it was closed and someone has tried to write to it.
69748         E.g., `printf foo >&-' must fail.
69749
69750 2004-11-13  Jim Meyering  <jim@meyering.net>
69751
69752         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69753
69754 2004-11-12  Simon Josefsson  <jas@extundo.com>
69755
69756         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69757         small doc fix is still pending.
69758
69759 2004-11-11  Simon Josefsson  <jas@extundo.com>
69760
69761         * modules/strtok_r: New file.
69762
69763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69764         strtok_r.
69765
69766 2004-11-11  Simon Josefsson  <jas@extundo.com>
69767
69768         * m4/strtok_r.m4: New file.
69769
69770         * m4/getopt.m4: Replace opterr.
69771
69772 2004-11-11  Simon Josefsson  <jas@extundo.com>
69773
69774         * lib/strtok_r.h, strtok_r.c: New file.
69775
69776 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69779         of replacing opterr, getopt, etc.  This should handle the
69780         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69781
69782 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69783
69784         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69785         we can stop lying to compilers about the constness of argv when we
69786         are compiled outside glibc.
69787         (getopt, getopt_long, getopt_long_only): Use it.
69788         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69789         _getopt_internal, getopt): Likewise.
69790         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69791         _getopt_long_only_r): Likewise.
69792         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69793         _getopt_long_r, _getopt_long_only_r): Likewise.
69794
69795         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
69796         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
69797         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
69798         the other external symbols.
69799         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
69800         declaration, since the above renaming now works around collisions.
69801
69802 2004-11-11  Jim Meyering  <jim@meyering.net>
69803
69804         * lib/linebreak.c: Remove trailing blanks.
69805         * lib/alloca_.h: Likewise.
69806         * lib/acosl.c: Likewise.
69807         * lib/euidaccess.c: Likewise.
69808         * lib/allocsa.h: Likewise.
69809
69810 2004-11-10  Simon Josefsson  <jas@extundo.com>
69811
69812         * m4/getaddrinfo.m4: New file.
69813
69814 2004-11-10  Simon Josefsson  <jas@extundo.com>
69815
69816         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
69817
69818 2004-11-10  Simon Josefsson  <jas@extundo.com>
69819
69820         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69821         getaddrinfo.
69822
69823         * modules/getaddrinfo: New file.
69824
69825 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69826
69827         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
69828
69829 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69830
69831         * lib/mktime.c (SHR): New macro, which is a portable
69832         substitute for >> that should work even on Crays.
69833         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
69834         Problem reported by Mark D. Baushke in
69835         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
69836         * lib/getdate.y (SHR): Likewise.
69837         (tm_diff): Use it.
69838         * lib/strftime.c (SHR): Likewise.
69839         (tm_diff): Use it.
69840         * lib/quotearg.c (struct quoting_options): Use unsigned int for
69841         quote_these_too, so that right shifts are well defined.  All uses
69842         changed.
69843
69844 2004-11-10  Jim Meyering  <jim@meyering.net>
69845
69846         Ensure that no close failure goes unreported.
69847         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
69848         return early when it seems there's nothing to flush.
69849         Don't include __fpending.h.
69850
69851 2004-11-10  Jim Meyering  <jim@meyering.net>
69852
69853         * modules/closeout (Depends-on): Remove fpending.
69854
69855 2004-11-10  Jim Meyering  <jim@meyering.net>
69856
69857         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
69858
69859 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69860
69861         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
69862         gl_FUNC_STRFTIME.
69863         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
69864         and AC_REQUIRE when possible, to avoid duplicate checks.
69865         Check for <wchar.h>.
69866
69867 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69868
69869         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
69870
69871 2004-11-09  Bruno Haible  <bruno@clisp.org>
69872
69873         * m4/sockpfaf.m4: New file.
69874
69875 2004-11-05  Bruno Haible  <bruno@clisp.org>
69876
69877         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
69878         Reported by Mark D. Baushke <mdb@cvshome.org>.
69879
69880 2004-11-04  Bruno Haible  <bruno@clisp.org>
69881
69882         2004-09-11  Bruno Haible  <bruno@clisp.org>
69883                 * allocsa.valgrind: New file.
69884         2004-02-06  Bruno Haible  <bruno@clisp.org>
69885                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
69886                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
69887                 Reported by Christopher Seip <chris.seip@hp.com>.
69888
69889 2004-11-04  Bruno Haible  <bruno@clisp.org>
69890
69891         * modules/allocsa (Files): Add lib/allocsa.valgrind.
69892         (Makefile.am): Distribute it.
69893
69894 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69895
69896         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
69897         with errno == ERANGE if the buffer is too small.
69898         Problem reported by Mark D. Baushke.
69899
69900 2004-11-03  Albert Chin  <china@thewrittenword.com>
69901             Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
69904         equivalent, substitute $ac_type for equivalent type rather than
69905         blindly using uint32_t *always* which won't work if uint32_t is not
69906         available.  Define _UINT32_T to work around typedef of uint32_t if
69907         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
69908         2.5.1.
69909
69910 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69911
69912         * m4/jm-macros.m4: Sync from coreutils.
69913         (gl_MACROS): Check for mbrlen, for pathchk.
69914         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
69915
69916 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69917
69918         * lib/xreadlink.c (MAXSIZE): New macro.
69919         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
69920         size does not exceed MAXSIZE.  Avoid cast.
69921         As suggested by Mark D. Baushke in
69922         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
69923         if readlink fails with buffer size just under MAXSIZE, try again
69924         with MAXSIZE.
69925
69926 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69927
69928         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
69929
69930 2004-11-02  Derek R. Price  <derek@ximbiot.com>
69931         and  Paul Eggert  <eggert@cs.ucla.edu>
69932
69933         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
69934         (get_date): Overparenthesize to avoid GCC warning.
69935
69936 2004-11-02  Bruno Haible  <bruno@clisp.org>
69937
69938         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
69939         returns void.
69940
69941 2004-11-02  Bruno Haible  <bruno@clisp.org>
69942
69943         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
69944         function returns void.
69945
69946 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69947
69948         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
69949         fflush_unlocked, flockfile, funlockfile, funlockfile,
69950         fputs_unlocked, putc_unlocked.
69951
69952 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69953
69954         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69955         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
69956         already declared.
69957
69958 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69959
69960         * modules/getdate (Files): Add doc/getdate.texi.
69961         (Depends-on): Add setenv, xalloc.
69962
69963 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69964
69965         * lib/getdate.y: Add support for TZ="foo" within a date string.
69966         Fix some bugs near time_t boundaries.  Reject dates with
69967         out-of-range components, e.g., "Sept 31".
69968         Include <stdlib.h>, "setenv.h", "xalloc.h".
69969         (ISDIGIT_LOCALE): Remove; unused.
69970         Note that the TZ and time functions used here are not reentrant.
69971         (mktime_ok, get_tz): New functions.
69972         (TZBUFSIZE): New constant.
69973         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
69974         This requires that we sometimes generate our own TZ="XXX..." setting.
69975
69976 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69977
69978         * doc/getdate.texi: New file, from coreutils with modifications for
69979         the new TZ parsing.
69980
69981 2004-10-27  Derek R. Price  <derek@ximbiot.com>
69982
69983         * lib/mktime.c (not_equal_tm): Remove redundant check.
69984
69985 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69986
69987         * modules/regex (lib_SOURCES): Add regex.c.
69988         Reported by James Youngman in
69989         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
69990
69991 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * lib/getdate.y: Use Bison 1.875 features, and some minor
69994         code cleanups.  This change does not affect semantics.
69995         Don't include <stdlib.h>; no longer needed.
69996         Don't include unlocked-io.h; only the "#if TEST" code uses
69997         stdio, and performance isn't crucial there.
69998         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
69999         Bison 1.875 features as described below.
70000         All uses of "PC." replaced by "pc->".
70001         (YYSTYPE): Add a forward declaration.
70002         (yylex, yyerror): Use full prototypes in forward decls.
70003         Use "%pure-parser" rather than obsolescent "%pure_parser".
70004         Use %parse-param and %lex-param instead of obsolescent
70005         YYPARSE_PARAM and YYLEX_PARAM.
70006         (meridian_table, month_and_day_table, time_units_table,
70007         relative_time_table, time_zone_table, military_table,
70008         lookup_zone, lookup_word, get_date):
70009         Use NULL instead of 0 where appropriate.
70010         (to_hour): Avoid abort (), to avoid a dependency on
70011         stdlib.h.
70012         (yyerror, yylex): Now accepts parser_control * arg.
70013         (main) [TEST]: Use '\0' rather than 0 for char.
70014
70015 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70016
70017         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70018
70019 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70020
70021         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70022         It's now the caller's responsibility to handle the case where
70023         !HAVE_GETPAGESIZE && !defined getpagesize.
70024
70025         * lib/mktime.c (leapyear): Arg is long int, not int.
70026
70027 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70028
70029         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70030
70031 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70032
70033         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70034         missing.  Problem reported by James Youngman.
70035
70036 2004-10-16  Simon Josefsson  <jas@extundo.com>
70037
70038         * gnulib-tool: Fix comments.  Fix parse problem.
70039         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70040
70041 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70042
70043         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70044         implementation of getopt_long.  Problem reported by Alexander Taler in:
70045         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70046
70047 2004-10-15  Bruno Haible  <bruno@clisp.org>
70048
70049         * gnulib-tool: Untabify. Initialize supplied_libname.
70050         (func_usage): More homogenous output.
70051         (func_modules_transitive_closure, func_modules_to_filelist,
70052         func_emit_lib_Makefile_am): New functions.
70053         (func_import): New function, extracted from big case statement. Use
70054         func_get_license, func_modules_transitive_closure,
70055         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70056         opt_lgpl. Don't use test -a, as it's not portable.
70057         (func_create_testdir): Use func_modules_transitive_closure,
70058         func_modules_to_filelist, func_emit_lib_Makefile_am.
70059
70060 2004-10-15  Bruno Haible  <bruno@clisp.org>
70061
70062         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70063
70064 2004-10-15  Bruno Haible  <bruno@clisp.org>
70065
70066         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70067         the portions belonging to each module.
70068         Suggested by Derek Robert Price <derek@ximbiot.com>.
70069
70070 2004-10-12  Simon Josefsson  <jas@extundo.com>
70071
70072         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70073         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70074         to real functions.
70075
70076 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70077
70078         * modules/vsnprintf: New file.
70079
70080 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70081
70082         * m4/vsnprintf.m4: New file.
70083
70084 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70085
70086         * lib/vsnprintf.h: New file.
70087         * lib/vsnprintf.c: New file.
70088
70089 2004-10-11  Bruno Haible  <bruno@clisp.org>
70090
70091         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70092         vsnprintf.
70093
70094 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70095
70096         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70097
70098 2004-10-07  Bruno Haible  <bruno@clisp.org>
70099
70100         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70101         fits into the provided buffer.
70102
70103 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70104
70105         * lib/diacrit.c, diacrit.h: Add GPL notice.
70106
70107         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70108         notice.
70109         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70110         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70111         This avoids a potential constant-folding bug.
70112
70113 2004-10-05  Bruno Haible  <bruno@clisp.org>
70114
70115         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70116         for the declaration of strsep.
70117
70118 2004-10-05  Bruno Haible  <bruno@clisp.org>
70119
70120         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70121
70122 2004-10-04  Simon Josefsson  <jas@extundo.com>
70123
70124         * modules/memmem: New file.
70125         * tests/test-memmem.c: New file.
70126         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70127
70128 2004-10-04  Simon Josefsson  <jas@extundo.com>
70129
70130         * m4/memmem.m4: New file.
70131
70132 2004-10-04  Simon Josefsson  <jas@extundo.com>
70133
70134         * lib/memmem.h: New file.
70135         * lib/memmem.c: New file, taken from glibc.
70136
70137 2004-10-04  Simon Josefsson  <jas@extundo.com>
70138
70139         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70140         '#ifdef USE_UNLOCKED_IO'.
70141
70142 2004-10-04  Simon Josefsson  <jas@extundo.com>
70143
70144         * config/srclist.txt: Add memmem from glibc.
70145
70146 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70147
70148         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70149
70150         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70151         modules/exclude, modules/getdate, modules/getline,
70152         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70153         modules/getusershell, modules/linebuffer, modules/md5,
70154         modules/mountlist, modules/posixtm, modules/readtokens,
70155         modules/readutmp, modules/regex, modules/sha1,
70156         modules/version-etc, modules/yesno:
70157         Remove dependency on unlocked-io.
70158
70159 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70160
70161         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70162
70163         * m4/unlocked-io.m4: Add copyright notice.
70164         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70165
70166 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70167
70168         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70169         * lib/xmalloc.c (xmemdup): Likewise.
70170         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70171         XFREE): Remove these long-obsolescent macros.
70172         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70173         * lib/xstrdup.c: Remove.
70174
70175         * lib/regex.c (re_comp): Cast gettext return value to char *,
70176         Problem reported by Martin Neitzel via Mark D. Baushke.
70177
70178 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70179
70180         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70181         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70182         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70183         regex.c, sha1.c, version-etc.c, yesno.c:
70184         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70185         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70186         the includer's responsibility.
70187
70188         Sync from coreutils.
70189
70190         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70191         points to the start of a string, as the C Standard says the
70192         resulting behavior is undefined.
70193
70194         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70195         simple -> simple_backups, numbered_existing ->
70196         numbered_existing_backups, numbered -> numbered_backups
70197         to avoid shadowing problems.  All uses changed.
70198         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70199         * lib/backupfile.c (check_extension, numbered_backup):
70200         Rename locals to avoid shadowing 'basename'.
70201         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70202         once.
70203
70204         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70205         * lib/.cvsignore: Add getopt.h.
70206
70207 2004-10-04  Bruno Haible  <bruno@clisp.org>
70208
70209         * modules/README: New file.
70210         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70211         not a module.
70212
70213 2004-10-02  Jim Meyering  <jim@meyering.net>
70214
70215         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70216
70217 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70218
70219         * modules/strsep: New file.
70220
70221 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70222
70223         * m4/strsep.m4: New file.
70224
70225 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70226
70227         * lib/strsep.h: New file.
70228         * lib/strsep.c: New file.
70229
70230 2004-10-01  Simon Josefsson  <jas@extundo.com>
70231
70232         * lib/snprintf.c (snprintf): Handle size==0.
70233
70234 2004-10-01  Simon Josefsson  <jas@extundo.com>
70235             Bruno Haible  <bruno@clisp.org>
70236
70237         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70238         (snprintf): Declare 'args'.
70239
70240 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70241
70242         * lib/snprintf.c: Remove comments as to why each header is needed.
70243
70244 2004-10-01  Bruno Haible  <bruno@clisp.org>
70245
70246         * MODULES.html.sh: Add strsep.
70247
70248 2004-09-30  Simon Josefsson  <jas@extundo.com>
70249
70250         * modules/snprintf: New file.
70251
70252 2004-09-30  Simon Josefsson  <jas@extundo.com>
70253
70254         * m4/snprintf.m4: New file.
70255
70256 2004-09-30  Simon Josefsson  <jas@extundo.com>
70257
70258         * lib/snprintf.h, lib/snprintf.c: New files.
70259
70260 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70261
70262         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70263         (hol_entry_help): Never translate an empty string.
70264         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70265         * lib/argp.h (OPTION_NO_TRANS): New option.
70266
70267 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70268
70269         * modules/argp (Maintainer): Replace Simon Josefsson
70270         by Sergey Poznyakoff.
70271
70272 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70273
70274         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70275         changes merged back into glibc.
70276
70277 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70278
70279         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70280
70281 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70282
70283         * lib/xvasprintf.c: Include xalloc.h.
70284         (xvasprintf): Use xalloc_die, not xmalloc_die.
70285
70286 2004-09-29  Bruno Haible  <bruno@clisp.org>
70287
70288         * modules/alloca-opt: New file, derived from modules/alloca.
70289         * modules/allocsa: Depend on alloca-opt instead of alloca.
70290         * modules/setenv: Likewise.
70291         * modules/vasnprintf: Likewise.
70292         * MODULES.html.sh: Add alloca-opt.
70293
70294 2004-09-28  Simon Josefsson  <jas@extundo.com>
70295
70296         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70297         LGPL, and to replace license template from GPL to LGPL.
70298
70299 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70300
70301         * modules/dummy: Change license to LGPL.
70302
70303 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70304
70305         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70306
70307 2004-09-24  Simon Josefsson  <jas@extundo.com>
70308
70309         * modules/minmax (License): Change from GPL to LGPL.
70310
70311 2004-09-23  Simon Josefsson  <jas@extundo.com>
70312
70313         * gnulib-tool (--import): Typo.
70314
70315 2004-09-23  Simon Josefsson  <jas@extundo.com>
70316
70317         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70318
70319 2004-09-22  Bruno Haible  <bruno@clisp.org>
70320
70321         * modules/*: Add 'License' field.
70322         * gnulib-tool: Accept --extract-license option.
70323         (func_get_license): New function.
70324
70325 2004-09-21  Bruno Haible  <bruno@clisp.org>
70326
70327         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70328         Reported by Simon Josefsson.
70329
70330 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70331
70332         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70333         gl_AC_TYPE_LONG_LONG.
70334
70335 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70336
70337         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70338
70339 2004-09-18  Simon Josefsson  <jas@extundo.com>
70340         and  Paul Eggert  <eggert@cs.ucla.edu>
70341
70342         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70343         calls with autoreconf.  Define GL_LIB.
70344
70345 2004-09-14  Karl Berry  <karl@gnu.org>
70346
70347         * config/srclist.txt: unsync setenv.c, sigh.
70348
70349 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70350
70351         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70352         Problem reported by Bruno Haible in:
70353         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70354
70355 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70356
70357         * config/srclist.txt: Comment out argp-pvh.c.
70358
70359 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70360
70361         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70362         in case some system header has #define'd it.  Problem reported by
70363         Soeren D. Schulze in
70364         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70365
70366 2004-09-09  Karl Berry  <karl@gnu.org>
70367
70368         * regex.[ch]: delete from the root.  These were supposed to be
70369                 synced with emacs cvs, but this has not happened for about
70370                 a year, and anyway nothing else uses emacs regex.[ch].
70371                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70372                 lib/regex[.ch] is untouched.
70373
70374 2004-09-09  Bruno Haible  <bruno@clisp.org>
70375
70376         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70377
70378 2004-09-09  Bruno Haible  <bruno@clisp.org>
70379
70380         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70381         modifications.
70382         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70383
70384 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70385
70386         * modules/xvasprintf: New file.
70387         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70388
70389 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70390
70391         * lib/xvasprintf.h: New file.
70392         * lib/xvasprintf.c: New file.
70393         * lib/xasprintf.c: New file.
70394
70395 2004-09-08  Bruno Haible  <bruno@clisp.org>
70396
70397         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70398
70399 2004-09-08  Bruno Haible  <bruno@clisp.org>
70400
70401         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70402         length is > INT_MAX.
70403         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70404         more.
70405
70406 2004-09-08  Bruno Haible  <bruno@clisp.org>
70407
70408         * lib/stdint_.h: New file, taken from GNU clisp.
70409
70410 2004-09-08  Bruno Haible  <bruno@clisp.org>
70411             Oskar Liljeblad  <oskar@osk.mine.nu>
70412
70413         * modules/stdint: New file.
70414         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70415
70416 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70417
70418         Import from coreutils.
70419         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70420         strings on unbounded length.  alloca's performance benefits aren't
70421         that important here.
70422         (V_STRDUP): Remove.
70423         (parse_with_separator): New function, with most of the internals
70424         of the old parse_user_spec.  Allow user to omit both user and group,
70425         for compatibility with FreeBSD.
70426         Clone only the user name, not the entire spec.
70427         Do not set *uid, *gid unless entirely successful.
70428         Avoid memory leak in some failing cases.
70429         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70430         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70431         (parse_user_spec): Rewrite to use parse_with_separator.
70432
70433 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70434
70435         * modules/userspec: Don't depend on alloca.
70436
70437 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70438
70439         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70440
70441 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70442
70443         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70444         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70445         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70446
70447 2004-08-16  Simon Josefsson  <jas@extundo.com>
70448
70449         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70450         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70451         Add --dry-run for --import.
70452         Let user provided command line parameters override configure.ac
70453         settings.
70454
70455 2004-08-12  Simon Josefsson  <jas@extundo.com>
70456
70457         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70458         as discussed with Paul Eggert in threads rooted at
70459         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70460         and
70461         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70462         Before, the test was empty, and relied on ELIDE_CODE in source
70463         code.)
70464         (gl_PREREQ_GETOPT): New macro.
70465         (gl_GETOPT): Use them.
70466
70467 2004-08-12  Simon Josefsson  <jas@extundo.com>
70468
70469         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70470         * lib/getopt_.h: Renamed from getopt.h.
70471
70472 2004-08-12  Simon Josefsson  <jas@extundo.com>
70473
70474         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70475         Change default library name from libfoo to libgnu.
70476         Now, if you have a configure.ac that says:
70477                 gl_SOURCE_BASE(gl)
70478                 gl_M4_BASE(gl/m4)
70479                 gl_MODULES(error getopt etcetera)
70480                 gl_INIT
70481         you can import all you need by running:
70482                 ../gnulib/gnulib-tool --import
70483
70484         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70485         (Makefile.am): Rewrite, use logic from argz.
70486         (Include): Use <getopt.h> instead of "getopt.h".
70487
70488 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         * modules/argp (Files): Add m4/unlocked-io.m4.
70491         (Depends-on): Add extensions.
70492
70493 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70494
70495         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70496         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70497         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70498         Check for program_invocation_name, program_invocation_short_name,
70499         flockfile, funlockfile, features.h, _getopt_long_only_r.
70500
70501 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70502
70503         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70504         its complicated substitute.
70505         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70506         and program_invocation_name.
70507         (__argp_basename) [!_LIBC]: Remove; the only use was
70508         replaced by its body.
70509         (__argp_short_program_name): Change condition from
70510         !defined __argp_short_program_name to
70511         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70512         to match argp-namefrob.h.
70513         (__argp_failure): Don't assume strerror_r returns char *.
70514         * lib/argp-parse.c (N_): Define unconditionally.
70515         (argp_default_options): Fill out initializers with 0 to avoid
70516         gcc warnings.
70517
70518 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70519
70520         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
70521         getopt1.c.
70522
70523 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70524
70525         Merge from coreutils.
70526
70527         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
70528
70529         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
70530         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
70531
70532 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70533
70534         Merge from coreutils.
70535
70536         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
70537         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
70538         for Reliant Unix 5.43.
70539
70540         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
70541         (union fooround): Use uintmax_t, not long int.
70542         The rest is a merge from libc:
70543         [defined _LIBC]: Include <shlib-compat.h>.
70544         (_obstack) [defined _LIBC]: Remove after 2.3.4.
70545
70546         * lib/settime.c (settime): Recode to avoid warning with
70547         Sun Forte C 6U2.
70548
70549         * lib/strverscmp.c: Convert to UTF-8.
70550
70551 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70552
70553         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70554         m4/uintmax_t.m4.
70555
70556 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70557
70558         * modules/xalloc-die: New file.
70559         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
70560
70561         * modules/md5 (Files): Add m4/uint32_t.m4.
70562         * modules/sha1: Renamed from modules/sha.
70563         (Files):
70564         Rename lib/sha.h to lib/sha1.h.
70565         Rename lib/sha.c to lib/sha1.c.
70566         Rename m4/sha.m4 to m4/sha1.m4.
70567         (lib_SOURCES): Likewise.
70568         (configure.ac): Rename gl_SHA to gl_SHA1.
70569         (Include): sha.h -> sha1.h.
70570
70571 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70572
70573         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
70574         * m4/sha1.m4: Renamed from sha.m4.
70575         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
70576
70577 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70578
70579         * lib/obstack.h (obstack_empty_p):
70580         Don't assume that chunk->contents is suitably aligned.
70581         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
70582         Likewise. Problem reported by Benno in
70583         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
70584
70585         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
70586         readable.  This could be improved further but it'd take some work.
70587
70588 2004-08-08  Simon Josefsson  <jas@extundo.com>
70589
70590         * modules/xgethostname (Depends-on): Remove exit and error (not
70591         used).
70592
70593         * modules/getpass-gnu: Add getpass.h.
70594         (Depends-on): Add stdbool.
70595         * modules/getpass: Add getpass.h.
70596
70597 2004-08-08  Simon Josefsson  <jas@extundo.com>
70598
70599         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
70600         Check getpass declaration.
70601
70602 2004-08-08  Simon Josefsson  <jas@extundo.com>
70603
70604         * lib/xgethostname.c: Don't include error.h (not used).
70605
70606         * lib/getpass.h: Add.
70607         * lib/getpass.c: Include getpass.h first.
70608
70609 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
70610
70611         * lib/xalloc-die.c: New file.
70612         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
70613         All uses removed.
70614         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
70615         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
70616         xalloc-die.c.
70617         (_, N_, xalloc_die): Move to xalloc-die.c.
70618         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
70619         so that we needn't mess with xalloc_msg_memory_exhausted.
70620
70621         * lib/sha1.h: Renamed from sha.h.
70622         (SHA1_H): Renamed from _SHA_H.
70623         (sha1_ctx): Renamed from sha_ctx.
70624         (sha1_init_ctx): Renamed from sha_init_ctx.
70625         (sha1_process_block): Renamed from sha_process_block.
70626         (sha1_process_bytes): Renamed from sha_process_bytes.
70627         (sha1_finish_ctx): Renamed from sha_finish_ctx.
70628         (sha1_read_ctx): Renamed from sha_read_ctx.
70629         (sha1_stream): Renamed from sha_stream.
70630         (sha1_buffer): Renamed from sha_buffer.
70631         * lib/sha1.c: Likewise; renamed from sha.c.
70632         Do not include <sys/types.h>.
70633         Include <stddef.h> rather than <stdlib.h>.
70634
70635 2004-08-08  Bruno Haible  <bruno@clisp.org>
70636
70637         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
70638         FILESYSTEM_PREFIX_LEN.
70639         * lib/progreloc.c: Likewise.
70640         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
70641
70642 2004-08-06  Simon Josefsson  <jas@extundo.com>
70643
70644         * modules/progname (Depends-on): Don't depend on stdbool.
70645
70646 2004-08-06  Simon Josefsson  <jas@extundo.com>
70647
70648         * modules/getsubopt: New file.
70649         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70650         getsubopt.
70651
70652 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70653
70654         More merge from coreutils.
70655
70656         * m4/utimens.m4, m4/utimecmp.m4: New files.
70657         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
70658         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
70659         prereq.m4, sha.m4: Import changes from coreutils.
70660
70661 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70662
70663         More merge from coreutils.
70664         * modules/raise, modules/readtokens0, modules/utimens:
70665         * modules/utimecmp, module/xnanosleep: New files.
70666         * modules/strftime: Add lib/strftime.h.
70667         Change include from <time.h> to "strftime.h".
70668         * modules/yesno: Add lib/yesno.h.
70669         * modules/backupfile: Remove lib/addext.c.
70670         * modules/euidaccess: Add stat-macros.h.
70671         * modules/canonicalize, modules/euidaccess,
70672         modules/filemode, modules/lchown, modules/makepath,
70673         modules/rmdir, modules/stat: Likewise.
70674
70675 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70676
70677         Merge from tar.
70678         * lib/argp-help.c (make_hol, hol_append): Don't assume that
70679         SIZE_MAX is a valid preprocessor constant.
70680         (__argp_basename): Change from "#ifndef _LIBC"
70681         to "#ifndef __argp_short_program_name", so that
70682         we don't compile these functions for tar.
70683
70684         More merges from coreutils.
70685         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
70686         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
70687         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
70688         * lib/addext.c: Remove; no longer needed.
70689         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70690         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70691         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70692         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70693         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70694         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70695         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70696         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70697         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70698         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70699         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70700         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70701         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70702         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70703         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70704         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70705         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70706         Import changes from coreutils.
70707
70708 2004-08-05  Simon Josefsson  <jas@extundo.com>
70709
70710         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70711
70712 2004-08-05  Simon Josefsson  <jas@extundo.com>
70713
70714         * m4/getsubopt.m4: New file.
70715
70716 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70717
70718         Merge from coreutils.
70719
70720         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70721         * m4/getcwd-path-max.m4: New files.
70722
70723         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70724         FILESYSTEM_PREFIX_LEN ->
70725         FILE_SYSTEM_PREFIX_LEN.
70726         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70727         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70728         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70729         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70730
70731         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70732         prerequisite modules now handle the DOS stuff.
70733         Don't check for unistd.h.
70734
70735 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70736
70737         Merge from coreutils.
70738
70739         * lib/.gdb-history: Remove; this doesn't belong here.
70740
70741         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70742         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70743         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70744         * lib/getcwd.c: New files.
70745
70746         * lib/dirname.h: Include <stdbool.h>.
70747         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70748         for consistency with POSIX terminology.  All uses changed.
70749         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70750         (strip_trailing_slashes): Use bool for booleans.
70751         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70752
70753         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70754         sometimes returns a positive errno value even when it succeeds.
70755         (print_errno_message) [!LIBC]: Fall back on strerror if
70756         __strerror_r fails.
70757
70758         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70759         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70760         (longest_relative_suffix): New function.
70761         (path_concat): Use it.  Assume first argument is not NULL.
70762         Port to DOS.  Omit redundant separators.
70763         Report an error instead of returning NULL.
70764         Use mempcpy instead of memcpy.
70765         (xpath_concat): Remove: not declared or used.
70766
70767         * lib/same.h: Include <stdbool.h>
70768         (same_name): Return bool, not int.
70769         * lib/same.c (same_name): Likewise.
70770         (errno): Don't declare; we assume C89 or better now.
70771
70772         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70773         if not already defined.
70774
70775         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70776         * lib/dup-safer.c (errno): Likewise.
70777
70778 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70779
70780         Merge from coreutils.
70781         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70782         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70783         * modules/path-concat: Don't depend on strdup.
70784
70785 2004-08-03  Simon Josefsson  <jas@extundo.com>
70786
70787         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70788         * lib/progname.h: Don't include stdbool.h.
70789
70790 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70791
70792         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
70793         * MODULES.html.sh (func_all_modules): Remove fatal.
70794
70795 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70796
70797         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
70798
70799 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70800
70801         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
70802         working.
70803
70804 2004-08-02  Simon Josefsson  <jas@extundo.com>
70805
70806         * lib/getsubopt.h: New file, with comments from Bruno Haible.
70807         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
70808         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
70809
70810 2004-08-01  Simon Josefsson  <jas@extundo.com>
70811
70812         * lib/xgetdomainname.c: Include stdlib.h, for free().
70813
70814 2004-07-19  Bruno Haible  <bruno@clisp.org>
70815
70816         * MODULES.html.sh (func_all_modules): Add dummy.
70817
70818 2004-07-16  Simon Josefsson  <jas@extundo.com>
70819
70820         * modules/dummy: New file.
70821
70822 2004-07-16  Simon Josefsson  <jas@extundo.com>
70823
70824         * lib/dummy.c: New file.
70825
70826 2004-07-16  Bruno Haible  <bruno@clisp.org>
70827
70828         * lib/backupfile.h: Add extern "C" for C++.
70829         * lib/closeout.h: Likewise.
70830         * lib/copy-file.h: Likewise.
70831         * lib/findprog.h: Likewise.
70832         * lib/full-write.h: Likewise.
70833         * lib/pathname.h: Likewise.
70834         * lib/progname.h: Likewise.
70835         * lib/stpcpy.h: Likewise.
70836         * lib/stpncpy.h: Likewise.
70837         * lib/strcase.h: Likewise.
70838         * lib/strstr.h: Likewise.
70839         * lib/xalloc.h: Likewise.
70840
70841         * lib/mbswidth.h: Add extern "C" for C++.
70842         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
70843
70844 2004-07-13  Robert Millan  <robertmh@gnu.org>
70845
70846         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
70847
70848 2004-07-09  Simon Josefsson  <jas@extundo.com>
70849
70850         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
70851         failed without this.)
70852
70853 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70854
70855         * modules/chown (Files): Add lib/fchown-stub.c, since
70856         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
70857
70858 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70859
70860         * lib/fchown-stub.c: New file.
70861
70862 2004-06-24  Jim Meyering  <jim@meyering.net>
70863
70864         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
70865
70866 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70867
70868         * modules/argz: Omit "#include".
70869
70870         * MODULES.html.sh (func_all_modules): Add calloc, to match
70871         2004-06-01 addition of calloc module.
70872
70873 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70874
70875         * m4/argz.m4: New file, which is autoupdated from libtool.
70876
70877 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70878
70879         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
70880         libtool.
70881
70882 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70883
70884         * config/srclist-update: Don't insist on "USA." before the
70885         close-comment, as libtool omits the period and puts the */ on a
70886         separate line.
70887         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
70888         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
70889
70890 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
70891
70892         * modules/argz: New file.
70893         * MODULES.html.sh (func_all_modules): Add argz.
70894
70895 2004-06-12  Jim Meyering  <jim@meyering.net>
70896         and  Paul Eggert  <eggert@cs.ucla.edu>
70897
70898         * modules/hash (Files): Add lib/xalloc.h.
70899         * modules/pipe (Depends-on): Add wait-process.
70900         * modules/stat (Depends-on): Add xalloc.
70901         * modules/userspec (Files): Add lib/userspec.h.
70902         * modules/xstrto
70903
70904         Upgrade from gettext-0.13.
70905         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
70906         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
70907         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
70908
70909 2004-06-10  Jim Meyering  <jim@meyering.net>
70910
70911         * lib/calloc.c: New file.
70912
70913 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70914
70915         * lib/getdate.y (yylex): Allow space between sign and number.
70916         Problem reported by Dan Jacobson.
70917
70918 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70919
70920         Merge from coreutils CVS.
70921
70922         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
70923         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
70924         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
70925         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
70926         xstrtol.m4: Fix copyright date and/or serial number.
70927
70928         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
70929         See if we need an fchown replacement.
70930         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
70931         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
70932         and use the replacement function if we detect either defect.
70933
70934         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
70935         gl_UTIMECMP.
70936
70937 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70938         and  Jim Meyering  <jim@meyering.net>
70939
70940         Merge from coreutils CVS.
70941
70942         * lib/stat-macros.h: New file, with contents from file-type.h
70943         and coreutils' system.h.
70944         * lib/file-type.c: Include "stat-macros.h".
70945         * lib/file-type.h (file_type): Move all macro definitions to new file,
70946         stat-macros.h.
70947
70948         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
70949         Wrap old code with this conditional.
70950         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
70951         function that does not dereference symlinks.
70952         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
70953
70954         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
70955         dependency problems.
70956         (xreadlink): Accept new arg SIZE, for efficiency.
70957         All decls and uses changed.
70958         * lib/xreadlink.h: Include <stddef.h>, for size_t.
70959
70960         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
70961         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
70962
70963         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
70964         sysexits.h.
70965
70966 2004-06-01  Jim Meyering  <jim@meyering.net>
70967
70968         * m4/calloc.m4: New file.
70969
70970 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
70971
70972         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
70973         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
70974         Also, fix a typo in a diagnostic.
70975
70976 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70977
70978         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
70979         or AC_FUNC_REALLOC.
70980
70981 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70982
70983         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
70984         macros to be defined.
70985         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
70986         the allocator returns NULL because the requested size is zero.
70987
70988 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70989
70990         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
70991         var.  Add comment explaining why libc still defines it.  This
70992         merges the following patch from glibc:
70993         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
70994
70995 2004-05-20  Andreas Schwab  <schwab@suse.de>
70996
70997         * m4/free.m4: Replace free if it not known to work, not the other
70998         way round.
70999
71000 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71001
71002         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71003         present in glibc since revision 1.1 of this file.
71004         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71005         obstack_alignment_mask, obstack_alloc, obstack_base,
71006         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71007         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71008         obstack_grow0, obstack_init, obstack_int_grow,
71009         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71010         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71011         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71012         nonexistent functions.
71013
71014 2004-05-18  Karl Berry  <karl@gnu.org>
71015
71016         * config/srclist.txt: break link for vasnprintf.c.
71017
71018 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71019
71020         Port obstack to the AS/400, where pointers are 16 bytes wide and
71021         you cannot cast an integer to a valid pointer.  This patch is
71022         currently waiting to be integrated into glibc; see
71023         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71024
71025         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71026         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71027         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71028         (struct obstack): temp member is now a union of a pointer and
71029         an integer, instead of an integer.  All integer uses changed.
71030         This does not affect the physical layout of struct obstack,
71031         except on hosts (like the AS/400) where the size or alignment of
71032         void * is greater than that of ptrdiff_t.
71033         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71034         __STDC__)]: Store temporary in pointer member of union, not
71035         integer member.
71036         * lib/obstack.c: Include <stddef.h>, for offsetof.
71037         (struct fooalign): Remove; it doesn't need a name.
71038         (union fooround): Change double to long double, and add void *.
71039         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71040         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71041         not a macro.  Hence the values are always int; so remove all
71042         casts-to-int in uses.
71043
71044 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71045
71046         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71047         we can get this patch merged into glibc.
71048
71049 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71050             Paul Eggert  <eggert@cs.ucla.edu>
71051
71052         * m4/argp: Depend on alloca.
71053
71054 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71055             Paul Eggert  <eggert@cs.ucla.edu>
71056
71057         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71058         freecoding.
71059
71060 2004-05-17  Bruno Haible  <bruno@clisp.org>
71061
71062         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71063         precision that consists of a '.' followed by an empty digit string.
71064         Patch by Tor Lillqvist <tml@iki.fi>.
71065
71066 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71067
71068         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71069         for backward compatibility with older code.  We need our own
71070         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71071         it under some other name, and our alloca.h will define it.
71072
71073 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71074             Derek Price  <derek@ximbiot.com>
71075
71076         * lib/alloca.c: Include <alloca.h>, to get our interface.
71077         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71078         include <alloca.h> first.  Use C89 prototype for alloca; this
71079         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71080         Use #elif for simplicity, since we can assume C89 now.
71081         Don't try to source the system alloca.h since it will not be found
71082         and to prevent recursively including its replacement.
71083         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71084         * lib/regex.c: Likewise.
71085
71086 2004-05-16  Derek Price  <derek@ximbiot.com>
71087             Paul Eggert  <eggert@cs.ucla.edu>
71088
71089         getline cleanup.  This changes the getndelim2 API: both order of
71090         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71091         no delimiter).
71092
71093         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71094         interface does that.
71095         (getline): Always use getdelim, so that we don't have two
71096         copies of this code.
71097         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71098         if available.
71099         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71100         (GETNDELIM2_MAXIMUM): New macro.
71101         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71102         instead of the old practice of delim2==0.  All callers changed.
71103         Return -1 on overflow, instead of returning junk.
71104         Do not set *linesize unless allocation succeeds.
71105         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71106         that we include sys/types.h.
71107         * lib/getnline.h: Likewise.
71108         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71109         (getndelim2): Reorder arguments.
71110         * lib/getnline.c (getnline, getndelim):
71111         Don't discard the NMAX argument.
71112         (getnline): Invoke getndelim, to avoid code duplication.
71113         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71114         of (size_t) -1 by callers of the getnline family.
71115
71116 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71117
71118         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71119         Check for gettimeofday.
71120         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71121         Check for settimeofday, stime.
71122
71123 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71124
71125         * lib/nanosleep.c (suspended): Change its type from int to
71126         sig_atomic_t volatile.
71127         (first_call): Make it private to rpl_nanosleep, and have it
71128         be zero initially as that's a bit faster.
71129         (my_usleep): Round up fractional times instead of truncating them,
71130         as this is the usual meaning for 'sleep'.
71131
71132         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71133         doesn't work.
71134         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71135         (ENOSYS): Define if not defined.
71136         (settime): Fall back on stime if it exists and settimeofday fails.
71137         But don't bother with fallbacks if a method fails with errno == EPERM.
71138
71139 2004-05-11  Jim Meyering  <jim@meyering.net>
71140
71141         Prior to this change, the save_cwd caller required read access to the
71142         current directory on most systems (ones with the fchdir function).
71143
71144         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71145         fails, try write-only, and finally, resort to using xgetcwd.
71146
71147 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         * lib/obstack.c, obstack.h: Import changes from libc.
71150
71151 2004-04-28  Bruno Haible  <bruno@clisp.org>
71152
71153         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71154         also implicitly appends .exe to executables.
71155         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71156         accepts Windows pathnames.
71157         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71158         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71159         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71160         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71161         Reported by Derek Robert Price <derek@ximbiot.com>.
71162
71163 2004-04-21  Karl Berry  <karl@gnu.org>
71164
71165         * config/srclist.txt (localcharset.c): break sync.
71166
71167 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71168
71169         * m4/host-os.m4: Add a copyright notice.
71170
71171 2004-04-20  Jim Meyering  <jim@meyering.net>
71172
71173         Change UTILS_ to gl_ in AC_DEFINE'd names.
71174         Change utils_- and jm_-prefixed variables, too.
71175         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71176         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71177         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71178
71179         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71180         Don't emit trailing blanks.
71181         Also rename jm_-prefixed variables to have gl_ prefix.
71182
71183         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71184         Also rename jm_-prefixed variables to have gl_ prefix.
71185
71186         * m4/jm-macros.m4: Reflect the renamings.
71187         * m4/prereq.m4: Likewise.
71188
71189 2004-04-20  Jim Meyering  <jim@meyering.net>
71190
71191         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71192         memory.
71193
71194 2004-04-20  Jim Meyering  <jim@meyering.net>
71195             Bruno Haible  <bruno@clisp.org>
71196
71197         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71198         memory when realloc fails.
71199
71200 2004-04-19  Jim Meyering  <jim@meyering.net>
71201
71202         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71203         now that readutmp.c may call `free (0)'.
71204
71205 2004-04-19  Bruno Haible  <bruno@clisp.org>
71206
71207         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71208         * m4/inttypes_h.m4: Likewise.
71209         * m4/stdint_h.m4: Likewise.
71210         * m4/intmax_t.m4: Likewise.
71211         * m4/uintmax_t.m4: Likewise.
71212
71213 2004-04-18  Jim Meyering  <jim@meyering.net>
71214
71215         * m4/prereq.m4: Don't forbid jm_ prefix.
71216
71217         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71218         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71219         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71220         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71221         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71222         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71223         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71224         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71225         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71226         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71227         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71228         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71229         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71230         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71231         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71232         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71233         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71234         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71235         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71236
71237 2004-04-18  Jim Meyering  <jim@meyering.net>
71238
71239         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71240         failure, don't leak memory and do call END_UTMP_ENT.
71241
71242 2004-04-16  Jim Meyering  <jim@meyering.net>
71243
71244         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71245         coreutils' stat program.
71246         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71247
71248 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71249
71250         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71251         C89.
71252         (CHAR_BIT): Remove, since we assume C89.
71253         Include <stdint.h> if available, as per current Autoconf CVS advice.
71254
71255 2004-03-31  Jim Meyering  <jim@meyering.net>
71256
71257         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71258         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71259         * m4/xalloc.m4: Likewise.
71260
71261 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71262
71263         Merge from coreutils.
71264
71265         * m4/inttostr.m4: New file.
71266         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71267         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71268         Require gl_CLOCK_TIME.
71269         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71270
71271 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71272
71273         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71274         not bool, to be more consistent with Unix conventions.
71275         Suggested by Bruno Haible.
71276
71277         Merge from coreutils.
71278
71279         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71280         * lib/umaxtostr.c: New files.
71281
71282         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71283         the usual <time.h> dance.
71284         (get_date): Change signature to support fractional time stamps.
71285         All callers changed.
71286         * lib/getdate.y: Include "getdate.h" first, as we can now
71287         assume C89 and don't need to worry about 'const'.
71288         Similarly, include "unlocked-io.h" near start, not in middle.
71289         Include <limits.h>.
71290         (textint.value): Use long int rather than int.
71291         (textint.digits): Use size_t rather than int.
71292         (BILLION, LOG10_BILLION): New constants.
71293         (parser_control): New member rel_ns.  Members day_ordinal,
71294         time_zone, month, day, hour, minutes, rel_year, rel_month,
71295         rel_day, rel_hour, rel_minutes, rel_seconds
71296         are now long int, not int.  Member seconds is now struct timespec,
71297         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71298         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71299         not int.
71300         (%union.intval): Now long int, not int.
71301         New member timespec.
71302         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71303         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71304         (spec): Now is a timespec or an item list.
71305         (timespec, items): New nonterminals.
71306         (time, rel, relunit, number, get_date):
71307         Add support for fractional seconds.
71308         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71309         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71310         (to_hour): First arg is now long int, not int.
71311         (to_year): Returns long int, not int.
71312         Don't treat year -70 like 70.
71313         (tm_diff): Returns long int, not int.
71314         (lookup_word): Use bool instead of int when appropriate.
71315         (yylex): Use size_t for count, not int.
71316         Detect overflow when parsing large integer constants.
71317         Add support for fractions.
71318         (get_date): Make pointers 'const' if possible.
71319         Use more-portable code to detect integer overflow.
71320         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71321         Don't use ctime; it's not reliable if the year has >4 digits.
71322
71323         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71324         This is for compatibility with BSD.
71325
71326         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71327         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71328         From coreutils' system.h.
71329
71330         * lib/userspec.c: Don't include "posixver.h".
71331         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71332         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71333         compatible extension.  Simplify code by removing a boolean int
71334         that was always nonzero if a string was nonnull.
71335
71336 2004-03-30  Jim Meyering  <jim@meyering.net>
71337
71338         Merge from coreutils.
71339
71340         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71341         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71342         on some systems one must include <grp.h> before it.
71343         Reported by Christian Krackowizer.
71344
71345 2004-03-30  Jim Meyering  <jim@meyering.net>
71346
71347         Merge from coreutils.
71348
71349         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71350
71351         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71352         an empty input stream.
71353
71354         * lib/readtokens.c: Include <stdbool.h>.
71355         (readtoken): Use `size_t' rather than int/long.
71356         All callers adjusted.
71357         Use `bool' rather than `int' where appropriate.
71358         Use memset rather than an explicit loop.
71359         Use x2nrealloc rather than xrealloc.
71360         Allow the use of `\0' as a delimiter.
71361         (readtokens): Likewise.
71362         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71363
71364 2004-03-30  Jim Meyering  <jim@meyering.net>
71365
71366         * m4/realloc.m4: Remove file, since now it does no more than
71367         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71368         the `configure.ac' section of module/realloc.
71369         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71370
71371 2004-03-30  Bruno Haible  <bruno@clisp.org>
71372
71373         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71374         nonnull.
71375
71376 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71377
71378         Merge changes to getloadavg.c from coreutils and Emacs.
71379
71380         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71381         Define to an expression, not to the empty string.
71382         Include cloexec.h and xalloc.h.
71383         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71384         Use set_cloexec_flag rather than rolling our own.
71385         * lib/cloexec.c, lib/cloexec.h: New files.
71386
71387 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71388
71389         * m4/cloexec.m4: New file.
71390
71391 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71392
71393         * lib/getopt.h: Sync with libc CVS.
71394
71395 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71396             Bruno Haible  <bruno@clisp.org>
71397
71398         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71399         mbswidth.
71400
71401 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71402             Bruno Haible  <bruno@clisp.org>
71403
71404         * lib/mbswidth.h: Include <wchar.h> only if
71405         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71406         <wchar.h>.
71407         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71408
71409 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71410
71411         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71412         Sync with libc CVS.
71413         * lib/getopt_int.h: New file, also synced from libc.
71414
71415 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71416
71417         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71418         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71419         Bring back getopt.c, getopt.h, getopt1.c.
71420
71421 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71422
71423         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71424         All uses changed.  Check for sa_sigaction member; this fixes
71425         a bug first reported by Jason Andrade in
71426         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71427
71428 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71429
71430         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71431         '#if' expressions.  Unlike the code it replaces, it does not
71432         depend on (defined _SC_PAGESIZE).  However, it does depend on
71433         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71434         first reported by Jason Andrade in
71435         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71436
71437 2004-02-25  Simon Josefsson  <jas@extundo.com>
71438
71439         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71440
71441 2004-02-25  Simon Josefsson  <jas@extundo.com>
71442
71443         * lib/strdup.h: New file.
71444         * lib/strdup.c: Include it.
71445         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71446         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71447
71448 2004-02-23  Karl Berry  <karl@gnu.org>
71449
71450         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71451         (from fencepost.gnu.org:/gd/gnuorg).
71452
71453 2004-02-23  Karl Berry  <karl@gnu.org>
71454
71455         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71456         * config/srclist.txt: add maintain/standards documents.
71457
71458 2004-02-18  Bruno Haible  <bruno@clisp.org>
71459
71460         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71461         Reported by Derek Robert Price <derek@ximbiot.com>.
71462
71463 2004-02-16  Karl Berry  <karl@gnu.org>
71464
71465         * config/mkinstalldirs, install-sh: update from automake.
71466
71467 2004-02-06  Karl Berry  <karl@gnu.org>
71468
71469         * m4/po.m4: update from gettext 0.14.1.
71470
71471 2004-02-06  Karl Berry  <karl@gnu.org>
71472
71473         * lib/config.charset: update from gettext 0.14.1.
71474
71475 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71476
71477         Add comments and code, prompted by suggestions from Bruno Haible
71478         for sh-quote.
71479         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71480         describing the enum quoting_style values.
71481         * lib/quotearg.c (quotearg_alloc): New function.
71482         (quotearg_buffer_restyled): Treat lone { and } as special.
71483         Treat = as special.  Work around bug with older shells
71484         that "see" a '\' that is really the 2nd byte of a multibyte char.
71485         Quote empty string with shell_quoting_style.
71486
71487 2004-02-03  Bruno Haible  <bruno@clisp.org>
71488
71489         * m4/pipe.m4: New file, from GNU gettext.
71490
71491 2004-02-03  Bruno Haible  <bruno@clisp.org>
71492
71493         * lib/pipe.h: New file, from GNU gettext.
71494         * lib/pipe.c: New file, from GNU gettext.
71495
71496 2004-01-27  Bruno Haible  <bruno@clisp.org>
71497
71498         * m4/execute.m4: New file, from GNU gettext.
71499
71500 2004-01-27  Bruno Haible  <bruno@clisp.org>
71501
71502         * lib/execute.h: New file, from GNU gettext.
71503         * lib/execute.c: New file, from GNU gettext.
71504         * lib/w32spawn.h: New file, from GNU gettext.
71505
71506 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71507
71508         Merge from diffutils.
71509
71510         * lib/file-type.c (file_type): Add typed memory objects.
71511         * lib/file-type.h (S_TYPEISTMO): New macro.
71512
71513         * lib/c-stack.h (c_stack_action): Remove argv argument.
71514         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71515         (die): Don't calculate message unless segv_action returns.
71516         (get_stack_location, min_address_from_argv, max_address_from_argv,
71517         volatile stack_base, volatile_stack_size): Remove.
71518         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71519         that every segmentation violation is a stack overflow.  (Ouch!)
71520         See Debian bug 136249 (still outstanding) for more info about why
71521         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
71522
71523 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71524
71525         Exit-status fix from coreutils.
71526
71527         Use exit_failure consistently in place of EXIT_FAILURE,
71528         so that program exit statuses are consistent on failure.
71529
71530         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
71531         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
71532         * lib/argmatch.h: Comment fix to match the above.
71533         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
71534         Now a macro referring to exit_failure, instead of a separate
71535         variable.  Include "exitfail.h" to get it.
71536         * lib/xstrtol.h: Include "exitfail.h".
71537         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
71538
71539         * lib/long-options.c (parse_long_options): Use prototype
71540         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
71541         for clarity.
71542
71543 2004-01-21  Jim Meyering  <jim@meyering.net>
71544
71545         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
71546         so as not to conflict with a different-sized __mktime_internal
71547         function in GNU libc.
71548         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
71549         Problem building statically-linked `ls' reported by Michael Brunnbauer.
71550
71551 2004-01-20  Karl Berry  <karl@gnu.org>
71552
71553         * config/config.guess: update from config.
71554
71555         * config/srclistvars.sh: GNUWWWLICENSES for karl.
71556
71557 2004-01-20  Bruno Haible  <bruno@clisp.org>
71558
71559         Safer stack allocation.
71560         * lib/setenv.c: Include allocsa.h.
71561         (alloca): Remove fallback definition.
71562         (freea): Remove macro.
71563         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
71564         instead of freea.
71565
71566 2004-01-20  Bruno Haible  <bruno@clisp.org>
71567
71568         * m4/eealloc.m4: New file, from GNU gettext.
71569
71570 2004-01-20  Bruno Haible  <bruno@clisp.org>
71571
71572         * m4/allocsa.m4: New file, from GNU gettext.
71573
71574 2004-01-20  Bruno Haible  <bruno@clisp.org>
71575
71576         * lib/xallocsa.h: New file, from GNU gettext.
71577         * lib/xallocsa.c: New file, from GNU gettext.
71578
71579 2004-01-20  Bruno Haible  <bruno@clisp.org>
71580
71581         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
71582
71583 2004-01-20  Bruno Haible  <bruno@clisp.org>
71584
71585         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
71586         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
71587         specially.
71588
71589 2004-01-20  Bruno Haible  <bruno@clisp.org>
71590
71591         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
71592         patch.
71593
71594 2004-01-20  Bruno Haible  <bruno@clisp.org>
71595
71596         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
71597
71598 2004-01-20  Bruno Haible  <bruno@clisp.org>
71599
71600         * lib/eealloc.h: New file.
71601
71602 2004-01-20  Bruno Haible  <bruno@clisp.org>
71603
71604         * lib/binary-io.h: Avoid warnings on Cygwin.
71605
71606 2004-01-20  Bruno Haible  <bruno@clisp.org>
71607
71608         * lib/allocsa.h: New file, from GNU gettext.
71609         * lib/allocsa.c: New file, from GNU gettext.
71610
71611 2004-01-18  Karl Berry  <karl@gnu.org>
71612
71613         * doc/gpl.texi, doc/lgpl.texi: new files.
71614
71615 2004-01-18  Karl Berry  <karl@gnu.org>
71616
71617         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
71618         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
71619
71620 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71621
71622         Merge from coreutils.
71623
71624         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
71625         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
71626         (gl_DEFAULT_POSIX2_VERSION): Move
71627         the documentation from 'configure' into 'config.hin',
71628         so that 'configure --help' isn't burdened by it and
71629         we don't have to worry about its formatting there.
71630         Reword the documentation so that it's more succinct
71631         and can be run together into a single paragraph.
71632         * m4/same.m4 (gl_SAME): Check for pathconf.
71633
71634 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71635
71636         Merge from coreutils.
71637
71638         * lib/posixver.c: Include posixver.h.
71639
71640         * lib/same.c: Include <stdbool.h>, <limits.h>.
71641         (_POSIX_NAME_MAX): Define if not defined.
71642         (MIN): New macro.
71643         (same_name): If file names are silently truncated, report
71644         that the file names are the same if they are the same after
71645         the silent truncation.
71646
71647         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
71648         conversion function.
71649         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
71650         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
71651         longer needed.
71652
71653 2004-01-15  Jim Meyering  <jim@meyering.net>
71654
71655         Merge from coreutils.
71656
71657         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
71658         if no library is required.
71659         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
71660         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
71661         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
71662         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
71663         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
71664         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
71665         value, $ac_cv_search_crypt, if it's "none required".
71666         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
71667         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
71668         not gl_FUNC_GETLOADAVG.
71669         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
71670         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
71671
71672 2004-01-15  Jim Meyering  <jim@meyering.net>
71673
71674         Merge from coreutils.
71675
71676         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
71677         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
71678         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
71679
71680         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
71681         optional configure-time default.
71682
71683         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71684
71685         * lib/xreadlink.c (xreadlink): Correct outdated comment.
71686
71687 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
71688
71689         Merge from coreutils.
71690
71691         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71692         value, $ac_cv_search_nanosleep, if it's "none required".
71693
71694 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71695
71696         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71697         with like-named macro in fnmatch.c.
71698         (EXT): Use an internal constant instead.
71699
71700         Merge fnmatch patches from glibc.
71701         * lib/fnmatch.c (mbsinit): Remove define.
71702         Add libc_hidden_ver (__fnmatch, fnmatch).
71703         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71704         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71705
71706 2004-01-14  Karl Berry  <karl@gnu.org>
71707
71708         * config/install-sh: update from automake.
71709
71710 2004-01-13  Karl Berry  <karl@gnu.org>
71711
71712         * config/install-sh: update from automake.
71713
71714 2004-01-09  Karl Berry  <karl@gnu.org>
71715
71716         * config/install-sh: update from automake.
71717
71718 2004-01-05  Karl Berry  <karl@gnu.org>
71719
71720         * config/config.{sub,guess}: update from config.
71721
71722 2003-12-31  Karl Berry  <karl@gnu.org>
71723
71724         * config/depcomp: update from automake.
71725
71726 2003-12-14  Karl Berry  <karl@gnu.org>
71727
71728         * lib/config.charset: update from gettext-runtime.
71729
71730 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71731
71732         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71733         Bug reported by Alfred M. Szmidt.
71734
71735 2003-12-03  Bruno Haible  <bruno@clisp.org>
71736
71737         * m4/gettext.m4: Upgrade from gettext-0.13.
71738         * m4/po.m4: Upgrade from gettext-0.13.
71739         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71740         * m4/intmax.m4: New file, from gettext-0.13.
71741         * m4/printf-posix.m4: New file, from gettext-0.13.
71742
71743 2003-11-29  Karl Berry  <karl@gnu.org>
71744
71745         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71746
71747 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71748             Bruno Haible  <bruno@clisp.org>
71749
71750         * lib/printf-parse.h: Don't include sys/types.h.
71751         (ARG_NONE): New macro.
71752         (char_directive): Change type of *arg_index fields to size_t.
71753         * lib/printf-parse.c: Don't include sys/types.h.
71754         (SSIZE_MAX): Remove macro.
71755         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71756         Remove unnecessary overflow check.
71757         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71758         fields.
71759
71760 2003-11-25  Bruno Haible  <bruno@clisp.org>
71761
71762         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71763
71764 2003-11-25  Bruno Haible  <bruno@clisp.org>
71765
71766         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71767         gt_TYPE_SSIZE_T.
71768
71769 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71770
71771         * modules/alloca: Remove dependency on xalloc.
71772
71773 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71774
71775         * lib/alloca.c: Remove dependency on xalloc module.
71776         (xalloc_die): Remove.
71777         (memory_full) [!defined emacs]: New macro.
71778         [!defined emacs]: Don't include xalloc.h.
71779         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71780         address arithmetic overflows.  Change datatypes a bit to avoid
71781         unnecessary casts.
71782
71783 2003-11-22  Jim Meyering  <jim@meyering.net>
71784
71785         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71786         s/size/size_t/.
71787
71788 2003-11-21  Karl Berry  <karl@gnu.org>
71789
71790         * config/config.{sub,guess}: update from config.
71791
71792 2003-11-18  Karl Berry  <karl@gnu.org>
71793
71794         * config/config.{sub,guess}: update from config.
71795
71796         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
71797
71798 2003-11-17  Paul Eggert  <eggert@twinsun.com>
71799
71800         * README: Mention that S+T cannot overflow if S is the size of
71801         an existing object and T is sufficiently small.
71802
71803 2003-11-17  Jim Meyering  <jim@meyering.net>
71804
71805         On systems without utime and without a utimes function capable of
71806         dealing with a NULL struct utimbuf* argument, this utime replacement
71807         could -- in unusual circumstances -- leak a file descriptor.
71808         * lib/utime.c: Include <unistd.h> and <errno.h>.
71809         (utime_null): Be sure to close `fd' and to preserve errno.
71810         Reported by Geoff Collyer via Arnold Robbins.
71811
71812 2003-11-17  Bruno Haible  <bruno@clisp.org>
71813
71814         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
71815         (Depends-on): Add xsize.
71816
71817 2003-11-17  Bruno Haible  <bruno@clisp.org>
71818
71819         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
71820
71821 2003-11-17  Bruno Haible  <bruno@clisp.org>
71822
71823         * lib/vasnprintf.c (alloca): Remove fallback definition.
71824         (freea): Remove definition.
71825         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
71826         Reported by Paul Eggert.
71827
71828 2003-11-16  Paul Eggert  <eggert@twinsun.com>
71829             Bruno Haible  <bruno@clisp.org>
71830
71831         Protect against address arithmetic overflow.
71832         * lib/printf-args.h: Include stddef.h.
71833         (arguments): Change type of field 'count' to size_t.
71834         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
71835         'unsigned int' where appropriate.
71836         * lib/printf-parse.h: Include sys/types.h.
71837         (char_directive): Change type of *arg_index fields to ssize_t.
71838         (char_directives): Change type of fields 'count', max_*_length to
71839         size_t.
71840         * lib/printf-parse.c: Include sys/types.h and xsize.h.
71841         (SSIZE_MAX): Define fallback value.
71842         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
71843         instead of 'int' where appropriate. Check a_allocated, d_allocated
71844         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
71845         * lib/vasnprintf.c: Include xsize.h.
71846         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
71847         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
71848         overflow. Avoid wraparound when converting a width or precision from
71849         decimal to binary.
71850
71851 2003-11-16  Bruno Haible  <bruno@clisp.org>
71852
71853         Update from GNU gettext.
71854         * lib/printf-parse.c: Generalize to it can be compiled for wide
71855         strings.
71856         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
71857         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
71858         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
71859         SNPRINTF): New macros.
71860         Don't include <alloca.h> if the file is used inside libintl.
71861         (local_wcslen): New function, for Solaris 2.5.1.
71862         (VASNPRINTF): Use it instead of wcslen.
71863
71864 2003-11-16  Bruno Haible  <bruno@clisp.org>
71865
71866         * lib/xsize.h (xmax): New function.
71867         (xsum, xsum3, xsum4): Declare as "pure" functions.
71868
71869 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71870
71871         * modules/xalloc (Files): Undo latest change, since xalloc.h
71872         no longer needs SIZE_MAX or PTRDIFF_MAX.
71873
71874 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71875
71876         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
71877         gl_PTRDIFF_MAX.
71878
71879 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71880
71881         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
71882         "return", to pacify some unknown compiler.  Problem reported
71883         by Joerg Schilling.
71884
71885 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71886
71887         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
71888         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
71889         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
71890         heuristic is just as accurate as far as we know, and it removes a
71891         dependency on size_max.m4 and ptrdiff_max.m4.
71892
71893 2003-11-11  Bruno Haible  <bruno@clisp.org>
71894
71895         * modules/xsize (Files): Add m4/size_max.m4.
71896         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
71897
71898 2003-11-11  Bruno Haible  <bruno@clisp.org>
71899
71900         * m4/size_max.m4: New file.
71901         * m4/ptrdiff_max.m4: New file.
71902         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
71903         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
71904         (gl_XALLOC): Invoke it.
71905
71906 2003-11-11  Bruno Haible  <bruno@clisp.org>
71907
71908         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
71909         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
71910         defined.
71911
71912 2003-11-10  Paul Eggert  <eggert@twinsun.com>
71913
71914         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
71915         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
71916         rejected some allocations of exactly SIZE_MAX - 2 bytes.
71917         From Bruno Haible.
71918         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
71919         not (size_t) -1, since it's defined here.
71920
71921 2003-11-09  Karl Berry  <karl@gnu.org>
71922
71923         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
71924
71925 2003-11-06  Paul Eggert  <eggert@twinsun.com>
71926
71927         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
71928         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
71929         Reject sizes of exactly SIZE_MAX bytes.
71930         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
71931         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
71932
71933 2003-11-05  Bruno Haible  <bruno@clisp.org>
71934
71935         * lib/xsize.h: Include limits.h, to avoid a possible collision with
71936         SIZE_MAX defined in <limits.h> on Solaris.
71937
71938 2003-11-04  Jim Meyering  <jim@meyering.net>
71939
71940         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
71941         variable names, rather than @VAR@.
71942         * modules/poll: Likewise.
71943
71944 2003-11-04  Bruno Haible  <bruno@clisp.org>
71945
71946         * modules/xsize: New file.
71947         * modules/linebreak: Depend on xsize.
71948         * MODULES.html.sh (func_all_modules): Add xsize.
71949
71950 2003-11-04  Bruno Haible  <bruno@clisp.org>
71951
71952         * m4/xsize.m4: New file.
71953
71954 2003-11-04  Bruno Haible  <bruno@clisp.org>
71955
71956         * lib/xsize.h: New file.
71957         * lib/linebreak.c: Include xsize.h.
71958         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
71959         argument for overflow.
71960         Suggested by Paul Eggert.
71961
71962 2003-11-03  Karl Berry  <karl@gnu.org>
71963
71964         * config/config.{guess,sub}: update from config.
71965
71966 2003-11-03  Jim Meyering  <jim@meyering.net>
71967
71968         * modules/userspec (lib_SOURCES): Add userspec.h.
71969         (Include): Add "userspec.h".
71970         Improve description.
71971
71972 2003-11-03  Jim Meyering  <jim@meyering.net>
71973
71974         * lib/userspec.c: Include "userspec.h".
71975         * lib/userspec.h: New file.
71976
71977 2003-11-03  Bruno Haible  <bruno@clisp.org>
71978
71979         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
71980
71981 2003-11-03  Bruno Haible  <bruno@clisp.org>
71982
71983         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
71984         available, to avoid (extremely rare) race condition.
71985         Suggested by Paul Eggert.
71986
71987 2003-11-02  Karl Berry  <karl@gnu.org>
71988
71989         * config/srclist.txt (vasprintf.c): sync broken, sigh.
71990
71991 2003-10-31  Paul Eggert  <eggert@twinsun.com>
71992
71993         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
71994         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
71995         (read_filesystem_list): Set and use me_type_malloced.
71996         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
71997         whatever the type happens to be), for brevity and consistency.
71998         Check for size calculation overflow on Alphas running OSF/1.
71999
72000 2003-10-31  Jim Meyering  <jim@meyering.net>
72001
72002         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72003
72004         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72005
72006 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72007             Bruno Haible  <bruno@clisp.org>
72008
72009         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72010         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72011
72012 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72013
72014         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72015         netbsd*-gnu*.  Suggested by Robert Millan.
72016
72017 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72018
72019         * modules/group-member: Depend on stdbool.
72020
72021 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72022
72023         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72024
72025 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72026
72027         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72028         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72029         after the 'gnu' in these cases.  This fixes some bugs in the
72030         previous change, and is based on suggestions by Robert Millan.
72031
72032 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72033
72034         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72035         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72036         no longer needed.
72037         * lib/quotearg.c (quotearg_n_options): Use it.
72038         * lib/group-member.c: Include <stdbool.h>.
72039         (free_group_info): Arg is now const *; don't free arg.
72040         (get_group_info): Now returns bool and accepts struct group_info *,
72041         rather than returning a malloc'ed struct group_info *.
72042         All uses changed.  Check for overflow in internal size calculation.
72043
72044         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72045         rather than xmalloc/xrealloc.
72046         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72047         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72048         conformance bug: the old code used a pointer after freeing the
72049         storage that it addressed.
72050         * lib/hash.c (hash_initialize): Simplify the code by using
72051         xalloc_oversized rather than doing it by hand.
72052         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72053         the buffer preserved.  Use free and xmalloc instead.
72054         * lib/quotearg.c (quotearg_n_options): Likewise.
72055         Use a simpler test for size overflow.  Don't use xalloc_oversized
72056         because unsigned int might be wider than size_t (!); this suggests
72057         that we should switch from unsigned int to size_t for slot numbers.
72058
72059 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72060
72061         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72062         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72063         NetBSD kernels.  Requested by Richard Stallman.
72064
72065 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72066
72067         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72068         to allocate the returned structure.  Do not allocate a subarray,
72069         as x2nrealloc will do that.
72070         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72071         instead of xnrealloc.
72072         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72073
72074 2003-10-27  Bruno Haible  <bruno@clisp.org>
72075
72076         * lib/stdbool_.h: Better support for BeOS.
72077
72078 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72079
72080         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72081         now uses inline.
72082
72083 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72084
72085         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72086         callers that want to do their own size-overflow checking.  Include
72087         <stdbool.h>, since xalloc_oversized returns bool.
72088         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72089         to use xalloc_oversized.
72090
72091         Add two functions x2realloc, x2nrealloc, for programs that grow
72092         arrays dynamically by doubling their sizes.
72093         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72094         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72095         New functions.
72096
72097         Port to C99 semantics for 'inline' of external functions.
72098         Bug reported by Bruno Haible.
72099         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72100         with the old contents of xnmalloc.
72101         (xnmalloc, xmalloc): Use it.
72102         (xnrealloc_inline): New static inline function,
72103         with the old contents of xnrealloc.
72104         (xnrealloc, xrealloc): Use it.
72105
72106         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72107         that.
72108
72109 2003-10-26  Karl Berry  <karl@gnu.org>
72110
72111         * config/srclist.txt (COPYING.DOC): no longer available from
72112         /gd/gnuorg; don't know where the ultimate source is.
72113
72114 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72115
72116         Fix several address-calculation bugs in the hash modules,
72117         plus some minor code cleanup.
72118
72119         * lib/hash.h: Include <stdbool.h>, for bool.
72120         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72121         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72122         hash_get_n_entries, hash_get_max_bucket_length,
72123         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72124         hash_rehash): Use size_t rather than unsigned.
72125         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72126         hash_get_n_buckets_used, hash_get_n_entries,
72127         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72128         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72129         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72130         Likewise.
72131         (SIZE_MAX): Define if not defined.
72132         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72133         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72134         hash_print):
72135         Use const * when possible.
72136         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72137         (check_tuning): Fix bug: if tuning parameters were very close to
72138         0 or 1, rounding errors could have caused subscript violations.
72139         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72140         (hash_initialize): Add 'fail:' label
72141         to free table and return NULL, and use it to simplify code.
72142         Use calloc rather than clearing the storage ourself.
72143         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72144         buffer size calculations.
72145         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72146         Include <stddef.h>, for size_t.
72147         * lib/hash-pjw.c (hash_pjw): Likewise.
72148         Switch to method described by Bruno Haible.
72149         Include <limits.h>, for CHAR_BIT.
72150         (SIZE_BITS): New macro.
72151
72152 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72153
72154         * m4/getline.m4 (AM_FUNC_GETLINE):
72155         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72156         hosts.  Problem reported by Derek Robert Price in
72157         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72158         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72159         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72160
72161 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72162
72163         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72164         ceiling the allocation at NMAX bytes rather than silently
72165         discarding input bytes before NMAX is reached.  This makes
72166         a difference only if NMAX exceeds SIZE_MAX / 2.
72167
72168         * lib/obstack.c: Merge from glibc.
72169         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72170         Add libc_hidden_def (_obstack_newchunk).
72171         (_obstack_free) [! defined _LIBC]: Remove.
72172         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72173         a clone of the function body.
72174         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72175         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72176
72177         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72178         glibc.
72179         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72180         arg to memcpy.
72181
72182         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72183         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72184         Don't use lvalue casts, as GCC plans to remove support for them
72185         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72186         was also present in the non-GCC version, indicating that this
72187         code had always been buggy and had never been widely used.
72188         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72189         Use the fast variant of each macro, rather than copying the
72190         definiens of the fast variant; that way, we'll be more likely to
72191         catch future bugs in the fast variants.
72192
72193 2003-10-20  Bruno Haible  <bruno@clisp.org>
72194
72195         * modules/wait-process: New file.
72196         * MODULES.html.sh (func_all_modules): Add wait-process.
72197
72198 2003-10-20  Bruno Haible  <bruno@clisp.org>
72199
72200         * m4/wait-process.m4: New file.
72201
72202 2003-10-20  Bruno Haible  <bruno@clisp.org>
72203
72204         * lib/wait-process.h: New file, from GNU gettext.
72205         * lib/wait-process.c: New file, from GNU gettext.
72206
72207 2003-10-19  Jim Meyering  <jim@meyering.net>
72208
72209         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72210         HPUX 10.20.
72211
72212 2003-10-18  Karl Berry  <karl@gnu.org>
72213
72214         * config/config.guess: update from config.
72215
72216 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72217
72218         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72219         (getgroups): First arg is int, not size_t.
72220         Don't let 'free' mangle errno.
72221
72222 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72223
72224         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72225
72226 2003-10-16  Karl Berry  <karl@gnu.org>
72227
72228         * config/config.{guess,sub}: update from config.
72229
72230 2003-10-16  Jim Meyering  <jim@meyering.net>
72231
72232         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72233         memcpy.
72234
72235 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72236
72237         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72238         (SIZE_MAX): Remove.
72239         (new_exclude, add_exclude_file): Initial size no longer needs to
72240         be a power of 2.
72241         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72242         our own address arithmetic overflow checking.
72243
72244         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72245         (fnmatch): Do not alloca more than 2000 wide characters;
72246         instead, use malloc for large buffers.
72247         Check for address arithmetic overflow, and return -1
72248         with errno set to ENOMEM in that case.
72249         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72250         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72251         instead, return -1.  Check for address arithmetic overflow.
72252
72253 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72254
72255         Handle invalid suffixes and overflow independently, so that
72256         callers can treat them independently as needed.  Fix some bugs in
72257         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72258         suffix for a human-readable blocksize.  The major caller-visible
72259         change is the addition of a new
72260         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72261         that both overflow and suffix chars were found.
72262
72263         * lib/human.c (humblock): Don't check separately for invalid suffix
72264         char; that is xstrtoumax's job (now that its bug is fixed).
72265         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72266         INTMAX_MAX]: New macros.
72267         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72268         TYPE_MAXIMUM): New macros.
72269         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72270         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72271         if overflow occurs, as it's what __strtol does and it's more useful
72272         in practice.
72273         (__xstrtol): If __strtol reports some error other than ERANGE,
72274         reflect it to the caller as LONGINT_INVALID.  If it reports
72275         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72276         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72277         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72278         value.
72279         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72280         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72281         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72282         [defined UINTMAX_MAX]: New macros.
72283
72284 2003-10-14  Bruno Haible  <bruno@clisp.org>
72285
72286         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72287
72288 2003-10-14  Bruno Haible  <bruno@clisp.org>
72289
72290         * m4/sig_atomic_t: New file, from GNU gettext.
72291         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72292
72293 2003-10-14  Bruno Haible  <bruno@clisp.org>
72294
72295         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72296         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72297         Also use volatile where needed.
72298
72299 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72300
72301         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72302         Change maintainer from Bruno Haible to 'all'.
72303
72304 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72305
72306         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72307
72308 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72309
72310         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72311         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72312         and define in terms of the other primitives.
72313         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72314         (SIZE_MAX): Define if not already defined.
72315         (array_size_overflow): New function.
72316         (xalloc_die): Abort instead of exiting if 'error' returns.
72317         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72318         (xmalloc, xrealloc): Use them.
72319         (xcalloc): Check for address arithmetic overflow.
72320         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72321         a bit faster than strcpy.
72322
72323 2003-10-10  Simon Josefsson  <jas@extundo.com>
72324
72325         * modules/argp (Depends-on): Add restrict and strcase.
72326
72327 2003-10-10  Simon Josefsson  <jas@extundo.com>
72328
72329         * m4/argp.m4: Add AC_C_INLINE.
72330
72331 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72332
72333         Merge getpass from libc, plus a few fixes.
72334
72335         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72336         Include <stdbool.h>.
72337         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72338         __fsetlocking to empty.
72339         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72340         do include <bits/libc-lock.h>.
72341         Do not include <fcntl.h>; not needed.
72342         [_LIBC]: Include <wchar.h>.
72343         (NOTCANCEL_MODE): New macro.
72344         (flockfile, funlockfile) [_LIBC]: New macros.
72345         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72346         [!_LIBC]: New macros.
72347         (call_fclose): New function.
72348         (getpass): Use it.  Save tty stream separately; this simplifies the
72349         code and makes it more reliable if stdin happens to equal stdout.
72350         Invoke __fsetlocking on tty.
72351         Handle thread cancellation if needed.
72352         Namespace cleanup (use __tcgetattr, __getline).
72353         Use bool for Booleans.
72354         [USE_IN_LIBIO]: Handle wide streams.
72355         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72356         stream might go where.
72357
72358         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72359         doesn't have to include <stdio.h> before us.
72360         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72361         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72362         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72363         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72364         if not declared, so that we can use getpass.c code from libc without
72365         rewriting it.
72366         (flockfile, ftrylockfile, funlockfile): New macros.
72367
72368 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72369
72370         * modules/getpass: Depend on stdbool.
72371
72372 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72373
72374         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72375
72376 2003-10-07  Karl Berry  <karl@gnu.org>
72377
72378         * config/config.{guess,sub}: update from config.
72379
72380 2003-10-06  Jim Meyering  <jim@meyering.net>
72381             Bruno Haible  <bruno@clisp.org>
72382
72383         This lets translators provide better translations for the
72384         "Written by ..." part of --version output.
72385         * lib/version-etc.h: Include stdarg.h.
72386         (version_etc_copyright): Declare as readonly.
72387         (version_etc): Make this function variadic with a NULL-terminated list
72388         of author name strings.
72389         (version_etc_va): New declaration.
72390         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72391         (version_etc_copyright): Declare as readonly.
72392         (version_etc_va): New function. Provide a different translatable string
72393         for each possible number of authors < 10. Abbreviate when there are 10
72394         authors or more.
72395         (version_etc): Make this function variadic. Call version_etc_va.
72396         Suggestion from Gary V. Vaughan.
72397
72398         * lib/long-options.h (parse_long_options): Change prototype: the
72399         authors string is moved to the end and becomes variadic.
72400         * lib/long-options.c: Include stdarg.h.
72401         (parse_long_options): Make this function variadic, too.
72402         Call version_etc_va, not version_etc.
72403
72404 2003-10-06  Bruno Haible  <bruno@clisp.org>
72405
72406         * modules/version-etc-2: Remove file.
72407         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72408
72409 2003-10-06  Bruno Haible  <bruno@clisp.org>
72410
72411         * modules/fatal-signal: New file.
72412         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72413
72414 2003-10-06  Bruno Haible  <bruno@clisp.org>
72415
72416         * m4/fatal-signal.m4: New file.
72417         * m4/signalblocking.m4: New file, from GNU gettext.
72418
72419 2003-10-06  Bruno Haible  <bruno@clisp.org>
72420
72421         * lib/version-etc-2.h: Remove file.
72422         * lib/version-etc-2.c: Remove file.
72423
72424 2003-10-06  Bruno Haible  <bruno@clisp.org>
72425
72426         * lib/fatal-signal.h: New file, from GNU gettext.
72427         * lib/fatal-signal.c: New file, from GNU gettext.
72428
72429 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72430
72431         * README: Rework advice for preventing empty .o files.
72432         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72433         not <sys/types.h>.
72434
72435 2003-10-04  Karl Berry  <karl@gnu.org>
72436
72437         * lib/argp*: update from libc.
72438
72439 2003-10-04  Karl Berry  <karl@gnu.org>
72440
72441         * config/config.{guess,sub}: update from config.
72442
72443 2003-10-02  Bruno Haible  <bruno@clisp.org>
72444
72445         * modules/lchown (Include): Add lchown.h.
72446         * modules/time_r (Include): Use "..." syntax.
72447         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72448
72449 2003-10-01  Simon Josefsson  <jas@extundo.com>
72450
72451         * MODULES.html.sh (func_all_modules): Move gethostname from section
72452         'based on' to section 'lacking' POSIX:2001.
72453
72454 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72455
72456         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72457         to output mode on the same stream.
72458
72459 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72460
72461         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72462         Fix arg typo in previous patch.
72463
72464 2003-09-28  Jim Meyering  <jim@meyering.net>
72465
72466         * lib/error.c: Correct cpp indentation.
72467
72468 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72469
72470         * modules/free: New file.
72471
72472 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72473
72474         * m4/free.m4: New file.
72475
72476 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72477
72478         * lib/minmax.h (MIN, MAX)
72479         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72480         Omit the special code that used __typeof__, since we worry that
72481         it could be more trouble than it's worth.  See:
72482         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72483         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72484
72485         * lib/free.c: New file.
72486
72487 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72488
72489         Trivial fixes to Makefile.am parts of module listings.
72490         * modules/strstr: Append strstr.h to lib_SOURCES.
72491         * modules/strcase: Likewise, for strcase.h.
72492
72493 2003-09-27  Karl Berry  <karl@gnu.org>
72494
72495         * config/mkinstalldirs: update from automake.
72496
72497 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72498
72499         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72500         (error_tail): Do not loop, reallocating temporary buffer, since
72501         the output cannot contain more wide characters than the input
72502         contains bytes, the size must be big enough already.  This avoids
72503         one potential size overflow calculation.  Check for size overflow
72504         when calculating temporary buffer size.  Free temporary buffer
72505         when done, if it was allocated with malloc; this plugs a memory
72506         leak.  Remove casts from void * to pointers, that are no longer
72507         needed now that we're assuming C89 or better.
72508
72509         Merge error changes from glibc.
72510
72511         * lib/error.c, error.h: Update copyright notice header to match glibc.
72512         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72513         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72514         Disable cancellation while printing error.
72515         * lib/error.h: Prepend __ to parameter names.
72516
72517 2003-09-26  Jim Meyering  <jim@meyering.net>
72518
72519         * lib/error.c (error_tail): Move some declarations
72520         into inner scope where the local variables are used.
72521
72522 2003-09-26  Bruno Haible  <bruno@clisp.org>
72523
72524         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
72525         stpncpy().
72526         Don't define stpncpy through config.h; it's now done through stpncpy.h.
72527
72528 2003-09-26  Bruno Haible  <bruno@clisp.org>
72529
72530         * lib/stpncpy.h (gnu_stpncpy): New declaration.
72531         (stpncpy): Define as alias for gnu_stpncpy.
72532         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
72533
72534 2003-09-25  Simon Josefsson  <jas@extundo.com>
72535
72536         * lib/xgetdomainname.h: New file.
72537         * lib/xgetdomainname.c: New file.
72538
72539 2003-09-25  Simon Josefsson  <jas@extundo.com>
72540             Bruno Haible  <bruno@clisp.org>
72541
72542         * modules/getdomainname: New file.
72543         * modules/xgetdomainname: New file.
72544         * MODULES.html.sh (func_all_modules): Add getdomainname,
72545         xgetdomainname.
72546
72547 2003-09-25  Simon Josefsson  <jas@extundo.com>
72548             Bruno Haible  <bruno@clisp.org>
72549
72550         * m4/getdomainname.m4: New file.
72551
72552 2003-09-25  Simon Josefsson  <jas@extundo.com>
72553             Bruno Haible  <bruno@clisp.org>
72554
72555         * lib/getdomainname.h: New file.
72556         * lib/getdomainname.c: New file.
72557
72558 2003-09-25  Karl Berry  <karl@gnu.org>
72559
72560         * lib/argp-fmtstream.c, argp-help.c: update from libc.
72561
72562 2003-09-25  Karl Berry  <karl@gnu.org>
72563
72564         * config/install-sh: update from automake.
72565
72566 2003-09-25  Bruno Haible  <bruno@clisp.org>
72567
72568         * modules/version-etc-2: New file, from modules/version-etc with
72569         modifications.
72570         * MODULES.html.sh (func_all_modules): Add version-etc-2.
72571
72572 2003-09-25  Bruno Haible  <bruno@clisp.org>
72573
72574         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
72575         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
72576
72577 2003-09-24  Simon Josefsson  <jas@extundo.com>
72578
72579         * modules/xgethostname: Add xgethostname.h.
72580
72581 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72582
72583         * lib/linebuffer.c (freebuffer): Don't free the argument, just
72584         the buffer associated with the argument.  Bug reported by
72585         Simon Josefsson.
72586
72587 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72588
72589         * README: Document assumptions that 'int' is at least 32 bits
72590         wide, that integer arithmetic is 2's complement without overflow,
72591         that there are no holes in integer values, that adding sizes of
72592         two nonoverlapping objects can't overflow, and that all-bits-zero
72593         yields scalar zero.  Fix spelling and capitalization typos.
72594
72595 2003-09-19  Karl Berry  <karl@gnu.org>
72596
72597         * lib/argp.h: update from libc.
72598
72599 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72600
72601         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
72602         to avoid spurious warnings like "AC_RUN_IFELSE was called before
72603         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
72604
72605 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72606
72607         * gnulib-tool: Use "test -h", not "test -L", for portability
72608         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
72609         (tags_regexp): Remove, since \| doesn't conform to POSIX.
72610         (sed_extract_prog): Issue s commands one-by-one, rather than
72611         using \| in one s command.
72612
72613 2003-09-16  Paul Eggert  <eggert@twinsun.com>
72614
72615         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
72616         input error, instead of returning NULL the next time we are called
72617         (and therefore losing track of errno).
72618
72619 2003-09-16  Bruno Haible  <bruno@clisp.org>
72620
72621         * gnulib-tool (func_create_testdir): Warn about duplicated
72622         dependencies.
72623
72624 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72625
72626         * modules/argmatch, modules/fatal, modules/obstack,
72627         modules/xalloc, modules/xgethostname: Sort dependencies by
72628         importance, not alphabetically.
72629
72630 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72631
72632         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
72633         fails, so that the caller gets the proper errno.
72634
72635         * lib/readutmp.c (read_utmp): Likewise.
72636         Check for fstat error.  Close stream and free storage
72637         when failing.
72638
72639 2003-09-14  Karl Berry  <karl@gnu.org>
72640
72641         * config/srclist.txt (strdup.c): disable for c89 changes.
72642
72643 2003-09-14  Jim Meyering  <jim@meyering.net>
72644
72645         * lib/getloadavg.c: Correct cpp indentation.
72646         * lib/strdup.c: Likewise.
72647         * lib/vasnprintf.c: Likewise.
72648
72649 2003-09-14  Bruno Haible  <bruno@clisp.org>
72650
72651         * modules/fwriteerror: New file.
72652         * MODULES.html.sh (func_all_modules): Add fwriteerror.
72653
72654 2003-09-14  Bruno Haible  <bruno@clisp.org>
72655
72656         * lib/fwriteerror.h: New file.
72657         * lib/fwriteerror.c: New file.
72658
72659 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72660
72661         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
72662         modules/xgethostname, modules/xalloc: Depend on exit.
72663
72664 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72665
72666         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
72667
72668         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
72669         and AC_MINIX, too, so that their extensions are available.
72670
72671         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
72672         This macro has been superseded by gl_BACKUPFILE.
72673
72674         More patches to assume C89 or better.
72675
72676         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
72677
72678         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
72679         unconditionally.
72680         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
72681         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
72682         Include <string.h>, <stdlib.h> unconditionally.
72683         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
72684         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
72685         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
72686         headers or for string.h.
72687         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
72688         or strtoul.
72689
72690         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72691         headers.
72692         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72693         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72694         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72695         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72696         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72697         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72698         memcpy, memset.
72699         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72700         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72701         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72702         strtol.
72703         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72704         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72705         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72706         strtoul.
72707
72708 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72709
72710         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72711         * lib/obstack.c [!defined _LIBC]: Likewise.
72712         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72713         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72714         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72715
72716         More changes to assume C89 or better.
72717
72718         * lib/error.c (error_tail): Assume vprintf.
72719
72720         * lib/argmatch.c (getenv): Remove decl.
72721         * lib/progreloc.c (get_full_program_name): Define via prototype.
72722         * lib/setenv.c (clearenv): Likewise.
72723         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72724         needed.
72725         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72726         (malloc, memcpy): Remove decls.
72727         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72728         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72729         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72730         (memcpy): Remove macro.
72731         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72732         (__P): Remove.  All uses removed.
72733         (PTR): Remove.  All uses changed to void *.
72734         (CHAR_BIT, NULL): Remove.
72735         (spaces, zeros, memset_space, memset_zero)
72736         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72737         Remove.
72738         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72739         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72740         Define with prototype.
72741         Remove now-unnecessary prototype decl.
72742         (extra_args_spec): Assume ANSI C.  All uses changed.
72743         (extra_args_spec_iso): Remove.
72744         (my_strftime, emacs_strftimeu): Define via prototype.
72745         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72746         unconditionally.
72747         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72748         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72749         (strtoul, strtol): Remove decls.
72750         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72751         LONG_MAX): Remove.
72752         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72753         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72754         (LOCALE_PARAM_PROTO): New macro.
72755         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72756         (INTERNAL (strtol), strtol): Define with a prototype.
72757         (PARAMS): Remove.  All uses removed.
72758         * lib/tempname.c: Include <string.h> unconditionally.
72759         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72760         * lib/xgethostname.c (main): Define with a prototype.
72761         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72762         Include <stdlib.h> unconditionally.
72763         (calloc, malloc, realloc, free): Remove decls.
72764         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72765         Include <stdlib.h> unconditionally.  Sort include file names.
72766         (strtod): Remove.
72767         (xstrtod): Define with a prototype.
72768         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72769         (strtol, strtoul): Remove decls.
72770
72771 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72772
72773         More patches to assume C89 or better.
72774         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72775         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72776         string.h, memchr, STDC_HEADERS.
72777
72778 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72779
72780         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72781         Include <stdlib.h>, <string.h> unconditionally.
72782         Remove now-unnecessary cast to char *.
72783         * lib/strnlen.c: Include <string.h> unconditionally.
72784         * lib/yesno.c (yesno): Define with a prototype.
72785
72786 2003-09-11  Bruno Haible  <bruno@clisp.org>
72787
72788         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72789
72790 2003-09-10  Jim Meyering  <jim@meyering.net>
72791
72792         * lib/error.c: Correct indentation of cpp directives.
72793
72794 2003-09-10  Bruno Haible  <bruno@clisp.org>
72795
72796         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
72797         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
72798         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
72799         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
72800         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
72801         <stdlib.h> and <string.h> checks.
72802         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
72803         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
72804
72805 2003-09-10  Bruno Haible  <bruno@clisp.org>
72806
72807         * lib/strcspn.c: Include <string.h> unconditionally.
72808         * lib/strpbrk.c: Include <string.h> unconditionally.
72809         * lib/strstr.c: Include <string.h> unconditionally.
72810         * lib/unicodeio.c: Include <string.h> unconditionally.
72811         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
72812         * lib/unsetenv.c: Likewise.
72813         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
72814         * lib/yesno.c: Include <stdlib.h> unconditionally.
72815         (rpmatch): Add prototype.
72816
72817 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72818
72819         More patches to assume C89 or better.
72820         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
72821         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
72822         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
72823         or for string.h.
72824         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
72825         stdlib.h.
72826         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
72827         C headers.
72828         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
72829         string.h.
72830         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
72831         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
72832         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
72833         or for string.h.
72834         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
72835         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
72836         C headers.
72837         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
72838         memcpy.
72839         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
72840         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
72841         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
72842         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
72843         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
72844         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
72845         string.h, free.
72846         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
72847         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
72848         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
72849         C headers, or for string.h.
72850         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
72851         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
72852         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
72853         headers, memory.h, stdlib.h, string.h, strings.h.
72854         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
72855         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
72856         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
72857         strchr.
72858         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
72859         headers, memory.h, string.h.
72860         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
72861         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
72862         free.
72863         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
72864         headers.
72865         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
72866         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
72867         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
72868         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
72869         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
72870
72871 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72872
72873         More K&R removal.
72874
72875         * lib/acosl.c (main): Use a prototype.
72876         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
72877         tanl.c: Likewise.
72878
72879         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
72880
72881         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
72882         (getopt, etopt_long, getopt_long_only, _getopt_internal)
72883         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
72884         with a prototype.
72885         * lib/getopt.c (const): Remove macro.
72886         Include <string.h> unconditionally.
72887         (my_index): Remove; all uses changed to strchr.
72888         (strlen): Remove decl.
72889         (exchange): Remove forward decl; no longer needed.
72890         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
72891         Define with prototype.
72892         * lib/getopt1.c (const): Remove macro.
72893         (getopt_long, getopt_long_only, main): Define with prototype.
72894
72895         * lib/getugroups.c: Include <string.h> unconditionally.
72896
72897         * lib/getusershell.c: Include <stdlib.h> unconditionally.
72898         (getusershell, setusershell, endusershell, readname, main):
72899         Define with prototypes.
72900
72901         * lib/group-member.c: Include group-member.h first.
72902         Include <stdlib.h> unconditionally.
72903
72904         * lib/hard-locale.c: Include hard-locale.h first.
72905         Include <stdlib.h>, <string.h> unconditionally.
72906
72907         * lib/hash.c (free, malloc): Remove decls.
72908         Include <stdlib.h> unconditionally.
72909
72910         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
72911         (getenv): Do not declare.
72912
72913         * lib/idcache.c: Include <string.h> unconditionally.
72914
72915         * lib/long-options.c: Include long-options.h first, to test interface.
72916         Include <stdlib.h> unconditionally.
72917
72918         * lib/makepath.c: Include makepath.h first, to test interface.
72919         Include <stdlib.h> and <string.h> unconditionally.
72920
72921         * lib/linebuffer.c: Include <stdlib.h>.
72922         (free): Remove decl.
72923
72924         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
72925         stddef.h. rpl_malloc returns void *, not char *.
72926         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
72927         prototype.
72928
72929         * lib/md5.h: Include <limits.h> unconditionally.
72930         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
72931         (__P): Remove; all uses removed.
72932         * lib/md5.c: Include "md5.h" first.
72933         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
72934         md5_buffer, md5_process_bytes, md5_process_block):
72935         Define with prototypes.
72936         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
72937         * lib/sha.c: Include "sha.h" first.
72938         Include <stdlib.h>, <string.h> unconditionally.
72939
72940         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
72941         * lib/memcmp.c (__ptr_t): Likewise.
72942         * lib/memrchr.c (__ptr_t): Likewise.
72943         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
72944         Include <string.h> unconditionally.
72945         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
72946         * lib/memchr.c: Include <stdlib.h> unconditionally.
72947         * lib/memchr.c (LONG_MAX): Remove.
72948         * lib/memrchr.c (LONG_MAX): Likewise.
72949         * lib/memchr.c (__memchr): Define via a prototype.
72950         * lib/memrchr.c (__memrchr): Likewise.
72951         * lib/memcmp.c (__P): Remove, and remove all uses.
72952         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
72953         Remove forward decls; no longer needed.
72954         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
72955         Use types required by C89 in prototype.
72956
72957         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
72958         * lib/savedir.c: Likewise.
72959         * lib/mkdir.c (free): Remove decl.
72960         * lib/rmdir.c (rmdir): Define with a prototype.
72961         * lib/savedir.c: Include savedir.h first, to test interface.
72962
72963         * lib/mktime.c (STDC_HEADERS): Remove.
72964         Include <stdlib.h>, <string.h> unconditionally.
72965
72966         * lib/modechange.c: Include <stdlib.h> unconditionally.
72967         (malloc): Remove decl.
72968
72969         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
72970         (free): Remove decl.
72971
72972         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
72973         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
72974         (This type really should be intptr_t, but that's a C99ism.)
72975         (_obstack_memcpy): Remove: all uses changed to memcpy.
72976         Include <string.h> unconditionally.
72977         (struct obstack): Assume __STDC__ for types of members
72978         chunkfun, freefun, extra_arg.
72979         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
72980         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
72981         obstack_begin, obstack_specify_allocation,
72982         obstack_specify_allocation_with_arg, obstack_chunkfun,
72983         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
72984         Remove unprototyped decls and the macros that use them.
72985         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
72986         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
72987         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
72988         (defined __STDC__ && __STDC__)]:
72989         Remove nonprototyped code.
72990         Include <stdlib.h> unconditionally.
72991         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
72992         _obstack_allocated_p, _obstack_free, obstack_free,
72993         _obstack_memory_used, print_and_abort):
72994         Define using prototypes.
72995         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
72996         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
72997         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
72998         obstack_next_free, obstack_object_size, obstack_room) [0]:
72999         Remove unused, unprototyped code.
73000
73001         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73002
73003         * lib/physmem.c (physmem_total, physmem_available, main): Define
73004         with prototypes.
73005
73006         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73007         (main): Define with a prototype.
73008
73009         * lib/posixver.c (getenv): Remove decl.
73010
73011         * lib/putenv.c (malloc): Returns void *, not char *.
73012         Include <string.h> unconditionally.
73013         (strchr, memcpy, NULL): Do not define.
73014
73015         * lib/readtokens.c: Include readtokens.h first, to test interface.
73016         Include <stdlib.h>, <string.h> unconditionally.
73017         (init_tokenbuffer): Define with a prototype.
73018
73019         * lib/regex.c (PARAMS): Remove.  All uses removed.
73020         All uses of _RE_ARGS removed, too.
73021         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73022         unconditionally.
73023         (bzero): Assume memset exists.
73024         (memcmp, memcpy, NULL): Remove.
73025         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73026         char, or assignments to local vars of type signed char.
73027         (init_syntax_once, PREFIX(extract_number_and_incr),
73028         PREFIX(print_partial_compiled_pattern),
73029         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73030         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73031         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73032         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73033         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73034         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73035         wcs_compile_range, byte_compile_range, truncate_wchar,
73036         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73037         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73038         count_mbs_length, wcs_re_match_2_internal,
73039         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73040         PREFIX(alt_match_null_string_p),
73041         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73042         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73043         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73044         now-unnecessary declaration, if any.
73045         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73046         regcomp, regexec):
73047         Remove now-unnecessary casts among pointer types.
73048         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73049
73050         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73051         (free): Remove decl.
73052
73053         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73054
73055         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73056         (free): Remove decl.
73057
73058         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73059         * lib/xgetcwd.c: Likewise.
73060
73061         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73062         (free): Remove decl.
73063
73064         * lib/strchrnul.c (strchrnul): Define with a prototype.
73065         Fix bug: c_in was not converted to char before searching.
73066
73067         The following changes are not K&R related:
73068
73069         * lib/group-member.h: Include <sys/types.h>, so that this file is
73070         self-contained.
73071         * lib/makepath.h: Likewise.
73072
73073         * lib/getusershell.c (readname, default_index, line_size, readname):
73074         Use size_t, not int, for sizes.
73075         (readname): If the size overflows, report an error instead of
73076         looping forever.
73077
73078 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73079
73080         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73081         libc.
73082
73083 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73084
73085         * README: New section: portability guidelines.
73086
73087 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73088
73089         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73090         C89 spec.
73091
73092 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73093
73094         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73095
73096 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73097
73098         Assume C89 or better; remove K&R cruft.
73099         A few of these changes were first proposed by Derek Robert Price
73100         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73101
73102         * lib/addext.c: Include <string.h> unconditionally.
73103         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73104         Don't declare getenv or malloc.
73105
73106         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73107         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73108         (NULL): Remove.
73109         (find_stack_direction, alloca): Use prototypes.
73110
73111         * lib/atexit.c (atexit): Define using a prototype.
73112
73113         * lib/basename.c, dirname.c, stripslash.c:
73114         Include <string.h> unconditionally.
73115
73116         * lib/bcopy.c: Include <stddef.h>.
73117         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73118
73119         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73120
73121         * lib/error.h (error, error_at_line, error_print_progname)
73122         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73123         * lib/error.c: Include error.h first, to check interface.
73124         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73125         (VA_START): Remove; all uses changeed to va_start.
73126         (exit, strerror): Remove decls.
73127         (error_print_progname): Prototype uncondionally.
73128         Don't include <errno.h>; no longer needed.
73129         (private_strerror): Remove.
73130         (error_tail): Always define.
73131         (error, error_at_line): Assume C89 or better; always use prototypes.
73132         * lib/fatal.c: Include "fatal.h" first, to test interface.
73133         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73134         (VA_START): Remove; all uses changed to va_start.
73135         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73136         this case.
73137         (exit): Remove decl.
73138         (fatal): Prototype unconditionally.  Assume va_start works.
73139         Abort at end, to pacify gcc.
73140
73141         * lib/euidaccess.c (main): Define with a prototype.
73142
73143         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73144
73145         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73146
73147         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73148         prototypes.
73149         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73150         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73151         (getenv): Remove decl.
73152         (fnmatch): Define using a prototype.
73153         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73154         (FCT): Define using a prototype.
73155
73156         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73157
73158         * lib/gethostname.c: Include <stddef.h>.
73159         (gethostname): Define with prototype.  Length is size_t, not int.
73160
73161 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73162
73163         Assume C89 or better; remove K&R cruft.
73164         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73165         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73166         string.h, getenv, malloc.
73167         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73168         headers.
73169         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73170         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73171         do not check for strerror.
73172         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73173         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73174         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73175         do not check for doprnt or vprintf.
73176         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73177         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73178
73179 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73180
73181         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73182         getversion.c should have been removed then, but was accidentally
73183         preserved.
73184
73185         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73186         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73187
73188 2003-09-08  Karl Berry  <karl@gnu.org>
73189
73190         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73191                 config, forget about prep.
73192
73193         * config/depcomp, missing: update from automake.
73194
73195 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73196
73197         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73198         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73199
73200 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73201
73202         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73203         copy_tm_result.  Bug reported by Simon Josefsson in
73204         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73205
73206 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73207
73208         * m4/time_r.m4: New file.
73209         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73210         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73211         is. Check for timegm declaration.
73212         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73213         Do not check for gmtime_r.
73214         Replace mktime if __mktime_internal does not exist and if mktime
73215         hasn't been replaced already.
73216
73217 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73218
73219         * lib/time_r.c, lib/time_r.h: New files.
73220
73221         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73222         __localtime_r.
73223         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73224         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73225
73226         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73227         __gmtime_r.
73228         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73229         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73230         Include <time_r.h>.
73231
73232         * lib/timegm.c: Switch to glibc implementation, with the following
73233         changes:
73234         [defined HAVE_CONFIG_H]: Include <config.h>.
73235         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73236         (__mktime_internal) [!defined _LIBC]: New decl.
73237         (__gmtime_r) [!defined _LIBC]: New macro and function.
73238         (timegm): Use a prototype, since gnulib assumes C89.
73239         Do not bother declaring tmp to be const, as it's not really usefu.
73240         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73241         (timegm): Declare only if HAVE_DECL_TIMEGM.
73242
73243 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73244
73245         * MODULES.html.sh (func_all_modules): Add time_r.
73246         * modules/time_r: New file.
73247         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73248         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73249
73250 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73251
73252         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73253         Bug reported by Lute Kamstra in
73254         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73255
73256         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73257         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73258         course with correspondingly smaller numbers for tomorrow and
73259         yesterday.  From Tadayoshi Funaba.  Originally installed into
73260         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73261         coreutils merge?).
73262
73263 2003-08-31  Simon Josefsson  <jas@extundo.com>
73264
73265         * modules/timegm: New file.
73266         * MODULES.html.sh (func_all_modules): Add timegm.
73267
73268 2003-08-31  Simon Josefsson  <jas@extundo.com>
73269
73270         * m4/timegm.m4: New file.
73271
73272 2003-08-31  Simon Josefsson  <jas@extundo.com>
73273
73274         * lib/timegm.h: New file.
73275         * lib/timegm.c: New file.  Based on
73276         wget-1.8.2/src/http.c:mktime_from_utc.
73277
73278 2003-08-31  Karl Berry  <karl@gnu.org>
73279
73280         * lib/argp.h: update from libc.
73281
73282 2003-08-28  Bruno Haible  <bruno@clisp.org>
73283
73284         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73285         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73286         followed by '#define fnmatch fnmatch_posix' gives an error.
73287
73288 2003-08-28  Bruno Haible  <bruno@clisp.org>
73289
73290         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73291         warning on QNX, which defines O_BINARY to 000000.
73292
73293 2003-08-27  Jim Meyering  <jim@meyering.net>
73294
73295         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73296         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73297         would fail after 32.  Reported by Danny Levinson.  Details here:
73298         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73299
73300 2003-08-24  Bruno Haible  <bruno@clisp.org>
73301
73302         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73303         MSVC7 <stdio.h> is included later.
73304
73305 2003-08-22  Simon Josefsson  <jas@extundo.com>
73306
73307         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73308
73309 2003-08-20  Karl Berry  <karl@gnu.org>
73310
73311         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73312
73313 2003-08-20  Bruno Haible  <bruno@clisp.org>
73314
73315         * modules/progname: New file.
73316         * MODULES.html.sh (func_all_modules): Add progname.
73317
73318 2003-08-20  Bruno Haible  <bruno@clisp.org>
73319
73320         * lib/progname.h: New file, from GNU gettext.
73321         * lib/progname.c: New file, from GNU gettext.
73322         * lib/progreloc.c: New file, from GNU gettext.
73323
73324 2003-08-19  Jim Meyering  <jim@meyering.net>
73325
73326         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73327         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73328
73329 2003-08-19  Bruno Haible  <bruno@clisp.org>
73330
73331         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73332         more.
73333
73334 2003-08-19  Bruno Haible  <bruno@clisp.org>
73335
73336         * lib/xstrdup.c: Assume <string.h> exists.
73337
73338 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73339
73340         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73341         in makefile rules.
73342
73343 2003-08-18  Jim Meyering  <jim@meyering.net>
73344
73345         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73346         * m4/lib-ld.m4: Likewise.
73347
73348 2003-08-18  Jim Meyering  <jim@meyering.net>
73349
73350         * lib/setenv.h: Indent nested cpp directive.
73351         * lib/vasnprintf.c: Remove trailing blanks.
73352
73353 2003-08-17  Simon Josefsson  <jas@extundo.com>
73354
73355         * modules/xstrndup: New file.
73356         * MODULES.html.sh (func_all_modules): Add xstrndup.
73357
73358 2003-08-17  Simon Josefsson  <jas@extundo.com>
73359
73360         * modules/argp: Fix autoconf macro name. Add more dependencies.
73361
73362 2003-08-17  Simon Josefsson  <jas@extundo.com>
73363
73364         * m4/xstrndup.m4: New file.
73365
73366 2003-08-17  Simon Josefsson  <jas@extundo.com>
73367
73368         * m4/argp.m4: New file.
73369
73370 2003-08-17  Simon Josefsson  <jas@extundo.com>
73371             Bruno Haible  <bruno@clisp.org>
73372
73373         * lib/xstrndup.h: New file.
73374         * lib/xstrndup.c: New file.
73375
73376 2003-08-17  Bruno Haible  <bruno@clisp.org>
73377
73378         * modules/strndup (Files, Include): Add lib/strndup.h.
73379
73380 2003-08-17  Bruno Haible  <bruno@clisp.org>
73381
73382         * modules/euidaccess (Files): Add lib/euidaccess.h.
73383
73384 2003-08-17  Bruno Haible  <bruno@clisp.org>
73385
73386         * lib/strndup.h: New file.
73387
73388 2003-08-17  Bruno Haible  <bruno@clisp.org>
73389
73390         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73391         like AC_GNU_SOURCE.
73392         * modules/extensions (configure.ac): Comment out the invocation of
73393         gl_USE_SYSTEM_EXTENSIONS.
73394
73395 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73396
73397         Merges from coreutils, etc.
73398         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73399         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73400         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73401         fixing a typo.
73402         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73403         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73404
73405 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73406
73407         Document merge from coreutils.
73408         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73409         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73410         * modules/utime: Add m4/utimes-null.m4.
73411
73412 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73413
73414         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73415         space, undoing this 2003-08-12 change:
73416         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73417
73418 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73419
73420         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73421         strtoul.c from libc, undoing this 2003-08-12 change:
73422         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73423
73424 2003-08-16  Jim Meyering  <jim@meyering.net>
73425
73426         Merges from coreutils.
73427         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73428         prefix.  Adjust cache variables similarly.  Create 500 rather than
73429         just 300 files, to exercise bug on Darwin6.5, too.
73430         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73431         $missing_dir.
73432         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73433         AM_SYS_POSIX_TERMIOS.
73434         Reported by mkc@mathdogs.com.
73435         Also change use of $am_cv_sys_posix_termios
73436         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73437         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73438         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73439         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73440         in /proc/mounts until it finds one with matching device number.  This
73441         is unnecessary when the FILE argument *is* a mount point.  No stat call
73442         is necessary in that case.  So, disable the statvfs-testing code on
73443         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73444         as RedHat bug# 84846.
73445         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73446         to 1MB, so as not to render systems with no stack size limit (e.g.,
73447         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73448         Include <unistd.h>.  On some systems,
73449         it is required for the definition of _SC_PAGESIZE.
73450
73451 2003-08-16  Jim Meyering  <jim@meyering.net>
73452
73453         Merge from coreutils.
73454         * lib/xstrtoimax.c: #else #if -> #elif.
73455         * lib/xstrtoumax.c: Likewise.
73456
73457 2003-08-16  Jim Meyering  <jim@meyering.net>
73458
73459         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73460         * m4/utimes.m4: Removed.
73461         * m4/utimes-null.m4: Renamed from utimes.m4.
73462
73463         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73464         to 1MB, so as not to render systems with no stack size limit (e.g.,
73465         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73466         Include <unistd.h>.  On some systems,
73467         it is required for the definition of _SC_PAGESIZE.
73468
73469 2003-08-16  Jim Meyering  <jim@meyering.net>
73470         and Paul Eggert  <eggert@cs.ucla.edu>
73471
73472         Merges from coreutils, etc.
73473
73474         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73475         using the latest version from cvs.  This avoids problems with #line
73476         directives using a vendor (Sun) compiler.
73477         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73478         Don't set GETGROUPS_LIB here; now it's
73479         done via getgroups.m4's wrapper function.
73480         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73481         rather than just in sh-util/configure.in, so that the
73482         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73483         same.
73484         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73485         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73486         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73487         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73488         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73489         Remove code that is now done by the newly-required macros.
73490         Append $(EXEEXT) to DF_PROG.
73491         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73492         Do not invoke or require the following here,
73493         since prereq.m4 or some gnulib .m4 now does this for us:
73494         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73495         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73496         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73497         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73498         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73499         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73500         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73501         AC_FUNC_OBSTACK.
73502         Do not replace the following functions, as this is now the job
73503         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73504         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73505         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73506         atexit getpass, strdup, getpagesize.
73507         Replace 'raise'.
73508         Do not check for the following functions, as this is now the job
73509         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73510         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73511         setregid.
73512         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73513         Check for sys/sysctl.h.
73514         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73515         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73516         of checking for ssize_t ourselves.
73517
73518         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73519         Require every macro that gnulib/modules/* suggests for us.
73520         (jm_PREREQ_ADDEXT): New macro.
73521         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
73522         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
73523
73524         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
73525         (gl_PHYSMEM): Use it.
73526         Also check for `table' function.
73527         Check for new headers and functions.
73528         Add check for sys/sysmp.h.
73529         With suggestions from Kaveh Ghazi.
73530         Ignore headers that are present but cannot be compiled.  This
73531         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
73532         C 5.4.
73533
73534 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73535
73536         Document merge from coreutils.
73537         * modules/userspec: Depend on posixver.
73538         * modules/strftime: Depend on tzset.
73539
73540 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73541
73542         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
73543         rather than tab, after '#' in shell-script copyright notices.
73544         Suggested by Bruno Haible.
73545
73546 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73547
73548         * config/srclist-update: Use three spaces, rather than tab, after '#'
73549         in shell-script copyright notices.  Suggested by Bruno Haible.
73550         Remove unnecessary parenthesization in regular expression.
73551
73552 2003-08-15  Jim Meyering  <jim@meyering.net>
73553
73554         Merge from coreutils.
73555         * lib/xgethostname.c: Include <stdlib.h>.
73556         (xghostname): Don't exit for anything other than memory-related
73557         failure; just return NULL.
73558         * lib/userspec.c: Include "posixver.h".
73559         (parse_user_spec): Accept `.' as a separator only
73560         in pre-POSIX-200112 mode.
73561         * lib/strtoimax.c: Use #elif rather than #else #if.
73562         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
73563         Remove function, now that we can rely on a working tzset function.
73564         [!_LIBC]: Ensure that the required autoconf test has been run.
73565         [!defined _NL_CURRENT && HAVE_STRFTIME]:
73566         Use underlying_strftime for %r.
73567         * lib/sha.c: Merge in some clean-up and optimization changes from
73568         glibc.
73569         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
73570         Ensure that it is a multiple of 64.
73571         Rearrange loop exit tests so as to avoid performing an
73572         additional fread after encountering an error or EOF.
73573         * lib/realloc.c: Update copyright date.
73574
73575 2003-08-15  Jim Meyering  <jim@meyering.net>
73576         and Paul Eggert  <eggert@twinsun.com>
73577
73578         Merge from coreutils.
73579         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
73580         member but strut utmpx does not.  Needed for AIX 4.3.3.
73581         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
73582
73583 2003-08-15  Jim Meyering  <jim@meyering.net>
73584         and Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         Merges from coreutils, etc.
73587         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
73588         Require gl_FUNC_TZSET_CLOBBER.
73589         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
73590         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
73591         members.
73592
73593 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73594
73595         Help the merge from coreutils.
73596         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
73597         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
73598         * m4/tzset.m4: Use it too.
73599
73600 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73601
73602         * modules/tzset: New file.
73603
73604 2003-08-14  Jim Meyering  <jim@meyering.net>
73605
73606         Merges from coreutils.
73607         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
73608         variable names, rather than @FNMATCH_H@.
73609         * modules/alloca: Likewise for $(ALLOCA_H).
73610
73611         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
73612         the three copies of the literal target, `fnmatch.h'.
73613         * modules/alloca (alloca.h): Likewise.
73614
73615 2003-08-14  Jim Meyering  <jim@meyering.net>
73616
73617         Merge from coreutils.
73618         * m4/tzset.m4: New file.
73619         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
73620         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
73621         otherwise, AIX 5.1 systems would end up using the latter.
73622         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
73623         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
73624         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
73625         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
73626
73627 2003-08-14  Jim Meyering  <jim@meyering.net>
73628
73629         Merge from coreutils.
73630         * lib/obstack.h: Whitespace changes.
73631         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
73632         and xcalloc return values.
73633         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
73634         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
73635         hang on OSF/1 5.1 for DIR on both local and remote file systems.
73636         Reported by (and fix confirmed by) Nelson H. F. Beebe.
73637         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73638         error from mntctl.
73639         Use mntctl's return value to drive the entry-processing loop, since
73640         we can't rely on the value of the vmt_length member in the last
73641         entry.  On some systems doing so could result in exhausting
73642         virtual memory.  Based in part on a patch from Mike Jetzer.
73643
73644 2003-08-14  Jim Meyering  <jim@meyering.net>
73645         and Paul Eggert  <eggert@twinsun.com>
73646
73647         Merges from coreutils, plus other fixes.
73648         * lib/physmem.c: Merge in portability changes from gcc/libiberty
73649         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
73650         for credits and details.  Thanks to Kaveh Ghazi for helping
73651         to keep these files in sync.
73652         (ARRAY_SIZE): Define it.
73653         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
73654         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
73655         (memcasecmp): Don't assume size_t fits in unsigned int.
73656         Remove casts and duplicate code.
73657         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
73658         (memcpy): Remove definition.
73659         Merge in some clean-up and optimization changes from glibc.
73660         [BLOCKSIZE]: Move definition to top of file.
73661         Ensure that it is a multiple of 64.
73662         Rearrange loop exit tests so as to avoid performing an
73663         additional fread after encountering an error or EOF.
73664         * lib/md5.h (md5_uintptr): Define.
73665         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
73666         return to the initial working directory.  Preserve errno
73667         for caller.
73668         * lib/idcache.c: Include "xalloc.h".
73669         (xmalloc, xrealloc): Remove decls.
73670         (getuser): Remove casts no longer required in C89.
73671         * lib/human.c: Include stdio.h, for sprintf.
73672         * lib/group-member.c: Include "xalloc.h".
73673         (xmalloc, xrealloc): Remove decls.
73674         (get_group_info): Remove casts no longer required in C89.
73675         * lib/getusershell.c (readname): Remove casts no longer required in
73676         C89.
73677         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
73678         * lib/getline.c: Whitespace fix, from coreutils.
73679
73680 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73681
73682         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
73683         Check for isascii.
73684
73685         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73686         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73687         Undo previous (whitespace-only) change.
73688
73689 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73690
73691         * lib/exclude.c: Include <ctype.h>
73692         (IN_CTYPE_DOMAIN): New macro.
73693         (is_space): New fn.
73694         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73695         and empty lines.
73696
73697         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73698         Undo previous (whitespace-only) change.
73699
73700 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73701
73702         * config/srclist-update: Change update back to the old behavior,
73703         leaving whitespace alone.  Use one 'sed' command rather than a
73704         pipeline.
73705         (fixlicense): Now a variable, not a function.
73706         (remove_trailing_blanks): Remove.
73707         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73708         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73709         Undo previous (whitespace-only) change.
73710
73711 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73712
73713         Merge from coreutils.
73714         * modules/euidaccess: Add lib_SOURCES, include for new
73715         file euidaccess.h
73716
73717 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73718
73719         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73720         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73721         Normalize leading white space and remove trailing white space.
73722
73723         Merge from coreutils
73724         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73725
73726         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73727         0.12.1.  These files are now being upgraded automatically by
73728         ../config/srclist-update.
73729
73730 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73731
73732         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73733         Normalize leading white space and remove trailing white space.
73734         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73735         notice, as per ../config/srclist-update.
73736
73737         Merge from coreutils.
73738         * lib/euidaccess.h: New file.
73739         * lib/euidaccess.c: Include it.
73740         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73741         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73742         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73743
73744 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73745
73746         * config/srclist-update: Add copyright notice.
73747         (remove_id_lines, remove_trailing_blanks): New constants.
73748         (fixfile): Use them to normalize spacing a bit in copied files.
73749         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73750         Normalize leading white space and remove trailing white space.
73751
73752         * config/texinfo.tex: Sync with texinfo.
73753
73754         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73755         strtoul.c from libc, to merge coreutils whitespace changes.
73756
73757         * config/srclist.txt: Get the following m4 files from gettext:
73758         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73759         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73760         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73761         wint_t.m4.
73762
73763 2003-08-12  Karl Berry  <karl@gnu.org>
73764
73765         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73766         been made.
73767
73768 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73769
73770         * modules/gnu-source, m4/gnu-source.m4:
73771         Remove; we're assuming Autoconf 2.54 or later now.
73772         Suggested by Bruno Haible.
73773         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73774
73775 2003-08-11  Bruno Haible  <bruno@clisp.org>
73776
73777         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73778
73779 2003-08-11  Bruno Haible  <bruno@clisp.org>
73780
73781         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73782         (vasnprintf): Use it instead of wcslen.
73783
73784 2003-08-11  Bruno Haible  <bruno@clisp.org>
73785
73786         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73787         value to ensure that _Bool promotes to int. Use #define for _Bool when
73788         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73789
73790 2003-08-10  Karl Berry  <karl@gnu.org>
73791
73792         * lib/regex.h: update from libc (whitespace fix).
73793
73794 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73795
73796         Merge some files from coreutils.  These changes were
73797         originally made by Jim Meyering.
73798         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
73799         many older Unixes require this.
73800         * lib/alloca.c (alloca): Remove cast to argument of free;
73801         no longer needed in C89.
73802         * lib/alloca_.h, regex.h: Fix white space to match
73803         what GNU indent does.
73804
73805 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73806
73807         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
73808         apparently Emacs's Unicode mode got confused before my 2003-08-05
73809         checkin.
73810
73811 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73812
73813         * m4/extensions.m4: New file.
73814         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
73815         Require gl_USE_SYSTEM_EXTENSIONS.
73816         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
73817         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
73818
73819 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73820
73821         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
73822         * modules/extensions, modules/gnu-source: New files.
73823         * modules/timespec, modules/unlocked-io: Depend on extensions.
73824
73825 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73826
73827         * modules/restrict: New file.
73828         * MODULES.html.sh (func_all_modules): Add restrict.
73829         * modules/regex: Depend on restrict.
73830
73831 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73832
73833         * m4/restrict.m4: New file.
73834         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
73835
73836 2003-08-07  Bruno Haible  <bruno@clisp.org>
73837
73838         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
73839         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
73840
73841 2003-08-07  Bruno Haible  <bruno@clisp.org>
73842
73843         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
73844         makes the module 'getndelim2' compatible with the module 'getline'.
73845
73846 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73847
73848         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
73849         byte with "\201" to avoid glitches when editing that source file
73850         with multi-gnome-terminal.
73851
73852 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73853
73854         * lib/bumpalloc.h: Remove.
73855
73856 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73857
73858         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
73859         * modules/bumpalloc: Remove.
73860
73861 2003-08-04  Paul Eggert  <eggert@twinsun.com>
73862
73863         * lib/getloadavg.c: Change copyright notice and spacing to conform to
73864         GNU coding style.
73865
73866         Merge from coreutils.
73867         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
73868         1. From glibc.
73869         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
73870         from Karl Berry, implemented by Jim Meyering.
73871         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
73872         from Dmitry V. Levin.
73873         Remove anachronistic cast of xrealloc.
73874         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
73875         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
73876         type. Otherwise, it wouldn't compile with at least /bin/cc on
73877         ymp-cray-unicos9.0.2.X.
73878         Combine two mostly-identical uses of alloca into one.
73879         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
73880
73881 2003-08-04  Dave Love  <d.love@dl.ac.uk>
73882
73883         [From Emacs.]
73884
73885         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
73886         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
73887         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
73888         obsolete NLIST_NAME_UNION.
73889         [__GNU__]: Undef BSD and FSCALE.
73890         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
73891
73892 2003-08-03  Paul Eggert  <eggert@twinsun.com>
73893
73894         * lib/stdbool_.h (_Bool): Make it signed char, instead of
73895         an enum type, so that it's guaranteed to promote to int.  See:
73896         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
73897
73898 2003-08-03  Karl Berry  <karl@gnu.org>
73899
73900         * config/depcomp: update from automake.
73901
73902 2003-07-31  Paul Eggert  <eggert@twinsun.com>
73903
73904         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
73905         (strerror): Don't assume that a printable int fits in 14 bytes.
73906
73907 2003-07-31  Bruno Haible  <bruno@clisp.org>
73908
73909         * modules/getpass-gnu: New file.
73910         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
73911
73912 2003-07-31  Bruno Haible  <bruno@clisp.org>
73913
73914         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
73915
73916 2003-07-24  Karl Berry  <karl@gnu.org>
73917
73918         * config/missing: update from automake.
73919
73920 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
73921             Bruno Haible  <bruno@clisp.org>
73922
73923         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
73924         * lib/getline.c (getline, getdelim): Likewise.
73925         Remove _GNU_SOURCE define; now it's defined in config.h through
73926         m4/getline.m4.
73927
73928 2003-07-23  Karl Berry  <karl@gnu.org>
73929
73930         * config/config.sub: update from prep.
73931
73932 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73933
73934         * modules/xalloc (Depends-on): Add exitfail.
73935         * modules/xmemcoll: Likewise.
73936
73937 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73938
73939         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
73940         over-parenthesization in macros.
73941
73942         Sync with coreutils.
73943
73944         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
73945         required by C99.
73946
73947         Use `exit_failure' for xalloc and xmemcoll instead of their own
73948         private exit-failure variables.
73949         * lib/xalloc.h (xalloc_exit_failure): Remove.
73950         * lib/xmalloc.c: Likewise.  Include exitfail.h.
73951         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
73952         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
73953         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
73954         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
73955
73956 2003-07-20  Jim Meyering  <jim@meyering.net>
73957
73958         * modules/closeout (Depends-on): Add exitfail.
73959         Suggestion from Bruno Haible.
73960
73961 2003-07-19  Karl Berry  <karl@gnu.org>
73962
73963         * config/config.sub: update from prep.
73964
73965 2003-07-18  Paul Eggert  <eggert@twinsun.com>
73966
73967         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
73968         Remove.
73969         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
73970         to test that it can stand by itself.  Include "exitfail.h".
73971         Clients should set exit_failure instead.
73972         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
73973
73974 2003-07-18  Bruno Haible  <bruno@clisp.org>
73975
73976         * modules/getndelim2: New file.
73977         * modules/getline: Share files with module getndelim2.
73978         * modules/getnline: Depend on getndelim2 instead of sharing files with
73979         it. Add getnline.c to lib_SOURCES.
73980         * MODULES.html.sh (func_all_modules): Add getndelim2.
73981
73982 2003-07-18  Bruno Haible  <bruno@clisp.org>
73983
73984         * m4/getndelim2.m4: New file.
73985         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
73986         invoke gl_PREREQ_GETNDELIM2.
73987         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
73988         gl_PREREQ_GETNDELIM2.
73989         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
73990         gl_GETNDELIM2.
73991
73992 2003-07-18  Bruno Haible  <bruno@clisp.org>
73993
73994         * lib/getndelim2.h: New file.
73995         * lib/getndelim2.c: Make into a module of its own. Include config.h,
73996         getndelim2.h.
73997         (getndelim2): Make non-static. Change return type to ssize_t.
73998         * lib/getline.h: Change argument names.
73999         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74000         * lib/getnline.c: Include getndelim2.h.
74001
74002 2003-07-18  Andreas Schwab  <schwab@suse.de>
74003
74004         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74005
74006 2003-07-17  Karl Berry  <karl@gnu.org>
74007
74008         * config/config.sub: update from prep.
74009
74010 2003-07-17  Bruno Haible  <bruno@clisp.org>
74011
74012         * modules/getnline: New file.
74013         * modules/getline: Add lib/getndelim2.c to source file list.
74014         * MODULES.html.sh (func_all_modules): Add getnline.
74015
74016 2003-07-17  Bruno Haible  <bruno@clisp.org>
74017
74018         * m4/getnline.m4: New file.
74019
74020 2003-07-17  Bruno Haible  <bruno@clisp.org>
74021
74022         * m4/Makefile.am.in: Remove file.
74023         * m4/Makefile.am: Remove file.
74024         * m4/Makefile.in: Remove file.
74025
74026 2003-07-17  Bruno Haible  <bruno@clisp.org>
74027
74028         * lib/getnline.h: New file.
74029         * lib/getnline.c: New file.
74030         * lib/getndelim2.c: New file, extracted from getline.c.
74031         (getndelim2): Renamed from getdelim2, with added nmax argument.
74032         * lib/getline.c: Include getndelim2.c.
74033         (getdelim2): Moved out to getndelim2.c.
74034         (getline, getdelim): Update.
74035
74036 2003-07-17  Bruno Haible  <bruno@clisp.org>
74037
74038         * lib/Makefile.am: Remove file.
74039         * lib/Makefile.in: Remove file.
74040
74041 2003-07-17  Bruno Haible  <bruno@clisp.org>
74042
74043         * configure.in: Remove file.
74044         * Makefile.in: Remove file.
74045
74046 2003-07-17  Bruno Haible  <bruno@clisp.org>
74047
74048         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74049
74050 2003-07-16  Karl Berry  <karl@gnu.org>
74051
74052         * config/srclist-update: was running fixlicense twice, which caused
74053                 texinfo.tex to be nullified for some reason.  Simplify,
74054                 $gplsrc is no longer needed as far as I can see?
74055
74056 2003-07-16  Jim Meyering  <jim@meyering.net>
74057
74058         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74059
74060 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74061
74062         * config/srclist.txt: Get the following files from gettext-runtime/intl
74063         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74064         ref-del.sin.  From Bruno Haible.
74065         * config/srclist-update (fixfile): Change grep pattern again, since the
74066         previous fix didn't work (there was another trailing $).  Use
74067         '[$]' to escape the $s.
74068
74069 2003-07-15  Karl Berry  <karl@gnu.org>
74070
74071         * lib/vasnprintf.c: update from gettext.
74072
74073 2003-07-15  Karl Berry  <karl@gnu.org>
74074
74075         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74076         gets expanded when surrounded by '$'.
74077
74078 2003-07-15  Jim Meyering  <jim@meyering.net>
74079
74080         * modules/save-cwd: Don't depend on error.  From Derek Price.
74081
74082 2003-07-15  Jim Meyering  <jim@meyering.net>
74083
74084         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74085
74086 2003-07-14  Simon Josefsson  <jas@extundo.com>
74087
74088         * modules/mempcpy: New file.
74089         * MODULES.html.sh (func_all_modules): Add mempcpy.
74090
74091 2003-07-14  Simon Josefsson  <jas@extundo.com>
74092
74093         * m4/mempcpy.m4: New file.
74094
74095 2003-07-14  Simon Josefsson  <jas@extundo.com>
74096
74097         * lib/mempcpy.h: New file.
74098         * lib/mempcpy.c: New file.
74099
74100 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74101
74102         * modules/getdate, modules/posixtm: Depend on mktime.
74103
74104 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74105
74106         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74107         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74108         unicodeio.c, unicodeio.h, unlocked-io.h:
74109         Switch from LGPL to GPL.
74110
74111 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74112
74113         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74114         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74115         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74116         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74117         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74118         updated automatically by ../config/srclist-update.  This changes
74119         their license from LPGL to GPL.
74120
74121 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74122
74123         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74124         assumed to refer to the root of the most recent stable gettext version.
74125         * config/srclistvars.sh: Add defaults for eggert.
74126         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74127         Match "This program" as well as "The program".  This is needed
74128         for gettext.
74129
74130 2003-07-14  Jim Meyering  <jim@meyering.net>
74131
74132         Don't emit diagnostics.  Let callers do that.
74133         * lib/save-cwd.c: Don't include "error.h".
74134         (save_cwd): Don't call error.  Ensure that errno is valid
74135         when returning nonzero.
74136
74137         * lib/save-cwd.h (restore_cwd): Update prototype.
74138         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74139         Simplify.  Don't call error upon failure.  Let callers do that.
74140         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74141         when auditing is enabled.  But don't bother updating the #if.
74142
74143 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74144
74145         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74146         it breaks C++ compilation.
74147         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74148
74149 2003-07-10  Simon Josefsson  <jas@extundo.com>
74150
74151         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74152
74153 2003-07-10  Jim Meyering  <jim@meyering.net>
74154
74155         * m4/clock_time.m4: Remove trailing blank.
74156         * m4/intmax_t.m4: Likewise.
74157
74158 2003-07-10  Jim Meyering  <jim@meyering.net>
74159
74160         * lib/vasnprintf.c: Remove trailing blanks.
74161         Make cpp indentation consistent.
74162
74163 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74164
74165         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74166         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74167         Switch from LGPL to GPL.
74168
74169 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74170
74171         * config/srclist.txt: Sort sublists.  Add
74172         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74173         that differ from gnulib for one reason or another; we'd like this list
74174         to be smaller but for now let's document what we have.
74175
74176 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74177
74178         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74179         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74180         and sweeter "eval x=$x".
74181         * config/srclist.txt: Get lib/argp* from glibc.
74182
74183 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74184
74185         * lib/mktime.c: Fix some boundary cases and remove need for floating
74186         point.
74187
74188         Issue a compile-time diagnostic if time_t is floating point, or if
74189         two's complement arithmetic is not in effect, or if arithmetic
74190         right shift does not propagate the sign.  These assumptions were
74191         all in the original code but they weren't checked.
74192
74193         (TIME_T_MIDPOINT, verify): New macros.
74194         (__isleap): Remove; it has integer overflow problems.
74195         (leapyear): New function, without those problems.
74196         (ydhms_tm_diff): Remove; splitting into two parts.
74197         (ydhms_diff): New function, containing the arithmetic part of
74198         the old ydhms_tm_diff function.  Issue a compile-time
74199         diagnostic if we are not using C99 integer division.
74200         Avoid casts when possible.
74201         (guess_time_tm): New function, containing the checking part of
74202         the old ydhms_tm_diff function.  Return the new value, rather than
74203         the difference between it and the old.  Accept a new argument T
74204         so that *T specifies the old value.  Check for overflow in the result.
74205
74206         (__mktime_internal): Use a time_t offset, not a long int offset.
74207         This undoes the 2003-06-04 change, which is no longer needed now
74208         that we have better overflow checking.
74209         (localtime_offset): Likewise.
74210
74211         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74212         and long are 64-bit but int is only 32-bit.
74213         (ydhms_diff): Use long int to store year1 and yday1.
74214         Issue a compile-time diagnostic if long int is not wide enough.
74215
74216         (__mktime_internal): Use long int to store adjusted year and yday.
74217         Use plain C rather than preprocessor commands, if that doesn't
74218         affect efficiency.
74219         Check for overflow (and try to repair) after each probe
74220         rather than checking only at the very end.  This avoids some bugs
74221         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74222         does not equal GMT offset at maximum time).
74223         Use integer to check for overflow rather than floating point; this
74224         is more portable to non-IEEE hosts, and is a tad faster.
74225         When we detect that we are oscillating between two values,
74226         don't check whether tm_isdst has the requested value, since
74227         we already know the answer.  When tm_isdst has the wrong value,
74228         use a different heuristic to find the right one, based on the
74229         extreme values actually observed in practice in tz2003a,
74230         rather than the (overly optimistic) "previous 3 calendar quarters".
74231
74232         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74233         "T const" to accommodate glibc style.
74234         (check_result): Use less-confusing report format.  "long" -> "long int.
74235         (main): Likewise.
74236         Don't loop if the iteration overflows time_t.
74237         Allow a negative step in the iteration.
74238
74239 2003-07-06  Karl Berry  <karl@gnu.org>
74240
74241         * config/depcomp: update from automake.
74242         * config/config.sub: update from prep.
74243
74244 2003-07-03  Karl Berry  <karl@gnu.org>
74245
74246         * config/config.guess: update from prep.
74247
74248 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74249
74250         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74251         xreadlink.c now includes it unconditionally.
74252
74253 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74254
74255         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74256         having it depend on HAVE_SYS_TYPES_H.
74257
74258 2003-07-01  Bruno Haible  <bruno@clisp.org>
74259
74260         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74261         <sys/types.h> should be sufficient.
74262         Reported by Paul Eggert.
74263
74264 2003-06-26  Karl Berry  <karl@gnu.org>
74265
74266         * config/depcomp: update from automake.
74267
74268 2003-06-26  Bruno Haible  <bruno@clisp.org>
74269
74270         * modules/human: Depend on module stdbool.
74271
74272 2003-06-25  Bruno Haible  <bruno@clisp.org>
74273
74274         * modules/readlink: New file.
74275         * modules/xreadlink: Depend on it.
74276         * MODULES.html.sh (func_all_modules): Add readlink.
74277
74278 2003-06-25  Bruno Haible  <bruno@clisp.org>
74279
74280         * m4/readlink.m4: New file.
74281
74282 2003-06-25  Bruno Haible  <bruno@clisp.org>
74283
74284         * lib/readlink.c: New file.
74285
74286 2003-06-22  Karl Berry  <karl@gnu.org>
74287
74288         * config/srclist.txt: update mkinstalldirs from automake.
74289         * config/mkinstalldirs: update.
74290
74291 2003-06-22  Bruno Haible  <bruno@clisp.org>
74292
74293         Portability to mingw32.
74294         * m4/ssize_t.m4: New file, from GNU gettext.
74295         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74296         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74297
74298 2003-06-22  Bruno Haible  <bruno@clisp.org>
74299
74300         * modules/safe-read: Add m4/ssize_t.m4.
74301         * modules/xreadlink: Add m4/ssize_t.m4.
74302
74303 2003-06-20  Bruno Haible  <bruno@clisp.org>
74304
74305         Assume C89, so PARAMS isn't needed.
74306         * lib/unicodeio.h (PARAMS): Remove.
74307         * lib/unicodeio.c: Don't use PARAMS.
74308
74309 2003-06-18  Karl Berry  <karl@gnu.org>
74310
74311         * config/config.{guess,sub}: update from prep.
74312
74313 2003-06-18  Jim Meyering  <jim@meyering.net>
74314
74315         Merge changes from coreutils.
74316         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74317         Remove explicit declarations of xmalloc and realloc.
74318         Include xalloc.h.
74319         (read_utmp): Remove anachronistic cast of xmalloc.
74320
74321 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74322
74323         Assume C89, so PARAMS isn't needed.
74324         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74325         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74326         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74327         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74328         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74329         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74330         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74331         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74332         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74333         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74334         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74335         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74336         no longer needed. Anyway, config.h should always be included before any
74337         other file.
74338
74339 2003-06-11  Simon Josefsson  <jas@extundo.com>
74340
74341         * modules/sysexits: New file.
74342         * MODULES.html.sh (func_all_modules): Add sysexits.
74343
74344 2003-06-11  Simon Josefsson  <jas@extundo.com>
74345
74346         * lib/sysexit_.h: New file.
74347
74348 2003-06-11  Derek Price  <derek@ximbiot.com>
74349
74350         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74351         necessary.
74352
74353 2003-06-11  Bruno Haible  <bruno@clisp.org>
74354
74355         * m4/sysexits.m4: New file.
74356
74357 2003-06-10  Simon Josefsson  <jas@extundo.com>
74358
74359         * lib/argp.h: New file, from glibc.
74360         * lib/argp-ba.c: New file, from glibc.
74361         * lib/argp-eexst.c: New file, from glibc.
74362         * lib/argp-fmtstream.c: New file, from glibc.
74363         * lib/argp-fmtstream.h: New file, from glibc.
74364         * lib/argp-fs-xinl.c: New file, from glibc.
74365         * lib/argp-help.c: New file, from glibc.
74366         * lib/argp-namefrob.h: New file, from glibc.
74367         * lib/argp-parse.c: New file, from glibc.
74368         * lib/argp-pv.c: New file, from glibc.
74369         * lib/argp-pvh.c: New file, from glibc.
74370         * lib/argp-xinl.c: New file, from glibc.
74371
74372 2003-06-10  Simon Josefsson  <jas@extundo.com>
74373
74374         * modules/strchrnul: New file.
74375
74376 2003-06-10  Simon Josefsson  <jas@extundo.com>
74377
74378         * modules/argp: New file.
74379
74380 2003-06-10  Simon Josefsson  <jas@extundo.com>
74381
74382         * m4/strchrnul.m4: New file.
74383
74384 2003-06-10  Simon Josefsson  <jas@extundo.com>
74385
74386         * lib/strchrnul.h: New file.
74387         * lib/strchrnul.c: New file.
74388
74389 2003-06-10  Bruno Haible  <bruno@clisp.org>
74390
74391         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74392
74393 2003-06-07  Karl Berry  <karl@gnu.org>
74394
74395         * config/config.{guess,sub}: update from prep.
74396
74397 2003-06-07  Jim Meyering  <jim@meyering.net>
74398
74399         * modules/strtod: Use $(...) notation, not @...@ for
74400         AC_REPLACE'd variables.
74401         * modules/localcharset: Likewise.
74402
74403 2003-06-07  Jim Meyering  <jim@meyering.net>
74404
74405         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74406         in place of my name in the copyright comment.
74407         Remove definition and uses of __P.
74408
74409         From coreutils.
74410         * lib/stat.c: Don't declare xmalloc explicitly.
74411         Instead, include "xalloc.h".
74412         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74413         xrealloc, and xcalloc return values.
74414         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74415         Improve comment.
74416         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74417
74418 2003-06-07  Bruno Haible  <bruno@clisp.org>
74419
74420         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74421         avoid AC_CONFIG_LINKS.
74422         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74423         fnmatch.h, to avoid AC_CONFIG_LINKS.
74424         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74425
74426 2003-06-07  Bruno Haible  <bruno@clisp.org>
74427
74428         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74429         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74430         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74431         directory.
74432         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74433         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74434         directory.
74435
74436 2003-06-06  Jim Meyering  <jim@meyering.net>
74437
74438         Merge from coreutils.
74439         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74440         Consolidate declarations and initializations of *_base* locals.
74441
74442         Merge from coreutils.
74443         This avoids a core dump on systems without GNU putenv,
74444         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74445         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74446         (unsetenv): New static function, from GNU libc.
74447         (rpl_putenv): Use it.
74448
74449         * lib/modechange.c: Remove trailing blanks.
74450
74451         Merge from coreutils.
74452         * lib/fsusage.c: Remove declaration of statfs.
74453         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74454
74455         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74456
74457 2003-06-06  Jim Meyering  <jim@meyering.net>
74458
74459         * lib/stdbool_.h: Renamed from stdbool.h.in.
74460
74461 2003-06-06  Jim Meyering  <jim@meyering.net>
74462             Bruno Haible  <bruno@clisp.org>
74463
74464         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74465         Adjust Makefile.am snippet not to redirect directly to target.
74466         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74467
74468 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74469
74470         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74471         mismatch, look in future quarters as well as past.  This fixes a
74472         bug when processing fall-backwards gaps immediately after a long
74473         period of daylight-saving time.
74474
74475         * lib/mktime.c: Assume freestanding C89 or better.
74476         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74477         (__P): Remove; not used.
74478         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74479         (mktime, not_equal_tm, print_tm, check_result,
74480         main): Use prototypes.  Use const * where appropriate.
74481         (main): Fix typo in testing code that uncovered by above changes.
74482         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74483
74484 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74485
74486         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74487         locale.h, localeconv.  This merges changes from coreutils.
74488
74489         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74490         It can be removed after the next Autoconf is released.
74491         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74492         needed.
74493
74494 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74495
74496         * lib/mktime.c: Fix Debian bug 177940
74497         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74498         (localtime_offset): Now long int, not time_t, because we want it
74499         to be guaranteed to be signed.  All uses changed.
74500         (__mktime_internal): If overflow would occur when adding offset,
74501         don't add it.
74502
74503         Merge 'human' changes from coreutils.  Rewrite to support
74504         locale-specific notations like thousands separators.
74505         * lib/human.c: Simplify authorship notice.
74506         Include human.h immediately after config.h.
74507         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74508         <limits.h>: Do not include, since human.h does.
74509         (SIZE_MAX, UINTMAX_MAX): New macros.
74510         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74511         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74512         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74513         (power_letter): Renamed from suffixes.
74514         (generate_suffix_backwards): Remove.
74515         (adjust_value): Now takes int style (because of human.h changes)
74516         and long double value (for greater precision on some platforms).
74517         (group_number): New function.
74518         (human_readable): Use it.  Use integer options, not enum.
74519         Put the options before the sizes in the arg list.
74520         Support all the new options.
74521         The old human_readable function has been removed;
74522         use inttostr.h instead.
74523         (human_readable, default_block_size, humblock):
74524         Use uintmax_t, not int, for block sizes.
74525         (human_readable_inexact, block_size_types): Remove.
74526         (block_size_opts): New constant.
74527         (human_options): Renamed from human_block_size, with new signature
74528         that allows block sizes up to UINTMAX_MAX.  All callers changed.
74529         * lib/human.h: Add copyright and authorship notice.
74530         Include <limits.h> and <stdbool.h> unconditionally.
74531         (PARAMS): Remove.  All uses removed.
74532         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
74533         (enum human_inexact_style): Remove tag; now a nameless enum.
74534         (human_floor, human_ceiling, human_round_to_even): Now have
74535         values 2, 0, 1 rather than -1, 1, 0.
74536         (human_group_digits, human_suppress_point_zero, human_autoscale,
74537         human_base_1024, human_SI, human_B): New constants.
74538         (human_readable_inexact, human_block_size): Remove.
74539         (human_readable): Size args are now uintmax_t, not int.
74540         (human_options): New decl.
74541
74542         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
74543         unnecessary now that we assume C89 or better.  This change
74544         imported from coreutils.
74545
74546         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74547         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
74548         in the 2003-05-30 sync from glibc.
74549
74550         .h files should stand alone, but we shouldn't include <sys/types.h>
74551         if we can get away with just <stddef.h>.
74552
74553         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
74554         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
74555         rather than <sys/types.h>, as we merely need size_t.
74556         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
74557         to get size_t.
74558         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
74559         Include <stdio.h>, to get FILE.
74560         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
74561         memcasecmp.h has included <stddef.h> and all we need is size_t.
74562         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
74563         our interface, instead of including <sys/types.h>
74564
74565 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74566
74567         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
74568         now, as glibc mktime is buggy on non-glibc systems.
74569
74570 2003-06-03  Karl Berry  <karl@gnu.org>
74571
74572         * config/config.sub: update from prep.
74573
74574 2003-06-02  Paul Eggert  <eggert@twinsun.com>
74575
74576         [from coreutils]
74577         Fix some minor time-related bugs with POSIX time arguments.
74578         Some valid time stamps were being rejected (notably -1, and
74579         time stamps before 1900 on 64-bit hosts).  And some invalid
74580         time stamps were being accepted, e.g. September 31.
74581
74582         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
74583         that we can return (time_t) -1 successfully.
74584         * lib/posixtm.c: Likewise.
74585         [HAVE_STDBOOL_H]: Include <stdbool.h>.
74586         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
74587         (t): Remove static var.
74588         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
74589         of static var.  All uses changed.
74590         (year): Do not reject years before 1900; they can occur with
74591         64-bit time_t.
74592         (posix_time_parse): Do not check for out-of-range components;
74593         that is now the caller's responsibility, since our checks were
74594         only approximations.
74595         (posixtime): Use mktime to check for out-of-range components,
74596         since it knows them exactly.
74597         If mktime returns (time_t) -1, check whether an error actually occurred
74598         by invoking localtime on -1.
74599         (main) [TEST_POSIXTIME]: Check for input data errors, and report
74600         posixtime failures better.
74601         Improve the test data (in comments only).
74602
74603 2003-06-02  Karl Berry  <karl@gnu.org>
74604
74605         * config/mkinstalldirs (version): new variable.
74606         (--version): new option.
74607         (usage): improve message.
74608
74609 2003-05-30  Karl Berry  <karl@gnu.org>
74610
74611         * lib/mktime.c: update from libc.
74612
74613 2003-05-30  Bruno Haible  <bruno@clisp.org>
74614
74615         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
74616         * config/config.rpath: Upgrade to gettext-0.12.1.
74617
74618 2003-05-30  Bruno Haible  <bruno@clisp.org>
74619
74620         * m4/gettext.m4: Upgrade to gettext-0.12.1.
74621         * m4/nls.m4: New file, from gettext-0.12.1.
74622         * m4/po.m4: New file, from gettext-0.12.1.
74623         * m4/progtest.m4: Upgrade to gettext-0.12.1.
74624
74625 2003-05-30  Bruno Haible  <bruno@clisp.org>
74626
74627         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
74628         * lib/localcharset.h: Likewise.
74629         * lib/localcharset.c: Likewise.
74630
74631 2003-05-29  Karl Berry  <karl@gnu.org>
74632
74633         * config/config.rpath: update from gettext.
74634
74635 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74636
74637         Assume the headers required for C89 freestanding compilers.
74638         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
74639         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
74640         * m4/human.m4 (gl_HUMAN): Likewise.
74641         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
74642         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
74643         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74644         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
74645         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74646         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
74647
74648 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74649
74650         Assume the headers required for C89 freestanding compilers.
74651         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
74652         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
74653         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
74654         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
74655         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
74656         define, since <limits.h> is guaranteed to do that.
74657         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
74658         * lib/exclude.c: Include <stdbool.h> unconditionally.
74659         * lib/tempname.c: Include <stddef.h> unconditionally.
74660         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
74661         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
74662         <stddef.h> does that.
74663         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
74664         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
74665         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
74666         needed.
74667         * lib/xstrtol.c: Likewise.
74668         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
74669         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
74670
74671         * lib/addext.c (addext): Use assignment rather than cast, to avoid
74672         warnings on some platforms.
74673
74674         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74675         arbitrarily.
74676
74677 2003-05-26  Jim Meyering  <jim@meyering.net>
74678
74679         Merge in a change from coreutils:
74680         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
74681         that is guaranteed to be `no'.  Use `no_such_member' to indicate
74682         that condition, rather than `-1' which is slightly misleading.
74683         Change the name of the cache variable to have the gl_ prefix.
74684         Prompted by a patch from Richard Dawe for DJGPP.
74685
74686 2003-05-24  Karl Berry  <karl@gnu.org>
74687
74688         * config/config.guess: update from prep.
74689
74690 2003-05-22  Karl Berry  <karl@gnu.org>
74691
74692         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74693
74694 2003-05-20  Karl Berry  <karl@gnu.org>
74695
74696         * config/config.guess: update from prep.
74697
74698 2003-05-18  Karl Berry  <karl@gnu.org>
74699
74700         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74701         might actually be set by the user.
74702
74703         * config/depcomp, install-sh, mdate-sh: update from automake.
74704
74705 2003-05-17  Bruno Haible  <bruno@clisp.org>
74706
74707         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74708         invalid expansion for AC_EGREP_CPP.
74709         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74710         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74711         Suggested by Akim Demaille <akim@epita.fr> in
74712         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74713
74714 2003-05-12  Jim Meyering  <jim@meyering.net>
74715
74716         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74717         the space-padded-by-default conversion specifiers, %e, %k, %l.
74718
74719 2003-05-12  Bruno Haible  <bruno@clisp.org>
74720
74721         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74722         the string is longer than 4 KB.
74723
74724 2003-05-11  Karl Berry  <karl@gnu.org>
74725
74726         * config/config.{guess,sub}: update from prep.
74727
74728 2003-05-09  Bruno Haible  <bruno@clisp.org>
74729
74730         * modules/error: Add m4/strerror_r.m4 to file list.
74731
74732 2003-05-03  Bruno Haible  <bruno@clisp.org>
74733
74734         Upgrade to Unicode-4.0.
74735         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74736         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74737         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74738         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74739         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74740         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74741         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74742         Change width of U+E0100..U+E01EF from 1 to 0.
74743
74744 2003-04-25  Jim Meyering  <jim@meyering.net>
74745
74746         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74747         of type size_t, not int.
74748
74749 2003-04-25  Bruno Haible  <bruno@clisp.org>
74750
74751         * lib/copy-file.c: Include <stddef.h>, for size_t.
74752
74753 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74754
74755         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74756         code which expansion is under static control.  Patch imported from
74757         Akim Demaille's patch to Bison; see
74758         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74759
74760 2003-04-14  Bruno Haible  <bruno@clisp.org>
74761
74762         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74763
74764 2003-04-11  Jim Meyering  <jim@meyering.net>
74765
74766         Merge changes from Coreutils.
74767
74768         2003-03-22  Jim Meyering  <jim@meyering.net>
74769
74770         * lib/strftime.c (widen): Cast alloca return value to proper type.
74771
74772         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74773
74774         From GNU libc.
74775         * lib/strftime.c (my_strftime): Handle very large width
74776         specifications for numeric values correctly.  Improve checks for
74777         overflow.
74778
74779         2003-01-19  Jim Meyering  <jim@meyering.net>
74780
74781         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74782         definitions.
74783         (nl_get_alt_digit) [! defined my_strftime]: Define.
74784         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74785         _nl_get_alt_digit and _nl_get_walt_digit.
74786
74787         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74788         libc. These changes have no effect outside of _LIBC.
74789
74790 2003-04-10  Bruno Haible  <bruno@clisp.org>
74791
74792         * modules/findprog: New file.
74793         * MODULES.html.sh (func_all_modules): Add it.
74794
74795 2003-04-10  Bruno Haible  <bruno@clisp.org>
74796
74797         * m4/findprog.m4: New file.
74798         * m4/eaccess.m4: New file.
74799
74800 2003-04-10  Bruno Haible  <bruno@clisp.org>
74801
74802         * lib/findprog.h: New file, from GNU gettext.
74803         * lib/findprog.c: New file, from GNU gettext.
74804
74805 2003-04-05  Jim Meyering  <jim@meyering.net>
74806
74807         Merge changes from Coreutils.
74808
74809         * lib/exclude.h (PARAMS): Remove definition and uses.
74810         * lib/exclude.c: Remove uses of `PARAMS'.
74811
74812         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
74813         Add test-cases for DOS filenames. Declare program_name.
74814         (main): Set up program_name.  Patch by Rich Dawe.
74815
74816         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74817         error from mntctl.
74818         Use mntctl's return value to drive the entry-processing loop, since
74819         we can't rely on the value of the vmt_length member in the last
74820         entry.  On some systems doing so could result in exhausting
74821         virtual memory.  Based in part on a patch from Mike Jetzer.
74822
74823 2003-04-04  Bruno Haible  <bruno@clisp.org>
74824
74825         * modules/linebreak: New file.
74826         * MODULES.html.sh (func_all_modules): Add it.
74827
74828 2003-04-04  Bruno Haible  <bruno@clisp.org>
74829
74830         * m4/linebreak.m4: New file.
74831
74832 2003-04-04  Bruno Haible  <bruno@clisp.org>
74833
74834         * lib/linebreak.h: New file, from GNU gettext.
74835         * lib/linebreak.c: New file, from GNU gettext with slight
74836         modifications.
74837         * lib/lbrkprop.h: New file, from GNU gettext.
74838
74839 2003-04-03  Bruno Haible  <bruno@clisp.org>
74840
74841         * modules/utf8-ucs4: New file.
74842         * modules/utf16-ucs4: New file.
74843         * modules/ucs4-utf8: New file.
74844         * modules/ucs4-utf16: New file.
74845         * MODULES.html.sh (func_all_modules): Add them.
74846
74847 2003-04-03  Bruno Haible  <bruno@clisp.org>
74848
74849         * m4/utf-ucs4.m4: New file.
74850         * m4/ucs4-utf.m4: New file.
74851
74852 2003-04-03  Bruno Haible  <bruno@clisp.org>
74853
74854         * lib/utf8-ucs4.h: New file, from GNU gettext.
74855         * lib/utf16-ucs4.h: New file, from GNU gettext.
74856         * lib/ucs4-utf8.h: New file, from GNU gettext.
74857         * lib/ucs4-utf16.h: New file, from GNU gettext.
74858
74859 2003-04-02  Bruno Haible  <bruno@clisp.org>
74860
74861         * modules/binary-io: New file.
74862         * MODULES.html.sh (func_all_modules): Add it.
74863
74864 2003-04-02  Bruno Haible  <bruno@clisp.org>
74865
74866         * lib/binary-io.h: New file, from GNU gettext.
74867
74868 2003-04-01  Bruno Haible  <bruno@clisp.org>
74869
74870         * modules/pathname: New file.
74871         * MODULES.html.sh (func_all_modules): Add it.
74872
74873 2003-04-01  Bruno Haible  <bruno@clisp.org>
74874
74875         * lib/pathname.h: New file, from GNU gettext.
74876         * lib/concatpath.c: New file, from GNU gettext.
74877
74878 2003-03-30  Bruno Haible  <bruno@clisp.org>
74879
74880         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
74881
74882 2003-03-30  Bruno Haible  <bruno@clisp.org>
74883
74884         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
74885         function chown() doesn't exist.
74886
74887 2003-03-28  Bruno Haible  <bruno@clisp.org>
74888
74889         * modules/copy-file: New file.
74890         * MODULES.html.sh (func_all_modules): Add it.
74891
74892 2003-03-28  Bruno Haible  <bruno@clisp.org>
74893
74894         * m4/copy-file.m4: New file.
74895
74896 2003-03-28  Bruno Haible  <bruno@clisp.org>
74897
74898         * lib/copy-file.h: New file, from GNU gettext.
74899         * lib/copy-file.c: New file, from GNU gettext.
74900
74901 2003-03-18  Jim Meyering  <jim@meyering.net>
74902
74903         * lib/quote.c (quote_n): Fix typo in comment.
74904
74905 2003-03-18  Bruno Haible  <bruno@clisp.org>
74906
74907         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
74908         checking.
74909         * m4/onceonly_2_57.m4: Likewise.
74910
74911 2003-03-17  Bruno Haible  <bruno@clisp.org>
74912
74913         * m4/onceonly.m4: Require autoconf 2.54 or newer.
74914         (m4_quote): Remove macro.
74915         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
74916
74917 2003-03-14  Jim Meyering  <jim@meyering.net>
74918
74919         Merge changes from Coreutils.
74920         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
74921         to be const, in order to avoid warnings.
74922         (obstack_room): Likewise.
74923         (obstack_empty_p): Likewise.
74924
74925 2003-03-14  Bruno Haible  <bruno@clisp.org>
74926
74927         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
74928         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
74929
74930 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74931
74932         Merge changes from Bison.
74933         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
74934         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
74935         when compiling Bison 1.875's `bitset bset = obstack_alloc
74936         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
74937         * lib/hash.c: Include <stdbool.h> unconditionally.
74938
74939 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74940
74941         * m4/onceonly.m4 (m4_quote): New macro.
74942         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
74943         Quote AC_FOREACH variable-expansions properly.
74944
74945 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74946
74947         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
74948
74949 2003-03-09  Paul Eggert  <eggert@twinsun.com>
74950
74951         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
74952         Reported by Bruce Becker; see:
74953         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
74954
74955 2003-03-03  Paul Eggert  <eggert@twinsun.com>
74956             Bruno Haible  <bruno@clisp.org>
74957
74958         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
74959         Reported by John Hughes, see
74960         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
74961
74962 2003-02-20  Bruno Haible  <bruno@clisp.org>
74963
74964         * MODULES.html.sh (func_all_modules): Add poll.
74965
74966 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74967
74968         * modules/poll: New file.
74969
74970 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74971
74972         * lib/poll_.h: New file.
74973         * lib/poll.c: New file.
74974
74975 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74976
74977         * m4/poll.m4: New file.
74978
74979 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74980
74981         * modules/mathl: New file.
74982
74983 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74984
74985         * lib/mathl.h: New file.
74986         * lib/acosl.c: New file.
74987         * lib/asinl.c: New file.
74988         * lib/atanl.c: New file.
74989         * lib/ceill.c: New file.
74990         * lib/cosl.c: New file.
74991         * lib/expl.c: New file.
74992         * lib/floorl.c: New file.
74993         * lib/frexpl.c: New file.
74994         * lib/ldexpl.c: New file.
74995         * lib/logl.c: New file.
74996         * lib/sincosl.c: New file.
74997         * lib/sinl.c: New file.
74998         * lib/sqrtl.c: New file.
74999         * lib/tanl.c: New file.
75000         * lib/trigl.c: New file.
75001         * lib/trigl.h: New file.
75002
75003 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75004
75005         * m4/mathl.m4: New file.
75006
75007 2003-02-18  Bruno Haible  <bruno@clisp.org>
75008
75009         * MODULES.html.sh (func_all_modules): Add mathl.
75010
75011 2003-02-17  Bruno Haible  <bruno@clisp.org>
75012
75013         * modules/mkdtemp: New module.
75014         * MODULES.html.sh (func_all_modules): Add it.
75015
75016 2003-02-17  Bruno Haible  <bruno@clisp.org>
75017
75018         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75019
75020 2003-02-17  Bruno Haible  <bruno@clisp.org>
75021
75022         * lib/mkdtemp.h: New file, from GNU gettext.
75023         * lib/mkdtemp.c: New file, from GNU gettext.
75024
75025 2003-02-02  Jim Meyering  <jim@meyering.net>
75026
75027         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75028         e.g. glibc-2.2.93.
75029
75030 2003-01-31  Bruno Haible  <bruno@clisp.org>
75031
75032         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75033         'rpl_rename'.
75034         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75035         'rpl_strnlen'.
75036         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75037         'rpl_strtod'.
75038         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75039         'rpl_utime'.
75040
75041 2003-01-31  Bruno Haible  <bruno@clisp.org>
75042
75043         * lib/rename.c: #undef rename before defining rpl_rename.
75044         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75045
75046 2003-01-30  Bruno Haible  <bruno@clisp.org>
75047
75048         * modules/vasnprintf, modules/vasprintf: New modules.
75049         * MODULES.html.sh (func_all_modules): Add them.
75050
75051 2003-01-30  Bruno Haible  <bruno@clisp.org>
75052
75053         * m4/signed.m4: New file, from GNU gettext.
75054         * m4/longdouble.m4: New file, from GNU gettext.
75055         * m4/wchar_t.m4: New file, from GNU gettext.
75056         * m4/wint_t.m4: New file, from GNU gettext.
75057         * m4/vasnprintf.m4: New file.
75058         * m4/vasprintf.m4: New file.
75059
75060 2003-01-30  Bruno Haible  <bruno@clisp.org>
75061
75062         * lib/printf-args.h: New file, from GNU gettext.
75063         * lib/printf-args.c: New file, from GNU gettext.
75064         * lib/printf-parse.h: New file, from GNU gettext.
75065         * lib/printf-parse.c: New file, from GNU gettext.
75066         * lib/vasnprintf.h: New file, from GNU gettext.
75067         * lib/vasnprintf.c: New file, from GNU gettext.
75068         * lib/asnprintf.c: New file, from GNU gettext.
75069         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75070         * lib/vasprintf.c: New file, from GNU gettext.
75071         * lib/asprintf.c: New file, from GNU gettext.
75072
75073 2003-01-29  Bruno Haible  <bruno@clisp.org>
75074
75075         * modules/stpncpy: New module.
75076         * MODULES.html.sh (func_all_modules): Add it.
75077
75078 2003-01-29  Bruno Haible  <bruno@clisp.org>
75079
75080         * m4/stpncpy.m4: New file.
75081
75082 2003-01-29  Bruno Haible  <bruno@clisp.org>
75083
75084         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75085         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75086
75087 2003-01-28  Bruno Haible  <bruno@clisp.org>
75088
75089         * modules/c-ctype: New module.
75090         * MODULES.html.sh (func_all_modules): Add it.
75091
75092 2003-01-28  Bruno Haible  <bruno@clisp.org>
75093
75094         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75095         Paul Eggert.
75096         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75097         Paul Eggert.
75098
75099 2003-01-27  Bruno Haible  <bruno@clisp.org>
75100
75101         * modules/xsetenv: New module.
75102         * MODULES.html.sh (func_all_modules): Add it.
75103
75104 2003-01-27  Bruno Haible  <bruno@clisp.org>
75105
75106         * lib/xsetenv.h: New file, from GNU gettext.
75107         * lib/xsetenv.c: New file, from GNU gettext.
75108
75109 2003-01-23  Jim Meyering  <jim@meyering.net>
75110
75111         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75112         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75113
75114 2003-01-23  Bruno Haible  <bruno@clisp.org>
75115
75116         * modules/minmax: New module.
75117         * MODULES.html.sh (func_all_modules): Add it.
75118
75119 2003-01-23  Bruno Haible  <bruno@clisp.org>
75120
75121         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75122         Eggert.
75123
75124 2003-01-22  Bruno Haible  <bruno@clisp.org>
75125
75126         * modules/exit: New module.
75127         * MODULES.html.sh (func_all_modules): Add it.
75128
75129 2003-01-22  Bruno Haible  <bruno@clisp.org>
75130
75131         * lib/exit.h: New file, from GNU gettext.
75132
75133 2003-01-19  Bruno Haible  <bruno@clisp.org>
75134
75135         * gnulib-tool: Recognize option --extract-maintainer.
75136         (func_get_maintainer): New function.
75137         * modules/*: Add Maintainer entry.
75138
75139 2003-01-16  Jim Meyering  <jim@meyering.net>
75140
75141         * m4/regex.m4: The `regex' struct is both input and output.
75142         Initialize it before each use.  Patch by Tim Waugh.
75143
75144 2003-01-16  Bruno Haible  <bruno@clisp.org>
75145
75146         * MODULES.html.sh: Add a table of contents. Add the module name as
75147         leftmost column. Add hyperlinks.
75148
75149 2003-01-15  Bruno Haible  <bruno@clisp.org>
75150
75151         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75152
75153 2003-01-15  Bruno Haible  <bruno@clisp.org>
75154
75155         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75156         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75157         suffix.
75158
75159 2003-01-15  Bruno Haible  <bruno@clisp.org>
75160
75161         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75162
75163 2003-01-15  Bruno Haible  <bruno@clisp.org>
75164
75165         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75166         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75167
75168 2003-01-14  Jim Meyering  <jim@meyering.net>
75169
75170         * lib/same.c (same_name): Tweak a comment.
75171
75172 2003-01-14  Bruno Haible  <bruno@clisp.org>
75173
75174         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75175         when a string comparison is sufficient.
75176
75177 2003-01-14  Bruno Haible  <bruno@clisp.org>
75178
75179         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75180         'unsigned int'.
75181
75182 2003-01-14  Bruno Haible  <bruno@clisp.org>
75183
75184         * lib/hash-pjw.c: Add comment about low quality of this function.
75185
75186 2003-01-13  Bruno Haible  <bruno@clisp.org>
75187
75188         * modules/stpcpy: Distribute lib/stpcpy.h.
75189         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75190
75191 2003-01-13  Bruno Haible  <bruno@clisp.org>
75192
75193         * modules/*: Add a description.
75194         * modules/strpbrk: Fix Makefile.am snippet.
75195         * modules/strtoimax: Fix dependencies.
75196         * modules/strtoumax: Likewise.
75197
75198 2003-01-13  Bruno Haible  <bruno@clisp.org>
75199
75200         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75201         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75202         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75203
75204 2003-01-13  Bruno Haible  <bruno@clisp.org>
75205
75206         * gnulib-tool (func_create_testdir): Store config/* files in the main
75207         directory.
75208         * config.rpath: Move to ...
75209         * config/config.rpath: ... here.
75210         * modules/gettext: Contains config/config.rpath, not config.rpath.
75211         * modules/iconv: Likewise.
75212
75213 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75214
75215         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75216         to avoid collisions with libcurses and libreadline.
75217
75218         * m4/getstr.m4: Remove.
75219         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75220
75221 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75222
75223         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75224         to avoid collisions with libcurses and libreadline.
75225
75226         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75227         * lib/getstr.h, getstr.c: Remove.
75228         * lib/getline.c: Include "getline.h", to check interface.
75229         Move body of old getstr.c here: this defines MIN_CHUNK and
75230         declares getdelim2, which is renamed from getstr.
75231         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75232
75233         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75234         All uses changed.
75235         * lib/linebuffer.h: Likewise.
75236         (readline): Remove backward-compatibility macro.
75237
75238 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75239
75240         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75241         to avoid collisions with libcurses and libreadline.
75242         * getstr: Remove.
75243         * MODULES.html.sh: Remove getstr.
75244         * modules/getline: Depend on unlocked-io, not getstr.
75245
75246 2003-01-12  Jim Meyering  <jim@meyering.net>
75247
75248         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75249
75250 2003-01-10  Bruno Haible  <bruno@clisp.org>
75251
75252         * modules/alloca: Change Makefile.am requirements. Simplify Include
75253         requirements. Add lib/alloca_.h to file list.
75254
75255 2003-01-10  Bruno Haible  <bruno@clisp.org>
75256
75257         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75258
75259 2003-01-10  Bruno Haible  <bruno@clisp.org>
75260
75261         * lib/alloca_.h: New file.
75262         * lib/getdate.y: Unconditionally include alloca.h.
75263         * lib/makepath.c: Likewise.
75264         * lib/setenv.c: Likewise.
75265         * lib/userspec.c: Likewise.
75266
75267 2003-01-09  Karl Berry  <karl@gnu.org>
75268
75269         * MODULES.html.sh: include `dirname $0` in PATH, to find
75270         gnulib-tool.
75271
75272 2003-01-09  Bruno Haible  <bruno@clisp.org>
75273
75274         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75275         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75276
75277 2003-01-09  Bruno Haible  <bruno@clisp.org>
75278
75279         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75280
75281 2003-01-09  Bruno Haible  <bruno@clisp.org>
75282
75283         * lib/stdbool.h.in: New file.
75284
75285 2003-01-09  Bruno Haible  <bruno@clisp.org>
75286
75287         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75288         * MODULES.html.sh: Likewise.
75289
75290 2003-01-08  Jim Meyering  <jim@meyering.net>
75291
75292         * lib/full-write.c: Undefine and define-away `const' after inclusion
75293         of errno.h, not before.  Suggestion from Bruno Haible.
75294
75295 2003-01-08  Bruno Haible  <bruno@clisp.org>
75296
75297         * modules/full-read: Depend on full-write.
75298
75299 2003-01-08  Bruno Haible  <bruno@clisp.org>
75300
75301         * lib/safe-read.c: Include specification header first, to ensure its
75302         selfcontainedness.
75303         * lib/full-write.c: Likewise.
75304
75305 2003-01-07  Jim Meyering  <jim@meyering.net>
75306
75307         * lib/full-write.c: Rework so that it may serve to define full_read,
75308         too.
75309         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75310
75311 2003-01-07  Bruno Haible  <bruno@clisp.org>
75312
75313         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75314         <inttypes.h>.
75315         * lib/xstrtol.h: Likewise.
75316         * lib/xstrtoimax.c: Likewise.
75317         * lib/xstrtoumax.c: Likewise.
75318         * lib/human.h: Likewise.
75319
75320         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75321         on systems that have <inttypes.h> but not <stdint.h>.
75322
75323 2003-01-07  Bruno Haible  <bruno@clisp.org>
75324
75325         * MODULES.html.sh: Add copyright notice.
75326         (missed_files): Omit CVS directory entries.
75327         (func_module): Make it work with sed-3.02.
75328         * MODULES.txt: Remove file.
75329
75330 2003-01-06  Jim Meyering  <jim@meyering.net>
75331
75332         * lib/version-etc.c: Update year in translatable copyright string.
75333
75334 2003-01-03  Karl Berry  <karl@gnu.org>
75335
75336         * config/config.{guess,sub}: update from prep.
75337
75338 2003-01-02  Karl Berry  <karl@gnu.org>
75339
75340         * doc/COPYING.DOC: belatedly updated to 1.2.
75341
75342 2003-01-01  Karl Berry  <karl@gnu.org>
75343
75344         * gnulib-tool (func_verify_module): report module name $module in
75345         error message, not $1.
75346         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75347         be created, only if it doesn't exist.
75348         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75349
75350 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75351
75352         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75353
75354 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75355
75356         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75357         memcmp if strcoll doesn't work.
75358
75359 2002-12-31  Bruno Haible  <bruno@clisp.org>
75360
75361         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75362         nonempty.
75363
75364 2002-12-31  Bruno Haible  <bruno@clisp.org>
75365
75366         * lib/memcoll.c (STRCOLL): New macro.
75367         (memcoll): Use it.
75368
75369 2002-12-31  Bruno Haible  <bruno@clisp.org>
75370
75371         * lib/localcharset.h: New file.
75372         * lib/localcharset.c: Include it.
75373         * lib/unicodeio.c: Likewise.
75374
75375 2002-12-31  Bruno Haible  <bruno@clisp.org>
75376
75377         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75378         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75379
75380 2002-12-31  Bruno Haible  <bruno@clisp.org>
75381
75382         * lib/getline.h: Include <stddef.h>, for size_t.
75383
75384         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75385         * lib/unicodeio.c: Don't include <stddef.h>.
75386
75387 2002-12-31  Bruno Haible  <bruno@clisp.org>
75388
75389         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75390         HAVE_TM_ZONE.
75391
75392 2002-12-24  Karl Berry  <karl@gnu.org>
75393
75394         * config/config.guess: update from prep.
75395
75396 2002-12-24  Bruno Haible  <bruno@clisp.org>
75397
75398         General infrasructure.
75399         * m4/README: Rewritten.
75400         * m4/onceonly.m4: New file.
75401         * m4/onceonly_2_57.m4: New file.
75402
75403         Module atexit.
75404         * m4/atexit.m4: New file.
75405
75406         Module strtod.
75407         * m4/strtod.m4: New file.
75408
75409         Module strtol.
75410         * m4/strtol.m4: New file.
75411
75412         Module strtoul.
75413         * m4/strtoul.m4: New file.
75414
75415         Module memchr.
75416         * m4/memchr.m4: New file.
75417
75418         Module memcmp.
75419         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75420         (jm_FUNC_MEMCMP): Invoke it.
75421
75422         Module memcpy.
75423         * m4/memcpy.m4: New file.
75424
75425         Module memmove.
75426         * m4/memmove.m4: New file.
75427
75428         Module memset.
75429         * m4/memset.m4: New file.
75430
75431         Module strcspn.
75432         * m4/strcspn.m4: New file.
75433
75434         Module strpbrk.
75435         * m4/strpbrk.m4: New file.
75436
75437         Module strstr.
75438         * m4/strstr.m4: New file.
75439
75440         Module strerror.
75441         * m4/strerror.m4: New file.
75442
75443         Module mktime.
75444         * m4/mktime.m4: Renamed from jm-mktime.m4.
75445         (gl_PREREQ_MKTIME): New macro.
75446         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75447
75448         Module malloc.
75449         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75450         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75451         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75452
75453         Module realloc.
75454         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75455         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75456         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75457
75458         Module strftime.
75459         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75460         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75461         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75462         gl_TM_GMTOFF.
75463         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75464
75465         Module xalloc.
75466         * m4/xalloc.m4: New file.
75467
75468         Module alloca.
75469         * m4/alloca.m4: New file.
75470
75471         Module putenv.
75472         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75473         (jm_FUNC_PUTENV): Invoke it.
75474
75475         Module setenv.
75476         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75477         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75478         when invoked twice.
75479         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75480         gt_FUNC_SETENV.
75481
75482         Module memrchr.
75483         * m4/memrchr.m4: New file.
75484
75485         Module stpcpy.
75486         * m4/stpcpy.m4: New file.
75487
75488         Module strcase.
75489         * m4/strcase.m4: New file.
75490
75491         Module strdup.
75492         * m4/strdup.m4: New file.
75493
75494         Module strnlen.
75495         * m4/strnlen.m4: New file.
75496
75497         Module strndup.
75498         * m4/strndup.m4: New file.
75499
75500         Module xstrtod.
75501         * m4/xstrtod.m4: New file.
75502
75503         Module xstrtol.
75504         * m4/xstrtol.m4: New file.
75505
75506         Module getdate.
75507         * m4/getdate.m4: New file.
75508
75509         Module unlocked-io.
75510         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75511         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75512         * m4/jm-glibc-io.m4n: Remove file.
75513
75514         Module long-options.
75515         * m4/long-options.m4: New file.
75516
75517         Module md5.
75518         * m4/md5.m4: New file.
75519
75520         Module sha.
75521         * m4/sha.m4: New file.
75522
75523         Module getstr.
75524         * m4/getstr.m4: New file.
75525
75526         Module getline.
75527         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
75528         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
75529         <sys/types.h>, for size_t. Use the function name gnu_getline, not
75530         simply getline. Infoke gl_PREREQ_GETLINE.
75531
75532         Module obstack.
75533         * m4/obstack.m4: New file.
75534
75535         Module hash.
75536         * m4/hash.m4: New file.
75537
75538         Module readtokens.
75539         * m4/readtokens.m4: New file.
75540
75541         Module strverscmp.
75542         * m4/strverscmp.m4: New file.
75543
75544         Module stdbool.
75545         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
75546         OSF/1.
75547
75548         Module strtoll.
75549         * m4/strtoll.m4: New file.
75550
75551         Module strtoull.
75552         * m4/strtoull.m4: New file.
75553
75554         Module strtoimax.
75555         * m4/strtoimax.m4: New file.
75556
75557         Module strtoumax.
75558         * m4/strtoumax.m4: New file.
75559
75560         Module xstrtoimax.
75561         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
75562         jm_AC_PREREQ_XSTRTOIMAX.
75563         Moved the strtol prerequisites to strtol.m4.
75564         Moved the strtoll prerequisites to strtoll.m4.
75565         Moved the strtoimax prerequisites to strtoimax.m4.
75566
75567         Module xstrtoumax.
75568         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
75569         jm_AC_PREREQ_XSTRTOUMAX.
75570         Moved the strtoul prerequisites to strtoul.m4.
75571         Moved the strtoull prerequisites to strtoull.m4.
75572         Moved the strtoumax prerequisites to strtoumax.m4.
75573
75574         Module chown.
75575         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
75576         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75577
75578         Module dup2.
75579         * m4/dup2.m4: New file.
75580
75581         Module ftruncate.
75582         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
75583         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
75584
75585         Module getgroups.
75586         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
75587         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
75588
75589         Module gettimeofday.
75590         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
75591         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
75592         gl_PREREQ_GETTIMEOFDAY.
75593
75594         Module mkdir.
75595         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
75596         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
75597
75598         Module mkstemp.
75599         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
75600         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
75601         jm_AC_TYPE_UINTMAX_T.
75602         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
75603
75604         Module stat.
75605         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
75606         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
75607
75608         Module lstat.
75609         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
75610         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
75611
75612         Module timespec.
75613         * m4/timespec.m4 (gl_TIMESPEC): New macro.
75614         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
75615         * m4/st_mtim.m4: Indentation.
75616
75617         Module nanosleep.
75618         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
75619         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
75620         gl_PREREQ_NANOSLEEP.
75621
75622         Module regex.
75623         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
75624         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
75625         (gl_REGEX): New macro.
75626
75627         Module rename.
75628         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
75629         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
75630
75631         Module rmdir.
75632         * m4/rmdir.m4: New file.
75633
75634         Module utime.
75635         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
75636         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
75637         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
75638
75639         Module dirname.
75640         * m4/dirname.m4: New file.
75641
75642         Module getopt.
75643         * m4/getopt.m4: New file.
75644
75645         Module unistd-safer.
75646         * m4/unistd-safer.m4: New file.
75647
75648         Module fnmatch.
75649         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
75650         declaration.
75651         (gl_PREREQ_FNMATCH_EXTRA): New macro.
75652         (gl_FUNC_FNMATCH_POSIX): New macro.
75653         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
75654         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
75655         simply fnmatch.
75656
75657         Module exclude.
75658         * m4/exclude.m4: New file.
75659
75660         Module human.
75661         * m4/human.m4: New file.
75662
75663         Module acl.
75664         * m4/acl.m4: Nop.
75665
75666         Module backupfile.
75667         * m4/backupfile.m4: New file.
75668         * m4/d-ino.m4: Indentation.
75669
75670         Module fsusage.
75671         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
75672         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
75673         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
75674
75675         Module dirfd.
75676         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
75677         requirements.
75678
75679         Module euidaccess.
75680         * m4/euidaccess.m4: New file.
75681
75682         Module file-type.
75683         * m4/file-type.m4: New file.
75684
75685         Module fileblocks.
75686         * m4/fileblocks.m4: New file.
75687
75688         Module filemode.
75689         * m4/filemode.m4: New file.
75690
75691         Module isdir.
75692         * m4/isdir.m4: New file.
75693
75694         Module lchown.
75695         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75696         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75697
75698         Module makepath.
75699         * m4/makepath.m4: New file.
75700
75701         Module modechange.
75702         * m4/modechange.m4: New file.
75703
75704         Module mountlist.
75705         * m4/mountlist.m4: New file.
75706         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75707         Indentation.
75708
75709         Module path-concat.
75710         * m4/path-concat.m4: New file.
75711
75712         Module pathmax.
75713         * m4/pathmax.m4: New file.
75714
75715         Module same.
75716         * m4/same.m4: New file.
75717
75718         Module save-cwd.
75719         * m4/save-cwd.m4: New file.
75720
75721         Module savedir.
75722         * m4/savedir.m4: New file.
75723
75724         Module xgetcwd.
75725         * m4/xgetcwd.m4: New file.
75726         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75727
75728         Module xreadlink.
75729         * m4/xreadlink.m4: New file.
75730
75731         Module safe-read.
75732         * m4/safe-read.m4: New file.
75733
75734         Module safe-write.
75735         * m4/safe-write.m4: New file.
75736
75737         Module closeout.
75738         * m4/closeout.m4: New file.
75739
75740         Module stdio-safer.
75741         * m4/stdio-safer.m4: New file.
75742
75743         Module getpass.
75744         * m4/getpass.m4: New file.
75745
75746         Module getugroups.
75747         * m4/getugroups.m4: New file.
75748
75749         Module group-member.
75750         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75751         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75752
75753         Module idcache.
75754         * m4/idcache.m4: New file.
75755
75756         Module userspec.
75757         * m4/userspec.m4: New file.
75758
75759         Module gettime.
75760         * m4/clock_time.m4: New file.
75761         * m4/gettime.m4: New file.
75762
75763         Module settime.
75764         * m4/settime.m4: New file.
75765
75766         Module posixtm.
75767         * m4/posixtm.m4: New file.
75768
75769         Module gethostname.
75770         * m4/gethostname.m4: New file.
75771
75772         Module canon-host.
75773         * m4/canon-host.m4: New file.
75774
75775         Module gettext.
75776         * m4/codeset.m4: New file, from gettext-0.11.5.
75777         * m4/gettext.m4: New file, from gettext-0.11.5.
75778         * m4/glibc21.m4: New file, from gettext-0.11.5.
75779         * m4/iconv.m4: New file, from gettext-0.11.5.
75780         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75781         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75782         * m4/inttypes.m4: New file, from gettext-0.11.5.
75783         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75784         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75785         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75786         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75787         * m4/lib-link.m4: New file, from gettext-0.11.5.
75788         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75789         * m4/progtest.m4: New file, from gettext-0.11.5.
75790         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75791         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75792         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
75793
75794         Module localcharset.
75795         * m4/localcharset.m4: New file.
75796
75797         Module hard-locale.
75798         * m4/hard-locale.m4: New file.
75799
75800         Module mbswidth.
75801         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
75802         onceonly macros.
75803         * m4/mbrtowc.m4: Add comment.
75804
75805         Module memcasecmp.
75806         * m4/memcasecmp.m4: New file.
75807
75808         Module memcoll.
75809         * m4/memcoll.m4: New file.
75810
75811         Module unicodeio.
75812         * m4/unicodeio.m4: New file.
75813
75814         Module rpmatch.
75815         * m4/rpmatch.m4: New file.
75816
75817         Module yesno.
75818         * m4/yesno.m4: New file.
75819
75820         Module exitfail.
75821         * m4/exitfail.m4: New file.
75822
75823         Module c-stack.
75824         * m4/c-stack.m4 (gl_C_STACK): New macro.
75825         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
75826
75827         Module error.
75828         * m4/error.m4 (gl_ERROR): New macro.
75829         (jm_PREREQ_ERROR): Use onceonly macros.
75830
75831         Module fatal.
75832         * m4/fatal.m4: New file.
75833
75834         Module getloadavg.
75835         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
75836         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
75837
75838         Module getpagesize.
75839         * m4/getpagesize.m4: New file.
75840
75841         Module getusershell.
75842         * m4/getusershell.m4: New file.
75843
75844         Module physmem.
75845         * m4/physmem.m4: New file.
75846
75847         Module posixver.
75848         * m4/posixver.m4: New file.
75849
75850         Module quotearg.
75851         * m4/quotearg.m4: New file.
75852
75853         Module quote.
75854         * m4/quote.m4: New file.
75855
75856         Module readutmp.
75857         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
75858
75859         Module sig2str.
75860         * m4/sig2str.m4: New file.
75861
75862         Other.
75863         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
75864         ulonglong.m4.
75865         * m4/intmax_t.m4: New file.
75866         * m4/d-type.m4: Indentation.
75867         * m4/jm-macros.m4: Update.
75868         * m4/prereq.m4 (jm_PREREQ): Update.
75869         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
75870         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
75871         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
75872         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
75873         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
75874         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
75875         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
75876         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
75877         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
75878         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
75879         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
75880         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
75881         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
75882         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
75883         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
75884         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
75885         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
75886         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
75887         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
75888
75889 2002-12-24  Bruno Haible  <bruno@clisp.org>
75890
75891         * MODULES.txt: Update according to m4/ changes.
75892
75893         Module gettext.
75894         * config.rpath: New file, from gettext-0.11.5.
75895
75896         * modules/*: New module descriptions.
75897         * gnulib-tool: New file.
75898         * MODULES.html.sh: New file.
75899
75900 2002-12-21  Karl Berry  <karl@gnu.org>
75901
75902         * doc/fdl.texi: update to version 1.2.
75903
75904 2002-12-19  Karl Berry  <karl@gnu.org>
75905
75906         * config/config.guess: update from prep.
75907
75908 2002-12-18  Bruno Haible  <bruno@clisp.org>
75909
75910         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
75911         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
75912
75913 2002-12-17  Bruno Haible  <bruno@clisp.org>
75914
75915         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
75916         stdlib.h, string.h.
75917
75918 2002-12-17  Bruno Haible  <bruno@clisp.org>
75919
75920         * lib/canon-host.c (strdup): Remove unused declaration.
75921
75922         * lib/fsusage.c: Include full_read.h.
75923         (get_fs_usage): Use full_read instead of safe_read.
75924
75925         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
75926
75927 2002-12-12  Karl Berry  <karl@gnu.org>
75928
75929         * config/config.guess: update from prep.
75930
75931 2002-12-11  Bruno Haible  <bruno@clisp.org>
75932
75933         * m4/setenv.m4: New file, from gettext-0.11.5.
75934
75935 2002-12-11  Bruno Haible  <bruno@clisp.org>
75936
75937         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
75938         not unsetenv().
75939         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
75940         modifications:
75941
75942         2002-12-11  Bruno Haible  <bruno@clisp.org>
75943
75944                 * setenv.c (alloca): Fall back to malloc.
75945                 (freea): New macro.
75946                 (setenv): Use freea() to free memory allocated with alloca().
75947
75948         2002-11-13  Bruno Haible  <bruno@clisp.org>
75949
75950                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
75951                 function declarations.
75952                 * unsetenv.c (unsetenv): Likewise.
75953
75954         2002-03-04  Bruno Haible  <bruno@clisp.org>
75955
75956                 Portability to AIX 4.3.3.
75957                 * unsetenv.c: New file, extracted from setenv.c.
75958                 * setenv.c: Move the unsetenv() function to unsetenv.c.
75959
75960         2001-12-20  Bruno Haible  <bruno@clisp.org>
75961
75962                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
75963                 use malloc instead. For SunOS 4.
75964
75965         2001-12-11  Bruno Haible  <bruno@clisp.org>
75966
75967                 * setenv.c: Declare alloca.
75968                 (compar_fn_t): New typedef.
75969                 (KNOWN_VALUE, STORE_VALUE): Use it.
75970
75971         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
75972         setenv.h.
75973
75974 2002-12-10  Paul Eggert  <eggert@twinsun.com>
75975
75976         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
75977         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
75978         Choose values that are less likely to collide with system fnmatch
75979         options.
75980         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
75981         defined (e.g., a pure POSIX system).
75982         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
75983         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
75984
75985 2002-12-06  Paul Eggert  <eggert@twinsun.com>
75986
75987         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
75988         a pain in practice to deal with generated m4 files.  This change
75989         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
75990
75991         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
75992         and jm-glibc-io.m4, as they are no longer a special case.
75993         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
75994         kludge and the auto-generation stuff.  Check only whether the
75995         functions are declared, not whether they exist, since older hosts
75996         that don't declare the functions can't use the optimization anyway.
75997
75998 2002-12-06  Jim Meyering  <jim@meyering.net>
75999
76000         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76001
76002         Merge in changes from libc's misc/error.c, in preparation
76003         for the merge of gnulib's changes back into libc.
76004
76005         * lib/error.c (_): Define only if not already defined.
76006         Move definition to follow all #include directives.
76007         Include unlocked-io.h only if !_LIBC.
76008         [_LIBC]: Include <libio/libioP.h>.
76009         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76010         (fflush): Tweak definition to use INTUSE.
76011         (putc): Define.
76012
76013 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76014
76015         * lib/alloca.c [defined emacs]: Include "lisp.h".
76016         (xalloc_die) [defined emacs]: New macro.
76017         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76018         [! defined emacs]: Include <xalloc.h>.
76019         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76020         (pointer): Typedef to POINTER_TYPE *.
76021         (malloc): Remove decl; we now always use xmalloc.
76022         (alloca): Use old-style definition, since Emacs needs this.
76023         Check for arithmetic overflow when computing combined size.
76024
76025 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76026
76027         Do not generate unlocked-io.h automatically, since it's easier to
76028         maintain it by hand.
76029
76030         * lib/unlocked-io.h: New file, from GNU diffutils,
76031         but with proper copyright notice and attribution.
76032         * lib/gen-uio: Remove.
76033         * lib/Makefile.am: Add copyright notice.
76034         (libfetish_a_SOURCES): Add unlocked-io.h.
76035         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76036         (DISTCLEANFILES, io_functions): Remove macros.
76037         (EXTRA_DIST): Remove gen_uio.
76038         (unlocked-io.h): Remove rule.
76039
76040 2002-12-04  Jim Meyering  <jim@meyering.net>
76041
76042         Reflect the fact that stat.c and lstat.c are no longer generated.
76043         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76044         (DISTCLEANFILES): Likewise.
76045         (EXTRA_DIST): Likewise.
76046         (all_local): Don't depend on stat.c or lstat.c.
76047         (stat.c, lstat.c): Remove rules.
76048         (EXTRA_DIST): Remove xstat.in.
76049
76050         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76051         * lib/stat.c: New file.  Contents mostly from xstat.in.
76052         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76053         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76054
76055         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76056         too.
76057         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76058
76059 2002-12-03  Jim Meyering  <jim@meyering.net>
76060
76061         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76062         but not semantics, to minimize the differences between these two files.
76063         (safe_read): Change comment to mention SAFE_READ_ERROR.
76064
76065         * lib/safe-read.c (IS_EINTR): Define.
76066         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76067
76068 2002-12-02  Jim Meyering  <jim@meyering.net>
76069
76070         * lib/safe-read.c (EINTR): Define.
76071         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76072         (INT_MAX): Provide fallback.
76073         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76074
76075         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76076
76077 2002-12-02  Bruno Haible  <bruno@clisp.org>
76078
76079         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76080         Define, taken from safe-read.c.
76081         (INT_MAX): Provide fallback.
76082         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76083         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76084
76085         * lib/safe-read.c (EINTR): Remove definition.
76086         (safe_read): Don't use EINTR if it is absent.
76087
76088 2002-12-01  Jim Meyering  <jim@meyering.net>
76089
76090         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76091         zero.
76092         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76093
76094 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76095
76096         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76097         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76098         with `if (! (value < limit)) abort ();', for readability.
76099
76100 2002-11-26  Karl Berry  <karl@gnu.org>
76101
76102         * lib/strdup.c: copy from libc again, with jim's ok.
76103         * lib/.cppi-disable: re-add strdup.c
76104
76105 2002-11-25  Karl Berry  <karl@gnu.org>
76106
76107         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76108         instead of "strtol.c".
76109
76110 2002-11-25  Karl Berry  <karl@gnu.org>
76111
76112         * config/install-sh: update from automake for variable quoting, $0 in
76113         error msgs, etc.
76114
76115         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76116         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76117         entry.
76118
76119 2002-11-25  Jim Meyering  <jim@meyering.net>
76120
76121         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76122
76123 2002-11-24  Karl Berry  <karl@gnu.org>
76124
76125         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76126         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76127
76128 2002-11-24  Jim Meyering  <jim@meyering.net>
76129
76130         Update from coreutils:
76131
76132         * lib/mktime.c: Merge in changes from libc.
76133
76134         Avoid a link-time failure on some Linux systems.
76135         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76136         (otherwise).
76137         (__mon_yday): Declare with the STATIC attribute.
76138         (__mktime_internal): Likewise.
76139         Based on a report from Greg Schafer.
76140
76141 2002-11-23  Jim Meyering  <jim@meyering.net>
76142
76143         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76144         Use `unsigned', not `int', as type of index.
76145
76146         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76147
76148         * lib/fsusage.c: Remove unneeded parentheses around operands of
76149         `defined'.
76150
76151 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76152
76153         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76154         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76155         so that we can be included first.
76156         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76157         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76158         No need to include stddef.h or sys/types.h any more.
76159         Surround local include files with "", not "<>".
76160         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76161         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76162         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76163         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76164         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76165         (ISPRINT): Remove; no longer needed now that we assume C89.
76166
76167         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76168         Preserve errno.
76169
76170         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76171         quotearg_char): Use SIZE_MAX rather than
76172         (size_t) -1 when we are talking about "infinity".
76173
76174         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76175
76176 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76177
76178         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76179         hint that one should use `if (! x) abort ();' rather than `assert
76180         (x);', and anyway it's one less thing to worry about configuring.
76181         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76182         hash_rehash, hash_insert): Use abort rather than assert.
76183
76184 2002-11-22  Bruno Haible  <bruno@clisp.org>
76185
76186         * lib/safe-read.h: Assume C89. Add comments.
76187         (safe_read): Change return type to size_t.
76188         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76189         byte counts > SSIZE_MAX correctly.
76190         * lib/safe-write.h: New file.
76191         * lib/safe-write.c: New file.
76192         * lib/full-read.h: New file.
76193         * lib/full-read.c: New file.
76194         * lib/full-write.h: Assume C89. Add comments.
76195         * lib/full-write.c: Include safe-write.h.
76196         (full_write): Rewritten to use safe_write.
76197         Suggested by Jim Meyering and Paul Eggert.
76198
76199 2002-11-21  Jim Meyering  <jim@meyering.net>
76200
76201         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76202
76203         Merge in changes from the coreutils.
76204
76205         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76206         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76207         <stdint.h>.
76208         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76209         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76210         int.  Work more efficiently if X is the same width as uintmax_t.
76211         Do not compare X to -1, to avoid bogus compiler warning.
76212         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76213         Don't assume that f_frsize and f_bsize are the same type.
76214
76215         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76216         warning on FreeBSD.
76217
76218         * lib/makepath.c (make_path): Restore umask *before* creating the final
76219         component.
76220         (make_path): Minor reformatting.
76221
76222         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76223         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76224         HAVE_MALLOC/HAVE_REALLOC.
76225
76226         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76227         dummy ones.  At least on GNU/Linux systems, `auto' means something
76228         else.
76229         From Michael Stone.
76230
76231 2002-11-21  Bruno Haible  <bruno@clisp.org>
76232
76233         Remove case insensitive option matching.
76234         * lib/argmatch.h (argcasematch): Remove declaration.
76235         (ARGCASEMATCH): Remove macro.
76236         (__xargmatch_internal): Remove case_sensitive argument.
76237         (XARGMATCH): Update.
76238         (XARGCASEMATCH): Remove macro.
76239         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76240         case_sensitive argument.
76241         (argcasematch): Remove function.
76242         (__xargmatch_internal): Remove case_sensitive argument.
76243         (main): Use XARGMATCH instead of XARGCASEMATCH.
76244
76245         * lib/xmalloc.c: Change compile-time error message. Add comment about
76246         required autoconf version.
76247
76248 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76249
76250         Merge argmatch cleanups from Bison.  Assume C89.
76251
76252         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76253         Include stdlib.h, for EXIT_FAILURE.
76254         Always include <string.h>, since we assume C89.
76255         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76256         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76257         Include <stddef.h> instead, since it's all we need for size_t.
76258         (PARAMS): Remove.  All uses removed.
76259         (ARRAY_CARDINALITY): Do not bother to #undef.
76260         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76261         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76262         Remove unnecessary parentheses.
76263         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76264         Insert necessary parentheses.
76265         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76266         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76267
76268 2002-11-19  Bruno Haible  <bruno@clisp.org>
76269
76270         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76271         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76272
76273         * lib/mbswidth.h (PARAMS): Remove macro.
76274         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76275         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76276
76277         * lib/gcd.h (PARAMS): Remove macro.
76278         (gcd): Use ANSI C function declarations.
76279         * lib/gcd.c (gcd): Likewise.
76280
76281 2002-11-15  Bruno Haible  <bruno@clisp.org>
76282
76283         * lib/strcspn.c: Include <stddef.h>.
76284         (strcspn): Use ANSI C function declaration. Change return type to
76285         size_t. Use NULL.
76286         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76287         (strpbrk): Use NULL.
76288         * lib/strpbrk.h (PARAMS): Remove macro.
76289         (strpbrk): Use ANSI C function declaration.
76290         * lib/strstr.c: Don't include <sys/types.h>.
76291         * lib/strstr.h (PARAMS): Remove macro.
76292         (strstr): Use ANSI C function declarations.
76293
76294 2002-11-14  Karl Berry  <karl@gnu.org>
76295
76296         * config/mkinstalldirs: `do' on separate line, instead of
76297         `for var; do'.
76298
76299 2002-11-06  Bruno Haible  <bruno@clisp.org>
76300
76301         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76302         * lib/gcd.c (gcd): Likewise.
76303
76304 2002-11-05  Bruno Haible  <bruno@clisp.org>
76305
76306         * lib/gcd.h: New file, from gettext-0.11.5.
76307         * lib/gcd.c: New file, from gettext-0.11.5.
76308
76309 2002-11-05  Bruno Haible  <bruno@clisp.org>
76310
76311         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76312         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76313         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76314         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76315
76316         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76317         <libintl.h>.
76318         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76319         <libintl.h>.
76320
76321         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76322         * lib/human.c: Include gettext.h instead of <libintl.h>.
76323         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76324         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76325         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76326         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76327         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76328         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76329         (textdomain): Remove definition.
76330         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76331
76332         * lib/long-options.c: Remove include of <libintl.h> and definition of
76333         _.
76334         * lib/same.c: Remove include of <libintl.h> and definition of _.
76335
76336 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76337
76338         * lib/config.charset: A few additions for Solaris.
76339
76340 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76341
76342         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76343         * lib/localcharset.c (locale_charset): Declare as extern "C".
76344
76345 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76346
76347         * lib/config.charset: msdos in uk_UA uses CP1125.
76348
76349 2002-11-04  Bruno Haible  <bruno@clisp.org>
76350
76351         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76352         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76353         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76354         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76355         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76356
76357 2002-11-04  Bruno Haible  <bruno@clisp.org>
76358
76359         * lib/localcharset.c (locale_charset): Don't return an empty string.
76360
76361 2002-11-04  Bruno Haible  <bruno@clisp.org>
76362
76363         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76364         aliases.
76365
76366 2002-11-04  Bruno Haible  <bruno@clisp.org>
76367
76368         * lib/config.charset: Update for newest glibc. Add canonical names
76369         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76370
76371 2002-11-04  Bruno Haible  <bruno@clisp.org>
76372
76373         * lib/config.charset: Add support for NetBSD.
76374
76375 2002-11-04  Bruno Haible  <bruno@clisp.org>
76376
76377         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76378
76379 2002-11-01  Bruno Haible  <bruno@clisp.org>
76380
76381         * configure.in: Add AC_CONFIG_AUX_DIR call.
76382         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76383         test/Makefile.
76384         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76385
76386 2002-09-28  Karl Berry  <karl@gnu.org>
76387
76388         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76389         installed automake until the next release, since changes have been
76390         made.
76391
76392 2002-09-25  Karl Berry  <karl@gnu.org>
76393
76394         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76395         * lib/getopt*: copy from libc/posix.
76396         * lib/gettext.h: copy from gettext.
76397         * lib/.cppi-disable: add strdup.c, gettext.h.
76398
76399 2002-09-25  Karl Berry  <karl@gnu.org>
76400
76401         * config/srclist.txt: enable gettext.h check.
76402         * config/config.{guess,sub}: update from prep.
76403         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76404                 from automake 1.6.3.
76405         See srclist*.
76406
76407 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76408
76409         * regex.c (PATFETCH): Remove the translating fetch.
76410         (PATFETCH_RAW): Rename to PATFETCH.
76411         (set_image_of_range): New fun.
76412         (SET_RANGE_TABLE_WORK_AREA): Use it.
76413         (regex_compile): Don't translate the pattern chars so eagerly.
76414         Only do it when inserting an `exactn' bytecode or when handling
76415         a char-range.
76416         (mutually_exclusive_p): Avoid empty statement.
76417
76418 2002-07-06  Jim Meyering  <meyering@lucent.com>
76419
76420         * m4/README: Don't mention Makefile.am.in.
76421         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76422
76423 2002-07-01  Jim Meyering  <meyering@lucent.com>
76424
76425         * lib/c-stack.c: Include sys/time.h.
76426         From Volker Borchert.
76427
76428 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76429
76430         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76431
76432 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76433
76434         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76435         New macro.  Use it uniformly instead of
76436         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76437         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76438         reported by Vin Shelton.
76439
76440 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76441
76442         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76443         Do not assume SA_SIGINFO behavior.
76444         Bug reported by Jim Meyering on NetBSD 1.5.2.
76445
76446 2002-06-22  Jim Meyering  <meyering@lucent.com>
76447
76448         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76449         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76450
76451         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76452         now that configure.ac uses AC_GNU_SOURCE.
76453         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76454         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76455
76456         Update to latest tools.  Suggestions from Paul Eggert.
76457         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76458         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76459         * m4/fnmatch.m4: Likewise.
76460         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76461         to AC_HEADER_STDBOOL
76462
76463 2002-06-22  Jim Meyering  <meyering@lucent.com>
76464
76465         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76466         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76467
76468 2002-06-22  Jim Meyering  <meyering@lucent.com>
76469
76470         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76471
76472         * lib/exitfail.c, exitfail.h: Likewise.
76473         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76474
76475         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76476         of fnmatch.h.
76477         (EXTRA_DIST): Add fnmatch_loop.c.
76478         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76479
76480         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76481         * lib/fnmatch.c: Update from diffutils-2.8.2.
76482         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76483         * lib/fnmatch.h: Remove file.
76484
76485 2002-06-21  Jim Meyering  <meyering@lucent.com>
76486
76487         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76488         * m4/mbrtowc.m4: Likewise.
76489
76490         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76491         * m4/mbswidth.m4: Reflect name change:
76492         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76493         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76494
76495         * m4/lib-link.m4: Update from gettext-0.11.2.
76496         * m4/gettext.m4: Likewise.
76497
76498         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76499         From Alfred M. Szmidt.
76500
76501 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76502
76503         * lib/file-type.h: Report an error if neither S_ISREG nor
76504         S_IFREG is defined, instead of using a test specific to glibc
76505         2.2.  This should be safe, since POSIX requires S_ISREG and
76506         Unix Version 7 had S_IFREG.  We don't need to check for
76507         <sys/types.h> since we don't use any symbols that it defines.
76508
76509 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76510
76511         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76512         $@-t, so that each temporary file name is unique and valid in the first
76513         8 characters, for operation under DOS.
76514
76515 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76516
76517         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76518
76519 2002-06-15  Jim Meyering  <meyering@lucent.com>
76520
76521         Work even with DJGPP 2.03, which lacks support for symlinks.
76522         From Richard Dawe.
76523         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
76524         is defined.
76525         * lib/lchown.c (S_ISLNK): Likewise.
76526
76527 2002-06-15  Jim Meyering  <meyering@lucent.com>
76528
76529         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
76530         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
76531         have been included before this file.
76532
76533 2002-06-14  Jim Meyering  <meyering@lucent.com>
76534
76535         * lib/file-type.h: Use the version from diffutils-2.8.2.
76536         * lib/file-type.c: Likewise.
76537
76538 2002-06-07  Jim Meyering  <meyering@lucent.com>
76539
76540         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
76541         They're needed at least for NetBSD 1.5.2.
76542         ($statxfs_includes): Include those same headers.
76543         ($statxfs_includes): Include sys/vfs.h if available.
76544         ($statxfs_includes): Likewise for sys/statvfs.h.
76545         Check for the following members in both structs statfs and statvfs:
76546         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
76547
76548 2002-06-01  Jim Meyering  <meyering@lucent.com>
76549
76550         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
76551         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
76552
76553 2002-05-28  Jim Meyering  <meyering@lucent.com>
76554
76555         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
76556         Reported by Volker Borchert.
76557
76558 2002-05-27  Jim Meyering  <meyering@lucent.com>
76559
76560         Fix a problem seen only on nonconforming systems whereby ls.c's
76561         use of localtime, and then of gettimeofday would cause trouble:
76562         the localtime call used to initialize rpl_gettimeofday's save
76563         mechanism would clobber ls's current local time information so
76564         that in any long listing the first file would always be listed
76565         with date 1970-01-01.  Analysis by Volker Borchert.
76566
76567         * lib/gettimeofday.c (localtime): Undefine.
76568         (rpl_localtime): New function.
76569
76570 2002-05-27  Jim Meyering  <meyering@lucent.com>
76571
76572         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
76573         localtime.
76574
76575         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
76576         use the replacement function; it wouldn't resolve at link time.
76577         Reported by Volker Borchert.
76578
76579 2002-05-22  Jim Meyering  <meyering@lucent.com>
76580
76581         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
76582         file-type.h.
76583         * lib/file-type.h: New file.
76584         * lib/file-type.c (file_type): New file/function.  Extracted from
76585         diffutils.
76586
76587 2002-04-30  Jim Meyering  <meyering@lucent.com>
76588
76589         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
76590
76591 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76592
76593         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
76594
76595 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76596
76597         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
76598         Do not check for alloca.h (no longer used) or stdbool.h (was never
76599         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
76600
76601 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76602
76603         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
76604
76605 2002-04-29  Jim Meyering  <meyering@lucent.com>
76606
76607         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
76608         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
76609         Use AC_FUNC_STRNLEN here instead.
76610
76611         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
76612         With autoconf-2.53a, it's part of AC_PROG_CC.
76613
76614 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76615
76616         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
76617         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
76618
76619 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76620
76621         * lib/sig2str.h, lib/sig2str.c: New files.
76622         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
76623
76624 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76625
76626         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
76627         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
76628         of 127, since 64 is the largest conceivable number for ancient
76629         nonstandard hosts.
76630         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
76631
76632 2002-04-28  Jim Meyering  <meyering@lucent.com>
76633
76634         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
76635
76636 2002-04-24  Jim Meyering  <meyering@lucent.com>
76637
76638         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
76639         (jm_PREREQ): Use it.
76640
76641         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
76642         mach/mach.h fcntl.h.
76643         Check for this function: setlocale.
76644
76645 2002-04-24  Jim Meyering  <meyering@lucent.com>
76646
76647         * lib/gettext.h: New file, from Gettext.
76648         * lib/Makefile.am (INCLUDES): Remove -I../intl.
76649         (libfetish_a_SOURCES): Add gettext.h.
76650
76651 2002-04-16  Jim Meyering  <meyering@lucent.com>
76652
76653         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
76654         ut_pid, ut_id, ut_exit.
76655
76656 2002-04-16  Jim Meyering  <meyering@lucent.com>
76657
76658         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
76659         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
76660         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
76661
76662 2002-04-12  Jim Meyering  <meyering@lucent.com>
76663
76664         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
76665         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
76666         existence of the getmntinfo function.  Needed for Darwin 5.3.
76667
76668         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
76669         This is necessary at least on Darwin 5.3.
76670
76671         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
76672         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
76673         strnlen.o in the library, and that makes some versions of ranlib
76674         object.
76675
76676 2002-04-12  Jim Meyering  <meyering@lucent.com>
76677
76678         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
76679
76680 2002-04-09  Jim Meyering  <meyering@lucent.com>
76681
76682         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
76683         to be more precise.  Rather than saying we're checking whether the
76684         function `works', say what we're testing.
76685         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
76686         Reported by Bruno Haible.
76687
76688 2002-03-10  Jim Meyering  <meyering@lucent.com>
76689
76690         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76691         Suggestion from Santiago Vila.
76692
76693 2002-03-08  Jim Meyering  <meyering@lucent.com>
76694
76695         * lib/rename.c: Mention that this wrapper is needed also on
76696         mips-dec-ultrix4.4 systems.
76697
76698 2002-03-02  Jim Meyering  <meyering@lucent.com>
76699
76700         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76701         not HAVE_CLOCK_SETTIME.
76702
76703 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76704
76705         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76706         Check for clock_settime.
76707
76708 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76709
76710         * lib/nanosleep.h: Rename to....
76711         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76712
76713         * lib/gettime.c: New file.
76714         * lib/settime.c: New file.
76715         * lib/stime.c: Remove.
76716
76717         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76718         timespec.h.  Remove nanosleep.h.
76719
76720 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76721
76722         * m4/acl.m4: New file.
76723         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76724         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76725
76726 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76727
76728         * lib/acl.c, lib/acl.h: New files.
76729         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76730
76731 2002-02-24  Jim Meyering  <meyering@lucent.com>
76732
76733         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76734         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76735         cause trouble.  Reported by Nelson Beebe.
76736
76737 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76738
76739         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76740         compilers that don't know that xalloc_die never returns.
76741
76742 2002-02-20  Jim Meyering  <meyering@lucent.com>
76743
76744         * lib/getdate.c: Regenerate using bison-1.33.
76745
76746 2002-02-17  Jim Meyering  <meyering@lucent.com>
76747
76748         * config/config.guess (main): Don't use `head -1'; it's no longer
76749         portable. Use `sed 1q' instead.
76750
76751 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76752
76753         * m4/codeset.m4: Upgrade to gettext-0.11.
76754         * m4/gettext.m4: Upgrade to gettext-0.11.
76755         * m4/glibc21.m4: Upgrade to gettext-0.11.
76756         * m4/iconv.m4: Upgrade to gettext-0.11.
76757         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76758         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76759         * m4/lib-ld.m4: New file, from gettext-0.11.
76760         * m4/lib-link.m4: New file, from gettext-0.11.
76761         * m4/lib-prefix.m4: New file, from gettext-0.11.
76762         * m4/progtest.m4: Upgrade to gettext-0.11.
76763
76764 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76765
76766         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76767         (jm_PREREQ): Use it.
76768
76769 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76770
76771         * lib/posixver.c, lib/posixver.h: New files.
76772         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76773
76774 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76775             Bruno Haible  <bruno@clisp.org>
76776
76777         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76778         (fwrite_success_callback): New declaration.
76779         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76780         print_unicode_char. Call failure callback instead of error.
76781         (fwrite_success_callback): New function.
76782         (exit_failure_callback): New function.
76783         (fallback_failure_callback): New function.
76784         (print_unicode_char): Call unicode_to_mb.
76785
76786 2002-01-26  Jim Meyering  <meyering@lucent.com>
76787
76788         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76789         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76790
76791 2002-01-26  Jim Meyering  <meyering@lucent.com>
76792
76793         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
76794
76795 2002-01-22  Paul Eggert  <eggert@twinsun.com>
76796
76797         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
76798
76799 2002-01-22  Jim Meyering  <meyering@lucent.com>
76800
76801         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
76802         Otherwise, some versions of automake would omit the rule that makes
76803         Makefile from Makefile.in.
76804
76805 2002-01-21  Paul Eggert  <eggert@twinsun.com>
76806
76807         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
76808         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76809         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
76810         (memcoll): Set errno to zero if there is no error.
76811
76812         * lib/quotearg.c (quotearg_buffer_restyled):
76813         Fix bug with quoting buffers containing NUL when backslashing escapes.
76814         This bug was exposed by the other changes in this patch.
76815         (quotearg_n_options): New arg ARGSIZE.
76816         All callers changed.
76817         (quoting_options_from_style): New function.
76818         (quotearg_n_style): Use it.
76819         (quotearg_n_style_mem): New function.
76820
76821         * lib/quotearg.h (quotearg_n_style_mem): New function.
76822
76823 2002-01-19  Jim Meyering  <meyering@lucent.com>
76824
76825         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
76826         Remove useless quotes: DF_PROG="df".
76827         * m4/strnlen.m4: New file.
76828
76829 2002-01-16  Paul Eggert  <eggert@twinsun.com>
76830
76831         * lib/backupfile.c (ISDIGIT): Comment fix.
76832         * lib/getdate.y (ISDIGIT): Likewise.
76833         * lib/posixtm.c (ISDIGIT, year): Likewise.
76834         * lib/strverscmp.c (ISDIGIT): Likewise.
76835         * lib/userspec.c (ISDIGIT): Likewise.
76836
76837 2002-01-16  Jim Meyering  <meyering@lucent.com>
76838
76839         * lib/getdate.y: Add three semicolons, each just before a closing
76840         brace. Bison (as of version 1.31) no longer papers over that mistake.
76841
76842 2002-01-05  Jim Meyering  <meyering@lucent.com>
76843
76844         * lib/version-etc.c (version_etc_copyright): Update copyright year.
76845
76846 2001-12-19  Paul Eggert  <eggert@twinsun.com>
76847
76848         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
76849         not silently exit merely because the output buffer happens to
76850         have nothing pending.
76851
76852 2001-12-18  Paul Eggert  <eggert@twinsun.com>
76853
76854         See the big note in ../ChangeLog.
76855         * lib/human.c (suffixes): Prefer K to k for 1024.
76856         (generate_suffix_backwards): New function.
76857         (human_readable_inexact): Use it.
76858         * lib/xstrtol.c (__xstrtol): If there is no number but there
76859         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
76860         Accept 'K' as well as 'k'.
76861
76862 2001-12-15  Jim Meyering  <meyering@lucent.com>
76863
76864         * lib/regex.h (__restrict_arr): Update from libc.
76865
76866         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
76867         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
76868         (STREQ): Define.
76869
76870 2001-12-14  Jim Meyering  <meyering@lucent.com>
76871
76872         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
76873         Suggestion from Bruno Haible.
76874
76875 2001-12-10  Jim Meyering  <meyering@lucent.com>
76876
76877         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
76878         xrealloc, Instead, include "xalloc.h".
76879         (initbuffer): Don't cast xmalloc return value to char*.
76880         (readline): Reword comment.
76881         Don't cast xrealloc return value to char*
76882         Return NULL, not 0.
76883
76884 2001-12-09  Jim Meyering  <meyering@lucent.com>
76885
76886         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
76887         about `signed and unsigned type in conditional expression'.
76888         * lib/posixtm.c (posix_time_parse): Likewise.
76889
76890         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
76891
76892         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
76893         to avoid a pedantic warning.
76894
76895         * lib/getstr.c: Don't include assert.h.
76896         (getstr): Remove warning-evoking assertions.
76897         Return -1 if offset parameter is out of bounds.
76898         Change the type of a local from int to size_t.
76899
76900         * lib/strftime.c (my_strftime_localtime_r): Include this function
76901         definition in the `#if ! HAVE_TM_GMTOFF' block.
76902
76903         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
76904         Include xalloc.h instead.
76905
76906 2001-12-02  Jim Meyering  <meyering@lucent.com>
76907
76908         * lib/tempname.c: Don't declare getenv, thus reverting the change of
76909         2001-11-18.  It's no longer necessary, now that stdlib.h is always
76910         included.
76911
76912         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
76913         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
76914
76915 2001-11-30  Akim Demaille  <akim@epita.fr>
76916
76917         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
76918         before being defined.
76919
76920 2001-11-27  Paul Eggert  <eggert@twinsun.com>
76921
76922         * lib/quotearg.h (quotearg_n, quotearg_n_style):
76923         First arg is int, not unsigned.
76924         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
76925         (SIZE_MAX, UINT_MAX): New macros.
76926         (quotearg_n_options): Abort if N is negative.
76927         Avoid overflow check on hosts where size_t is 64 bits and int
76928         is 32 bits, as overflow is impossible there.
76929         Fix off-by-one typo that caused unnecessary reallocation.
76930
76931 2001-11-27  Jim Meyering  <meyering@lucent.com>
76932
76933         * lib/tempname.c: Merge with version from libc.
76934         * lib/regex.c: Likewise.
76935
76936         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
76937         systems for which STDC_HEADERS is 0, it was not included, resulting in
76938         a warning about an integer-to-pointer conversion problem with getenv.
76939         Reported by Volker Borchert.
76940
76941 2001-11-26  Jim Meyering  <meyering@lucent.com>
76942
76943         * lib/gtod.h: Remove file.
76944         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
76945         * lib/gettimeofday.c: Don't include gtod.h.
76946         (GTOD_init): Remove function.
76947         (rpl_gettimeofday): Do its job here instead, rather than aborting.
76948         Suggestion from Volker Borchert.
76949
76950 2001-11-23  Jim Meyering  <meyering@lucent.com>
76951
76952         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
76953         it.
76954         * lib/hash.c (struct hash_table): Define it here instead.
76955
76956 2001-11-22  Jim Meyering  <meyering@lucent.com>
76957
76958         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
76959
76960 2001-11-20  Jim Meyering  <meyering@lucent.com>
76961
76962         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
76963         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
76964
76965 2001-11-19  Jim Meyering  <meyering@lucent.com>
76966
76967         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
76968         directory.  Use "conftestXXXXXX" as the template.
76969         Suggestion from Paul Eggert.
76970
76971         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
76972         immediately, so the test doesn't mistakenly hit the max-open-files
76973         limit.
76974
76975 2001-11-18  Paul Eggert  <eggert@twinsun.com>
76976
76977         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
76978         (TEMPORARIES): New macro.
76979         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
76980         removes an artificial limitation (e.g. HP-UX 10.20, where
76981         TMP_MAX is 17576).
76982
76983 2001-11-18  Jim Meyering  <meyering@lucent.com>
76984
76985         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
76986
76987 2001-11-18  Jim Meyering  <meyering@lucent.com>
76988
76989         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
76990         on SunOS 4.
76991
76992         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
76993         files will be created before anything else.
76994
76995 2001-11-17  Paul Eggert  <eggert@twinsun.com>
76996
76997         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
76998         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
76999
77000 2001-11-17  Jim Meyering  <meyering@lucent.com>
77001
77002         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77003         Prompted by a report from Bob Proulx.
77004
77005         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77006         Instead, require UTILS_FUNC_MKSTEMP.
77007
77008 2001-11-17  Jim Meyering  <meyering@lucent.com>
77009
77010         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77011         Now, that's done as part of AC_FUNC_STRTOD.
77012
77013 2001-11-17  Jim Meyering  <meyering@lucent.com>
77014
77015         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77016         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77017         rather than group writable.  Patch by Juan F. Codagnone.
77018
77019         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77020         xrealloc, Instead, include "xalloc.h".
77021
77022         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77023         Remove explicit declarations of xmalloc, xrealloc,
77024         and xstrdup.  Instead, include "xalloc.h".
77025
77026         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77027         unlocked-io.h.
77028         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77029         Likewise.
77030         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77031
77032         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77033         Reported by Padraig Brady.
77034
77035         * lib/mkstemp.c: #undef mkstemp.
77036         Include config.h.
77037         (rpl_mkstemp): Rename from mkstemp.
77038         Protoize.
77039
77040 2001-11-16  Jim Meyering  <meyering@lucent.com>
77041
77042         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77043         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77044         determine the amount of total physical memory, use pstat_getstatic.
77045         HPUX-11 doesn't define _SC_PHYS_PAGES.
77046         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77047         If sysconf couldn't be used to determine the amount of available
77048         physical memory, use both pstat_getstatic and pstat_getdynamic.
77049         Based on a patch from Bob Proulx.
77050
77051 2001-11-10  Jim Meyering  <meyering@lucent.com>
77052
77053         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77054         (jm_PREREQ): Use it.
77055
77056 2001-11-09  Jim Meyering  <meyering@lucent.com>
77057
77058         * m4/jm-macros.m4: Require autoconf-2.52f.
77059         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77060         Use these AC_-prefixed names, not the AM_-prefixed ones.
77061
77062         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77063
77064 2001-11-05  Jim Meyering  <meyering@lucent.com>
77065
77066         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77067
77068 2001-11-04  Jim Meyering  <meyering@lucent.com>
77069
77070         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77071         $DEFS.
77072
77073 2001-11-03  Jim Meyering  <meyering@lucent.com>
77074
77075         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77076         of AC_DEFUN.
77077
77078         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77079         know the name of the variable in the macro definition.
77080
77081 2001-11-03  Jim Meyering  <meyering@lucent.com>
77082
77083         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77084         in argmatch_to_argument call.
77085
77086         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77087         argument.
77088
77089         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77090         e.g., a fault due to an attempt to free a NULL pointer.
77091
77092 2001-11-01  Jim Meyering  <meyering@lucent.com>
77093
77094         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77095         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77096
77097 2001-11-01  Jim Meyering  <meyering@lucent.com>
77098
77099         * lib/dirfd.c, lib/dirfd.h: New files.
77100         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77101
77102         * lib/hash.c (hash_print) [TESTING]: Clean up.
77103
77104 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77105
77106         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77107         to avoid a warning if -Wall.
77108
77109 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77110
77111         * README: New file
77112         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77113         (per RMS's instructions, this is now the canonical source)
77114         * lgpl/, gpl/: New directories.
77115
77116 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77117
77118         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77119
77120 2001-10-21  Jim Meyering  <meyering@lucent.com>
77121
77122         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77123         this code would end up calling gettext even in packages built
77124         with --disable-nls.
77125         * lib/getopt.c (_): Likewise.
77126         * lib/regex.c (_): Likewise.
77127
77128 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77129
77130         * m4/error.m4 (jm_PREREQ_ERROR):
77131         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77132         AC_FUNC_STRERROR_R does that.
77133         Check for strerror declaration.
77134
77135         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77136         are supposed to have them these days.
77137         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77138         Merge changes from latest Autoconf CVS.
77139         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77140         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77141         POSIX decided to standardize on the int flavor of strerror_r.
77142
77143 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77144
77145         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77146         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77147         Use strerror_r that is only a macro, even if it is not a function.
77148         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77149         (private_strerror): Use prototypes, not old-style function definition.
77150         (print_errno_message): New function.
77151         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77152         char*-flavored one.
77153         (error_tail, error, error_at_line): Use it.
77154
77155 2001-10-11  Jim Meyering  <meyering@lucent.com>
77156
77157         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77158         and quote_n (1, ... to avoid clobbering a buffer.
77159
77160 2001-10-05  Jim Meyering  <meyering@lucent.com>
77161
77162         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77163         hash-pjw.h.
77164         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77165         * lib/hash-pjw.h: New file.
77166
77167 2001-09-30  Jim Meyering  <meyering@lucent.com>
77168
77169         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77170         `struct fsstat' has the `f_fstypename' member.
77171         Use that to define FS_TYPE, which is now used to make
77172         the getfsstat link test tighter.
77173
77174 2001-09-30  Jim Meyering  <meyering@lucent.com>
77175
77176         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77177         Include <sys/ucred.h>, for Apple Darwin.
77178         Include sys/mount.h and sys/fs_types.h only if available.
77179         (FS_TYPE): Define.
77180         (read_filesystem_list): Use FS_TYPE.
77181
77182 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77183
77184         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77185         a boolean context.
77186
77187 2001-09-29  Jim Meyering  <meyering@lucent.com>
77188
77189         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77190         [one-argument getmntent function]): Include stdio.h before mntent.h.
77191         SunOS 4.1.x needs it for the declaration of `FILE'.
77192         Patch by Volker Borchert.
77193
77194         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77195         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77196         sys/fs_types.h, and make the link-test for getfsstat guard #include
77197         directives with appropriate #if HAVE_*_H tests so that we can
77198         detect getfsstat on Apple Darwin1.3.7 systems.
77199         Reported by Nelson Beebe.
77200         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77201
77202 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77203
77204         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77205         #defines strtoimax.  Also treat the other strto* functions
77206         like strtoimax.
77207
77208         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77209         Check for strtoul and strtoumax,
77210         as those declarations are made even in the signed case.
77211         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77212         Likewise, for strtol and strtoimax.
77213
77214 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77215
77216         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77217         #defines strtoimax.  Also treat the other strto* functions
77218         like strtoimax.
77219
77220         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77221         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77222         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77223
77224 2001-09-26  Jim Meyering  <meyering@lucent.com>
77225
77226         Most macros in unlocked-io.h had the wrong number of arguments.
77227         * lib/gen-uio: New script.
77228         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77229         * lib/unlocked-io.hin: Remove file.
77230         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77231         rather than trying to embed it here.
77232         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77233         Reported by Padraig Brady.
77234
77235 2001-09-25  Volker Borchert  <bt@teknon.de>
77236
77237         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77238         `result'.
77239
77240 2001-09-24  Jim Meyering  <meyering@lucent.com>
77241
77242         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77243
77244 2001-09-23  Jim Meyering  <meyering@lucent.com>
77245
77246         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77247         instead of the mere test for existence of mntent.h.  The latter
77248         would get a false-positive on AIX 3.4 systems.
77249         In the outer getmntent if-block, don't die if neither of the getmntent
77250         tests succeeds.  Instead, just fall through and continue with the
77251         remaining tests.
77252
77253 2001-09-23  Jim Meyering  <meyering@lucent.com>
77254
77255         * lib/mountlist.c: Remove useless parentheses in #if directives.
77256         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77257         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77258
77259 2001-09-22  Jim Meyering  <meyering@lucent.com>
77260
77261         * m4/gettext.m4: New file.  From gettext.
77262         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77263         * m4/progtest.m4: Likewise
77264         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77265         * m4/glibc21.m4: Likewise.
77266
77267         * m4/libintl.m4: Remove.  No longer used.
77268
77269 2001-09-22  Jim Meyering  <meyering@lucent.com>
77270
77271         * lib/localcharset.c: Update from latest gettext.
77272         * lib/config.charset: Likewise.
77273
77274 2001-09-20  Jim Meyering  <meyering@lucent.com>
77275
77276         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77277         strtoimax.
77278         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77279         strtoumax.
77280
77281 2001-09-20  Jim Meyering  <meyering@lucent.com>
77282
77283         * lib/xstrtol.c (strtoimax): Guard declaration with
77284         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77285         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77286         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77287         (strtoumax): Likewise, for completeness (it wasn't necessary).
77288
77289 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77290
77291         * lib/strtoimax.c (HAVE_LONG_LONG):
77292         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77293         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77294         to work around bug in IBM C compiler.
77295
77296 2001-09-17  Jim Meyering  <meyering@lucent.com>
77297
77298         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77299         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77300         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77301         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77302         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77303         whenever the right hand side need not be expanded by the shell.
77304
77305 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77306
77307         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77308         library.  It's not correct, as some older glibcs are buggy.
77309         fnmatch wasn't fixed until glibc 2.2.
77310
77311         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77312         special shell magic here.
77313
77314 2001-09-16  Jim Meyering  <meyering@lucent.com>
77315
77316         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77317         * m4/jm-macros.m4: Require it.
77318
77319 2001-09-16  Jim Meyering  <meyering@lucent.com>
77320
77321         * lib/mkdir.c: New file.
77322
77323 2001-09-15  Jim Meyering  <meyering@lucent.com>
77324
77325         * m4/jm-macros.m4: Check for help2man.
77326
77327 2001-09-11  Jim Meyering  <meyering@lucent.com>
77328
77329         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77330         The body, by Paul Eggert, was moved here from configure.in.
77331         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77332
77333 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77334
77335         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77336         (jm_PREREQ): Use it.
77337
77338 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77339
77340         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77341         Use ssize_t, not int, to store result of readlink.
77342         Check for ssize_t overflow as well as size_t overflow,
77343         as POSIX says the result of readlink is implementation-defined
77344         when ssize_t overflows.
77345         Remove unnecessary cast to char*.
77346         Use free+malloc instead of realloc, as the storage doesn't need
77347         to be preserved and it's clearer and can be more efficient that way.
77348         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77349         * lib/xreadlink.h (xreadlink): Update prototype.
77350
77351 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77352
77353         * lib/xgetcwd.c: Revert some of the previous change; intead,
77354         fix the HAVE_GETCWD_NULL code to behave more like the
77355         !HAVE_GETCWD_NULL code used to.
77356
77357         Include "xalloc.h".
77358         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77359         invoke xalloc_die.
77360
77361 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77362
77363         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77364         sys/param.h, as pathmax.h includes them.
77365
77366 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77367
77368         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77369         (jm_PREREQ_XGETCWD): New macro.
77370
77371         * m4/getcwd.m4: New file.
77372
77373 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77374
77375         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77376         like the HAVE_GETCWD_NULL code.
77377         Include pathmax.h if not HAVE_GETCWD.
77378         Do not include xalloc.h.
77379         (INITIAL_BUFFER_SIZE): New symbol.
77380         Do not use xmalloc / xrealloc, since the caller is responsible for
77381         handling errors.  Preserve errno around `free' during failure.
77382         Do not overrun buffer when using getwd.
77383
77384 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77385
77386         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77387         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77388         getcwd (NULL, 0).
77389
77390 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77391
77392         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77393         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77394         spotted by Jim Meyering.
77395
77396 2001-09-03  Jim Meyering  <meyering@lucent.com>
77397
77398         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77399         failure.
77400
77401 2001-09-02  Jim Meyering  <meyering@lucent.com>
77402
77403         * lib/error.c: Update from GNU libc.
77404
77405 2001-09-01  Jim Meyering  <meyering@lucent.com>
77406
77407         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77408         Used by df.
77409
77410 2001-09-01  Jim Meyering  <meyering@lucent.com>
77411
77412         * lib/xreadlink.c: New file.
77413         * lib/xreadlink.h: New file.
77414         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77415         xreadlink.h.
77416
77417         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77418         doesn't conflict with sparc Solaris 7's definition in
77419         /usr/include/sys/int_types.h.
77420
77421         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77422         files.
77423         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77424         and strncasecmp as r-values.  Unixware didn't have declarations.
77425
77426 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77427
77428         * lib/xstrtol.h: Add copyright notice.
77429         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77430         LONGINT_INVALID_SUFFIX_CHAR.
77431
77432 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77433
77434         * lib/xstrtol.c (strtoimax): New decl.
77435
77436 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77437
77438         * lib/xgetcwd.c: Don't include pathmax.h.
77439         Include stdlib.h and unistd.h if available.
77440         Include xalloc.h.
77441         (xmalloc, xstrdup, free): Remove decls.
77442         (xgetcwd): Don't assume sizes fit in unsigned.
77443         Check for overflow when computing sizes.
77444         Simplify reallocation code.
77445
77446 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77447
77448         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77449         a directory's st_size can have an arbitrary value, so the old
77450         usage could waste an arbitrary amount of memory.  All uses
77451         changed.
77452         * lib/savedir.h: Update prototype.
77453
77454 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77455
77456         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77457
77458         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77459         old strtoimax.c.
77460
77461         Also, make the following further changes to make this file's
77462         configuration more similar to that of strtol.c:
77463         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77464         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77465         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77466         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77467         changed to signed values.
77468
77469         And make the following changes as well:
77470         Fix copyright notice, as 1999 was missing.
77471         (verify): New macro.
77472         (strtoimax): Check sizes at compile-time, not run-time.
77473         Prefer strtol to strtoll if both work.
77474         (main): Remove; it was not that useful and was a pain to maintain.
77475
77476         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77477
77478 2001-08-31  Jim Meyering  <meyering@lucent.com>
77479
77480         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77481         Use an initial, malloc'd, buffer of length 128 rather than
77482         a statically allocated one of length 1024.
77483
77484 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77485
77486         Simplify code, partly by assuming autoconf 2.52 semantics.
77487
77488         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77489
77490         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77491         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77492         All uses removed.
77493         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77494         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77495         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77496         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77497         jm_AC_HEADER_INTTYPES_H.
77498         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77499
77500         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77501
77502         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77503         Quote first arg of AC_DEFUN.
77504         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77505         since they are needed to parse the include file even if we need
77506         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77507         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77508         but with opposite signedness.
77509
77510 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77511
77512         Merge 'exclude' changes from tar 1.13.22.
77513         This fixes one or two unlikely storage allocation overflow bugs,
77514         but doesn't change user-visible behavior otherwise.
77515
77516 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77517
77518         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77519         (jm_PREREQ_EXCLUDE): New macro.
77520
77521 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77522
77523         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
77524         tm to be declared.
77525
77526 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77527
77528         * lib/hash.c: Remove '2001' from copyright notice.
77529
77530 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77531
77532         * lib/full-write.h: New file.
77533         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
77534         * lib/full-write.c: Correct credits, as cccp.c no longer
77535         exists and anyway it was so heavily changed from the old cccp
77536         code as to be unrecognizable.  Include full-write.h.
77537         (full_write): Return size_t, with short writes meaning failure.
77538         All callers changed.  This fixes a bug with large buffers
77539         on 64-bit hosts.
77540         * lib/utime.c: Include full-write.h.
77541
77542 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77543
77544         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
77545         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
77546         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
77547         Include if available.
77548         (<xalloc.h>): Include
77549         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
77550         (verify): New macro.  Use it to verify that EXCLUDE macros do not
77551         collide with FNM macros.
77552         (struct patopts): New struct.
77553         (struct exclude): Use it, as exclude patterns now come with options.
77554         (new_exclude): Support above changes.
77555         (new_exclude, add_exclude_file):
77556         Initial size must now be a power of two to simplify overflow checking.
77557         (free_exclude, fnmatch_no_wildcards): New function.
77558         (excluded_filename): No longer requires options arg, as the options
77559         are determined by add_exclude.  Now returns bool, not int.
77560         (excluded_filename, add_exclude):
77561         Add support for the fancy new exclusion options.
77562         (add_exclude, add_exclude_file): Now takes int options arg.
77563         Check for arithmetic overflow when computing sizes.
77564         (add_exclude_file): xrealloc might modify errno, so don't
77565         realloc until after errno might be used.
77566
77567         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
77568         New macros.
77569         (free_exclude): New decl.
77570         (add_exclude, add_exclude_file): Now takes int options arg.
77571         (excluded_filename): No longer requires options arg, as the options
77572         are determined by add_exclude.  Now returns bool, not int.
77573
77574 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77575
77576         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77577
77578 2001-08-27  Jim Meyering  <meyering@lucent.com>
77579
77580         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
77581
77582         * lib/version-etc.c (N_): Remove definition.
77583         Revert most of last change.
77584         Instead, simply don't mark the `Copyright...' string for translation.
77585         Based on advice from Paul Eggert.
77586
77587         * lib/strtoxmax.c: Tweak comment.
77588
77589 2001-08-26  Jim Meyering  <meyering@lucent.com>
77590
77591         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
77592
77593         * m4/xstrtoimax.m4: New file.
77594         * m4/xstrtoumax.m4: Add comments explaining why we
77595         AC_REPLACE_FUNCS(strtol).
77596
77597 2001-08-26  Jim Meyering  <meyering@lucent.com>
77598
77599         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
77600         of copyright with `%s' so translators don't get an untranslated
77601         message in 2002.
77602         (COPYRIGHT_YEAR): Define.
77603         (version_etc): Use fprintf rather than fputs.
77604         Suggestion from Ulrich Drepper.
77605
77606         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
77607
77608         * lib/strtoll.c: New file, from GNU libc.
77609         * lib/xstrtoimax.c: New file.
77610
77611         * lib/xstrtol.h: Add xstrtoimax.
77612         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
77613         * lib/strtoimax.c: New file.  Likewise, but first define
77614         STRTOUXMAX_SIGNED.
77615
77616         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
77617         ...
77618         * lib/strtoxmax.c: ... then renamed to this.
77619
77620 2001-08-18  Paul Eggert  <eggert@twinsun.com>
77621
77622         * m4/inttypes.m4: Add AC_PREREQ(2.13).
77623         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
77624         (jm_AC_TYPE_INTMAX_T): New macro.
77625         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
77626
77627         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
77628
77629         * m4/longlong.m4: Renamed from ulonglong.m4.
77630         * m4/inttypes.m4: Renamed from inttypes_h.m4.
77631         * m4/uintmax_t.m4: Removed.
77632
77633 2001-08-13  Paul Eggert  <eggert@twinsun.com>
77634
77635         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
77636         Port to Solaris 8, where 'sed' requires a space after the 'r'
77637         command, and where sh dislikes "$/".  Clean up the spacing a bit.
77638         Redirect output to $tmp just once.
77639
77640 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
77641
77642         * lib/addext.c (<errno.h>): Include.
77643         (errno): Declare if not defined.
77644         (addext): Work correctly when pathconf returns -1 and leaves
77645         errno alone because there is no limit.  Also, work even if
77646         pathconf returns a value greater than SIZE_MAX.
77647
77648 2001-08-12  Jim Meyering  <meyering@lucent.com>
77649
77650         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
77651         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
77652         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
77653         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
77654         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
77655         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
77656         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
77657         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
77658         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
77659         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
77660         utime.m4, utimes.m4, xstrtoumax.m4:
77661         Quote the first argument in each use of AC_DEFUN.
77662
77663 2001-08-12  Jim Meyering  <meyering@lucent.com>
77664
77665         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
77666         Simply `return getcwd (NULL, 0);'.
77667         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
77668         Use 1300 as initial value for length, not PATH_MAX.
77669
77670         * lib/pathmax.h: Clean up cpp syntax.
77671
77672 2001-08-12  Jim Meyering  <meyering@lucent.com>
77673
77674         * lib/gettimeofday.c: New file.
77675         * lib/gtod.h: New file.
77676         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
77677
77678 2001-08-05  Jim Meyering  <meyering@lucent.com>
77679
77680         * m4/jm-macros.m4: Require autoconf-2.52.
77681
77682 2001-08-04  Jim Meyering  <meyering@lucent.com>
77683
77684         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
77685         stmt, to get in sync with glibc.
77686
77687 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77688
77689         The following changes are from gettext 0.10.39 as maintained by
77690         Bruno Haible.
77691
77692         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77693         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77694         with inverted sense.  All uses changed.
77695
77696         * lib/mbswidth.c: Don't include <limits.h>.
77697         Include <stdlib.h> and <string.h> unconditionally.
77698         (iswcntrl, mbsinit, ISCNTRL): New macros.
77699         (mbsnwidth): Use K&R style function declarations.
77700         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77701         can optimize it when MB_CUR_MAX == 1.
77702         The width of control characters is zero, not 1.
77703
77704 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77705
77706         The following changes are from gettext 0.10.39 as maintained by
77707         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77708
77709         * m4/codeset.m4: Upgrade to serial AM1.
77710         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77711         all uses changed.  Quote first arg of AC_DEFUN.
77712         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77713
77714         * m4/iconv.m4: Upgrade to serial AM2.
77715         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77716         Add --with-libconv-prefix.
77717         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77718         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77719         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77720         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77721         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77722
77723         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77724         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77725         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77726         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77727         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77728         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77729         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77730         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77731         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77732
77733         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77734         string.h any more.
77735
77736         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77737         not the default value.
77738
77739         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77740         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77741         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77742         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77743         Also check for iswcntrl, used for wcwidth fallback.
77744         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77745         to Autoconf 2.13.
77746
77747 2001-08-03  Jim Meyering  <meyering@lucent.com>
77748
77749         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77750         as it was in the original.  Reported by Paul Eggert.
77751
77752 2001-07-16  Jim Meyering  <meyering@lucent.com>
77753
77754         * m4/gettimeofday.m4: New file.
77755         Prompted by a report from Bernhard Baehr.
77756
77757 2001-07-15  Jim Meyering  <meyering@lucent.com>
77758
77759         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77760         stuff. Now it's in ../Makefile.cfg.
77761
77762 2001-07-15  Jim Meyering  <meyering@lucent.com>
77763
77764         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77765         (BUILT_SOURCES): Add unlocked-io.h.
77766         (io_functions): Define.
77767         (unlocked-io.h): New rule.
77768         (DISTCLEANFILES): Add unlocked-io.h.
77769         (all-local): Depend on unlocked-io.h, to ensure it is created.
77770
77771         * lib/unlocked-io.hin: New file
77772
77773         * lib/regex.c: Update from glibc.
77774
77775 2001-07-05  Jim Meyering  <meyering@lucent.com>
77776
77777         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77778         recommendation.
77779         (libfetish_a_SOURCES): Put all .h files here instead.
77780         Remove a thus-exposed (better checks in automake) duplicate and
77781         two unnecessary .h files.
77782
77783 2001-07-04  Jim Meyering  <meyering@lucent.com>
77784
77785         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77786         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77787         distcheck failure.
77788
77789 2001-07-02  Jim Meyering  <meyering@lucent.com>
77790
77791         The following changes were prompted by suggestions from Bruno Haible.
77792
77793         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
77794         is now generated.
77795         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
77796         definition of EXTRA_DIST.
77797         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
77798         ensure that the generated file is created/updated whenever the list
77799         of $(unlocked_functions) is changed.
77800         (jm-glibc-io.m4): New rule.
77801         (unlocked-io.h): New rule -- currently unused.
77802
77803 2001-06-24  Jim Meyering  <meyering@lucent.com>
77804
77805         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
77806         unmatched right bracket, rather than kludging it with an extra,
77807         falsely-matching quote in a comment.  Patch by Akim Demaille.
77808
77809 2001-06-11  Jim Meyering  <meyering@lucent.com>
77810
77811         * lib/regex.c: Update from GNU libc.
77812
77813 2001-05-27  Jim Meyering  <meyering@lucent.com>
77814
77815         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
77816         Check for ut_type in struct utmp.
77817
77818 2001-05-27  Jim Meyering  <meyering@lucent.com>
77819
77820         * lib/readutmp.h (UT_TYPE): Define.
77821
77822 2001-05-24  Jim Meyering  <meyering@lucent.com>
77823
77824         * lib/argmatch.c: Include "quote.h".
77825         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
77826         quote function.  Reported by Göran Uddeborg.
77827
77828 2001-05-22  Jim Meyering  <meyering@lucent.com>
77829
77830         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
77831         now that we use the package-supplied version unconditionally.
77832         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
77833
77834 2001-05-21  Jim Meyering  <meyering@lucent.com>
77835
77836         * m4/regex.m4: Change a couple backticks to single quotes to avoid
77837         shell syntax errors.
77838
77839 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77840
77841         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
77842
77843 2001-05-20  Paul Eggert  <eggert@twinsun.com>
77844
77845         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
77846         Don't bother to check library strftime, since
77847         we'll be using our own my_strftime function anyway.
77848         Define my_strftime instead of strftime.
77849
77850 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
77851
77852         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
77853         which is not yet declared.
77854
77855 2001-05-15  Jim Meyering  <meyering@lucent.com>
77856
77857         * m4/regex.m4: Use proper quoting so brackets appear in the test
77858         program.
77859         Reported by, and with help from, Bruno Haible.
77860
77861 2001-05-13  Jim Meyering  <meyering@lucent.com>
77862
77863         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
77864         undefined.
77865
77866 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77867
77868         dirname code cleanup.  base_name now behaves more compatibly
77869         with POSIX basename when given file names that have trailing
77870         slashes, and similarly for dir_name.  Add new primitives
77871         base_len and dir_len.  Put the directory-name-related decls
77872         into dirname.h.
77873
77874         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
77875         * lib/backupfile.c (base_name): Likewise.
77876         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
77877         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
77878         * lib/makepath.c (strip_trailing_slashes): Likewise.
77879         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
77880         ISSLASH): Likewise.
77881         * lib/rename.c (strip_trailing_slashes): Likewise.
77882         * lib/same.c (base_name): Likewise.
77883         * lib/stripslash.c (ISSLASH): Likewise.
77884
77885         * lib/addext.c: Include <dirname.h> after size_t is defined.
77886         * lib/backupfile.c: Likewise.
77887
77888         * lib/addext.c (addext): Use base_len to trim redundant
77889         trailing slashes instead of doing it ourselves.
77890         But do not trim the last slash if it is not redundant.
77891
77892         * lib/backupfile.c (find_backup_file_name,
77893         max_backup_version): Use base_len instead of rolling it ourselves.
77894         Handle the case of "" and (on DOS) "C:" correctly.
77895
77896         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
77897         needed. Include <string.h>, <dirname.h>.
77898         (base_name): Allow file names ending in slashes, other than names
77899         that are all slashes.  In this case, return the basename followed
77900         by the slashes.  This is more general, and can be used in places
77901         where the original base_name purposely had an assertion failure.
77902         (base_len): New function.
77903
77904         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
77905         Do not include <assert.h>; no longer needed.
77906         Include xalloc.h.
77907         (memrchr): Remove decl.
77908         (dir_name_r): Remove.
77909         (dir_len): Renamed from dirlen.  All callers changed.
77910         Rewrite in terms of base_name, for simplicity and consistency.
77911         (dir_name): Never return NULL.  All callers changed.
77912         Do not include <stdlib.h> in test program; no longer needed.
77913         return 0; is fine for test program.
77914
77915         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
77916         New macros.
77917         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
77918
77919         * lib/path-concat.c (path_concat): Use base_len to compute
77920         base length, not strlen; this means we cannot rely on memcpy
77921         to null-terminate.
77922
77923         * lib/same.c (STREQ): Remove.
77924         (same_name): Handle the case where the basename ends in trailing '/'.
77925
77926         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
77927         a slash was stripped.  Do not strip the last slash after a
77928         file system prefix.
77929
77930 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77931
77932         * lib/Makefile.am (libfetish_a_SOURCES):
77933         Add strftime.c, since we now compile it on all hosts.
77934
77935         * lib/strftime.c (my_strftime):
77936         Define to nstrftime if emacs, but only if my_strftime is not defined.
77937         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
77938         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
77939         Add one more extra argument: a nanoseconds value.
77940         All uses changed.
77941         (ns): New macro.
77942         (my_strftime function): Add %N format.
77943         (emacs_strftimeu): Renamed from emacs_strftime,
77944         with extra ut argument.
77945
77946 2001-05-09  Paul Eggert  <eggert@twinsun.com>
77947
77948         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
77949
77950 2001-04-21  Jim Meyering  <meyering@lucent.com>
77951
77952         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
77953         doesn't interfere.
77954
77955 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77956
77957         * m4/ftruncate.m4: Check for chsize.
77958         Link with ftruncate.o unconditionally if ftruncate is missing.
77959         This was required when cross-compiling to i586-mingw32msvc.
77960
77961 2001-04-08  Jim Meyering  <meyering@lucent.com>
77962
77963         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
77964         recomputed; that's necessary when the offset spans a DST transition.
77965         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
77966
77967 2001-04-02  Jim Meyering  <meyering@lucent.com>
77968
77969         * lib/regex.h, regex.c: Update from GNU libc.
77970
77971 2001-03-24  Jim Meyering  <meyering@lucent.com>
77972
77973         * m4/jm-macros.m4: Require autoconf-2.49d.
77974
77975 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
77976
77977         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
77978
77979 2001-03-19  Paul Eggert  <eggert@twinsun.com>
77980
77981         * lib/version-etc.c (version_etc_copyright): Update to 2001.
77982
77983 2001-03-17  Jim Meyering  <meyering@lucent.com>
77984
77985         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
77986         now that the version in autoconf is equivalent.
77987         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
77988
77989         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
77990         Suggestion from Akim Demaille.
77991
77992         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
77993         (jm_PREREQ_TEMPNAME): New function.
77994
77995 2001-03-16  Paul Eggert  <eggert@twinsun.com>
77996
77997         * lib/tempname.c (uint64_t): Define to uintmax_t if
77998         not defined, and if UINT64_MAX is not defined.
77999         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78000         Reported by John David Anglin.
78001
78002 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78003
78004         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78005         resolve alias if codeset is empty.
78006         * lib/config.charset (BeOS): Use wildcard syntax.
78007
78008 2001-03-13  Jim Meyering  <meyering@lucent.com>
78009
78010         * lib/path-concat.c (path_concat)
78011         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78012         concatenating e.g., `C:' and `foo'.
78013         From Bruno Haible.
78014
78015 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78016
78017         * lib/localcharset.c (locale_charset): Don't use
78018         setlocale(LC_CTYPE,NULL). Don't return NULL.
78019         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78020
78021 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78022
78023         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78024         support for DOS/DJGPP.
78025
78026 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78027
78028         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78029         lacks mkstemp.  Compile our own tempname.c if we compile our own
78030         mkstemp.c, as mkstemp relies on tempname.
78031
78032 2001-03-01  Jim Meyering  <meyering@lucent.com>
78033
78034         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78035         AH_VERBATIM really does output its argument verbatim.
78036
78037 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78038
78039         * lib/Makefile.am (libfetish_a_SOURCES):
78040         Add dup-safer.c, fopen-safer.c.
78041         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78042
78043         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78044         * lib/unistd-safer.h: New files.
78045
78046 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78047
78048         The mkstemp replacement is taken from glibc 2.2.2, with some
78049         portability fixes for use outside glibc, as follows:
78050
78051         * lib/tempname.c (struct_stat64): New macro.
78052         (direxists, __gen_tempname): Use it.
78053         This avoids a portability problem with Solaris 8.
78054
78055         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78056         (<stddef.h>, <stdint.h>, <string.h>):
78057         Include only if STDC_HEADERS || _LIBC.
78058         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78059         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78060         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78061         (__set_errno): Define this macro if <errno.h> doesn't.
78062         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78063         Define these macros if <stdio.h> doesn't.
78064         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78065         Define these macros if <sys/stat.h>
78066         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78067         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78068         __xstat64): Define if not _LIBC.
78069         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78070         (__gen_tempname): Invoke gettimeofday only if
78071         HAVE_GETTIMEOFDAY || _LIBC;
78072         otherwise, fall back on plain "time".
78073         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78074
78075         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78076
78077         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78078
78079 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78080
78081         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78082
78083 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78084
78085         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78086         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78087         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78088         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78089
78090 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78091
78092         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78093         Remove workaround macros for hosts that have mbrtowc but not
78094         mbstate_t, as we now insist on proper declarations for both
78095         before using mbrtowc.
78096
78097 2001-02-17  Jim Meyering  <meyering@lucent.com>
78098
78099         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78100         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78101         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78102         UnixWare 7.1.1.
78103
78104         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78105         rather than AC_CACHE_VAL.
78106
78107 2001-02-17  Jim Meyering  <meyering@lucent.com>
78108
78109         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78110         around included file name.
78111
78112         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78113
78114         * lib/strftime.c: Update from GNU libc (the only changes were to
78115         comments).
78116
78117 2001-02-17  Jim Meyering  <meyering@lucent.com>
78118
78119         * lib/regex.c: Update from libc.
78120
78121 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78122
78123         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78124         clash.
78125
78126 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78127
78128         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78129         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78130         Reported by Mark Hounschell via Paul Eggert.
78131
78132 2001-02-07  Jim Meyering  <meyering@lucent.com>
78133
78134         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78135
78136 2001-02-05  Jim Meyering  <meyering@lucent.com>
78137
78138         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78139         it includes the patch required for `large file' support with at least
78140         HP-UX's 10.20 /bin/cc.
78141
78142 2001-02-03  Jim Meyering  <meyering@lucent.com>
78143
78144         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78145         AS_IF, now that it works once again (mysteriously).
78146         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78147
78148 2001-01-30  Jim Meyering  <meyering@lucent.com>
78149
78150         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78151         * m4/chown.m4: Rename conftestchown to conftest.chown.
78152         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78153         s/conftestdir2/conftest.d2/.
78154         * m4/utimes.m4: s/conftestdata/conftest.data/
78155         Inspired by Pavel Roskin's change in autoconf.
78156
78157 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78158
78159         * lib/config.charset: Update for FreeBSD 4.2.
78160
78161 2001-01-27  Jim Meyering  <meyering@lucent.com>
78162
78163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78164         a use of AS_IF.
78165         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78166
78167 2001-01-26  Jim Meyering  <meyering@lucent.com>
78168
78169         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78170         quotearg.c includes it.
78171
78172 2001-01-26  Jim Meyering  <meyering@lucent.com>
78173
78174         * lib/quotearg.c: Include stddef.h.
78175         * lib/quote.c: Include stddef.h.
78176         Reported by Axel Kittenberger.
78177
78178         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78179         line in double quotes so that it evokes a better diagnostic.
78180         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78181         Reported by Axel Kittenberger.
78182
78183 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78184
78185         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78186         as if it was a `charset'.
78187
78188 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78189
78190         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78191         has const.
78192
78193 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78194
78195         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78196         to avoid a warning.  Add back 'const' to inptr.
78197
78198 2001-01-20  Jim Meyering  <meyering@lucent.com>
78199
78200         Be sure that headers are checked before used in code compiled
78201         for the type checks.
78202         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78203         In place of that, invoke jm_CHECK_ALL_TYPES.
78204         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78205         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78206         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78207         The check for ssize_t was mistakenly run before the test for unistd.h.
78208
78209         The configure-time check for stdbool.h was missing.
78210         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78211         (jm_PREREQ_HASH): New function.
78212
78213 2001-01-17  Jim Meyering  <meyering@lucent.com>
78214
78215         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78216         for autoconf-2.49c.
78217         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78218
78219 2001-01-16  Jim Meyering  <meyering@lucent.com>
78220
78221         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78222         From Bruno Haible.
78223
78224 2001-01-14  Jim Meyering  <meyering@lucent.com>
78225
78226         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78227         foo and bar.  Create conftestdir/ in the script, not in the C code.
78228         Remove directories in the script, not in the C code.
78229         Remove conftestdir{,2} before trying to create the directory.
78230         Make the entire configure script fail if the mkdir fails.
78231
78232 2001-01-14  Jim Meyering  <meyering@lucent.com>
78233
78234         * lib/rename.c: New file.  From Volker Borchert.
78235         Include stdlib.h, string.h or strings.h, and xalloc.h.
78236         Use strip_trailing_slashes rather than open-coding it.
78237
78238 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78239
78240         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78241
78242 2001-01-03  Jim Meyering  <meyering@lucent.com>
78243
78244         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78245         of local `inptr' to avoid warning with some system declarations of
78246         iconv.
78247
78248 2001-01-02  Volker Borchert  <bt@teknon.de>
78249
78250         * m4/rename.m4: New file.
78251         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78252
78253 2001-01-01  Jim Meyering  <meyering@lucent.com>
78254
78255         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78256         even on systems with utmpx.h.  It's necessary for the declaration of
78257         utmp's ut_user member.  Reported by Andreas Jaeger.
78258
78259         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78260         available. They are required for the declarations of getgrgid and
78261         getpwuid resp.
78262         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78263         Reported by Andreas Jaeger.
78264
78265 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78266
78267         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78268         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78269         so `make install' also works in VPATH builds.
78270
78271 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78272
78273         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78274         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78275         can be used in subdirectories.
78276
78277 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78278
78279         * lib/modechange.c: Do not assume that mode_t uses the
78280         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78281         the other-execute bit of FOO even if S_IXOTH != 1.
78282
78283         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78284         WOTH, XOTH, ALLM): New macros.
78285         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78286          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78287         Use them.
78288         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78289         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78290         (mode_compile):
78291         No need to use uintmax_t; unsigned long is long enough.
78292         Don't bother to get suffix since we don't use it.
78293
78294 2000-12-26  Jim Meyering  <meyering@lucent.com>
78295
78296         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78297         better with autoheader.
78298
78299 2000-12-24  Jim Meyering  <meyering@lucent.com>
78300
78301         * lib/hash.c (is_prime): Return explicit boolean values.
78302         (hash_get_first): Return NULL to appease Irix5.6's 89.
78303         Reported by Nelson Beebe.
78304
78305 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78306
78307         * lib/localcharset.c (locale_charset): Add support for Win32.
78308
78309 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78310
78311         * lib/physmem.h, lib/physmem.c: New files.
78312
78313         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78314         (noinst_HEADERS): Add physmem.h.
78315
78316         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78317         't' for compatibility with Solaris 8 sort.
78318
78319 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78320
78321         * lib/config.charset: Add support for BeOS.
78322
78323 2000-12-17  Jim Meyering  <meyering@lucent.com>
78324
78325         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78326         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78327
78328 2000-12-16  Jim Meyering  <meyering@lucent.com>
78329
78330         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78331         N and M) would have treated it like `chown N:N FILE'.
78332
78333         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78334
78335 2000-12-16  Jim Meyering  <meyering@lucent.com>
78336
78337         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78338         SHELLS_FILE to a file name that's useful on djgpp systems.
78339         Include stdlib.h.
78340         (ADDITIONAL_DEFAULT_SHELLS): Define.
78341         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78342         Based mostly on a patch from Prashant TR.
78343
78344 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78345
78346         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78347         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78348         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78349
78350 2000-12-08  Andreas Schwab  <schwab@suse.de>
78351
78352         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78353         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78354
78355 2000-12-07  Jim Meyering  <meyering@lucent.com>
78356
78357         * lib/stripslash.c (ISSLASH): Define.
78358         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78359         `/'.
78360         From Prashant TR.
78361
78362         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78363         (dir_name_r): Declare this function as static.
78364         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78365         manifest itself on a name containing a mix of slashes and
78366         backslashes.
78367         Make this function work with names starting with a DOS-style
78368         drive letter and colon prefix.
78369         (dir_name): Append `.' if necessary.
78370         Based mostly on patches from Prashant TR and Eli Zaretskii.
78371
78372         * lib/dirname.h (dir_name_r): Remove prototype.
78373
78374 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78375
78376         * m4/off_t-format.m4: Remove this file.
78377         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78378
78379 2000-12-06  Jim Meyering  <meyering@lucent.com>
78380
78381         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78382         replacement strtoull, we may well need the replacement strtoul, too.
78383         Check for declarations of strtoul and strtoull.
78384         Check for strtol.  Mainly as a cue to cause automake to include
78385         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78386         Check for limits.h -- strtol.c needs it.
78387
78388 2000-12-05  Jim Meyering  <meyering@lucent.com>
78389
78390         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78391
78392 2000-12-04  Jim Meyering  <meyering@lucent.com>
78393
78394         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78395         Also include memory.h, stdlib.h, unistd.h if appropriate.
78396         Reported by Andreas Jaeger (conflicting declaration of malloc).
78397
78398 2000-12-02  Jim Meyering  <meyering@lucent.com>
78399
78400         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78401         * m4/jm-macros.m4 (jm_MACROS): require it.
78402
78403 2000-12-02  Jim Meyering  <meyering@lucent.com>
78404
78405         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78406
78407 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78408
78409         * lib/memrchr.c: Include <config.h> before any system include file.
78410
78411 2000-11-30  Jim Meyering  <meyering@lucent.com>
78412
78413         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78414
78415 2000-11-30  Jim Meyering  <meyering@lucent.com>
78416
78417         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78418
78419 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78420
78421         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78422
78423 2000-11-26  Jim Meyering  <meyering@lucent.com>
78424
78425         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78426
78427 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78428
78429         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78430         size of (size_t) -1; it's not portable.
78431
78432 2000-11-17  Jim Meyering  <meyering@lucent.com>
78433
78434         * lib/strstr.c: Update from GNU libc.
78435
78436 2000-11-17  Akim Demaille  <akim@epita.fr>
78437
78438         * lib/obstack.h: Formatting changes.
78439         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78440         prevent type checking.
78441         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78442         cast the value to (void *): assigning a `foo *' to a `void *'
78443         variable is valid.
78444         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78445
78446 2000-11-16  Jim Meyering  <meyering@lucent.com>
78447
78448         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78449
78450 2000-11-11  Jim Meyering  <meyering@lucent.com>
78451
78452         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78453
78454 2000-11-10  Jim Meyering  <meyering@lucent.com>
78455
78456         * lib/obstack.h: Update from GNU libc.
78457         * lib/obstack.c: Likewise.
78458
78459 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78460
78461         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78462
78463 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78464
78465         * lib/getusershell.c (setusershell): Use rewind rather than
78466         fseek/fseeko, to avoid configuration hassles with fseeko.
78467         Don't bother opening SHELLS_FILE if shellstream is NULL;
78468         it's not necessary.
78469
78470 2000-11-05  Jim Meyering  <meyering@lucent.com>
78471
78472         * lib/makepath.h (make_dir): Declare.
78473         * lib/makepath.c (make_dir): Remove `static' attribute.
78474         Tweak a comment.
78475
78476 2000-11-04  Jim Meyering  <meyering@lucent.com>
78477
78478         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78479
78480 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78481
78482         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78483         last one in a bucket, advance to the next bucket.
78484
78485 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78486
78487         * lib/fnmatch.c: Do not comment out all the code if we are using
78488         the GNU C library, because in some cases we are replacing buggy
78489         code in the GNU C library itself.
78490
78491 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78492
78493         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78494         (regex_compile): Catch bogus \(\1\).
78495
78496 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78497
78498         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78499         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78500         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78501
78502 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78503
78504         * lib/error.h, getline.h, modechange.h:
78505         Remove "2000" from Copyright line, as the file hasn't been
78506         changed this year other than in the copyright notice.
78507
78508         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78509         was changed this year.
78510
78511 2000-10-29  Jim Meyering  <meyering@lucent.com>
78512
78513         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78514         renaming.
78515         * m4/ls-mntd-fs.m4: Likewise
78516
78517 2000-10-29  Jim Meyering  <meyering@lucent.com>
78518
78519         * lib/xstat.in: Fix grammar in comment.
78520
78521 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
78522
78523         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
78524         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
78525         doesn't define __restrict_arr.
78526
78527 2000-10-28  Jim Meyering  <meyering@lucent.com>
78528
78529         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
78530         (jm_PREREQ_MEMCHR): New function.
78531
78532 2000-10-28  Jim Meyering  <meyering@lucent.com>
78533
78534         * lib/memchr.c: Update from libc.
78535         Adjust for portability:
78536         [HAVE_STDLIB_H]: Include stdlib.h.
78537         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
78538         Undef __memchr, too.
78539         [!weak_alias]: Define __memchr to memchr.
78540
78541         * lib/regex.c: Update from libc.
78542         * lib/regex.h: Likewise.
78543         * lib/getopt1.c: Likewise.
78544         * lib/memcmp.c: Likewise.
78545
78546         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
78547         Avoid using fseek, when possible -- it's broken by design.
78548         Patch by Ulrich Drepper.
78549
78550 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
78551
78552         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
78553         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
78554         Giving in to popular pressure to shut up the compiler with casts.
78555
78556 2000-10-26  Jim Meyering  <meyering@lucent.com>
78557
78558         * lib/strftime.c: Update from libc.
78559
78560 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
78561
78562         * regex.c: More `unsigned char' -> `re_char' changes.
78563         Also change several `int' into `re_wchar_t'.
78564         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
78565         (PUSH_FAILURE_POINTER): Don't cast any more.
78566         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
78567         We want GCC to complain, since this piece of code makes
78568         re_match non-reentrant, which *should* be fixed.
78569         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
78570         (EXTEND_BUFFER): Use RETALLOC.
78571         (SET_LIST_BIT): Don't cast.
78572         (re_wchar_t): New type.
78573         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
78574         that those two functions will always properly return.
78575         (IMMEDIATE_QUIT_CHECK): Cast to void.
78576         (analyse_first): Use recursion rather than an explicit stack.
78577         (re_compile_fastmap): Can't fail anymore.
78578         (re_search_2): Don't check re_compile_fastmap for failure.
78579         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
78580         Now also sets the new value (passed in a new argument).
78581         (re_match_2_internal): Use it.
78582         Also, use a new var `reg' of type size_t when looping through regs
78583         rather than reuse the inappropriate `mcnt'.
78584
78585 2000-10-25  Jim Meyering  <meyering@lucent.com>
78586
78587         * lib/obstack.c: Update from libc.
78588
78589 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
78590
78591         * regex.c (regex_compile): Change the way of handling a range from
78592         a char less than 256 to a char not less than 256.
78593
78594 2000-10-24  Andrew Innes  <andrewi@gnu.org>
78595
78596         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
78597         NT-Emacs only.
78598         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
78599         so that re_search functions only quit when callers expect them to.
78600
78601 2000-10-23  Jim Meyering  <meyering@lucent.com>
78602
78603         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
78604         wrong.  That set_locale call must not have any side effects.
78605         From Paul Eggert.
78606
78607 2000-10-22  Jim Meyering  <meyering@lucent.com>
78608
78609         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
78610         [CYCLIC]: Remove now-unused definition.
78611
78612         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
78613         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
78614         Suggestion from Ulrich Drepper.
78615
78616 2000-10-21  Jim Meyering  <meyering@lucent.com>
78617
78618         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
78619         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
78620         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
78621
78622 2000-10-21  Jim Meyering  <meyering@lucent.com>
78623
78624         * lib/dirname.c (memrchr): Declare if necessary.
78625         (dir_name): Remove the restriction that there be no
78626         trailing slashes.  Now, this code skips past them, effectively
78627         ignoring them.
78628         [TEST_DIRNAME] (main): New unit tests.
78629
78630         * lib/memrchr.c: New file from GNU libc.
78631         Undef __memrchr, too.
78632         [!weak_alias]: Define __memrchr to memrchr.
78633         Guard weak_alias use with `#ifdef weak_alias'.
78634
78635 2000-10-21  Jim Meyering  <meyering@lucent.com>
78636
78637         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
78638         (dir_name): Use dir_name_r.
78639         * lib/dirname.h (dir_name_r): Declare it.
78640
78641 2000-10-17  Jim Meyering  <meyering@lucent.com>
78642
78643         * lib/quote.h (PARAMS): Define and use.
78644         Reported by Akim Demaille.
78645
78646         * lib/getopt.c: Update from libc.
78647
78648 2000-10-16  Jim Meyering  <meyering@lucent.com>
78649
78650         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
78651         setlocale.
78652         From Jan Fedak.
78653
78654 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
78655
78656         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
78657
78658 2000-09-25  Jim Meyering  <meyering@lucent.com>
78659
78660         * lib/md5.h (rol): Define (from GnuPG).
78661
78662         * lib/sha.c: Give credit (GnuPG) where due.
78663         (M): Use rol rather than open-coding it.
78664         Add a FIXME comment.
78665
78666 2000-09-21  Jim Meyering  <meyering@lucent.com>
78667
78668         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
78669         Reported by Michael Stone.
78670
78671 2000-09-20  Jim Meyering  <meyering@lucent.com>
78672
78673         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
78674         (noinst_HEADERS): Add sha.h.
78675         Based on code from Scott G. Miller and from GnuPG.
78676
78677 2000-09-18  Jim Meyering  <meyering@lucent.com>
78678
78679         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
78680         LIBS. Otherwise, everyone ends up linking with -lelf for some
78681         configurations.
78682         Reported by Mike Stone.
78683
78684 2000-09-15  Jim Meyering  <meyering@lucent.com>
78685
78686         * lib/regex.c: Update from libc.
78687
78688 2000-09-10  Jim Meyering  <meyering@lucent.com>
78689
78690         * lib/getopt.c (_getopt_internal): Update from glibc.
78691
78692 2000-09-09  Jim Meyering  <meyering@lucent.com>
78693
78694         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78695         think it should be used as a general replacement for isascii.
78696         * lib/fnmatch.c: Likewise.
78697         * lib/mbswidth.c: Likewise
78698         * lib/regex.c: Likewise.
78699
78700         Don't use atoi.
78701         * lib/userspec.c: Include sys/param.h and limits.h.
78702         Include xstrtol.h.
78703         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78704         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78705         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78706         UID, GID.  Check range.
78707
78708 2000-09-06  Jim Meyering  <meyering@lucent.com>
78709
78710         * lib/getopt.c (_getopt_internal): Update from glibc.
78711
78712 2000-08-30  Jim Meyering  <meyering@lucent.com>
78713
78714         * lib/strftime.c: Merge in changes from GNU libc.
78715
78716 2000-08-26  Jim Meyering  <meyering@lucent.com>
78717
78718         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78719         * m4/fpending.m4: New file.
78720
78721 2000-08-26  Jim Meyering  <meyering@lucent.com>
78722
78723         * lib/closeout.c: Include "__fpending.h".
78724         (close_stdout_status): Return right away if there's nothing to flush.
78725
78726         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78727         * lib/__fpending.c: New file.
78728         * lib/__fpending.h: New file.
78729
78730 2000-08-20  Jim Meyering  <meyering@lucent.com>
78731
78732         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78733         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78734         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78735
78736 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78737
78738         Improve fileutils installation on systems where running
78739         programs (like install) can't be unlinked.
78740         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78741         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78742
78743 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78744
78745         Standardize on "memory exhausted" instead of "Memory exhausted"
78746         or "virtual memory exhausted".
78747         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78748         "virtual memory exhausted".
78749         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78750         our own message.
78751         * lib/userspec.c (parse_user_spec): Likewise.
78752         * lib/bumpalloc.h: comment fix
78753         * lib/same.c, userspec.c: Include xalloc.h.
78754
78755         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78756         not char *const and pointing to a constant array.
78757         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78758         (xrealloc): Comment fix.
78759
78760         * lib/userspec.c (parse_user_spec):
78761         Don't translate a message until just before returning,
78762         to avoid unnecessary translation.
78763
78764 2000-08-07  Jim Meyering  <meyering@lucent.com>
78765
78766         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78767         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78768         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78769         getgroups.c, gethostname.c, getopt.h, group-member.c,
78770         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78771         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78772         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78773         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78774         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78775         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78776         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78777         yesno.c: Back out Copyright date changes for each file with no change
78778         this year.  This eases coordination with other programs using the same
78779         source code modules.  From Paul Eggert.
78780
78781 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78782
78783         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78784         not char, for compatibility with glibc 2.1.3 strftime.c.
78785
78786 2000-08-03  Greg McGary  <greg@mcgary.org>
78787
78788         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78789         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78790         (EXTEND_BUFFER): Use them.
78791
78792 2000-08-01  Jim Meyering  <meyering@lucent.com>
78793
78794         * lib/dirname.c (ISSLASH): Define.
78795         (BACKSLASH_IS_PATH_SEPARATOR): Define.
78796         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
78797         both `\' and `/' may be use as path separators.
78798         Based on a patch from Prashant TR.
78799
78800 2000-07-31  Paul Eggert  <eggert@twinsun.com>
78801
78802         * lib/quotearg.c (quotearg_n_options): Don't make the initial
78803         slot vector a constant, since it might get modified.
78804
78805 2000-07-31  Jim Meyering  <meyering@lucent.com>
78806
78807         * lib/xmalloc.c: Use `virtual memory exhausted', not
78808         `Memory exhausted'.
78809         * lib/obstack.c (print_and_abort): Likewise.
78810
78811 2000-07-30  Paul Eggert  <eggert@twinsun.com>
78812
78813         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
78814         buffer, so that the caller can always quote one small
78815         component of a "memory exhausted" message in slot 0.
78816         From a suggestion by Jim Meyering.
78817
78818 2000-07-30  Jim Meyering  <meyering@lucent.com>
78819
78820         * lib/makepath.c (make_path): Quote the other instance, too.
78821
78822         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
78823         (STATIC_BUF_SIZE): Define.
78824         (quotearg_n_options): Use only statically allocated storage when
78825         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
78826         than STATIC_BUF_SIZE.
78827
78828 2000-07-29  Jim Meyering  <meyering@lucent.com>
78829
78830         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
78831         * lib/dirname.c (dir_name): Likewise.
78832
78833         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
78834         `/'.
78835
78836         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
78837         (dir_name): Assert that there are no trailing slashes.
78838
78839 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
78840
78841         * lib/mbswidth.h (mbswidth): Add a flags argument.
78842         (mbswidth): New declaration.
78843         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
78844         * lib/mbswidth.c (mbswidth): Add a flags argument.
78845         (mbsnwidth): New function.
78846
78847 2000-07-24  Jim Meyering  <meyering@lucent.com>
78848
78849         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
78850
78851 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78852
78853         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
78854
78855 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78856
78857         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
78858         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
78859         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
78860         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
78861         invoke multibyte primitives.
78862
78863 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78864
78865         * lib/quotearg.c:
78866         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
78867         so that mbstate_t is always defined.
78868
78869         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
78870         be 1 in at least one GCC installation, and this configuration
78871         error is likely to be common.  Ignoring MB_LEN_MAX hurts
78872         performance on hosts that have mbrtowc but have only unibyte
78873         locales, but I assume these hosts are rare.
78874
78875 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78876
78877         * lib/mbswidth.c (_XOPEN_SOURCE):
78878         Don't define; this causes problems on Solaris 7.
78879         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
78880
78881 2000-07-23  Jim Meyering  <meyering@lucent.com>
78882
78883         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
78884         too: getgrgid, getpwuid, getuid.
78885
78886 2000-07-23  Jim Meyering  <meyering@lucent.com>
78887
78888         * lib/basename.c (base_name): Add an assertion.
78889
78890 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
78891
78892         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
78893         shadow its mbsinit function.
78894
78895 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78896
78897         * lib/mbswidth.h: New file.
78898         * lib/mbswidth.c: New file.
78899         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
78900         (noinst_HEADERS): Add mbswidth.h.
78901
78902 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78903
78904         * lib/config.charset: Add support for FreeBSD. Improve support for
78905         HP-UX and IRIX 6.
78906
78907 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
78908
78909         * m4/mbswidth.m4: New file.
78910         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
78911
78912 2000-07-15  Jim Meyering  <meyering@lucent.com>
78913
78914         * lib/makepath.c: Include quote.h.
78915         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
78916         corresponding argument in a `quote (...)' call.
78917         Give better diagnostics.
78918
78919         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
78920         (noinst_HEADERS): Add quote.h.
78921
78922         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
78923         from tar's src/misc.c.
78924         * lib/quote.h: New file.  Prototypes for same.
78925
78926 2000-07-14  Paul Eggert  <eggert@twinsun.com>
78927
78928         From a suggestion by Bruno Haible.
78929         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
78930         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
78931         to decide whether to define the BeOS workaround macro;
78932         this adjusts to the change to AC_MBSTATE_T.
78933
78934 2000-07-14  Jim Meyering  <meyering@lucent.com>
78935
78936         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
78937         jm_AC_TYPE_UINTMAX_T.
78938
78939 2000-07-13  Paul Eggert  <eggert@twinsun.com>
78940
78941         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
78942
78943         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
78944         quotearg_buffer_restyled): Add support for
78945         clocale_quoting_style.  Undo previous change to
78946         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
78947         and "{RIGHT QUOTATION MARK}" msgids.
78948
78949 2000-07-10  Paul Eggert  <eggert@twinsun.com>
78950
78951         From a suggestion by Bruno Haible.
78952         * m4/mbstate_t.m4 (AC_MBSTATE_T):
78953         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
78954         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
78955         and mbstate_t, to a single-part test that simply defines mbstate_t.
78956         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
78957         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
78958
78959 2000-07-10  Jim Meyering  <meyering@lucent.com>
78960
78961         * m4/strerror_r.m4: Mirror the correction made in autoconf.
78962
78963         * m4/gnu-source.m4: Output to confdefs.h directly.
78964         Suggestion from Akim Demaille.
78965
78966 2000-07-09  Paul Eggert  <eggert@twinsun.com>
78967
78968         The old behavior of quoting `like this' doesn't look good with
78969         newer, ISO-style fonts.  See:
78970         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
78971
78972         Instead, quote "like this" by default.  Let the translator
78973         tailor the locale-specific quoting behavior by providing
78974         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
78975
78976         * lib/quotearg.c (N_): New macro.
78977         (gettext_default): New function.
78978         (quotearg_buffer_restyled): Use
78979         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
78980         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
78981
78982 2000-07-09  Jim Meyering  <meyering@lucent.com>
78983
78984         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
78985         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
78986
78987         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
78988         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
78989
78990 2000-07-09  Jim Meyering  <meyering@lucent.com>
78991
78992         * lib/Most files: Update copyright dates to include 2000.
78993
78994 2000-07-08  Jim Meyering  <meyering@lucent.com>
78995
78996         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
78997         if not defined.
78998         (xgethostname): Remove now-unnecessary #ifdef.
78999         Move declaration of `err' into loop where it's used.
79000
79001 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79002         and Bruno Haible  <haible@clisp.cons.org>
79003
79004         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79005         only if the test for an object-type mbstate_t fails.  This
79006         prevents us from mistakenly reporting that mbstate_t is a
79007         system object type after we "#define mbstate_t int" to work
79008         around its lack.
79009
79010 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79011         and Bruno Haible  <haible@clisp.cons.org>
79012
79013         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79014
79015 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79016
79017         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79018         to strerror_r.
79019         Include <ctype.h> for use of isalpha.
79020
79021 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79022
79023         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79024         by allocating a larger buffer. Test the gethostname return value for
79025         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79026         returns an error and ENAMETOOLONG isn't defined.
79027
79028 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79029
79030         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79031         dimension.
79032
79033 2000-07-04  Jim Meyering  <meyering@lucent.com>
79034
79035         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79036         of the deprecated AC_CHECKING.
79037
79038 2000-07-04  Jim Meyering  <meyering@lucent.com>
79039
79040         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79041         Reported by Bruno Haible.
79042
79043 2000-07-04  Jim Meyering  <meyering@lucent.com>
79044
79045         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79046         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79047         lacks mbrtowc.
79048
79049 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79050
79051         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79052         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79053
79054 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79055         and Bruno Haible  <haible@clisp.cons.org>
79056
79057         * lib/quotearg.c (mbrtowc):
79058         Assign to *pwc, and return 1 only if result is nonzero.
79059         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79060
79061 2000-07-03  Jim Meyering  <meyering@lucent.com>
79062
79063         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79064
79065 2000-07-03  Jim Meyering  <meyering@lucent.com>
79066
79067         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79068         This is necessary to get a definition of e.g., UTMP_FILE on
79069         HP-UX 10.20.
79070         From Bob Proulx.
79071
79072 2000-07-02  Jim Meyering  <meyering@lucent.com>
79073
79074         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79075
79076         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79077         AC_LIBOBJ(function_name).
79078         * m4/chown.m4: Likewise.
79079         * m4/fnmatch.m4: Likewise.
79080         * m4/ftruncate.m4: Likewise.
79081         * m4/getgroups.m4: Likewise.
79082         * m4/getline.m4: Likewise.
79083         * m4/group-member.m4: Likewise.
79084         * m4/jm-macros.m4: Likewise.
79085         * m4/lstat.m4: Likewise.
79086         * m4/malloc.m4: Likewise.
79087         * m4/memcmp.m4: Likewise.
79088         * m4/nanosleep.m4: Likewise.
79089         * m4/putenv.m4: Likewise.
79090         * m4/realloc.m4: Likewise.
79091         * m4/regex.m4: Likewise.
79092         * m4/stat.m4: Likewise.
79093         * m4/strftime.m4: Likewise.
79094
79095 2000-07-02  Jim Meyering  <meyering@lucent.com>
79096
79097         * lib/quotearg.c (mbstate_t): Don't define here.
79098
79099 2000-07-02  Jim Meyering  <meyering@lucent.com>
79100
79101         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79102
79103 2000-07-01  Jim Meyering  <meyering@lucent.com>
79104
79105         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79106
79107 2000-07-01  Jim Meyering  <meyering@lucent.com>
79108
79109         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79110         problem.
79111
79112 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79113
79114         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79115         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79116
79117 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79118
79119         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79120         per change in ../m4/ls-mntd-fs.m4.
79121         (read_filesystem_list): Ignore symbolic links.
79122
79123 2000-06-29  Jim Meyering  <meyering@lucent.com>
79124
79125         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79126         for declaration of strcmp.
79127
79128         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79129
79130         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79131         Avoid warning by casting result to `char *' to remove `const'.
79132
79133 2000-06-28  Jim Meyering  <meyering@lucent.com>
79134
79135         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79136         included by quotearg.c, for which we perform this test.  From
79137         Bruno Haible.
79138
79139 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79140
79141         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79142         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79143         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79144
79145 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79146
79147         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79148
79149 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79150
79151         savedir now sets errno on failure and invokes xmalloc to get memory.
79152         Fix a couple of other minor bugs while we're at it.
79153
79154         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79155         (NAMLEN): Remove macro.
79156         (malloc, realloc): Remove decls.
79157         (stpcpy): Likewise.
79158         ("xalloc.h"): Include.
79159         (NAME_SIZE_DEFAULT): New macro.
79160         (savedir): Use xmalloc / xrealloc to allocate memory.
79161         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79162         Skip "" directory entries.
79163         Use strlen to calculate directory entry length, since the old method
79164         is rarely used these days and isn't worth supporting.
79165         Don't use a pointer after freeing it.
79166         Check for integer overflow when calculating allocation size.
79167         Use memcpy to copy entries, instead of stpcpy.
79168         Set errno properly when returning NULL.
79169         Check for readdir error.
79170
79171 2000-06-26  Jim Meyering  <meyering@lucent.com>
79172
79173         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79174
79175 2000-06-25  Jim Meyering  <meyering@lucent.com>
79176
79177         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79178         Linux header bug when _XOPEN_SOURCE is defined to 500.
79179
79180 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79181
79182         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79183         deficiency.
79184
79185 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79186
79187         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79188         Include xalloc.h.
79189         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79190
79191 2000-06-24  Jim Meyering  <meyering@lucent.com>
79192
79193         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79194         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79195         for which strerror does return char*, but which lacks a conveniently
79196         accessible declaration of the function.  If the compile-test says
79197         strerror_r doesn't work, then resort to a `run'-test that works on
79198         BeOS and segfaults on DEC Unix.
79199
79200 2000-06-24  Jim Meyering  <meyering@lucent.com>
79201
79202         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79203
79204 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79205
79206         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79207         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79208
79209 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79210
79211         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79212         (mbrtowc, mbstate_t): Define substitutes if
79213         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79214         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79215         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79216
79217 2000-06-23  Jim Meyering  <meyering@lucent.com>
79218
79219         * m4/afs.m4: Add missing AC_MSG_RESULT.
79220         Reported by Bruno Haible.
79221
79222         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79223         Suggestion from Bruno Haible.
79224
79225 2000-06-23  Jim Meyering  <meyering@lucent.com>
79226
79227         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79228
79229 2000-06-21  Jim Meyering  <meyering@lucent.com>
79230
79231         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79232
79233 2000-06-21  Jim Meyering  <meyering@lucent.com>
79234
79235         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79236         (noinst_HEADERS): Add getstr.h.
79237
79238         * lib/getline.c (getstr): Move into a separate file.
79239         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79240         the following changes: new parameter, delim2; both delim[12]
79241         parameters have type `int', not `char'.  The latter would lose
79242         with 8-bit delimiters.
79243         * lib/getstr.h: New file.
79244
79245 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79246
79247         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79248         than 1024, return a memory chunk of least possible size, instead
79249         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79250         Use free/xmalloc instead of xrealloc to avoid copying for very long
79251         paths.
79252
79253 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79254
79255         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79256         the empty string.
79257
79258 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79259
79260         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79261         address, not strdup.  Include <stdlib.h> and don't declare free().
79262
79263 2000-06-19  Jim Meyering  <meyering@lucent.com>
79264
79265         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79266
79267 2000-06-18  Jim Meyering  <meyering@lucent.com>
79268
79269         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79270
79271         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79272         `checking whether...' message to be consistent with that of the
79273         lstat test.
79274
79275 2000-06-18  Jim Meyering  <meyering@lucent.com>
79276
79277         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79278         Besides, these days every porting target provides a mkdir function.
79279
79280         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79281         needed. (this snippet comes from src/system.h).
79282
79283 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79284
79285         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79286
79287 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79288
79289         * lib/human.c (adjust_value): New function.
79290         (human_readable_inexact): Apply rounding style even when
79291         printing approximate values.
79292
79293 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79294
79295         * lib/human.c (human_readable_inexact): Allow an input block
79296         size that is not a multiple of the output block size, and vice versa.
79297         Reported by Piergiorgio Sartor.
79298
79299 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79300
79301         * lib/getdate.y (get_date): Apply relative times after time
79302         zone indicator, not before.  Reported by Todd A. Jacobs.
79303
79304 2000-06-13  Jim Meyering  <meyering@lucent.com>
79305
79306         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79307
79308         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79309
79310 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79311
79312         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79313
79314 2000-06-12  Jim Meyering  <meyering@lucent.com>
79315
79316         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79317         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79318         optional argument.
79319         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79320         the optional argument, `lib'.
79321
79322 2000-06-08  Jim Meyering  <meyering@lucent.com>
79323
79324         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79325
79326 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79327
79328         Rewrite largefile configuration so that we don't need to run
79329         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79330         AC_CANONICAL_HOST in configure.in -- jmm]
79331
79332         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79333         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79334         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79335         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79336         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79337         All uses changed.
79338         Instead of inspecting the output of getconf, try to compile the
79339         test program without and with the macro definition.
79340         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79341         for getconf.  Instead, check for the needed flags by compiling
79342         test programs.
79343
79344 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79345
79346         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79347
79348 2000-06-04  Jim Meyering  <meyering@lucent.com>
79349
79350         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79351         SunOS 4.1.4 for which gid_t is an unsigned type.
79352
79353 2000-06-03  Jim Meyering  <meyering@lucent.com>
79354
79355         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79356         now that autoconf requires that.
79357
79358         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79359         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79360         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79361
79362 2000-06-03  Jim Meyering  <meyering@lucent.com>
79363
79364         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79365
79366 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79367
79368         * m4/glibc21.m4: New file.
79369         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79370
79371 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79372
79373         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79374         newer, don't install charset.alias.
79375         * lib/config.charset: Change the Linux/glibc rules so they become empty
79376         on glibc-2.1 or newer.
79377
79378 2000-06-02  Jim Meyering  <meyering@lucent.com>
79379
79380         * lib/mountlist.c: Back out last change.  Instead, do this...
79381         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79382         me_dummy member using the same `ignore'-testing code.
79383         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79384         fs_type strings.
79385         From Mark D. Roth.
79386
79387 2000-05-29  Jim Meyering  <meyering@lucent.com>
79388
79389         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79390         mounts with the `ignore' attribute.  Based on a patch from
79391         Mark D. Roth.
79392
79393 2000-05-28  Jim Meyering  <meyering@lucent.com>
79394
79395         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79396         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79397         * m4/stat.m4: Likewise.
79398         * m4/lstat.m4: Likewise.
79399         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79400
79401         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79402         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79403
79404 2000-05-26  Jim Meyering  <meyering@lucent.com>
79405
79406         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79407
79408 2000-05-24  Jim Meyering  <meyering@lucent.com>
79409
79410         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79411         autoconf requires that.
79412         * m4/lib-check.m4: Likewise.
79413         * m4/jm-macros.m4: Likewise.
79414         * m4/strftime.m4: Likewise.
79415
79416         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79417         AC_CHECK_DECLS, now that autoconf requires that.
79418
79419 2000-05-22  Jim Meyering  <meyering@lucent.com>
79420
79421         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79422         * m4/lstat.m4: Likewise.
79423
79424 2000-05-22  Jim Meyering  <meyering@lucent.com>
79425
79426         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79427
79428 2000-05-20  Jim Meyering  <meyering@lucent.com>
79429
79430         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79431         (jm_PREREQ): Use it.
79432
79433 2000-05-18  Jim Meyering  <meyering@lucent.com>
79434
79435         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79436         back, too, since it may have been modified by allocate_entry.
79437         (hash_delete): Rewrite to use neither the assignment operator
79438         nor the comma operator in an if-expression.
79439
79440 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79441
79442         * lib/closeout.c:
79443         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79444         Remove; no longer needed.
79445         "quotearg.h": Add include.
79446         (file_name): Do not bother to explicitly initialize to NULL; it's less
79447         efficient on some hosts.
79448         (close_stdout_status): Remove test as to whether stdout was already
79449         closed; it breaks for the case "echo x | sort >&-".
79450         Quote file name colons.
79451         Do not assume that _("write error") lacks format strings.
79452
79453 2000-05-15  Jim Meyering  <meyering@lucent.com>
79454
79455         * lib/version-etc.c (version_etc_copyright): Update the copyright
79456         string used in all --version output.
79457
79458 2000-05-14  Jim Meyering  <meyering@lucent.com>
79459
79460         * lib/closeout.c (close_stdout_set_file_name): New function.
79461         (close_stdout_status): Use new file-scoped global.
79462         Return right away if fstat says the stdout file descriptor is invalid.
79463         * lib/closeout.h (close_stdout_set_file_name): Declare.
79464
79465 2000-05-10  Jim Meyering  <meyering@lucent.com>
79466
79467         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79468         (close_stdout_set_status): New function.
79469         * lib/closeout.h (close_stdout_set_status): Declare.
79470
79471 2000-05-09  Jim Meyering  <meyering@lucent.com>
79472
79473         * m4/gettext.m4: Rename this...
79474         * m4/libintl.m4: ...to this.
79475
79476 2000-05-08  Jim Meyering  <meyering@lucent.com>
79477
79478         * lib/long-options.c: Don't include closeout.h.
79479         (parse_long_options): Don't call close_stdout for --version.
79480
79481 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79482
79483         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79484         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79485         2.1.3 bug.  This avoids a clash when files like regex.c define
79486         _GNU_SOURCE.
79487
79488 2000-05-06  Jim Meyering  <meyering@lucent.com>
79489
79490         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79491         (AC_REPLACE_FUNCS): Add strnlen.
79492
79493         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79494         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79495
79496         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79497         AC_SEARCH_LIBS call for nanosleep.
79498         (LIB_NANOSLEEP): Set and AC_SUBST.
79499
79500 2000-05-06  Jim Meyering  <meyering@lucent.com>
79501
79502         * lib/strnlen.c: Undefine __strnlen and strnlen.
79503         [!weak_alias]: Define __strnlen to strnlen.
79504
79505         * lib/atexit.c: New file, from libiberty.
79506
79507 2000-05-06  Jim Meyering  <meyering@lucent.com>
79508
79509         * lib/closeout.c (close_stdout_status): Also check for errors on the
79510         stderr stream.
79511
79512 2000-05-05  Jim Meyering  <meyering@lucent.com>
79513
79514         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79515         AC_SEARCH_LIBS call for clock_gettime.
79516         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79517
79518         * m4/search-libs.m4: Update from autoconf.
79519
79520         su doesn't work on Solaris 2.6.
79521         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
79522         <shadow.h>.  Reported by Dragos Harabor.
79523
79524 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
79525
79526         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
79527         memcpy instead of xmalloc, xrealloc, path_concat.
79528         (locale_charset): Treat empty environment variables as absent.
79529         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
79530
79531 2000-05-04  Jim Meyering  <meyering@lucent.com>
79532
79533         * lib/getopt.c: Update from glibc.
79534         * lib/obstack.c: Likewise.
79535         * lib/obstack.h: Likewise.
79536         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
79537         file
79538
79539         * lib/regex.h: Likewise.
79540         * lib/strndup.c: Likewise.
79541         * lib/strnlen.c: New file, from glibc.
79542
79543 2000-05-03  Jim Meyering  <meyering@lucent.com>
79544
79545         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
79546
79547 2000-05-02  Paul Eggert  <eggert@twinsun.com>
79548
79549         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
79550         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
79551         compile-time test, rather than inspecting host and OS, to
79552         decide whether to define _LARGEFILE_SOURCE.
79553
79554 2000-05-01  Jim Meyering  <meyering@lucent.com>
79555
79556         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
79557
79558         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
79559         Based on a patch from Bruno Haible.
79560
79561 2000-05-01  Jim Meyering  <meyering@lucent.com>
79562
79563         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
79564
79565 2000-04-29  Jim Meyering  <meyering@lucent.com>
79566
79567         * lib/path-concat.c: Declare strdup only if it's not defined.
79568         * lib/canon-host.c: Likewise.
79569
79570 2000-04-28  Jim Meyering  <meyering@lucent.com>
79571
79572         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
79573         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
79574         is included first, then limits.h is included by locale.h by libintl.h.
79575         From John David Anglin.
79576
79577 2000-04-25  Jim Meyering  <meyering@lucent.com>
79578
79579         * lib/makepath.c (S_IRWXUGO): Define.
79580         (make_path): Always perform explicit chmod if MODE specifies any
79581         of the `special' permission bits.  Prompted by a bug report against
79582         install from Mate Wierdl and Joost van Baal.
79583
79584 2000-04-18  Jim Meyering  <meyering@lucent.com>
79585
79586         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
79587         (jm_PREREQ): Use it.
79588
79589 2000-04-18  Jim Meyering  <meyering@lucent.com>
79590
79591         * lib/README: New file.
79592
79593         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
79594         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
79595
79596 2000-04-17  Jim Meyering  <meyering@lucent.com>
79597
79598         Get it right :-)
79599         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
79600         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
79601         Suggestion from Akim Demaille.
79602
79603 2000-04-17  Jim Meyering  <meyering@lucent.com>
79604
79605         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
79606         the definition of it to rpl_strftime also defined-away the system's
79607         declaration.
79608
79609 2000-04-15  Jim Meyering  <meyering@lucent.com>
79610
79611         Use `C' to denote so-called `contiguous' files, the same way
79612         that tar does.
79613         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
79614         (ftypelet): Use S_ISCTG.
79615         From Michael Deutschmann.
79616
79617 2000-04-14  Jim Meyering  <meyering@lucent.com>
79618
79619         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
79620         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
79621         clobbered.
79622
79623 2000-04-14  Jim Meyering  <meyering@lucent.com>
79624
79625         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
79626
79627 2000-04-13  Jim Meyering  <meyering@lucent.com>
79628
79629         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
79630         AH_VERBATIM to insert required #ifndef into config.h.in.
79631         Suggestion from Akim Demaille.
79632
79633 2000-04-12  Jim Meyering  <meyering@lucent.com>
79634
79635         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
79636         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
79637         Christian Krackowizer.
79638
79639         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
79640         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
79641         (AC_SYS_LARGEFILE): Require.
79642         (AM_C_PROTOTYPES): Require.
79643
79644 2000-04-08  Jim Meyering  <meyering@lucent.com>
79645
79646         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
79647         names don't conflict.  Reported by Eli Zaretskii.
79648
79649 2000-04-07  Jim Meyering  <meyering@lucent.com>
79650
79651         * lib/putenv.c: Move inclusion of errno.h so it follows that of
79652         sys/types.h, to work around system header problems on AIX 3.2.5.
79653         From Bruno Haible.
79654
79655 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
79656
79657         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
79658         bug.  Deal with the different error behavior of Irix iconv.
79659
79660 2000-04-05  Paul Eggert  <eggert@twinsun.com>
79661
79662         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
79663         IRIX if the installer said otherwise.
79664
79665 2000-04-05  Jim Meyering  <meyering@lucent.com>
79666
79667         Portability tweaks required for ultrix4.3.
79668         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
79669         (jm_CHECK_DECLS): Add getutent to the list of functions.
79670         (_jm_DECL_HEADERS): Add utmpx.h.
79671         From John David Anglin.
79672
79673         * m4/strftime.m4: Back out the 2000-04-02 change.
79674         Instead of that change, simply undefine putenv in the test program.
79675
79676 2000-04-05  Jim Meyering  <meyering@lucent.com>
79677
79678         Portability tweaks required for ultrix4.3.
79679         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
79680         getutent.
79681         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
79682         * lib/canon-host.c: Declare strdup.
79683         * lib/path-concat.c: Likewise.
79684         From John David Anglin.
79685
79686 2000-04-04  Jim Meyering  <meyering@lucent.com>
79687
79688         Be more DOS 8.3-friendly.
79689         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79690         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79691         * lib/Makefile.am: Reflect renaming.
79692         Reported by Eli Zaretskii.
79693
79694         Use a temporary file name that won't clash with `charset.alias'
79695         in the DOS 8.3 name space.
79696         * lib/Makefile.am (charset_tmp): Define.
79697         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79698         (uninstall-local): Likewise.
79699         Reported by Eli Zaretskii.
79700
79701 2000-04-03  Jim Meyering  <meyering@lucent.com>
79702
79703         * m4/gettext.m4: Fix typo in comment.
79704
79705         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79706         textutils/configure.in).  Suggestion from Paul Eggert.
79707         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79708
79709 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79710
79711         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79712         variable in the shell rather than using putenv, which isn't
79713         portable.  This avoids the configure-time inter-test dependency
79714         on the potentially-renamed putenv function.
79715
79716 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79717
79718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79719         before checking struct stat.st_blksize, so that
79720         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79721
79722 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79723
79724         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79725         since strftime.c uses HAVE_STRFTIME to decide whether to use
79726         the underlying strftime.
79727
79728 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79729
79730         * lib/time/strftime.c (my_strftime): Make sure we call the system
79731         strftime, not ourselves, when invoking the underlying strftime.
79732
79733 2000-03-24  Jim Meyering  <meyering@lucent.com>
79734
79735         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79736         (charset_alias): Define.
79737         (install-exec-local): Factor out common code.
79738         (uninstall-local): Split lines longer than 80.
79739         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79740         (SUFFIXES): Define.
79741         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79742         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79743
79744 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79745
79746         * lib/config.charset: Output a line containing "Packages using this
79747         file".
79748         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79749         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79750         ref-del.sed): New rules.
79751
79752 2000-03-17  Jim Meyering  <meyering@lucent.com>
79753
79754         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79755         Otherwise, include <strings.h>
79756
79757 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79758
79759         * lib/unicodeio.c (utf8_wctomb): New function.
79760         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79761         format instead of in UCS-4 with platform dependent endianness.
79762
79763 2000-03-10  Jim Meyering  <meyering@lucent.com>
79764
79765         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79766         From Marco Franzen.
79767
79768 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79769
79770         * lib/savedir.c (savedir): Work even if directory size is
79771         negative; this can happen with some screwy NFS configurations.
79772
79773 2000-03-06  Jim Meyering  <meyering@lucent.com>
79774
79775         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79776         if it's NULL (because we ran out of memory).  From Bruno Haible.
79777
79778 2000-03-05  Jim Meyering  <meyering@lucent.com>
79779
79780         * lib/localcharset.c ("path-concat.h"): Include.
79781         (get_charset_aliases): Use path_concat instead of ANSI string
79782         concatenation.
79783
79784         * lib/unicodeio.h (PARAMS): Define.
79785         Use it to guard prototype.
79786
79787 2000-03-04  Jim Meyering  <meyering@lucent.com>
79788
79789         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79790         for lib/localcharset.c.
79791
79792 2000-03-04  Jim Meyering  <meyering@lucent.com>
79793
79794         * lib/Makefile.am (install-exec-local): Create $(libdir) before
79795         installing into it.
79796         (uninstall-local): Uncomment this rule so `make distcheck' works
79797         once again.
79798
79799         * lib/unicodeio.c (<errno.h>): Include it.
79800         (errno): Declare if not defined.
79801
79802         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
79803
79804         * lib/config.charset: New version, incorporating remarks from a linux
79805         i18n mailing list.  From Bruno Haible.
79806
79807 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
79808
79809         * m4/codeset.m4: New file.
79810         * m4/iconv.m4: New file.
79811         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
79812
79813 2000-03-03  Jim Meyering  <meyering@lucent.com>
79814
79815         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
79816
79817 2000-03-02  Jim Meyering  <meyering@lucent.com>
79818
79819         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
79820         the messages come out on separate lines.
79821
79822         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
79823         rather than jm_CHECK_DECLARATIONS.
79824         * m4/decl.m4: Remove now-unused file.
79825
79826         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
79827         geteuid.
79828
79829 2000-03-02  Jim Meyering  <meyering@lucent.com>
79830
79831         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
79832
79833 2000-03-01  Jim Meyering  <meyering@lucent.com>
79834
79835         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
79836         * lib/unicodeio.c: Likewise.
79837
79838 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
79839
79840         * lib/config.charset: New file.
79841         * lib/localcharset.c: New file.
79842         * lib/unicodeio.h, lib/unicodeio.c: New files.
79843         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
79844         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
79845         (noinst_HEADERS): Add unicodeio.h.
79846         (all-local, install-exec-local, charset.alias): New targets.
79847
79848 2000-02-28  Paul Eggert  <eggert@twinsun.com>
79849
79850         * lib/quotearg.c (ALERT_CHAR): New macro.
79851         (quotearg_buffer_restyled): Use it.
79852
79853 2000-02-27  Jim Meyering  <meyering@lucent.com>
79854
79855         * m4/check-decl.m4: Add getenv to the list.
79856
79857 2000-02-27  Jim Meyering  <meyering@lucent.com>
79858
79859         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
79860         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
79861
79862         * lib/backupfile.c: Guard inclusion of stdlib.h with
79863         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
79864         Declare malloc if needed.
79865
79866         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
79867         `#ifndef HAVE_DECL..'
79868         now that autoconf always defines the HAVE_DECL_ symbols.
79869         * lib/human.c: Likewise.
79870         * lib/same.c: Likewise.
79871         * lib/strtoumax.c: Likewise.
79872
79873         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
79874         declaration check was not run.
79875         * lib/hash.c: Likewise.
79876         * lib/human.c: Likewise.
79877         * lib/same.c: Likewise.
79878         * lib/strtoumax.c: Likewise.
79879
79880         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
79881         `.', then first look up the entire `.'-containing string as a login
79882         name.
79883
79884 2000-02-23  Jim Meyering  <meyering@lucent.com>
79885
79886         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
79887         in place of my hack.
79888
79889 2000-02-18  Paul Eggert  <eggert@twinsun.com>
79890
79891         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
79892         (textint): New typedef.
79893         (parser_control): Member year changed from int to textint.
79894         All uses changed.
79895         (YYSTYPE): Removed; replaced by %union with int and textint members.
79896         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
79897         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
79898         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
79899         (tSNUMBER, tUNUMBER): Now of type <textintval>.
79900         (date, number, to_year): Use width of number in digits, not its value,
79901         to determine whether it's a 2-digit year, or a 2-digit time.
79902         (yylex): Store number of digits of numeric tokens.
79903         Reported by John Kendall.
79904
79905         (parser_control): Changed from struct parser_control to typedef (for
79906         consistency).  All uses changed.
79907
79908         (tID): Removed; not used.
79909         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
79910
79911 2000-02-14  Paul Eggert  <eggert@twinsun.com>
79912
79913         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
79914         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
79915
79916 2000-02-12  Jim Meyering  <meyering@lucent.com>
79917
79918         * lib/userspec.c (ISDIGIT): Define it.
79919         (isdigit): Remove definition.
79920         (is_number): Use ISDIGIT, not isdigit.
79921         <libintl.h>: Include.
79922         (_ and N_): Define.
79923         (parse_user_spec): Mark translatable strings.
79924
79925 2000-02-10  Jim Meyering  <meyering@lucent.com>
79926
79927         With these changes, nanosleep.[ch] are finally enough like the other
79928         lib/* replacement files to compile on a few more losing systems.
79929
79930         * lib/nanosleep.h: Don't include config.h.
79931         Remove prototype from declaration of nanosleep.
79932         (PARAMS): Remove now-unneeded definition.
79933         * lib/nanosleep.c: #undef nanosleep.
79934         (rpl_nanosleep): Rename from nanosleep.
79935
79936 2000-02-10  Jim Meyering  <meyering@lucent.com>
79937
79938         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
79939         gnu_nanosleep to rpl_nanosleep.
79940
79941 2000-02-09  Jim Meyering  <meyering@lucent.com>
79942
79943         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
79944         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
79945
79946 2000-02-08  Akim Demaille  <akim@epita.fr>
79947
79948         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
79949         `[' and `]' and remove uses of `changequote'.
79950         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
79951         (AC_SYS_LARGEFILE): Likewise.
79952         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79953         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
79954         of changequote.
79955         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
79956         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
79957         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
79958         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
79959
79960 2000-02-05  Jim Meyering  <meyering@lucent.com>
79961
79962         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
79963         Remove explicit use of AC_HEADER_TIME.  It is required by
79964         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
79965         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
79966         in autoconf whereby the expansion of the latter ended up preceding
79967         the expansion of its prerequisite, AC_HEADER_TIME.
79968         Reported by Volker Borchert.
79969
79970 2000-02-03  Jim Meyering  <meyering@lucent.com>
79971
79972         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
79973
79974 2000-02-03  Jim Meyering  <meyering@lucent.com>
79975
79976         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
79977         rather than with `#if HAVE_UTMPNAME'.
79978
79979 2000-02-02  Jim Meyering  <meyering@lucent.com>
79980
79981         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
79982         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
79983         Reported by Eli Zaretskii.
79984
79985 2000-02-01  Jim Meyering  <meyering@lucent.com>
79986
79987         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
79988
79989 2000-01-31  Jim Meyering  <meyering@lucent.com>
79990
79991         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
79992         functions.  Add the time.h and sys/time.h headers along with the
79993         AC_REQUIRE'ment of AC_HEADER_TIME.
79994
79995 2000-01-31  Jim Meyering  <meyering@lucent.com>
79996
79997         * lib/nanosleep.h (nanosleep): Guard declaration with
79998         `#if ! HAVE_DECL_NANOSLEEP'.
79999         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80000         the declaration in that vendor's sys/timers.h.
80001         Reported by Christian Krackowizer.
80002
80003         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80004         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80005         (ISPRINT): Likewise.
80006         Reported by Tom Tromey.
80007
80008 2000-01-30  Jim Meyering  <meyering@lucent.com>
80009
80010         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80011
80012         * m4/prereq.m4 (utmp_includes): Define.
80013         Check for ut_user and ut_name members in both struct utmpx
80014         and struct utmp.
80015
80016 2000-01-30  Jim Meyering  <meyering@lucent.com>
80017
80018         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80019         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80020         header files where only utmpx.ut_user is declared.
80021
80022         * lib/readutmp.h (UT_USER): Define.
80023
80024 2000-01-29  Jim Meyering  <meyering@lucent.com>
80025
80026         * m4/lib-check.m4: New file containing library-related checks from
80027         fileutils and sh-utils (textutils had none).
80028
80029 2000-01-28  Jim Meyering  <meyering@lucent.com>
80030
80031         * m4/perl.m4: Change format of warning message to look more like that
80032         from the missing script.  Suggestion from François Pinard.
80033
80034 2000-01-25  Jim Meyering  <meyering@lucent.com>
80035
80036         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80037         well as time.h in the compile check.
80038         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80039         Fix typo in cross-compiling case: s/yes/no/.
80040
80041 2000-01-23  Jim Meyering  <meyering@lucent.com>
80042
80043         * m4/jm-macros.m4: Move df-related tests here from
80044         fileutils/configure.in
80045
80046         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80047         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80048
80049         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80050         s/space/ac_fsusage_space/.
80051         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80052
80053         * m4/ftruncate.m4: New file (derived from part of
80054         fileutils/configure.in).
80055         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80056         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80057
80058         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80059         AC_SUBST these here, rather than just in sh-util/configure.in, so
80060         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80061         all the same.
80062         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80063         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80064         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80065         (AC_SUBST(POW_LIBM)): Likewise.
80066         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80067
80068 2000-01-23  Jim Meyering  <meyering@lucent.com>
80069
80070         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80071         obstack.c.
80072
80073 2000-01-22  Jim Meyering  <meyering@lucent.com>
80074
80075         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80076
80077         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80078
80079         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80080         configure.in
80081         (AC_CHECK_HEADERS): Likewise for sh-utils.
80082         (AC_CHECK_HEADERS): Likewise for textutils.
80083         Merge the three lists of headers.
80084
80085         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80086         from fileutils' configure.in.
80087
80088         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80089         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80090         check-decl.m4.
80091
80092         * m4/check-decl.m4: Use #if rather than #ifdef.
80093         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80094         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80095         (_jm_DECL_HEADERS): Define new function.
80096         (jm_CHECK_DECLARATIONS): Require it.
80097
80098 2000-01-22  Jim Meyering  <meyering@lucent.com>
80099
80100         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80101         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80102         Required for some AIX systems.  Reported by Christian Krackowizer.
80103         [TESTING] (main): New function.
80104
80105         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80106         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80107         letters.
80108
80109         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80110         iswprint.
80111
80112         * lib/strverscmp.c (ISDIGIT): Define.
80113         (strverscmp): Use ISDIGIT, not isdigit.
80114
80115 2000-01-19  Jim Meyering  <meyering@lucent.com>
80116
80117         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80118         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80119         defines `struct timespec' in <sys/time.h>
80120
80121         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80122         Thanks to Akim for explaining.
80123
80124 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80125
80126         * lib/nanosleep.c (nanosleep):
80127         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80128         POSIX.1 doesn't require SA_INTERRUPT and some systems
80129         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80130         it's been part of POSIX.1 since day 1 (in 1988).
80131
80132 2000-01-17  Jim Meyering  <meyering@lucent.com>
80133
80134         * lib/interlock: Remove unused file.  Reported by François Pinard.
80135
80136 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80137
80138         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80139         alert, backslash, formfeed, and vertical tab unnecessarily in
80140         shell quoting style.
80141
80142 2000-01-16  Jim Meyering  <meyering@lucent.com>
80143
80144         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80145         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80146         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80147         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80148
80149 2000-01-16  Jim Meyering  <meyering@lucent.com>
80150
80151         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80152         because the latter didn't work.
80153
80154 2000-01-15  Jim Meyering  <meyering@lucent.com>
80155
80156         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80157         (AC_REPLACE_FUNCS): Add memcpy and memset.
80158         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80159         Add strpbrk.
80160         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80161
80162 2000-01-12  Jim Meyering  <meyering@lucent.com>
80163
80164         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80165         (jm_PREREQ): Use it.
80166         (jm_PREREQ_READUTMP): New macro.
80167         (jm_PREREQ): Use it.
80168
80169 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80170
80171         Quote multibyte characters correctly.
80172         * m4/c-bs-a.m4: New file.
80173         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80174         (jm_PREREQ): Use it.
80175
80176 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80177
80178         * m4/uintmax_t.m4: Port to autoconf 2.13.
80179
80180 2000-01-08  Jim Meyering  <meyering@ascend.com>
80181
80182         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80183         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80184
80185 2000-01-04  Jim Meyering  <meyering@ascend.com>
80186
80187         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80188         jm_STRUCT_DIRENT_D_TYPE.
80189         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80190         jm_STRUCT_DIRENT_D_INO.
80191         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80192         jm_STRUCT_UTIMBUF.
80193         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80194         renamings.
80195         * m4/utime.m4: Likewise.
80196
80197         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80198         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80199
80200 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80201
80202         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80203         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80204
80205 2000-01-02  Jim Meyering  <meyering@ascend.com>
80206
80207         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80208         remember if this is necessary.
80209
80210 1999-12-26  Jim Meyering  <meyering@ascend.com>
80211
80212         * m4/jm-macros.m4: Use it here.
80213         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80214
80215 1999-12-23  Jim Meyering  <meyering@ascend.com>
80216
80217         * m4/jm-macros.m4: Check for clock_gettime (moved from
80218         fileutils/configure.in)
80219         Check for gettimeofday.
80220
80221 1999-12-20  Jim Meyering  <meyering@ascend.com>
80222
80223         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80224         autoconf-2.14a-1999-12-20.
80225
80226 1999-12-19  Jim Meyering  <meyering@ascend.com>
80227
80228         * m4/lstat-slash.m4: New file.
80229         * m4/jm-macros.m4: Use the new macro:
80230         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80231
80232 1999-12-07  Jim Meyering  <meyering@ascend.com>
80233
80234         * m4/perl.m4: Require that File::Compare be available, too.
80235         Too many systems seem to lack it.
80236
80237         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80238         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80239
80240 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80241
80242         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80243         problem with the QNX 4.25 shell, which doesn't propagate exit
80244         status of failed commands inside shell assignments.
80245
80246 1999-11-17  Jim Meyering  <meyering@ascend.com>
80247
80248         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80249
80250 1999-11-07  Jim Meyering  <meyering@ascend.com>
80251
80252         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80253
80254 1999-11-06  Jim Meyering  <meyering@ascend.com>
80255
80256         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80257         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80258
80259 1999-11-05  Jim Meyering  <meyering@ascend.com>
80260
80261         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80262         configure.in of textutils, fileutils, and sh-utils into this one
80263         (shared between those packages) file.
80264         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80265         AC_STRUCT_ST_BLKSIZE.
80266
80267 1999-11-03  Jim Meyering  <meyering@ascend.com>
80268
80269         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80270         of AC_CHECK_TYPE checks includes unistd.h.
80271         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80272         Suggestion from Akim Demaille.
80273
80274 1999-10-30  Jim Meyering  <meyering@ascend.com>
80275
80276         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80277         m4-quoted string.
80278         * m4/ls-mntd-fs.m4: Likewise.
80279         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80280         * m4/jm-winsz1.m4: Likewise.
80281
80282         * m4/const.m4: Remove file, since the fix made it into the experimental
80283         version of autoconf.
80284         * m4/mktime.m4: Likewise.
80285
80286         * m4/check-type.m4: Remove file, now that the latest version of
80287         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80288
80289         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80290         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80291         AC_CHECK_TYPE.
80292
80293 1999-10-04  Jim Meyering  <meyering@ascend.com>
80294
80295         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80296
80297 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80298
80299         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80300         2.95.1 bug with HP-UX 10.20.
80301
80302 1999-09-17  Jim Meyering  <meyering@ascend.com>
80303
80304         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80305         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80306         due to missing strdup (against sh-utils-2.0).
80307
80308 1999-08-29  Jim Meyering  <meyering@ascend.com>
80309
80310         * m4/jm-macros.m4: Require jm_BISON.
80311         * m4/bison.m4: New file.
80312
80313 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80314
80315         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80316         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80317
80318 1999-08-05  Jim Meyering  <meyering@ascend.com>
80319
80320         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80321         to avoid conflicts with `conftest' on 8+3 filesystems.
80322         Suggestion from Eli Zaretskii.
80323
80324 1999-08-04  Jim Meyering  <meyering@ascend.com>
80325
80326         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80327         fileutils and sh-utils (textutils's getline test was inadequate).
80328         (AM_FUNC_GETLINE): Run this test.
80329         (AC_CHECK_FUNCS): Check for getdelim.
80330         Reported by Bob Proulx.
80331
80332 1999-08-02  Jim Meyering  <meyering@ascend.com>
80333
80334         * m4/jm-macros.m4: Add a comment.
80335
80336 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80337
80338         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80339         <inttypes.h> defines strtoumax as a macro (and not as a
80340         function).
80341
80342 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80343
80344         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80345         that we can shift, multiply and divide unsigned long long
80346         values; Ultrix cc can't do it.
80347
80348 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80349
80350         * m4/mktime.m4: New file, which is a preview of what should appear
80351         in the next public autoconf release.
80352
80353 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80354
80355         * m4/lfs.m4: Remove this file.
80356         * m4/largefile.m4: New file.  It contains the old contents of
80357         lfs.m4, except that all names with prefix AC_LFS have been
80358         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80359         compatible with future autoconf versions.  Also, some minor m4
80360         quoting problems have been fixed.
80361
80362 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80363
80364         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80365         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80366         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80367         and simplify the shell code.
80368
80369 1999-08-01  Jim Meyering  <meyering@ascend.com>
80370
80371         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80372         m4.
80373
80374 1999-07-20  Jim Meyering  <meyering@ascend.com>
80375
80376         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80377
80378 1999-07-15  Jim Meyering  <meyering@ascend.com>
80379
80380         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80381
80382 1999-05-22  Jim Meyering  <meyering@ascend.com>
80383
80384         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80385
80386 1999-05-20  Jim Meyering  <meyering@ascend.com>
80387
80388         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80389         Add a colon after each `then' in case $4 is empty.
80390
80391 1999-05-16  Jim Meyering  <meyering@ascend.com>
80392
80393         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80394
80395 1999-05-10  Jim Meyering  <meyering@ascend.com>
80396
80397         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80398
80399         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80400         AC_FUNC_MKTIME.
80401
80402 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80403
80404         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80405
80406 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80407
80408         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80409         not CPPFLAGS, so that linking works correctly in IRIX.
80410
80411 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80412
80413         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80414
80415 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80416
80417         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80418         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80419         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80420         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80421         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80422
80423         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80424
80425 1999-04-20  Jim Meyering  <meyering@ascend.com>
80426
80427         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80428         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80429         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80430
80431 1999-04-18  Jim Meyering  <meyering@ascend.com>
80432
80433         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80434         * m4/jm-macros.m4: Use it.
80435
80436 1999-04-06  Jim Meyering  <meyering@ascend.com>
80437
80438         * m4/strftime.m4: Remove test for %f.
80439
80440 1999-03-29  Jim Meyering  <meyering@ascend.com>
80441
80442         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80443         superset of the AC_TYPE_* checks in the textutils, fileutils,
80444         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80445         AC_TYPE_PID_T.
80446
80447 1999-03-28  Jim Meyering  <meyering@ascend.com>
80448
80449         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80450         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80451         replaced e.g., in the *.sh files of the sh-utils.
80452
80453 1999-03-20  Jim Meyering  <meyering@ascend.com>
80454
80455         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80456         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80457         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80458
80459 1999-03-19  Jim Meyering  <meyering@ascend.com>
80460
80461         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80462
80463 1999-03-12  Jim Meyering  <meyering@ascend.com>
80464
80465         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80466
80467 1999-03-07  Jim Meyering  <meyering@ascend.com>
80468
80469         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80470         declared.
80471
80472 1999-02-17  Jim Meyering  <meyering@ascend.com>
80473
80474         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80475         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80476
80477 1999-02-07  Jim Meyering  <meyering@ascend.com>
80478
80479         * m4/group-member.m4: New file -- extracted from sh-utils'
80480         configure.in.
80481
80482         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80483         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80484
80485 1999-02-06  Jim Meyering  <meyering@ascend.com>
80486
80487         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80488         * m4/fnmatch.m4: Likewise.
80489         * m4/getgroups.m4: Likewise.
80490         * m4/lstat.m4: Likewise.
80491         * m4/malloc.m4: Likewise.
80492         * m4/putenv.m4: Likewise.
80493         * m4/realloc.m4: Likewise.
80494         * m4/regex.m4: Likewise.
80495         * m4/stat.m4: Likewise.
80496         * m4/strftime.m4: Likewise.
80497         Suggestion from Alain Magloire.
80498
80499         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80500         * m4/fnmatch.m4: Likewise.
80501         * m4/getgroups.m4: Likewise.
80502         * m4/getline.m4: Likewise.
80503         * m4/lstat.m4: Likewise.
80504         * m4/malloc.m4: Likewise.
80505         * m4/memcmp.m4: Likewise.
80506         * m4/putenv.m4: Likewise.
80507         * m4/realloc.m4: Likewise.
80508         * m4/regex.m4: Likewise.
80509         * m4/stat.m4: Likewise.
80510         * m4/strftime.m4: Likewise.
80511         Suggestion from Alain Magloire.
80512
80513         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80514         an argument.
80515
80516         * m4/regex.m4: Add a run-time Test for proper operation of
80517         re_compile_pattern.
80518
80519 1999-01-31  Jim Meyering  <meyering@ascend.com>
80520
80521         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
80522
80523 1999-01-30  Jim Meyering  <meyering@ascend.com>
80524
80525         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
80526
80527         * m4/jm-mktime.m4: Make this a wrapper around the official
80528         AM_FUNC_MKTIME rather than my private copy, now that the official one
80529         is up to date.
80530         * m4/mktime.m4: Remove file.
80531
80532         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
80533         * m4/uptime.m4: Likewise.
80534         * m4/uintmax_t.m4: Likewise.
80535
80536 1999-01-28  Jim Meyering  <meyering@ascend.com>
80537
80538         * m4/jm-macros.m4: Use jm_AFS.
80539         * m4/afs.m4: New file (from fileutils' configure.in).
80540
80541         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
80542         * m4/chown.m4: Likewise.
80543         * m4/d-ino.m4: Likewise.
80544         * m4/d-type.m4: Likewise.
80545         * m4/fnmatch.m4: Likewise.
80546         * m4/getgroups.m4: Likewise.
80547         * m4/gettext.m4: Likewise.
80548         * m4/jm-mktime.m4: Likewise.
80549         * m4/jm-winsz2.m4: Likewise.
80550         * m4/lcmessage.m4: Likewise.
80551         * m4/ls-mntd-fs.m4: Likewise.
80552         * m4/malloc.m4: Likewise.
80553         * m4/memcmp.m4: Likewise.
80554         * m4/putenv.m4: Likewise.
80555         * m4/realloc.m4: Likewise.
80556         * m4/st_mtim.m4: Likewise.
80557         * m4/strftime.m4: Likewise.
80558
80559 1999-01-16  Jim Meyering  <meyering@ascend.com>
80560
80561         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
80562         (ARGMATCH_DIE_DECL): Define.
80563
80564 1999-01-12  Jim Meyering  <meyering@ascend.com>
80565
80566         * m4/Makefile.am.in: Rewrite to avoid using fmt.
80567         Reported by Lars Hecking.
80568
80569 1999-01-10  Jim Meyering  <meyering@ascend.com>
80570
80571         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
80572         gross kludge.
80573         * m4/inttypes_h.m4: Likewise.
80574         * m4/lstat.m4: Likewise.
80575         * m4/malloc.m4: Likewise.
80576         * m4/readdir.m4: Likewise.
80577         * m4/realloc.m4: Likewise.
80578         * m4/st_dm_mode.m4: Likewise.
80579         * m4/stat.m4: Likewise.
80580         * m4/utimbuf.m4: Likewise.
80581         * m4/utimes.m4: Likewise.
80582
80583         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
80584         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
80585         comments in config.h.in are meaningful.
80586
80587         * m4/jm-macros.m4: Require autoconf-2.13 here.
80588
80589         * m4/regex.m4: By default, don't use the included regex.c on systems
80590         with glibc 2.  Suggestion from Uli Drepper.
80591
80592 1999-01-02  Jim Meyering  <meyering@ascend.com>
80593
80594         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
80595
80596 1998-12-18  Jim Meyering  <meyering@ascend.com>
80597
80598         * m4/Makefile.am.in (Makefile.am): Simplify rule.
80599         Based on a suggestion from Lars Hecking.
80600
80601 1998-11-16  Paul Eggert  <eggert@twinsun.com>
80602
80603         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
80604
80605 1998-11-16  Jim Meyering  <meyering@ascend.com>
80606
80607         * m4/lfs.m4: Double-quote the `uname...` expression.
80608
80609 1998-11-14  Jim Meyering  <meyering@ascend.com>
80610
80611         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
80612         * m4/stat.m4: Likewise.
80613
80614 1998-11-03  Jim Meyering  <meyering@ascend.com>
80615
80616         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
80617         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
80618
80619 1998-10-18  Jim Meyering  <meyering@ascend.com>
80620
80621         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
80622
80623 1998-10-17  Jim Meyering  <meyering@ascend.com>
80624
80625         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
80626         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
80627         calls for those previously hard-coded headers.  Instead, take a new
80628         parameter.
80629         (jm_CHECK_DECLARATIONS): Reflect interface change.
80630         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
80631         (jm_CHECK_DECL_LOCALTIME_R): New macro.
80632
80633         * m4/mktime.m4: Test for spring-forward gap before long-running test.
80634
80635 1998-10-14  Jim Meyering  <meyering@ascend.com>
80636
80637         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
80638         instead of "TZ=America/Vancouver".  From Paul Eggert.
80639
80640 1998-10-11  Jim Meyering  <meyering@ascend.com>
80641
80642         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
80643         This adds a test for a recently added compatibility fix for mktime.c.
80644         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
80645
80646 1998-09-27  Jim Meyering  <meyering@ascend.com>
80647
80648         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
80649
80650         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
80651         ../configure.in, including a change from Gordon Matzigkeit to allow
80652         cross-compiling for the Hurd.
80653
80654         * m4/glibc.m4: New file/macro to test for the GNU C Library
80655         versions 1 and 2.  From Gordon Matzigkeit.
80656         Indent.
80657
80658 1998-09-21  Jim Meyering  <meyering@ascend.com>
80659
80660         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
80661
80662 1998-08-18  Paul Eggert  <eggert@twinsun.com>
80663
80664         Port nanosecond-resolution times to UnixWare 2.1.2 and
80665         pedantic Solaris 2.6.
80666
80667         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
80668         AC_STRUCT_ST_MTIM.
80669         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
80670         Generate name of ns member, instead of just 1 or undef.
80671         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
80672
80673 1998-08-15  Jim Meyering  <meyering@ascend.com>
80674
80675         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
80676         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
80677         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
80678         instead of jm_TYPE_SSIZE_T.
80679
80680 1998-08-12  Jim Meyering  <meyering@ascend.com>
80681
80682         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
80683
80684 1998-08-02  Jim Meyering  <meyering@ascend.com>
80685
80686         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
80687         in acconfig.h manually.
80688
80689 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80690
80691         * m4/st_mtim.m4: New file.
80692
80693 1998-07-28  Jim Meyering  <meyering@ascend.com>
80694
80695         * m4/utimes.m4: Undef stat.
80696
80697 1998-07-25  Jim Meyering  <meyering@ascend.com>
80698
80699         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80700         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80701
80702 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80703
80704         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80705         uid and gid actually remain unchanged.
80706
80707 1998-07-07  Jim Meyering  <meyering@ascend.com>
80708
80709         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80710
80711 1998-07-04  Jim Meyering  <meyering@ascend.com>
80712
80713         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80714         to prove that this macro can be used in packages without regex.c.
80715
80716 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80717
80718         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80719         is to be used.
80720
80721 1998-07-03  Jim Meyering  <meyering@ascend.com>
80722
80723         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80724
80725         * m4/gettext.m4: New file -- from gettext-0.10.35.
80726         * m4/lcmessage.m4: Likewise.
80727         * m4/progtest.m4: Likewise.
80728
80729         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80730         * m4/jm-macros.m4: Require the new macro.
80731
80732 1998-06-29  Jim Meyering  <meyering@ascend.com>
80733
80734         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80735         for the definition of NGROUPS (used in a system header included
80736         by sys/mount.h).
80737
80738 1998-06-28  Jim Meyering  <meyering@ascend.com>
80739
80740         * m4/ls-mntd-fs.m4: New file.
80741         * m4/fstypename.m4: New file.
80742
80743         * m4/jm-macros.m4: Require the new macro.
80744         * m4/jm-glibc-io.m4: New file.
80745
80746 1998-05-19  Jim Meyering  <meyering@ascend.com>
80747
80748         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80749         * m4/lchown.m4: New file.
80750
80751         * m4/Makefile.am.in: New file.
80752         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80753
80754 1998-05-14  Jim Meyering  <meyering@ascend.com>
80755
80756         * m4/Makefile.am (EXTRA_DIST): Add them.
80757         * m4/jm-macros.m4: New file.
80758         * m4/utimbuf.m4: New file.
80759
80760 1998-05-12  Jim Meyering  <meyering@ascend.com>
80761
80762         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80763
80764 1998-05-11  Jim Meyering  <meyering@ascend.com>
80765
80766         * m4/isc-posix.m4: New file.
80767
80768 1998-05-10  Jim Meyering  <meyering@ascend.com>
80769
80770         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80771
80772 1998-05-09  Jim Meyering  <meyering@ascend.com>
80773
80774         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80775         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80776         with automake.
80777
80778         * m4/ssize_t.m4: New file.
80779         * m4/mktime.m4: Remove file -- the new automake has this now.
80780
80781 1998-04-26  Jim Meyering  <meyering@ascend.com>
80782
80783         * m4/assert.m4: New file.
80784         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80785
80786 1998-04-05  Jim Meyering  <meyering@ascend.com>
80787
80788         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80789         (jm_PREREQ): Use it here.
80790
80791 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80792
80793         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
80794         in acconfig.h.
80795
80796 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
80797
80798         * m4/prereq.m4: New file.
80799         * m4/error.m4: New file.
80800         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
80801
80802 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
80803
80804         * m4/getline.m4: Don't set am_cv_func_working_getline before the
80805         cache-check for the same variable -- that defeated the purpose of
80806         the test; the test program was never run.  This was a problem only
80807         on systems with losing getline functions -- HP-UX 10.20 is one.
80808         Reported by Bjorn Helgaas.
80809
80810 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
80811
80812         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
80813
80814 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
80815
80816         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
80817
80818         * m4/const.m4: New file.  Use an initializer in this declaration
80819         typedef int charset[2]; const charset x;
80820         Reported by Bob Glickstein.
80821
80822 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
80823
80824         * m4/chown.m4: Fix reversed types on -1 args to chown.
80825         From Kaveh Ghazi.
80826
80827 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
80828
80829         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
80830         Add lseek and memchr.
80831
80832         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
80833         T.E.Dickey <dickey@clark.net> said that some older preprocessors
80834         have a 20-character limit on names.
80835
80836 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
80837
80838         * m4/inttypes_h.m4: New file.
80839         * m4/uintmax_t.m4: New file.
80840         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
80841
80842
80843         -----
80844
80845         Local Variables:
80846         coding: utf-8
80847         End:
80848
80849         Copyright (C) 1997-2011 Free Software Foundation, Inc.
80850
80851         Copying and distribution of this file, with or without
80852         modification, are permitted provided the copyright notice
80853         and this notice are preserved.