alphasort: Move AC_LIBOBJ invocations to module description.
[gnulib.git] / ChangeLog
1 2011-05-05  Bruno Haible  <bruno@clisp.org>
2
3         alphasort: Move AC_LIBOBJ invocations to module description.
4         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5         gl_PREREQ_ALPHASORT invocations from here...
6         * modules/alphasort (configure.ac): ... to here.
7
8 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9
10         verify: new macro verify_expr; verify_true deprecated
11         * NEWS: Mention this.
12         * doc/verify.texi (Compile-time Assertions): Document this.
13         * lib/verify.h (verify_true): Deprecate.
14         (verify_expr): New macro.
15         * tests/test-verify.c (function): Test verify_expr.
16
17 2011-06-14  Jim Meyering  <meyering@redhat.com>
18
19         init.sh: give more portable redirection-related advice in a comment
20         * tests/init.sh (stderr_fileno_): Update the advice in comments.
21         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
22         for lots of discussion.  Stefano Lattarini suggested the solution
23         of putting "9>&2" after the command.  Reported by Bruno Haible.
24
25 2011-06-13  Bruno Haible  <bruno@clisp.org>
26
27         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
28         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
29         'none'.
30
31 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
32
33         ftoastr: use strtof only if HAVE_STRTOF
34         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
35         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
36         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
37         * modules/ftoastr (configure.ac): Check for strtof.
38
39 2011-06-13  Bruno Haible  <bruno@clisp.org>
40
41         gnulib-tool: Addendum to 2011-06-08 commit.
42         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
43         and --witness-c-macro have been given, augment AM_CPPFLAGS.
44
45 2011-06-13  Bruno Haible  <bruno@clisp.org>
46
47         fseeko: Provide a non-inline replacement of fseek().
48         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
49         * modules/fseeko (Depends-on): Add fseek.
50         * modules/fseek (License): Change to LGPLv2+.
51
52 2011-06-13  Bruno Haible  <bruno@clisp.org>
53
54         ftello: Provide a non-inline replacement of ftell().
55         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
56         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
57         not have ftello() (such as on mingw).
58         * modules/ftello (Depends-on): Add ftell.
59         * modules/ftell (License): Change to LGPLv2+.
60
61 2011-05-07  Bruno Haible  <bruno@clisp.org>
62
63         ftell: Move AC_LIBOBJ invocations to module description.
64         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
65         * modules/ftell (configure.ac): ... to here.
66
67 2011-05-07  Bruno Haible  <bruno@clisp.org>
68
69         ftello: Respect rules for use of AC_LIBOBJ.
70         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
71         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
72         here...
73         * modules/ftello (configure.ac): ... to here.
74
75 2011-05-07  Bruno Haible  <bruno@clisp.org>
76
77         fseeko: Simplify.
78         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
79         (gl_FUNC_FSEEKO): Inline it here.
80
81 2011-05-07  Bruno Haible  <bruno@clisp.org>
82
83         fseek: Move AC_LIBOBJ invocations to module description.
84         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
85         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
86         * modules/fseek (configure.ac): ... to here.
87
88 2011-05-07  Bruno Haible  <bruno@clisp.org>
89
90         fseek: Respect rules for use of AC_LIBOBJ.
91         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
92         here...
93         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
94
95 2011-05-07  Bruno Haible  <bruno@clisp.org>
96
97         fseeko: Respect rules for use of AC_LIBOBJ.
98         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
99         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
100         here...
101         * modules/fseeko (configure.ac): ... to here.
102
103 2011-06-13  Bruno Haible  <bruno@clisp.org>
104
105         gnulib-tool: Allow comments in the 'Depends-on' section.
106         * doc/gnulib.texi (Module description): Mention comment syntax in the
107         Depends-on section.
108         * gnulib-tool (func_get_dependencies): Filter out comment lines.
109
110 2011-06-13  Bruno Haible  <bruno@clisp.org>
111
112         file-set.h: guard __attibute__ use, now that it's not always defined
113         * lib/file-set.h (record_file): Use __attribute__ only with compiler
114         versions that support it.  This fixes a coreutils build failure with
115         the vendor cc on HP-UX 11.31.
116
117 2011-06-12  Bruno Haible  <bruno@clisp.org>
118
119         acl: Add support for HP-UX >= 11.11 JFS ACLs.
120         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
121         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
122         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
123         (acl, aclsort): New declarations.
124         (aclv_nontrivial): New declaration.
125         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
126         (file_has_acl): Read also the second kind of HP-UX ACLs.
127         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
128         kind of HP-UX ACLs if the first kind fails.
129         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
130         second kind of HP-UX ACLs.
131         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
132         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
133         agree.
134         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
135         hpuxjfs.
136         Handle hpuxjfs.
137         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
138         hpuxjfs.
139         Handle hpuxjfs.
140         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
141         (func_test_same_acls): Use both lsacl and getacl.
142         Handle hpuxjfs.
143         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
144         (func_test_same_acls): Use both lsacl and getacl.
145         Handle hpuxjfs.
146
147 2011-06-12  Bruno Haible  <bruno@clisp.org>
148
149         acl: Complete the 2010-08-10 fix.
150         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
151         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
152         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
153         explicitly.
154         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
155         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
156
157 2011-06-12  Bruno Haible  <bruno@clisp.org>
158
159         spawn-pipe tests: Comments.
160         * tests/test-spawn-pipe-child.c (main): Update comment.
161         Reported by James Youngman <jay@gnu.org>.
162
163 2011-06-11  James Youngman  <jay@gnu.org>
164
165         New module 'stat-size'.
166         * modules/stat-size: New module.  Provides macros for accessing
167         file size information in instances of struct stat.  Depends on the
168         fileblocks module because it calls st_blocks.
169         * lib/stat-size.h: New file, adapted from coreutils' system.h.
170         * doc/gnulib.texi: Include stat-size.texi.
171         * doc/stat-size.texi: Documentation for this module.
172         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
173         * m4/fileblocks.m4: Mention that stat-size depends on the call to
174         AC_STRUCT_ST_BLOCKS.
175
176 2011-06-09  Bruno Haible  <bruno@clisp.org>
177
178         thread: Support pthreads-win32.
179         * lib/glthread/thread.h (gl_thread_self): Define differently on
180         pthreads-win32.
181         (gl_null_thread): New declaration.
182         (gl_thread_self_pointer): New macro.
183         * lib/glthread/thread.c (gl_null_thread): New constant.
184         * tests/test-lock.c: Use gl_thread_self_pointer instead of
185         gl_thread_self.
186         * tests/test-tls.c: Likewise.
187         Suggested by Paul Eggert. Reported by Eric Blake.
188
189 2011-06-09  Bruno Haible  <bruno@clisp.org>
190
191         thread: Fix confusion between NULL and 0.
192         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
193         Reported by Paul Eggert.
194
195 2011-06-09  Bruno Haible  <bruno@clisp.org>
196
197         spawn-pipe tests: Avoid test failure on HP-UX 11.
198         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
199         is closed.
200
201 2011-06-09  Bruno Haible  <bruno@clisp.org>
202
203         acl tests: Fix compilation error on HP-UX 11.
204         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
205
206 2011-06-09  Bruno Haible  <bruno@clisp.org>
207
208         rmdir: Avoid test failure on HP-UX 10.20.
209         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
210         EEXIST.
211
212 2011-06-08  Eric Blake  <eblake@redhat.com>
213
214         perror: fix test on mingw
215         * modules/perror-tests (Depends-on): Add dup2.
216
217         strerror_r-posix: fix on MacOS
218         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
219         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
220         logic bug.
221         * lib/strerror_r.c (strerror_r): Fix the bug.
222         * lib/strerror.c (strerror): Likewise.
223         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
224         problem.
225         * doc/posix-functions/strerror.texi (strerror): Likewise.
226         * doc/posix-functions/perror.texi (perror): Likewise.
227         * tests/test-strerror.c (main): Enhance test.
228         * tests/test-strerror_r.c (main): Likewise.
229
230 2011-06-08  Bruno Haible  <bruno@clisp.org>
231
232         gnulib-tool: Better isolation between different gnulib-tool invocations.
233         * gnulib-tool: New option --witness-c-macro.
234         (witness_c_macro): New variable.
235         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
236         AM_CPPFLAGS define it as a C macro.
237         (func_emit_tests_Makefile_am): Likewise.
238         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
239         read it from there.
240         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
241         m4_define, not AC_DEFUN.
242         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
243         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
244         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
245         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
246         s|...|...|, to substitute the values of the GNULIB_* module indicator
247         variables.
248         * modules/dirent (Makefile.am): Likewise.
249         * modules/fcntl-h (Makefile.am): Likewise.
250         * modules/iconv-h (Makefile.am): Likewise.
251         * modules/langinfo (Makefile.am): Likewise.
252         * modules/locale (Makefile.am): Likewise.
253         * modules/math (Makefile.am): Likewise.
254         * modules/netdb (Makefile.am): Likewise.
255         * modules/poll-h (Makefile.am): Likewise.
256         * modules/pty (Makefile.am): Likewise.
257         * modules/search (Makefile.am): Likewise.
258         * modules/signal (Makefile.am): Likewise.
259         * modules/spawn (Makefile.am): Likewise.
260         * modules/stdio (Makefile.am): Likewise.
261         * modules/stdlib (Makefile.am): Likewise.
262         * modules/string (Makefile.am): Likewise.
263         * modules/sys_ioctl (Makefile.am): Likewise.
264         * modules/sys_select (Makefile.am): Likewise.
265         * modules/sys_socket (Makefile.am): Likewise.
266         * modules/sys_stat (Makefile.am): Likewise.
267         * modules/sys_times (Makefile.am): Likewise.
268         * modules/sys_utsname (Makefile.am): Likewise.
269         * modules/sys_wait (Makefile.am): Likewise.
270         * modules/termios (Makefile.am): Likewise.
271         * modules/time (Makefile.am): Likewise.
272         * modules/unistd (Makefile.am): Likewise.
273         * modules/wchar (Makefile.am): Likewise.
274
275 2011-06-08  Eric Blake  <eblake@redhat.com>
276
277         strerror: simplify replacement
278         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
279         * modules/strerror (configure.ac): No prereqs needed here...
280         * modules/strerror-override (configure.ac): ...but this needs it.
281         (Files): Add file for needed prereq macro.
282
283 2011-06-08  Bruno Haible  <bruno@clisp.org>
284
285         strerror_r-posix: Tweaks.
286         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
287         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
288         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
289         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
290         (gl_FUNC_STRERROR_R): ... to here.
291         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
292
293 2011-06-07  Eric Blake  <eblake@redhat.com>
294
295         perror: document fixed bugs
296         * doc/posix-functions/perror.texi (perror): Document recent
297         patches.
298
299 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
300
301         stat-time: get_stat_birthtime failure is better-defined
302         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
303         return a timestamp whose tv_sec and tv_nsec values are both -1.
304         Previously, the spec said only that the tv_nsec value was negative.
305         This upward-compatible change simplifies GNU tar a bit.
306
307 2011-06-07  Eric Blake  <eblake@redhat.com>
308
309         strerror_r-posix: work around cygwin 1.7.9
310         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
311         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
312         bug without replacing strerror_r.
313         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
314         strerror_r is buggy, but without requiring strerror_r compilation.
315         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
316
317         test-perror: relax test to ignore cygwin bug
318         * tests/test-perror2.c (main): Relax test on requiring detection
319         of stream errors, and use unbuffered stream.
320         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
321         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
322         * doc/posix-functions/fputc.texi (fputc): Likewise.
323         * doc/posix-functions/fputs.texi (fputs): Likewise.
324         * doc/posix-functions/fputws.texi (fputws): Likewise.
325         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
326         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
327         * doc/posix-functions/getopt.texi (getopt): Likewise.
328         * doc/posix-functions/perror.texi (perror): Likewise.
329         * doc/posix-functions/printf.texi (printf): Likewise.
330         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
331         * doc/posix-functions/psignal.texi (psignal): Likewise.
332         * doc/posix-functions/putc.texi (putc): Likewise.
333         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
334         Likewise.
335         * doc/posix-functions/putchar.texi (putchar): Likewise.
336         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
337         Likewise.
338         * doc/posix-functions/puts.texi (puts): Likewise.
339         * doc/posix-functions/putwc.texi (putwc): Likewise.
340         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
341         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
342         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
343         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
344         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
345         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
346         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
347         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
348
349 2011-05-22  Bruno Haible  <bruno@clisp.org>
350
351         strerror: Move AC_LIBOBJ invocations to module description.
352         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
353         gl_PREREQ_STRERROR invocations from here...
354         * modules/strerror (configure.ac): ... to here.
355
356 2011-05-21  Bruno Haible  <bruno@clisp.org>
357
358         perror: Use common idiom.
359         * modules/perror (configure.ac): Reorder statements.
360
361 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
362
363         tests: fix usage message in 'mktempd_'
364         * tests/init.sh (mktempd_): In the usage message, use literal
365         'mktempd_', not '$ME' (which is even undefined), as the name of
366         the subroutine.
367
368 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
369
370         tests init: new function 'fatal_', for hard errors
371         Before this patch, the only way offered by tests/init.sh to
372         properly signal a hard error was the `framework_failure_'
373         function.  But the error message issued by that function,
374         as its name would suggest, refers to a set-up failure in the
375         testsuite, while hard errors can obviously also be due to
376         other reasons.  The best way to fix this inconsistency is to
377         introduce a new function with a more general error message.
378         * tests/init.sh (fatal_): New function.
379
380 2011-06-06  Eric Blake  <eblake@redhat.com>
381
382         canonicalize-lgpl: use common idiom
383         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
384         over newer POSIX -Rf.
385         Reported by Bruno Haible.
386
387         canonicalize-lgpl: work around AIX realpath bug
388         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
389         * doc/posix-functions/realpath.texi (realpath): Document it.
390         Reported by Bruno Haible.
391
392         strerror: work around FreeBSD bug
393         * lib/strerror.c (strerror): Special case 0.
394         Reported by Bruno Haible.
395
396         strerror-override: avoid bloating errno module
397         * modules/errno (Files, configure.ac): Move replacement strings...
398         * modules/strerror-override: ...to new module.
399         * modules/strerror (Depends-on): Add strerror-override.
400         * modules/strerror_r-posix (Depends-on): Likewise.
401         * MODULES.html.sh: Document new module.
402         Reported by Bruno Haible.
403
404 2011-06-06  Bruno Haible  <bruno@clisp.org>
405
406         spawn-pipe tests: Rename program.
407         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
408         * tests/test-spawn-pipe-child.c: Update comment.
409         * tests/test-spawn-pipe.sh: Update.
410         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
411
412         spawn-pipe tests: Link the child program only against libc.
413         * tests/test-spawn-pipe-child.c: New file, extracted from
414         tests/test-spawn-pipe.c.
415         (main): Expect only one argument.
416         (is_open): New function, copied from tests/test-pipe.c.
417         * tests/test-spawn-pipe.c: Don't include <errno.h>.
418         (child_main): Remove function.
419         (test_pipe): Pass only one argument to the child program.
420         (main): Remove child process code. Expect the child program's name as
421         first argument.
422         * tests/test-spawn-pipe.sh: Pass the child program's name as first
423         argument.
424         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
425         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
426         test-spawn-pipe-child against no libraries.
427
428 2011-06-06  Bruno Haible  <bruno@clisp.org>
429
430         careadlinkat: Avoid mismatch between ssize_t and int.
431         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
432         * lib/careadlinkat.c (careadlinkatcwd): Define always.
433
434 2011-06-06  Jim Meyering  <meyering@redhat.com>
435
436         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
437         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
438         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
439
440 2011-06-05  Bruno Haible  <bruno@clisp.org>
441
442         ansi-c++-opt: Interoperability with libtool.
443         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
444         set the variable to "no", not to ":".
445         * NEWS: Mention the change.
446
447 2011-06-05  Bruno Haible  <bruno@clisp.org>
448
449         acl: Fix test failure on AIX 7.
450         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
451         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
452
453 2011-06-05  Bruno Haible  <bruno@clisp.org>
454
455         pipe-filter-ii: Fix test failure on AIX and IRIX.
456         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
457         with EAGAIN, retry with a smaller buffer size.
458
459 2011-06-05  Bruno Haible  <bruno@clisp.org>
460
461         localename: Fix link dependencies.
462         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
463         * modules/localename-tests (Makefile.am): Link test-localename with
464         $(LIBTHREAD).
465
466 2011-06-05  Bruno Haible  <bruno@clisp.org>
467
468         error: Avoid gcc warning.
469         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
470
471 2011-06-05  Bruno Haible  <bruno@clisp.org>
472
473         unsetenv: Avoid gcc warning.
474         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
475
476 2011-06-05  Bruno Haible  <bruno@clisp.org>
477
478         setenv: Avoid gcc warning.
479         * lib/setenv.c (setenv): Provide declaration if system lacks it.
480
481 2011-06-05  Bruno Haible  <bruno@clisp.org>
482
483         sys_select: Ensure memset is declared also on AIX 7.
484         * lib/sys_select.in.h: Include <string.h> also on AIX.
485         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
486         self-contained also on AIX 7.1.
487
488 2011-06-04  Jim Meyering  <meyering@redhat.com>
489
490         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
491         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
492         function name, "error".
493         (_gl_translatable_diag_func_re): New configurable variable.
494
495 2011-06-04  Bruno Haible  <bruno@clisp.org>
496
497         getopt: Avoid gcc warning.
498         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
499
500 2011-06-04  Bruno Haible  <bruno@clisp.org>
501
502         strerror_r: Fix comments.
503         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
504         commit.
505
506 2011-06-04  Bruno Haible  <bruno@clisp.org>
507
508         perror: Fix compilation error.
509         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
510         Undefine fprintf, not sprintf.
511         * modules/perror (Depends-on): Remove intprops, verify.
512
513 2011-06-04  Bruno Haible  <bruno@clisp.org>
514
515         setlocale: Enable replacement on Cygwin 1.5.
516         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
517         Cygwin 1.5.x.
518         * doc/posix-functions/setlocale.texi: Mention that the problem with the
519         LC_CTYPE category also exists on Cygwin 1.5.x.
520
521 2011-06-04  Bruno Haible  <bruno@clisp.org>
522
523         strerror-override: Don't disable symbol renamings.
524         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
525         * lib/strerror-override.c: Include config.h.
526         (strerror_override): Don't undefine.
527
528 2011-06-03  Bruno Haible  <bruno@clisp.org>
529
530         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
531         * lib/localename.h: Update copyright header.
532         * lib/localename.c: Likewise.
533         * lib/relocatable.h: Likewise.
534         * lib/relocatable.c: Likewise.
535
536 2011-06-02  Bruno Haible  <bruno@clisp.org>
537
538         doc: Fix a module name.
539         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
540
541 2011-06-02  Bruno Haible  <bruno@clisp.org>
542
543         pipe2: Remove dependency on 'nonblocking' module.
544         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
545         O_NONBLOCK is defined by gnulib.
546         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
547         is zero.
548         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
549         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
550         defined by gnulib.
551         (get_nonblocking_flag): New function.
552         (main): Test O_NONBLOCK flag only if it is nonzero.
553         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
554
555 2011-06-03  Jim Meyering  <meyering@redhat.com>
556
557         maint: three new prohibit-header-without-use rules
558         Prohibit use of cloexec.h, posixver.h, same.h without use.
559         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
560         (sc_prohibit_posixver_without_use): Likewise.
561         (sc_prohibit_same_without_use): Likewise.
562
563 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
564
565         allocator: 'die' routine is now given requested size
566         * lib/allocator.h (struct allocator.die): New size arg.
567         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
568         If the actual problem is an ssize_t limitation, not a size_t or
569         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
570
571 2011-06-01  Eric Blake  <eblake@redhat.com>
572
573         strerror: drop strerror_r dependency
574         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
575         * lib/strerror-override.c (strerror_override): ...to new file.
576         * lib/strerror-override.h: Add prototype.
577         * lib/strerror-impl.h: Delete.
578         * lib/strerror.c (strerror): New implementation.
579         * modules/errno (Files): Add new files.
580         (configure.ac): Compile new file as appropriate.
581         * modules/strerror (Files): Drop unused file.
582         (Depends-on): Drop strerror_r-posix.
583         * MODULES.html.sh: Document strerror_r-posix.
584         Requested by Sam Steingold.
585
586         perror: call strerror_r directly
587         * modules/perror (Files): Drop strerror-impl.h.
588         * lib/perror.c (perror): Use our own stack buffer, rather than
589         calling a wrapper that uses static storage.
590         * doc/posix-functions/perror.texi (perror): Document a limitation
591         of our replacement.
592
593         strerror_r: fix includes for FreeBSD
594         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
595         since we use abort on some platforms.
596         Reported by Matthias Bolte.
597
598 2011-05-31  Bruno Haible  <bruno@clisp.org>
599
600         Fix link errors in tests: openat-die uses gettext-h.
601         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
602         against $(LIBINTL).
603         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
604         against $(LIBINTL).
605         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
606         $(LIBINTL).
607         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
608         against $(LIBINTL).
609         * modules/linkat-tests (Makefile.am): Link test-linkat against
610         $(LIBINTL).
611         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
612         $(LIBINTL).
613         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
614         against $(LIBINTL).
615         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
616         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
617         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
618         $(LIBINTL).
619         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
620         $(LIBINTL).
621         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
622         $(LIBINTL).
623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
624
625 2011-05-31  Bruno Haible  <bruno@clisp.org>
626
627         Fix link errors in tests: wait-process uses gettext-h.
628         * modules/nonblocking-pipe-tests (Makefile.am): Set
629         test_nonblocking_pipe_main_LDADD.
630         * modules/nonblocking-socket-tests (Makefile.am): Link
631         test-nonblocking-socket-main against $(LIBINTL).
632         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
633
634 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
635
636         assert-h: work around 'verify' incompatibility
637         * lib/verify.h: Use @...@ directives, not ifdef.
638         * modules/assert-h (assert.h): Implement the directives.
639         (assert.h): Substitute the symbol-prefix more consistently.
640
641 2011-05-29  Jim Meyering  <meyering@redhat.com>
642
643         trim: remove three superfluous assignments
644         * lib/trim.c (trim2): Remove three superfluous assignments
645         and correct brace positioning.
646
647 2011-05-29  Bruno Haible  <bruno@clisp.org>
648
649         wctype-h: Avoid namespace pollution on Solaris 2.6.
650         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
651         identifiers.
652         * doc/posix-headers/wctype.texi: Mention the problem.
653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
654
655 2011-05-28  Jim Meyering  <meyering@redhat.com>
656
657         parse-datetime.y: accommodate -Wstrict-overflow
658         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
659         placate -Wstrict-overflow.
660
661         trim: avoid a warning from -O2 -Wstrict-overflow
662         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
663
664 2011-05-29  Bruno Haible  <bruno@clisp.org>
665
666         gnulib-tool: Fix bug in yesterday's commit.
667         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
668         twice.
669
670 2011-05-29  Bruno Haible  <bruno@clisp.org>
671
672         Allow multiple gnulib generated include files to be combined.
673         * gnulib-tool (func_compute_include_guard_prefix): New function.
674         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
675         ${gl_include_guard_prefix} references.
676         (func_import, func_create_testdir): Invoke
677         func_compute_include_guard_prefix.
678         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
679         * lib/ctype.in.h: Likewise.
680         * lib/dirent.in.h: Likewise.
681         * lib/errno.in.h: Likewise.
682         * lib/fcntl.in.h: Likewise.
683         * lib/float.in.h: Likewise.
684         * lib/getopt.in.h: Likewise.
685         * lib/iconv.in.h: Likewise.
686         * lib/langinfo.in.h: Likewise.
687         * lib/locale.in.h: Likewise.
688         * lib/math.in.h: Likewise.
689         * lib/netdb.in.h: Likewise.
690         * lib/netinet_in.in.h: Likewise.
691         * lib/poll.in.h: Likewise.
692         * lib/pthread.in.h: Likewise.
693         * lib/pty.in.h: Likewise.
694         * lib/sched.in.h: Likewise.
695         * lib/se-selinux.in.h: Likewise.
696         * lib/search.in.h: Likewise.
697         * lib/signal.in.h: Likewise.
698         * lib/spawn.in.h: Likewise.
699         * lib/stdarg.in.h: Likewise.
700         * lib/stddef.in.h: Likewise.
701         * lib/stdint.in.h: Likewise.
702         * lib/stdio.in.h: Likewise.
703         * lib/stdlib.in.h: Likewise.
704         * lib/string.in.h: Likewise.
705         * lib/strings.in.h: Likewise.
706         * lib/sys_file.in.h: Likewise.
707         * lib/sys_ioctl.in.h: Likewise.
708         * lib/sys_select.in.h: Likewise.
709         * lib/sys_socket.in.h: Likewise.
710         * lib/sys_stat.in.h: Likewise.
711         * lib/sys_time.in.h: Likewise.
712         * lib/sys_times.in.h: Likewise.
713         * lib/sys_uio.in.h: Likewise.
714         * lib/sys_utsname.in.h: Likewise.
715         * lib/sys_wait.in.h: Likewise.
716         * lib/sysexits.in.h: Likewise.
717         * lib/termios.in.h: Likewise.
718         * lib/time.in.h: Likewise.
719         * lib/unistd.in.h: Likewise.
720         * lib/wchar.in.h: Likewise.
721         * lib/wctype.in.h: Likewise.
722         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
723         * modules/ctype (Makefile.am): Likewise.
724         * modules/dirent (Makefile.am): Likewise.
725         * modules/errno (Makefile.am): Likewise.
726         * modules/fcntl-h (Makefile.am): Likewise.
727         * modules/float (Makefile.am): Likewise.
728         * modules/getopt-posix (Makefile.am): Likewise.
729         * modules/iconv-h (Makefile.am): Likewise.
730         * modules/langinfo (Makefile.am): Likewise.
731         * modules/locale (Makefile.am): Likewise.
732         * modules/math (Makefile.am): Likewise.
733         * modules/netdb (Makefile.am): Likewise.
734         * modules/netinet_in (Makefile.am): Likewise.
735         * modules/poll-h (Makefile.am): Likewise.
736         * modules/pthread (Makefile.am): Likewise.
737         * modules/pty (Makefile.am): Likewise.
738         * modules/sched (Makefile.am): Likewise.
739         * modules/search (Makefile.am): Likewise.
740         * modules/selinux-h (Makefile.am): Likewise.
741         * modules/signal (Makefile.am): Likewise.
742         * modules/spawn (Makefile.am): Likewise.
743         * modules/stdarg (Makefile.am): Likewise.
744         * modules/stddef (Makefile.am): Likewise.
745         * modules/stdint (Makefile.am): Likewise.
746         * modules/stdio (Makefile.am): Likewise.
747         * modules/stdlib (Makefile.am): Likewise.
748         * modules/string (Makefile.am): Likewise.
749         * modules/strings (Makefile.am): Likewise.
750         * modules/sys_file (Makefile.am): Likewise.
751         * modules/sys_ioctl (Makefile.am): Likewise.
752         * modules/sys_select (Makefile.am): Likewise.
753         * modules/sys_socket (Makefile.am): Likewise.
754         * modules/sys_stat (Makefile.am): Likewise.
755         * modules/sys_time (Makefile.am): Likewise.
756         * modules/sys_times (Makefile.am): Likewise.
757         * modules/sys_uio (Makefile.am): Likewise.
758         * modules/sys_utsname (Makefile.am): Likewise.
759         * modules/sys_wait (Makefile.am): Likewise.
760         * modules/sysexits (Makefile.am): Likewise.
761         * modules/termios (Makefile.am): Likewise.
762         * modules/time (Makefile.am): Likewise.
763         * modules/unistd (Makefile.am): Likewise.
764         * modules/wchar (Makefile.am): Likewise.
765         * modules/wctype-h (Makefile.am): Likewise.
766         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
767
768 2011-05-29  Bruno Haible  <bruno@clisp.org>
769
770         assert-h: Allow multiple gnulib generated replacements to coexist.
771         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
772
773 2011-05-29  Bruno Haible  <bruno@clisp.org>
774
775         argp: Allow coexistence with strerror_r-posix module.
776         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
777         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
778         by gnulib's <string.h> replacement), assume it has the POSIX signature,
779         not the glibc signature.
780
781 2011-05-28  Bruno Haible  <bruno@clisp.org>
782
783         gnulib-tool: Alternative structure of testdirs, similar to --import.
784         * gnulib-tool: New option --single-configure.
785         (func_usage): Document it.
786         (single_configure): New variable.
787         (func_modules_transitive_closure_separately,
788         func_modules_transitive_closure_separately,
789         func_determine_use_libtests, func_modules_add_dummy_separately,
790         func_modules_to_filelist_separately): New functions, extracted from
791         func_import.
792         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
793         (func_import): Use the new functions.
794         (func_create_testdir): Set final_modules. Handle $single_configure =
795         true case.
796
797 2011-05-28  Bruno Haible  <bruno@clisp.org>
798
799         getloadavg: Remove an unreliable safety check.
800         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
801         getloadavg.c is in place.
802         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
803         Reported by Sam Steingold <sds@gnu.org>.
804
805 2011-05-28  Bruno Haible  <bruno@clisp.org>
806
807         doc: Cleanup yet another file produced by texinfo.tex.
808         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
809
810 2011-05-28  Bruno Haible  <bruno@clisp.org>
811
812         Finish the conditional dependencies mechanism.
813         * gnulib-tool: New option --no-conditional-dependencies.
814         (func_usage): Document it. Don't mark --conditional-dependencies as
815         experimental.
816         (cond_dependencies): The possible values can now be true, false, empty.
817         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
818         (func_import): Store setting in gnulib-cache.m4 and read it from there.
819         * doc/gnulib-tool.texi (Conditional dependencies): New section.
820
821 2011-05-28  Bruno Haible  <bruno@clisp.org>
822
823         doc: Use a recent texinfo.tex.
824         * doc/Makefile (tex_opts): New variable.
825         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
826
827 2011-05-28  Jim Meyering  <meyering@redhat.com>
828
829         intprops.h: adjust comment to match code change
830         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
831         only once, it *may* have side effects.  Also fix an unrelated typo.
832         (_GL_INT_SIGNED): Likewise.
833
834 2011-05-26  Simon Josefsson  <simon@josefsson.org>
835
836         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
837
838 2011-05-26  Bruno Haible  <bruno@clisp.org>
839
840         mbsrchr: Avoid collision with system function on Interix.
841         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
842         Reported by Markus Duft <mduft@gentoo.org>.
843
844 2011-05-15  James Youngman  <jay@gnu.org>
845
846         getopt: for ambiguous options, enumerate the possibilities.
847         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
848         the ambiguous options when an ambiguous prefix is given. This was
849         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
850         glibc change was
851         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
852
853 2011-05-25  Eric Blake  <eblake@redhat.com>
854
855         getcwd: work around mingw bug
856         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
857         * doc/posix-functions/getcwd.texi (getcwd): Document it.
858         Reported by Matthias Bolte.
859
860 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
861
862         test-intprops: disable -Wtype-limits diagnostics
863         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
864         diagnostics.  Otherwise, the integer overflow macros generate many
865         diagnostics.  Reported by Jim Meyering in
866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
867
868         intprops: shorten, to pacify gcc -Woverlength-strings
869         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
870         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
871         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
872         likely to run afoul of C compiler limits for string constant lengths.
873         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
874
875 2011-05-24  Eric Blake  <eblake@redhat.com>
876
877         docs: document recently fixed glibc printf bug
878         * doc/posix-functions/fprintf.texi (fprintf): Document it.
879         * doc/posix-functions/printf.texi (printf): Likewise.
880         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
881         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
882
883         closein-tests: convert to init.sh
884         * modules/closein-tests (Files): Add init.sh
885         * tests/test-closein.sh Use it.
886
887         yesno-tests: convert to init.sh
888         * modules/yesno-tests (Files): Add init.sh.
889         * tests/test-yesno.sh: Use it.
890
891         atexit-tests: ensure reliable exit status
892         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
893         Reported by Bruno Haible.
894
895 2011-05-24  Bruno Haible  <bruno@clisp.org>
896
897         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
898         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
899         gl_PREREQ_STRERROR_R invocations from here...
900         * modules/strerror_r-posix (configure.ac): ... to here.
901
902 2011-05-24  Eric Blake  <eblake@redhat.com>
903
904         strerror_r: fix missing header
905         * lib/strerror_r.c: Avoid compiler warning about snprintf.
906
907         strerror_r: fix AIX test failures
908         * lib/strerror_r.c (strerror_r): Convert silent truncation to
909         ERANGE failure.
910
911         strerror_r: fix Solaris test failures
912         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
913         failures.
914         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
915
916         strerror_r: enforce POSIX recommendations
917         * lib/strerror_r.c (safe_copy): New helper method.
918         (strerror_r): Guarantee a non-empty string.
919         * tests/test-strerror_r.c (main): Enhance tests to incorporate
920         recent POSIX rulings and to match our strerror guarantees.
921         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
922
923 2011-05-24  Jim Meyering  <meyering@redhat.com>
924
925         test-perror2.c: avoid warning about unused variable
926         * tests/test-perror2.c (main): Remove declaration of unused "fp".
927
928 2011-05-24  Eric Blake  <eblake@redhat.com>
929
930         perror: avoid spurious test failure on HP-UX
931         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
932
933         tests: fix logic bug in init.sh
934         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
935         shell.
936
937 2011-05-24  Jim Meyering  <meyering@redhat.com>
938
939         utimensat: do not reference an out-of-scope buffer
940         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
941         declared in an inner scope, yet "times" would be dereferenced outside
942         the scope in which "ts" was valid.
943         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
944         of ts[2] "out/up", so that the use of aliased "times" (via
945         "times = ts;") does not end up referencing an out-of-scope "ts"
946
947         opendir-safer.c: don't clobber errno; don't close negative FD
948         * lib/opendir-safer.c (opendir_safer):
949         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
950         file descriptor, and more importantly, don't clobber the
951         offending errno value with EINVAL.  Before, upon failure
952         of dup_safer, we would pass the negative file descriptor to
953         fdopendir, which would clobber errno.
954
955 2011-05-23  Bruno Haible  <bruno@clisp.org>
956
957         idcache: Fix module description.
958         * modules/idcache (Include): Set to "idcache.h".
959
960 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
961
962         gnulib-tool: fix portability problem with MacOS sed
963         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
964         before the "}".  Problem reported by Leo in
965         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
966         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
967         sed_extract_condition1, sed_extract_condition2.
968
969 2011-05-23  Bruno Haible  <bruno@clisp.org>
970
971         hash: Simplify autoconf macro.
972         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
973
974 2011-05-23  Bruno Haible  <bruno@clisp.org>
975
976         getugroups: Fix module description.
977         * modules/getugroups (Include): Set to "getugroups.h".
978
979 2011-05-23  Bruno Haible  <bruno@clisp.org>
980
981         linkat: Simplify autoconf macro.
982         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
983
984 2011-05-23  Bruno Haible  <bruno@clisp.org>
985             Eric Blake  <eblake@redhat.com>
986
987         linkat, renameat: Update dependencies.
988         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
989         * modules/linkat (Depends-on): Likewise. Remove also readlink,
990         symlinkat.
991
992 2011-05-23  Jim Meyering  <meyering@redhat.com>
993
994         maint.mk: more tight_scope improvements
995         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
996         (_gl_TS_headers): Define only in if-0'd block.
997         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
998         sometimes we must *not* use it.  Adjust uses accordingly.
999         (sc_tight_scope): Use much simpler grep-based test to determine
1000         whether we skip this rule.
1001
1002         maint.mk: generalize/improve the tight-scope rule
1003         * top/maint.mk: Emit a warning when the test is skipped.
1004         (_gl_TS_dir): Add $(srcdir)/ prefix.
1005         (_gl_TS_function_match): Simplify, rather than trying
1006         to enumerate common types.  Otherwise, it would fail to match an
1007         "extern unsigned char const *" declaration in idutils.
1008         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1009         a way to support use of that type of macro.
1010         (_gl_TS_var_match): Simplify regexp.
1011         (_gl_TS_obj_files): New configurable variable.
1012         (_gl_TS_headers): Likewise.
1013
1014 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1015
1016         verify: fix bug when gnulib <assert.h> is also included
1017         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1018         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1019         Perhaps there's a better way, but this fixes the immediate problem.
1020         Problem reported by Bruno Haible in
1021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1022
1023 2011-05-22  Bruno Haible  <bruno@clisp.org>
1024
1025         xgetcwd: Simplify autoconf macro.
1026         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1027
1028 2011-05-22  Bruno Haible  <bruno@clisp.org>
1029
1030         New module 'mktime-internal'.
1031         * modules/mktime-internal: New file.
1032         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1033         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1034         mktime_internal as a C macro if libc has __mktime_internal.
1035         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1036         conditions.
1037         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1038
1039 2011-05-22  Bruno Haible  <bruno@clisp.org>
1040
1041         timegm: Correct mktime replacement statements.
1042         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1043         defining mktime as a C macro. This completes a 2009-07-28 commit.
1044
1045 2011-05-22  Bruno Haible  <bruno@clisp.org>
1046
1047         timegm: Simplify autoconf macro.
1048         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1049
1050 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1051
1052         clock-time: change to LGPLv2+.
1053         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1054         BSD-like but we have no mark for that; this is good enough for now.
1055
1056 2011-05-21  Bruno Haible  <bruno@clisp.org>
1057
1058         strerror_r: Fix comments.
1059         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1060
1061 2011-05-21  Bruno Haible  <bruno@clisp.org>
1062
1063         relocatable-prog-wrapper: Fix possible link error.
1064         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1065         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1066         (gl_FUNC_SETENV): ... to here.
1067         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1068         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1069
1070 2011-05-21  Bruno Haible  <bruno@clisp.org>
1071
1072         relocatable-prog-wrapper: Assume strerror() exists.
1073         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1074         m4/strerror.m4.
1075         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1076         * lib/relocwrapper.c: Remove mention of strerror module.
1077         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1078         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1079         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1080         C macro.
1081
1082 2011-05-21  Bruno Haible  <bruno@clisp.org>
1083
1084         select: Simplify replacement idiom.
1085         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1086         Win32 platforms.
1087         * lib/sys_select.in.h (select): Simplify accordingly.
1088         * modules/select (Depends-on): Likewise.
1089
1090 2011-05-21  Bruno Haible  <bruno@clisp.org>
1091
1092         mkdir-p: Simplify autoconf macro.
1093         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1094         gl_FUNC_LCHOWN.
1095
1096 2011-05-21  Eric Blake  <eblake@redhat.com>
1097
1098         strerror_r: avoid clobbering strerror on cygwin
1099         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1100         fall back instead to sys_errlist.
1101         * modules/strerror (configure.ac): Add witness.
1102         * tests/test-strerror_r.c (main): Enhance test.
1103         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1104         * tests/test-perror2.c (main): Free memory before exit.
1105
1106 2011-05-21  Bruno Haible  <bruno@clisp.org>
1107
1108         mkdtemp: Use gnulib naming conventions.
1109         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1110         * modules/mkdtemp (configure.ac): Update.
1111
1112 2011-05-20  Eric Blake  <eblake@redhat.com>
1113
1114         strerror_r: avoid corrupting errno on Solaris
1115         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1116         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1117
1118         strerror_r: avoid compiler warning
1119         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1120
1121         strerror_r: simplify AIX code
1122         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1123
1124         test-perror: avoid spurious failure on FreeBSD
1125         * modules/perror-tests (Depends-on): Add strerror, now that
1126         strerror_r no longer pulls it in.
1127
1128 2011-05-20  Bruno Haible  <bruno@clisp.org>
1129
1130         strerror_r-posix: Remove unused dependencies.
1131         * modules/strerror_r-posix (Depends-on): Remove strerror.
1132         Reported by Eric Blake.
1133
1134 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1135
1136         intprops: remove assumption about A|B representation
1137         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1138         is a valid integer if both A and B are.  Although this is true for
1139         all known practical hosts, the C standard doesn't guarantee it,
1140         and the code need not assume it.  Also, this change may work around
1141         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1143
1144 2011-05-20  Eric Blake  <eblake@redhat.com>
1145
1146         perror: work around FreeBSD bug
1147         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1148         is broken.  Move AC_LIBOBJ...
1149         * modules/perror (configure.ac): Here.
1150         * doc/posix-functions/perror.texi (perror): Document this.
1151         * tests/test-perror2.c (main): Enhance test.
1152
1153         test-perror: check for strerror interactions
1154         * tests/macros.h (STREQ): Add macro.
1155         * modules/perror-tests (Files): Add second test.
1156         * tests/test-perror2.c (main): New file.
1157         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1158
1159         test-perror: rewrite to use init script
1160         * modules/perror-tests (Files): Add init.sh.
1161         * tests/test-perror.sh: Use temporary directory.
1162
1163 2011-05-20  Jim Meyering  <meyering@redhat.com>
1164
1165         maint: replace misused "a" with "an"
1166         * doc/intprops.texi: "a integer"
1167         * doc/regex.texi: "a explanation"
1168         * lib/alignof.h: "a object"
1169         * lib/argmatch.h: "a explanation"
1170         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1171         * lib/stdint.in.h: "a integer"
1172         * lib/userspec.c: "a owner"
1173         * doc/gnulib.texi: Fix "a idea", and reword.
1174
1175 2011-05-19  Jim Meyering  <meyering@redhat.com>
1176
1177         maint: correct misuse of "a" and "an"
1178         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1179         * lib/argp-help.c: "an docum...": s/an/a/
1180         * lib/argp-parse.c: "An vector": s/An/A/
1181         * lib/execute.c: "an native": s/an/a/
1182         * lib/spawn-pipe.c: Likewise.
1183         * lib/gc.h: "an Gc_rc": s/an/a/
1184         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1185         * lib/fts.c: "an stat.st_dev": s/an/a/
1186
1187 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1188
1189         intprops-tests: work around HP-UX 11.23 cc bug with constants
1190         * tests/test-intprops.c (VERIFY): New macro.
1191         (main): Use it, instead of verify, to work around the compiler bug; see
1192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1193
1194         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1195         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1196         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1197         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1198         (_GL_REMAINDER_OVERFLOW): Use it.
1199
1200         intprops-tests: revert unsigned part of previous change
1201         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1202         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1203         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1205
1206 2011-05-19  Bruno Haible  <bruno@clisp.org>
1207
1208         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1209         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1210         strerror_r() returned without filling the buffer.
1211         Reported by Eric Blake.
1212
1213 2011-05-19  Eric Blake  <eblake@redhat.com>
1214
1215         strerror_r: guarantee unchanged errno
1216         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1217         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1218         failure.
1219         * tests/test-strerror_r.c (main): Enhance test.
1220
1221 2011-05-19  Bruno Haible  <bruno@clisp.org>
1222
1223         strerror_r: Reorder #if blocks.
1224         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1225         for consistency with the previous commit.
1226
1227 2011-05-19  Bruno Haible  <bruno@clisp.org>
1228
1229         perror: Avoid clobbering the strerror buffer when possible.
1230         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1231         * lib/strerror.c: Include it.
1232         * modules/strerror (Files): Add lib/strerror-impl.h.
1233         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1234         (my_strerror): New function, defined through lib/strerror-impl.h.
1235         (perror): Use it instead of strerror.
1236         * modules/perror (Files): Add lib/strerror-impl.h.
1237         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1238
1239 2011-05-19  Eric Blake  <eblake@redhat.com>
1240
1241         strerror_r: fix on newer cygwin
1242         * lib/strerror_r.c (strerror_r): Cygwin now has
1243         __xpg_strerror_r, use it.
1244
1245 2011-05-19  Bruno Haible  <bruno@clisp.org>
1246
1247         strerror_r: Avoid clobbering the strerror buffer when possible.
1248         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1249         (sys_nerr, sys_errlist): New declarations.
1250         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1251         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1252         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1253
1254 2011-05-19  Bruno Haible  <bruno@clisp.org>
1255
1256         strerror_r: Fix test failure on mingw.
1257         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1258         EXTEND_STRERROR_R.
1259         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1260         macros from errno.in.h instead.
1261
1262 2011-05-19  Eric Blake  <eblake@redhat.com>
1263
1264         strerror: relax test for Solaris
1265         * tests/test-strerror.c (main): Permit Solaris behavior.
1266         * tests/test-strerror_r.c (main): Likewise.
1267
1268         strerror: enforce POSIX ruling on strerror(0)
1269         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1270         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1271         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1272         * doc/posix-functions/strerror.texi (strerror): Document it.
1273         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1274         * tests/test-strerror.c (main): Strengthen test.
1275         * tests/test-strerror_r.c (main): Likewise.
1276
1277 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1278
1279         intprop-tests: port to older and more-pedantic compilers
1280         * modules/intprops-tests (Files): Add tests/macros.h.
1281         * tests/test-intprops.c: Include macros.h.
1282         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1283         it's no longer documented to expand to an integer constant expression.
1284         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1285         argument is floating point, as it's no longer documented to expand
1286         to an integer constant expression in that case.
1287         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1288         compiler bugs reported by Bruno Haible.  See
1289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1290         (U0, U1): New constants, to work around the same bugs.  Also,
1291         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1292
1293         intprops: work around C compiler bugs
1294         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1295         bug in Sun C 5.11 2010/08/13 and other compilers; see
1296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1297
1298         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1299         * doc/intprops.texi (Integer Type Determination): Fix
1300         documentation for TYPE_IS_INTEGER: it returns an constant
1301         expression, not an integer constant expression.  Fix doc for
1302         TYPE_SIGNED: it returns an integer constant expression only if its
1303         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1304         hardly worth documented that way....)
1305
1306 2011-05-18  Bruno Haible  <bruno@clisp.org>
1307
1308         strerror_r: Avoid clobbering the strerror buffer when possible.
1309         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1310         Handle gnulib defined errno values here. When strerror() returns NULL
1311         or an empty string, return EINVAL.
1312         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1313         gnulib defined errno values here.
1314         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1315
1316 2011-05-18  Eric Blake  <eblake@redhat.com>
1317
1318         fnmatch: avoid compiler warning
1319         * lib/fnmatch_loop.c (FCT): Use correct type.
1320         Reported by Matthias Bolte.
1321
1322 2011-05-13  Jim Meyering  <meyering@redhat.com>
1323
1324         maint.mk: three new prohibit_<HDR>_without_use rules
1325         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1326         (sc_prohibit_stdio-safer_without_use): Likewise.
1327         (sc_prohibit_xfreopen_without_use): Likewise.
1328
1329 2011-05-17  Jim Meyering  <meyering@redhat.com>
1330
1331         announce-gen: fail if the NEWS delta is empty
1332         If there's nothing noteworthy in NEWS, then either you forgot
1333         or you shouldn't be releasing.
1334         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1335
1336 2011-05-17  Pádraig Brady <P@draigBrady.com>
1337
1338         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1339         reserved symbols starting with double underscore from the check.
1340
1341 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1342
1343         intprops: add doc
1344         * doc/intprops.texi: New file, documenting intprops.
1345         * doc/gnulib.texi (Particular Modules): Include it.
1346
1347         verify: add doc to gnulib manual and fix example
1348         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1349         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1350         (Compile-time Assertions): Fix example so it can't overflow.
1351
1352 2011-05-17  Jim Meyering  <meyering@redhat.com>
1353
1354         warnings.m4: don't usurp save_CPPFLAGS variable name
1355         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1356
1357         doc: fix typo
1358         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1359
1360 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1361             Bruno Haible  <bruno@clisp.org>
1362
1363         doc: Tweak recent change.
1364         * README (Portability guidelines): Tweak new text.
1365         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1366         Interix 6.1.
1367
1368 2011-05-16  Eric Blake  <eblake@redhat.com>
1369
1370         inttypes: avoid autoconf warning
1371         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1372         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1373
1374 2011-05-16  Sam Steingold <sds@gnu.org>
1375         and Eric Blake  <eblake@redhat.com>
1376
1377         vc-list-files: accept multiple directory operands
1378         * build-aux/vc-list-files: Iterate over all remaining operands.
1379
1380 2011-05-16  Bruno Haible  <bruno@clisp.org>
1381
1382         Fix confusion regarding deprecated modules.
1383         * modules/calloc (Status, Notice): Mark module as deprecated, not
1384         obsolete.
1385         * modules/fnmatch-posix (Status, Notice): Likewise.
1386         * modules/getdate (Status, Notice): Likewise.
1387         * modules/getopt (Status, Notice): Likewise.
1388         * modules/malloc (Status, Notice): Likewise.
1389         * modules/pipe (Status, Notice): Likewise.
1390         * modules/realloc (Status, Notice): Likewise.
1391         * modules/rename-dest-slash (Status, Notice): Likewise.
1392         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1393         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1394         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1395         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1396         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1397
1398 2011-05-16  Bruno Haible  <bruno@clisp.org>
1399
1400         doc: List the target platforms.
1401         * doc/gnulib-intro.texi (Target Platforms): New section.
1402         * doc/gnulib.texi (Introduction): Update menu.
1403         * README (Portability guidelines): Refer to the new section. Update
1404         statement about oldest supported environment. Remove rationale why
1405         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1406         unportable C89 function.
1407         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1408         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1409
1410 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1411
1412         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1413
1414 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1415
1416         intprops-tests: new module
1417         * modules/intprops-tests, tests/test-intprops.c: New files.
1418
1419         intprops: add safe, portable integer overflow checking
1420         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1421         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1422         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1423         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1424         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1425         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1426         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1427         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1428         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1429         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1430         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1431
1432 2011-05-12  James Youngman  <jay@gnu.org>
1433
1434         Add a test for glibc's Bugzilla bug #12378.
1435         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1436         doesn't allow the literal matching of a lone "[" (which is
1437         required by POSIX).
1438         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1439
1440 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1441
1442         Sync glibc change fixing Bugzilla bug #12378.
1443         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1444         beginning and fall back to matching as normal character if the
1445         string ends before the matching ']' is found.  This is what POSIX
1446         requires.
1447
1448 2011-05-13  Eric Blake  <eblake@redhat.com>
1449
1450         getcwd-lgpl: relax test for FreeBSD
1451         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1452         issue.
1453         * tests/test-getcwd-lgpl.c (main): Relax test.
1454         Reported by Matthias Bolte.
1455
1456 2011-05-11  Eric Blake  <eblake@redhat.com>
1457
1458         test-fflush: silence compiler warning
1459         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1460
1461 2011-05-11  Bruno Haible  <bruno@clisp.org>
1462
1463         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
1464         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
1465         * modules/canonicalize (Depends-on): Add 'nocrash'.
1466         * modules/canonicalize-lgpl (Depends-on): Likewise.
1467         * doc/posix-functions/realpath.texi: Update platforms list.
1468         Reported by Ryan Schmidt <ryandesign@macports.org>.
1469
1470 2011-05-11  Bruno Haible  <bruno@clisp.org>
1471
1472         group-member: Declare function in <unistd.h>.
1473         * lib/unistd.in.h (group_member): New declaration.
1474         * lib/group-member.h: Remove file.
1475         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
1476         * tests/test-unistd-c++.cc: Check signature of group_member.
1477         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
1478         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
1479         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
1480         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
1481         HAVE_GROUP_MEMBER.
1482         * modules/group-member (Files): Remove lib/group-member.h.
1483         (Depends-on): Add unistd. Specify conditions.
1484         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1485         (Include): Change to <unistd.h>.
1486         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
1487         HAVE_GROUP_MEMBER.
1488         * NEWS: Mention the change.
1489         * lib/euidaccess.c: Don't include group-member.h.
1490
1491 2011-05-11  Bruno Haible  <bruno@clisp.org>
1492
1493         group-member: Document module.
1494         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
1495         module.
1496
1497 2011-05-11  Bruno Haible  <bruno@clisp.org>
1498
1499         fclose: Fix mistake earlier today.
1500         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
1501
1502 2011-05-11  Eric Blake  <eblake@redhat.com>
1503
1504         fclose: preserve fflush errors
1505         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
1506         Reported by Jim Meyering.
1507
1508         bootstrap: support a prereq of 'rpcgen -' on RHEL5
1509         * build-aux/bootstrap (check_versions): When no specific version
1510         is required, merely check that the app produces an exit status
1511         that indicates its existence.
1512
1513         maint.mk: drop redundant check
1514         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
1515         the same but better.
1516
1517 2011-05-11  Bruno Haible  <bruno@clisp.org>
1518
1519         fclose: Fix possible link error.
1520         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1521         unregister_shadow_fd. Improve comments.
1522         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
1523         Eric Blake.
1524
1525 2011-05-11  Jim Meyering  <meyering@redhat.com>
1526
1527         maint.mk: improve "can not" detection and generalize rule name
1528         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
1529         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
1530         Use the same technique as in sc_prohibit_doubled_word, so that
1531         we recognize "can not" also when the words are separated by a newline.
1532         Suggested by Eric Blake.
1533         (perl_filename_lineno_text_): Define.  Factored out of...
1534         (prohibit_doubled_word_): ...here.  Use the new definition.
1535         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
1536         (prohibit_undesirable_word_seq_RE_): New overridable variable.
1537         (ignore_undesirable_word_sequence_RE_): New overridable variable.
1538
1539 2011-05-10  Eric Blake  <eblake@redhat.com>
1540
1541         fclose: avoid double close race when possible
1542         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
1543         all but WINDOWS_SOCKETS.
1544
1545 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
1546
1547         openat: correct new comment
1548         * lib/openat-proc.c (openat_proc_name): Correct the comment.
1549
1550 2011-05-10  Jim Meyering  <meyering@redhat.com>
1551
1552         openat: add comments
1553         * lib/openat-proc.c (openat_proc_name): Add comments,
1554         mostly from Eric Blake.
1555
1556 2011-05-09  Eric Blake  <eblake@redhat.com>
1557
1558         openat: reduce syscalls in first probe of /proc
1559         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
1560         be a directory.  Simplify the probe for .. bugs.
1561         * modules/openat (Depends-on): Drop same-inode.
1562         Reported by Bastien ROUCARIES.
1563
1564 2011-05-09  Jim Meyering  <meyering@redhat.com>
1565
1566         maint.mk: change semantics/name of tight_scope variables
1567         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
1568         Rename variables to align with semantics that make them more useful.
1569
1570         maint.mk: tweak new rule's name not to impinge
1571         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
1572         (sc_tight_scope): Use new rule name rather than $@-0.
1573
1574         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
1575         * top/maint.mk (sc_tight_scope): New rule.
1576         (sc_tight_scope-0): New rule, ifdef'd out.
1577         (_gl_TS_dir): Default.
1578         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
1579         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
1580
1581 2011-05-09  Simon Josefsson  <simon@josefsson.org>
1582
1583         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
1584         Haible <bruno@clisp.org>.
1585
1586 2011-05-08  Bruno Haible  <bruno@clisp.org>
1587
1588         Comments.
1589         * m4/isnanf.m4: Add comment.
1590         * m4/isnanl.m4: Likewise.
1591
1592 2011-05-08  Bruno Haible  <bruno@clisp.org>
1593
1594         glob: Remove obsolete macro.
1595         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
1596
1597 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1598
1599         intprops: Sun C 5.11 supports __typeof__
1600         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
1601         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
1602         which is new.
1603         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
1604
1605         intprops: switch to usual gnulib indenting and naming
1606         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
1607         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
1608
1609         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
1610
1611 2011-05-08  Jim Meyering  <meyering@redhat.com>
1612
1613         maint.mk: suppress "Entering/Leaving directory" diag in announcement
1614         * top/maint.mk (release-prep): Use make's --no-print-directory
1615         option when generating the announcement.  This eliminates the
1616         pesky "make[2]: Entering/Leaving directory" diagnostics in the
1617         generated announcement template.
1618
1619 2011-05-08  Bruno Haible  <bruno@clisp.org>
1620
1621         tzset: Fix gettimeofday wrapper on Solaris 2.6.
1622         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
1623         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
1624
1625 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1626
1627         ignore-value, verify: Omit include files from lib_SOURCES.
1628         * modules/ignore-value, modules/verify (Makefile.am):
1629         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
1630         that leads Automake to duplicate use of am__objects_... variables
1631         in Makefile.in.  See
1632         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1633
1634 2011-05-07  Bruno Haible  <bruno@clisp.org>
1635
1636         fclose: Simplify autoconf macro.
1637         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1638         defined.
1639
1640 2011-05-07  Bruno Haible  <bruno@clisp.org>
1641
1642         canonicalize-lgpl: Fix autoconf macro ordering bug.
1643         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1644         gl_STDLIB_H_DEFAULTS.
1645
1646 2011-05-06  Eric Blake  <eblake@redhat.com>
1647
1648         maintainer-makefile: make sc_po_check easier to tune
1649         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1650         to probe for strings, such as an alternate location for gnulib.
1651
1652         fclose: guarantee behavior on seekable stdin
1653         * modules/fclose (Depends-on): Add fflush.
1654         * doc/posix-functions/fclose.texi (fclose): Document this.
1655         * tests/test-fclose.c (main): Make test for this unconditional.
1656
1657 2011-05-06  Bruno Haible  <bruno@clisp.org>
1658
1659         fflush, fpurge: Relicense under LGPLv2+.
1660         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1661         * modules/fpurge (License): Likewise.
1662         With permission from Eric Blake and Jim Meyering.
1663         Suggested by Eric Blake.
1664
1665 2011-05-06  Karl Berry  <karl@gnu.org>
1666
1667         * MODULES.html.sh (func_all_modules): remove exit.
1668
1669 2011-05-06  Jim Meyering  <meyering@redhat.com>
1670
1671         maint.mk: use info-gnu@ as the default only for a stable release
1672         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1673         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1674         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1675         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1676
1677 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1678
1679         assert-h: new module, which supports C1X-style static_assert
1680         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1681         * lib/verify.h: Revamp so that this can be copied into assert.h,
1682         while retaining the ability to use it standalone as before.
1683         Rename private identifiers so as not to encroach on the
1684         standard C namespace, since this is now used by assert.h.
1685         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1686         the old verify_true.
1687         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1688         the old verify_true.  Use _GL_VERIFY_TYPE.
1689         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1690         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1691         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1692         defined when this file is copied into the replacement assert.h.
1693         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1694         and _Static_assert is not built in.
1695         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1696         defined, and use the new macros mentioned above.
1697         * doc/posix-headers/assert.texi: Document this.
1698
1699 2011-05-05  Bruno Haible  <bruno@clisp.org>
1700
1701         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1702         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1703         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1704         gl_REPLACE_FCLOSE here.
1705         * modules/fflush (Depends-on): Remove fclose.
1706         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1707         combination with module 'fclose'.
1708
1709 2011-05-05  Bruno Haible  <bruno@clisp.org>
1710
1711         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1712         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1713         gl_FUNC_FFLUSH.
1714         (gl_FUNC_FFLUSH): Use it.
1715         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1716         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1717         gl_REPLACE_FSEEKO here.
1718
1719 2011-05-05  Bruno Haible  <bruno@clisp.org>
1720
1721         tzset: Relicense under LGPL.
1722         * modules/tzset (License): Change to LGPL.
1723         No agreement needed; it's a no-op.
1724
1725         strtoimax, strtoumax: Relicense under LGPL.
1726         * modules/strtoimax (License): Change to LGPL.
1727         * modules/strtoumax (License): Likewise.
1728         With permission from Jim Meyering, Paul Eggert:
1729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1731
1732         getgroups: Relicense under LGPL.
1733         * modules/getgroups (License): Change to LGPL.
1734         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1738
1739         nanosleep: Relicense under LGPL.
1740         * modules/nanosleep (License): Change to LGPL.
1741         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
1742         Haible:
1743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1747
1748         futimens: Relicense under LGPL.
1749         * modules/futimens (License): Change to LGPL.
1750         With permission from Eric Blake:
1751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1752
1753         fflush: Relicense under LGPL.
1754         * modules/fflush (License): Change to LGPL.
1755         With permission from Eric Blake, Bruno Haible, Jim Meyering:
1756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1758         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
1759
1760         tmpfile: Relicense under LGPL.
1761         * modules/tmpfile (License): Change to LGPL.
1762         With permission from Ben Pfaff:
1763         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1764
1765         isfinite: Relicense under LGPL.
1766         * modules/isfinite (License): Change to LGPL.
1767         With permission from Ben Pfaff, Bruno Haible:
1768         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
1770
1771         acosl..tanl: Relicense under LGPL.
1772         * modules/acosl (License): Change to LGPL.
1773         * modules/asinl (License): Likewise.
1774         * modules/atanl (License): Likewise.
1775         * modules/cosl (License): Likewise.
1776         * modules/expl (License): Likewise.
1777         * modules/logl (License): Likewise.
1778         * modules/sinl (License): Likewise.
1779         * modules/sqrtl (License): Likewise.
1780         * modules/tanl (License): Likewise.
1781         Source code originally from glibc and Paolo Bonzini. Agreements:
1782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
1783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
1784
1785 2011-05-05  Bruno Haible  <bruno@clisp.org>
1786
1787         signal: Define sighandler_t.
1788         * lib/signal.in.h (sighandler_t): New type.
1789         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
1790         whether sighandler_t is defined.
1791         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
1792         * modules/signal (Depends-on): Add extensions.
1793         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
1794         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
1795         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
1796
1797 2011-05-05  Eric Blake  <eblake@redhat.com>
1798
1799         maint: remove useless REPLACE_*_H macros
1800         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
1801         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1802         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1803         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
1804         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1805         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1806         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
1807         * m4/btowc.m4: Update callers.
1808         * m4/dirfd.m4: Likewise.
1809         * m4/duplocale.m4: Likewise.
1810         * m4/fchdir.m4: Likewise.
1811         * m4/fdopendir.m4: Likewise.
1812         * m4/inet_ntop.m4: Likewise.
1813         * m4/inet_pton.m4: Likewise.
1814         * m4/ioctl.m4: Likewise.
1815         * m4/mbrlen.m4: Likewise.
1816         * m4/mbrtowc.m4: Likewise.
1817         * m4/mbsinit.m4: Likewise.
1818         * m4/mbsnrtowcs.m4: Likewise.
1819         * m4/mbsrtowcs.m4: Likewise.
1820         * m4/poll.m4: Likewise.
1821         * m4/setlocale.m4: Likewise.
1822         * m4/wcrtomb.m4: Likewise.
1823         * m4/wcsnrtombs.m4: Likewise.
1824         * m4/wcsrtombs.m4: Likewise.
1825         * m4/wctob.m4: Likewise.
1826         * m4/wcwidth.m4: Likewise.
1827         * modules/posix_spawn: Likewise.
1828         * modules/posix_spawn_file_actions_addclose: Likewise.
1829         * modules/posix_spawn_file_actions_adddup2: Likewise.
1830         * modules/posix_spawn_file_actions_addopen: Likewise.
1831         * modules/posix_spawn_file_actions_destroy: Likewise.
1832         * modules/posix_spawn_file_actions_init: Likewise.
1833         * modules/posix_spawnattr_destroy: Likewise.
1834         * modules/posix_spawnattr_getflags: Likewise.
1835         * modules/posix_spawnattr_getpgroup: Likewise.
1836         * modules/posix_spawnattr_getschedparam: Likewise.
1837         * modules/posix_spawnattr_getschedpolicy: Likewise.
1838         * modules/posix_spawnattr_getsigdefault: Likewise.
1839         * modules/posix_spawnattr_getsigmask: Likewise.
1840         * modules/posix_spawnattr_init: Likewise.
1841         * modules/posix_spawnattr_setflags: Likewise.
1842         * modules/posix_spawnattr_setpgroup: Likewise.
1843         * modules/posix_spawnattr_setschedparam: Likewise.
1844         * modules/posix_spawnattr_setschedpolicy: Likewise.
1845         * modules/posix_spawnattr_setsigdefault: Likewise.
1846         * modules/posix_spawnattr_setsigmask: Likewise.
1847         * modules/posix_spawnp: Likewise.
1848
1849 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
1850
1851         Add option to do-release-commit-and-tag to specify branch.
1852         * build-aux/do-release-commit-and-tag: Add --branch.
1853
1854 2011-05-03  Bruno Haible  <bruno@clisp.org>
1855
1856         Avoid unnecessary compilation units, through conditional dependencies.
1857         * modules/accept (Depends-on): Add conditions to the dependencies.
1858         * modules/acosl (Depends-on): Likewise.
1859         * modules/argz (Depends-on): Likewise.
1860         * modules/asinl (Depends-on): Likewise.
1861         * modules/atanl (Depends-on): Likewise.
1862         * modules/atoll (Depends-on): Likewise.
1863         * modules/bind (Depends-on): Likewise.
1864         * modules/btowc (Depends-on): Likewise.
1865         * modules/canonicalize-lgpl (Depends-on): Likewise.
1866         * modules/ceil (Depends-on): Likewise.
1867         * modules/ceilf (Depends-on): Likewise.
1868         * modules/ceill (Depends-on): Likewise.
1869         * modules/chdir-long (Depends-on): Likewise.
1870         * modules/chown (Depends-on): Likewise.
1871         * modules/close (Depends-on): Likewise.
1872         * modules/connect (Depends-on): Likewise.
1873         * modules/cosl (Depends-on): Likewise.
1874         * modules/dirfd (Depends-on): Likewise.
1875         * modules/dprintf (Depends-on): Likewise.
1876         * modules/dprintf-posix (Depends-on): Likewise.
1877         * modules/error (Depends-on): Likewise.
1878         * modules/euidaccess (Depends-on): Likewise.
1879         * modules/expl (Depends-on): Likewise.
1880         * modules/faccessat (Depends-on): Likewise.
1881         * modules/fchdir (Depends-on): Likewise.
1882         * modules/fclose (Depends-on): Likewise.
1883         * modules/fcntl (Depends-on): Likewise.
1884         * modules/fdopendir (Depends-on): Likewise.
1885         * modules/fflush (Depends-on): Likewise.
1886         * modules/floor (Depends-on): Likewise.
1887         * modules/floorf (Depends-on): Likewise.
1888         * modules/floorl (Depends-on): Likewise.
1889         * modules/fnmatch (Depends-on): Likewise.
1890         * modules/fopen (Depends-on): Likewise.
1891         * modules/fprintf-posix (Depends-on): Likewise.
1892         * modules/frexp (Depends-on): Likewise.
1893         * modules/frexp-nolibm (Depends-on): Likewise.
1894         * modules/frexpl (Depends-on): Likewise.
1895         * modules/frexpl-nolibm (Depends-on): Likewise.
1896         * modules/fseek (Depends-on): Likewise.
1897         * modules/fsusage (Depends-on): Likewise.
1898         * modules/ftell (Depends-on): Likewise.
1899         * modules/ftello (Depends-on): Likewise.
1900         * modules/futimens (Depends-on): Likewise.
1901         * modules/getcwd (Depends-on): Likewise.
1902         * modules/getcwd-lgpl (Depends-on): Likewise.
1903         * modules/getdelim (Depends-on): Likewise.
1904         * modules/getdomainname (Depends-on): Likewise.
1905         * modules/getgroups (Depends-on): Likewise.
1906         * modules/gethostname (Depends-on): Likewise.
1907         * modules/getline (Depends-on): Likewise.
1908         * modules/getlogin_r (Depends-on): Likewise.
1909         * modules/getopt-posix (Depends-on): Likewise.
1910         * modules/getpeername (Depends-on): Likewise.
1911         * modules/getsockname (Depends-on): Likewise.
1912         * modules/getsockopt (Depends-on): Likewise.
1913         * modules/getsubopt (Depends-on): Likewise.
1914         * modules/getusershell (Depends-on): Likewise.
1915         * modules/glob (Depends-on): Likewise.
1916         * modules/grantpt (Depends-on): Likewise.
1917         * modules/iconv_open (Depends-on): Likewise.
1918         * modules/iconv_open-utf (Depends-on): Likewise.
1919         * modules/inet_ntop (Depends-on): Likewise.
1920         * modules/inet_pton (Depends-on): Likewise.
1921         * modules/ioctl (Depends-on): Likewise.
1922         * modules/isapipe (Depends-on): Likewise.
1923         * modules/isfinite (Depends-on): Likewise.
1924         * modules/isinf (Depends-on): Likewise.
1925         * modules/lchown (Depends-on): Likewise.
1926         * modules/ldexpl (Depends-on): Likewise.
1927         * modules/link (Depends-on): Likewise.
1928         * modules/linkat (Depends-on): Likewise.
1929         * modules/listen (Depends-on): Likewise.
1930         * modules/logl (Depends-on): Likewise.
1931         * modules/lstat (Depends-on): Likewise.
1932         * modules/mbrlen (Depends-on): Likewise.
1933         * modules/mbrtowc (Depends-on): Likewise.
1934         * modules/mbsinit (Depends-on): Likewise.
1935         * modules/mbsnrtowcs (Depends-on): Likewise.
1936         * modules/mbsrtowcs (Depends-on): Likewise.
1937         * modules/mbtowc (Depends-on): Likewise.
1938         * modules/memcmp (Depends-on): Likewise.
1939         * modules/mkdir (Depends-on): Likewise.
1940         * modules/mkdtemp (Depends-on): Likewise.
1941         * modules/mkfifo (Depends-on): Likewise.
1942         * modules/mkfifoat (Depends-on): Likewise.
1943         * modules/mknod (Depends-on): Likewise.
1944         * modules/mkostemp (Depends-on): Likewise.
1945         * modules/mkostemps (Depends-on): Likewise.
1946         * modules/mkstemp (Depends-on): Likewise.
1947         * modules/mkstemps (Depends-on): Likewise.
1948         * modules/mktime (Depends-on): Likewise.
1949         * modules/nanosleep (Depends-on): Likewise.
1950         * modules/open (Depends-on): Likewise.
1951         * modules/openat (Depends-on): Likewise.
1952         * modules/perror (Depends-on): Likewise.
1953         * modules/poll (Depends-on): Likewise.
1954         * modules/popen (Depends-on): Likewise.
1955         * modules/posix_spawn (Depends-on): Likewise.
1956         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
1957         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1958         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1959         * modules/posix_spawnp (Depends-on): Likewise.
1960         * modules/pread (Depends-on): Likewise.
1961         * modules/printf-posix (Depends-on): Likewise.
1962         * modules/ptsname (Depends-on): Likewise.
1963         * modules/putenv (Depends-on): Likewise.
1964         * modules/pwrite (Depends-on): Likewise.
1965         * modules/readline (Depends-on): Likewise.
1966         * modules/readlink (Depends-on): Likewise.
1967         * modules/readlinkat (Depends-on): Likewise.
1968         * modules/recv (Depends-on): Likewise.
1969         * modules/recvfrom (Depends-on): Likewise.
1970         * modules/regex (Depends-on): Likewise.
1971         * modules/remove (Depends-on): Likewise.
1972         * modules/rename (Depends-on): Likewise.
1973         * modules/renameat (Depends-on): Likewise.
1974         * modules/rmdir (Depends-on): Likewise.
1975         * modules/round (Depends-on): Likewise.
1976         * modules/roundf (Depends-on): Likewise.
1977         * modules/roundl (Depends-on): Likewise.
1978         * modules/rpmatch (Depends-on): Likewise.
1979         * modules/select (Depends-on): Likewise.
1980         * modules/send (Depends-on): Likewise.
1981         * modules/sendto (Depends-on): Likewise.
1982         * modules/setenv (Depends-on): Likewise.
1983         * modules/setlocale (Depends-on): Likewise.
1984         * modules/setsockopt (Depends-on): Likewise.
1985         * modules/shutdown (Depends-on): Likewise.
1986         * modules/sigaction (Depends-on): Likewise.
1987         * modules/signbit (Depends-on): Likewise.
1988         * modules/sigprocmask (Depends-on): Likewise.
1989         * modules/sinl (Depends-on): Likewise.
1990         * modules/sleep (Depends-on): Likewise.
1991         * modules/snprintf (Depends-on): Likewise.
1992         * modules/snprintf-posix (Depends-on): Likewise.
1993         * modules/socket (Depends-on): Likewise.
1994         * modules/sprintf-posix (Depends-on): Likewise.
1995         * modules/sqrtl (Depends-on): Likewise.
1996         * modules/stat (Depends-on): Likewise.
1997         * modules/strchrnul (Depends-on): Likewise.
1998         * modules/strdup-posix (Depends-on): Likewise.
1999         * modules/strerror (Depends-on): Likewise.
2000         * modules/strerror_r-posix (Depends-on): Likewise.
2001         * modules/strndup (Depends-on): Likewise.
2002         * modules/strnlen (Depends-on): Likewise.
2003         * modules/strptime (Depends-on): Likewise.
2004         * modules/strsep (Depends-on): Likewise.
2005         * modules/strsignal (Depends-on): Likewise.
2006         * modules/strstr-simple (Depends-on): Likewise.
2007         * modules/strtod (Depends-on): Likewise.
2008         * modules/strtoimax (Depends-on): Likewise.
2009         * modules/strtok_r (Depends-on): Likewise.
2010         * modules/strtoumax (Depends-on): Likewise.
2011         * modules/symlink (Depends-on): Likewise.
2012         * modules/symlinkat (Depends-on): Likewise.
2013         * modules/tanl (Depends-on): Likewise.
2014         * modules/tcgetsid (Depends-on): Likewise.
2015         * modules/tmpfile (Depends-on): Likewise.
2016         * modules/trunc (Depends-on): Likewise.
2017         * modules/truncf (Depends-on): Likewise.
2018         * modules/truncl (Depends-on): Likewise.
2019         * modules/uname (Depends-on): Likewise.
2020         * modules/unlink (Depends-on): Likewise.
2021         * modules/unlockpt (Depends-on): Likewise.
2022         * modules/unsetenv (Depends-on): Likewise.
2023         * modules/usleep (Depends-on): Likewise.
2024         * modules/utimensat (Depends-on): Likewise.
2025         * modules/vasprintf (Depends-on): Likewise.
2026         * modules/vdprintf (Depends-on): Likewise.
2027         * modules/vdprintf-posix (Depends-on): Likewise.
2028         * modules/vfprintf-posix (Depends-on): Likewise.
2029         * modules/vprintf-posix (Depends-on): Likewise.
2030         * modules/vsnprintf (Depends-on): Likewise.
2031         * modules/vsnprintf-posix (Depends-on): Likewise.
2032         * modules/vsprintf-posix (Depends-on): Likewise.
2033         * modules/wcrtomb (Depends-on): Likewise.
2034         * modules/wcscasecmp (Depends-on): Likewise.
2035         * modules/wcscspn (Depends-on): Likewise.
2036         * modules/wcsdup (Depends-on): Likewise.
2037         * modules/wcsncasecmp (Depends-on): Likewise.
2038         * modules/wcsnrtombs (Depends-on): Likewise.
2039         * modules/wcspbrk (Depends-on): Likewise.
2040         * modules/wcsrtombs (Depends-on): Likewise.
2041         * modules/wcsspn (Depends-on): Likewise.
2042         * modules/wcsstr (Depends-on): Likewise.
2043         * modules/wcstok (Depends-on): Likewise.
2044         * modules/wcswidth (Depends-on): Likewise.
2045         * modules/wctob (Depends-on): Likewise.
2046         * modules/wctomb (Depends-on): Likewise.
2047         * modules/wctype (Depends-on): Likewise.
2048         * modules/wcwidth (Depends-on): Likewise.
2049         * modules/write (Depends-on): Likewise.
2050
2051 2011-05-03  Bruno Haible  <bruno@clisp.org>
2052
2053         Support for conditional dependencies.
2054         * doc/gnulib.texi (Module description): Document the syntax of
2055         conditional dependencies.
2056         * gnulib-tool: New option --conditional-dependencies.
2057         (func_usage): Document it.
2058         (cond_dependencies): New variable.
2059         (func_get_automake_snippet_conditional,
2060         func_get_automake_snippet_unconditional): New functions, extracted from
2061         func_get_automake_snippet.
2062         (func_get_automake_snippet): Use them.
2063         (sed_first_32_chars): New variable.
2064         (func_module_shellfunc_name): New function.
2065         (func_module_shellvar_name): New function.
2066         (func_module_conditional_name): New function.
2067         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2068         func_cond_module_condition): New functions.
2069         (func_modules_transitive_closure): Add support for conditional
2070         dependencies.
2071         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2072         conditional automake snippet in an automake conditional.
2073         (func_emit_autoconf_snippets): Emit shell functions that contain the
2074         code for conditional modules.
2075         (func_import, func_create_testdir): Update specification.
2076
2077 2011-05-03  Eric Blake  <eblake@redhat.com>
2078
2079         test-getaddrinfo: report error information
2080         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2081
2082 2011-05-03  Jim Meyering  <meyering@redhat.com>
2083
2084         bootstrap: avoid build failure when $GZIP is set
2085         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2086         program name.  If defined at all, it is supposed to list gzip options.
2087         Reported by Alan Curry in http://debbugs.gnu.org/8609
2088
2089 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2090
2091         readme-release: new module with release instructions
2092         * modules/readme-release: New module.
2093         * top/README-release: New file, from coreutils, grep, diffutils.
2094         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2095
2096 2011-05-02  Eric Blake  <eblake@redhat.com>
2097
2098         fflush: also replace fclose when fixing fflush
2099         * modules/fflush (Depends-on): Add fclose.
2100         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2101         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2102         memstreams with no backing fd.
2103         * doc/posix-functions/fclose.texi (fclose): Document the use of
2104         fflush module to fix the bug.
2105         * tests/test-fclose.c (main): Relax test when fclose is used in
2106         isolation.
2107
2108         fclose: add some tests
2109         * modules/fclose-tests: New test module.
2110         * tests/test-fclose.c: New file.
2111         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2112
2113         fclose: reduced dependencies
2114         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2115         simpler lseek.
2116         * lib/fclose.c (rpl_fclose): Likewise.
2117         Reported by Simon Josefsson.
2118
2119         exit: drop remaining clients
2120         * modules/argmatch (Depends-on): Replace exit with stdlib.
2121         * modules/copy-file (Depends-on): Likewise.
2122         * modules/execute (Depends-on): Likewise.
2123         * modules/exitfail (Depends-on): Likewise.
2124         * modules/obstack (Depends-on): Likewise.
2125         * modules/pagealign_alloc (Depends-on): Likewise.
2126         * modules/pipe-filter-gi (Depends-on): Likewise.
2127         * modules/pipe-filter-ii (Depends-on): Likewise.
2128         * modules/savewd (Depends-on): Likewise.
2129         * modules/spawn-pipe (Depends-on): Likewise.
2130         * modules/wait-process (Depends-on): Likewise.
2131         * modules/xsetenv (Depends-on): Likewise.
2132         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2133         * modules/git-merge-changelog (Depends-on): Likewise.
2134         * modules/long-options (Depends-on): Likewise.
2135         * modules/pt_chown (Depends-on): Likewise.
2136         * modules/sysexits (Depends-on): Likewise.
2137
2138         freading: relax license from LGPLv3+ to LGPLv2+
2139         * modules/freading (License): Relax LGPL version.
2140
2141 2011-05-02  Bruno Haible  <bruno@clisp.org>
2142
2143         fchdir: Remove unused dependencies.
2144         * modules/fchdir (Depends-on): Remove include_next.
2145
2146 2011-05-02  Bruno Haible  <bruno@clisp.org>
2147
2148         gnulib-tool: Refactor.
2149         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2150         from func_emit_autoconf_snippets.
2151         (func_emit_autoconf_snippets): Use it.
2152
2153 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2154
2155         * NEWS: Document removal of 'exit'.
2156         * modules/exit: Remove file.
2157
2158 2011-05-01  Bruno Haible  <bruno@clisp.org>
2159
2160         Update DEPENDENCIES.
2161         * DEPENDENCIES (gettext): Recommend the newest release.
2162         Reported by Simon Josefsson.
2163
2164 2011-05-01  Bruno Haible  <bruno@clisp.org>
2165
2166         gnulib-tool: Reduce code duplication.
2167         * gnulib-tool (func_emit_autoconf_snippets): New function.
2168         (func_import, func_create_testdir): Use it.
2169
2170 2011-04-30  Eric Blake  <eblake@redhat.com>
2171
2172         fclose: don't fail on non-seekable input stream
2173         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2174         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2175         since fflush is allowed to fail in that case.
2176
2177 2011-04-30  Bruno Haible  <bruno@clisp.org>
2178
2179         dup3: cleanup
2180         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2181
2182 2011-04-30  Bruno Haible  <bruno@clisp.org>
2183
2184         netdb: Make it work in C++ mode.
2185         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2186         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2187         module.
2188         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2189         gl_MODULE_INDICATOR_FOR_TESTS.
2190         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2191         * modules/netdb-c++-tests: New file.
2192         * tests/test-netdb-c++.cc: New file.
2193
2194 2011-04-30  Bruno Haible  <bruno@clisp.org>
2195
2196         New modules 'vfscanf', 'vscanf'.
2197         * modules/vfscanf: New file.
2198         * modules/vscanf: New file.
2199         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2200         here.
2201         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2202         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2203
2204 2011-04-30  Bruno Haible  <bruno@clisp.org>
2205
2206         passfd: Add comments.
2207         * lib/passfd.c: Add comments about platforms.
2208
2209 2011-04-30  Bruno Haible  <bruno@clisp.org>
2210
2211         sys_uio: Make <sys/uio.h> self-contained.
2212         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2213         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2214
2215 2011-04-30  Bruno Haible  <bruno@clisp.org>
2216
2217         sys_socket: Ensure 'struct iovec' definition.
2218         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2219         <sys/socket.h>.
2220         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2221
2222 2011-04-30  Bruno Haible  <bruno@clisp.org>
2223
2224         sys_uio: Protect definition of 'struct iovec'.
2225         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2226         it as a C struct.
2227
2228 2011-04-30  Bruno Haible  <bruno@clisp.org>
2229
2230         manywarnings: fix indentation
2231         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2232
2233 2011-04-30  Pádraig Brady <P@draigBrady.com>
2234
2235         manywarnings: add -Wno-missing-field-initializers if needed.
2236         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2237         option if it's needed to allow initialization with { 0, }
2238
2239 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2240
2241         announce-gen: cosmetic improvement
2242         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2243
2244 2011-04-29  Jim Meyering  <meyering@redhat.com>
2245
2246         vc-list-files: indent with spaces, not TABs
2247         * build-aux/vc-list-files: Convert leading TABs to spaces,
2248         to match the style of most other files in gnulib.
2249
2250         announce-gen: indent with spaces, not TABs
2251         * build-aux/announce-gen: Convert all TABs to spaces, to match
2252         the style of most other files in gnulib.
2253
2254 2011-04-29  Eric Blake  <eblake@redhat.com>
2255
2256         quotearg: avoid uninitialized variable use
2257         * lib/quotearg.c (quoting_options_from_style): Initialize
2258         remaining fields, and ensure that custom styles are only used via
2259         quoting_options rather than quoting_style.
2260
2261 2011-04-29  Jim Meyering  <meyering@redhat.com>
2262
2263         maint.mk: remove unused VC-tag variable
2264         * top/maint.mk (VC-tag): Remove unused variable.
2265
2266 2011-04-29  Bruno Haible  <bruno@clisp.org>
2267
2268         netdb: fix gai_strerror replacements
2269         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2270         * modules/netdb: Substitute it.
2271
2272 2011-04-29  Jim Meyering  <meyering@redhat.com>
2273
2274         test-getcwd.c: avoid new set-but-not-used warning
2275         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2276         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2277         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2278         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2279
2280         test-hash.c: avoid a new shadowing warning
2281         * tests/test-hash.c (main): Don't shadow "dup".
2282
2283 2011-04-28  Eric Blake  <eblake@redhat.com>
2284
2285         getaddrinfo: fix gai_strerror signature
2286         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2287         and work around mingw with UNICODE defined.
2288         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2289         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2290         * modules/netdb (Makefile.am): Substitute it.
2291         * lib/netdb.in.h (gai_strerror): Declare replacement.
2292         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2293         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2294         the fix.
2295
2296         getsockopt: avoid compiler warning
2297         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2298         Reported by Matthias Bolte.
2299
2300         tests: drop unused link dependency
2301         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2302         * modules/dirent-safer-tests (Makefile.am): Likewise.
2303         * modules/fdopendir-tests (Makefile.am): Likewise.
2304         * modules/mkfifoat-tests (Makefile.am): Likewise.
2305         * modules/openat-safer-tests (Makefile.am): Likewise.
2306         * modules/openat-tests (Makefile.am): Likewise.
2307         * modules/readlinkat-tests (Makefile.am): Likewise.
2308         * modules/symlinkat-tests (Makefile.am): Likewise.
2309         * modules/linkat-tests (Makefile.am): Likewise.
2310         (Depends-on): Switch to filenamecat-lgpl.
2311         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2312         LIBINTL.
2313         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2314         * tests/test-linkat.c (main): Don't require xalloc.
2315
2316         hash, mgetgroups: drop xalloc dependency
2317         * lib/hash.c (includes): Adjust includes.
2318         * lib/mgetgroups.c (includes): Likewise.
2319         (xgetgroups): Move...
2320         * lib/xgetgroups.c: ...to new file.
2321         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2322         * modules/xgetgroups: New file, split from...
2323         * modules/mgetgroups: ...here.
2324         (Depends-on): Add xalloc-oversized.
2325         * modules/hash (Depends-on): Likewise.
2326         * modules/hash-tests (Depends-on): Drop xalloc.
2327         (test_hash_LDADD): Drop unused library.
2328         * tests/test-hash.c (main): Break xalloc dependency.
2329         (includes): Drop unused include.
2330
2331         xalloc-oversized: new module
2332         * modules/xalloc-oversized: New module.
2333         * modules/xalloc (Depends-on): Add it.
2334         * lib/xalloc.h (xalloc_oversized): Move...
2335         * lib/xalloc-oversized.h: ...into new file.
2336
2337         utimecmp: drop dependency on xmalloc
2338         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2339         due to memory pressure.
2340         * modules/utimecmp (Depends-on): Drop xalloc.
2341
2342 2011-04-27  Eric Blake  <eblake@redhat.com>
2343
2344         getcwd: fix mingw bugs
2345         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2346         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2347         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2348
2349 2011-04-27  Bruno Haible  <bruno@clisp.org>
2350
2351         mkstemps: Ensure declaration on MacOS X 10.5.
2352         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2353         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2354         MacOS X.
2355
2356 2011-04-27  Bruno Haible  <bruno@clisp.org>
2357
2358         mkstemp: More documentation.
2359         * doc/posix-functions/mkstemp.texi: Document header file problem on
2360         MacOS X.
2361
2362 2011-04-27  Bruno Haible  <bruno@clisp.org>
2363
2364         mkstemp: Tweak configure message when cross-compiling.
2365         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2366         result as a guess.
2367
2368 2011-04-27  Bruno Haible  <bruno@clisp.org>
2369
2370         clean-temp: Clarify what it does.
2371         * lib/clean-temp.h: Add more comments.
2372         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2373         module.
2374         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2375         * doc/glibc-functions/mkstemps.texi: Likewise.
2376         * doc/glibc-functions/mkostemps.texi: Likewise.
2377
2378 2011-04-27  Eric Blake  <eblake@redhat.com>
2379
2380         fchdir: avoid extra chdir and fix test
2381         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2382         getcwd-lgpl.
2383         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2384         have to be canonical.
2385         (canonicalize_file_name): Drop unused macro.
2386         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2387
2388         filenamecat-lgpl: fix licence
2389         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2390         when it was first created.
2391
2392         linkat, renameat: add missing dependency
2393         * modules/linkat (Depends-on): Require getcwd-lgpl.
2394         * modules/renameat (Depends-on): Likewise.
2395
2396         tests: reduce dependencies
2397         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2398         * tests/test-renameat.c (main): Likewise.
2399         * modules/linkat-tests (Depends-on): Relax dependency.
2400         * modules/renameat-tests (Depends-on): Likewise.
2401         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2402         dependency explicit.
2403
2404         save-cwd: reduce default dependency
2405         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2406         * lib/save-cwd.c: Update comments.
2407         * NEWS: Document the semantic change.
2408
2409         getcwd: enhance tests
2410         * tests/test-getcwd-lgpl.c: New file, taken from...
2411         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2412         repeat long path stress tests from m4 probe.
2413         * modules/getcwd-lgpl-tests: New module.
2414         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2415         * m4/getcwd-abort-bug.m4: Update comment.
2416         * m4/getcwd-path-max.m4: Likewise.
2417
2418         getcwd-lgpl: new module
2419         * modules/getcwd-lgpl: New module.
2420         * lib/getcwd-lgpl.c: New file.
2421         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2422         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2423         * modules/getcwd (configure.ac): Set C witness.
2424         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2425
2426         getcwd: tweak comments
2427         * m4/getcwd-abort-bug.m4: Fix comments.
2428         * m4/getcwd-path-max.m4: Likewise.
2429         * m4/getcwd.m4: Likewise.
2430
2431 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2432         and Eric Blake  <eblake@redhat.com>
2433
2434         mkstemp: replace if system version uses wrong permissions
2435         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2436         read/write mode bits set in file created by mkstemp.
2437         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2438
2439 2011-04-27  Eric Blake  <eblake@redhat.com>
2440
2441         passfd: avoid compiler warning
2442         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2443         Reported by Laine Stump.
2444
2445 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2446
2447         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2448         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2449
2450 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2451         and Eric Blake  <eblake@redhat.com>
2452
2453         mkstemp: mention clean-temp module
2454         * lib/mkstemp.c: Add comment.
2455         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2456
2457 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2458
2459         inttypes: also provide default values for 32-bit tests
2460         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2461         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2462
2463 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2464
2465         strtoumax: remove dependency on strtoimax
2466         This is like the strtoull change of yesterday.
2467         * modules/strtoumax (Files): Add lib/strtoimax.c.
2468         (Depends-on): Remove strtoimax and add verify.
2469
2470         inttypes-incomplete: new module
2471         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
2472         all but the PRI* and SCN* parts of gl_INTTYPES_H.
2473         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
2474         of gl_INTTYPES_H.
2475         (gl_INTTYPES_H): Rewrite in terms of these new macros.
2476         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
2477         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
2478         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
2479         * modules/strtoumax, modules/xstrtol (Depends-on):
2480         Depend on inttypes-incomplete, not inttypes.
2481         * modules/inttypes-incomplete: New module, containing the contents
2482         of the old modules/inttypes module, except that the Files: section
2483         omits m4/inttypes-pri.m4, and the configure.ac section invokes
2484         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
2485         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
2486         (Depends-on): Depend only on inttypes-incomplete.
2487         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
2488
2489         inttypes: omit now-redundant strtoimax and strtoumax work
2490         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
2491         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
2492
2493         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
2494         This supports apps that need pointers to strtoimax and strtoumax,
2495         and ports to HP-UX 11.00 64.bit, which has macros that expand to
2496         nonexistent functions.  See
2497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
2498         et seq.
2499         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
2500         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
2501         a macro.
2502         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2503
2504 2011-04-25  Simon Josefsson  <simon@josefsson.org>
2505
2506         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
2507
2508 2011-04-25  Bruno Haible  <bruno@clisp.org>
2509
2510         strtol, strtoul: Mark modules as obsolete.
2511         * modules/strtol (Status, Notice): New sections.
2512         * modules/strtoul (Status, Notice): New sections.
2513
2514 2011-04-25  Bruno Haible  <bruno@clisp.org>
2515
2516         strtod: Remove check for strtod, unless supporting old platforms.
2517         * modules/strtod-obsolete: New file.
2518         * m4/strtod-obsolete.m4: New file.
2519         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2520         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2521         * modules/strtod (Depends-on): Add strtod-obsolete.
2522         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
2523
2524 2011-04-25  Bruno Haible  <bruno@clisp.org>
2525
2526         strcase: Make module obsolete.
2527         * modules/strcase (Status, Notice): New sections.
2528
2529 2011-04-25  Bruno Haible  <bruno@clisp.org>
2530
2531         dup2: Remove check for dup2, unless supporting old obsolete platforms.
2532         * modules/dup2-obsolete: New file.
2533         * m4/dup2-obsolete.m4: New file.
2534         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
2535         gl_FUNC_DUP2_OBSOLETE is not also defined.
2536         * modules/dup2 (Depends-on): Add dup2-obsolete.
2537         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
2538
2539 2011-04-25  Bruno Haible  <bruno@clisp.org>
2540
2541         strnlen: Avoid memchr related link error on old obsolete platforms.
2542         * modules/memchr-obsolete: New file.
2543         * m4/memchr-obsolete.m4: New file.
2544         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
2545         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
2546         * modules/memchr (Depends-on): Add memchr-obsolete.
2547         * modules/strnlen (Depends-on): Likewise.
2548         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2549
2550 2011-04-25  Jim Meyering  <meyering@redhat.com>
2551
2552         maint.mk: makefile_at_at_check extend and clean up
2553         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
2554         in addition to */Makefile.am.
2555         Exempt legitimate uses of @VAR@ notation, e.g.,
2556         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
2557         Remove obsolete coreutils-specific comment.
2558         Prompted by discussion here:
2559         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
2560
2561 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2562
2563         strtoul: remove dependency on strtol
2564         This is so that 'configure' need not check for strtol merely because
2565         the application needs strtoul.
2566         * modules/strtoul (Files): Add lib/strtol.c.
2567         (Depends-on): Remove strtol.
2568
2569         strtoull: remove dependency on strtoul
2570         This is like the strtoll change.
2571         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
2572         (Depends-on): Remove strtoul.
2573
2574         strtoll: remove dependency on strtol
2575         This is so that 'configure' need not check for strtol merely because
2576         the application needs strtoll.
2577         * modules/strtoll (Files): Add lib/strtol.c.
2578         (Depends-on): Remove strtol.
2579
2580 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2581
2582         inttypes: Move some configure check to module 'imaxdiv'.
2583         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
2584         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
2585         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
2586
2587 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2588
2589         inttypes: Move some configure check to module 'imaxabs'.
2590         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
2591         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
2592         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
2593
2594 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2595
2596         inttypes: Remove configure tests that are not needed since 2009-12-31.
2597         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
2598         gl_cv_header_working_inttypes_h.
2599
2600 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2601
2602         * modules/strnlen (Depends-on): Remove memchr.
2603         The strnlen implementation doesn't need the memchr module's fixes; see
2604         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
2605
2606         strtol: remove dependency on wchar
2607         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
2608         * modules/strtol (Depends-on): Remove wchar.
2609
2610 2011-04-21  Eric Blake  <eblake@redhat.com>
2611
2612         passfd: fix test regression on Linux
2613         * modules/passfd-tests (configure.ac): Correct socketpair check.
2614
2615         passfd: speed up configure and drop unused code
2616         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
2617         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
2618         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
2619         Instead of probing at configure for unix_scm_rights_bsd44_way,
2620         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
2621         check to a struct member probe.
2622         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
2623         (sendfd, recvfd): Update preprocessor checks.
2624         * modules/passfd (Files): Reflect rename, and drop unused file.
2625         (Depends-on): Drop unused dependency.
2626
2627         passfd: allow compilation on mingw
2628         * modules/sys_socket (Depends-on): Add sys_uio.
2629         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
2630         iovec and a minimal struct msghdr.
2631         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
2632         * tests/test-sys_socket.c (main): Enhance test.
2633         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2634         guaranteed to provide what we need.
2635         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2636         * modules/passfd-tests (Depends-on): Add sys_wait.
2637         * tests/test-passfd.c (main): Skip test on mingw, for now.
2638         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2639         partial 'struct msghdr' implementation.
2640
2641         sys_uio: new module
2642         * modules/sys_uio: New module.
2643         * modules/sys_uio-tests: Likewise.
2644         * lib/sys_uio.in.h: New file.
2645         * m4/sys_uio_h.m4: Likewise.
2646         * tests/test-sys_uio.c: Likewise.
2647         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2648         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2649
2650 2011-04-20  Jim Meyering  <meyering@redhat.com>
2651
2652         useless-if-before-free: avoid false-positive
2653         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2654         disjunct so that it too requires a terminating ";".  Without that,
2655         this script would identify as useless one statement from gcc that
2656         was not:
2657           if (aligned_ptr)
2658             free (((void **) aligned_ptr) [-1]);
2659
2660 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2661
2662         doc: update users.txt.
2663         * users.txt: Add barcode.
2664
2665 2011-04-19  Bruno Haible  <bruno@clisp.org>
2666
2667         ioctl: Remove link dependency on native Windows.
2668         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2669         (gl_close_fn, gl_ioctl_fn): New types.
2670         (struct fd_hook): Renamed from struct close_hook. Change type of
2671         private_close_fn field. Add private_ioctl_fn field.
2672         (close_hook_fn): Add parameter for primary close method.
2673         (execute_close_hooks, execute_all_close_hooks): Likewise.
2674         (ioctl_hook_fn): New type.
2675         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2676         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2677         argument.
2678         (unregister_fd_hook): Renamed from unregister_close_hook.
2679         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2680         Don't include <unistd.h>.
2681         (close): Remove undef.
2682         (anchor): Update.
2683         (execute_close_hooks): Add argument for primary close method.
2684         (execute_all_close_hooks): Likewise.
2685         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2686         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2687         argument. Allow each argument to be NULL.
2688         (unregister_fd_hook): Renamed from unregister_close_hook.
2689         * lib/close.c (rpl_close): Pass 'close' function pointer to
2690         execute_all_close_hooks.
2691         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2692         (primary_ioctl): New function.
2693         (ioctl): Don't call ioctlsocket here. Instead, call
2694         execute_all_ioctl_hooks.
2695         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2696         close method.
2697         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2698         (fd_sockets_hook): Renamed from close_sockets_hook.
2699         (gl_sockets_startup, gl_sockets_cleanup): Update.
2700         * modules/fd-hook: Renamed from modules/close-hook. Update.
2701         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2702         * modules/sockets (Depends-on): Likewise.
2703         * modules/ioctl (Depends-on): Add fd-hook.
2704         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2705         GNULIB_SOCKET.
2706
2707 2011-04-19  Bruno Haible  <bruno@clisp.org>
2708
2709         Move the support of O_NONBLOCK in open() to the 'open' module.
2710         * modules/nonblocking (Depends-on): Remove 'open'.
2711         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2712         gl_cv_have_open_O_NONBLOCK.
2713         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2714         O_NONBLOCK support.
2715         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2716
2717 2011-04-17  Bruno Haible  <bruno@clisp.org>
2718
2719         pipe2: Simplify code.
2720         * lib/pipe2.c (pipe2): Reduce code duplication.
2721
2722 2011-04-17  Bruno Haible  <bruno@clisp.org>
2723
2724         nonblocking: Add comment.
2725         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2726
2727 2011-04-17  Bruno Haible  <bruno@clisp.org>
2728
2729         nonblocking: Add tests for sockets.
2730         * tests/test-nonblocking-socket.sh: New file.
2731         * tests/test-nonblocking-socket-main.c: New file.
2732         * tests/test-nonblocking-socket-child.c: New file.
2733         * tests/test-nonblocking-socket.h: New file.
2734         * tests/socket-server.h: New file.
2735         * tests/socket-client.h: New file.
2736         * modules/nonblocking-socket-tests: New file.
2737         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
2738
2739 2011-04-17  Bruno Haible  <bruno@clisp.org>
2740
2741         nonblocking: Add tests for pipes.
2742         * tests/test-nonblocking-pipe.sh: New file.
2743         * tests/test-nonblocking-pipe-main.c: New file.
2744         * tests/test-nonblocking-pipe-child.c: New file.
2745         * tests/test-nonblocking-pipe.h: New file.
2746         * tests/test-nonblocking-writer.h: New file.
2747         * tests/test-nonblocking-reader.h: New file.
2748         * tests/test-nonblocking-misc.h: New file.
2749         * modules/nonblocking-pipe-tests: New file.
2750         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
2751
2752 2011-04-16  Bruno Haible  <bruno@clisp.org>
2753
2754         gettext: Clarify the needed programmer actions.
2755         * modules/gettext (Notice): New field.
2756         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2757
2758 2011-04-16  Bruno Haible  <bruno@clisp.org>
2759
2760         strchrnul: Tweak last commit.
2761         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
2762         bug.
2763         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
2764         as in _GL_FUNCDECL_SYS.
2765         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
2766         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
2767
2768 2011-04-15  Eric Blake  <eblake@redhat.com>
2769
2770         strchrnul: work around cygwin bug
2771         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
2772         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
2773         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
2774         * modules/string (Makefile.am): Substitute it.
2775         * lib/string.in.h (strchrnul): Use it.
2776
2777 2011-04-15  Bruno Haible  <bruno@clisp.org>
2778
2779         Don't require lib/stdio-write.c when only module 'stdio' is used.
2780         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
2781         invocation.
2782         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
2783
2784 2011-04-14  Bruno Haible  <bruno@clisp.org>
2785
2786         Support non-blocking pipe I/O in read() on native Windows.
2787         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
2788         (read): New declaration.
2789         * lib/read.c: New file.
2790         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
2791         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
2792         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
2793         vscanf): New declarations.
2794         * lib/stdio-read.c: New file.
2795         * m4/read.m4: New file.
2796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
2797         REPLACE_READ.
2798         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
2799         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2800         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
2801         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
2802         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
2803         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2804         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2805         * modules/read: New file.
2806         * modules/nonblocking (Files): Add lib/stdio-read.c.
2807         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
2808         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
2809         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2810         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2811         * modules/pread (Depends-on): Add read.
2812         * modules/safe-read (Depends-on): Likewise.
2813         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
2814         gets, scanf, vfscanf, vscanf): Verify signatures.
2815         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
2816         problem with non-blocking pipes.
2817         * doc/posix-functions/fgetc.texi: Likewise.
2818         * doc/posix-functions/fgets.texi: Likewise.
2819         * doc/posix-functions/fread.texi: Likewise.
2820         * doc/posix-functions/fscanf.texi: Likewise.
2821         * doc/posix-functions/getc.texi: Likewise.
2822         * doc/posix-functions/getchar.texi: Likewise.
2823         * doc/posix-functions/gets.texi: Likewise.
2824         * doc/posix-functions/scanf.texi: Likewise.
2825         * doc/posix-functions/vfscanf.texi: Likewise.
2826         * doc/posix-functions/vscanf.texi: Likewise.
2827
2828 2011-04-14  Bruno Haible  <bruno@clisp.org>
2829
2830         Support non-blocking pipe I/O in write() on native Windows.
2831         * lib/write.c (rpl_write): Split a write request that failed merely
2832         because the byte count was larger than the pipe buffer's size.
2833         * doc/posix-functions/write.texi: Mention the problem with large byte
2834         counts.
2835
2836 2011-04-14  Bruno Haible  <bruno@clisp.org>
2837
2838         wchar: Ensure that wchar_t gets defined on uClibc.
2839         * lib/wchar.in.h: On uClibc, include <stddef.h>.
2840         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
2841
2842 2011-04-13  Bruno Haible  <bruno@clisp.org>
2843
2844         safe-write, full-read: Avoid unnecessary compilation units.
2845         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
2846         (Depends-on): Remove safe-read. Add ssize_t.
2847         * modules/full-read (Files): Add lib/full-write.c.
2848         (Depends-on): Add full-write.
2849
2850 2011-04-13  Bruno Haible  <bruno@clisp.org>
2851
2852         Support non-blocking pipe I/O and SIGPIPE in pwrite().
2853         * modules/pwrite (Depends-on): Add 'write'.
2854
2855 2011-04-13  Bruno Haible  <bruno@clisp.org>
2856
2857         Support non-blocking pipe I/O in write() on native Windows.
2858         * lib/unistd.in.h (write): Enable replacement also if
2859         GNULIB_UNISTD_H_NONBLOCKING is 1.
2860         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
2861         (rpl_write): When failing to write on a non-blocking pipe, change
2862         errno from ENOSPC to EAGAIN.
2863         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
2864         putchar, puts, vfprintf, vprintf): Enable replacement also if
2865         GNULIB_STDIO_H_NONBLOCKING is 1.
2866         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
2867         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
2868         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
2869         CALL_WITH_SIGPIPE_EMULATION.
2870         (CALL_WITH_SIGPIPE_EMULATION): Use them.
2871         * m4/nonblocking.m4: New file.
2872         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
2873         for non-blocking I/O support.
2874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2875         GNULIB_UNISTD_H_NONBLOCKING.
2876         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
2877         required for non-blocking I/O support.
2878         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
2879         * modules/nonblocking (Files): Add m4/nonblocking.m4,
2880         lib/stdio-write.c, m4/asm-underscore.m4.
2881         (Depends-on): Add stdio, unistd.
2882         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
2883         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
2884         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
2885         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
2886         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
2887         problem with non-blocking pipes.
2888         * doc/posix-functions/fputc.texi: Likewise.
2889         * doc/posix-functions/fputs.texi: Likewise.
2890         * doc/posix-functions/fwrite.texi: Likewise.
2891         * doc/posix-functions/printf.texi: Likewise.
2892         * doc/posix-functions/putc.texi: Likewise.
2893         * doc/posix-functions/putchar.texi: Likewise.
2894         * doc/posix-functions/puts.texi: Likewise.
2895         * doc/posix-functions/vfprintf.texi: Likewise.
2896         * doc/posix-functions/vprintf.texi: Likewise.
2897         * doc/posix-functions/write.texi: Likewise.
2898
2899 2011-04-10  Jim Meyering  <meyering@redhat.com>
2900
2901         maint.mk: prohibit doubled words
2902         Detect them also when they're separated by a newline.
2903         There are 3 ways to customize it:
2904           - disable the test on a per file basis, as usual with rules using
2905             $(VC_LIST_EXCEPT)
2906           - replace the default doubled-word-selecting regexp (affects all files)
2907           - ignore a particular file-vs-doubled-word match
2908         I nearly used that last one to ignore the "is is" match in
2909         coreutils' NEWS file, since the text was "ls -is is ..."
2910         To do that, I would have added this line to cfg.mk:
2911           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
2912         but it would have ignored any "is is" match in NEWS.
2913         Low probability, but still...
2914         Instead, I changed the text, slightly:
2915           -  ls -is is now consistent with ls -lis in ignoring values returned
2916           +  "ls -is" is now consistent with ls -lis in ignoring values returned
2917         * top/maint.mk (prohibit_double_word_RE_): Provide default.
2918         (prohibit_doubled_word_): Define.
2919         (sc_prohibit_doubled_word): New rule.
2920         (sc_prohibit_the_the): Remove.  Subsumed by the above.
2921
2922 2011-04-10  Jim Meyering  <meyering@redhat.com>
2923
2924         maint: fix doubled-word typo in comment
2925         * m4/gethostname.m4: s/is is/it is/
2926         * m4/getdomainname.m4: Likewise.
2927
2928 2011-04-10  Jim Meyering  <meyering@redhat.com>
2929
2930         maint: remove doubled word: s/it it/it/
2931         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
2932
2933 2011-04-10  Jim Meyering  <meyering@redhat.com>
2934
2935         maint.mk: remove useless semicolon and backslash
2936         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
2937         semicolon and backslash.
2938
2939 2011-04-10  Bruno Haible  <bruno@clisp.org>
2940
2941         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
2942         * modules/stdint-tests (Depends-on): Add wchar.
2943
2944 2011-04-10  Jim Meyering  <meyering@redhat.com>
2945
2946         maint: remove doubled words in comments, e.g., s/a a/a/
2947         * lib/strptime.c (day_of_the_week): s/the the/the/
2948         * tests/test-chown.h (test_chown): s/a a/a/
2949
2950         test-chown.h: correct a cast
2951         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
2952         when the destination is a stat.st_gid.
2953
2954 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
2955
2956         getaddrinfo: Fix test for sa_len member.
2957         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
2958         include <sys/types.h> before <sys/socket.h>.
2959
2960 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
2961
2962         maint: change "can not" to "cannot"
2963         * doc/posix-functions/iconv.texi (iconv): This one crossed line
2964         boundaries.
2965
2966 2011-04-09  Jim Meyering  <meyering@redhat.com>
2967
2968         maint: change "a a" to "a"
2969         * tests/test-lchown.h (test_lchown): s/a a/a/
2970
2971         maint.mk: prohibit \<the the\>
2972         * top/maint.mk (sc_prohibit_the_the): New rule.
2973
2974         maint: fix "the the" in comment
2975         * lib/count-one-bits.h: s/the the/the/
2976
2977         maint: change "can not" to "cannot"
2978         But do not change the occurrences in maintain.texi or in
2979         build-aux/po/Makefile.in.in, which I presume comes from gettext.
2980         * doc/gnulib-tool.texi: s/can not/cannot/
2981         * doc/posix-functions/accept.texi (accept): Likewise.
2982         * doc/posix-functions/socket.texi (socket): Likewise.
2983         * lib/mbrtowc.c: Likewise.
2984
2985         maint.mk: prohibit use of "can not"
2986         * top/maint.mk (sc_prohibit_can_not): New rule.
2987         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2988
2989 2011-04-09  Bruno Haible  <bruno@clisp.org>
2990
2991         careadlinkat: Guard against misuse of careadlinkatcwd.
2992         * lib/careadlinkat.c: Include <stdlib.h>.
2993         (careadlinkatcwd): Check that the fd argument is as expected.
2994
2995 2011-04-09  Bruno Haible  <bruno@clisp.org>
2996
2997         careadlinkat: Use common coding style.
2998         * lib/careadlinkat.c: Move gnulib includes after system includes.
2999
3000 2011-04-09  Bruno Haible  <bruno@clisp.org>
3001
3002         careadlinkat: Clarify specification.
3003         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3004         (careadlinkatcwd): Add comment.
3005         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3006
3007 2011-04-09  Bruno Haible  <bruno@clisp.org>
3008
3009         areadlinkat: Avoid link error on many platforms.
3010         * modules/areadlinkat (Depends-on): Add areadlink.
3011
3012 2011-04-09  Bruno Haible  <bruno@clisp.org>
3013
3014         allocator, careadlinkat: Fix double-inclusion guard.
3015         * lib/allocator.h: Fix double-inclusion guard.
3016         * lib/careadlinkat.h: Likewise.
3017
3018 2011-04-09  Bruno Haible  <bruno@clisp.org>
3019
3020         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3021         * lib/relocwrapper.c: Update dependencies hierarchy.
3022         * build-aux/install-reloc: Update list of files to be compiled.
3023         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3024         lib/allocator.[hc].
3025
3026 2011-04-08  Eric Blake  <eblake@redhat.com>
3027
3028         strftime: silence gnulib-tool warning
3029         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3030
3031 2011-04-08  Bruno Haible  <bruno@clisp.org>
3032
3033         verify: Fix syntax error with GCC 4.6 in C++ mode.
3034         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3035         (HAVE_STATIC_ASSERT): New macro.
3036         (verify_true, verify): Use 'static_assert' if it is supported and
3037         '_Static_assert' is not supported.
3038
3039 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3040
3041         allocator: New module.
3042         * modules/allocator, lib/allocator.c: New files.
3043         * lib/allocator.h (stdlib_allocator): New decl.
3044         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3045         Remove.  Do not include <stdlib.h>.
3046         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3047         * modules/careadlinkat (Files): Remove lib/allocator.h.
3048         (Depends-on): Add allocator.
3049
3050         stdlib: let modules use system malloc, realloc
3051         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3052         if !_GL_USE_STDLIB_ALLOC.
3053         (malloc, realloc): Limit this change to a smaller scope.
3054
3055         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3056         (malloc, realloc): Don't #undef; no longer needed.
3057         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3058         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3059         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3060         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3061         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3062         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3063         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3064         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3065
3066         careadlinkat: rename members to avoid problem
3067         * lib/allocator.h (struct allocator): Rename members from
3068         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3069         and realloc are #define'd.  Reported by Eric Blake in
3070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3071         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3072
3073 2011-04-08  Eric Blake  <eblake@redhat.com>
3074
3075         nonblocking: reduce dependency
3076         * tests/test-nonblocking.c: Only test sockets when in use.
3077         * modules/nonblocking-tests (Depends-on): Drop socket.
3078         (Makefile.am): Link even if sockets are not present.
3079         * modules/pipe2-tests (Makefile.am): Likewise.
3080         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3081
3082         pipe2: fix O_NONBLOCK support on mingw
3083         * modules/pipe2 (Depends-on): Add nonblocking.
3084         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3085         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3086         * tests/test-nonblocking.c (main): Likewise.
3087         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3088
3089         fcntl-h: fix O_ACCMODE on cygwin
3090         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3091         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3092
3093         pipe-filter: drop O_NONBLOCK workarounds
3094         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3095         * modules/pipe-filter-ii (Depends-on): Likewise.
3096         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3097
3098         nonblocking: provide O_NONBLOCK for mingw
3099         * modules/nonblocking (Depends-on): Add open.
3100         (configure.ac): Set new witness macro.
3101         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3102         * modules/fcntl-h (Makefile.am): Substitute it.
3103         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3104         nonblocking module is in use.
3105         * lib/nonblocking.c: Adjust portability test.
3106         * lib/open.c (open): Don't let native open see gnulib flag.
3107         * tests/test-fcntl-h.c (main): Enhance test.
3108         * tests/test-open.h (test_open): Likewise.
3109         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3110
3111         careadlinkat: fix compilation error on mingw
3112         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3113         within struct allocator.
3114
3115 2011-04-06  Eric Blake  <eblake@redhat.com>
3116
3117         binary-io: relicense under LGPLv2+
3118         * modules/binary-io (License): Relax to LGPLv2+.
3119         Requested for libvirt, and required by pipe2.
3120
3121 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3122
3123         verify: use _Static_assert if available
3124         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3125         (verify_true, verify): Use it if available.  This generates better
3126         diagnostics with GCC 4.6.0 and later.
3127
3128 2011-04-05  Bruno Haible  <bruno@clisp.org>
3129
3130         Remove leftover generated .h files after config.status changed.
3131
3132         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3133         GL_GENERATE_ALLOCA_H.
3134         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3135         GL_GENERATE_ALLOCA_H evaluates to false.
3136
3137         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3138         GL_GENERATE_ARGZ_H.
3139         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3140         evaluates to false.
3141
3142         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3143         GL_GENERATE_BYTESWAP_H.
3144         * modules/byteswap (Makefile.am): Remove byteswap.h if
3145         GL_GENERATE_BYTESWAP_H evaluates to false.
3146
3147         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3148         GL_GENERATE_ERRNO_H.
3149         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3150         evaluates to false.
3151
3152         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3153         GL_GENERATE_FLOAT_H.
3154         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3155         evaluates to false.
3156
3157         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3158         GL_GENERATE_FNMATCH_H.
3159         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3160         GL_GENERATE_FNMATCH_H evaluates to false.
3161
3162         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3163         GL_GENERATE_GLOB_H.
3164         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3165         evaluates to false.
3166
3167         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3168         automake conditional GL_GENERATE_ICONV_H.
3169         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3170         evaluates to false.
3171
3172         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3173         GL_GENERATE_NETINET_IN_H.
3174         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3175         GL_GENERATE_NETINET_IN_H evaluates to false.
3176
3177         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3178         conditional GL_GENERATE_PTHREAD_H.
3179         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3180         * modules/pthread (Makefile.am): Remove pthread.h if
3181         GL_GENERATE_PTHREAD_H evaluates to false.
3182
3183         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3184         GL_GENERATE_SCHED_H.
3185         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3186         evaluates to false.
3187
3188         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3189         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3190         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3191         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3192
3193         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3194         GL_GENERATE_STDARG_H.
3195         * modules/stdarg (Makefile.am): Remove stdarg.h if
3196         GL_GENERATE_STDARG_H evaluates to false.
3197
3198         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3199         GL_GENERATE_STDBOOL_H.
3200         * modules/stdbool (Makefile.am): Remove stdbool.h if
3201         GL_GENERATE_STDBOOL_H evaluates to false.
3202
3203         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3204         conditional GL_GENERATE_STDDEF_H.
3205         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3206         * modules/stddef (Makefile.am): Remove stddef.h if
3207         GL_GENERATE_STDDEF_H evaluates to false.
3208
3209         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3210         GL_GENERATE_STDINT_H.
3211         * modules/stdint (Makefile.am): Remove stdint.h if
3212         GL_GENERATE_STDINT_H evaluates to false.
3213
3214         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3215         GL_GENERATE_SYSEXITS_H.
3216         * modules/sysexits (Makefile.am): Remove sysexits.h if
3217         GL_GENERATE_SYSEXITS_H evaluates to false.
3218
3219         Reported by Karl Berry and Ralf Wildenhues.
3220
3221 2011-04-05  Bruno Haible  <bruno@clisp.org>
3222
3223         Ensure to rebuild generated .h files when config.status has changed.
3224         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3225         config.status.
3226         * modules/ctype (Makefile.am): Likewise.
3227         * modules/dirent (Makefile.am): Likewise.
3228         * modules/errno (Makefile.am): Likewise.
3229         * modules/fcntl-h (Makefile.am): Likewise.
3230         * modules/float (Makefile.am): Likewise.
3231         * modules/getopt-posix (Makefile.am): Likewise.
3232         * modules/glob (Makefile.am): Likewise.
3233         * modules/iconv-h (Makefile.am): Likewise.
3234         * modules/inttypes (Makefile.am): Likewise.
3235         * modules/langinfo (Makefile.am): Likewise.
3236         * modules/locale (Makefile.am): Likewise.
3237         * modules/math (Makefile.am): Likewise.
3238         * modules/netdb (Makefile.am): Likewise.
3239         * modules/netinet_in (Makefile.am): Likewise.
3240         * modules/poll-h (Makefile.am): Likewise.
3241         * modules/pthread (Makefile.am): Likewise.
3242         * modules/pty (Makefile.am): Likewise.
3243         * modules/sched (Makefile.am): Likewise.
3244         * modules/search (Makefile.am): Likewise.
3245         * modules/selinux-h (Makefile.am): Likewise.
3246         * modules/signal (Makefile.am): Likewise.
3247         * modules/spawn (Makefile.am): Likewise.
3248         * modules/stdarg (Makefile.am): Likewise.
3249         * modules/stdbool (Makefile.am): Likewise.
3250         * modules/stddef (Makefile.am): Likewise.
3251         * modules/stdint (Makefile.am): Likewise.
3252         * modules/stdio (Makefile.am): Likewise.
3253         * modules/stdlib (Makefile.am): Likewise.
3254         * modules/string (Makefile.am): Likewise.
3255         * modules/strings (Makefile.am): Likewise.
3256         * modules/sys_file (Makefile.am): Likewise.
3257         * modules/sys_ioctl (Makefile.am): Likewise.
3258         * modules/sys_select (Makefile.am): Likewise.
3259         * modules/sys_socket (Makefile.am): Likewise.
3260         * modules/sys_stat (Makefile.am): Likewise.
3261         * modules/sys_time (Makefile.am): Likewise.
3262         * modules/sys_times (Makefile.am): Likewise.
3263         * modules/sys_utsname (Makefile.am): Likewise.
3264         * modules/sys_wait (Makefile.am): Likewise.
3265         * modules/sysexits (Makefile.am): Likewise.
3266         * modules/termios (Makefile.am): Likewise.
3267         * modules/time (Makefile.am): Likewise.
3268         * modules/unistd (Makefile.am): Likewise.
3269         * modules/wchar (Makefile.am): Likewise.
3270         * modules/wctype-h (Makefile.am): Likewise.
3271         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3272
3273 2011-04-05  Bruno Haible  <bruno@clisp.org>
3274
3275         pipe2: Relicense under LGPLv2+.
3276         * modules/pipe2 (License): Change to LGPLv2+.
3277         Requested by Eric Blake, for libvirt.
3278
3279 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3280
3281         bootstrap: compute gnulib_extra_files after updating build_aux
3282         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3283         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3284
3285 2011-04-05  Eric Blake  <eblake@redhat.com>
3286
3287         bootstrap: preserve git whitelist item sorting
3288         * build-aux/bootstrap (sort_patterns): New function.
3289         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3290
3291 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3292
3293         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3294         sc_space_tab check.
3295
3296 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3297
3298         areadlink, areadlinkat: rewrite in terms of careadlinkat
3299         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3300         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3301         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3302         (malloc, realloc): Remove #undefs.
3303         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3304         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3305         readlink, ssize_t, stdint, unistd.
3306         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3307         areadlink, stdint.
3308
3309         careadlinkat: new module
3310         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3311         * modules/careadlinkat: New files, written by me with
3312         a review and feedback from Ben Pfaff in
3313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3314
3315 2011-04-01  Bruno Haible  <bruno@clisp.org>
3316
3317         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3318         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3319         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3320         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3321         Reported by Bruce Korb <bruce.korb@gmail.com>.
3322
3323 2011-04-01  Bruno Haible  <bruno@clisp.org>
3324
3325         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3326         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3327         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3328         * modules/wcpcpy (Depends-on): Add extensions.
3329         * modules/wcpncpy (Depends-on): Likewise.
3330         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3331         systems.
3332         * doc/posix-functions/wcpncpy.texi: Likewise.
3333         * doc/posix-functions/wcwidth.texi: Likewise.
3334
3335 2011-03-31  Eric Blake  <eblake@redhat.com>
3336
3337         nonblocking: fix mingw test failures
3338         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3339         non-blocking flag on regular file.
3340         (get_nonblocking_flag): Set errno on invalid fd.
3341         * tests/test-nonblocking.c (main): Avoid test failure on
3342         directories if fchdir is not active.
3343         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3344
3345 2011-03-31  Bruno Haible  <bruno@clisp.org>
3346
3347         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3348         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3349         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3350         Reported by Simon Josefsson <simon@josefsson.org>.
3351
3352 2011-03-31  Bruno Haible  <bruno@clisp.org>
3353         and Eric Blake  <eblake@redhat.com>
3354
3355         nonblocking: new module
3356         * modules/nonblocking: New module.
3357         * modules/nonblocking-tests: Likewise.
3358         * lib/nonblocking.h: New file.
3359         * lib/nonblocking.c: Likewise.
3360         * tests/test-nonblocking.c: New test.
3361         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3362
3363 2011-03-30  Bruno Haible  <bruno@clisp.org>
3364
3365         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3366         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3367         instead of 'printf' format for GCC >= 4.4.
3368         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3369         (fprintf, printf, vfprintf, vprintf): Declare with
3370         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3371         the system's vfprintf() function.
3372         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3373
3374 2011-03-30  Eric Blake  <eblake@redhat.com>
3375
3376         passfd: fix scoping bug
3377         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3378         before sendmsg/recvmsg.
3379
3380         passfd: standardize coding conventions
3381         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3382         can be learned at compile time.
3383         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3384         ifdefs.
3385         (sendfd, recvfd): Follow gnulib code conventions.
3386
3387         passfd: fix incorrect sendmsg arguments
3388         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3389         incorrect msg_controllen value.
3390         * modules/passfd-tests (Depends-on): Check for alarm.
3391         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3392         Reported by Bastien ROUCARIES.
3393
3394 2011-03-30  Bruno Haible  <bruno@clisp.org>
3395
3396         c-strcasestr: Relicense under LGPLv2+.
3397         * modules/c-strcasestr (License): Change to LGPLv2+.
3398         Requested by Eric Blake, for libvirt.
3399
3400 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3401
3402         * users.txt: Add libidn2.  Fix libtasn1 link.
3403
3404 2011-03-30  Jim Meyering  <meyering@redhat.com>
3405
3406         tests: readlink* ("",... fails with EINVAL on newer kernels
3407         readlink and readlinkat have typically failed with ENOENT for
3408         the invalid, empty file name,  "".  However, with the advent
3409         of linux-2.6.39, they fail with EINVAL.
3410         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3411         when operating on the empty file name.
3412         * tests/test-readlink.h (test_readlink): Likewise.
3413
3414 2011-03-29  Bruno Haible  <bruno@clisp.org>
3415
3416         Relicense some modules under LGPLv2+, for libidn2.
3417         * modules/array-mergesort (License): Change to LGPLv2+.
3418         * modules/c-strcaseeq (License): Likewise.
3419         * modules/striconveh (License): Likewise.
3420         * modules/striconveha (License): Likewise.
3421         * modules/uniconv/base (License): Likewise.
3422         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3423         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3424         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3425         * modules/unictype/base (License): Likewise.
3426         * modules/unictype/bidiclass-of (License): Likewise.
3427         * modules/unictype/category-M (License): Likewise.
3428         * modules/unictype/category-none (License): Likewise.
3429         * modules/unictype/category-of (License): Likewise.
3430         * modules/unictype/category-test (License): Likewise.
3431         * modules/unictype/category-test-withtable (License): Likewise.
3432         * modules/unictype/combining-class (License): Likewise.
3433         * modules/unictype/joiningtype-of (License): Likewise.
3434         * modules/unictype/scripts (License): Likewise.
3435         * modules/uninorm/base (License): Likewise.
3436         * modules/uninorm/canonical-decomposition (License): Likewise.
3437         * modules/uninorm/composition (License): Likewise.
3438         * modules/uninorm/decompose-internal (License): Likewise.
3439         * modules/uninorm/decomposition-table (License): Likewise.
3440         * modules/uninorm/nfc (License): Likewise.
3441         * modules/uninorm/nfd (License): Likewise.
3442         * modules/uninorm/u32-normalize (License): Likewise.
3443         * modules/unistr/base (License): Likewise.
3444         * modules/unistr/u32-cpy (License): Likewise.
3445         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3446         * modules/unistr/u32-to-u8 (License): Likewise.
3447         * modules/unistr/u32-uctomb (License): Likewise.
3448         * modules/unistr/u8-check (License): Likewise.
3449         * modules/unistr/u8-mblen (License): Likewise.
3450         * modules/unistr/u8-mbtouc (License): Likewise.
3451         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3452         * modules/unistr/u8-mbtoucr (License): Likewise.
3453         * modules/unistr/u8-prev (License): Likewise.
3454         * modules/unistr/u8-strlen (License): Likewise.
3455         * modules/unistr/u8-to-u32 (License): Likewise.
3456         * modules/unistr/u8-uctomb (License): Likewise.
3457         * modules/unitypes (License): Likewise.
3458         Requested by Simon Josefsson.
3459
3460 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3461
3462         lib-symbol-visibility: Add a notice.
3463         * modules/lib-symbol-visibility (Notice): New field.
3464
3465 2011-03-29  Bruno Haible  <bruno@clisp.org>
3466
3467         getaddrinfo: Doc fix.
3468         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
3469         section "fixed in Gnulib".
3470
3471 2011-03-28  Simon Josefsson  <simon@josefsson.org>
3472
3473         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
3474         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
3475
3476 2011-03-26  Bruno Haible  <bruno@clisp.org>
3477
3478         unictype/property-byname: Reduce the number of load-time relocations.
3479         * lib/unictype/pr_byname.c: Include <stdlib.h>.
3480         (UC_PROPERTY_INDEX_*): New enumeration values.
3481         (uc_property_byname): Convert an index from the lookup table to an
3482         uc_property_t.
3483         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
3484         values.
3485
3486 2011-03-26  Bruno Haible  <bruno@clisp.org>
3487
3488         unictype/property-byname: Allow omitted word separators and aliases.
3489         * lib/unictype/pr_byname.gperf: Add property names without word
3490         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
3491         for 'space'.
3492
3493 2011-03-26  Bruno Haible  <bruno@clisp.org>
3494
3495         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
3496         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
3497         also hyphens to space.
3498         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
3499         without spaces.
3500         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
3501
3502 2011-03-26  Bruno Haible  <bruno@clisp.org>
3503
3504         unictype/joiningtype-byname: Recognize long names as well.
3505         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
3506         a long name.
3507         * lib/unictype/joiningtype_byname.c: Include <string.h>,
3508         unictype/joiningtype_byname.h.
3509         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
3510         * lib/unictype/joiningtype_byname.gperf: New file.
3511         * modules/unictype/joiningtype-byname (Files): Add
3512         lib/unictype/joiningtype_byname.gperf.
3513         (Depends-on): Add gperf.
3514         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
3515         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
3516         long names.
3517
3518         Tests for module 'unictype/joiningtype-longname'.
3519         * modules/unictype/joiningtype-longname-tests: New file.
3520         * tests/unictype/test-joiningtype_longname.c: New file.
3521
3522         New module 'unictype/joiningtype-longname'.
3523         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
3524         * lib/unictype/joiningtype_longname.c: New file.
3525         * modules/unictype/joiningtype-longname: New file.
3526         * modules/unictype/joiningtype-all (Depends-on): Add
3527         unictype/joiningtype-longname.
3528
3529 2011-03-26  Bruno Haible  <bruno@clisp.org>
3530
3531         unictype/bidiclass-byname: Recognize long names as well.
3532         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
3533         name.
3534         * lib/unictype/bidi_byname.c: Include <string.h>,
3535         unictype/bidi_byname.h.
3536         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
3537         * lib/unictype/bidi_byname.gperf: New file.
3538         * modules/unictype/bidiclass-byname (Files): Add
3539         lib/unictype/bidi_byname.gperf.
3540         (Depends-on): Add gperf.
3541         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
3542         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
3543         long names.
3544
3545         Tests for module 'unictype/bidiclass-longname'.
3546         * modules/unictype/bidiclass-longname-tests: New file.
3547         * tests/unictype/test-bidi_longname.c: New file.
3548
3549         New module 'unictype/bidiclass-longname'.
3550         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
3551         * lib/unictype/bidi_longname.c: New file.
3552         * modules/unictype/bidiclass-longname: New file.
3553         * modules/unictype/bidiclass-all (Depends-on): Add
3554         unictype/bidiclass-longname.
3555
3556 2011-03-26  Bruno Haible  <bruno@clisp.org>
3557
3558         unictype/bidi*: Rename modules.
3559         * modules/unictype/bidiclass-all: Renamed from
3560         modules/unictype/bidicategory-all.
3561         * modules/unictype/bidiclass-name: Renamed from
3562         modules/unictype/bidiclass-name.
3563         (Description): Update.
3564         * modules/unictype/bidiclass-name-tests: Renamed from
3565         modules/unictype/bidicategory-name-tests.
3566         * modules/unictype/bidiclass-byname: Renamed from
3567         modules/unictype/bidicategory-byname.
3568         (Description): Update.
3569         * modules/unictype/bidiclass-byname-tests: Renamed from
3570         modules/unictype/bidicategory-byname-tests.
3571         * modules/unictype/bidiclass-of: Renamed from
3572         modules/unictype/bidicategory-of.
3573         (Description): Update.
3574         * modules/unictype/bidiclass-of-tests: Renamed from
3575         modules/unictype/bidicategory-of-tests.
3576         * modules/unictype/bidiclass-test: Renamed from
3577         modules/unictype/bidicategory-test.
3578         (Description): Update.
3579         * modules/unictype/bidiclass-test-tests: Renamed from
3580         modules/unictype/bidicategory-test-tests.
3581         * modules/unictype/bidicategory-all: New file, a simple redirection.
3582         * modules/unictype/bidicategory-name: Likewise.
3583         * modules/unictype/bidicategory-byname: Likewise.
3584         * modules/unictype/bidicategory-of: Likewise.
3585         * modules/unictype/bidicategory-test: Likewise.
3586         * modules/unictype/property-bidi-* (Dependencies): Update.
3587         * lib/unictype/bidi_*.c: Update comment.
3588
3589 2011-03-26  Bruno Haible  <bruno@clisp.org>
3590
3591         unictype/bidi*: Rename functions, part 2.
3592         * modules/unictype/bidicategory-name (configure.ac): Update required
3593         libunistring version.
3594         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
3595
3596 2011-03-25  Bruno Haible  <bruno@clisp.org>
3597
3598         New module 'unictype/combining-class-all'.
3599         * modules/unictype/combining-class-all: New file.
3600
3601         Tests for module 'unictype/combining-class-byname'.
3602         * modules/unictype/combining-class-byname-tests: New file.
3603         * tests/unictype/test-combiningclass_byname.c: New file.
3604
3605         New module 'unictype/combining-class-byname'.
3606         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
3607         * lib/unictype/combiningclass_byname.c: New file.
3608         * lib/unictype/combiningclass_byname.gperf: New file.
3609         * modules/unictype/combining-class-byname: New file.
3610
3611         Tests for module 'unictype/combining-class-longname'.
3612         * modules/unictype/combining-class-longname-tests: New file.
3613         * tests/unictype/test-combiningclass_longname.c: New file.
3614
3615         New module 'unictype/combining-class-longname'.
3616         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
3617         * lib/unictype/combiningclass_longname.c: New file.
3618         * modules/unictype/combining-class-longname: New file.
3619
3620         Tests for module 'unictype/combining-class-name'.
3621         * modules/unictype/combining-class-name-tests: New file.
3622         * tests/unictype/test-combiningclass_name.c: New file.
3623
3624         New module 'unictype/combining-class-name'.
3625         * lib/unictype.in.h (uc_combining_class_name): New declaration.
3626         * lib/unictype/combiningclass_name.c: New file.
3627         * modules/unictype/combining-class-name: New file.
3628
3629 2011-03-25  Bruno Haible  <bruno@clisp.org>
3630
3631         unictype/combining-class: Rename source files.
3632         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3633         of unictype/combining.h.
3634         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3635         Update.
3636         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3637         * modules/unictype/combining-class (Description): Fix.
3638         (Files, Makefile.am): Update.
3639         * tests/unictype/test-combiningclass.c: Renamed from
3640         tests/unictype/test-combining.c.
3641         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3642
3643 2011-03-25  Bruno Haible  <bruno@clisp.org>
3644
3645         unictype: Update list of canonical combining classes.
3646         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3647
3648 2011-03-25  Bruno Haible  <bruno@clisp.org>
3649
3650         unictype/category-byname: Recognize long names as well.
3651         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3652         a long name.
3653         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3654         unictype/categ_byname.h.
3655         (UC_CATEGORY_INDEX_*): New enumeration values.
3656         (uc_general_category_byname): Use uc_general_category_lookup and
3657         convert from index to value.
3658         * lib/unictype/categ_byname.gperf: New file.
3659         * modules/unictype/category-byname (Files): Add
3660         lib/unictype/categ_byname.gperf.
3661         (Depends-on): Add gperf.
3662         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3663         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3664         long names.
3665
3666         Tests for module 'unictype/category-longname'.
3667         * modules/unictype/category-longname-tests: New file.
3668         * tests/unictype/test-categ_longname.c: New file.
3669
3670         New module 'unictype/category-longname'.
3671         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3672         * lib/unictype/categ_longname.c: New file.
3673         * modules/unictype/category-longname: New file.
3674         * modules/unictype/category-all (Depends-on): Add it.
3675
3676 2011-03-25  Bruno Haible  <bruno@clisp.org>
3677
3678         Tests for module 'unictype/category-LC'.
3679         * modules/unictype/category-LC-tests: New file.
3680         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3681
3682         New module 'unictype/category-LC'.
3683         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3684         (UC_CATEGORY_LC): New declaration.
3685         (UC_CASED_LETTER): New macro.
3686         * lib/gen-uni-tables.c (is_category_LC): New function.
3687         (output_categories): Also handle category LC.
3688         (UC_CATEGORY_MASK_LC): New enumeration value.
3689         (general_category_byname): Also handle category LC.
3690         * lib/unictype/categ_LC.c: New file.
3691         * lib/unictype/categ_LC.h: New file, automatically generated.
3692         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3693         category LC.
3694         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3695         * modules/unictype/category-LC: New file.
3696         * modules/unictype/category-byname (Depends-on): Add
3697         unictype/category-LC.
3698         * modules/unictype/category-all (Depends-on): Likewise.
3699
3700 2011-03-25  Eric Blake  <eblake@redhat.com>
3701
3702         xmalloc: revert yesterday's regression
3703         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3704         realloc's underlying behavior (allowing allocation of zero-size
3705         objects, especially if malloc-gnu is also in use).
3706
3707 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3708
3709         maint.mk: add missing version to VC-tag
3710         * top/maint.mk: git tag was missing actual tag name; add it.
3711
3712         valgrind: do leak checking, and exit with code 1 on error (not 0)
3713         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3714         to VALGRIND.
3715
3716 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3717
3718         posix-modules: say what it does.
3719         * posix-modules: Add a line to the --help output saying what it does.
3720
3721 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3722
3723         xmalloc: Do not leak if underlying realloc is C99 compatible.
3724         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3725         This avoids a leak on C99-based systems.  See
3726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3727
3728 2011-03-24  Eric Blake  <eblake@redhat.com>
3729
3730         realloc: document portability problem
3731         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3732         passing 0 size to realloc.
3733
3734 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3735
3736         doc: update users.txt
3737         * users.txt: Add cvsps, tmpwatch
3738
3739 2011-03-23  Matt Rice  <ratmice@gmail.com>
3740
3741         doc: update users.txt
3742         * users.txt: Add gdb.
3743
3744 2011-03-23  Jim Meyering  <meyering@redhat.com>
3745
3746         doc: update users.txt
3747         Looking through matches up to the following URL (there are still
3748         several more pages), I found several projects that use gnulib:
3749         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
3750         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
3751         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
3752
3753 2011-03-22  Bruno Haible  <bruno@clisp.org>
3754
3755         unictype/bidi*: Rename functions.
3756         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
3757         uc_bidi_class, uc_is_bidi_class): New declarations.
3758         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
3759         uc_bidi_category_byname.
3760         (uc_bidi_category_byname): New function.
3761         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
3762         u_bidi_category_name.
3763         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
3764         (uc_bidi_category_name): New function.
3765         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
3766         uc_bidi_category.
3767         (uc_bidi_category): New function.
3768         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
3769         uc_is_bidi_category. Invoke uc_bidi_class.
3770         (uc_is_bidi_category): New function.
3771         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
3772         instead of uc_bidi_category_byname.
3773         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
3774         instead of uc_bidi_category_name.
3775         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
3776         uc_bidi_category.
3777         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
3778         instead of uc_is_bidi_category.
3779
3780 2011-03-21  Bruno Haible  <bruno@clisp.org>
3781
3782         New module 'unictype/joininggroup-all'.
3783         * modules/unictype/joininggroup-all: New file.
3784
3785         Tests for module 'unictype/joininggroup-of'.
3786         * modules/unictype/joininggroup-of-tests: New file.
3787         * tests/unictype/test-joininggroup_of.c: New file.
3788         * tests/unictype/test-joininggroup_of.h: New file, automatically
3789         generated by gen-uni-tables.
3790
3791         New module 'unictype/joininggroup-of'.
3792         * modules/unictype/joininggroup-of: New file.
3793         * lib/unictype/joininggroup_of.c: New file.
3794         * lib/unictype/joininggroup_of.h: New file, automatically generated by
3795         gen-uni-tables.
3796
3797         Tests for module 'unictype/joininggroup-byname'.
3798         * modules/unictype/joininggroup-byname-tests: New file.
3799         * tests/unictype/test-joininggroup_byname.c: New file.
3800
3801         New module 'unictype/joininggroup-byname'.
3802         * modules/unictype/joininggroup-byname: New file.
3803         * lib/unictype/joininggroup_byname.c: New file.
3804         * lib/unictype/joininggroup_byname.gperf: New file.
3805
3806         Tests for module 'unictype/joininggroup-name'.
3807         * modules/unictype/joininggroup-name-tests: New file.
3808         * tests/unictype/test-joininggroup_name.c: New file.
3809
3810         New module 'unictype/joininggroup-name'.
3811         * modules/unictype/joininggroup-name: New file.
3812         * lib/unictype/joininggroup_name.c: New file.
3813         * lib/unictype/joininggroup_name.h: New file.
3814
3815         New module 'unictype/joiningtype-all'.
3816         * modules/unictype/joiningtype-all: New file.
3817
3818         Tests for module 'unictype/joiningtype-of'.
3819         * modules/unictype/joiningtype-of-tests: New file.
3820         * tests/unictype/test-joiningtype_of.c: New file.
3821         * tests/unictype/test-joiningtype_of.h: New file, automatically
3822         generated by gen-uni-tables.
3823
3824         New module 'unictype/joiningtype-of'.
3825         * modules/unictype/joiningtype-of: New file.
3826         * lib/unictype/joiningtype_of.c: New file.
3827         * lib/unictype/joiningtype_of.h: New file, automatically generated by
3828         gen-uni-tables.
3829
3830         Tests for module 'unictype/joiningtype-byname'.
3831         * modules/unictype/joiningtype-byname-tests: New file.
3832         * tests/unictype/test-joiningtype_byname.c: New file.
3833
3834         New module 'unictype/joiningtype-byname'.
3835         * modules/unictype/joiningtype-byname: New file.
3836         * lib/unictype/joiningtype_byname.c: New file.
3837
3838         Tests for module 'unictype/joiningtype-name'.
3839         * modules/unictype/joiningtype-name-tests: New file.
3840         * tests/unictype/test-joiningtype_name.c: New file.
3841
3842         New module 'unictype/joiningtype-name'.
3843         * modules/unictype/joiningtype-name: New file.
3844         * lib/unictype/joiningtype_name.c: New file.
3845
3846         unictype: Add support for Arabic shaping properties.
3847         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
3848         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
3849         declarations.
3850         (UC_JOINING_GROUP_*): New enumeration values.
3851         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
3852         declarations.
3853         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
3854         (unicode_joining_type): New variable.
3855         (UC_JOINING_GROUP_*): New enumeration values.
3856         (unicode_joining_group): New variable.
3857         (fill_arabicshaping, joining_type_as_c_identifier,
3858         output_joining_type_test, output_joining_type,
3859         joining_group_as_c_identifier, output_joining_group_test,
3860         output_joining_group): New functions.
3861         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
3862         fill_arabicshaping and output_joining_type_test, output_joining_type,
3863         output_joining_group_test, output_joining_group.
3864         Reported by Simon Josefsson.
3865
3866 2011-03-21  Jim Meyering  <meyering@redhat.com>
3867
3868         strftime: fix a bug in yesterday's change
3869         * lib/strftime.c (add): Accommodate width's initial value of -1.
3870         Otherwise, nstrftime would copy uninitialized data into
3871         the result buffer.
3872
3873 2011-03-21  Jim Meyering  <meyering@redhat.com>
3874
3875         tests: add strftime-tests module
3876         * tests/test-strftime.c: New file.
3877         * modules/strftime-tests: New module.
3878
3879 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3880
3881         strftime: don't assume a byte count fits in 'int'
3882         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
3883         found this problem by static analysis, using gcc -Wstrict-overflow
3884         (GCC 4.5.2, x86-64).  This reported an optimization that depended
3885         on an integer overflow having undefined behavior, but it turns out
3886         that the argument is a size, which might not fit in 'int' anyway,
3887
3888 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3889
3890         stdio: don't require ignore_value around fwrite
3891
3892         This patch works around libc bug 11959
3893         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
3894         Without this patch, applications must often write
3895         ignore_value (fwrite (...)) even though the ignore_value is
3896         not helpful here.  It's common to write many objects, using
3897         fwrite/printf/etc., and then use ferror to detect output error.
3898
3899         I considered making this patch optional, but decided against it,
3900         because libc is obviously being inconsistent here: there is no
3901         reason libc should insist that user code must inspect fwrite
3902         return's value without also insisting that it inspect printf's,
3903         putchar's, etc.  If user code wants to have a strict style where
3904         all these functions' values are checked (so that ferror need not
3905         be checked), we could add support for that style in a new gnulib
3906         module, but in the meantime it's better to be consistent and to
3907         support common usage.
3908
3909         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
3910         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
3911         that we are compiling in checking mode, and if not C++, and
3912         if not already wrapping fwrite for some other reason.
3913         (fwrite): #define to rpl_fwrite if the latter is defined.
3914
3915 2011-03-20  Bruno Haible  <bruno@clisp.org>
3916
3917         verror: Fix compilation error introduced on 2011-02-13.
3918         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
3919         instead of __attribute__.
3920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3921
3922 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3923             Bruno Haible  <bruno@clisp.org>
3924
3925         socklen: do not depend on sys_socket
3926         While trying to modify Emacs to use gnulib's socklen module,
3927         I discovered a circular dependency: socklen depends on sys_socket
3928         and vice versa.  Emacs can use socklen, but it does not need
3929         sys_socket because it has its own substitute for sys/socket.h.
3930         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
3931         gl_TYPE_SOCKLEN_T.
3932         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
3933         gl_PREREQ_SYS_H_SOCKET.
3934         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
3935         gl_PREREQ_SYS_H_SOCKET.
3936         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
3937         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
3938         * modules/socklen (Depends-on): Do not depend on sys_socket.
3939         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
3940
3941 2011-03-20  Jim Meyering  <meyering@redhat.com>
3942
3943         maint.mk: sort file names *after* new transformation
3944         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
3945         prefix would have led to an unwarranted failure in GNU parted.
3946         Sort after that transformation.
3947
3948 2011-03-19  Jim Meyering  <meyering@redhat.com>
3949
3950         maint.mk: fix po-file syntax-check rule
3951         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
3952         Patch by Bruno Haible.
3953
3954 2011-03-19  Bruno Haible  <bruno@clisp.org>
3955
3956         socklen: Update comment.
3957         * m4/socklen.m4: Update comment about platforms.
3958
3959 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3960             Bruno Haible  <bruno@clisp.org>
3961
3962         inet_ntop, inet_pton: Simplify.
3963         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
3964         documented to provide socklen_t and we already depend on sys_socket.
3965         * modules/inet_pton (Depends-on): Likewise.
3966         * lib/arpa_inet.in.h: Adjust comment.
3967
3968 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3969             Bruno Haible  <bruno@clisp.org>
3970
3971         netdb: Simplify.
3972         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
3973         documented to provide socklen_t and we already depend on sys_socket.
3974         * lib/netdb.in.h: Adjust comment.
3975
3976 2011-03-19  Bruno Haible  <bruno@clisp.org>
3977
3978         sys_socket, netdb: Document problem with socklen_t.
3979         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
3980         platforms.
3981         * doc/posix-headers/netdb.texi: Likewise.
3982
3983 2011-03-18  Eric Blake  <eblake@redhat.com>
3984
3985         maint.mk: let po check work in VPATH build
3986         * top/maint.mk (po_file): Allow cfg.mk override.
3987         (sc_po_check): Allow VPATH use.
3988         Reported by Jiri Denemark.
3989
3990 2011-03-16  Jim Meyering  <meyering@redhat.com>
3991
3992         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3993         Before, you would have had to create one .x-sc_ file per rule in order
3994         to exempt offending files.  Now, you may instead use a Make variable --
3995         usually defined in cfg.mk -- whose name identifies the affected rule.
3996         * top/maint.mk (_sc_excl): Define.
3997         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3998         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3999
4000 2011-03-13  Bruno Haible  <bruno@clisp.org>
4001
4002         ignore-value tests: Avoid warnings.
4003         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4004         empty for gcc < 3.4.
4005
4006 2011-03-13  Bruno Haible  <bruno@clisp.org>
4007
4008         passfd: Fix link error on Solaris.
4009         * modules/passfd (Description): Correct.
4010         (Depends-on): Add socketlib.
4011         (Link): New section.
4012         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4013
4014 2011-03-13  Bruno Haible  <bruno@clisp.org>
4015
4016         passfd: Fix link error on AIX 5.2.
4017         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4018
4019 2011-03-13  Bruno Haible  <bruno@clisp.org>
4020
4021         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4022         * lib/sys_socket.in.h: Include <stddef.h>.
4023         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4024         CMSG_FIRSTHDR. Remove unused variable.
4025
4026 2011-03-13  Bruno Haible  <bruno@clisp.org>
4027
4028         passfd: Fix compilation error on OpenBSD.
4029         * lib/passfd.c: Include <sys/uio.h>.
4030
4031 2011-03-13  Bruno Haible  <bruno@clisp.org>
4032
4033         passfd test: Fix warnings.
4034         * tests/test-passfd.c: Include <sys/wait.h>.
4035         (main): Fix typo.
4036
4037 2011-03-13  Bruno Haible  <bruno@clisp.org>
4038
4039         passfd module, part 4, tweaks.
4040         * tests/test-passfd.c: Reorder includes.
4041         (main): Fix perror and printf calls.
4042
4043 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4044
4045         passfd module, part 4.
4046         * modules/passfd-tests: New file.
4047         * tests/test-passfd.c: New file.
4048
4049 2011-03-13  Jim Meyering  <meyering@redhat.com>
4050
4051         Makefile: rely on GNU make; derive syntax-check rule names
4052         Rather than requiring that each sc_ rule be listed as a dependent
4053         of "check", use features of GNU make to derive the list.
4054         * Makefile (syntax-check-rules): Define.
4055         (check): Depend on the new variable, not the hard-coded list.
4056
4057 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4058             Bruno Haible  <bruno@clisp.org>
4059
4060         passfd module, part 3.
4061         * lib/passfd.h (recvfd): Add a flags argument.
4062         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4063         (recvfd): Add a flags argument.
4064         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4065         exists.
4066         * modules/passfd (Depends-on): Add cloexec.
4067         Suggested by Eric Blake.
4068
4069 2011-03-13  Bruno Haible  <bruno@clisp.org>
4070
4071         passfd module, part 2, tweaks.
4072         * modules/passfd (Files): Reorder.
4073         (Depends-on): Remove errno.
4074         (Include): Remove <sys/socket.h>, <sys/un.h>.
4075         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4076         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4077         specification header. Include <sys/socket.h> always. Don't include
4078         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4079         (sendfd): Clarify that it sets errno when it fails.
4080         (recvfd): Fix specification.
4081
4082 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4083
4084         passfd module, part 2.
4085         * modules/passfd: New file.
4086         * lib/passfd.h: New file.
4087         * lib/passfd.c: New file.
4088
4089 2011-03-12  Bruno Haible  <bruno@clisp.org>
4090
4091         wcswidth, mbswidth: Avoid integer overflow.
4092         * lib/wcswidth.c: Include <limits.h>.
4093         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4094         * lib/mbswidth.c: Include <limits.h>.
4095         (mbsnwidth): Avoid 'int' overflow.
4096         Reported by Jim Meyering.
4097
4098 2011-03-12  Bruno Haible  <bruno@clisp.org>
4099
4100         futimens, utimensat: Avoid endless recursion on Solaris 10.
4101         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4102         Solaris.
4103         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4104         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4105
4106 2011-03-11  Jim Meyering  <meyering@redhat.com>
4107
4108         maint.mk: relax a regexp to accommodate other formatting styles
4109         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4110         between "ngettext" and the following "(".
4111
4112 2011-03-11  Pádraig Brady <P@draigBrady.com>
4113
4114         maint.mk: suppress a false positive warning
4115         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4116         diagnostics are marked with ngettext.
4117
4118 2011-03-10  Eric Blake  <eblake@redhat.com>
4119
4120         wchar: add explicit dependencies, for Tru64
4121         * modules/mbmemcasecoll (Depends-on): Add wchar.
4122         * modules/mbtowc (Depends-on): Likewise.
4123         * modules/vasnprintf (Depends-on): Likewise.
4124         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4125         * modules/wctomb (Depends-on): Likewise.
4126         Reported by Peter O'Gorman.
4127
4128 2011-03-08  Bruno Haible  <bruno@clisp.org>
4129
4130         passfd module, part 1, tweaks.
4131         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4132         Improve indentation. Improve AC_MSG_CHECKING messages.
4133         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4134         gl_SOCKET_FAMILIES.
4135
4136 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4137
4138         passfd module, part 1.
4139         * m4/afunix.m4: New file.
4140         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4141         sockets.
4142
4143 2011-03-08  Bruno Haible  <bruno@clisp.org>
4144
4145         regex-quote: New API.
4146         * lib/regex-quote.h: Include <stdbool.h>.
4147         (struct regex_quote_spec): New type.
4148         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4149         New declarations.
4150         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4151         'const struct regex_quote_spec *' argument.
4152         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4153         (pcre_special): New constant.
4154         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4155         New functions.
4156         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4157         'const struct regex_quote_spec *' argument.
4158         * modules/regex-quote (Depends-on): Add stdbool.
4159         * tests/test-regex-quote.c (check): Update for new API. Add test for
4160         anchored results.
4161         * NEWS: Mention the API change.
4162         Reported by Reuben Thomas and Eric Blake.
4163
4164 2011-03-06  Bruno Haible  <bruno@clisp.org>
4165
4166         regex-quote: Fix creation of POSIX extended regular expressions.
4167         * lib/regex-quote.c (ere_special): Add grouping and alternation
4168         operators.
4169
4170 2011-03-05  Bruno Haible  <bruno@clisp.org>
4171
4172         doc: Improve doc regarding autopoint vs. gnulib.
4173         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4174         disable autopoint while running autoreconf.
4175         Suggested by Ralf Wildenhues.
4176
4177 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4178
4179         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4180         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4181
4182 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4183
4184         parse-duration: remove xalloc.h dependency
4185         * lib/parse-duration.c (parse_period): handle NULL return from
4186         strdup instead of calling xstrdup().
4187         * modules/parse-duration: remove "xalloc" dependency
4188
4189 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4190
4191         bootstrap: honor m4_base when running aclocal
4192         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4193
4194 2011-03-02  Jim Meyering  <meyering@redhat.com>
4195
4196         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4197         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4198         on request from Matt Booth.
4199
4200 2011-03-01  Eric Blake  <eblake@redhat.com>
4201
4202         test-link: work on Hurd
4203         * tests/test-link.h (test_link): Hurd rejects linking directories
4204         with EISDIR instead of the POSIX-mandated EPERM.
4205
4206 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4207
4208         stdio: simplify by moving files to printf-posix, sigpipe
4209         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4210         since this symbol is needed only if printf is replaced.
4211         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4212         Require gl_ASM_SYMBOL_PREFIX.
4213         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4214         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4215         (Depends-on): Add 'raise'.
4216         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4217         * modules/stdio (Files): Remove lib/stdio-write.c,
4218         m4/asm-underscore.m4.
4219         (Depends-on): Remove 'raise'.
4220
4221         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4222         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4223         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4224         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4225
4226 2011-02-28  Bruno Haible  <bruno@clisp.org>
4227
4228         localcharset: Assume ANSI C behaviour of free().
4229         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4230         calling free().
4231         Suggested by Simon Josefsson <simon@josefsson.org>.
4232
4233 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4234             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4235             Bruno Haible  <bruno@clisp.org>  (tiny change)
4236
4237         On Cygwin, use /proc file system instead of win32 API.
4238         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4239         Win32 file names.
4240         (DllMain): Simplify by removing Cygwin specific code.
4241         (find_shared_library_fullname): Use Linux specific implementation also
4242         for Cygwin.
4243         (get_shared_library_fullname): Update accordingly.
4244         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4245         Win32 file names.
4246         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4247         Cygwin specific code.
4248
4249 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4250             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4251
4252         Fix OpenMP flag detection for various Fortran compilers.
4253         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4254         OpenMP-conditional compilation construct, to force compile
4255         failure with missing OpenMP flag.
4256         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4257
4258 2011-02-25  Eric Blake  <eblake@redhat.com>
4259
4260         strstr: expand test coverage
4261         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4262         compilation.
4263         * tests/test-memmem.c (main): Duplicate tests.
4264         * tests/test-strcasestr.c (main): Likewise.
4265         * tests/test-c-strcasestr.c (main): Likewise.
4266
4267 2011-02-25  Jim Meyering  <meyering@redhat.com>
4268
4269         maint.mk: detect missing-NL-at-EOF, too
4270         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4271         it also detects when a file lacks a newline at EOF.
4272         (require_exactly_one_NL_at_EOF_): Renamed from
4273         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4274         since people may well have .x-sc_... file names tied to the
4275         existing name.  Suggested by Eric Blake.
4276
4277 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4278
4279         dirname: move m4/dos.m4 functionality into lib/dosname.h
4280
4281         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4282         extracts symbols from it, puts them into config.h; but it's much
4283         easier to use the symbols directly.  filename.h already does this,
4284         but it disagrees with dos.m4 in some respects.  This patch
4285         introduces a different include file dosname.h that packages up
4286         dos.m4, and then later we can work on merging filename.h and
4287         dosname.h.  Applications that need only the easy-to-configure
4288         symbols should consider including dosname.h rather than dirname.h.
4289         * NEWS: Mention incompatible changes.
4290         * m4/dos.m4: Remove.
4291         * lib/dosname.h, modules/dosname: New files.
4292         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4293         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4294         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4295         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4296         Include dosname.h, not dirname.h.
4297         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4298         Include dosname.h, for definitions of symbols like ISSLASH
4299         that used to be in config.h.
4300         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4301         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4302         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4303         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4304         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4305         * modules/rmdir (Files): Likewise.
4306         * modules/stat (Files): Likewise.
4307         * modules/unlink (Files): Likewise.
4308         * modules/dirname-lgpl (Depends-on): Add dosname.
4309         * modules/lstat (Depends-on): Likewise.
4310         * modules/openat (Depends-on): Likewise.
4311         * modules/rmdir (Depends-on): Likewise.
4312         * modules/savewd (Depends-on): Likewise.
4313         * modules/stat (Depends-on): Likewise.
4314         * modules/unlink (Depends-on): Likewise.
4315         * modules/openat (Depends-on): Remove dirname-lgpl.
4316         * modules/savewd (Depends-on): Likewise.
4317         * tests/test-dirname.c: Do not use removed symbols like
4318         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4319         the remaining symbols, e.g., ISSLASH ('\\').
4320
4321 2011-02-25  Eric Blake  <eblake@redhat.com>
4322
4323         strstr: revert patches that introduced bug and pessimization
4324         * lib/str-two-way.h: Add another reference.
4325         (two_way_short_needle, two_way_long_needle): Revert changes from
4326         2011-02-24; they pessimize search speed.
4327         (critical_factorization): Partially revert changes from
4328         2010-06-22; they violate the requirement that the left half of the
4329         needle be smaller than the period of the needle.
4330
4331 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4332
4333         filenamecat: remove unnecessary dependency on dirname-lgpl
4334         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4335         is no direct dependency, just an indirect one via filenamecat-lgpl.
4336
4337         remove: remove unnecessary use of m4/dos.m4
4338         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4339         * modules/remove (FILES): Remove m4/dos.m4.
4340
4341         * lib/openat-proc.c: Don't include dirname.h; not needed.
4342
4343         backupfile: remove unnecessary use of m4/dos.m4
4344         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4345         of its symbols are used by the backupfile code.  backupfile.c does
4346         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4347         for the rare case of programs that want all their backup file
4348         names to live within 8+3 limits, and dos.m4 doesn't address that.
4349         * modules/backupfile (Files): Remove m4/dos.m4.
4350
4351 2011-02-24  Jim Meyering  <meyering@redhat.com>
4352
4353         strstr: fix a bug whereby strstr would mistakenly return NULL
4354         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4355         in period calculation.
4356         (two_way_long_needle): Likewise.
4357         The original problem was reported by Mike Stump in
4358         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4359         Ralf Wildenhues provided the short needle and haystack.
4360         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4361         Add a more involved test to trigger the bug in two_way_long_needle.
4362
4363 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4364
4365         gnulib-tool: remove use of bold display in help screen
4366         * gnulib-tool (func_usage): Do not use bold display anymore in the
4367         help screen.  That was just meant to be a temporary emphasis for a
4368         backward-incompatible change.
4369
4370 2011-02-23  Bruno Haible  <bruno@clisp.org>
4371
4372         Fix misindentation of preprocessor directives.
4373         * lib/argp-namefrob.h: Reindent preprocessor directives.
4374         * lib/getopt_int.h (struct _getopt_data): Likewise.
4375         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4376         * lib/vasnprintf.c (decode_long_double): Likewise.
4377         * tests/test-argmatch.c: Insert blank lines, for clarity.
4378         * tests/test-exclude.c: Likewise.
4379
4380 2011-02-22  Bruno Haible  <bruno@clisp.org>
4381
4382         ioctl: Fix for MacOS X in 64-bit mode.
4383         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4384         value.
4385         Suggested by Eric Blake.
4386         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4387
4388 2011-02-22  Jim Meyering  <meyering@redhat.com>
4389
4390         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4391         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4392         in lib/.
4393
4394 2011-02-22  Eric Blake  <eblake@redhat.com>
4395
4396         maint: avoid any CDPATH issue
4397         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4398
4399         maint: adjust cpp indentation for my modules, as well
4400         * Makefile (sc_cpp_indent_check): Add my name.
4401         * lib/fbufmode.c: Filter through cppi.
4402         * lib/fpurge.c: Likewise.
4403         * lib/freadable.c: Likewise.
4404         * lib/freading.c: Likewise.
4405         * lib/fwritable.c: Likewise.
4406         * lib/fwriting.c: Likewise.
4407         * lib/sigaction.c: Likewise.
4408
4409 2011-02-22  Jim Meyering  <meyering@redhat.com>
4410
4411         maint: adjust cpp indentation to reflect nesting depth
4412         I.e., in a block of code that begins with an unnested "#if",
4413         put one space between the "#" in column 1 and following token.
4414         For example,
4415         -#include <sys/vfs.h>
4416         +# include <sys/vfs.h>
4417         Do this only in .c files that are part of a module I maintain.
4418         * lib/linkat.c: Filter through cppi.
4419         * lib/nanosleep.c: Likewise.
4420         * lib/openat.c: Likewise.
4421         * lib/openat-die.c: Likewise.
4422         * lib/dup3.c: Likewise.
4423         * lib/fchownat.c: Likewise.
4424         * lib/flock.c: Likewise.
4425         * lib/fsync.c: Likewise.
4426         * lib/fts.c: Likewise.
4427         * lib/getpass.c: Likewise.
4428         * lib/gettimeofday.c: Likewise.
4429         * lib/userspec.c: Likewise.
4430         * Makefile (sc_cpp_indent_check): New rule, to check this.
4431
4432 2011-02-22  Bruno Haible  <bruno@clisp.org>
4433
4434         New module 'wctomb'.
4435         * lib/stdlib.in.h (wctomb): New declaration.
4436         * lib/wctomb.c: New file.
4437         * lib/wctomb-impl.h: New file.
4438         * m4/wctomb.m4: New file.
4439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4440         REPLACE_WCTOMB.
4441         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4442         REPLACE_WCTOMB.
4443         * modules/wctomb: New file.
4444         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4445         * doc/posix-functions/wctomb.texi: Mention the new module.
4446         * modules/wctob (Depends-on): Add wctomb.
4447
4448 2011-02-22  Bruno Haible  <bruno@clisp.org>
4449
4450         New module 'mbtowc'.
4451         * lib/stdlib.in.h (mbtowc): New declaration.
4452         * lib/mbtowc.c: New file.
4453         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4454         * m4/mbtowc.m4: New file.
4455         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4456         REPLACE_MBTOWC.
4457         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4458         REPLACE_MBTOWC.
4459         * modules/mbtowc: New file.
4460         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4461         * doc/posix-functions/mbtowc.texi: Mention the new module.
4462         * modules/btowc (Depends-on): Add mbtowc.
4463
4464 2011-02-22  Bruno Haible  <bruno@clisp.org>
4465
4466         wcrtomb: Add more tests for native Windows platforms.
4467         * tests/test-wcrtomb-w32-1.sh: New file.
4468         * tests/test-wcrtomb-w32-2.sh: New file.
4469         * tests/test-wcrtomb-w32-3.sh: New file.
4470         * tests/test-wcrtomb-w32-4.sh: New file.
4471         * tests/test-wcrtomb-w32-5.sh: New file.
4472         * tests/test-wcrtomb-w32.c: New file.
4473         * modules/wcrtomb-tests (Files): Add them.
4474         (Makefile.am): Arrange to run these tests.
4475         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
4476         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
4477
4478 2011-02-20  Bruno Haible  <bruno@clisp.org>
4479
4480         wcrtomb: Enhance test.
4481         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
4482
4483 2011-02-20  Bruno Haible  <bruno@clisp.org>
4484
4485         mbrtowc: Tiny optimization.
4486         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
4487
4488 2011-02-20  Jim Meyering  <meyering@redhat.com>
4489
4490         test-exclude.c: remove unmatched #endif
4491         * tests/test-exclude.c: Remove stray #endif, left over from
4492         the change of a week ago.
4493
4494 2011-02-19  Jim Meyering  <meyering@redhat.com>
4495
4496         git-version-gen: skip "-dirty" check when appropriate
4497         * build-aux/git-version-gen: Don't run any git commands when the
4498         version string comes from .tarball-version.  Prior to this, we
4499         would run git update-index --refresh even from a just-unpacked
4500         tarball directory, and that could affect a .git/ directory in a
4501         parent of the build directory.  Reported by Mike Frysinger.
4502
4503 2011-02-19  Bruno Haible  <bruno@clisp.org>
4504
4505         unictype/property-byname: Reduce the size of the 'data' segment.
4506         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
4507
4508 2011-02-19  Bruno Haible  <bruno@clisp.org>
4509
4510         unictype/scripts: Reduce the size of the 'data' segment.
4511         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
4512         '%pic'.
4513         * lib/unictype/scripts_byname.gperf: Regenerated.
4514
4515 2011-02-19  Bruno Haible  <bruno@clisp.org>
4516
4517         stdint: Update documentation.
4518         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
4519
4520 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4521
4522         stdint: omit redundant check for wchar.h
4523         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
4524         always tests whether wchar.h exists, so remove the now-redundant test.
4525
4526 2011-02-18  Bruno Haible  <bruno@clisp.org>
4527
4528         stdint: Cut dependency to module 'wchar'.
4529         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
4530         include the necessary prerequisites.
4531         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
4532         * modules/stdint (Depends-on): Remove wchar.
4533         (Makefile.am): Substitute HAVE_WCHAR_H.
4534         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
4535
4536 2011-02-18  Eric Blake  <eblake@redhat.com>
4537
4538         longlong: skip, rather than fail, on cross-compilation
4539         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
4540         when cross-compiling; regression from 2011-02-16.
4541
4542 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4543
4544         * NEWS: Mention 2011-02-08 change to stdlib.
4545
4546 2011-02-17  Bruno Haible  <bruno@clisp.org>
4547
4548         getloadavg: Add comments about platforms.
4549         * m4/getloadavg.m4: Add comment.
4550         * lib/getloadavg.c: Likewise.
4551
4552 2011-02-17  Bruno Haible  <bruno@clisp.org>
4553
4554         getloadavg: Fix link error on Solaris 2.6.
4555         * modules/getloadavg (Link): New section.
4556         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
4557         linking test-getloadavg.
4558         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
4559         getloadavg.
4560
4561 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4562
4563         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
4564         It was 'int', but this doesn't match the IRIX 6.5 manual.
4565         Suggested by Bruno Haible in
4566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
4567
4568 2011-02-17  Bruno Haible  <bruno@clisp.org>
4569
4570         havelib: Fix comments.
4571         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
4572         change.
4573
4574 2011-02-17  Bruno Haible  <bruno@clisp.org>
4575
4576         havelib: Update config.rpath.
4577         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
4578
4579 2011-02-17  Bruno Haible  <bruno@clisp.org>
4580
4581         getloadavg test: Add some plausibility checks.
4582         * tests/test-getloadavg.c (check_avg): Print a warning when the value
4583         is improbable.
4584
4585 2011-02-16  Eric Blake  <eblake@redhat.com>
4586
4587         maintainer-makefile: make syntax-check a no-op from tarballs
4588         * top/maint.mk (no-vc-detected): New rule.
4589         (local-checks-available): Use it to avoid hanging if someone tries
4590         'make syntax-check' from a tarball.  Also append to any non-syntax
4591         checks already defined in cfg.mk.
4592
4593 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4594
4595         longlong: tune, particularly for common case of c99
4596
4597         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
4598         or running anything if c99, or if unsigned long long int does not
4599         work.  In either case, we know the answer without further tests.
4600         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
4601         it at most once, and use its results for both long long int and
4602         unsigned long long int.  This is more likely to be efficient in
4603         the common case where the program wants to check for both long
4604         long int and unsigned long long int.
4605         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
4606         since the answer is already known.
4607
4608 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4609
4610         getloadavg: set errno
4611         * lib/getloadavg.c: Set errno when returning -1.  If no other
4612         error number looks appropriate, set it to ENOSYS if the getloadavg
4613         looks like it can't possibly ever work, ENOTSUP otherwise.
4614         Suggested by Bruno Haible in
4615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
4616
4617         getloadavg: trim unused parts and speed up 'configure'
4618         * NEWS: Document this.
4619         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
4620         always compiled if getloadavg is absent.
4621         Move test code to ...
4622         * tests/test-getloadavg.c: New file, containing previous
4623         contents of test from lib/getloadavg.c.  It also contains
4624         suggestions by Bruno Haible in
4625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
4626         * modules/getloadavg-tests: New file.
4627         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
4628         Do tests in the same order as they're needed for getloadavg.c.
4629         Omit setgid-related tests that generate symbols KMEM_GROUP,
4630         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
4631         Do only the tests that are needed to see whether the system has
4632         getloadavg, moving the other tests into ...
4633         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4634         NLIST_NAME_UNION; nobody should be using it.  Do not define
4635         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4636         relevant, as the user of this module shouldn't care how getloadavg
4637         is implemented.
4638
4639         getloadavg: omit unused var
4640         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4641
4642 2011-02-15  Jim Meyering  <meyering@redhat.com>
4643
4644         doc: update users.txt
4645         * users.txt: Update iwhd's URL.
4646
4647 2011-02-13  Bruno Haible  <bruno@clisp.org>
4648
4649         Consistent macro naming for macros that use GCC __attribute__.
4650         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4651         _ATTRIBUTE_NONNULL_.
4652         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4653         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4654         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4655         ATTRIBUTE_DEPRECATED.
4656         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4657         ATTRIBUTE_NORETURN.
4658         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4659         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4660         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4661         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4662         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4663         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4664         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4665         ATTRIBUTE_SENTINEL.
4666         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4667         ATTRIBUTE_RETURN_CHECK.
4668         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4669         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4670         ATTRIBUTE_NORETURN.
4671         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4672         Reported by Paul Eggert.
4673
4674 2011-02-13  Bruno Haible  <bruno@clisp.org>
4675
4676         Don't interfere with a program's definition of __attribute__.
4677         * lib/argp.h (__attribute__): Remove definition.
4678         (_GL_ATTRIBUTE_FORMAT): New macro.
4679         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4680         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4681         (_GL_ATTRIBUTE_FORMAT): New macro.
4682         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4683         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4684         GCC 3 or newer.
4685         * lib/error.h (__attribute__): Remove definition.
4686         (_GL_ATTRIBUTE_FORMAT): New macro.
4687         (error, error_at_line): Use it.
4688         * lib/hash.h (__attribute__): Remove definition.
4689         (ATTRIBUTE_WUR): Update definition. Define always.
4690         * lib/openat.h (__attribute__): Remove definition.
4691         (ATTRIBUTE_NORETURN): Update definition. Define always.
4692         * lib/sigpipe-die.h (__attribute__): Remove definition.
4693         (ATTRIBUTE_NORETURN): Update definition. Define always.
4694         * lib/vasnprintf.h (__attribute__): Remove definition.
4695         (_GL_ATTRIBUTE_FORMAT): New macro.
4696         (asnprintf, vasnprintf): Use it.
4697         * lib/xalloc.h (__attribute__): Remove definition.
4698         (ATTRIBUTE_NORETURN): Update definition. Define always.
4699         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4700         * lib/xmemdup0.h (__attribute__): Remove definition.
4701         (ATTRIBUTE_NORETURN): Update definition. Define always.
4702         * lib/xprintf.h (__attribute__): Remove definition.
4703         (_GL_ATTRIBUTE_FORMAT): New macro.
4704         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4705         * lib/xstrtol.h (__attribute__): Remove definition.
4706         (ATTRIBUTE_NORETURN): Update definition. Define always.
4707         * lib/xvasprintf.h (__attribute__): Remove definition.
4708         (_GL_ATTRIBUTE_FORMAT): New macro.
4709         (xasprintf, xvasprintf): Use it.
4710         * tests/test-argmatch.c (__attribute__): Remove definition.
4711         (ATTRIBUTE_NORETURN): Update definition. Define always.
4712         * tests/test-exclude.c (__attribute__): Remove definition.
4713         (ATTRIBUTE_NORETURN): Update definition. Define always.
4714         Reported by Paul Eggert.
4715
4716 2011-02-13  Bruno Haible  <bruno@clisp.org>
4717
4718         mbrtowc: Add more tests for native Windows platforms.
4719         * tests/test-mbrtowc-w32-1.sh: New file.
4720         * tests/test-mbrtowc-w32-2.sh: New file.
4721         * tests/test-mbrtowc-w32-3.sh: New file.
4722         * tests/test-mbrtowc-w32-4.sh: New file.
4723         * tests/test-mbrtowc-w32-5.sh: New file.
4724         * tests/test-mbrtowc-w32.c: New file.
4725         * modules/mbrtowc-tests (Files): Add them.
4726         (Makefile.am): Arrange to run these tests.
4727         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4728         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4729
4730 2011-02-13  Bruno Haible  <bruno@clisp.org>
4731
4732         mbrtowc: Work around native Windows bug.
4733         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4734         guess when no suitable locale for testing was found.
4735         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
4736
4737 2011-02-13  Bruno Haible  <bruno@clisp.org>
4738
4739         mbsinit: Work around mingw bug.
4740         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
4741         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
4742         Windows.
4743         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
4744
4745 2011-02-13  Bruno Haible  <bruno@clisp.org>
4746
4747         mbsinit: Don't crash for a NULL argument.
4748         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
4749         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
4750
4751 2011-02-13  Bruno Haible  <bruno@clisp.org>
4752
4753         Don't interfere with a program's definition of __attribute__.
4754         * lib/stdio.in.h (__attribute__): Remove definition.
4755         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
4756         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
4757         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
4758         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
4759         * lib/string.in.h (__attribute__): Remove definition.
4760         Reported by Paul Eggert.
4761
4762 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4763
4764         stdlib: don't get in the way of non-GCC __attribute__
4765         See thread starting at
4766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
4767         Revert previous stdlib change, installing the following instead:
4768         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
4769         to get in the way of a non-GCC compiler that supports __attribute__.
4770         (_GL_ATTRIBUTE_RETURN): New macro.
4771         (_Exit): Use it instead of __attribute__.
4772
4773 2011-02-12  Bruno Haible  <bruno@clisp.org>
4774
4775         quotearg test: Avoid test failure on mingw.
4776         * tests/test-quotearg.sh: Convert the locale identifier from native
4777         Windows syntax to Unix syntax.
4778
4779 2011-02-12  Bruno Haible  <bruno@clisp.org>
4780
4781         setlocale: Prefer gnulib's override over libintl's override.
4782         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
4783         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
4784         GNULIB_defined_setlocale is set.
4785
4786 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4787
4788         stdlib: support non-GCC __attribute__
4789
4790         Fix a serious and tricky problem encountered when attempting to
4791         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
4792         5.5, but it crashed due to memory corruption on Solaris 10 with
4793         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
4794         bits that are otherwise zero.  This tagging is optional inside
4795         Emacs but is preferred and is used when __attribute__ ((__aligned
4796         (8))) works, as it does with both recent-enough GCC and with Sun C
4797         5.11.  However, Sun C 5.11 is not GCC and does not #define
4798         __GNUC__ and __GNUC_MINOR__.
4799
4800         When I added the getloadavg module to Emacs, it brought in
4801         stdlib.in.h, which contained this fragment:
4802
4803            #ifndef __attribute__
4804            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
4805            #  define __attribute__(Spec)   /* empty */
4806            # endif
4807            #endif
4808
4809         When files that include <stdlib.h> were compiled with Sun C 5.11,
4810         the above code disabled __attribute__ ((__aligned (8))), which
4811         caused variables to not be properly aligned, which eventually led
4812         to the pointer corruption mentioned above.  (This was a bit hard
4813         to diagnose, unfortunately.)
4814
4815         Several "#define __attribute__(X) /* empty */" code snippets need
4816         to be eradicated from Gnulib to work with non-GCC compilers that
4817         support __attribute__.  The Autoconf way to do this is to test for
4818         each kind of attribute that we want support for, and selectively
4819         enable that in source code.
4820
4821         Fix this problem just for stdlib.h, by adding a test for the
4822         __noreturn__ attribute, and change stdlib.in.h to use that test
4823         when needed.  This technique can be easily generalized to the
4824         other *.in.h files and attributes, and a similar technique can be
4825         used for *.h and *.c files.  This patch is enough to solve the
4826         problem for Emacs + getloadavg, and I thought I'd publish it for
4827         feedback before undertaking further, similar fixes in other
4828         modules.
4829
4830         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
4831         because it's not needed for stdlib.h.  It merely substitutes the
4832         value directly into stdlib.h.  We may well need to #define it, or
4833         similar symbols, for other modules, but it's nice to also have an
4834         option to not #define it for applications like Emacs that do not
4835         need it.
4836
4837         * lib/stdlib.in.h (__attribute__): Do not #define.
4838         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
4839         be defined only if the _Exit module is also used.
4840         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
4841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
4842         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
4843         platforms.
4844         * modules/_Exit (Files): Add m4/attribute.m4.
4845         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
4846         * m4/attribute.m4: New file.
4847
4848 2011-02-12  Bruno Haible  <bruno@clisp.org>
4849
4850         wcsrtombs: Work around bug on native Windows.
4851         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
4852         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
4853         instead of len.
4854         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
4855
4856 2011-02-12  Bruno Haible  <bruno@clisp.org>
4857
4858         mbsrtowcs: Work around bug on native Windows.
4859         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
4860         against mingw bug.
4861         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
4862
4863 2011-02-12  Bruno Haible  <bruno@clisp.org>
4864
4865         Avoid setlocale bugs in tests.
4866         * modules/btowc (Dependencies): Add setlocale.
4867         * modules/c-strcase (Dependencies): Likewise.
4868         * modules/mbmemcasecmp (Dependencies): Likewise.
4869         * modules/mbmemcasecoll (Dependencies): Likewise.
4870         * modules/mbrtowc (Dependencies): Likewise.
4871         * modules/mbscasecmp (Dependencies): Likewise.
4872         * modules/mbscasestr (Dependencies): Likewise.
4873         * modules/mbschr (Dependencies): Likewise.
4874         * modules/mbscspn (Dependencies): Likewise.
4875         * modules/mbsinit (Dependencies): Likewise.
4876         * modules/mbsncasecmp (Dependencies): Likewise.
4877         * modules/mbsnrtowcs (Dependencies): Likewise.
4878         * modules/mbspbrk (Dependencies): Likewise.
4879         * modules/mbspcasecmp (Dependencies): Likewise.
4880         * modules/mbsrchr (Dependencies): Likewise.
4881         * modules/mbsrtowcs (Dependencies): Likewise.
4882         * modules/mbsspn (Dependencies): Likewise.
4883         * modules/mbsstr (Dependencies): Likewise.
4884         * modules/nl_langinfo (Dependencies): Likewise.
4885         * modules/quotearg (Dependencies): Likewise.
4886         * modules/unicase/locale-language (Dependencies): Likewise.
4887         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
4888         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
4889         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
4890         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
4891         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
4892         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
4893         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
4894         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
4895         * modules/vasnprintf-posix (Dependencies): Likewise.
4896         * modules/wcrtomb (Dependencies): Likewise.
4897         * modules/wcsnrtombs (Dependencies): Likewise.
4898         * modules/wcsrtombs (Dependencies): Likewise.
4899
4900 2011-02-12  Bruno Haible  <bruno@clisp.org>
4901
4902         setlocale: Workaround native Windows bug.
4903         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
4904         succeeds but sets LC_CTYPE to "C", report a failure.
4905         * tests/test-setlocale2.sh: New file.
4906         * tests/test-setlocale2.c: New file.
4907         * modules/setlocale-tests (Files): Add the new files.
4908         (Makefile.am): Enable test-setlocale2.sh test.
4909         * doc/posix-functions/setlocale.texi: Mention workaround.
4910
4911 2011-02-11  Bruno Haible  <bruno@clisp.org>
4912
4913         Tests for module 'setlocale'.
4914         * modules/setlocale-tests: New file.
4915         * tests/test-setlocale1.sh: New file.
4916         * tests/test-setlocale1.c: New file.
4917
4918         New module 'setlocale'.
4919         * lib/locale.in.h (setlocale): New declaration.
4920         * lib/setlocale.c: New file, based on
4921         gettext/gettext-runtime/intl/setlocale.c.
4922         * m4/setlocale.m4: New file.
4923         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
4924         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
4925         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
4926         REPLACE_SETLOCALE.
4927         * modules/setlocale: New file.
4928         * tests/test-locale-c++.cc: Test the declaration of setlocale.
4929         * doc/posix-functions/setlocale.texi: Mention the new module.
4930
4931 2011-02-11  Bruno Haible  <bruno@clisp.org>
4932
4933         Prepare for locale dependent tests on mingw.
4934         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
4935         because it has the wrong locale encoding.
4936         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
4937         French_France.1252 instead of "fr".
4938         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
4939         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
4940         because it has the wrong locale encoding.
4941         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
4942         native Windows, try Turkish_Turkey.65001.
4943         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
4944         Chinese_China.54936.
4945
4946         Prepare for locale dependent tests on mingw.
4947         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
4948         differently.
4949         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4950         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4951         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4952         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4953
4954 2011-02-11  Eric Blake  <eblake@redhat.com>
4955
4956         strptime: avoid compiler warnings
4957         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
4958         compiler warnings about dead code.
4959         Reported by Daniel P. Berrange.
4960
4961 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
4962
4963         doc: update users.txt
4964         * users.txt: Add rcs.
4965
4966 2011-02-10  John W. Eaton  <jwe@gnu.org>
4967
4968         doc: update users.txt
4969         * users.txt: Add octave.
4970
4971 2011-02-10  Jim Meyering  <meyering@redhat.com>
4972
4973         doc: update users.txt
4974         * users.txt: Add iwhd.
4975
4976 2011-02-09  Bruno Haible  <bruno@clisp.org>
4977
4978         gnulib-tool: Make copyright notice adjustment more robust.
4979         * gnulib-tool (func_import): In sed_transform_main_lib_file,
4980         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
4981         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
4982         License".
4983         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4984
4985 2011-02-06  Bruno Haible  <bruno@clisp.org>
4986
4987         New module 'towctrans'.
4988         * modules/towctrans: New file.
4989         * lib/wctype.in.h (towctrans): New declaration.
4990         * lib/towctrans.c: New file.
4991         * lib/towctrans-impl.h: New file.
4992         * m4/towctrans.m4: New file.
4993         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4994         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4995         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4996         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4997         * doc/posix-functions/towctrans.texi: Mention the new module.
4998
4999 2011-02-06  Bruno Haible  <bruno@clisp.org>
5000
5001         New module 'wctrans'.
5002         * modules/wctrans: New file.
5003         * lib/wctype.in.h (wctrans): New declaration.
5004         * lib/wctrans.c: New file.
5005         * lib/wctrans-impl.h: New file.
5006         * m4/wctrans.m4: New file.
5007         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5008         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5009         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5010         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5011         * doc/posix-functions/wctrans.texi: Mention the new module.
5012
5013 2011-02-06  Bruno Haible  <bruno@clisp.org>
5014
5015         New module 'iswctype'.
5016         * modules/iswctype: New file.
5017         * lib/wctype.in.h (iswctype): New declaration.
5018         * lib/iswctype.c: New file.
5019         * lib/iswctype-impl.h: New file.
5020         * m4/iswctype.m4: New file.
5021         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5022         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5023         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5024         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5025         * doc/posix-functions/iswctype.texi: Mention the new module and the
5026         HP-UX 11.00 problem.
5027
5028 2011-02-06  Bruno Haible  <bruno@clisp.org>
5029
5030         New module 'wctype'.
5031         * modules/wctype: Change to represent the wctype() substitute.
5032         * lib/wctype.in.h (wctype): New declaration.
5033         * lib/wctype.c: New file.
5034         * lib/wctype-impl.h: New file.
5035         * m4/wctype.m4: New file.
5036         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5037         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5038         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5039         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5040         * doc/posix-functions/wctype.texi: Mention the new module and the
5041         HP-UX 11.00 problem.
5042
5043 2011-02-06  Bruno Haible  <bruno@clisp.org>
5044
5045         wctype-h: Ensure wctype_t and wctrans_t are defined.
5046         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5047         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5048         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5049         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5050         HAVE_WCTRANS_T.
5051         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5052
5053 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5054
5055         flock: fix license typo
5056
5057         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5058         omitted.
5059
5060 2011-02-08  Bruno Haible  <bruno@clisp.org>
5061
5062         Split large sed scripts, for HP-UX sed.
5063         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5064         to avoid HP-UX limit of 99 commands, in the near future.
5065         * modules/stdlib (Makefile.am): Likewise.
5066         * modules/unistd (Makefile.am): Likewise.
5067         * modules/wchar (Makefile.am): Likewise.
5068         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5069         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5070         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5071
5072 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5073             Bruno Haible  <bruno@clisp.org>
5074
5075         stdlib: improve random_r modularization
5076         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5077         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5078         you also need the random_r module to get this material right.
5079         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5080         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5081         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5082
5083 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5084
5085         stdlib: don't depend on stdint
5086         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5087         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5088         be independent of whether stdint.h is needed.
5089         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5090         here, instead of ...
5091         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5092         struct random_data should be using the random_r module, not just
5093         the stdlib module (which wouldn't make sense: what package needs
5094         just struct random_data without also needing random_r?).
5095         * modules/stdlib (Depends-on): Remove stdint.
5096
5097         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5098         See the thread rooted at
5099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5100         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5101         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5102         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5103         __VMS)); previously it was always included (via fcntl--.h).
5104         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5105         hand; this is good enough for load averages.  Also, do not use
5106         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5107         flags directly if available and don't bother otherwise.  (Packages
5108         that need the extra reliability should use the modules that define
5109         these flags on older platforms that lack them.)
5110         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5111         fcntl-safer.
5112
5113 2011-02-08  Jim Meyering  <meyering@redhat.com>
5114
5115         di-set.h, ino-map.h: add multiple-inclusion guard
5116         Technically, the guard is required only for ino-map.h, due to its
5117         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5118         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5119         * lib/ino-map.h: Likewise.
5120
5121 2011-02-06  Bruno Haible  <bruno@clisp.org>
5122
5123         iswblank: Ensure declaration on glibc systems.
5124         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5125         * modules/iswblank (Dependencies): Add 'extensions'.
5126         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5127
5128 2011-02-06  Bruno Haible  <bruno@clisp.org>
5129
5130         New module 'iswblank'.
5131         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5132         * modules/iswblank: New file.
5133         * modules/wctype-h (Files): Remove lib/iswblank.c.
5134         (Makefile.am): Substitute GNULIB_ISWBLANK.
5135         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5136         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5137         (gl_WCTYPE_H_DEFAULTS): New macro.
5138         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5139         * modules/iswblank-tests: New file.
5140         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5141         * tests/test-wctype-h.c (main): Remove iswblank tests.
5142         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5143         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5144         of 'wctype-h'.
5145         * NEWS: Mention the change.
5146         * modules/mbchar (Depends-on): Add iswblank.
5147
5148 2011-02-08  Bruno Haible  <bruno@clisp.org>
5149
5150         di-set tests: Refactor.
5151         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5152         unnecessary includes.
5153         (ASSERT): Remove macro.
5154         (main): Make C90 compliant by avoiding variable declaration after
5155         statement.
5156         * modules/di-set-tests (Files): Add tests/macros.h.
5157
5158 2011-02-08  Bruno Haible  <bruno@clisp.org>
5159
5160         ino-map tests: Refactor.
5161         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5162         unnecessary includes.
5163         (ASSERT): Remove macro.
5164         (main): Make C90 compliant by avoiding variable declaration after
5165         statement.
5166         * modules/ino-map-tests (Files): Add tests/macros.h.
5167
5168 2011-02-08  Jim Meyering  <meyering@redhat.com>
5169
5170         di-set: add "const" to a cast
5171         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5172         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5173
5174 2011-02-06  Bruno Haible  <bruno@clisp.org>
5175
5176         Rename module 'wctype' to 'wctype-h'.
5177         * modules/wctype-h: Renamed from modules/wctype.
5178         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5179         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5180         (Files, Depends-on, Makefile.am): Update.
5181         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5182         (Files, Makefile.am): Update.
5183         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5184         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5185         * doc/posix-headers/wctype.texi: Update.
5186         * doc/posix-functions/iswalnum.texi: Update.
5187         * doc/posix-functions/iswalpha.texi: Update.
5188         * doc/posix-functions/iswblank.texi: Update.
5189         * doc/posix-functions/iswcntrl.texi: Update.
5190         * doc/posix-functions/iswdigit.texi: Update.
5191         * doc/posix-functions/iswgraph.texi: Update.
5192         * doc/posix-functions/iswlower.texi: Update.
5193         * doc/posix-functions/iswprint.texi: Update.
5194         * doc/posix-functions/iswpunct.texi: Update.
5195         * doc/posix-functions/iswspace.texi: Update.
5196         * doc/posix-functions/iswupper.texi: Update.
5197         * doc/posix-functions/iswxdigit.texi: Update.
5198         * doc/posix-functions/towlower.texi: Update.
5199         * doc/posix-functions/towupper.texi: Update.
5200         * NEWS: Mention the change.
5201         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5202         * modules/mbchar (Dependencies): Likewise.
5203         * modules/mbswidth (Dependencies): Likewise.
5204         * modules/quotearg (Dependencies): Likewise.
5205         * modules/regex (Dependencies): Likewise.
5206         * modules/wcscasecmp (Dependencies): Likewise.
5207         * modules/wcsncasecmp (Dependencies): Likewise.
5208         * modules/wcwidth (Dependencies): Likewise.
5209
5210 2011-02-06  Bruno Haible  <bruno@clisp.org>
5211
5212         New module 'wcswidth'.
5213         * modules/wcswidth: New file.
5214         * lib/wchar.in.h (wcswidth): New declaration.
5215         * lib/wcswidth.c: New file.
5216         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5217         * m4/wcswidth.m4: New file.
5218         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5219         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5220         REPLACE_WCSWIDTH.
5221         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5222         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5223         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5224         * doc/posix-functions/wcswidth.texi: Mention the new module.
5225
5226 2011-02-06  Bruno Haible  <bruno@clisp.org>
5227
5228         New module 'wcstok'.
5229         * modules/wcstok: New file.
5230         * lib/wchar.in.h (wcstok): New declaration.
5231         * lib/wcstok.c: New file.
5232         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5233         * m4/wcstok.m4: New file.
5234         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5235         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5236         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5237         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5238         * doc/posix-functions/wcstok.texi: Mention the new module.
5239
5240 2011-02-06  Bruno Haible  <bruno@clisp.org>
5241
5242         New module 'wcsstr'.
5243         * modules/wcsstr: New file.
5244         * lib/wchar.in.h (wcsstr): New declaration.
5245         * lib/wcsstr.c: New file.
5246         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5247         * m4/wcsstr.m4: New file.
5248         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5249         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5250         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5251         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5252         * doc/posix-functions/wcsstr.texi: Mention the new module.
5253
5254 2011-02-06  Bruno Haible  <bruno@clisp.org>
5255
5256         New module 'wcspbrk'.
5257         * modules/wcspbrk: New file.
5258         * lib/wchar.in.h (wcspbrk): New declaration.
5259         * lib/wcspbrk.c: New file.
5260         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5261         * m4/wcspbrk.m4: New file.
5262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5265         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5266         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5267
5268 2011-02-06  Bruno Haible  <bruno@clisp.org>
5269
5270         New module 'wcsspn'.
5271         * modules/wcsspn: New file.
5272         * lib/wchar.in.h (wcsspn): New declaration.
5273         * lib/wcsspn.c: New file.
5274         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5275         * m4/wcsspn.m4: New file.
5276         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5277         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5279         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5280         * doc/posix-functions/wcsspn.texi: Mention the new module.
5281
5282 2011-02-06  Bruno Haible  <bruno@clisp.org>
5283
5284         New module 'wcscspn'.
5285         * modules/wcscspn: New file.
5286         * lib/wchar.in.h (wcscspn): New declaration.
5287         * lib/wcscspn.c: New file.
5288         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5289         * m4/wcscspn.m4: New file.
5290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5292         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5293         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5294         * doc/posix-functions/wcscspn.texi: Mention the new module.
5295
5296 2011-02-06  Bruno Haible  <bruno@clisp.org>
5297
5298         New module 'wcsrchr'.
5299         * modules/wcsrchr: New file.
5300         * lib/wchar.in.h (wcsrchr): New declaration.
5301         * lib/wcsrchr.c: New file.
5302         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5303         * m4/wcsrchr.m4: New file.
5304         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5305         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5306         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5307         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5308         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5309
5310 2011-02-06  Bruno Haible  <bruno@clisp.org>
5311
5312         New module 'wcschr'.
5313         * modules/wcschr: New file.
5314         * lib/wchar.in.h (wcschr): New declaration.
5315         * lib/wcschr.c: New file.
5316         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5317         * m4/wcschr.m4: New file.
5318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5321         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5322         * doc/posix-functions/wcschr.texi: Mention the new module.
5323
5324 2011-02-06  Bruno Haible  <bruno@clisp.org>
5325
5326         New module 'wcsdup'.
5327         * modules/wcsdup: New file.
5328         * lib/wchar.in.h (wcsdup): New declaration.
5329         * lib/wcsdup.c: New file.
5330         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5331         * m4/wcsdup.m4: New file.
5332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5334         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5335         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5336         * doc/posix-functions/wcsdup.texi: Mention the new module.
5337
5338 2011-02-06  Bruno Haible  <bruno@clisp.org>
5339
5340         New module 'wcsxfrm'.
5341         * modules/wcsxfrm: New file.
5342         * lib/wchar.in.h (wcsxfrm): New declaration.
5343         * lib/wcsxfrm.c: New file.
5344         * lib/wcsxfrm-impl.h: New file.
5345         * m4/wcsxfrm.m4: New file.
5346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5348         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5349         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5350         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5351
5352 2011-02-06  Bruno Haible  <bruno@clisp.org>
5353
5354         New module 'wcscoll'.
5355         * modules/wcscoll: New file.
5356         * lib/wchar.in.h (wcscoll): New declaration.
5357         * lib/wcscoll.c: New file.
5358         * lib/wcscoll-impl.h: New file.
5359         * m4/wcscoll.m4: New file.
5360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5362         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5363         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5364         * doc/posix-functions/wcscoll.texi: Mention the new module.
5365
5366 2011-02-06  Bruno Haible  <bruno@clisp.org>
5367
5368         New module 'wcsncasecmp'.
5369         * modules/wcsncasecmp: New file.
5370         * lib/wchar.in.h (wcsncasecmp): New declaration.
5371         * lib/wcsncasecmp.c: New file.
5372         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5373         * m4/wcsncasecmp.m4: New file.
5374         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5375         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5376         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5377         HAVE_WCSNCASECMP.
5378         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5379         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5380
5381 2011-02-06  Bruno Haible  <bruno@clisp.org>
5382
5383         New module 'wcscasecmp'.
5384         * modules/wcscasecmp: New file.
5385         * lib/wchar.in.h (wcscasecmp): New declaration.
5386         * lib/wcscasecmp.c: New file.
5387         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5388         * m4/wcscasecmp.m4: New file.
5389         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5390         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5391         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5392         HAVE_WCSCASECMP.
5393         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5394         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5395
5396 2011-02-05  Bruno Haible  <bruno@clisp.org>
5397
5398         New module 'wcsncmp'.
5399         * modules/wcsncmp: New file.
5400         * lib/wchar.in.h (wcsncmp): New declaration.
5401         * lib/wcsncmp.c: New file.
5402         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5403         * m4/wcsncmp.m4: New file.
5404         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5405         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5406         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5407         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5408         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5409
5410 2011-02-05  Bruno Haible  <bruno@clisp.org>
5411
5412         New module 'wcscmp'.
5413         * modules/wcscmp: New file.
5414         * lib/wchar.in.h (wcscmp): New declaration.
5415         * lib/wcscmp.c: New file.
5416         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5417         * m4/wcscmp.m4: New file.
5418         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5419         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5420         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5421         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5422         * doc/posix-functions/wcscmp.texi: Mention the new module.
5423
5424 2011-02-05  Bruno Haible  <bruno@clisp.org>
5425
5426         New module 'wcsncat'.
5427         * modules/wcsncat: New file.
5428         * lib/wchar.in.h (wcsncat): New declaration.
5429         * lib/wcsncat.c: New file.
5430         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5431         * m4/wcsncat.m4: New file.
5432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5434         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5435         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5436         * doc/posix-functions/wcsncat.texi: Mention the new module.
5437
5438 2011-02-05  Bruno Haible  <bruno@clisp.org>
5439
5440         New module 'wcscat'.
5441         * modules/wcscat: New file.
5442         * lib/wchar.in.h (wcscat): New declaration.
5443         * lib/wcscat.c: New file.
5444         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5445         * m4/wcscat.m4: New file.
5446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5449         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5450         * doc/posix-functions/wcscat.texi: Mention the new module.
5451
5452 2011-02-05  Bruno Haible  <bruno@clisp.org>
5453
5454         New module 'wcpncpy'.
5455         * modules/wcpncpy: New file.
5456         * lib/wchar.in.h (wcpncpy): New declaration.
5457         * lib/wcpncpy.c: New file.
5458         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5459         * m4/wcpncpy.m4: New file.
5460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5462         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
5463         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
5464         * doc/posix-functions/wcpncpy.texi: Mention the new module.
5465
5466 2011-02-05  Bruno Haible  <bruno@clisp.org>
5467
5468         New module 'wcsncpy'.
5469         * modules/wcsncpy: New file.
5470         * lib/wchar.in.h (wcsncpy): New declaration.
5471         * lib/wcsncpy.c: New file.
5472         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
5473         * m4/wcsncpy.m4: New file.
5474         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
5475         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
5476         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
5477         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
5478         * doc/posix-functions/wcsncpy.texi: Mention the new module.
5479
5480 2011-02-05  Bruno Haible  <bruno@clisp.org>
5481
5482         New module 'wcpcpy'.
5483         * modules/wcpcpy: New file.
5484         * lib/wchar.in.h (wcpcpy): New declaration.
5485         * lib/wcpcpy.c: New file.
5486         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
5487         * m4/wcpcpy.m4: New file.
5488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
5489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
5490         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
5491         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
5492         * doc/posix-functions/wcpcpy.texi: Mention the new module.
5493
5494 2011-02-05  Bruno Haible  <bruno@clisp.org>
5495
5496         New module 'wcscpy'.
5497         * modules/wcscpy: New file.
5498         * lib/wchar.in.h (wcscpy): New declaration.
5499         * lib/wcscpy.c: New file.
5500         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
5501         * m4/wcscpy.m4: New file.
5502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
5503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
5504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
5505         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
5506         * doc/posix-functions/wcscpy.texi: Mention the new module.
5507
5508 2011-02-05  Bruno Haible  <bruno@clisp.org>
5509
5510         New module 'wcsnlen'.
5511         * modules/wcsnlen: New file.
5512         * lib/wchar.in.h (wcsnlen): New declaration.
5513         * lib/wcsnlen.c: New file.
5514         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
5515         * m4/wcsnlen.m4: New file.
5516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
5517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
5518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
5519         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5520         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5521
5522 2011-02-05  Bruno Haible  <bruno@clisp.org>
5523
5524         New module 'wcslen'.
5525         * modules/wcslen: New file.
5526         * lib/wchar.in.h (wcslen): New declaration.
5527         * lib/wcslen.c: New file.
5528         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
5529         * m4/wcslen.m4: New file.
5530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
5531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
5532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
5533         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
5534         * doc/posix-functions/wcslen.texi: Mention the new module.
5535
5536 2011-02-05  Bruno Haible  <bruno@clisp.org>
5537
5538         New module 'wmemset'.
5539         * modules/wmemset: New file.
5540         * lib/wchar.in.h (wmemset): New declaration.
5541         * lib/wmemset.c: New file.
5542         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
5543         * m4/wmemset.m4: New file.
5544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
5545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
5546         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
5547         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
5548         * doc/posix-functions/wmemset.texi: Mention the new module.
5549
5550 2011-02-05  Bruno Haible  <bruno@clisp.org>
5551
5552         New module 'wmemmove'.
5553         * modules/wmemmove: New file.
5554         * lib/wchar.in.h (wmemmove): New declaration.
5555         * lib/wmemmove.c: New file.
5556         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
5557         * m4/wmemmove.m4: New file.
5558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
5559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
5560         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
5561         HAVE_WMEMMOVE.
5562         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
5563         * doc/posix-functions/wmemmove.texi: Mention the new module.
5564
5565 2011-02-05  Bruno Haible  <bruno@clisp.org>
5566
5567         New module 'wmemcpy'.
5568         * modules/wmemcpy: New file.
5569         * lib/wchar.in.h (wmemcpy): New declaration.
5570         * lib/wmemcpy.c: New file.
5571         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
5572         * m4/wmemcpy.m4: New file.
5573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
5574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
5575         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
5576         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
5577         * doc/posix-functions/wmemcpy.texi: Mention the new module.
5578
5579 2011-02-05  Bruno Haible  <bruno@clisp.org>
5580
5581         New module 'wmemcmp'.
5582         * modules/wmemcmp: New file.
5583         * lib/wchar.in.h (wmemcmp): New declaration.
5584         * lib/wmemcmp.c: New file.
5585         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
5586         * m4/wmemcmp.m4: New file.
5587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
5588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
5589         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
5590         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
5591         * doc/posix-functions/wmemcmp.texi: Mention the new module.
5592
5593 2011-02-07  Jim Meyering  <meyering@redhat.com>
5594
5595         di-set, ino-map: new modules, from coreutils
5596         * lib/di-set.c: New file.
5597         * lib/di-set.h: Likewise.
5598         * lib/ino-map.c: Likewise.
5599         * lib/ino-map.h: Likewise.
5600         * modules/di-set: Likewise.
5601         * modules/di-set-tests: Likewise.
5602         * modules/ino-map: Likewise.
5603         * modules/ino-map-tests: Likewise.
5604         * tests/test-di-set.c: Likewise.
5605         * tests/test-ino-map.c: Likewise.
5606
5607 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5608
5609         getloadavg: merge minor changes from Emacs
5610
5611         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
5612         (getloadavg): Use memset, not bzero.
5613
5614         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
5615         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5616         clash (bug#86).
5617
5618 2010-11-14  Bruno Haible  <bruno@clisp.org>
5619
5620         Allow multiple gnulib generated replacements to coexist.
5621         * lib/getopt.in.h (struct option): Avoid identical redefinition.
5622         * lib/inttypes.in.h (imaxdiv_t): Likewise.
5623         * lib/langinfo.in.h (nl_item): Likewise.
5624         * lib/math.in.h (_NaN, NAN): Likewise.
5625         * lib/netdb.in.h (struct addrinfo): Likewise.
5626         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
5627         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
5628         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
5629         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
5630         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
5631         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
5632         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5633         pthread_mutexattr_init, pthread_mutexattr_settype,
5634         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5635         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5636         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5637         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5638         * lib/sched.in.h (struct sched_param): Likewise.
5639         * lib/se-selinux.in.h (security_class_t, security_context_t,
5640         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5641         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5642         lsetfilecon, fsetfilecon, security_check_context,
5643         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5644         Likewise.
5645         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5646         Likewise.
5647         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5648         _gl_function_taking_int_returning_void_t, union sigval,
5649         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5650         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5651         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5652         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5653         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5654         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5655         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5656         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5657         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5658         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5659         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5660         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5661         socklen_t, rpl_fd_isset): Likewise.
5662         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5663         * lib/sys_time.in.h (struct timeval): Likewise.
5664         * lib/sys_times.in.h (struct tms): Likewise.
5665         * lib/sys_utsname.in.h (struct utsname):
5666         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5667         * lib/unistd.in.h (getpagesize): Likewise.
5668         * lib/wchar.in.h (mbstate_t): Likewise.
5669         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5670         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5671         towlower, towupper): Likewise.
5672         Reported by Sam Steingold <sds@gnu.org>.
5673
5674 2011-02-05  Eric Blake  <eblake@redhat.com>
5675
5676         unsetenv: work around Haiku issues
5677         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5678         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5679
5680 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5681
5682         libposix: avoid calling error() within libposix
5683         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5684         is defined.
5685
5686 2011-02-05  Eric Blake  <eblake@redhat.com>
5687
5688         strerror_r-posix: port to cygwin
5689         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5690         implementation.
5691         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5692         * tests/test-strerror_r.c (main): Fix test.
5693         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5694         issue.
5695
5696 2011-02-05  Bruno Haible  <bruno@clisp.org>
5697
5698         New module 'wmemchr'.
5699         * modules/wmemchr: New file.
5700         * lib/wchar.in.h (wmemchr): New declaration.
5701         * lib/wmemchr.c: New file.
5702         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5703         * m4/wmemchr.m4: New file.
5704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5706         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5707         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5708         * doc/posix-functions/wmemchr.texi: Mention the new module.
5709
5710 2011-02-04  Eric Blake  <eblake@redhat.com>
5711
5712         fdopendir: detect FreeBSD bug
5713         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5714         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5715
5716 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5717
5718         stdbool: do not define HAVE_STDBOOL_H
5719         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5720         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5721         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5722         imported from the latest Autoconf git.  It was motivated by Emacs,
5723         which uses gnulib but does not need HAVE_STDBOOL_H.
5724
5725 2011-02-04  Bruno Haible  <bruno@clisp.org>
5726
5727         wcsnrtombs: Prepare for new module wwcsnrtombs.
5728         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5729         * lib/wcsnrtombs.c: Include it.
5730         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5731
5732         wcsrtombs: Prepare for new module wwcsrtombs.
5733         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5734         * lib/wcsrtombs.c: Include it.
5735         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
5736
5737         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
5738         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
5739         * lib/mbsnrtowcs.c: Include it.
5740         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
5741
5742         mbsrtowcs: Prepare for new module mbsrtowwcs.
5743         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5744         * lib/mbsrtowcs.c: Include it.
5745         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
5746
5747 2011-02-04  Bruno Haible  <bruno@clisp.org>
5748
5749         vasnprintf: Reduce use of malloc for small format strings.
5750         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
5751         (arguments): Add room for the first 7 arguments.
5752         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
5753         (char_directives, u8_directives, u16_directives, u32_directives): Add
5754         room for the first 7 directives.
5755         * lib/printf-parse.c: Include <string.h>.
5756         (PRINTF_PARSE): Change memory handling code so that it uses the first
5757         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
5758         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
5759         Reported by Pádraig Brady <P@draigbrady.com>.
5760
5761 2011-01-31  Eric Blake  <eblake@redhat.com>
5762
5763         dup2: work around Haiku bug
5764         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
5765         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
5766         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5767         * tests/test-dup2.c (main): Enhance test.
5768
5769 2011-01-31  Simon Josefsson  <simon@josefsson.org>
5770
5771         doc: off_t is not available in eglibc 2.11.2 stdio.h.
5772         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
5773         declared by eglibc 2.11.2.
5774         * lib/stdio.in.h: Likewise.
5775
5776 2011-01-31  Eric Blake  <eblake@redhat.com>
5777
5778         ignore-value: add missing test dependency
5779         * tests/test-ignore-value.c: Revert previous change; stdio.h
5780         provides off_t.
5781         * modules/ignore-value-tests (Depends-on): Add missing dependency.
5782
5783 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5784
5785         mktime: clarify long_int width checking
5786         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
5787         the top level, to make it clearer that the assumption about
5788         long_int width is being checked.  See
5789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
5790
5791 2011-01-30  Simon Josefsson  <simon@josefsson.org>
5792
5793         ignore-value: Fix self-test.
5794         * tests/test-ignore-value.c: Include sys/types.h for off_t.
5795
5796 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5797
5798         TYPE_MAXIMUM: avoid theoretically undefined behavior
5799         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
5800         negative number, which the C Standard says has undefined behavior.
5801         In practice this is not a problem, but might as well do it by the book.
5802         Reported by Rich Felker and Eric Blake; see
5803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
5804         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
5805         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5806         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5807         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
5808         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5809         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
5810
5811         mktime: #undef mktime before #defining it
5812         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
5813
5814         mktime: systematically normalize tm_isdst comparisons
5815         * lib/mktime.c (isdst_differ): New function.
5816         (__mktime_internal): Use it systematically for all isdst comparisons.
5817         This completes the fix for libc BZ #6723, and removes the need for
5818         normalizing tm_isdst.  See
5819         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
5820         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
5821
5822         mktime: fix some integer overflow issues and sidestep the rest
5823
5824         This was prompted by a bug report by Benjamin Lindner for MinGW
5825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
5826         His bug is due to signed integer overflow (0 - INT_MIN), and I
5827         I scanned through mktime.c looking for other integer overflow
5828         problems, fixing all the bugs I found.
5829
5830         Although the C Standard says the resulting code is still not safe
5831         in the presence of integer overflow, in practice it should be good
5832         enough for all real-world two's-complement implementations, except
5833         for debugging environments that deliberately trap on integer
5834         overflow (e.g., gcc -ftrapv).
5835
5836         * lib/mktime.c (WRAPV): New macro.
5837         (SHR): Also check that long_int and time_t shift right in the
5838         usual way, before using the fast-but-unportable method.
5839         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
5840         used.  The code already assumed two's complement, so there's
5841         no need to test for alternatives.  All uses removed.
5842         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
5843         the C standard.  Problem reported by Rich Felker in
5844         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
5845         (twos_complement_arithmetic): Also check long_int and time_t.
5846         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
5847         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
5848         (__mktime_internal): Avoid integer overflow with unary subtraction
5849         in two instances where -1 - X is an adequate replacement for -X,
5850         since the calculations are approximate.
5851
5852 2011-01-29  Eric Blake  <eblake@redhat.com>
5853
5854         mktime: avoid infinite loop
5855         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
5856         type; behavior is still undefined but portable to all known targets.
5857         Reported by Rich Felker.
5858
5859 2011-01-29  Simon Josefsson  <simon@josefsson.org>
5860
5861         rename, unlink, same-inode: Relicense.
5862         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
5863         * modules/unlink (License): Likewise.
5864         * modules/same-inode (License): Likewise.
5865
5866 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5867
5868         mktime: avoid problems on NetBSD 5 / i386
5869         * lib/mktime.c (long_int): New type.  This works around a problem
5870         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
5871         but time_t is 64 bits, and where I expect the existing code is
5872         wrong in some cases.
5873         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
5874         (ydhms_diff): Bring back the compile-time check for wide-enough
5875         year and yday.
5876
5877         mktime: fix misspelling in comment
5878         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
5879         This merges all recent glibc changes of importance.
5880
5881 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5882
5883         move-if-change: cope with concurrent mv of identical file.
5884         * build-aux/move-if-change (CMPPROG): Accept environment
5885         variable as an override for `cmp'.
5886         (usage): Document CMPPROG.
5887         Adjust comparison to drop stdout.  Cope with failure of mv if
5888         the target file exists and is identical to the source, for
5889         parallel builds.
5890         Report from H.J. Lu against binutils in PR binutils/12283.
5891
5892 2011-01-28  Bruce Korb  <bkorb@gnu.org>
5893
5894         * users.txt: Mention sharutils.
5895
5896 2011-01-28  Simon Josefsson  <simon@josefsson.org>
5897
5898         * users.txt: Mention OATH Toolkit.
5899
5900 2011-01-27  Bruno Haible  <bruno@clisp.org>
5901
5902         Prepare for supporting FreeBSD 10.
5903         * build-aux/config.libpath: Remove handling of freebsd1*.
5904
5905 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
5906
5907         Prepare for supporting FreeBSD 10.
5908         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
5909         match FreeBSD 10.0.
5910
5911 2011-01-27  Bruno Haible  <bruno@clisp.org>
5912
5913         vma-iter, get-rusage-as: Add OpenBSD support.
5914         * modules/vma-iter (configure.ac): Test for mquery.
5915         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
5916         * lib/vma-iter.c: Include <sys/mman.h>.
5917         (vma_iterate): Add an implementation based on mquery().
5918         * lib/resource-ext.h (get_rusage_as): Update comments.
5919         * lib/get-rusage-as.c: Likewise.
5920         * lib/get-rusage-data.c: Likewise.
5921
5922 2011-01-26  Karl Berry  <karl@gnu.org>
5923
5924         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
5925         variables to make it easier to override the makeinfo program used.
5926
5927 2011-01-26  Eric Blake  <eblake@redhat.com>
5928
5929         fcntl: work around Haiku F_DUPFD bugs
5930         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
5931         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
5932         cloexec bit on duplication.
5933         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
5934
5935 2011-01-26  Bruno Haible  <bruno@clisp.org>
5936
5937         Enable memory leak tests on AIX.
5938         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
5939         * tests/test-fprintf-posix3.c (main): Likewise.
5940
5941 2011-01-26  Bruno Haible  <bruno@clisp.org>
5942
5943         Tests for module 'get-rusage-data'.
5944         * modules/get-rusage-data-tests: New file.
5945         * tests/test-get-rusage-data.c: New file.
5946
5947         New module 'get-rusage-data'.
5948         * lib/resource-ext.h (get_rusage_data): New declaration.
5949         * lib/get-rusage-data.c: New file.
5950         * modules/get-rusage-data: New file.
5951
5952 2011-01-25  Bruno Haible  <bruno@clisp.org>
5953
5954         get-rusage-as: Allow for easier testing.
5955         * lib/resource-ext.h (get_rusage_as): Add comment.
5956         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
5957         (main): New function for interactive testing.
5958
5959 2011-01-25  Bruno Haible  <bruno@clisp.org>
5960
5961         vma-iter: Treat Haiku like BeOS.
5962         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
5963         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
5964
5965 2011-01-25  Eric Blake  <eblake@redhat.com>
5966
5967         c-stack: fix regression on cygwin when libsigsegv is present
5968         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
5969
5970 2011-01-24  Bruno Haible  <bruno@clisp.org>
5971
5972         vma-iter: Avoid empty intervals.
5973         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5974         on an empty interval.
5975
5976 2011-01-24  Jim Meyering  <meyering@redhat.com>
5977
5978         u64: remove unnecessary #include
5979         * lib/u64.h: Don't include <stddef.h>.  It was not used.
5980
5981 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5982
5983         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5984         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5985
5986 2011-01-23  Bruno Haible  <bruno@clisp.org>
5987
5988         New module 'vma-iter'.
5989         * lib/vma-iter.h: New file.
5990         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5991         * modules/vma-iter: New file.
5992         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5993         for get_rusage_as_via_iterator.
5994         (vma_iterate_callback): New function.
5995         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5996         * modules/get-rusage-as (Depends-on): Add vma-iter.
5997
5998 2011-01-23  Bruno Haible  <bruno@clisp.org>
5999
6000         uninorm: Tweak includes.
6001         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6002         Reported by Jim Meyering.
6003
6004 2011-01-23  Bruno Haible  <bruno@clisp.org>
6005
6006         get-rusage-as: Improve on NetBSD.
6007         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6008         /proc, like on FreeBSD.
6009
6010 2011-01-23  Jim Meyering  <meyering@redhat.com>
6011
6012         xreadlink.h: remove unnecessary #include
6013         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6014
6015         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6016         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6017
6018 2011-01-23  Bruno Haible  <bruno@clisp.org>
6019
6020         get-rusage-as: Fix bug.
6021         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6022         original limit when aborting the first loop.
6023
6024 2011-01-23  Bruno Haible  <bruno@clisp.org>
6025
6026         wctype: Ensure valid C syntax.
6027         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6028         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6029
6030 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6031
6032         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6033         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6034         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6035         as they are needed only for configure's test case.
6036         This removes two unnecessary symbols from config.h.
6037
6038         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6039         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6040         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6041         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6042         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6043         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6044         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6045         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6046         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6047         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6048         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6049         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6050         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6051         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6052         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6053         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6054         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6055         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6056
6057 2011-01-21  Eric Blake  <eblake@redhat.com>
6058
6059         maintainer-makefile: work with older git for submodule check
6060         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6061         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6062         Reported by Matthias Bolte.
6063
6064         bootstrap: minor portability fixes
6065         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6066         (usage): Omit leading capital and trailing . on help phrases, per
6067         GNU Coding Standards.
6068         (check_versions, top level): Prefix messages with script name.
6069
6070 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6071
6072         bootstrap: support --no-git option
6073         * build-aux/bootstrap: Add --no-git option, to be used when
6074         --gnulib-srcdir points to the exact desired checkout.
6075
6076 2011-01-21  Eric Blake  <eblake@redhat.com>
6077
6078         strerror_r-posix: work with glibc 2.13
6079         * lib/strerror_r.c (strerror_r): Fix return type.
6080
6081 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6082             Bruno Haible  <bruno@clisp.org>
6083
6084         uN_strstr: New unit tests.
6085         * modules/unistr/u8-strstr-tests: New file.
6086         * modules/unistr/u16-strstr-tests: New file.
6087         * modules/unistr/u32-strstr-tests: New file.
6088         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6089         * tests/unistr/test-u8-strstr.c: New file.
6090         * tests/unistr/test-u16-strstr.c: New file.
6091         * tests/unistr/test-u32-strstr.c: New file.
6092
6093 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6094             Bruno Haible  <bruno@clisp.org>
6095
6096         Make uN_strstr functions O(n) worst-case.
6097         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6098         16-bit and 32-bit unit cases, use the unibyte algorithm from
6099         lib/mbsstr.c.
6100         * lib/unistr/u8-strstr.c: Include <string.h>.
6101         (UNIT_IS_UINT8_T): New macro.
6102         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6103         (U_STRLEN, U_STRNLEN): New macros.
6104         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6105         (U_STRLEN, U_STRNLEN): New macros.
6106         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6107         (configure.ac): Update required libunistring version.
6108         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6109         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6110         malloca.
6111         (configure.ac): Update required libunistring version.
6112         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6113         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6114         malloca.
6115         (configure.ac): Update required libunistring version.
6116
6117 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6118             Bruno Haible  <bruno@clisp.org>
6119
6120         Prepare for faster uN_strstr functions.
6121         * lib/str-kmp.h: Support definable UNITs.
6122         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6123         needle_len argument.
6124         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6125         * lib/mbscasestr.c (mbscasestr): Likewise.
6126
6127 2011-01-21  Pádraig Brady <P@draigBrady.com>
6128
6129         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6130         * tests/test-malloca.c (main): Unset the environment variable
6131         to greatly speed up the test.
6132         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6133         * modules/malloca-tests: Depend on unsetenv.
6134
6135 2011-01-21  Pádraig Brady <P@draigBrady.com>
6136
6137         ignore-value: remove stdint dependency
6138         * lib/ignore-value.h: Remove <stdint.h>
6139         * modules/ignore-value: Remove stdint dependency.
6140
6141 2011-01-21  Jim Meyering  <meyering@redhat.com>
6142
6143         maint.mk: adjust variable name to be consistent with other gl_ vars
6144         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6145         to be lower case.
6146
6147 2011-01-20  Jim Meyering  <meyering@redhat.com>
6148
6149         maint.mk: make "check" depend on public-submodule-commit by default
6150         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6151
6152 2011-01-20  Bruno Haible  <bruno@clisp.org>
6153
6154         mbfile, mbiter: Complete change from 2008-12-21.
6155         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6156         * m4/mbiter.m4 (gl_MBITER): Likewise.
6157
6158 2011-01-20  Jim Meyering  <meyering@redhat.com>
6159
6160         init.sh: insert space between each function name and "()"
6161         * tests/init.sh: Make it a little easier to see that a function's
6162         name is "warn_", and not "warn" when looking at the first part of
6163         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6164
6165 2011-01-20  Jim Meyering  <meyering@redhat.com>
6166
6167         mountlist: clean up code formatting
6168         * lib/mountlist.c (read_file_system_list): Split a long line,
6169         correct bracing style, use NULL in place of "(struct statfs *)0",
6170         don't parenthesize return value, add spaces around "=" and after
6171         ";-in-for-stmt".
6172
6173 2011-01-14  Markus Duft <mduft@gentoo.org>
6174
6175         mountlist: add support for Interix
6176         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6177         Apply statvfs to all entries of /dev/fs.
6178         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6179         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6180
6181 2011-01-20  Jim Meyering  <meyering@redhat.com>
6182
6183         maint.mk: improve the public-submodule-commit rule
6184         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6185         to suppress printing of its commands... unless V=1.
6186         Add git submodule's --quiet option to suppress printing of e.g.,
6187         "Entering gnulib" output.
6188         "cd" into $(srcdir) before running git submodule.
6189
6190 2011-01-20  Bruno Haible  <bruno@clisp.org>
6191
6192         include_next: Fix bug introduced on 2011-01-18.
6193         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6194         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6195         ac_cv_header_... variable if the second argument is not 'check'.
6196         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6197         gl_NEXT_HEADERS_INTERNAL.
6198
6199 2011-01-20  Bruno Haible  <bruno@clisp.org>
6200
6201         Allow the user to avoid the GNULIB_TEST_* macros.
6202         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6203         Suggested by Paul Eggert.
6204
6205 2011-01-14  Jim Meyering  <meyering@redhat.com>
6206
6207         bootstrap: avoid failure when there is no .gitmodules file
6208         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6209         has been assigned to, even when its value is the empty string.
6210         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6211         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6212         Reported by John W. Eaton <jwe@gnu.org>.
6213
6214 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6215
6216         assume <ctype.h>, ..., <time.h> exist
6217         For years gnulib has been assuming the existence of the headers
6218         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6219         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6220         them, since they don't appear to be needed.
6221         * README (Portability guidelines): Document this.
6222         * lib/flock.c: Assume <fcntl.h> exists.
6223         * lib/regex_internal.h: Assume <locale.h> exists.
6224         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6225         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6226         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6227         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6228         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6229         * m4/regex.m4 (gl_REGEX): Likewise.
6230         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6231         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6232         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6233         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6234         * tests/test-argp.c: Likewise.
6235         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6236
6237         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6238         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6239         AA_APPLE_UNIVERSAL_BUILD.  See
6240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6241         * NEWS: Document this.
6242
6243 2011-01-19  Eric Blake  <eblake@redhat.com>
6244
6245         c-stack: assume stack overflow if SA_SIGINFO unsupported
6246         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6247         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6248         sigaction will work.
6249         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6250         behavior match Linux.
6251         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6252
6253         stdbool-tests: accomodate Haiku
6254         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6255
6256         binary-io: fix O_TEXT on Haiku
6257         * modules/binary-io (Depends-on): Add fcntl-h.
6258         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6259         than blindly undefining O_TEXT.
6260         Reported by Scott McCreary.
6261
6262 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6263
6264         include_next: do not check for standard headers like stddef.h
6265
6266         I found this problem when modifying Emacs to use gnulib.
6267         I noticed that it added HAVE_STDDEF_H to config.h, even though
6268         gnulib always assumes <stddef.h> exists as per README and this
6269         symbol is unnecessary.
6270         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6271         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6272         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6273         faster for headers like stddef.h that are known to exist.
6274         (gl_CHECK_NEXT_HEADERS): Use it.
6275         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6276         rather than gl_CHECK_NEXT_HEADERS.
6277         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6278         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6279
6280 2011-01-18  Eric Blake  <eblake@redhat.com>
6281
6282         ansi-c++-opt: skip C++ dependency style if C++ is unused
6283         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6284         tests when we know C++ compilation is not desired.
6285         Reported by Scott McCreary.
6286
6287 2011-01-18  Bruno Haible  <bruno@clisp.org>
6288
6289         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6290         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6291         (main): Perform test also when getrlimit and setrlimit don't exist or
6292         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6293         limiting the address space size using setrlimit, compare the address
6294         space size before and after the the test.
6295         * tests/test-dprintf-posix2.c: Likewise.
6296         * tests/test-fprintf-posix3.sh: Update skip messages.
6297         * tests/test-dprintf-posix2.sh: Likewise.
6298         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6299         * modules/dprintf-posix-tests (Depends-on): Likewise.
6300         Reported by Bruce Korb <bkorb@gnu.org> and
6301         Gary V. Vaughan <gary@gnu.org>.
6302
6303 2011-01-18  Bruno Haible  <bruno@clisp.org>
6304
6305         get-rusage-as: Improvement for Cygwin.
6306         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6307         areas that are merely reserved.
6308
6309 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6310
6311         strftime: remove dependencies on multibyte modules
6312
6313         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6314         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6315         only if __osf__ is defined, and I suspect OSF doesn't need these
6316         other modules.  If my guess is wrong, we'll need to come up with a
6317         variant of strftime that doesn't need the multibyte modules.
6318
6319         I discovered this problem when attempting modify Emacs to use the
6320         strftime module.  With the previous gnulib, this caused Emacs to
6321         need 31 new files, ranging from lib/config.charset to
6322         m4/wint_t.m4.  This was overkill and I expect would be offputting
6323         to the Emacs maintainers.  After this change, only 6 new files are
6324         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6325         stdbool.m4, and tm_gmtoff.m4.
6326
6327         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6328         Suggested by Bruno Haible in
6329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6330         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6331         and do not check for wchar.h.
6332         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6333         (Depends-on): Remove mbrlen, mbsinit, wchar.
6334
6335 2011-01-18  Bruno Haible  <bruno@clisp.org>
6336
6337         Tests for module 'get-rusage-as'.
6338         * modules/get-rusage-as-tests: New file.
6339         * tests/test-get-rusage-as.c: New file.
6340
6341         New module 'get-rusage-as'.
6342         * modules/get-rusage-as: New file.
6343         * lib/resource-ext.h: New file.
6344         * lib/get-rusage-as.c: New file.
6345
6346 2011-01-17  Eric Blake  <eblake@redhat.com>
6347
6348         sigaction: relax license from LGPLv3+ to LGPLv2+
6349         * modules/sigaction (License): Relax to LGPLv2+.
6350
6351 2011-01-14  Bruno Haible  <bruno@clisp.org>
6352
6353         filemode: Make function declarations usable in C++ mode.
6354         * lib/filemode.h: Enclose function declarations in extern "C" block.
6355         Reported by John W. Eaton <jwe@gnu.org>.
6356
6357 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6358
6359         save-cwd: no longer include "xgetcwd.h"
6360         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6361         This avoids a compilation failure in projects that use save-cwd
6362         without also using the xgetcwd module.
6363
6364 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6365
6366         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6367         This is so that a program like Emacs, which needs only dtoastr,
6368         does not have to bother with distributing and compiling ftoastr
6369         and ldtoastr.
6370         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6371         * modules/dtoastr, modules/ldtoastr: New files.
6372         * modules/ftoastr: Now works just for 'float'.
6373         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6374         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6375         dtoastr.c, ldtoastr.c.
6376
6377 2011-01-11  Jim Meyering  <meyering@redhat.com>
6378
6379         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6380         There is no need to work around the lack of the fchdir function,
6381         since gnulib can now provide a replacement when required.
6382         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6383         * modules/save-cwd (Depends-on): Add fchdir.
6384
6385 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6386
6387         openat, save-cwd: avoid xmalloc
6388
6389         This removes a direct (but undocumented) dependency of openat on
6390         xalloc, along with an indirect dependency via save-cwd.  It also
6391         removes a dependency of save-cwd on xgetcwd, and thereby
6392         indirectly on xalloc.  This change causes the openat substitute
6393         to fall back on save_cwd when memory is tight, and for save_cwd to
6394         fail instead of dying when memory is tight, but that's good enough.
6395         Problem and initial idea for fix reported by Bastien Roucaries in
6396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6397
6398         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6399         xalloc.h (for xmalloc).
6400         (openat_proc_name): Use malloc, not xmalloc.
6401         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6402         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6403
6404         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6405         This avoids heap allocation for file names whose lengths are in
6406         the range 512..1023, with the upper bound increasing to at most
6407         4031 depending on the platform's PATH_MAX.  (We do not want
6408         pathmax.h here as it might supply a non-constant PATH_MAX.)
6409         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6410         Perhaps they should be moved to malloca.h?
6411         (OPENAT_BUFFER_SIZE): Use them.
6412
6413 2011-01-10  Bruno Haible  <bruno@clisp.org>
6414
6415         doc: Update users.txt.
6416         * users.txt: Add recutils.
6417
6418 2011-01-09  Karl Berry  <karl@gnu.org>
6419
6420         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6421
6422         * doc/configmake.texi: New file.
6423         * doc/gnulib.texi: Include it.
6424         * modules/configmake: Move documentation from here.
6425
6426 2011-01-09  Bruno Haible  <bruno@clisp.org>
6427
6428         Update to Unicode 6.0.0.
6429         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6430         (get_lbp): Update for Unicode 6.0.0.
6431         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6432         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6433         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6434         U+11001, U+11038..U+11046. Remove U+06DE.
6435         (uc_width): Fix bounds of planes.
6436         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6437         lib/uniwidth/width.c.
6438         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6439         trailing whitespace removed.
6440         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6441         without comments, but with the original copyright notice.
6442         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6443         * lib/unicase/ignorable.h: Likewise.
6444         * lib/unicase/tocasefold.h: Likewise.
6445         * lib/unicase/tolower.h: Likewise.
6446         * lib/unicase/totitle.h: Likewise.
6447         * lib/unicase/toupper.h: Likewise.
6448         * lib/unictype/bidi_of.h: Likewise.
6449         * lib/unictype/blocks.h: Likewise.
6450         * lib/unictype/categ_C.h: Likewise.
6451         * lib/unictype/categ_Cn.h: Likewise.
6452         * lib/unictype/categ_L.h: Likewise.
6453         * lib/unictype/categ_Ll.h: Likewise.
6454         * lib/unictype/categ_Lm.h: Likewise.
6455         * lib/unictype/categ_Lo.h: Likewise.
6456         * lib/unictype/categ_Lu.h: Likewise.
6457         * lib/unictype/categ_M.h: Likewise.
6458         * lib/unictype/categ_Mc.h: Likewise.
6459         * lib/unictype/categ_Me.h: Likewise.
6460         * lib/unictype/categ_Mn.h: Likewise.
6461         * lib/unictype/categ_N.h: Likewise.
6462         * lib/unictype/categ_Nd.h: Likewise.
6463         * lib/unictype/categ_No.h: Likewise.
6464         * lib/unictype/categ_P.h: Likewise.
6465         * lib/unictype/categ_Po.h: Likewise.
6466         * lib/unictype/categ_S.h: Likewise.
6467         * lib/unictype/categ_Sc.h: Likewise.
6468         * lib/unictype/categ_Sk.h: Likewise.
6469         * lib/unictype/categ_Sm.h: Likewise.
6470         * lib/unictype/categ_So.h: Likewise.
6471         * lib/unictype/categ_of.h: Likewise.
6472         * lib/unictype/combining.h: Likewise.
6473         * lib/unictype/ctype_alnum.h: Likewise.
6474         * lib/unictype/ctype_alpha.h: Likewise.
6475         * lib/unictype/ctype_graph.h: Likewise.
6476         * lib/unictype/ctype_lower.h: Likewise.
6477         * lib/unictype/ctype_print.h: Likewise.
6478         * lib/unictype/ctype_punct.h: Likewise.
6479         * lib/unictype/ctype_upper.h: Likewise.
6480         * lib/unictype/decdigit.h: Likewise.
6481         * lib/unictype/digit.h: Likewise.
6482         * lib/unictype/numeric.h: Likewise.
6483         * lib/unictype/pr_alphabetic.h: Likewise.
6484         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6485         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6486         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6487         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6488         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6489         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6490         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6491         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6492         * lib/unictype/pr_case_ignorable.h: Likewise.
6493         * lib/unictype/pr_cased.h: Likewise.
6494         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
6495         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
6496         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
6497         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
6498         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
6499         * lib/unictype/pr_combining.h: Likewise.
6500         * lib/unictype/pr_composite.h: Likewise.
6501         * lib/unictype/pr_currency_symbol.h: Likewise.
6502         * lib/unictype/pr_decimal_digit.h: Likewise.
6503         * lib/unictype/pr_deprecated.h: Likewise.
6504         * lib/unictype/pr_format_control.h: Likewise.
6505         * lib/unictype/pr_grapheme_base.h: Likewise.
6506         * lib/unictype/pr_grapheme_extend.h: Likewise.
6507         * lib/unictype/pr_grapheme_link.h: Likewise.
6508         * lib/unictype/pr_id_continue.h: Likewise.
6509         * lib/unictype/pr_id_start.h: Likewise.
6510         * lib/unictype/pr_ideographic.h: Likewise.
6511         * lib/unictype/pr_lowercase.h: Likewise.
6512         * lib/unictype/pr_math.h: Likewise.
6513         * lib/unictype/pr_numeric.h: Likewise.
6514         * lib/unictype/pr_other_alphabetic.h: Likewise.
6515         * lib/unictype/pr_other_id_continue.h: Likewise.
6516         * lib/unictype/pr_other_math.h: Likewise.
6517         * lib/unictype/pr_punctuation.h: Likewise.
6518         * lib/unictype/pr_sentence_terminal.h: Likewise.
6519         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6520         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6521         * lib/unictype/pr_unified_ideograph.h: Likewise.
6522         * lib/unictype/pr_uppercase.h: Likewise.
6523         * lib/unictype/pr_xid_continue.h: Likewise.
6524         * lib/unictype/pr_xid_start.h: Likewise.
6525         * lib/unictype/scripts.h: Likewise.
6526         * lib/unictype/scripts_byname.gperf: Likewise.
6527         * lib/unictype/sy_java_ident.h: Likewise.
6528         * lib/unigbrk/gbrkprop.h: Likewise.
6529         * lib/unilbrk/lbrkprop1.h: Likewise.
6530         * lib/unilbrk/lbrkprop2.h: Likewise.
6531         * lib/uninorm/decomposition-table2.h: Likewise.
6532         * lib/uniwbrk/wbrkprop.h: Likewise.
6533         * tests/unicase/test-cased.c: Likewise.
6534         * tests/unicase/test-ignorable.c: Likewise.
6535         * tests/unicase/test-uc_tolower.c: Likewise.
6536         * tests/unicase/test-uc_totitle.c: Likewise.
6537         * tests/unicase/test-uc_toupper.c: Likewise.
6538         * tests/unictype/test-categ_C.c: Likewise.
6539         * tests/unictype/test-categ_Cn.c: Likewise.
6540         * tests/unictype/test-categ_L.c: Likewise.
6541         * tests/unictype/test-categ_Ll.c: Likewise.
6542         * tests/unictype/test-categ_Lm.c: Likewise.
6543         * tests/unictype/test-categ_Lo.c: Likewise.
6544         * tests/unictype/test-categ_Lu.c: Likewise.
6545         * tests/unictype/test-categ_M.c: Likewise.
6546         * tests/unictype/test-categ_Mc.c: Likewise.
6547         * tests/unictype/test-categ_Me.c: Likewise.
6548         * tests/unictype/test-categ_Mn.c: Likewise.
6549         * tests/unictype/test-categ_N.c: Likewise.
6550         * tests/unictype/test-categ_Nd.c: Likewise.
6551         * tests/unictype/test-categ_No.c: Likewise.
6552         * tests/unictype/test-categ_P.c: Likewise.
6553         * tests/unictype/test-categ_Po.c: Likewise.
6554         * tests/unictype/test-categ_S.c: Likewise.
6555         * tests/unictype/test-categ_Sc.c: Likewise.
6556         * tests/unictype/test-categ_Sk.c: Likewise.
6557         * tests/unictype/test-categ_Sm.c: Likewise.
6558         * tests/unictype/test-categ_So.c: Likewise.
6559         * tests/unictype/test-ctype_alnum.c: Likewise.
6560         * tests/unictype/test-ctype_alpha.c: Likewise.
6561         * tests/unictype/test-ctype_graph.c: Likewise.
6562         * tests/unictype/test-ctype_lower.c: Likewise.
6563         * tests/unictype/test-ctype_print.c: Likewise.
6564         * tests/unictype/test-ctype_punct.c: Likewise.
6565         * tests/unictype/test-ctype_upper.c: Likewise.
6566         * tests/unictype/test-decdigit.h: Likewise.
6567         * tests/unictype/test-digit.h: Likewise.
6568         * tests/unictype/test-numeric.h: Likewise.
6569         * tests/unictype/test-pr_alphabetic.c: Likewise.
6570         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6571         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6572         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6573         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6574         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6575         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6576         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6577         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6578         * tests/unictype/test-pr_case_ignorable.c: Likewise.
6579         * tests/unictype/test-pr_cased.c: Likewise.
6580         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
6581         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
6582         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
6583         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
6584         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
6585         * tests/unictype/test-pr_combining.c: Likewise.
6586         * tests/unictype/test-pr_composite.c: Likewise.
6587         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6588         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6589         * tests/unictype/test-pr_deprecated.c: Likewise.
6590         * tests/unictype/test-pr_format_control.c: Likewise.
6591         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6592         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6593         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6594         * tests/unictype/test-pr_id_continue.c: Likewise.
6595         * tests/unictype/test-pr_id_start.c: Likewise.
6596         * tests/unictype/test-pr_ideographic.c: Likewise.
6597         * tests/unictype/test-pr_lowercase.c: Likewise.
6598         * tests/unictype/test-pr_math.c: Likewise.
6599         * tests/unictype/test-pr_numeric.c: Likewise.
6600         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6601         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6602         * tests/unictype/test-pr_other_math.c: Likewise.
6603         * tests/unictype/test-pr_punctuation.c: Likewise.
6604         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6605         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6606         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6607         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6608         * tests/unictype/test-pr_uppercase.c: Likewise.
6609         * tests/unictype/test-pr_xid_continue.c: Likewise.
6610         * tests/unictype/test-pr_xid_start.c: Likewise.
6611         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6612         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6613         changes.
6614         * lib/unictype/categ_Cc.h: Likewise.
6615         * lib/unictype/categ_Cf.h: Likewise.
6616         * lib/unictype/categ_Co.h: Likewise.
6617         * lib/unictype/categ_Cs.h: Likewise.
6618         * lib/unictype/categ_Lt.h: Likewise.
6619         * lib/unictype/categ_Nl.h: Likewise.
6620         * lib/unictype/categ_Pc.h: Likewise.
6621         * lib/unictype/categ_Pd.h: Likewise.
6622         * lib/unictype/categ_Pe.h: Likewise.
6623         * lib/unictype/categ_Pf.h: Likewise.
6624         * lib/unictype/categ_Pi.h: Likewise.
6625         * lib/unictype/categ_Ps.h: Likewise.
6626         * lib/unictype/categ_Z.h: Likewise.
6627         * lib/unictype/categ_Zl.h: Likewise.
6628         * lib/unictype/categ_Zp.h: Likewise.
6629         * lib/unictype/categ_Zs.h: Likewise.
6630         * lib/unictype/ctype_blank.h: Likewise.
6631         * lib/unictype/ctype_cntrl.h: Likewise.
6632         * lib/unictype/ctype_digit.h: Likewise.
6633         * lib/unictype/ctype_space.h: Likewise.
6634         * lib/unictype/ctype_xdigit.h: Likewise.
6635         * lib/unictype/mirror.h: Likewise.
6636         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6637         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6638         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6639         * lib/unictype/pr_bidi_control.h: Likewise.
6640         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6641         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6642         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6643         * lib/unictype/pr_bidi_pdf.h: Likewise.
6644         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6645         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6646         * lib/unictype/pr_dash.h: Likewise.
6647         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6648         * lib/unictype/pr_diacritic.h: Likewise.
6649         * lib/unictype/pr_extender.h: Likewise.
6650         * lib/unictype/pr_hex_digit.h: Likewise.
6651         * lib/unictype/pr_hyphen.h: Likewise.
6652         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6653         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6654         * lib/unictype/pr_ignorable_control.h: Likewise.
6655         * lib/unictype/pr_iso_control.h: Likewise.
6656         * lib/unictype/pr_join_control.h: Likewise.
6657         * lib/unictype/pr_left_of_pair.h: Likewise.
6658         * lib/unictype/pr_line_separator.h: Likewise.
6659         * lib/unictype/pr_logical_order_exception.h: Likewise.
6660         * lib/unictype/pr_non_break.h: Likewise.
6661         * lib/unictype/pr_not_a_character.h: Likewise.
6662         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6663         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6664         * lib/unictype/pr_other_id_start.h: Likewise.
6665         * lib/unictype/pr_other_lowercase.h: Likewise.
6666         * lib/unictype/pr_other_uppercase.h: Likewise.
6667         * lib/unictype/pr_paired_punctuation.h: Likewise.
6668         * lib/unictype/pr_paragraph_separator.h: Likewise.
6669         * lib/unictype/pr_pattern_syntax.h: Likewise.
6670         * lib/unictype/pr_pattern_white_space.h: Likewise.
6671         * lib/unictype/pr_private_use.h: Likewise.
6672         * lib/unictype/pr_quotation_mark.h: Likewise.
6673         * lib/unictype/pr_radical.h: Likewise.
6674         * lib/unictype/pr_soft_dotted.h: Likewise.
6675         * lib/unictype/pr_space.h: Likewise.
6676         * lib/unictype/pr_titlecase.h: Likewise.
6677         * lib/unictype/pr_variation_selector.h: Likewise.
6678         * lib/unictype/pr_white_space.h: Likewise.
6679         * lib/unictype/pr_zero_width.h: Likewise.
6680         * lib/unictype/sy_c_ident.h: Likewise.
6681         * lib/unictype/sy_c_whitespace.h: Likewise.
6682         * lib/unictype/sy_java_whitespace.h: Likewise.
6683         * lib/uninorm/composition-table.gperf: Likewise.
6684         * lib/uninorm/decomposition-table1.h: Likewise.
6685         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6686         LB8.
6687         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6688         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6689         * modules/unictype/*: Bump version number of expected libunistring
6690         version.
6691
6692 2011-01-09  Bruno Haible  <bruno@clisp.org>
6693
6694         Update to Unicode 5.2.0.
6695         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6696         trailing whitespace removed.
6697
6698 2011-01-09  Bruno Haible  <bruno@clisp.org>
6699
6700         New Unicode character properties, from Unicode 5.2.0.
6701         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6702         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6703         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6704         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6705         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6706         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6707         uc_is_property_cased, uc_is_property_case_ignorable,
6708         uc_is_property_changes_when_lowercased,
6709         uc_is_property_changes_when_uppercased,
6710         uc_is_property_changes_when_titlecased,
6711         uc_is_property_changes_when_casefolded,
6712         uc_is_property_changes_when_casemapped): New declarations.
6713         * lib/unictype/pr_byname.gperf: Add the new properties.
6714         * modules/unictype/property-byname (Depends-on): Depend on the new
6715         properties modules.
6716         * modules/unictype/property-all (Depends-on): Likewise.
6717         * MODULES.html.sh (Unicode string functions): Add
6718         unictype/property-case-ignorable, unictype/property-cased,
6719         unictype/property-changes-when-casefolded,
6720         unictype/property-changes-when-casemapped,
6721         unictype/property-changes-when-lowercased,
6722         unictype/property-changes-when-titlecased,
6723         unictype/property-changes-when-uppercased.
6724
6725         New module 'unictype/property-changes-when-casemapped'.
6726         * modules/unictype/property-changes-when-casemapped: New file.
6727         * lib/unictype/pr_changes_when_casemapped.c: New file.
6728         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6729         generated by gen-uni-tables.
6730         * modules/unictype/property-changes-when-casemapped-tests: New file.
6731         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6732         automatically generated by gen-uni-tables.
6733
6734         New module 'unictype/property-changes-when-casefolded'.
6735         * modules/unictype/property-changes-when-casefolded: New file.
6736         * lib/unictype/pr_changes_when_casefolded.c: New file.
6737         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
6738         generated by gen-uni-tables.
6739         * modules/unictype/property-changes-when-casefolded-tests: New file.
6740         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
6741         automatically generated by gen-uni-tables.
6742
6743         New module 'unictype/property-changes-when-titlecased'.
6744         * modules/unictype/property-changes-when-titlecased: New file.
6745         * lib/unictype/pr_changes_when_titlecased.c: New file.
6746         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
6747         generated by gen-uni-tables.
6748         * modules/unictype/property-changes-when-titlecased-tests: New file.
6749         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
6750         automatically generated by gen-uni-tables.
6751
6752         New module 'unictype/property-changes-when-uppercased'.
6753         * modules/unictype/property-changes-when-uppercased: New file.
6754         * lib/unictype/pr_changes_when_uppercased.c: New file.
6755         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
6756         generated by gen-uni-tables.
6757         * modules/unictype/property-changes-when-uppercased-tests: New file.
6758         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
6759         automatically generated by gen-uni-tables.
6760
6761         New module 'unictype/property-changes-when-lowercased'.
6762         * modules/unictype/property-changes-when-lowercased: New file.
6763         * lib/unictype/pr_changes_when_lowercased.c: New file.
6764         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
6765         generated by gen-uni-tables.
6766         * modules/unictype/property-changes-when-lowercased-tests: New file.
6767         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
6768         automatically generated by gen-uni-tables.
6769
6770         New module 'unictype/property-case-ignorable'.
6771         * modules/unictype/property-case-ignorable: New file.
6772         * lib/unictype/pr_case_ignorable.c: New file.
6773         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
6774         by gen-uni-tables.
6775         * modules/unictype/property-case-ignorable-tests: New file.
6776         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
6777         generated by gen-uni-tables.
6778
6779         New module 'unictype/property-cased'.
6780         * modules/unictype/property-cased: New file.
6781         * lib/unictype/pr_cased.c: New file.
6782         * lib/unictype/pr_cased.h: New file, automatically generated by
6783         gen-uni-tables.
6784         * modules/unictype/property-cased-tests: New file.
6785         * tests/unictype/test-pr_cased.c: New file, automatically generated by
6786         gen-uni-tables.
6787
6788 2011-01-09  Bruno Haible  <bruno@clisp.org>
6789
6790         Update to Unicode 5.2.0.
6791         * lib/gen-uni-tables.c (output_predicate, output_category,
6792         output_combclass, output_bidi_category, output_decimal_digit_test,
6793         output_decimal_digit, output_digit_test, output_digit,
6794         output_numeric_test, output_numeric, output_mirror, output_scripts,
6795         output_scripts_byname, output_blocks, output_ident_category): Fix
6796         comment header.
6797         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
6798         get_wbp.
6799         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
6800         items.
6801         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
6802         Changes_When_Lowercased, Changes_When_Uppercased,
6803         Changes_When_Titlecased, Changes_When_Casefolded,
6804         Changes_When_Casemapped.
6805         (is_property_alphabetic, is_property_default_ignorable_code_point):
6806         Update for Unicode 5.2.0.
6807         (is_property_cased, is_property_case_ignorable,
6808         is_property_changes_when_lowercased,
6809         is_property_changes_when_uppercased,
6810         is_property_changes_when_titlecased,
6811         is_property_changes_when_casefolded,
6812         is_property_changes_when_casemapped): New functions.
6813         (output_properties): Output also the properties cased, case_ignorable,
6814         changes_when_lowercased, changes_when_uppercased,
6815         changes_when_titlecased, changes_when_casefolded,
6816         changes_when_casemapped.
6817         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
6818         Unicode TR#11 revision 17 -> 19.
6819         (LBP_CP): New enumeration value.
6820         (LBP_*): Adjust values accordingly.
6821         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6822         TR#14 revision 22 -> 24.
6823         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
6824         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
6825         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6826         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
6827         is_WBP_MIDLETTER.
6828         (output_composition_tables): Allow for 24 bits instead of 16 bits in
6829         the code1 and code2 of each composition rule.
6830         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
6831         * lib/unicase/ignorable.h: Likewise.
6832         * lib/unicase/tocasefold.h: Likewise.
6833         * lib/unicase/tolower.h: Likewise.
6834         * lib/unicase/totitle.h: Likewise.
6835         * lib/unicase/toupper.h: Likewise.
6836         * lib/unictype/bidi_of.h: Likewise.
6837         * lib/unictype/blocks.h: Likewise.
6838         * lib/unictype/categ_C.h: Likewise.
6839         * lib/unictype/categ_Cf.h: Likewise.
6840         * lib/unictype/categ_Cn.h: Likewise.
6841         * lib/unictype/categ_L.h: Likewise.
6842         * lib/unictype/categ_Ll.h: Likewise.
6843         * lib/unictype/categ_Lm.h: Likewise.
6844         * lib/unictype/categ_Lo.h: Likewise.
6845         * lib/unictype/categ_Lu.h: Likewise.
6846         * lib/unictype/categ_M.h: Likewise.
6847         * lib/unictype/categ_Mc.h: Likewise.
6848         * lib/unictype/categ_Mn.h: Likewise.
6849         * lib/unictype/categ_N.h: Likewise.
6850         * lib/unictype/categ_Nd.h: Likewise.
6851         * lib/unictype/categ_Nl.h: Likewise.
6852         * lib/unictype/categ_No.h: Likewise.
6853         * lib/unictype/categ_P.h: Likewise.
6854         * lib/unictype/categ_Pd.h: Likewise.
6855         * lib/unictype/categ_Po.h: Likewise.
6856         * lib/unictype/categ_S.h: Likewise.
6857         * lib/unictype/categ_Sc.h: Likewise.
6858         * lib/unictype/categ_So.h: Likewise.
6859         * lib/unictype/categ_of.h: Likewise.
6860         * lib/unictype/combining.h: Likewise.
6861         * lib/unictype/ctype_alnum.h: Likewise.
6862         * lib/unictype/ctype_alpha.h: Likewise.
6863         * lib/unictype/ctype_graph.h: Likewise.
6864         * lib/unictype/ctype_lower.h: Likewise.
6865         * lib/unictype/ctype_print.h: Likewise.
6866         * lib/unictype/ctype_punct.h: Likewise.
6867         * lib/unictype/ctype_upper.h: Likewise.
6868         * lib/unictype/decdigit.h: Likewise.
6869         * lib/unictype/digit.h: Likewise.
6870         * lib/unictype/numeric.h: Likewise.
6871         * lib/unictype/pr_alphabetic.h: Likewise.
6872         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6873         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6874         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6875         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6876         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6877         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6878         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6879         * lib/unictype/pr_combining.h: Likewise.
6880         * lib/unictype/pr_composite.h: Likewise.
6881         * lib/unictype/pr_currency_symbol.h: Likewise.
6882         * lib/unictype/pr_dash.h: Likewise.
6883         * lib/unictype/pr_decimal_digit.h: Likewise.
6884         * lib/unictype/pr_deprecated.h: Likewise.
6885         * lib/unictype/pr_diacritic.h: Likewise.
6886         * lib/unictype/pr_extender.h: Likewise.
6887         * lib/unictype/pr_grapheme_base.h: Likewise.
6888         * lib/unictype/pr_grapheme_extend.h: Likewise.
6889         * lib/unictype/pr_grapheme_link.h: Likewise.
6890         * lib/unictype/pr_id_continue.h: Likewise.
6891         * lib/unictype/pr_id_start.h: Likewise.
6892         * lib/unictype/pr_ideographic.h: Likewise.
6893         * lib/unictype/pr_ignorable_control.h: Likewise.
6894         * lib/unictype/pr_logical_order_exception.h: Likewise.
6895         * lib/unictype/pr_lowercase.h: Likewise.
6896         * lib/unictype/pr_numeric.h: Likewise.
6897         * lib/unictype/pr_other_alphabetic.h: Likewise.
6898         * lib/unictype/pr_punctuation.h: Likewise.
6899         * lib/unictype/pr_sentence_terminal.h: Likewise.
6900         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6901         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6902         * lib/unictype/pr_unified_ideograph.h: Likewise.
6903         * lib/unictype/pr_uppercase.h: Likewise.
6904         * lib/unictype/pr_xid_continue.h: Likewise.
6905         * lib/unictype/pr_xid_start.h: Likewise.
6906         * lib/unictype/pr_zero_width.h: Likewise.
6907         * lib/unictype/scripts.h: Likewise.
6908         * lib/unictype/scripts_byname.gperf: Likewise.
6909         * lib/unictype/sy_java_ident.h: Likewise.
6910         * lib/unigbrk/gbrkprop.h: Likewise.
6911         * lib/unilbrk/lbrkprop1.h: Likewise.
6912         * lib/unilbrk/lbrkprop2.h: Likewise.
6913         * lib/unilbrk/lbrktables.h: Likewise.
6914         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
6915         LBP_CP. Implement rule LB30.
6916         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
6917         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
6918         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
6919         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
6920         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
6921         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
6922         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
6923         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
6924         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
6925         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
6926         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
6927         bits instead of 16 bits in the code1 and code2 of each composition
6928         rule.
6929         (uc_composition): Update for Unicode 5.2.0.
6930         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
6931         * lib/uninorm/decomposition-table2.h: Likewise.
6932         * lib/uniwbrk/wbrkprop.h: Likewise.
6933         * tests/unicase/test-cased.c: Likewise.
6934         * tests/unicase/test-ignorable.c: Likewise.
6935         * tests/unicase/test-uc_tolower.c: Likewise.
6936         * tests/unicase/test-uc_totitle.c: Likewise.
6937         * tests/unicase/test-uc_toupper.c: Likewise.
6938         * tests/unictype/test-categ_C.c: Likewise.
6939         * tests/unictype/test-categ_Cf.c: Likewise.
6940         * tests/unictype/test-categ_Cn.c: Likewise.
6941         * tests/unictype/test-categ_L.c: Likewise.
6942         * tests/unictype/test-categ_Ll.c: Likewise.
6943         * tests/unictype/test-categ_Lm.c: Likewise.
6944         * tests/unictype/test-categ_Lo.c: Likewise.
6945         * tests/unictype/test-categ_Lu.c: Likewise.
6946         * tests/unictype/test-categ_M.c: Likewise.
6947         * tests/unictype/test-categ_Mc.c: Likewise.
6948         * tests/unictype/test-categ_Mn.c: Likewise.
6949         * tests/unictype/test-categ_N.c: Likewise.
6950         * tests/unictype/test-categ_Nd.c: Likewise.
6951         * tests/unictype/test-categ_Nl.c: Likewise.
6952         * tests/unictype/test-categ_No.c: Likewise.
6953         * tests/unictype/test-categ_P.c: Likewise.
6954         * tests/unictype/test-categ_Pd.c: Likewise.
6955         * tests/unictype/test-categ_Po.c: Likewise.
6956         * tests/unictype/test-categ_S.c: Likewise.
6957         * tests/unictype/test-categ_Sc.c: Likewise.
6958         * tests/unictype/test-categ_So.c: Likewise.
6959         * tests/unictype/test-ctype_alnum.c: Likewise.
6960         * tests/unictype/test-ctype_alpha.c: Likewise.
6961         * tests/unictype/test-ctype_graph.c: Likewise.
6962         * tests/unictype/test-ctype_lower.c: Likewise.
6963         * tests/unictype/test-ctype_print.c: Likewise.
6964         * tests/unictype/test-ctype_punct.c: Likewise.
6965         * tests/unictype/test-ctype_upper.c: Likewise.
6966         * tests/unictype/test-decdigit.h: Likewise.
6967         * tests/unictype/test-digit.h: Likewise.
6968         * tests/unictype/test-numeric.h: Likewise.
6969         * tests/unictype/test-pr_alphabetic.c: Likewise.
6970         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6971         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6972         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6973         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6974         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6975         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6976         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6977         * tests/unictype/test-pr_combining.c: Likewise.
6978         * tests/unictype/test-pr_composite.c: Likewise.
6979         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6980         * tests/unictype/test-pr_dash.c: Likewise.
6981         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6982         * tests/unictype/test-pr_deprecated.c: Likewise.
6983         * tests/unictype/test-pr_diacritic.c: Likewise.
6984         * tests/unictype/test-pr_extender.c: Likewise.
6985         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6986         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6987         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6988         * tests/unictype/test-pr_id_continue.c: Likewise.
6989         * tests/unictype/test-pr_id_start.c: Likewise.
6990         * tests/unictype/test-pr_ideographic.c: Likewise.
6991         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6992         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6993         * tests/unictype/test-pr_lowercase.c: Likewise.
6994         * tests/unictype/test-pr_numeric.c: Likewise.
6995         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6996         * tests/unictype/test-pr_punctuation.c: Likewise.
6997         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6998         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6999         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7000         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7001         * tests/unictype/test-pr_uppercase.c: Likewise.
7002         * tests/unictype/test-pr_xid_continue.c: Likewise.
7003         * tests/unictype/test-pr_xid_start.c: Likewise.
7004         * tests/unictype/test-pr_zero_width.c: Likewise.
7005         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7006         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7007         changed behaviour: line breaking is now disallowed between a letter
7008         or '=' and '('.
7009         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7010         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7011         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7012         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7013         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7014         lib/uniwidth/width.c.
7015         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7016         without comments, but with the original copyright notice.
7017         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7018         changes.
7019         * lib/unictype/categ_Cc.h: Likewise.
7020         * lib/unictype/categ_Co.h: Likewise.
7021         * lib/unictype/categ_Cs.h: Likewise.
7022         * lib/unictype/categ_Lt.h: Likewise.
7023         * lib/unictype/categ_Me.h: Likewise.
7024         * lib/unictype/categ_Pc.h: Likewise.
7025         * lib/unictype/categ_Pe.h: Likewise.
7026         * lib/unictype/categ_Pf.h: Likewise.
7027         * lib/unictype/categ_Pi.h: Likewise.
7028         * lib/unictype/categ_Ps.h: Likewise.
7029         * lib/unictype/categ_Sk.h: Likewise.
7030         * lib/unictype/categ_Sm.h: Likewise.
7031         * lib/unictype/categ_Z.h: Likewise.
7032         * lib/unictype/categ_Zl.h: Likewise.
7033         * lib/unictype/categ_Zp.h: Likewise.
7034         * lib/unictype/categ_Zs.h: Likewise.
7035         * lib/unictype/ctype_blank.h: Likewise.
7036         * lib/unictype/ctype_cntrl.h: Likewise.
7037         * lib/unictype/ctype_digit.h: Likewise.
7038         * lib/unictype/ctype_space.h: Likewise.
7039         * lib/unictype/ctype_xdigit.h: Likewise.
7040         * lib/unictype/mirror.h: Likewise.
7041         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7042         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7043         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7044         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7045         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7046         * lib/unictype/pr_bidi_control.h: Likewise.
7047         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7048         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7049         * lib/unictype/pr_bidi_pdf.h: Likewise.
7050         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7051         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7052         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7053         * lib/unictype/pr_format_control.h: Likewise.
7054         * lib/unictype/pr_hex_digit.h: Likewise.
7055         * lib/unictype/pr_hyphen.h: Likewise.
7056         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7057         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7058         * lib/unictype/pr_iso_control.h: Likewise.
7059         * lib/unictype/pr_join_control.h: Likewise.
7060         * lib/unictype/pr_left_of_pair.h: Likewise.
7061         * lib/unictype/pr_line_separator.h: Likewise.
7062         * lib/unictype/pr_math.h: Likewise.
7063         * lib/unictype/pr_non_break.h: Likewise.
7064         * lib/unictype/pr_not_a_character.h: Likewise.
7065         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7066         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7067         * lib/unictype/pr_other_id_continue.h: Likewise.
7068         * lib/unictype/pr_other_id_start.h: Likewise.
7069         * lib/unictype/pr_other_lowercase.h: Likewise.
7070         * lib/unictype/pr_other_math.h: Likewise.
7071         * lib/unictype/pr_other_uppercase.h: Likewise.
7072         * lib/unictype/pr_paired_punctuation.h: Likewise.
7073         * lib/unictype/pr_paragraph_separator.h: Likewise.
7074         * lib/unictype/pr_pattern_syntax.h: Likewise.
7075         * lib/unictype/pr_pattern_white_space.h: Likewise.
7076         * lib/unictype/pr_private_use.h: Likewise.
7077         * lib/unictype/pr_quotation_mark.h: Likewise.
7078         * lib/unictype/pr_radical.h: Likewise.
7079         * lib/unictype/pr_soft_dotted.h: Likewise.
7080         * lib/unictype/pr_space.h: Likewise.
7081         * lib/unictype/pr_titlecase.h: Likewise.
7082         * lib/unictype/pr_variation_selector.h: Likewise.
7083         * lib/unictype/pr_white_space.h: Likewise.
7084         * lib/unictype/sy_c_ident.h: Likewise.
7085         * lib/unictype/sy_c_whitespace.h: Likewise.
7086         * lib/unictype/sy_java_whitespace.h: Likewise.
7087         * modules/uni*/*: Bump version number of expected libunistring version.
7088         Reported by Simon Josefsson.
7089
7090 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7091
7092         useless-if-before-free: fix typo in --help and make the internal,
7093         automatic version date update process work once again.
7094         --help output contained a NUL character instead of the
7095         backslash-zero that was intended.  Also, the "must lie within
7096         the first 8 lines" line is on line 9, and hence not getting
7097         automatically updated.
7098         * build-aux/useless-if-before-free: Fix the former by adding a
7099         backslash, and the latter by condensing the three lines of what-it-does
7100         to a single line, leaving one line of slack for the future.
7101
7102 2011-01-09  Bruno Haible  <bruno@clisp.org>
7103
7104         uniwidth/width: Fix width of U+1D173..U+1D17A.
7105         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7106         symbolic_width, output_width_property_test): New functions.
7107         (main): Invoke output_nonspacing_property, output_width_property_test.
7108         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7109         U+1D173..U+1D17A.
7110         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7111         1.
7112         * modules/uniwidth/*: Bump version number of expected libunistring
7113         version.
7114         * modules/unilbrk/*: Likewise.
7115
7116 2011-01-08  Bruno Haible  <bruno@clisp.org>
7117
7118         uninorm tests: Preserve copyright of Unicode data file.
7119         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7120         Mention modifications.
7121
7122 2011-01-08  Bruno Haible  <bruno@clisp.org>
7123
7124         gen-uni-tables: Prepare for Unicode 5.2.0.
7125         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7126         (debug_output_lbp, output_lbp): Update.
7127
7128 2011-01-08  Bruno Haible  <bruno@clisp.org>
7129
7130         unilbrk: Clarify gen-uni-tables.c code.
7131         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7132         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7133         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7134
7135 2011-01-07  Bruno Haible  <bruno@clisp.org>
7136
7137         strtod: Restore errno when successfully parsing Infinity or NaN.
7138         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7139         restore the original errno.
7140
7141 2011-01-07  Bruno Haible  <bruno@clisp.org>
7142
7143         remove test: Avoid failure on HP-UX 11.
7144         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7145
7146 2011-01-07  Bruno Haible  <bruno@clisp.org>
7147
7148         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7149         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7150         error code.
7151
7152 2011-01-07  Pádraig Brady <P@draigBrady.com>
7153
7154         ignore-value: fixup comments, and add Eric Blake
7155         as an author since he rewrote the macros.
7156         * lib/ignore-value.h (ignore_value):  State that
7157         we now support aggregates.  Also specify exactly
7158         when the GCC warn_unused_result feature was added.
7159
7160 2011-01-06  Eric Blake  <eblake@redhat.com>
7161
7162         ignore-value: support aggregate types
7163         * lib/ignore-value.h (ignore_value): Provide separate gcc
7164         definition.
7165         * modules/ignore-value-tests: New test module.
7166         * tests/test-ignore-value.c: New test.
7167
7168         maint.mk: improve sc_prohibit_strcmp regex
7169         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7170         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7171         definition of STRNEQ.
7172
7173         signal: work around Haiku issue with SIGBUS
7174         * lib/siglist.h: Add comment.
7175         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7176         strsignal's favoring of SIGSEGV.
7177         * tests/test-signal.c (main): Avoid test failure.
7178         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7179         Reported by Scott McCreary.
7180
7181         maint.mk: add pre-release check to ensure submodule commits are public
7182         * top/maint.mk (public-submodule-commit): New rule.
7183         (submodule-checks): New variable.
7184         (alpha beta stable): Depend on the variable.
7185
7186 2011-01-05  Pádraig Brady <P@draigBrady.com>
7187         and Jim Meyering  <meyering@redhat.com>
7188
7189         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7190         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7191         (ATTRIBUTE_DEPRECATED): Define.
7192         (_ignore_case): New function.
7193         (ignore_value): New macro, to replace the old function.
7194         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7195         * modules/ignore-value (Depends-on): Add stdint.
7196
7197 2011-01-04  Eric Blake  <eblake@redhat.com>
7198
7199         doc: regenerate INSTALL
7200         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7201         @firstparagraphindent support, now that autoconf dropped it.
7202         (INSTALL_PRELUDE): Reinstate old macro.
7203         * doc/install.texi: Resync from autoconf.
7204         * doc/INSTALL: Reflect recent autoconf update.
7205         * doc/INSTALL.ISO: Likewise.
7206         * doc/INSTALL.UTF-8: Likewise.
7207         Reported by Karl Berry.
7208
7209 2011-01-04  Bruce Korb  <address@hidden>
7210
7211         git-version-gen: avoid a sub-shell
7212         * build-aux/git-version-gen: Redirect stderr in `...` via
7213         "exec 2>...", rather than via an added sub-shell.
7214
7215 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7216
7217         git-version-gen: use (...) rather than sh -c '...'
7218         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7219         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7220
7221 2011-01-03  Jim Meyering  <meyering@redhat.com>
7222
7223         git-version-gen: convert leading TABs to spaces
7224         * build-aux/git-version-gen: Expand leading TABs.
7225
7226         git-version-gen: handle failed "git rev-list"
7227         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7228         from git and proceeding as if it had succeeded but printed no SHA1
7229         checksums, suppress the diagnostic and handle the failure.
7230         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7231
7232         git-version-gen: include command name in one more diagnostic
7233         * build-aux/git-version-gen: When the required .tarball-version file
7234         was missing or unreadable, you might see the diagnostic from "cat",
7235         but no trace of the name of the invoking script.  Now, you still see
7236         the diagnostic from cat, but also get one from "git-version-gen: ".
7237         Inspired by a patch from Bruce Korb.
7238
7239         update-copyright: adjust test to match changed code
7240         * tests/test-update-copyright.sh: Change test's expected output
7241         to match new actual output.
7242
7243 2011-01-02  Bruno Haible  <bruno@clisp.org>
7244
7245         getlogin_r: Avoid test failure on HP-UX 11.
7246         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7247         ERANGE when the second argument is zero.
7248         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7249         portability problem.
7250
7251 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7252
7253         * build-aux/update-copyright: doc Simon's changes
7254
7255 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7256
7257         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7258         environment variable.
7259
7260 2011-01-02  Bruno Haible  <bruno@clisp.org>
7261
7262         unigbrk: Avoid gcc warnings.
7263         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7264         unused variable.
7265         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7266         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7267         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7268         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7269         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7270         Change type of first argument to 'const char *'.
7271         (main): Remove unused variable.
7272         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7273         type of first argument to 'const char *'.
7274         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7275         Likewise.
7276         (main): Change type of variable 's'.
7277         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7278         to 'int'.
7279
7280 2011-01-02  Bruno Haible  <bruno@clisp.org>
7281
7282         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7283         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7284         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7285         bug.
7286         * lib/pwrite.c: Undo 2010-12-31 patch.
7287         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7288
7289 2011-01-02  Bruno Haible  <bruno@clisp.org>
7290
7291         pread: Fix test whether it works.
7292         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7293
7294 2011-01-02  Bruno Haible  <bruno@clisp.org>
7295
7296         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7297         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7298         ends in "6". Don't require a specific month name. Try also the locale
7299         names found on HP-UX 11 and Solaris 7.
7300
7301 2011-01-02  Bruno Haible  <bruno@clisp.org>
7302
7303         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7304         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7305         C linkage.
7306         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7307
7308 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7309
7310         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7311         for consistency, since the "cluster" term is not used elsewhere.
7312         * lib/unigbrk.in.h: Update name.
7313         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7314         * lib/unigbrk/u16-grapheme-next.c: Update name.
7315         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7316         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7317         * lib/unigbrk/u32-grapheme-next.c: Update name.
7318         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7319         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7320         * lib/unigbrk/u8-grapheme-next.c: Update name.
7321         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7322         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7323         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7324         Suggested by Bruno Haible.
7325
7326 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7327
7328         Remove module 'u8-grapheme-len' as too redundant with
7329         'u8-grapheme-next'.
7330         * modules/unigbrk/u8-grapheme-len: Delete file.
7331         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7332         * lib/unigbrk.in.h: Remove prototype for deleted function.
7333         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7334         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7335
7336         Remove module 'u16-grapheme-len' as too redundant with
7337         'u16-grapheme-next'.
7338         * modules/unigbrk/u16-grapheme-len: Delete file.
7339         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7340         * lib/unigbrk.in.h: Remove prototype for deleted function.
7341         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7342         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7343
7344         Remove module 'u32-grapheme-len' as too redundant with
7345         'u32-grapheme-next'.
7346         * modules/unigbrk/u32-grapheme-len: Delete file.
7347         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7348         * lib/unigbrk.in.h: Remove prototype for deleted function.
7349         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7350         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7351
7352         Suggested by Bruno Haible.
7353
7354 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7355
7356         * unigbrk.in.h: Fix typo: "ben" => "been".
7357         Reported by Bruno Haible.
7358
7359 2011-01-01  Jim Meyering  <meyering@redhat.com>
7360
7361         maint: update almost all copyright ranges to include 2011
7362         Run the new "make update-copyright" rule.
7363
7364 2011-01-01  Jim Meyering  <meyering@redhat.com>
7365
7366         maint: update-copyright: exempt doc/INSTALL*
7367         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7368         since they are generated.  Suggested by Bruno Haible.
7369
7370 2011-01-01  Jim Meyering  <meyering@redhat.com>
7371
7372         maint: refine the update-copyright rule
7373         * Makefile (update-copyright): Also exclude any file that includes
7374         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7375         code that merely generates the comment.
7376
7377 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7378
7379         New module 'u8-grapheme-len'.
7380         * modules/unigbrk/u8-grapheme-len: New file.
7381         * modules/unigbrk/u8-grapheme-len-tests: New file.
7382         * lib/unigbrk.in.h: Add prototype for new function.
7383         * lib/unigbrk/u8-grapheme-len.c: New file.
7384         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7385
7386         New module 'u16-grapheme-len'.
7387         * modules/unigbrk/u16-grapheme-len: New file.
7388         * modules/unigbrk/u16-grapheme-len-tests: New file.
7389         * lib/unigbrk.in.h: Add prototype for new function.
7390         * lib/unigbrk/u16-grapheme-len.c: New file.
7391         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7392
7393         New module 'u32-grapheme-len'.
7394         * modules/unigbrk/u32-grapheme-len: New file.
7395         * modules/unigbrk/u32-grapheme-len-tests: New file.
7396         * lib/unigbrk.in.h: Add prototype for new function.
7397         * lib/unigbrk/u32-grapheme-len.c: New file.
7398         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7399
7400         New module 'u8-grapheme-next'.
7401         * modules/unigbrk/u8-grapheme-next: New file.
7402         * modules/unigbrk/u8-grapheme-next-tests: New file.
7403         * lib/unigbrk.in.h: Add prototype for new function.
7404         * lib/unigbrk/u8-grapheme-next.c: New file.
7405         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7406
7407         New module 'u16-grapheme-next'.
7408         * modules/unigbrk/u16-grapheme-next: New file.
7409         * modules/unigbrk/u16-grapheme-next-tests: New file.
7410         * lib/unigbrk.in.h: Add prototype for new function.
7411         * lib/unigbrk/u16-grapheme-next.c: New file.
7412         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7413
7414         New module 'u32-grapheme-next'.
7415         * modules/unigbrk/u32-grapheme-next: New file.
7416         * modules/unigbrk/u32-grapheme-next-tests: New file.
7417         * lib/unigbrk.in.h: Add prototype for new function.
7418         * lib/unigbrk/u32-grapheme-next.c: New file.
7419         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7420
7421         New module 'u8-grapheme-prev'.
7422         * modules/unigbrk/u8-grapheme-prev: New file.
7423         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7424         * lib/unigbrk.in.h: Add prototype for new function.
7425         * lib/unigbrk/u8-grapheme-prev.c: New file.
7426         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7427
7428         New module 'u16-grapheme-prev'.
7429         * modules/unigbrk/u16-grapheme-prev: New file.
7430         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7431         * lib/unigbrk.in.h: Add prototype for new function.
7432         * lib/unigbrk/u16-grapheme-prev.c: New file.
7433         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7434
7435         New module 'u32-grapheme-prev'.
7436         * modules/unigbrk/u32-grapheme-prev: New file.
7437         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7438         * lib/unigbrk.in.h: Add prototype for new function.
7439         * lib/unigbrk/u32-grapheme-prev.c: New file.
7440         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7441
7442         New module 'u8-grapheme-breaks'.
7443         * modules/unigbrk/u8-grapheme-breaks: New file.
7444         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7445         * lib/unigbrk.in.h: Add prototype for new function.
7446         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7447         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7448
7449         New module 'u16-grapheme-breaks'.
7450         * modules/unigbrk/u16-grapheme-breaks: New file.
7451         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7452         * lib/unigbrk.in.h: Add prototype for new function.
7453         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7454         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7455
7456         New module 'u32-grapheme-breaks'.
7457         * modules/unigbrk/u32-grapheme-breaks: New file.
7458         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7459         * lib/unigbrk.in.h: Add prototype for new function.
7460         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7461         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7462
7463         New module 'ulc-grapheme-breaks'.
7464         * modules/unigbrk/ulc-grapheme-breaks: New file.
7465         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
7466         * m4/locale-ar.m4: New file.
7467         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
7468         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
7469         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
7470
7471 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7472
7473         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
7474         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
7475         modified how this file was generated before I initially submitted
7476         the module, but failed to regenerate it.  This meant that several
7477         of the level2 entries were wrong.
7478         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
7479         Remove the division-by-2 that is folded into the table now that
7480         gbrkprop.h has been regenerated properly.  Now -1 entries are
7481         handled correctly.
7482
7483         New module 'unigbrk/uc-gbrk-prop-tests'.
7484         * modules/unigbrk/uc-gbrk-prop-tests: New file.
7485         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
7486         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
7487         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
7488
7489 2011-01-01  Bruno Haible  <bruno@clisp.org>
7490
7491         Avoid use of hexadecimal escapes.
7492         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
7493         instead of hexadecimal escapes.
7494
7495 2011-01-01  Jim Meyering  <meyering@redhat.com>
7496
7497         maint: new rule to update copyright year ranges
7498         * Makefile (update-copyright): New rule.
7499
7500         maint: indent with TABs in Makefile
7501         * Makefile: Expand leading sequences of spaces to TABs
7502
7503         version-etc: update the copyright year it reports
7504         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
7505
7506 2010-12-31  Bruno Haible  <bruno@clisp.org>
7507
7508         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
7509         * lib/isfinite.c (zerof, zerod, zerol): New variables.
7510         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
7511         zero.
7512
7513 2010-12-31  Bruno Haible  <bruno@clisp.org>
7514
7515         pwrite: Work around HP-UX 11.11 bug.
7516         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
7517         works and set REPLACE_PWRITE if not.
7518         * lib/pwrite.c (pwrite): Add an implementation that uses the system
7519         function.
7520         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7521
7522 2010-12-31  Bruno Haible  <bruno@clisp.org>
7523
7524         pread: Work around HP-UX 11 bugs.
7525         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
7526         and set REPLACE_PREAD if not.
7527         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
7528
7529 2010-12-31  Eric Blake  <eblake@redhat.com>
7530
7531         nl_langinfo: fix YESEXPR on Irix 6.5
7532         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
7533         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
7534         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
7535         it.
7536
7537 2010-12-31  Bruno Haible  <bruno@clisp.org>
7538
7539         iconv: Document HP-UX 11 bug.
7540         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
7541
7542 2010-12-31  Bruno Haible  <bruno@clisp.org>
7543
7544         ldexpl: Fix link error on HP-UX 11.
7545         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
7546         LDEXPL_LIBM, using $ISNANL_LIBM.
7547
7548 2010-12-31  Eric Blake  <eblake@redhat.com>
7549
7550         ftello: avoid compilation failure with SunStudio c89
7551         * lib/ftello.c (ftello): Use lseek, not llseek.
7552
7553         tests: avoid failing coreutils tests on cygwin
7554         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
7555         (create_exe_shims_): Return 0 when skipping.
7556
7557 2010-12-31  Bruno Haible  <bruno@clisp.org>
7558
7559         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
7560         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
7561
7562 2010-12-31  Bruno Haible  <bruno@clisp.org>
7563
7564         waitpid: Fix link error in C++ mode.
7565         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
7566
7567 2010-12-31  Bruno Haible  <bruno@clisp.org>
7568
7569         isnan: Use GCC built-ins when possible.
7570         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
7571         __builtin_isnan.
7572         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
7573         (isnan): Define using GCC built-ins for GCC >= 4.0.
7574
7575 2010-12-31  Bruno Haible  <bruno@clisp.org>
7576
7577         isnand: Fix mistake.
7578         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
7579         __builtin_isnand.
7580
7581 2010-12-31  Bruno Haible  <bruno@clisp.org>
7582
7583         open: Avoid C++ error on HP-UX 11.
7584         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
7585
7586 2010-12-31  Bruno Haible  <bruno@clisp.org>
7587
7588         time_r: Add missing declarations on HP-UX 11.
7589         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
7590         instead of HAVE_LOCALTIME_R.
7591         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
7592         HAVE_LOCALTIME_R always.
7593         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
7594         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
7595         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
7596         HAVE_LOCALTIME_R.
7597         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
7598         * doc/posix-functions/localtime_r.texi: Likewise.
7599
7600 2010-12-29  Eric Blake  <eblake@redhat.com>
7601
7602         mountlist: tweak previous commit
7603         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
7604         Reported by Paul Eggert.
7605
7606         mountlist: fix local drive detection on cygwin
7607         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
7608         that works for cygwin.
7609
7610 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7611
7612         ftoastr, snprintf: ftoastr + snprintf module
7613         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
7614         since the snprintf module now should be good enough here.
7615         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
7616         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
7617         and gl_MODULE_INDICATOR([snprintf]), but the former enables
7618         GNULIB_SNPRINTF only for the test directory, and the latter
7619         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
7620         seems to suffice by itself.
7621
7622 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7623
7624         alloca: one step towards thread-safety
7625         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
7626         need for a static variable.  All callers changed.  This does not
7627         make the alloca replacement thread-safe, but it's one step.
7628
7629         tests: minor indenting change
7630         * tests/init.sh: Sync from coreutils housekeeping patch
7631         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
7632         to keep lines within 80 columns.
7633
7634 2010-12-28  Jim Meyering  <meyering@redhat.com>
7635
7636         regex: don't infloop on persistent failing calloc
7637         * lib/regexec.c (build_trtable): Return failure indication upon
7638         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7639         In glibc, this was fixed for version 2.13:
7640         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7641
7642 2010-12-28  Bruno Haible  <bruno@clisp.org>
7643             Paul Eggert <eggert@cs.ucla.edu>
7644
7645         linkat: Make implementation robust against system behaviour variations.
7646         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7647         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7648         way, and to -2 if it needs a generic runtime test.
7649         * lib/linkat.c (solaris_optimized_link_immediate,
7650         solaris_optimized_link_follow): New functions.
7651         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7652         (check_same_link): Use it.
7653
7654 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7655
7656         New module 'unigbrk/base'.
7657         * modules/unigbrk/base: New file.
7658         * lib/unigbrk.in.h: New file.
7659
7660         New module 'unigbrk/uc-gbrk-prop'.
7661         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7662         * modules/unigbrk/uc-gbrk-prop: New file.
7663         * lib/unigbrk/gbrkprop.h: New file.
7664         * lib/unigbrk/uc-gbrk-prop.c: New file.
7665
7666         New module 'unigbrk/uc-is-grapheme-break'.
7667         * modules/unigbrk/uc-is-grapheme-break: New file.
7668         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7669         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7670         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7671         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7672         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7673
7674         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7675
7676 2010-12-27  Bruno Haible  <bruno@clisp.org>
7677
7678         linkat test: Avoid failure on Solaris 11 2010-11.
7679         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7680
7681 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7682
7683         utimens: work around glibc rounding bug on more platforms
7684         * lib/utimens.c (fdutimens): Work around rounding bug even if
7685         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7686         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7687
7688 2010-12-27  Bruno Haible  <bruno@clisp.org>
7689
7690         select tests: Improve comments.
7691         * tests/test-select.c (do_select): Add comments.
7692
7693 2010-12-27  Bruno Haible  <bruno@clisp.org>
7694
7695         select tests: Safer way of handling timeout.
7696         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7697         at every invocation.
7698
7699 2010-12-27  Bruno Haible  <bruno@clisp.org>
7700
7701         select tests: Use 'bool' where appropriate.
7702         * tests/test-select.c (connect_to_socket): Change argument type to
7703         'bool'.
7704
7705 2010-12-27  Bruno Haible  <bruno@clisp.org>
7706
7707         select tests: Use existing modules.
7708         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7709         (configure.ac): Don't test for unistd.h.
7710         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7711         declared in <unistd.h>.
7712
7713 2010-12-27  Bruno Haible  <bruno@clisp.org>
7714
7715         mbrtowc: Work around a Solaris 7 bug.
7716         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7717         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7718         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7719         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7720         MBRTOWC_NULL_ARG1_BUG.
7721         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7722         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7723         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7724         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7725
7726 2010-12-27  Jim Meyering  <meyering@redhat.com>
7727
7728         read-file.c: tweak syntax
7729         * lib/read-file.c (fread_file): Remove space after "*" in function
7730         definitions.
7731
7732 2010-12-27  Bruno Haible  <bruno@clisp.org>
7733
7734         times test: Avoid gcc warnings on OSF/1.
7735         * tests/test-times.c (main): Cast printf arguments from clock_t to
7736         'long int'.
7737
7738 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7739
7740         utimens: work around glibc rounding bug on older Linux kernels
7741         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
7742         on Linux with a glibc whose utimes might not work, then work
7743         around a longstanding glibc bug involving rounding rather than
7744         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
7745         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7746
7747 2010-12-26  Bruno Haible  <bruno@clisp.org>
7748
7749         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
7750         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
7751         _GL_CXXALIAS_SYS.
7752         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7753
7754 2010-12-26  Bruno Haible  <bruno@clisp.org>
7755
7756         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
7757         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
7758         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7759         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
7760         looking for the declaration.
7761         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7762         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
7763         problem.
7764         * doc/posix-functions/inet_pton.texi: Likewise.
7765
7766 2010-12-26  Bruno Haible  <bruno@clisp.org>
7767
7768         arpa_inet: Use the common idioms with C++ support.
7769         * lib/arpa_inet.in.h: Include c++defs.h.
7770         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
7771         support.
7772         * modules/arpa_inet (Depends-on): Add c++defs.
7773         (Makefile.am): Substitute the contents of c++defs.h.
7774         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
7775         * modules/arpa_inet-c++-tests: New file.
7776         * tests/test-arpa_inet-c++.cc: New file.
7777
7778 2010-12-25  Bruno Haible  <bruno@clisp.org>
7779
7780         Fix more C++ link errors on Solaris 8.
7781         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
7782         $(LIB_EACCESS).
7783         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
7784         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
7785         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
7786         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
7787         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
7788
7789 2010-12-25  Bruno Haible  <bruno@clisp.org>
7790
7791         printf-posix: Fix link error when a non-GCC compiler is used.
7792         * lib/stdio.in.h (printf): When not using GCC, override printf
7793         correctly.
7794         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7795
7796 2010-12-25  Bruno Haible  <bruno@clisp.org>
7797
7798         strerror_r-posix: Update doc.
7799         * doc/posix-functions/strerror_r.texi: Update doc about the return
7800         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
7801
7802 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7803
7804         utimens: simplify the logic of the previous change
7805         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
7806         This should not affect whether the test succeeds or fails.
7807
7808         utimens: configure better on hosts with NFS clock skew
7809         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
7810         uses the clock of the local host.  It might use the clock of the
7811         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
7812         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7813
7814 2010-12-25  Bruno Haible  <bruno@clisp.org>
7815
7816         ptsname test: Avoid failure on Solaris.
7817         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
7818         open a pseudo-terminal; don't use BSD-style ptys.
7819         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
7820
7821 2010-12-25  Bruno Haible  <bruno@clisp.org>
7822
7823         ptsname: Avoid ERANGE failure on some systems.
7824         * lib/ptsname.c (buffer): Increase size.
7825
7826 2010-12-25  Bruno Haible  <bruno@clisp.org>
7827
7828         rename, renameat: Avoid test failures at NFS mounted locations.
7829         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
7830         so that subsequent mkdir calls succeed.
7831
7832 2010-12-25  Bruno Haible  <bruno@clisp.org>
7833
7834         iswblank: Fix C++ link error on Solaris 8.
7835         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
7836         _GL_FUNCDECL_SYS.
7837
7838 2010-12-25  Bruno Haible  <bruno@clisp.org>
7839
7840         unistd: Fix C++ link error on Solaris 8.
7841         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
7842
7843 2010-12-25  Bruno Haible  <bruno@clisp.org>
7844
7845         readlink doc: Mention an old glibc bug.
7846         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
7847
7848 2010-12-25  Bruno Haible  <bruno@clisp.org>
7849
7850         fcntl-h: Fix for use of C++ on glibc systems.
7851         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7852         also on glibc systems in C++ mode.
7853         Reported by Gary V. Vaughan <gary@gnu.org>.
7854
7855 2010-12-25  Bruno Haible  <bruno@clisp.org>
7856
7857         roundl-ieee: Make it work on OSF/1 5.1 with cc.
7858         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
7859
7860 2010-12-25  Bruno Haible  <bruno@clisp.org>
7861
7862         truncl-ieee: Make it work on OSF/1 5.1 with cc.
7863         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
7864         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
7865         test whether truncl works according to ISO C 99 with IEC 60559.
7866         * m4/truncl-ieee.m4: New file.
7867         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
7868         m4/signbit.m4.
7869         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
7870
7871 2010-12-25  Bruno Haible  <bruno@clisp.org>
7872
7873         ceill-ieee: Make it work on OSF/1 5.1 with cc.
7874         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
7875         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
7876         test whether ceill works according to ISO C 99 with IEC 60559.
7877         * m4/ceill-ieee.m4: New file.
7878         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
7879         m4/signbit.m4.
7880         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
7881
7882 2010-12-25  Bruno Haible  <bruno@clisp.org>
7883
7884         Ensure all prerequisites of <wchar.h> are included.
7885         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
7886         before <wchar.h>.
7887         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7888         gl_MBRLEN_NUL_RETVAL): Likewise.
7889         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7890         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
7891         AC_FUNC_MBRTOWC): Likewise.
7892         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7893         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
7894         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7895         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7896         Likewise.
7897         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7898         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
7899         (gl_WCHAR_H): Improve comments.
7900         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7901
7902 2010-12-25  Bruno Haible  <bruno@clisp.org>
7903
7904         strtok_r: Fix C syntax error in autoconf macro.
7905         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
7906         characters in test program.
7907
7908 2010-12-24  Bruno Haible  <bruno@clisp.org>
7909
7910         ceil, trunc, round: Fix gcc warnings.
7911         * lib/ceil.c (MIN): Undefine before redefining.
7912         * lib/trunc.c (MIN): Likewise.
7913         * lib/round.c (MIN): Likewise.
7914         Include <math.h> first.
7915
7916 2010-12-24  Bruno Haible  <bruno@clisp.org>
7917
7918         select tests: Avoid failures on OSF/1 5.1.
7919         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
7920         failure of closing the last socket; it may fail with ECONNRESET.
7921
7922 2010-12-24  Eric Blake  <eblake@redhat.com>
7923
7924         stdint: avoid HP-UX 10.20 preprocessor bug
7925         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
7926         than #if.
7927         * tests/test-floor2.c (main): Likewise.
7928         Reported by Peter O'Gorman.
7929
7930         pipe: make obsoletion transition easier
7931         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
7932         * modules/pipe (Files): Include revived file.
7933         (Include): Drop reference, to mirror getdate's behavior.
7934
7935 2010-12-24  Bruno Haible  <bruno@clisp.org>
7936
7937         sys_socket: Hide mismatch of declarations on NonStop Kernel.
7938         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
7939         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7940         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7941
7942 2010-12-24  Bruno Haible  <bruno@clisp.org>
7943
7944         gethostname: Ensure declaration on NonStop Kernel.
7945         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
7946         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7947
7948 2010-12-24  Bruno Haible  <bruno@clisp.org>
7949
7950         sys_select: Ensure all necessary types on NonStop Kernel.
7951         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
7952         include <sys/time.h>.
7953         * doc/posix-headers/sys_select.texi: Mention that it's missing on
7954         NonStop Kernel.
7955         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7956
7957 2010-12-24  Bruno Haible  <bruno@clisp.org>
7958
7959         sys_select: Remove unneeded include.
7960         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
7961         have <sys/select.h>.
7962
7963 2010-12-24  Bruno Haible  <bruno@clisp.org>
7964
7965         gethostname: Provide a fallback for HOST_NAME_MAX.
7966         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
7967         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
7968         instead.
7969         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7970
7971 2010-12-24  Bruno Haible  <bruno@clisp.org>
7972
7973         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
7974         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
7975         (SA_RESTART): Likewise.
7976         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7977
7978 2010-12-24  Bruno Haible  <bruno@clisp.org>
7979
7980         signal: Define NSIG.
7981         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
7982         * tests/test-signal.c (nsig): New variable.
7983         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7984
7985 2010-12-24  Bruno Haible  <bruno@clisp.org>
7986
7987         rename, renameat: Avoid test failures on OSF/1 5.1.
7988         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7989         alternative error codes.
7990         * tests/test-renameat.c (main): Likewise.
7991
7992 2010-12-24  Bruno Haible  <bruno@clisp.org>
7993
7994         *printf: Detect large precisions bug on Solaris 10/SPARC.
7995         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7996         by Paul Eggert.
7997         * tests/test-snprintf-posix.h (test_function): Add this test code here
7998         too.
7999         * tests/test-sprintf-posix.h (test_function): Likewise.
8000         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8001         * tests/test-vasprintf-posix.c (test_function): Likewise.
8002         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8003         around by gnulib.
8004         * doc/posix-functions/printf.texi: Likewise.
8005         * doc/posix-functions/snprintf.texi: Likewise.
8006         * doc/posix-functions/sprintf.texi: Likewise.
8007         * doc/posix-functions/vfprintf.texi: Likewise.
8008         * doc/posix-functions/vprintf.texi: Likewise.
8009         * doc/posix-functions/vsnprintf.texi: Likewise.
8010         * doc/posix-functions/vsprintf.texi: Likewise.
8011         * doc/posix-functions/dprintf.texi: Undo last commit.
8012         * doc/posix-functions/vdprintf.texi: Likewise.
8013
8014 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8015
8016         tests: port test-fdutimensat.c to Solaris 8
8017         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8018         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8019         On Solaris 8, it fails with errno == ENOSYS, because there is no
8020         futimens (so it can't use the fd), and there is no lutimens (so it
8021         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8022
8023         vsnprintf: make more consistent with snprintf; doc fixes
8024
8025         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8026         the byte count return problem was promoted from the snprintf-posix
8027         to the snprintf module.
8028         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8029         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8030         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8031         * tests/test-snprintf.c (main): Check the byte count returned.
8032         * tests/test-vsnprintf.c (main): Likewise.
8033
8034 2010-12-23  Eric Blake  <eblake@redhat.com>
8035
8036         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8037         * modules/sigpipe (License): Relax license.
8038
8039 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8040
8041         doc: document Solaris printf bug with large float precisions
8042         * doc/posix-functions/dprintf.texi (dprintf):
8043         * doc/posix-functions/fprintf.texi (fprintf):
8044         * doc/posix-functions/printf.texi (printf):
8045         * doc/posix-functions/snprintf.texi (snprintf):
8046         * doc/posix-functions/sprintf.texi (sprintf):
8047         * doc/posix-functions/vdprintf.texi (vdprintf):
8048         * doc/posix-functions/vfprintf.texi (vfprintf):
8049         * doc/posix-functions/vprintf.texi (vprintf):
8050         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8051         * doc/posix-functions/vsprintf.texi (vsprintf):
8052         Mention that these functions mishandle large floating point
8053         precisions on Solaris 10.  The same bug is also present in Solaris
8054         8, and I assume earlier.  This causes "cd gnulib-tests; make
8055         check" to fail on Solaris 8 (and I assume, later) when building
8056         the latest coreutils, in test-vasprintf-posix's call to
8057         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8058         the wide flavors (e.g., wprintf) so this patch just updates the
8059         documentation for the narrow ones.
8060
8061         test-posixtm.c: add two tests
8062         * tests/test-posixtm.c: Add two tests, to highlight the
8063         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8064         around this bug; this is merely to document it.
8065
8066 2010-12-22  Bruno Haible  <bruno@clisp.org>
8067
8068         getlogin_r: Work around portability problem on OSF/1.
8069         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8070         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8071         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8072         test for a truncated result.
8073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8074         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8075         * modules/getlogin_r (Depends-on): Add memchr.
8076         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8077
8078 2010-12-22  Bruno Haible  <bruno@clisp.org>
8079
8080         ptsname: Avoid test failure on OSF/1 5.1.
8081         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8082         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8083         (same_slave): New function.
8084         (main): Use it to compare ptsname's result with the expected file name.
8085
8086 2010-12-22  Bruno Haible  <bruno@clisp.org>
8087
8088         Port extended stdio modules to HP NonStop Kernel.
8089         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8090         macros.
8091         * lib/fbufmode.c: Update comments.
8092         * lib/fflush.c: Likewise.
8093         * lib/fpurge.c: Likewise.
8094         * lib/freadable.c: Likewise.
8095         * lib/freadahead.c: Likewise.
8096         * lib/freading.c: Likewise.
8097         * lib/freadptr.c: Likewise.
8098         * lib/freadseek.c: Likewise.
8099         * lib/fseeko.c: Likewise.
8100         * lib/fseterr.c: Likewise.
8101         * lib/fwritable.c: Likewise.
8102         * lib/fwriting.c: Likewise.
8103         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8104
8105 2010-12-22  Bruno Haible  <bruno@clisp.org>
8106
8107         ttyname_r: Work around bug on OSF/1 5.1.
8108         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8109         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8110         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8111         present.
8112         * lib/ttyname_r.c (ttyname_r): Update comments.
8113
8114 2010-12-22  Bruno Haible  <bruno@clisp.org>
8115
8116         round: Implement result sign according to IEEE 754.
8117         * lib/round.c (MIN, MINUS_ZERO): New macros.
8118         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8119         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8120         * tests/test-round-ieee.c (main): Likewise.
8121         * tests/test-roundl-ieee.c (main): Likewise.
8122
8123         trunc: Implement result sign according to IEEE 754.
8124         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8125         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8126         * tests/test-trunc2.c: Include minus-zero.h.
8127         (MINUS_ZERO): New macro.
8128         (trunc_reference): Keep in sync with lib/trunc.c.
8129         * tests/test-truncf2.c: Include minus-zero.h.
8130         (MINUS_ZERO): New macro.
8131         (truncf_reference): Keep in sync with lib/trunc.c.
8132         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8133         * tests/test-trunc-ieee.c (main): Likewise.
8134         * tests/test-truncl-ieee.c (main): Likewise.
8135
8136         ceil: Implement result sign according to IEEE 754.
8137         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8138         (FUNC): Return -0.0 for -1 < x < 0.
8139         * tests/test-ceil2.c: Include minus-zero.h.
8140         (MINUS_ZERO): New macro.
8141         (ceil_reference): Keep in sync with lib/ceil.c.
8142         * tests/test-ceilf2.c: Include minus-zero.h.
8143         (MINUS_ZERO): New macro.
8144         (ceilf_reference): Keep in sync with lib/ceil.c.
8145         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8146         * tests/test-ceil-ieee.c (main): Likewise.
8147         * tests/test-ceill-ieee.c (main): Likewise.
8148
8149         floor: Implement result sign according to IEEE 754.
8150         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8151         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8152         * tests/test-floorf2.c (floorf_reference): Likewise.
8153         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8154         * tests/test-floor-ieee.c (main): Likewise.
8155         * tests/test-floorl-ieee.c (main): Likewise.
8156
8157 2010-12-22  Bruno Haible  <bruno@clisp.org>
8158
8159         getaddrinfo: Update doc.
8160         * doc/posix-functions/gai_strerror.texi: Return type is also different
8161         on AIX and HP-UX.
8162
8163 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8164
8165         getaddrinfo, inet_ntop: Update doc for Solaris.
8166         * doc/posix-functions/gai_strerror.texi: Return type is also an
8167         issue on Solaris 9 and earlier.
8168         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8169         on Solaris 10 and earlier.
8170
8171 2010-12-21  Bruno Haible  <bruno@clisp.org>
8172
8173         New module 'roundl-ieee'.
8174         * modules/roundl-ieee: New file.
8175         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8176         test whether roundl works according to ISO C 99 with IEC 60559.
8177         * m4/roundl-ieee.m4: New file.
8178         * modules/roundl-ieee-tests: New file.
8179         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8180         * tests/test-roundl.c (main): Remove signbit tests.
8181         * modules/roundl-tests (Depends-on): Remove signbit.
8182         * doc/posix-functions/roundl.texi: Mention the new module.
8183
8184 2010-12-21  Bruno Haible  <bruno@clisp.org>
8185
8186         New module 'truncl-ieee'.
8187         * modules/truncl-ieee: New file.
8188         * modules/truncl-ieee-tests: New file.
8189         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8190         * tests/test-truncl.c (main): Remove signbit tests.
8191         * modules/truncl-tests (Depends-on): Remove signbit.
8192         * doc/posix-functions/truncl.texi: Mention the new module.
8193
8194 2010-12-21  Bruno Haible  <bruno@clisp.org>
8195
8196         New module 'ceill-ieee'.
8197         * modules/ceill-ieee: New file.
8198         * modules/ceill-ieee-tests: New file.
8199         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8200         * tests/test-ceill.c (main): Remove signbit tests.
8201         * modules/ceill-tests (Depends-on): Remove signbit.
8202         * doc/posix-functions/ceill.texi: Mention the new module.
8203
8204 2010-12-21  Bruno Haible  <bruno@clisp.org>
8205
8206         New module 'floorl-ieee'.
8207         * modules/floorl-ieee: New file.
8208         * modules/floorl-ieee-tests: New file.
8209         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8210         * tests/test-floorl.c (main): Remove signbit tests.
8211         * modules/floorl-tests (Depends-on): Remove signbit.
8212         * doc/posix-functions/floorl.texi: Mention the new module.
8213
8214 2010-12-21  Bruno Haible  <bruno@clisp.org>
8215
8216         New module 'round-ieee'.
8217         * modules/round-ieee: New file.
8218         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8219         whether round works according to ISO C 99 with IEC 60559.
8220         * m4/round-ieee.m4: New file.
8221         * modules/round-ieee-tests: New file.
8222         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8223         * tests/test-round1.c (main): Remove signbit tests.
8224         * modules/round-tests (Depends-on): Remove 'signbit'.
8225         * doc/posix-functions/round.texi: Mention the new module.
8226
8227 2010-12-21  Bruno Haible  <bruno@clisp.org>
8228
8229         New module 'trunc-ieee'.
8230         * modules/trunc-ieee: New file.
8231         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8232         whether trunc works according to ISO C 99 with IEC 60559.
8233         * m4/trunc-ieee.m4: New file.
8234         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8236         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8237         * modules/trunc-ieee-tests: New file.
8238         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8239         * tests/test-trunc1.c (main): Remove signbit tests.
8240         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8241         * doc/posix-functions/trunc.texi: Mention the new module.
8242
8243 2010-12-21  Bruno Haible  <bruno@clisp.org>
8244
8245         New module 'ceil-ieee'.
8246         * modules/ceil-ieee: New file.
8247         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8248         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8249         ISO C 99 with IEC 60559.
8250         * m4/ceil-ieee.m4: New file.
8251         * modules/ceil (Files): Add lib/ceil.c.
8252         (Depends-on): Add 'float'.
8253         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8254         * lib/math.in.h (ceil): New declaration.
8255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8256         REPLACE_CEIL.
8257         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8258         * modules/ceil-ieee-tests: New file.
8259         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8260         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8261         * doc/posix-functions/ceil.texi: Mention the new module.
8262
8263 2010-12-21  Bruno Haible  <bruno@clisp.org>
8264
8265         New module 'floor-ieee'.
8266         * modules/floor-ieee: New file.
8267         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8268         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8269         ISO C 99 with IEC 60559.
8270         * m4/floor-ieee.m4: New file.
8271         * modules/floor (Files): Add lib/floor.c.
8272         (Depends-on): Add 'float'.
8273         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8274         * lib/math.in.h (floor): New declaration.
8275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8276         REPLACE_FLOOR.
8277         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8278         * modules/floor-ieee-tests: New file.
8279         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8280         * tests/test-math-c++.cc: Check the signature of 'floor'.
8281         * doc/posix-functions/floor.texi: Mention the new module.
8282
8283 2010-12-21  Bruno Haible  <bruno@clisp.org>
8284
8285         New module 'roundf-ieee'.
8286         * modules/roundf-ieee: New file.
8287         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8288         test whether roundf works according to ISO C 99 with IEC 60559.
8289         * m4/roundf-ieee.m4: New file.
8290         * modules/roundf-ieee-tests: New file.
8291         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8292         * tests/test-roundf1.c (main): Remove signbit tests.
8293         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8294         * doc/posix-functions/roundf.texi: Mention the new module.
8295
8296 2010-12-21  Bruno Haible  <bruno@clisp.org>
8297
8298         New module 'truncf-ieee'.
8299         * modules/truncf-ieee: New file.
8300         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8301         test whether truncf works according to ISO C 99 with IEC 60559.
8302         * m4/truncf-ieee.m4: New file.
8303         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8305         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8306         * modules/truncf-ieee-tests: New file.
8307         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8308         * tests/test-truncf1.c (main): Remove signbit tests.
8309         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8310         * doc/posix-functions/truncf.texi: Mention the new module.
8311
8312 2010-12-21  Bruno Haible  <bruno@clisp.org>
8313
8314         New module 'ceilf-ieee'.
8315         * modules/ceilf-ieee: New file.
8316         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8317         test whether ceilf works according to ISO C 99 with IEC 60559.
8318         * m4/ceilf-ieee.m4: New file.
8319         * modules/ceilf-ieee-tests: New file.
8320         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8321         * tests/test-ceilf1.c (main): Remove signbit tests.
8322         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8323         * doc/posix-functions/ceilf.texi: Mention the new module.
8324
8325 2010-12-21  Bruno Haible  <bruno@clisp.org>
8326
8327         New module 'floorf-ieee'.
8328         * modules/floorf-ieee: New file.
8329         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8330         test whether floorf works according to ISO C 99 with IEC 60559.
8331         * m4/floorf-ieee.m4: New file.
8332         * modules/floorf-ieee-tests: New file.
8333         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8334         * tests/test-floorf1.c (main): Remove signbit tests.
8335         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8336         * doc/posix-functions/floorf.texi: Mention the new module.
8337
8338 2010-12-21  Bruno Haible  <bruno@clisp.org>
8339
8340         Support for minus zero in autoconf macros.
8341         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8342         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8343         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8344         * tests/minus-zero.h: Update comments.
8345
8346 2010-12-21  Bruno Haible  <bruno@clisp.org>
8347
8348         Tests for module 'ceil'.
8349         * modules/ceil-tests: New file.
8350         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8351         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8352
8353 2010-12-21  Bruno Haible  <bruno@clisp.org>
8354
8355         Tests for module 'floor'.
8356         * modules/floor-tests: New file.
8357         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8358         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8359
8360 2010-12-21  Bruno Haible  <bruno@clisp.org>
8361
8362         math: Fix indentation.
8363         * lib/math.in.h (floorf): Fix indentation.
8364
8365 2010-12-21  Bruno Haible  <bruno@clisp.org>
8366
8367         Fix cross-compilation guesses on Solaris.
8368         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8369         not match "solaris2.10".
8370         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8371         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8372         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8373
8374 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8375
8376         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8377         This fixes a problem observed with the latest coreutils snapshot
8378         that caused a test to fail on Solaris 8.  src/csplit.c's call
8379         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8380         earlier, instead of returning the number of bytes that would have
8381         been generated; this causes csplit to incorrectly report memory
8382         exhaustion.
8383         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8384         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8385         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8386         comments to match.
8387         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8388         Fix typo in matching older versions of Solaris: "solaris2.10"
8389         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8390         only for guessing while cross-compiling.
8391         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8392
8393 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8394
8395         ftoastr: fix comment again
8396         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8397         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8398         Also, simplify example a bit by using flags = 0.
8399
8400 2010-12-20  Bruno Haible  <bruno@clisp.org>
8401
8402         round*, trunc*: Update documentation regarding glibc.
8403         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8404         * doc/posix-functions/round.texi: Likewise.
8405         * doc/posix-functions/roundl.texi: Likewise.
8406         * doc/posix-functions/truncf.texi: Likewise.
8407         * doc/posix-functions/trunc.texi: Likewise.
8408         * doc/posix-functions/truncl.texi: Likewise.
8409
8410 2010-12-20  Bruno Haible  <bruno@clisp.org>
8411
8412         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8413         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8414         * doc/posix-functions/round.texi: Likewise.
8415         * doc/posix-functions/roundl.texi: Likewise.
8416
8417 2010-12-20  Bruno Haible  <bruno@clisp.org>
8418
8419         ttyname_r: Add missing declaration on HP-UX 11.
8420         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8421         HAVE_TTYNAME_R.
8422         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8423         declared. Set HAVE_TTYNAME_R always.
8424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8425         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8426         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8427         HAVE_TTYNAME_R.
8428         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8429
8430 2010-12-20  Bruno Haible  <bruno@clisp.org>
8431
8432         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8433         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8434         * doc/posix-functions/getlogin_r.texi: Likewise.
8435         * tests/test-getlogin.c: Include <errno.h>.
8436         (main): Avoid test failure on HP-UX 11.11.
8437         * tests/test-getlogin_r.c (main): Likewise.
8438
8439 2010-12-20  Bruno Haible  <bruno@clisp.org>
8440
8441         getlogin_r: Add missing declaration on HP-UX 11.
8442         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8443         declared also when it exists as a function.
8444         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8445
8446 2010-12-20  Bruno Haible  <bruno@clisp.org>
8447
8448         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8449         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8450         through wcrtomb.
8451
8452 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8453
8454         ftoastr: fix comment
8455         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8456         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8457
8458 2010-12-19  Bruno Haible  <bruno@clisp.org>
8459
8460         isnan: Ensure it is a macro.
8461         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8462         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
8463         Solaris.
8464
8465 2010-12-19  Bruno Haible  <bruno@clisp.org>
8466
8467         ldexpl test: Fix link error on OSF/1 5.1.
8468         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
8469
8470 2010-12-19  Bruno Haible  <bruno@clisp.org>
8471
8472         wctype: Make it work in C++ mode on OSF/1 5.1.
8473         * lib/wctype.in.h (iswblank): Declare but not define here.
8474         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
8475         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
8476         * modules/wctype (Files): Add lib/iswblank.c.
8477
8478 2010-12-19  Bruno Haible  <bruno@clisp.org>
8479
8480         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
8481         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
8482         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
8483
8484 2010-12-19  Bruno Haible  <bruno@clisp.org>
8485
8486         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
8487         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
8488         _POSIX_PII_SOCKET.
8489         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
8490         * doc/posix-functions/recvfrom.texi: Likewise.
8491         * doc/posix-functions/send.texi: Likewise.
8492         * doc/posix-functions/sendto.texi: Likewise.
8493
8494 2010-12-19  Bruno Haible  <bruno@clisp.org>
8495
8496         tcgetsid: Add missing declaration on OSF/1 5.1.
8497         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
8498         HAVE_TCGETSID.
8499         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
8500         Don't set HAVE_TCGETSID.
8501         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
8502         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
8503         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
8504         HAVE_TCGETSID.
8505         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
8506
8507 2010-12-19  Bruno Haible  <bruno@clisp.org>
8508
8509         stdio: Fix problem with popen() declaration on OSF/1 5.1.
8510         * lib/stdio.in.h: During the include_next statement, let recursive
8511         includes of this file include only the system header file.
8512
8513 2010-12-19  Bruno Haible  <bruno@clisp.org>
8514
8515         iconv_open: Fix regression from 2010-12-04.
8516         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
8517         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
8518
8519 2010-12-19  Bruno Haible  <bruno@clisp.org>
8520
8521         stdbool test: Avoid a gcc warning.
8522         * tests/test-stdbool.c (main): Fail if e1 is false.
8523         Reported by Jim Meyering.
8524
8525 2010-12-19  Jim Meyering  <meyering@redhat.com>
8526
8527         setenv: restore to working order
8528         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
8529         mistakenly removed.
8530         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
8531         HAVE_SETENV.
8532         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
8533         HAVE_SETENV.
8534
8535 2010-12-19  Bruno Haible  <bruno@clisp.org>
8536
8537         Document some different function declarations on OSF/1 5.1.
8538         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
8539         * doc/posix-functions/inet_ntop.texi: Likewise.
8540         * doc/posix-functions/gethostname.texi: Likewise.
8541         * lib/unistd.in.h (gethostname): Update comment.
8542
8543 2010-12-19  Bruno Haible  <bruno@clisp.org>
8544
8545         doc: Mention vasprintf-posix module.
8546         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
8547         the 'vasprintf-posix' module.
8548         * doc/glibc-functions/vasprintf.texi: Likewise.
8549
8550 2010-12-19  Bruno Haible  <bruno@clisp.org>
8551
8552         unsetenv: Add missing declaration on OSF/1 5.1.
8553         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
8554         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
8555         Don't set HAVE_UNSETENV. In the test program, set _BSD.
8556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
8557         not HAVE_UNSETENV.
8558         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
8559         HAVE_UNSETENV.
8560         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
8561
8562 2010-12-19  Bruno Haible  <bruno@clisp.org>
8563
8564         setenv: Add missing declaration on OSF/1 5.1.
8565         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
8566         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
8567         declared. Don't set HAVE_SETENV.
8568         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
8569         not HAVE_SETENV.
8570         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
8571         HAVE_SETENV.
8572         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
8573
8574 2010-12-19  Bruno Haible  <bruno@clisp.org>
8575
8576         nl_langinfo tests: Avoid gcc warning.
8577         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
8578
8579 2010-12-19  Bruno Haible  <bruno@clisp.org>
8580
8581         mknod: Avoid error in C++ mode on OSF/1 with GCC.
8582         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
8583         _GL_CXXALIAS_SYS.
8584
8585 2010-12-19  Bruno Haible  <bruno@clisp.org>
8586
8587         stdbool: Relax test.
8588         * tests/test-stdbool.c (e): Don't require that casts from a variable's
8589         address to 'bool' work in static initializer, for compilers other than
8590         GCC.
8591
8592 2010-12-19  Bruno Haible  <bruno@clisp.org>
8593
8594         ftello: Add missing declaration on OSF/1 5.1.
8595         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
8596         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
8597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
8598         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
8599         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
8600
8601 2010-12-19  Bruno Haible  <bruno@clisp.org>
8602
8603         fseeko: Add missing declaration on OSF/1 5.1.
8604         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
8605         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
8606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
8607         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
8608         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
8609
8610 2010-12-19  Bruno Haible  <bruno@clisp.org>
8611
8612         fchdir: Add missing declaration on OSF/1 5.1.
8613         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
8614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
8615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
8616         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
8617         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
8618
8619 2010-12-19  Bruno Haible  <bruno@clisp.org>
8620
8621         relocatable-prog-wrapper: Separate from relocatable-prog.
8622         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
8623         uninstall-relocwrapper rule here.
8624         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
8625         Reported by Ian Beckwith <ianb@erislabs.net>.
8626
8627 2010-12-19  Bruno Haible  <bruno@clisp.org>
8628
8629         unistr/u8-mbsnlen: Add missing dependency.
8630         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
8631         Reported by Ian Beckwith <ianb@erislabs.net>.
8632
8633 2010-12-19  Bruno Haible  <bruno@clisp.org>
8634
8635         iconv: Make it possible again to use this module without 'iconv-h'.
8636         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8637         if it is not defined.
8638         Reported by Ian Beckwith <ianb@erislabs.net>.
8639
8640 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8641
8642         acl: port to Solaris 8 when copying from tmpfs to ufs
8643         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8644         error number.  Problem observed on Solaris 8 with latest
8645         coreutils, with "mv A B", where A is on a tmpfs file system and B
8646         is on a ufs file system.  This caused coreutils' mv/part-symlink
8647         test to fail.
8648
8649         tests: set fail=0 at start
8650         * tests/init.sh (setup_): Move fail=0 initialization here ...
8651         (mktempd_): ... from here, so that tests can rely on fail being
8652         set to 0 initially.  This fixes a problem in coreutils; see:
8653         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8654
8655 2010-12-18  Bruno Haible  <bruno@clisp.org>
8656
8657         memmem-simple: Stylistic changes.
8658         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8659         Fix preprocessor directive indentation.
8660
8661 2010-12-15  Pádraig Brady <P@draigBrady.com>
8662
8663         memmem, memmem-simple: reorganize and expand empty needle check
8664         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8665         functional checks to memmem-simple so that one has a fully functional
8666         memmem by using just this module.
8667         Restrict the performance only check to the memmem module.
8668         Also expand the empty needle check to ensure the correct
8669         pointer is returned, not just a non NULL pointer.
8670         * doc/glibc-functions/memmem.texi: Rearrange the portability
8671         documentation to correlate with the rearranged checks.
8672         Clarify exactly how the memmem and memmem-simple modules
8673         relate to each other.
8674
8675 2010-12-15  Pádraig Brady <P@draigBrady.com>
8676             Bruno Haible  <bruno@clisp.org>
8677
8678         Improve cross-compilation guesses for uClibc.
8679         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8680         that uClibc does not have the glibc bug.
8681         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8682         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8683
8684 2010-12-14  Eric Blake  <eblake@redhat.com>
8685
8686         configmake: provide fallbacks for oldest supported autotools
8687         * m4/configmake.m4: New file.
8688         * modules/configmake (Files): Ship it.
8689         (configure.ac): Use it to guarantee fallbacks.
8690
8691 2010-12-13  Pádraig Brady <P@draigBrady.com>
8692
8693         read-file: Improve handling of large files
8694         * lib/read-file.c (fread_file): Minimize realloc()s
8695         for regular files, and better manage sizes around SIZE_MAX.
8696
8697 2010-12-13  Eric Blake  <eblake@redhat.com>
8698
8699         cloexec, fcntl: relax license
8700         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8701         consent from all contributors.
8702         * modules/fcntl (License): Likewise.
8703
8704 2010-12-10  Bruno Haible  <bruno@clisp.org>
8705
8706         Tests for module 'pipe-posix'.
8707         * modules/pipe-posix-tests: New file.
8708         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8709
8710 2010-12-10  Bruno Haible  <bruno@clisp.org>
8711
8712         pipe-posix: Make it work in C++ mode.
8713         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8714         (pipe): Use common idiom, not a macro definition.
8715         * lib/pipe.c: New file.
8716         * m4/pipe.m4: New file.
8717         * modules/pipe-posix (Description): Enhance.
8718         (Files): Add lib/pipe.c, m4/pipe.m4.
8719         (configure.ac): Invoke gl_FUNC_PIPE.
8720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8721         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8722         * tests/test-unistd-c++.cc: Check the signature of pipe.
8723
8724 2010-12-10  Bruno Haible  <bruno@clisp.org>
8725
8726         Rename module 'pipe' to 'spawn-pipe'.
8727         * modules/spawn-pipe: New file, renamed from modules/pipe.
8728         (Files, configure.ac, Makefile.am): Update.
8729         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8730         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8731         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8732         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8733         "spawn-pipe.h" instead of "pipe.h".
8734         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8735         to gl_SPAWN_PIPE.
8736         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
8737         (Files, Makefile.am): Update.
8738         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
8739         Update.
8740         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
8741         Include "spawn-pipe.h" instead of "pipe.h".
8742         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
8743         * lib/javacomp.c: Likewise.
8744         * lib/javaversion.c: Likewise.
8745         * lib/pipe-filter-gi.c: Likewise.
8746         * lib/pipe-filter-ii.c: Likewise.
8747         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
8748         * modules/javacomp (Depends-on): Likewise.
8749         * modules/javaversion (Depends-on): Likewise.
8750         * modules/pipe-filter-gi (Depends-on): Likewise.
8751         * modules/pipe-filter-ii (Depends-on): Likewise.
8752         * MODULES.html.sh (Executing programs): Update.
8753         * NEWS: Mention the change.
8754
8755 2010-12-10  Eric Blake  <eblake@redhat.com>
8756
8757         pipe-posix: new module
8758         * modules/pipe-posix: New file.
8759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
8760         (gl_UNISTD_H): Check for declaration.
8761         * modules/unistd (Makefile.am): Substitute it.
8762         * lib/unistd.in.h (pipe): Provide it for mingw.
8763         * doc/posix-functions/pipe.texi (pipe): Update documentation.
8764         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
8765
8766 2010-12-07  Bruno Haible  <bruno@clisp.org>
8767
8768         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
8769         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
8770         u8_strcmp_gnu.
8771         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
8772
8773 2010-12-06  Bruno Haible  <bruno@clisp.org>
8774
8775         Update internal documentation.
8776         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
8777
8778 2010-12-04  Bruno Haible  <bruno@clisp.org>
8779
8780         Put more information about failed tests into the test return codes.
8781         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
8782         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
8783         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8784         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8785         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8786         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8787         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8788         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8789         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
8790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8791         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
8792         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8793         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8794         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8795         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
8796         returns a bit mask.
8797         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
8798         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
8799         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
8800         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
8801         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8802         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8803         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8804         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8805         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8806         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8807         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8808         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8809         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8810         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8811         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8812         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8813         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
8814         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
8815         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8816         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
8817         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8818         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8819         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
8820         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8821         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8822         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8823         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
8824         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8825         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8826         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
8827         gl_PRINTF_PRECISION): Likewise.
8828         * m4/regex.m4 (gl_REGEX): Likewise.
8829         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8830         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8831         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
8832         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8833         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8834         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8835         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8836         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
8837         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8838         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8839         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8840         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8841         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8842         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
8843         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8844         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8845         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8846         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8847         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8848         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
8849         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
8850         enumerated value.
8851         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
8852
8853 2010-12-04  Bruno Haible  <bruno@clisp.org>
8854
8855         Update for Solaris 11 2010-11.
8856         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
8857         Express, released in November 2010.
8858
8859 2010-12-04  Bruno Haible  <bruno@clisp.org>
8860
8861         nproc: Relax license.
8862         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
8863         and Paul Eggert.
8864         Requested by Ludovic Courtès <ludo@gnu.org>.
8865
8866 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8867
8868         utimecmp: fine-grained src to nearby coarse-grained dest
8869
8870         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
8871         and the source is on a file system with higher-resolution time
8872         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
8873         not work, and the time stamps are close together, the algorithm to
8874         determine the exact resolution from the read-back mtime was buggy:
8875         it had a "!=" where it should have had an "==".  This bug has been
8876         in the code ever since it was introduced to gnulib.
8877         Problem reported by Dan Jacobson in
8878         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
8879
8880 2010-11-30  Bruno Haible  <bruno@clisp.org>
8881
8882         strerror_r-posix: Fix autoconf test.
8883         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
8884
8885 2010-11-28  Bruno Haible  <bruno@clisp.org>
8886             Paul Eggert  <eggert@cs.ucla.edu>
8887
8888         Tests for module 'getdomainname'.
8889         * modules/getdomainname-tests: New file.
8890         * tests/test-getdomainname.c: New file, based on
8891         tests/test-gethostname.c.
8892
8893 2010-11-28  Bruno Haible  <bruno@clisp.org>
8894             Paul Eggert  <eggert@cs.ucla.edu>
8895
8896         getdomainname: Use the system function when possible.
8897         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
8898         (getdomainname): Replace if needed. Provide the declaration if it is
8899         missing. Don't use _GL_CXXALIAS_SYS_CAST.
8900         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
8901         (getdomainname): When the system has getdomainname, call the system
8902         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
8903         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8904         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
8905         found in libnsl. Look for the declaration also in <netdb.h>. Replace
8906         the function if its second argument is of type 'int' or if it is found
8907         in libnsl.
8908         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
8909         <sys/systeminfo.h> and sysinfo().
8910         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
8911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8912         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
8913         HAVE_GETDOMAINNAME.
8914         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
8915         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
8916         * doc/glibc-functions/getdomainname.texi: Document the problems with
8917         the getdomainname declaration.
8918
8919 2010-11-28  Bruno Haible  <bruno@clisp.org>
8920
8921         sys_socket: Ensure ss_family field on AIX.
8922         * lib/sys_socket.in.h (ss_family): New macro definition.
8923         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
8924         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
8925         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8926         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8927         * modules/sys_socket (Makefile.am): Substitute
8928         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8929         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
8930
8931 2010-11-27  Bruno Haible  <bruno@clisp.org>
8932
8933         readline: Improve configure output.
8934         * m4/readline.m4 (gl_FUNC_READLINE): Make the
8935         "checking for readline..." result understandable.
8936
8937 2010-11-27  Bruno Haible  <bruno@clisp.org>
8938
8939         *printf-posix: Detect a bug on Solaris 10/x86.
8940         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
8941         for floating-point output.
8942         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
8943         directive.
8944         * tests/test-snprintf-posix.h (test_function): Likewise.
8945         * tests/test-sprintf-posix.h (test_function): Likewise.
8946         * tests/test-vasprintf-posix.c (test_function): Likewise.
8947         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
8948         * doc/posix-functions/printf.texi: Likewise.
8949         * doc/posix-functions/snprintf.texi: Likewise.
8950         * doc/posix-functions/sprintf.texi: Likewise.
8951         * doc/posix-functions/vfprintf.texi: Likewise.
8952         * doc/posix-functions/vprintf.texi: Likewise.
8953         * doc/posix-functions/vsnprintf.texi: Likewise.
8954         * doc/posix-functions/vsprintf.texi: Likewise.
8955         * doc/glibc-functions/obstack_printf.texi: Likewise.
8956         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8957
8958 2010-11-27  Bruno Haible  <bruno@clisp.org>
8959
8960         Fix link error when module libunistring-optional is in use.
8961         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
8962         * modules/striconveha-tests (Makefile.am): Likewise.
8963
8964 2010-11-27  Bruno Haible  <bruno@clisp.org>
8965
8966         regex: Mention link dependencies.
8967         * modules/regex (Link): New section.
8968         * modules/rpmatch (Link): Likewise.
8969         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
8970
8971 2010-11-27  Bruno Haible  <bruno@clisp.org>
8972
8973         ftoastr: Fix compilation error on Solaris.
8974         * lib/ftoastr.c: Include <config.h>.
8975
8976 2010-11-27  Bruno Haible  <bruno@clisp.org>
8977
8978         getloadavg: Update documentation.
8979         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
8980
8981 2010-11-27  Bruno Haible  <bruno@clisp.org>
8982
8983         sys_socket: Fix test whether the functions are declared.
8984         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8985         not <sys/select.h>.
8986
8987 2010-11-27  Bruno Haible  <bruno@clisp.org>
8988
8989         getpass: Make sure to get system declaration on some platforms.
8990         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8991         gl_USE_SYSTEM_EXTENSIONS.
8992         * modules/getpass (Depends-on): Add extensions.
8993
8994 2010-11-26  Bruno Haible  <bruno@clisp.org>
8995
8996         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8997         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8998         'iconv' module is present.
8999         (ICONV_CONST): New macro.
9000         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9001         ICONV_CONST.
9002         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9003         set ICONV_CONST.
9004         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9005         here.
9006         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9007         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9008         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9009         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9010         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9011         present.
9012
9013 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9014
9015         ftoastr: comment fix
9016         * lib/ftoastr.c: "little" -> "little or no" in comment
9017
9018 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9019
9020         stdint: port to GCC 4.3 + OSX + Octave
9021         On this platform, stdint.h is buggy and defines int64_t to long
9022         long int.  The replacement defined it to long int, causing
9023         problems with C++ style name mangling.  Instead, trust the system
9024         definition if INT64_MAX is defined, and likewise for the unsigned
9025         variant.   Problem reported by Jarno Rajahalme in
9026         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9027         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9028         and don't mess with int64_t and INT64_MAX in this case.
9029         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9030
9031 2010-11-24  Bruno Haible  <bruno@clisp.org>
9032
9033         doc: Corrections regarding MacOS X 10.4 and 10.5.
9034         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9035         MacOS X.
9036         Reported by Simon Josefsson.
9037
9038 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9039
9040         Uninstall ".bin" files installed by relocwrapper.
9041         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9042         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9043         unless it is already there.
9044
9045 2010-11-21  Bruno Haible  <bruno@clisp.org>
9046
9047         Update for NetBSD 5.0.
9048         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9049         NetBSD; the test fails on NetBSD 5.0.
9050         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9051         about NetBSD.
9052
9053 2010-11-21  Bruno Haible  <bruno@clisp.org>
9054
9055         Update for HP-UX 11.23 and HP-UX 11.31.
9056         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9057         HP-UX.
9058
9059 2010-11-21  Bruno Haible  <bruno@clisp.org>
9060
9061         Update for MacOS X 10.5.
9062         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9063         MacOS X; the test fails on MacOS X 10.5.8.
9064         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9065         about MacOS X.
9066
9067 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9068
9069         bootstrap: add bootstrap_sync option.
9070         See discussion at
9071         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9072         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9073         * build-aux/bootstrap: Accept --bootstrap-sync to update
9074         bootstrap if it is not identical to the local gnulib's
9075         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9076         enable this by default.  Accept --no-bootstrap-sync to disable
9077         it.
9078
9079 2010-11-20  Bruno Haible  <bruno@clisp.org>
9080
9081         Ensure that <features.h> is included before __GLIBC__ is tested.
9082         * lib/printf-parse.h: Include <features.h>.
9083         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9084         Reported by Mike Frysinger <vapier@gentoo.org>.
9085
9086         Ensure that <features.h> is included before __GLIBC__ is tested.
9087         * lib/wchar.in.h: Include <features.h>.
9088         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9089         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9090         Reported by Mike Frysinger <vapier@gentoo.org>.
9091
9092         Ensure that <features.h> is included before __GLIBC__ is tested.
9093         * lib/arpa_inet.in.h: Include <features.h>.
9094         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9095         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9096         Reported by Mike Frysinger <vapier@gentoo.org>.
9097
9098         Ensure that <features.h> is included before __GLIBC__ is tested.
9099         * build-aux/link-warning.h: Include <features.h>.
9100         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9101         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9102         Reported by Mike Frysinger <vapier@gentoo.org>.
9103
9104         Ensure that <features.h> is included before __GLIBC__ is tested.
9105         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9106         Reported by Mike Frysinger <vapier@gentoo.org>.
9107
9108 2010-11-20  Bruno Haible  <bruno@clisp.org>
9109
9110         memmem: Fix autoconf test.
9111         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9112
9113 2010-11-20  Bruno Haible  <bruno@clisp.org>
9114
9115         Port to uClibc.
9116         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9117         * lib/fcntl.in.h: Likewise.
9118         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9119         * lib/mbrtowc.c (mbrtowc): Likewise.
9120         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9121         * lib/strerror_r.c: Likewise.
9122         * lib/unistr/u8-strnlen.c: Likewise.
9123         * lib/vasnprintf.c (decimal_point_char): Likewise.
9124         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9125         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9126         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9127         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9128         * tests/test-sigaction.c (handler, main): Likewise.
9129         * lib/freading.h: Treat uClibc like a non-glibc platform.
9130         * lib/freading.c: Likewise.
9131         * lib/gettext.h: Likewise.
9132         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9133         Likewise.
9134         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9135         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9136         * lib/propername.c (proper_name_utf8): Likewise.
9137         * lib/spawn.in.h: Likewise.
9138         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9139         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9140         mem_cd_iconveh_internal): Likewise.
9141         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9142         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9143         strstr, strcasestr): Likewise.
9144         * lib/unicodeio.c (unicode_to_mb): Likewise.
9145         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9146         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9147         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9148         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9149         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9150         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9151         * lib/unistr/u8-stpncpy.c: Likewise.
9152         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9153         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9154         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9155         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9156         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9157         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9158         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9159         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9160         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9161         Likewise.
9162         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9163         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9164         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9165         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9166         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9167         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9168         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9169         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9170         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9171         * tests/test-striconveha.c (main): Likewise.
9172         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9173         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9174         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9175         * doc/posix-functions/getline.texi: Likewise.
9176         Reported by Mike Frysinger <vapier@gentoo.org>.
9177
9178 2010-11-20  Bruno Haible  <bruno@clisp.org>
9179
9180         nproc: Fix condition.
9181         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9182         HAVE_PTHREAD_AFFINITY_NP.
9183
9184 2010-11-20  Bruno Haible  <bruno@clisp.org>
9185
9186         Fix a comment.
9187         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9188
9189 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9190
9191         ftoastr: don't assume snprintf
9192         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9193         Implement a subset of snprintf here, by using sprintf safely.
9194         * modules/ftoastr (Depends-on): Remove snprintf.
9195
9196 2010-11-19  Jim Meyering  <meyering@redhat.com>
9197
9198         test-rename.h: fix compilation failure
9199         * tests/test-rename.h (test_rename): Add omitted "}".
9200
9201 2010-11-17  Jim Meyering  <meyering@redhat.com>
9202
9203         maint.mk: add a URL discussing the no-@acronym policy
9204         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9205
9206 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9207
9208         ftoastr: depend on snprintf, improve comments
9209         * lib/ftoastr.c: Also mention Loitsch's draft.
9210         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9211         needed in the current implementation, but it might simplify
9212         speeding up the code later.
9213         * modules/ftoastr: Depend on snprintf; this improves portability.
9214         Suggested by Bruno Haible in the same email.
9215
9216         ftoastr: port to hosts lacking strtof and strtold
9217         Problem reported by Bruno Haible in
9218         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9219         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9220         environment and strtold (and presumably strtof) are not available.
9221         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9222         (configure.ac): Require gl_C99_STRTOLD.
9223
9224 2010-11-18  Bruno Haible  <bruno@clisp.org>
9225
9226         c-strtold: Avoid link error on AIX 7.
9227         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9228         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9229         (gl_C_STRTOLD): Test whether strtold_l exists.
9230         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9231
9232 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9233
9234         intprops: new macro INT_BITS_STRLEN_BOUND
9235         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9236         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9237         not exposed.  Also, it uses a slightly tighter bound than before;
9238         though this makes no practical difference, we might as well be as
9239         tight as we easily can.
9240
9241         ftoastr: new module, for lossless conversion of floats to short strings
9242         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9243         * modules/ftoastr: New files.
9244
9245 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9246
9247         bootstrap: port to Solaris sed
9248         * build-aux/bootstrap (get_version): Port to Solaris sed.
9249         See Ralf Wildenhues's note in
9250         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9251
9252 2010-11-14  Jim Meyering  <meyering@redhat.com>
9253
9254         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9255         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9256         and move definition closer to sole use.
9257
9258 2010-11-13  Jim Meyering  <meyering@redhat.com>
9259
9260         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9261         Now we require at least autoconf-2.59, which means the work-around
9262         is no longer needed.
9263         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9264         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9265         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9266         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9267         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9268
9269 2010-11-13  Bruno Haible  <bruno@clisp.org>
9270
9271         rename, renameat: Avoid test failures at NFS mounted locations.
9272         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9273         functions.
9274         (test_rename): Use assert_nonexistent.
9275         * tests/test-rename.c: Include <dirent.h>.
9276         * tests/test-renameat.c: Likewise.
9277         Reported by Gary V. Vaughan <gary@gnu.org>.
9278
9279         rename, renameat: Document Linux bug with NFS
9280         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9281         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9282         * doc/posix-functions/renameat.texi: Likewise.
9283         Suggested by Eric Blake.
9284
9285 2010-11-13  Bruno Haible  <bruno@clisp.org>
9286
9287         rename test: Add comments.
9288         * tests/test-rename.h (test_rename): Add structure and comments.
9289
9290 2010-11-13  Eric Blake  <eblake@redhat.com>
9291
9292         maintainer-makefile: cover a few more files
9293         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9294         scripts generated within C files, for libvirt.
9295
9296 2010-11-13  Bruno Haible  <bruno@clisp.org>
9297
9298         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9299         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9300         character, return the number of bytes that belong together, not always
9301         1.
9302         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9303         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9304         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9305         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9306         number of bytes of an invalid character.
9307         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9308         (main): Invoke it.
9309         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9310         results.
9311         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9312         malformed byte sequences.
9313         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9314         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9315         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9316         Reported by Ben Pfaff and Paolo Bonzini.
9317
9318 2010-11-13  Bruno Haible  <bruno@clisp.org>
9319
9320         openat: Work around glibc bug with fchownat() and empty file names.
9321         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9322         (gl_FUNC_FCHOWNAT): Invoke it.
9323         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9324         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9325         Reported by Gary V. Vaughan <gary@gnu.org>.
9326
9327 2010-11-13  Bruno Haible  <bruno@clisp.org>
9328
9329         openat: Ensure autoconf macro ordering.
9330         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9331         gl_USE_SYSTEM_EXTENSIONS.
9332         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9333
9334 2010-11-13  Bruno Haible  <bruno@clisp.org>
9335
9336         Update comments.
9337         * lib/unistr/u8-check.c: Update file name in comments.
9338         * lib/unistr/u8-mblen.c: Likewise.
9339         * lib/unistr/u8-prev.c: Likewise.
9340         * lib/unistr/u8-strmblen.c: Likewise.
9341         * lib/unistr/u8-strmbtouc.c: Likewise.
9342
9343 2010-11-13  Jim Meyering  <meyering@redhat.com>
9344
9345         tests: avoid test failure on Solaris 10 due to lack of PATH export
9346         * tests/test-update-copyright.sh: Don't forget to export PATH.
9347
9348         init.sh: ensure that IFS is defined, just in case...
9349         * tests/init.sh (setup_): Ensure that IFS is defined,
9350         so that saving and restoring it works as expected.  This
9351         appears to be useful at least for an old version of dash
9352         from a long time ago (RH 6).  See here for details:
9353         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9354
9355         maint.mk: tighten "test a == b" check
9356         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9357         test to files that contain something like #!/bin/sh.
9358         Without this, coreutils would get two false positives in
9359         the comments of C source files.
9360
9361 2010-11-12  Eric Blake  <eblake@redhat.com>
9362
9363         bootstrap: fix typo in previous attempt
9364         * build-aux/bootstrap (buildreq): Correct the grouping.
9365         Reported by Paul Eggert.
9366
9367         maintainer-makefile: prohibit test x == x
9368         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9369         Based on a report by Matthias Bolte.
9370
9371         bootstrap: allow FreeBSD gzip
9372         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9373         which has no '.' and goes to stderr.
9374         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9375         Reported by Matthias Bolte.
9376
9377         maintainer-makefile: check for i18n setup
9378         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9379         will likely work.
9380
9381 2010-11-12  Bruno Haible  <bruno@clisp.org>
9382
9383         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9384         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9385         * lib/nanosleep.c (nanosleep): Likewise.
9386
9387 2010-11-11  Bruno Haible  <bruno@clisp.org>
9388
9389         fcntl-h: Fix for use of C++ on glibc systems.
9390         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9391         also on glibc systems in C++ mode.
9392         Reported by Gary V. Vaughan <gary@gnu.org>.
9393
9394 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9395
9396         mknod: avoid false failure with dash
9397         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9398
9399 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9400
9401         unlink: Fix "is it should" typo in diagnostic.
9402         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9403         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9404
9405 2010-11-11  Bruno Haible  <bruno@clisp.org>
9406
9407         Tests for module 'strerror_r-posix'.
9408         * modules/strerror_r-posix-tests: New file.
9409         * tests/test-strerror_r.c: New file.
9410         * tests/test-string-c++.cc: Check the signature of strerror_r.
9411
9412         New module 'strerror_r-posix'.
9413         * lib/string.in.h (strerror_r): New declaration.
9414         * lib/strerror_r.c: New file.
9415         * m4/strerror_r.m4: New file.
9416         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9417         of strerror_r.
9418         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9419         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9420         * modules/strerror_r-posix: New file.
9421         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9422         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9423         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9424         portability problems.
9425
9426 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9427
9428         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9429         line is also considered for output. Quoted function name in shell
9430         command, so temporary files for functions like MyClass::operator()
9431         are removed correctly without errors.
9432
9433 2010-11-09  Bruno Haible  <bruno@clisp.org>
9434
9435         * doc/posix-functions/strerror.texi: List more failing platforms.
9436
9437         * doc/posix-functions/strerror.texi: Add a comment.
9438
9439 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9440
9441         fdopendir: fix bug on MacOS X when low on file descriptors
9442
9443         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9444         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9445         All callers changed.
9446         (fdopendir): Invoke save_cwd at the top level, not after using
9447         multiple dup() calls to use up file descriptors.  Then retry
9448         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9449         less than the maximum number of open file descriptors, because
9450         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9451         on Mac OS X 10.6.4 for tar 1.24
9452         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9453         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9454         and for tar 1.25
9455         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9456
9457 2010-11-07  Bruno Haible  <bruno@clisp.org>
9458
9459         vasnprintf: Support I flag on glibc systems.
9460         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9461         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9462         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
9463         snprintf function.
9464         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9465         glibc systems.
9466         * tests/test-vasnprintf-posix3.c: New file.
9467         * modules/vasnprintf-posix-tests (Files): Add it.
9468         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
9469
9470 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9471
9472         [html] Fix copy/paste bug: Use unique name for compiler warnings.
9473         * MODULES.html.sh: For compiler warnings, use name
9474         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
9475
9476 2010-11-05  Eric Blake  <eblake@redhat.com>
9477
9478         ceil, floor: avoid spurious failure with icc
9479         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
9480         [denormals-as-zero] when optimizing without -mieee-fp option.
9481         * tests/test-floorf2.c (floorf_reference): Likewise.
9482         * tests/test-ceilf1.c (dummy): New function.
9483         (main): Use it to outsmart icc's optimization.
9484         * tests/test-floorf1.c (dummy, main): Likewise.
9485
9486         tests: require working signbit
9487         * modules/ceilf-tests (Depends-on): Add signbit.
9488         * modules/ceill-tests (Depends-on): Likewise.
9489         * modules/floorf-tests (Depends-on): Likewise.
9490         * modules/floorl-tests (Depends-on): Likewise.
9491         * modules/round-tests (Depends-on): Likewise.
9492         * modules/roundf-tests (Depends-on): Likewise.
9493         * modules/roundl-tests (Depends-on): Likewise.
9494         * modules/trunc-tests (Depends-on): Likewise.
9495         * modules/truncf-tests (Depends-on): Likewise.
9496         * modules/truncl-tests (Depends-on): Likewise.
9497
9498         strtod: work around icc bug
9499         * lib/strtod.c (minus_zero): Define to working value.
9500         (strtod): Use it to avoid icc bug.
9501
9502         copysign: enhance tests
9503         * modules/copysign-tests (Files): Add minus-zero.h.
9504         * tests/test-copysign.c (main): Also test zeros.
9505
9506 2010-11-04  Eric Blake  <eblake@redhat.com>
9507
9508         ceil, floor, round, trunc: enhance tests of -0
9509         * tests/test-ceilf1.c (main): Ensure correct sign of result.
9510         * tests/test-ceill.c (main): Likewise.
9511         * tests/test-floorf1.c (main): Likewise.
9512         * tests/test-floorl.c (main): Likewise.
9513         * tests/test-round1.c (main): Likewise.
9514         * tests/test-roundf1.c (main): Likewise.
9515         * tests/test-roundl.c (main): Likewise.
9516         * tests/test-trunc1.c (main): Likewise.
9517         * tests/test-truncf1.c (main): Likewise.
9518         * tests/test-truncl.c (main): Likewise.
9519
9520 2010-11-04  Eric Blake  <eblake@redhat.com>
9521
9522         frexp, tests: work around ICC bug with -zero
9523         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
9524         works with more compilers.
9525         * tests/minus-zero.h: New file.
9526         * modules/ceilf-tests (Files): Include it.
9527         * modules/ceill-tests (Files): Likewise.
9528         * modules/floorf-tests (Files): Likewise.
9529         * modules/floorl-tests (Files): Likewise.
9530         * modules/frexp-nolibm-tests (Files): Likewise.
9531         * modules/frexp-tests (Files): Likewise.
9532         * modules/frexpl-nolibm-tests (Files): Likewise.
9533         * modules/frexpl-tests (Files): Likewise.
9534         * modules/isnan-tests (Files): Likewise.
9535         * modules/isnand-nolibm-tests (Files): Likewise.
9536         * modules/isnand-tests (Files): Likewise.
9537         * modules/isnanf-nolibm-tests (Files): Likewise.
9538         * modules/isnanf-tests (Files): Likewise.
9539         * modules/isnanl-nolibm-tests (Files): Likewise.
9540         * modules/isnanl-tests (Files): Likewise.
9541         * modules/round-tests (Files): Likewise.
9542         * modules/roundf-tests (Files): Likewise.
9543         * modules/roundl-tests (Files): Likewise.
9544         * modules/ldexpl-tests (Files): Likewise.
9545         * modules/signbit-tests (Files): Likewise.
9546         * modules/snprintf-posix-tests (Files): Likewise.
9547         * modules/sprintf-posix-tests (Files): Likewise.
9548         * modules/strtod-tests (Files): Likewise.
9549         * modules/trunc-tests (Files): Likewise.
9550         * modules/truncf-tests (Files): Likewise.
9551         * modules/truncl-tests (Files): Likewise.
9552         * modules/vsnprintf-posix-tests (Files): Likewise.
9553         * modules/vsprintf-posix-tests (Files): Likewise.
9554         * modules/vasnprintf-posix-tests (Files): Likewise.
9555         * modules/vasprintf-posix-tests (Files): Likewise.
9556         * tests/test-ceilf1.c (main): Use it.
9557         * tests/test-ceill.c (main): Likewise.
9558         * tests/test-floorf1.c (main): Likewise.
9559         * tests/test-floorl.c (main): Likewise.
9560         * tests/test-frexp.c (main): Likewise.
9561         * tests/test-frexpl.c (main): Likewise.
9562         * tests/test-isnan.c (main): Likewise.
9563         * tests/test-isnand.h (main): Likewise.
9564         * tests/test-isnanf.h (main): Likewise.
9565         * tests/test-isnanl.h (main): Likewise.
9566         * tests/test-ldexpl.c (main): Likewise.
9567         * tests/test-round.c (main): Likewise.
9568         * tests/test-roundf.c (main): Likewise.
9569         * tests/test-roundl.c (main): Likewise.
9570         * tests/test-signbit.c (test_signbitf, test_signbitd)
9571         (test_signbitl): Likewise.
9572         * tests/test-snprintf-posix.h (test_function): Likewise.
9573         * tests/test-sprintf-posix.h (test_function): Likewise.
9574         * tests/test-strtod.c (main): Likewise.
9575         * tests/test-trunc1.c (main): Likewise.
9576         * tests/test-truncf1.c (main): Likewise.
9577         * tests/test-truncl.c (main): Likewise.
9578
9579         isnanl: work around icc bug
9580         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
9581
9582 2010-11-03  Eric Blake  <eblake@redhat.com>
9583
9584         tests: fix compiler warnings
9585         * tests/test-getopt.h (test_getopt): Fix condition.
9586         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9587         * tests/test-pipe2.c (main): Likewise.
9588         * tests/test-quotearg-simple.c (main): Avoid icc warning.
9589
9590         utimens: fix broken m4 test
9591         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
9592
9593 2010-10-28  Bruno Haible  <bruno@clisp.org>
9594
9595         posix_spawn*, getdtablesize: Relax license.
9596         * modules/posix_spawn (License): Change to LGPLv2+.
9597         * modules/posix_spawnp (License): Likewise.
9598         * modules/posix_spawn-internal (License): Likewise.
9599         * modules/posix_spawnattr_init (License): Likewise.
9600         * modules/posix_spawnattr_getflags (License): Likewise.
9601         * modules/posix_spawnattr_setflags (License): Likewise.
9602         * modules/posix_spawnattr_getpgroup (License): Likewise.
9603         * modules/posix_spawnattr_setpgroup (License): Likewise.
9604         * modules/posix_spawnattr_getschedparam (License): Likewise.
9605         * modules/posix_spawnattr_setschedparam (License): Likewise.
9606         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
9607         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
9608         * modules/posix_spawnattr_getsigdefault (License): Likewise.
9609         * modules/posix_spawnattr_setsigdefault (License): Likewise.
9610         * modules/posix_spawnattr_getsigmask (License): Likewise.
9611         * modules/posix_spawnattr_setsigmask (License): Likewise.
9612         * modules/posix_spawnattr_destroy (License): Likewise.
9613         * modules/posix_spawn_file_actions_init (License): Likewise.
9614         * modules/posix_spawn_file_actions_addclose (License): Likewise.
9615         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
9616         * modules/posix_spawn_file_actions_addopen (License): Likewise.
9617         * modules/posix_spawn_file_actions_destroy (License): Likewise.
9618         * modules/getdtablesize (License): Likewise.
9619         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
9620
9621 2010-10-26  Bruno Haible  <bruno@clisp.org>
9622
9623         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
9624         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
9625         Cygwin and mingw.
9626         Suggested by Eric Blake.
9627
9628 2010-10-26  Bruno Haible  <bruno@clisp.org>
9629
9630         stdio: Work around compilation error due to renameat() on Solaris 10.
9631         * lib/stdio.in.h: Include <unistd.h> on Solaris.
9632         * lib/renameat.c: Don't include <unistd.h> here.
9633         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9634         Reported by Paul Eggert and Eric Blake.
9635
9636 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9637
9638         renameat: port to Solaris 10, which declares renameat in unistd.h
9639
9640         * lib/renameat.c: Include unistd.h before stdio.h, because
9641         Solaris 10 declares renameat in unistd.h.  Problem encountered
9642         when building GNU tar 1.24 on Solaris 10.
9643
9644 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9645
9646         fdopendir: fix C89 compilation
9647         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9648         compilers.
9649
9650 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9651
9652         inttostr: simplify by removing unnecessary redundancy
9653         * lib/anytostr.c: Don't include verify.h.
9654         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9655         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9656         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9657         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9658         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9659         Likewise.
9660         * modules/inttostr (Depends-on): Remove 'verify'.
9661
9662 2010-10-23  Bruno Haible  <bruno@clisp.org>
9663
9664         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9665         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9666         Reported by Eric Blake.
9667
9668 2010-10-23  Bruno Haible  <bruno@clisp.org>
9669
9670         Tests: Fix LOCALE_JA on MirBSD 10.
9671         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9672         to an UTF-8 locale.
9673         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9674         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9675         Reported by Eric Blake.
9676
9677 2010-10-21  Bruno Haible  <bruno@clisp.org>
9678
9679         nl_langinfo test: Avoid test failure on NetBSD 5.
9680         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9681         Reported by Eric Blake.
9682
9683 2010-10-21  Eric Blake  <eblake@redhat.com>
9684
9685         c-stack: work around libsigsegv 2.8 bug
9686         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9687         overflow on at least PowerPC64.
9688
9689 2010-10-17  Bruno Haible  <bruno@clisp.org>
9690
9691         userspec: Drop redundant file.
9692         * modules/userspec (Files): Remove lib/inttostr.h.
9693
9694 2010-10-17  Bruno Haible  <bruno@clisp.org>
9695
9696         nl_langinfo tests: Silence some warnings.
9697         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9698         Reported by Jim Meyering.
9699
9700 2010-10-17  Bruno Haible  <bruno@clisp.org>
9701
9702         Make use of GCC's attribute __alloc_size__.
9703         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9704         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9705         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9706         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9707         __alloc_size__.
9708         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9709         Suggested by Jim Meyering.
9710
9711 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9712
9713         bootstrap: anchor .gitignore entries.
9714         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9715         with...
9716         (insert_vc_ignore): ... this new function, which prepends `/' to
9717         all .gitignore entries before passing them to
9718         insert_sorted_if_absent.
9719
9720 2010-10-16  Bruno Haible  <bruno@clisp.org>
9721
9722         nextafter: Fix configure check.
9723         * modules/nextafter (configure.ac): Correct expected prototype.
9724
9725 2010-10-16  Bruno Haible  <bruno@clisp.org>
9726
9727         termios: Update documentation.
9728         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9729
9730 2010-10-16  Bruno Haible  <bruno@clisp.org>
9731
9732         tests: Make them compile with TinyCC.
9733         * tests/test-strstr.c (main): Remove parentheses around array
9734         initializer.
9735
9736 2010-10-15  Eric Blake  <eblake@redhat.com>
9737
9738         ignore-value: make header idempotent
9739         * lib/ignore-value.h: Add double-inclusion guards.
9740         Reported by Stefan Berger.
9741
9742 2010-10-15  Jim Meyering  <meyering@redhat.com>
9743
9744         GNUmakefile: handle "stable" target, not "major"
9745         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
9746         lists in maint.mk and announce-gen.  Without this, "make stable"
9747         would fail to ensure that $(VERSION) is up to date.
9748
9749 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
9750
9751         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
9752         & co.
9753
9754 2010-10-14  Bruno Haible  <bruno@clisp.org>
9755
9756         vasnprintf: Don't set errno to 0.
9757         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
9758         block that sets it to 0.
9759         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
9760
9761 2010-10-14  Bruno Haible  <bruno@clisp.org>
9762
9763         socketlib: Fix.
9764         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
9765         gl_PREREQ_SYS_H_WINSOCK2.
9766         Reported by Ian Beckwith <ianb@erislabs.net>.
9767
9768 2010-10-13  Jim Meyering  <meyering@redhat.com>
9769
9770         test-select-stdin.c: avoid warn_unused_result warnings
9771         * tests/test-select-stdin.c: Include "macros.h".
9772         ASSERT that read and fflush succeed.
9773
9774 2010-10-13  Jim Meyering  <meyering@redhat.com>
9775
9776         git-version-gen: do require git-VC'd files in cwd
9777         * build-aux/git-version-gen: Reject a git version string
9778         if there are no commits associated with the current directory.
9779         This avoids an unlikely false-positive (unrelated dir whose parent
9780         repository also contains a tag matching v*), as pointed out
9781         by Giuseppe Scrivano in
9782         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
9783
9784 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9785
9786         argv-iter: omit nonconforming declaration
9787         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
9788         enum arg_iter_err declaration, which doesn't conform to C99.
9789         Solaris 10 cc warns about this.
9790
9791 2010-10-13  Eric Blake  <eblake@redhat.com>
9792
9793         termios: fix compilation on mingw
9794         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
9795         (gl_TERMIOS_H): Adjust it on mingw.
9796         * modules/termios (Makefile.am): Substitute new key.
9797         * lib/termios.in.h (includes): Make include_next conditional.
9798         * doc/posix-headers/termios.texi (termios.h): Update
9799         documentation.
9800         Reported by Daniel P. Berrange.
9801
9802 2010-10-13  Jim Meyering  <meyering@redhat.com>
9803
9804         git-version-gen: don't require that .git/ be in the current dir
9805         * build-aux/git-version-gen: Adjust this script so that it works
9806         when run from any working directory beneath the top-level .git/-
9807         containing directory.  Inspired by a patch from Giuseppe Scrivano,
9808         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
9809
9810         test-select: avoid warn_unused_result warnings
9811         * tests/test-select.c: Include "macros.h".
9812         ASSERT that each call to read, write, and pipe succeeds.
9813         While not technically required, also check each "close".
9814         * modules/select-tests (Files): Add tests/macros.h.
9815
9816         test-symlinkat: remove declaration of unused local
9817         * tests/test-symlinkat.c (main): Remove unused local, "buf".
9818
9819         test-inttostr: avoid shadowing warnings
9820         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
9821         and use malloc rather than the stack for the same reason as
9822         mentioned in the comment justifying the other allocation.
9823
9824 2010-10-11  Bruno Haible  <bruno@clisp.org>
9825
9826         stdlib: Allow multiple gnulib generated replacements to coexist.
9827         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
9828         Reported by Sam Steingold <sds@gnu.org>.
9829
9830 2010-10-11  Jim Meyering  <meyering@redhat.com>
9831
9832         fix a documentation typo
9833         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
9834
9835 2010-10-11  Eric Blake  <eblake@redhat.com>
9836
9837         futimens: work around Solaris 11 bug
9838         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
9839         * tests/test-futimens.h (test_futimens): Enhance, rather than
9840         weaken test.
9841         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9842
9843 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9844
9845         Indentation.
9846         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
9847         higher-level operators more to the left.
9848
9849 2010-10-11  Jim Meyering  <meyering@redhat.com>
9850
9851         test-futimens: avoid unwarranted test failure on Solaris 5.11
9852         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
9853         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
9854         because it tries to dereference the NULL name argument.
9855
9856 2010-10-11  Bruno Haible  <bruno@clisp.org>
9857
9858         Indentation.
9859         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
9860         indentation.
9861
9862 2010-10-11  Jim Meyering  <meyering@redhat.com>
9863
9864         spawn.in.h: make indentation consistent with parentheses
9865         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
9866         Make indentation consistent with parentheses.
9867
9868 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
9869
9870         Fix mismatched parens in previous commit
9871         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
9872         parens.
9873
9874 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9875
9876         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
9877
9878         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
9879         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
9880         * lib/malloca.c: Include "verify.h".
9881         (verify1): Remove, replacing with a verify call.
9882         * lib/relocwrapper.c (verify1): Likewise.
9883         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
9884         Likewise.
9885         * modules/malloca (Depends-on): Add 'verify'.
9886         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
9887         * modules/vasnprintf (Depends-on): Add 'verify'.
9888         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9889         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9890         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9891         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9892         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9893         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9894         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9895
9896         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
9897
9898         Formerly the style was sometimes 2*X - 1, because the C standard
9899         was wrongly thought to disallow ?: in integral constant expressions.
9900         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
9901         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
9902         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9903         * lib/stdint.in.h (_verify_intmax_size): Likewise.
9904         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
9905         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
9906         verify that time_t cannot be floating.
9907
9908 2010-10-08  Eric Blake  <eblake@redhat.com>
9909
9910         time: enforce recent POSIX ruling that time_t is integral
9911         * lib/time.in.h (__time_t_must_be_integral): Detect any
9912         problematic systems, allowing the rest of gnulib to assume POSIX.
9913
9914 2010-10-08  Jim Meyering  <meyering@redhat.com>
9915
9916         fdopendir: fix a bug on systems lacking openat and /proc support
9917         OpenBSD 4.7 is one such system.  The most noticeable effect was
9918         failure of any application making nontrivial use of fts: rm, du,
9919         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
9920           ./rm: traversal failed: `a': Bad file descriptor
9921         Debugging that, you see that even though FD 6 was closed just
9922         prior to the opendir call in fd_clone_opendir, its resulting
9923         dir->dd_fd was 8, rather than the expected value of 6:
9924
9925         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
9926         93                close (fd);
9927         (gdb) n
9928         94                dir = fd_clone_opendir (dupfd);
9929         (gdb) n
9930         95                saved_errno = errno;
9931         (gdb) p dir->dd_fd
9932         $11 = 8
9933
9934         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
9935         The problem is that on OpenBSD, fd_clone_opendir has to resort
9936         to using the old-style save/restore CWD mechanism, due to its
9937         lack of openat/proc support, and *that* would steal the FD (6)
9938         that opendir was supposed to use.
9939
9940         The fix is to squirrel away the desired FD so that save_cwd uses a
9941         different one, and then free the dest FD right before calling opendir.
9942         That guarantees opendir will use the required file descriptor.
9943
9944         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
9945
9946 2010-10-08  Bruno Haible  <bruno@clisp.org>
9947
9948         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
9949         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
9950
9951 2010-10-08  Bruno Haible  <bruno@clisp.org>
9952
9953         nanosleep: Make replacement POSIX compliant.
9954         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
9955         is out of range.
9956         Reported by Jim Meyering.
9957
9958 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9959
9960         bootstrap: add hook for altering gnulib.mk, for Bison
9961         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
9962         the Bison bootstrapping process can rewrite file names and variables
9963         in this file before later parts of 'bootstrap' use the file.
9964         Bison wants to include lib/gnulib.mk from the top-level makefile,
9965         so it needs the file names in this file to be relative to the top
9966         level, not relative to lib; plus it needs variable names to be
9967         rewritten.
9968         (slurp): Use the new function.
9969
9970         bootstrap: reformat for readability
9971         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
9972
9973 2010-10-08  Eric Blake  <eblake@redhat.com>
9974
9975         docs: update cygwin progress
9976         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
9977         1.7.7.
9978         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
9979         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
9980         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
9981         * doc/posix-functions/carg.texi (carg): Likewise.
9982         * doc/posix-functions/cargf.texi (cargf): Likewise.
9983         * doc/posix-functions/casin.texi (casin): Likewise.
9984         * doc/posix-functions/casinf.texi (casinf): Likewise.
9985         * doc/posix-functions/casinh.texi (casinh): Likewise.
9986         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9987         * doc/posix-functions/catan.texi (catan): Likewise.
9988         * doc/posix-functions/catanf.texi (catanf): Likewise.
9989         * doc/posix-functions/catanh.texi (catanh): Likewise.
9990         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9991         * doc/posix-functions/ccos.texi (ccos): Likewise.
9992         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9993         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9994         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9995         * doc/posix-functions/cexp.texi (cexp): Likewise.
9996         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9997         * doc/posix-functions/cimag.texi (cimag): Likewise.
9998         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9999         * doc/posix-functions/clog.texi (clog): Likewise.
10000         * doc/posix-functions/clogf.texi (clogf): Likewise.
10001         * doc/posix-functions/conj.texi (conj): Likewise.
10002         * doc/posix-functions/conjf.texi (conjf): Likewise.
10003         * doc/posix-functions/cpow.texi (cpow): Likewise.
10004         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10005         * doc/posix-functions/cproj.texi (cproj): Likewise.
10006         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10007         * doc/posix-functions/creal.texi (creal): Likewise.
10008         * doc/posix-functions/crealf.texi (crealf): Likewise.
10009         * doc/posix-functions/csin.texi (csin): Likewise.
10010         * doc/posix-functions/csinf.texi (csinf): Likewise.
10011         * doc/posix-functions/csinh.texi (csinh): Likewise.
10012         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10013         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10014         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10015         * doc/posix-functions/ctan.texi (ctan): Likewise.
10016         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10017         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10018         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10019         * doc/posix-headers/complex.texi (complex.h): Likewise.
10020
10021 2010-10-07  Jim Meyering  <meyering@redhat.com>
10022
10023         parse-datetime: avoid compilation failure on OpenBSD 4.7
10024         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10025         This works around a compilation failure on OpenBSD 4.7:
10026         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10027
10028 2010-10-07  Eric Blake  <eblake@redhat.com>
10029
10030         docs: update cygwin progress
10031         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10032         1.7.6.
10033         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10034         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10035         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10036         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10037         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10038         Likewise.
10039         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10040         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10041         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10042         Likewise.
10043         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10044         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10045         Likewise.
10046         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10047         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10048         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10049         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10050         Likewise.
10051         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10052         Likewise.
10053         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10054
10055         docs: update parse-datetime history
10056         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10057         documentation of this function's history and alternatives.
10058
10059         cygwin: use more robust version check
10060         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10061         exclude an eventual cygwin 1.9.1.
10062         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10063         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10064         (gl_FUNC_STRCASESTR): Likewise.
10065         Reported by Bruno Haible.
10066
10067 2010-10-06  Bruno Haible  <bruno@clisp.org>
10068
10069         string, sys_select: Avoid #including large headers unless necessary.
10070         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10071         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10072         OSF/1, BeOS, Haiku.
10073         Reported by Jim Meyering.
10074
10075 2010-10-05  Eric Blake  <eblake@redhat.com>
10076
10077         memmem, strstr, strcasestr: fix bug with long periodic needle
10078         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10079         periodic needle having false positive.
10080         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10081         and cygwin 1.7.7.
10082         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10084         (gl_FUNC_STRCASESTR): Likewise.
10085         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10086         * tests/test-memmem.c (main): Expose the bug.
10087         * tests/test-strcasestr.c (main): Likewise.
10088         * tests/test-strstr.c (main): Likewise.
10089         * tests/test-c-strcasestr.c (main): Likewise.
10090         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10091         * doc/posix-functions/strstr.texi (strstr): Likewise.
10092         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10093         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10094
10095 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10096
10097         parse-datetime: do some more renaming
10098         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10099         parse_datetime, not get_date.  Mention the renaming.
10100         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10101         in comments.
10102         * m4/bison.m4: Likewise.
10103
10104 2010-10-05  Eric Blake  <eblake@redhat.com>
10105
10106         parse-datetime: better name than get_date
10107         * NEWS: Reword the deprecation notice.
10108         * modules/get_date: Rename to modules/parse-datetime.
10109         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10110         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10111         * lib/get_date.y: Rename to lib/parse-datetime.y.
10112         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10113         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10114         * doc/getdate.texi: Provide fallback wrapper.
10115         * lib/getdate.h: Move guts, and wrap...
10116         * lib/parse-datetime.h: ...new file.
10117         * lib/parse-datetime.y (get_date): Rename...
10118         (parse_datetime): ...to this.
10119         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10120         (gl_PARSE_DATETIME): ...to this.
10121         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10122         documentation.
10123         * modules/getdate (Files): Provide fallback docs and header.
10124         (Notice, Depends-on): Update references.
10125         * tests/test-parse-datetime.c: Likewise.
10126         * DEPENDENCIES: Likewise.
10127         * MODULES.html.sh (Date and time <time.h>): Likewise.
10128         * doc/parse-datetime.texi (Date input formats)
10129         (Authors of parse_datetime): Likewise.
10130         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10131         (Include): Likewise.
10132         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10133         * gnulib-tool: Likewise.
10134         * m4/bison.m4 (gl_BISON): Likewise.
10135         Suggested by Bruno Haible.
10136
10137 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10138
10139         more ports to Solaris tr, which needs [] around ranges
10140         * gnulib-tool: Solaris tr needs [] around ranges.
10141         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10142         * tests/test-pipe-filter-gi1.c (main): Likewise.
10143         * tests/test-pipe-filter-ii1.c (main): Likewise.
10144
10145 2010-10-05  Eric Blake  <eblake@redhat.com>
10146
10147         bootstrap: fix Solaris regression
10148         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10149         around ranges.
10150         Reported by Pádraig Brady.
10151
10152         bootstrap: work with pkg-config
10153         * build-aux/bootstrap (check_versions): Also transliterate - in
10154         prerequisite name.
10155         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10156         prerequisites that were already found, to avoid confusion.
10157         Reported by Justin Clift.
10158
10159         faccessat: remove unused wrappers
10160         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10161         presence of these wrappers dragged in -lgen on Solaris.
10162         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10163
10164 2010-10-05  Jim Meyering  <meyering@redhat.com>
10165
10166         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10167         * Makefile (sc_pragma_columns): New syntax-check rule.
10168
10169 2010-10-04  Bruno Haible  <bruno@clisp.org>
10170
10171         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10172         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10173         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10174         Reported by Bruce Korb and Eric Blake.
10175
10176 2010-10-04  Bruno Haible  <bruno@clisp.org>
10177
10178         threadlib: Make option --with-libpth-prefix work.
10179         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10180         use $LIBPTH, not just -lpth.
10181
10182 2010-10-04  Bruno Haible  <bruno@clisp.org>
10183
10184         Avoid line length limitation from HP NonStop system header files.
10185         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10186         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10187         * lib/ctype.in.h: Likewise.
10188         * lib/dirent.in.h: Likewise.
10189         * lib/errno.in.h: Likewise.
10190         * lib/fcntl.in.h: Likewise.
10191         * lib/float.in.h: Likewise.
10192         * lib/getopt.in.h: Likewise.
10193         * lib/iconv.in.h: Likewise.
10194         * lib/inttypes.in.h: Likewise.
10195         * lib/langinfo.in.h: Likewise.
10196         * lib/locale.in.h: Likewise.
10197         * lib/math.in.h: Likewise.
10198         * lib/netdb.in.h: Likewise.
10199         * lib/netinet_in.in.h: Likewise.
10200         * lib/poll.in.h: Likewise.
10201         * lib/pthread.in.h: Likewise.
10202         * lib/pty.in.h: Likewise.
10203         * lib/sched.in.h: Likewise.
10204         * lib/se-selinux.in.h: Likewise.
10205         * lib/search.in.h: Likewise.
10206         * lib/signal.in.h: Likewise.
10207         * lib/spawn.in.h: Likewise.
10208         * lib/stdarg.in.h: Likewise.
10209         * lib/stddef.in.h: Likewise.
10210         * lib/stdint.in.h: Likewise.
10211         * lib/stdio.in.h: Likewise.
10212         * lib/stdlib.in.h: Likewise.
10213         * lib/string.in.h: Likewise.
10214         * lib/strings.in.h: Likewise.
10215         * lib/sys_file.in.h: Likewise.
10216         * lib/sys_ioctl.in.h: Likewise.
10217         * lib/sys_select.in.h: Likewise.
10218         * lib/sys_socket.in.h: Likewise.
10219         * lib/sys_stat.in.h: Likewise.
10220         * lib/sys_time.in.h: Likewise.
10221         * lib/sys_times.in.h: Likewise.
10222         * lib/sys_utsname.in.h: Likewise.
10223         * lib/sys_wait.in.h: Likewise.
10224         * lib/sysexits.in.h: Likewise.
10225         * lib/termios.in.h: Likewise.
10226         * lib/time.in.h: Likewise.
10227         * lib/unistd.in.h: Likewise.
10228         * lib/wchar.in.h: Likewise.
10229         * lib/wctype.in.h: Likewise.
10230         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10231         * modules/ctype (Makefile.am): Likewise.
10232         * modules/dirent (Makefile.am): Likewise.
10233         * modules/errno (Makefile.am): Likewise.
10234         * modules/fcntl-h (Makefile.am): Likewise.
10235         * modules/float (Makefile.am): Likewise.
10236         * modules/getopt-posix (Makefile.am): Likewise.
10237         * modules/iconv-h (Makefile.am): Likewise.
10238         * modules/inttypes (Makefile.am): Likewise.
10239         * modules/langinfo (Makefile.am): Likewise.
10240         * modules/locale (Makefile.am): Likewise.
10241         * modules/math (Makefile.am): Likewise.
10242         * modules/netdb (Makefile.am): Likewise.
10243         * modules/netinet_in (Makefile.am): Likewise.
10244         * modules/poll-h (Makefile.am): Likewise.
10245         * modules/pthread (Makefile.am): Likewise.
10246         * modules/pty (Makefile.am): Likewise.
10247         * modules/sched (Makefile.am): Likewise.
10248         * modules/search (Makefile.am): Likewise.
10249         * modules/selinux-h (Makefile.am): Likewise.
10250         * modules/signal (Makefile.am): Likewise.
10251         * modules/spawn (Makefile.am): Likewise.
10252         * modules/stdarg (Makefile.am): Likewise.
10253         * modules/stddef (Makefile.am): Likewise.
10254         * modules/stdint (Makefile.am): Likewise.
10255         * modules/stdio (Makefile.am): Likewise.
10256         * modules/stdlib (Makefile.am): Likewise.
10257         * modules/string (Makefile.am): Likewise.
10258         * modules/strings (Makefile.am): Likewise.
10259         * modules/sys_file (Makefile.am): Likewise.
10260         * modules/sys_ioctl (Makefile.am): Likewise.
10261         * modules/sys_select (Makefile.am): Likewise.
10262         * modules/sys_socket (Makefile.am): Likewise.
10263         * modules/sys_stat (Makefile.am): Likewise.
10264         * modules/sys_time (Makefile.am): Likewise.
10265         * modules/sys_times (Makefile.am): Likewise.
10266         * modules/sys_utsname (Makefile.am): Likewise.
10267         * modules/sys_wait (Makefile.am): Likewise.
10268         * modules/sysexits (Makefile.am): Likewise.
10269         * modules/termios (Makefile.am): Likewise.
10270         * modules/time (Makefile.am): Likewise.
10271         * modules/unistd (Makefile.am): Likewise.
10272         * modules/wchar (Makefile.am): Likewise.
10273         * modules/wctype (Makefile.am): Likewise.
10274
10275 2010-10-04  Bruno Haible  <bruno@clisp.org>
10276
10277         read-file tests: Avoid a test failure on NonStop Kernel.
10278         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10279         a regular file.
10280         Reported by Joachim Schmitz <schmitz@hp.com>.
10281
10282 2010-10-03  Bruno Haible  <bruno@clisp.org>
10283
10284         gnulib-tool: Fixes for --create-testdir with --libtool.
10285         * gnulib-tool (func_get_automake_snippet): Don't augment
10286         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10287         an executable.
10288         (func_create_testdir): Handle module 'alloca' like func_import.
10289         Reported by Bruce Korb <bruce.korb@gmail.com>.
10290
10291 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10292
10293         Avoid some lines longer than 80 characters.
10294         * lib/stdint.in.h: Break long comment lines.
10295         * lib/math.in.h: Likewise.
10296         (_GL_NUM_UINT_WORDS): New macro, for readability.
10297         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10298         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10299         * lib/stdlib.in.h: Likewise.
10300         * lib/spawn.in.h: Likewise.
10301         * lib/sys_socket.in.h: Update an URL.
10302         * lib/sys_stat.in.h: Break long line.
10303
10304 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10305
10306         Improve pmccabe2html.
10307         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10308         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10309         when the sources change. Remove the line in the HTML about "Used
10310         ranges" (which implied that there might be other unused ranges),
10311         rename "Resume" to "Summary" (easier to understand for more users).
10312         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10313         styles, and some unnecessary blank lines.
10314
10315 2010-10-03  Bruno Haible  <bruno@clisp.org>
10316             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10317
10318         acl: Add support for ACLs on NonStop Kernel.
10319         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10320         Check whether the function aclsort() exists.
10321         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10322         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10323         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10324         (acl_nontrivial [HAVE_ACLSORT]: New function.
10325         (file_has_acl): Implement for NonStop Kernel.
10326         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10327         (qset_acl): Implement for NonStop Kernel.
10328         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10329         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10330         (main): Implement for NonStop Kernel.
10331         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10332         Kernel. Handle this flavor.
10333         * tests/test-set-mode-acl.sh: Likewise.
10334         * tests/test-copy-acl.sh: Likewise.
10335         * tests/test-copy-file.sh: Likewise.
10336
10337 2010-10-03  Bruno Haible  <bruno@clisp.org>
10338
10339         Info about ACLs on NonStop Kernel.
10340         * doc/acl-resources.txt: Add info about NonStop Kernel.
10341         References by Joachim Schmitz <schmitz@hp.com>.
10342
10343 2010-10-02  Bruno Haible  <bruno@clisp.org>
10344
10345         Define missing EDQUOT on NonStop Kernel.
10346         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10347         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10348         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10349         missing.
10350         * doc/posix-headers/errno.texi: Mention the NSK bug.
10351         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10352         Reported by Joachim Schmitz <schmitz@hp.com>.
10353
10354 2010-10-02  Bruno Haible  <bruno@clisp.org>
10355
10356         Update doc for POSIX:2008.
10357         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10358         Update URL of POSIX specification.
10359
10360 2010-10-02  Bruno Haible  <bruno@clisp.org>
10361
10362         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10363         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10364         from gnulib, not from Automake.
10365
10366 2010-10-02  Bruno Haible  <bruno@clisp.org>
10367
10368         New module 'system-posix'.
10369         * modules/system-posix: New file.
10370         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10371         module is present.
10372         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10373         GNULIB_SYSTEM_POSIX.
10374         * modules/stdlib (Depends-on): Remove sys_wait.
10375         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10376         * doc/posix-functions/system.texi: Mention the new module.
10377         * doc/posix-headers/stdlib.texi: Likewise.
10378         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10379         define test_sys_wait_macros to a no-op.
10380         Reported by Sam Steingold <sds@gnu.org>.
10381
10382 2010-09-30  Bruno Haible  <bruno@clisp.org>
10383
10384         More renaming from 'getdate' to 'get_date'.
10385         * doc/get_date.texi: Renamed from doc/getdate.texi.
10386         * modules/get_date (Files): Update.
10387         * MODULES.html.sh (Date and time <time.h>): Update.
10388         * DEPENDENCIES: Update.
10389         * gnulib-tool: Update comment.
10390         * m4/bison.m4 (gl_BISON): Likewise.
10391         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10392
10393 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10394
10395         bootstrap: support ACLOCAL_FLAGS during aclocal
10396         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10397         can add additional -I dir for third-party .m4 files.
10398
10399 2010-09-30  Eric Blake  <eblake@redhat.com>
10400
10401         bootstrap: use glibtoolize on MacOS
10402         * build-aux/bootstrap (check_versions): Convert libtool into
10403         libtoolize.
10404         (tool search): Move libtool check earlier, and look for
10405         glibtoolize for MacOS.
10406         (gnulib_tool_options): Auto-add --libtool when appropriate.
10407         Reported by Justin Clift.
10408
10409         poll: fix typo that broke test on MacOS
10410         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10411         Reported by Justin Clift.
10412
10413         getdate: rename to get_date
10414         Note: getdate.h is not renamed, to minimize client impact.
10415         * modules/getdate: Mark obsolete.  Move old contents...
10416         * modules/get_date: ...to new module name.
10417         * modules/getdate-tests: Move...
10418         * modules/get_date-tests: ...here.
10419         * m4/getdate.m4: Move...
10420         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10421         * lib/getdate.y: Move...
10422         * lib/get_date.y: ...here.
10423         * tests/test-getdate.c: Move...
10424         * tests/test-get_date.c: ...here.
10425         * doc/posix-functions/getdate.texi (getdate): Update name.
10426         * NEWS: Mention the change.
10427
10428 2010-09-29  Bruno Haible  <bruno@clisp.org>
10429
10430         Separate the module 'waitpid' from the module 'sys_wait'.
10431         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10432         present.
10433         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10434         gl_MODULE_INDICATOR_FOR_TESTS.
10435         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10436         * modules/sys_wait (Depends-on): Remove waitpid.
10437         (Makefile.am): Substitute GNULIB_WAITPID.
10438         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10439         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10440         signature only if the 'waitpid' module is present.
10441         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10442         * NEWS: Mention the change.
10443         * modules/grantpt (Depends-on): Add waitpid.
10444         * modules/wait-process (Depends-on): Likewise.
10445
10446 2010-09-29  Bruno Haible  <bruno@clisp.org>
10447
10448         More tests for module 'sys_wait'.
10449         * modules/sys_wait-c++-tests: New file.
10450         * tests/test-sys_wait-c++.cc: New file.
10451         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10452         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10453
10454 2010-09-29  Bruno Haible  <bruno@clisp.org>
10455
10456         New module 'waitpid'.
10457         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10458         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10459         Don't include <process.h>.
10460         (waitpid): Declare only, using modern idiom.
10461         * m4/waitpid.m4: New file.
10462         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
10463         * modules/waitpid: New file.
10464         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
10465         (Makefile.am): Update.
10466         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10467
10468 2010-09-28  Bruno Haible  <bruno@clisp.org>
10469
10470         poll: Assume ANSI C.
10471         * lib/poll.c (poll): Use an ANSI C declaration.
10472
10473 2010-09-28  Bruno Haible  <bruno@clisp.org>
10474
10475         poll-h: Create poll.h on all platforms.
10476         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
10477         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
10478         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
10479         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
10480         (gl_REPLACE_POLL_H): Don't set POLL_H.
10481         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
10482         * modules/poll-h (Depends-on): Add include_next.
10483         (Makefile.am): Create poll.h unconditionally. Substitute also
10484         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
10485
10486 2010-09-28  Bruno Haible  <bruno@clisp.org>
10487
10488         Tests for module 'poll-h'.
10489         * modules/poll-h-c++-tests: New file.
10490         * tests/test-poll-h-c++.cc: New file.
10491
10492         Tests for module 'poll-h'.
10493         * modules/poll-h-tests: New file.
10494         * tests/test-poll-h.c: New file.
10495
10496 2010-09-28  Bruno Haible  <bruno@clisp.org>
10497
10498         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10499         * modules/poll-h (Depends-on): Add 'extensions'.
10500
10501 2010-09-28  Bruno Haible  <bruno@clisp.org>
10502
10503         New module 'poll-h'.
10504         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
10505         (poll): Use modern idiom.
10506         * modules/poll-h: New file.
10507         * modules/poll (Files): Remove lib/poll.in.h.
10508         (Depends-on): Add poll-h.
10509         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
10510         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
10511         * m4/poll_h.m4: New file.
10512         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
10513         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
10514         and invoke gl_REPLACE_POLL_H.
10515         * lib/poll.c: Use common idiom.
10516         * tests/test-poll.c: Likewise.
10517         * doc/posix-headers/poll.texi: Mention the poll-h module.
10518         Suggested by Eric Blake.
10519
10520 2010-09-26  Bruno Haible  <bruno@clisp.org>
10521
10522         sys_wait: Implement WSTOPSIG.
10523         * lib/sys_wait.in.h (WSTOPSIG): New macro.
10524         Reported by Simon Josefsson.
10525
10526 2010-09-26  Simon Josefsson  <simon@josefsson.org>
10527
10528         stdlib, sys_wait: Avoid compilation error on mingw.
10529         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
10530
10531 2010-09-26  Bruno Haible  <bruno@clisp.org>
10532
10533         stdlib tests: Avoid code duplication.
10534         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
10535         * modules/sys_wait-tests (Files): Likewise.
10536         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
10537         * tests/test-stdlib.c: Include test-sys_wait.h.
10538         (main): Invoke test_sys_wait_macros.
10539         * tests/test-sys_wait.c: Include test-sys_wait.h.
10540         (main): Invoke test_sys_wait_macros.
10541
10542 2010-09-25  Simon Josefsson  <simon@josefsson.org>
10543
10544         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
10545         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
10546         sure Windows sockets are working before calling getaddrinfo.
10547         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
10548         * doc/gnulib.texi (Windows sockets): Fix typo.
10549
10550 2010-09-25  Bruno Haible  <bruno@clisp.org>
10551
10552         Tests for module 'regex-quote'.
10553         * modules/regex-quote-tests: New file.
10554         * tests/test-regex-quote.c: New file.
10555
10556         New module 'regex-quote'.
10557         * lib/regex-quote.h: New file.
10558         * lib/regex-quote.c: New file.
10559         * modules/regex-quote: New file.
10560         Suggested by Reuben Thomas <rrt@sc3d.org>.
10561
10562 2010-09-24  Bruno Haible  <bruno@clisp.org>
10563
10564         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
10565         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
10566
10567 2010-09-23  Bruno Haible  <bruno@clisp.org>
10568
10569         setenv: Relax license.
10570         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10571         Blake.
10572         Requested by Eric Blake.
10573
10574 2010-09-22  Bruno Haible  <bruno@clisp.org>
10575
10576         termios: Relax license.
10577         * modules/termios (License): Change to LGPLv2+.
10578         Requested by Eric Blake.
10579
10580 2010-09-22  Bruno Haible  <bruno@clisp.org>
10581
10582         threadlib: Allow the package to change the default to 'no'.
10583         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
10584         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
10585         Reported by Paul Eggert.
10586
10587 2010-09-22  Pádraig Brady  <P@draigbrady.com>
10588             Bruno Haible  <bruno@clisp.org>
10589
10590         Fix endless loop in mbmemcasecoll.
10591         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
10592         byte.
10593         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
10594
10595 2010-09-22  Bruno Haible  <bruno@clisp.org>
10596
10597         Tests for module 'memcoll'.
10598         * modules/memcoll-tests: New file.
10599         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
10600
10601         memcoll, xmemcoll: Clarify size vs. length.
10602         * modules/memcoll.c (memcoll0): Clarify specification.
10603         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
10604         passed to collate_error.
10605
10606 2010-09-22  Bruno Haible  <bruno@clisp.org>
10607
10608         Tests for module 'memcasecmp'.
10609         * modules/memcasecmp-tests: New file.
10610         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
10611
10612 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10613
10614         * lib/pthread.in.h: Add split double-inclusion guard, and include
10615         system <pthread.h> if there is one.  Use @@-style as in other
10616         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
10617         pthread.h doesn't.
10618         (pthread_mutexattr_destroy, pthread_mutexattr_init):
10619         (pthread_mutexattr_settype, pthread_mutex_trylock):
10620         New static inline functions, if there's no system <pthread.h>.
10621         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
10622         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
10623         Approximate with mutexes if the system lacks spinlocks, as in
10624         MacOS.
10625         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
10626         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
10627         @@-style.  Check for spinlocks separately.
10628         (gl_PTHREAD_DEFAULTS): New macro.
10629         * modules/pthread: Redo to use a more typical style for in.h files.
10630
10631 2010-09-21  Eric Blake  <eblake@redhat.com>
10632
10633         net_if: enhance tests
10634         * tests/test-net_if.c (main): Move signature checks earlier.
10635         Print failures to stderr.
10636         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10637         Document the bug that we do not yet fix.
10638
10639 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10640
10641         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10642         about gnulib, not GSS.
10643
10644 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10645
10646         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10647         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10648         for Emacs.
10649         * build-aux/pmccabe2html: Make Makefile.am example code more
10650         cut-and-paste friendly.
10651
10652 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10653
10654         * tests/test-net_if.c: New file.
10655         * modules/net_if-tests: New file.
10656
10657 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10658
10659         pthread: add pthread_spin_destroy
10660         * lib/pthread.in.h (pthread_spin_destroy): New function.
10661
10662 2010-09-19  Bruno Haible  <bruno@clisp.org>
10663
10664         gnulib-tool: Fix --help output.
10665         * gnulib-tool (func_usage): Fix help message.
10666         Reported by Reuben Thomas <rrt@sc3d.org>.
10667
10668 2010-09-18  Jim Meyering  <meyering@redhat.com>
10669
10670         maint.mk: avoid unexpanded \n in two diagnostics
10671         * top/maint.mk (sc_prohibit_always_true_header_tests):
10672         Don't use a literal \n in a halt=... assignment.  It would not be
10673         expanded, and the two \n bytes would appear in the diagnostic output
10674         rather than the desired newline.  Use halt=$$(printf ... instead.
10675         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10676
10677 2010-09-18  Bruno Haible  <bruno@clisp.org>
10678
10679         netinet_in: Doc tweak.
10680         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10681         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10682
10683 2010-09-18  Jim Meyering  <meyering@redhat.com>
10684
10685         init.sh: correct an outdated comment
10686         * tests/init.sh (create_exe_shims_):  s/function/alias/
10687
10688         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10689         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10690         a file named "*.exe" is removed between the glob expansion and the
10691         processing of that oddly named file.
10692
10693 2010-09-17  Eric Blake  <eblake@redhat.com>
10694
10695         mirbsd: add some more support
10696         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10697         in BSD family.
10698         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10699         devices as OpenBSD.
10700         * m4/host-os.m4 (mirbsd): Add MirBSD.
10701
10702         tests: fix unportable assumption on sys/wait.h
10703         * tests/test-sys_wait.c (main): Relax test.
10704         * tests/test-stdlib.c (main): Likewise.
10705
10706         init.sh: accomodate directory with no .exes
10707         * tests/init.sh: Accomodate directory containing only scripts.
10708
10709         tests: avoid compiler warning
10710         * tests/test-stdlib.c (main): Use the variable.
10711
10712         fdutimens, fdutimensat: update signature, again
10713         * lib/utimens.h (gl_futimens): Delete, and move signature...
10714         (fdutimens): ...here.
10715         (fdutimensat): Rearrange signature.
10716         (lutimensat): Rename variable for clarity.
10717         * lib/fdutimensat.c (fdutimensat): Update signature.
10718         * lib/utimens.c (fdutimens): Likewise.
10719         (gl_futimens): Delete.
10720         (utimens, lutimens): Update callers.
10721         * lib/futimens.c (futimens): Likewise.
10722         * tests/test-fdutimensat.c: Likewise.
10723         * tests/test-utimens.c: Likewise.
10724         * tests/test-futimens.h: Update comment.
10725         * NEWS: Mention this.
10726         Suggested by Paul Eggert.
10727
10728 2010-09-17  Bruno Haible  <bruno@clisp.org>
10729
10730         Take over the maintenance of some older macros from Autoconf.
10731         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10732         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10733         GNU Autoconf.
10734         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10735         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
10736
10737 2010-09-17  Eric Blake  <eblake@redhat.com>
10738
10739         fdutimensat: drop atflag validation
10740         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
10741         with valid fd, to close a race scenario where futimens is
10742         unsupported and FILE was replaced by a symlink.
10743         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
10744         accordingly.
10745         Suggested by Paul Eggert.
10746
10747 2010-09-16  Bruno Haible  <bruno@clisp.org>
10748
10749         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
10750         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
10751
10752 2010-09-16  Bruno Haible  <bruno@clisp.org>
10753
10754         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
10755         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
10756         login_tty exists.
10757         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10758
10759 2010-09-16  Bruno Haible  <bruno@clisp.org>
10760
10761         login_tty: Make the replacement code work on BSD systems.
10762         * lib/login_tty.c: Include <sys/ioctl.h>.
10763         (login_tty): Use ioctl TIOCSCTTY when available.
10764         * modules/login_tty (Depends-on): Add sys_ioctl.
10765         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10766
10767 2010-09-16  Bruno Haible  <bruno@clisp.org>
10768
10769         login_tty: Stricter unit test.
10770         * modules/login_tty-tests (Depends-on): Add tcgetsid.
10771         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
10772         and tcgetsid() after login_tty.
10773         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10774
10775 2010-09-16  Bruno Haible  <bruno@clisp.org>
10776
10777         New module 'tcgetsid'.
10778         * lib/tcgetsid.c: New file.
10779         * m4/tcgetsid.m4: New file.
10780         * modules/tcgetsid: New file.
10781         * modules/termios (Depends-on): Add c++defs, warn-on-use.
10782         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
10783         GNULIB_TCGETSID, HAVE_TCGETSID.
10784         * lib/termios.in.h: Include <sys/types.h>.
10785         (tcgetsid): New declaration.
10786         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
10787         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
10788         * doc/posix-functions/tcgetsid.texi: Mention the new module.
10789         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
10790
10791 2010-09-16  Bruno Haible  <bruno@clisp.org>
10792
10793         Tests for module 'termios'.
10794         * modules/termios-c++-tests: New file.
10795         * modules/termios-tests: New file.
10796         * tests/test-termios-c++.cc: New file.
10797         * tests/test-termios.c: New file.
10798
10799         New module 'termios'.
10800         * modules/termios: New file.
10801         * lib/termios.in.h: New file.
10802         * m4/termios_h.m4: New file.
10803         * doc/posix-headers/termios.texi: Mention the new module.
10804
10805 2010-09-16  Eric Blake  <eblake@redhat.com>
10806
10807         fdutimensat: add an atflag parameter
10808         * lib/fdutimensat.c (fdutimensat): Add new parameter.
10809         * lib/utimens.h (fdutimensat): Update prototype.
10810         * tests/test-fdutimensat.c: Adjust test to match.
10811         * NEWS: Document the change.
10812         Suggested by Paul Eggert.
10813
10814 2010-09-16  Bruno Haible  <bruno@clisp.org>
10815
10816         Fix typos in comments.
10817         * lib/striconveh.h: Fix typo in comment.
10818         * lib/login_tty.c (login_tty): Likewise.
10819
10820 2010-09-15  Bruno Haible  <bruno@clisp.org>
10821
10822         stdlib: clarify MirBSD WEXITSTATUS bug
10823         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
10824         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10825
10826 2010-09-15  Eric Blake  <eblake@redhat.com>
10827
10828         stdlib: work around MirBSD WEXITSTATUS bug
10829         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
10830         * modules/stdlib (Depends-on): Add sys_wait.
10831         * tests/test-sys_wait.c (main): Enhance test.
10832         * tests/test-stdlib.c (main): Likewise.
10833         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
10834
10835         docs: mention MacOS issue with WEXITSTATUS(constant)
10836         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
10837         issue.
10838         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10839
10840         strnlen: add tests
10841         * modules/strnlen-tests: New file.
10842         * tests/test-strnlen.c: Likewise.
10843
10844 2010-09-14  Bruno Haible  <bruno@clisp.org>
10845
10846         unistr/base: Avoid link errors when module 'libunistring' is also used.
10847         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
10848         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
10849         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
10850         Declare also when HAVE_LIBUNISTRING is set.
10851         Reported by Pádraig Brady <P@draigbrady.com>.
10852
10853 2010-09-14  Eric Blake  <eblake@redhat.com>
10854
10855         test-rawmemchr: make more robust
10856         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
10857         (Depends-on, configure.ac): Add needed prerequisites to use it.
10858         * modules/memchr-tests (Files, Depends-on, configure.ac):
10859         Likewise, to avoid implicit reliance on memchr module prereqs.
10860         * tests/test-memchr.c (main): Ensure proper masking.
10861         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
10862         reads.
10863
10864         memchr: detect glibc Alpha bug
10865         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
10866         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
10867         Alpha.
10868         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
10869         * tests/test-memchr.c (main): Enhance test.
10870         Reported by Nelson H. F. Beebe.
10871
10872 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10873
10874         fts, getcwd, glob: audit for dirfd returning -1
10875         * lib/fts.c (opendir): Remove #define; no longer used.
10876         (opendirat): New arg PDIR_FD.  All callers changed.
10877         (fts_build, _opendir2): Use new opendirat to avoid the need for
10878         dirfd, or for checking whether dirfd returns a negative value.
10879         Don't use opendir; always use openat followed by fdopendir.
10880         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
10881         it.
10882         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
10883         returns -1 here.
10884         * modules/fts (Depends-on): Remove dirfd.
10885         * modules/getcwd (Depends-on): Likewise.
10886
10887 2010-09-13  Eric Blake  <eblake@redhat.com>
10888
10889         float: fix broken MirBSD header
10890         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
10891         * doc/posix-headers/float.texi (float.h): Document it.
10892
10893 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10894
10895         fts: use O_NOFOLLOW to avoid race condition when opening a directory
10896         * lib/fts.c (opendirat): New arg extra_flags.
10897         (__opendir2): Use it to avoid following symlinks when opening
10898         a directory, if symlinks are not supposed to be followed.  See
10899         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
10900
10901         fdopendir: preserve argument fd before returning
10902         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
10903         (fdopendir_with_dup, fd_clone_opendir): New static functions.
10904         (fdopendir): Use them, arranging for FD to be open to the same
10905         directory that it was when it started.  (It might be temporarily
10906         closed while fdopendir is running, so this not thread- or
10907         signal-safe.)  Be careful to do the right thing even when file
10908         descriptors are scarce and dup fails with errno == EMFILE.  See
10909         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
10910
10911 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
10912
10913         regex: Pass the system regex if its only problem is 32-bit regoff_t.
10914         * NEWS: Document change.
10915         * m4/regex.m4: Disable test for regoff_t size.
10916
10917 2010-09-13  Jim Meyering  <meyering@redhat.com>
10918
10919         fts: don't operate on an invalid file descriptor after failed dup
10920         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
10921         negative file descriptor.
10922
10923 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10924
10925         savedir: add streamsavedir, deprecate fdsavedir
10926         * NEWS: Mention deprecation of fdsavedir.
10927         * lib/savedir.c (streamsavedir): New extern function, whose name
10928         ends in "savedir" to be consistent with the others.  This differs
10929         from savedirstream in that it doesn't close its argument.  The
10930         next version of GNU tar will use this instead of fdsavedir, to
10931         avoid some race conditions and conserve file descriptors.
10932         (savedirstream): Reimplement as a wrapper around streamsavedir.
10933         (fdsavedir): Add a comment deprecating this function.  As far as
10934         I know, only GNU tar used it, and GNU tar doesn't need it any more.
10935         * lib/savedir.h (streamsavedir): New decl.
10936         (fdsavedir): Add a comment deprecating this.
10937
10938 2010-09-10  Bruno Haible  <bruno@clisp.org>
10939
10940         langinfo: Fix last commit.
10941         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
10942         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
10943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10944
10945 2010-09-10  Bruno Haible  <bruno@clisp.org>
10946
10947         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
10948         * lib/progreloc.c (O_EXEC): Define fallback.
10949
10950 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
10951
10952         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
10953         * NEWS: Document recent changes to fcntl-h.
10954         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
10955         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
10956         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
10957         Similarly for O_SEARCH; this last was already true, but not documented.
10958         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
10959         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
10960         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
10961         Likewise.
10962         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
10963         is zero, not whether it is defined.
10964         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
10965         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
10966         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
10967
10968 2010-09-10  Bruno Haible  <bruno@clisp.org>
10969
10970         langinfo, nl_langinfo: Fix for IRIX 5.3.
10971         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
10972         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
10973         HAVE_LANGINFO_YESEXPR.
10974         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
10975         HAVE_LANGINFO_YESEXPR.
10976         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
10977         HAVE_LANGINFO_T_FMT_AMPM is 0.
10978         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
10979         HAVE_LANGINFO_YESEXPR is 0.
10980         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
10981         NOEXPR.
10982         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10983         * doc/posix-functions/nl_langinfo.texi: Likewise.
10984         Reported by Eric Blake.
10985
10986 2010-09-10  Bruno Haible  <bruno@clisp.org>
10987
10988         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10989         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10990         on FreeBSD 8.0 and OpenBSD 4.6.
10991         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10992         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10993         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10994         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10995         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10996         ac_includes_default.
10997         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10998
10999 2010-09-09  Eric Blake  <eblake@redhat.com>
11000
11001         strsignal: work around NetBSD bug
11002         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11003         * lib/string.in.h (includes): Likewise.
11004         * doc/posix-functions/strsignal.texi (strsignal): Document the
11005         bug.
11006         Reported by Nelson H. F. Beebe.
11007
11008         gnulib-tool: work with NetBSD /bin/sh
11009         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11010         (func_get_description, func_get_comment, func_get_status)
11011         (func_get_notice, func_get_applicability, func_get_filelist)
11012         (func_get_dependencies, func_get_autoconf_early_snippet)
11013         (func_get_autoconf_snippet, func_get_automake_snippet)
11014         (func_get_include_directive, func_get_link_directive)
11015         (func_get_license, func_get_maintainer, func_import): Avoid
11016         shell syntax errors from parsing syntax extensions.
11017
11018 2010-09-09  Bruno Haible  <bruno@clisp.org>
11019
11020         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11021         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11022         a reliable way to determine whether the 'alias' command works.
11023
11024 2010-09-08  Jim Meyering  <meyering@redhat.com>
11025
11026         init.sh: penalize a set-x-impaired shell; don't disqualify it
11027         * tests/init.sh: Too many shells corrupt application stderr when
11028         you set -x, so we can't afford to disqualify them, since at least
11029         on Irix-6.5, that would disqualify all bourne shells.
11030         Instead, use a two-pass approach.
11031         On the first pass, try to find a shell that meets the stricter
11032         condition that set -x does not corrupt stderr.
11033         If no shell meets the stricter condition, retest each candidate
11034         shell, but without that extra condition.  Finally, when
11035         VERBOSE=yes is requested and set -x might cause trouble, simply
11036         issue a warning and refrain from enabling debug output.
11037
11038 2010-09-08  Eric Blake  <eblake@redhat.com>
11039
11040         unsetenv: fix OpenBSD bug
11041         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11042         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11043         documentation.
11044         Reported by Jim Meyering.
11045
11046         strtod: work around IRIX 6.5 bug
11047         * lib/strtod.c (strtod): Reparse number on shorter string if
11048         exponent parse was invalid.
11049         * tests/test-strtod.c (main): Add check for "0x1p 2".
11050         Reported by Tom G. Christensen.
11051
11052         getopt: optimize previous patch
11053         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11054         empty variable.  Speed up awk script.
11055         Reported by Paolo Bonzini.
11056
11057 2010-09-08  Jim Meyering  <meyering@redhat.com>
11058
11059         test.sh: disqualify shells for which set -x corrupts stderr
11060         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11061         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11062         appear in stderr output.  For example, this command:
11063             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11064         prints "P=1" on those two systems:
11065
11066 2010-09-08  Bruno Haible  <bruno@clisp.org>
11067
11068         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11069         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11070         commands, because some shells ignore redirections when there is an
11071         error in the command lookup.
11072         Reported by Eric Blake.
11073
11074 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11075
11076         * lib/regex.h: Fix a mention of `regex_compile' (should be
11077         `re_compile_pattern').
11078         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11079         (re_set_registers): Correct name of parameter in comment.
11080
11081         * doc/regex.texi: Add documentation for missing syntax flags.
11082         Remove commented-out documentation of defunct syntax option
11083         RE_NO_EMPTY_ALTS.
11084         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11085         Add documentation of re_set_registers.
11086         Document trick to re-use a pattern buffer by setting fastmap manually.
11087         Update documentation of struct re_pattern_buffer per public members.
11088         Uncomment documentation of equivalence class operators and
11089         collating symbol operators, since they are now implemented,
11090         Explain leftmost-longest matching in relation to alternatives.
11091         Tidy documentation of substring matching.
11092         Remove POSIX documentation, which is done better in
11093         glibc, and refer the reader there. Keep BSD API documentation, as
11094         that is not readily available elsewhere.
11095
11096 2010-09-07  Eric Blake  <eblake@redhat.com>
11097
11098         getopt: handle POSIXLY_CORRECT set but not exported
11099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11100         export state of POSIXLY_CORRECT, due to bash set -o posix.
11101         Reported by Dustin J. Mitchell.
11102
11103 2010-09-05  Bruno Haible  <bruno@clisp.org>
11104
11105         gnulib-tool: Highlight the changed options.
11106         * gnulib-tool (func_usage): Display the --import, --add-import,
11107         --remove-import explanations in bold font.
11108
11109 2010-09-06  Karl Berry  <karl@gnu.org>
11110
11111         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11112
11113 2010-09-05  Bruno Haible  <bruno@clisp.org>
11114
11115         uniwidth/width: Update comment.
11116         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11117         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11118
11119 2010-09-05  Bruno Haible  <bruno@clisp.org>
11120
11121         isinf, isnan: Relax license.
11122         * modules/isinf (License): Change from GPL to LGPL, with consent from
11123         Ben Pfaff.
11124         * modules/isnan (License): Likewise.
11125         Requested by Ludovic Courtès.
11126
11127 2010-09-04  Bruno Haible  <bruno@clisp.org>
11128
11129         gnulib-tool: Help migration from --import to --add-import or --update.
11130         * gnulib-tool: Emit a verbose error message when --import is used
11131         without any module name.
11132
11133 2010-09-04  Bruno Haible  <bruno@clisp.org>
11134
11135         Update doc about gnulib-tool.
11136         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11137         'gnulib-tool --update' in more detail.
11138         Reported by Eric Blake.
11139
11140 2010-09-04  Bruno Haible  <bruno@clisp.org>
11141
11142         gnulib-tool: Change --import. New options --add/remove-import.
11143         * gnulib-tool: New options --add-import, --remove-import.
11144         (func_usage): Document them.
11145         (have_associative): Define always.
11146         (func_import): In import mode, don't merge the specified settings with
11147         the cached settings. Implement remove-import mode.
11148         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11149         Explain when to use them versus --import.
11150         (Simple update): Use --add-import instead of --import.
11151         * NEWS: Mention the change.
11152
11153 2010-09-04  Bruno Haible  <bruno@clisp.org>
11154
11155         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11156         separate gnulib.mk.
11157
11158 2010-09-04  Bruno Haible  <bruno@clisp.org>
11159
11160         gnulib-tool: Don't talk about CVS any more.
11161         * gnulib-tool (func_usage, func_import): Write "version control"
11162         instead of CVS.
11163
11164 2010-09-04  Jim Meyering  <meyering@redhat.com>
11165
11166         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11167         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11168         false positives (whose names may be ill-chosen) when searching
11169         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11170         would cause a false-positive.
11171
11172         avoid coreutils "make distcheck" failure
11173         Coreutils tests with an absolute build directory name that contains
11174         a space.  Not quoting this directory name caused a failure.
11175         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11176         * tests/test-vc-list-files-cvs.sh: Likewise.
11177
11178 2010-09-04  Bruno Haible  <bruno@clisp.org>
11179
11180         gnulib-tool: Avoid error when run in a package without Makefile.am.
11181         * gnulib-tool: When collecting the m4dirs in a package that does not
11182         have a Makefile.am, eliminate those directories that contain no
11183         gnulib-cache.m4. Fix expression that counts these directories.
11184
11185 2010-09-04  Bruno Haible  <bruno@clisp.org>
11186
11187         update-copyright test: Improve output when perl is missing or too old.
11188         * tests/test-update-copyright.sh: Move test of Perl version down after
11189         the test whether Perl exists. Provide an explanation relating Perl's
11190         error message to Automake's SKIP: message.
11191
11192 2010-09-04  Bruno Haible  <bruno@clisp.org>
11193
11194         Don't augment PATH in TESTS_ENVIRONMENT.
11195         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11196         set abs_aux_dir instead of augmenting PATH.
11197         * modules/vc-list-files-tests (Makefile.am): Likewise.
11198         * tests/test-update-copyright.sh: Augment PATH here.
11199         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11200         path_prepend_.
11201         * tests/test-vc-list-files-git.sh: Likewise.
11202
11203 2010-09-04  Jim Meyering  <meyering@redhat.com>
11204
11205         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11206         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11207
11208 2010-09-04  Bruno Haible  <bruno@clisp.org>
11209
11210         strdup: Fix compilation error in C++ mode.
11211         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11212         the macro.
11213
11214 2010-09-04  Bruno Haible  <bruno@clisp.org>
11215
11216         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11217         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11218         macro into a function.
11219         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11220
11221 2010-09-04  Bruno Haible  <bruno@clisp.org>
11222
11223         Set PATH_SEPARATOR the same way autoconf does.
11224         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11225         the value of PATH_SEPARATOR the same way autoconf-generated configure
11226         scripts do.
11227         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11228         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11229
11230 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11231
11232         Set PATH_SEPARATOR the same way autoconf does.
11233         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11234         the same way autoconf-generated configure scripts do.
11235         * posix-modules: Likewise.
11236
11237 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11238
11239         hash: fix safe_hasher const typo
11240         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11241         const; otherwise, there is a type error later.
11242
11243 2010-09-02  Jim Meyering  <meyering@redhat.com>
11244
11245         test-update-copyright.sh: require perl 5.8.0
11246         * tests/test-update-copyright.sh: Require 5.8.0,
11247         which Tom G. Christensen has confirmed is adequate,
11248         while 5.6.1 is not.
11249
11250 2010-09-02  Eric Blake  <eblake@redhat.com>
11251
11252         tests: init.sh improvements for re-exec'ing with zsh
11253         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11254         -vx through shell re-exec.
11255         Reported by Tom G. Christensen.
11256
11257         wctype: fix typo in previous commit
11258         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11259         Reported by Ludovic Courtès.
11260
11261 2010-09-02  Jim Meyering  <meyering@redhat.com>
11262
11263         test-update-copyright.sh: skip test if Perl is too old
11264         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11265         Reported by Tom G. Christensen.
11266
11267 2010-09-02  Bruno Haible  <bruno@clisp.org>
11268
11269         wctype: Avoid compilation error on IRIX 6.5.30.
11270         * lib/wctype.in.h (iswblank): Declare with a replacement if
11271         REPLACE_ISWBLANK is set.
11272         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11273         declared. Set REPLACE_ISWBLANK.
11274         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11275         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11276         * doc/posix-headers/wctype.texi: Likewise.
11277         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11278
11279 2010-09-01  Bruno Haible  <bruno@clisp.org>
11280
11281         New module 'socketlib'.
11282         * modules/socketlib: New file.
11283         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11284         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11285         * modules/sockets (Depends-on): Add socketlib.
11286         Suggested by Sam Steingold <sds@gnu.org>.
11287
11288 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11289
11290         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11291
11292         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11293         when one needs search access to a directory but not read access.
11294         On systems where it is available, it works in some cases where
11295         O_RDONLY does not, namely on directories that are searchable but
11296         not readable, and which need only to be searchable.  If O_SEARCH
11297         is not available, fall back to the traditional method of using
11298         O_RDONLY.
11299
11300         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11301         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11302         when opening a directory that needs only to be searchable.
11303         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11304         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11305         * lib/openat-proc.c (openat_proc_name): Likewise.
11306         * lib/openat.c (openat_needs_fchdir): Likewise.
11307         * lib/save-cwd.c (save_cwd): Likewise.
11308         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11309
11310 2010-08-28  Bruno Haible  <bruno@clisp.org>
11311
11312         New module 'host-cpu-c-abi'.
11313         * modules/host-cpu-c-abi: New file.
11314         * m4/host-cpu-c-abi.m4: New file, based on part of
11315         clisp/src/m4/general.m4.
11316         Requested by Sam Steingold <sds@gnu.org>.
11317
11318 2010-08-31  Eric Blake  <eblake@redhat.com>
11319         and Jim Meyering  <meyering@redhat.com>
11320
11321         hash: factor, and guard against misbehaving hasher function
11322         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11323         of table->hasher's return value.  Also protect against a hash value
11324         so large that adding it to table->bucket results in a NULL pointer.
11325         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11326         Use it in place of open-coded check-and-abort.
11327
11328 2010-08-30  Bruno Haible  <bruno@clisp.org>
11329
11330         hash: silence spurious clang warning
11331         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11332         Reported by Eric Blake.
11333
11334 2010-08-30  Eric Blake  <eblake@redhat.com>
11335
11336         strstr, memmem, strcasestr: avoid leaked shell message
11337         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11338         FreeBSD.
11339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11340         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11341
11342         tests: silence clang warning
11343         * tests/test-malloca.c (do_allocation): Avoid dead store.
11344
11345 2010-08-29  Bruno Haible  <bruno@clisp.org>
11346
11347         gettext: Fix recent mistake.
11348         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11349
11350 2010-08-29  Bruno Haible  <bruno@clisp.org>
11351
11352         selinux-h: Offer a --without-selinux option.
11353         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11354         --without-selinux was specified, skip all tests and define
11355         HAVE_SELINUX_SELINUX_H to 0.
11356         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11357         set LIB_SELINUX to empty.
11358         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11359         gl_LIBSELINUX. If --without-selinux was specified, replace
11360         selinux/context.h.
11361         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11362
11363 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11364             Bruno Haible  <bruno@clisp.org>
11365
11366         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11367         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11368         of HAVE_REALLOC.
11369         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11370         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11371         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11372         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11373
11374 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11375             Bruno Haible  <bruno@clisp.org>
11376
11377         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11378         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11379         HAVE_CALLOC.
11380         * lib/xmalloc.c: Update accordingly.
11381         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11382         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11383         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11384
11385 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11386             Bruno Haible  <bruno@clisp.org>
11387
11388         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11389         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11390         HAVE_MALLOC.
11391         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11392         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11393         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11394
11395 2010-08-29  Bruno Haible  <bruno@clisp.org>
11396
11397         Update modules list.
11398         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11399         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11400         (String handling <string.h>): Add astrxfrm.
11401         (File system functions): Add readlinkat.
11402
11403 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11404
11405         Tests for module 'realloc-gnu'.
11406         * modules/realloc-gnu-tests: New file.
11407         * tests/test-realloc-gnu.c: New file.
11408
11409         Tests for module 'calloc-gnu'.
11410         * modules/calloc-gnu-tests: New file.
11411         * tests/test-calloc-gnu.c: New file.
11412
11413         Tests for module 'malloc-gnu'.
11414         * modules/malloc-gnu-tests: New file.
11415         * tests/test-malloc-gnu.c: New file.
11416
11417 2010-08-28  Bruno Haible  <bruno@clisp.org>
11418
11419         Rename module 'realloc' -> 'realloc-gnu'.
11420         * modules/realloc-gnu: New file, copied from modules/realloc.
11421         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11422         obsolete.
11423         * modules/mgetgroups (Depends-on): Update.
11424         * doc/posix-functions/realloc.texi: Update.
11425         * NEWS: Mention the change.
11426
11427         Rename module 'calloc' -> 'calloc-gnu'.
11428         * modules/calloc-gnu: New file, copied from modules/calloc.
11429         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11430         obsolete.
11431         * doc/posix-functions/calloc.texi: Update.
11432         * NEWS: Mention the change.
11433
11434         Rename module 'malloc' -> 'malloc-gnu'.
11435         * modules/malloc-gnu: New file, copied from modules/malloc.
11436         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11437         obsolete.
11438         * modules/argp (Depends-on): Update.
11439         * modules/regex (Depends-on): Update.
11440         * doc/posix-functions/malloc.texi: Update.
11441         * NEWS: Mention the change.
11442
11443 2010-08-28  Eric Blake  <eblake@redhat.com>
11444
11445         pread, pwrite: add missing dependency
11446         * modules/pread (Depends-on): Add extensions.
11447         * modules/pwrite (Depends-on): Likewise.
11448
11449 2010-08-28  Bruno Haible  <bruno@clisp.org>
11450
11451         unistr/u*-strchr: Fix tests dependencies.
11452         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11453         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11454         Reported by Ian Beckwith <ianb@erislabs.net>.
11455
11456 2010-08-28  Bruno Haible  <bruno@clisp.org>
11457
11458         read-file: Don't occupy too much unused memory.
11459         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11460
11461 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11462             Eric Blake  <eblake@redhat.com>
11463             Bruno Haible  <bruno@clisp.org>
11464
11465         read-file: Avoid memory reallocations with regular files.
11466         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
11467         (fread_file): With regular files, use the remaining length as the
11468         initial buffer size.  Check against overflow.
11469         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
11470         sys_stat.
11471
11472 2010-08-28  Bruno Haible  <bruno@clisp.org>
11473
11474         ftello: Relax license.
11475         * modules/ftello (License): Relax to LGPLv2+.
11476         Reported by Eric Blake.
11477
11478 2010-08-28  Bruno Haible  <bruno@clisp.org>
11479
11480         Avoid relocwrapper link errors due to gnulib replacement functions.
11481         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
11482         function.
11483         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11484
11485 2010-08-28  Bruno Haible  <bruno@clisp.org>
11486
11487         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
11488         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
11489         defined.
11490         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
11491         Suggested by Eric Blake.
11492
11493 2010-08-28  Bruno Haible  <bruno@clisp.org>
11494
11495         sys_socket, netdb: Ensure socklen_t gets defined.
11496         * modules/sys_socket (Depends-on): Add socklen.
11497         * modules/netdb (Depends-on): Likewise.
11498         * modules/getaddrinfo (Depends-on): Remove socklen.
11499         * modules/getsockopt (Depends-on): Likewise.
11500         * modules/setsockopt (Depends-on): Likewise.
11501         * tests/test-sys_socket.c: Check that socklen_t is defined.
11502         * tests/test-netdb.c: Likewise.
11503         * m4/socklen.m4: Update comments.
11504         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11505
11506 2010-08-27  Eric Blake  <eblake@redhat.com>
11507
11508         login_tty: add missing dependency
11509         * modules/login_tty (Depends-on): Add pty.
11510
11511 2010-08-26  Eric Blake  <eblake@redhat.com>
11512
11513         lib-symbol-versions: fix m4 quoting
11514         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
11515         format for AC_LINK_IFELSE.
11516
11517         glob: fix compile test
11518         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
11519
11520         btowc: fix missing file
11521         * modules/btowc (Files): Also ship locale-fr.m4.
11522
11523         lseek: fix link test
11524         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
11525         AC_LINK_IFELSE.
11526
11527         include_next: silence autoconf 2.68 warning
11528         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
11529         AC_COMPILE_IFELSE as special.
11530         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
11531         autoconf < 2.68.
11532
11533         acl: fix compilation test
11534         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
11535         AC_COMPILE_IFELSE.
11536
11537 2010-08-26  Bruno Haible  <bruno@clisp.org>
11538
11539         Modernize AC_TRY_RUN invocations.
11540         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
11541         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11542         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
11543         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
11544         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11545         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11546         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11547         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11548         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11549         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11550         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11551         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11552         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11553         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11554         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11555         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11556         gl_MBRLEN_NUL_RETVAL): Likewise.
11557         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11558         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11559         Likewise.
11560         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11561         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11562         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11563         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11564         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11565         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11566         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
11567         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11568         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
11569         Likewise.
11570         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11571         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
11572         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11573         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11574         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11575         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11576         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11577         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
11578         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11579         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11580
11581 2010-08-26  Bruno Haible  <bruno@clisp.org>
11582
11583         Modernize AC_TRY_LINK invocations.
11584         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
11585         AC_TRY_LINK.
11586         * m4/argp.m4 (gl_ARGP): Likewise.
11587         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11588         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11589         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11590         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11591         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11592         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
11593         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11594         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11595         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11596         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11597         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11598         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
11599         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
11600         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11601         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11602         * m4/hostent.m4 (gl_HOSTENT): Likewise.
11603         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11604         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
11605         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11606         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
11607         Likewise.
11608         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
11609         Likewise.
11610         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
11611         Likewise.
11612         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11613         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
11614         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
11615         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11616         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11617         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11618         * m4/servent.m4 (gl_SERVENT): Likewise.
11619         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11620         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11621         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11622         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11623         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11624         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11625         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11626         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11627         * modules/tsearch-tests (configure.ac): Likewise.
11628
11629 2010-08-26  Bruno Haible  <bruno@clisp.org>
11630
11631         Modernize AC_TRY_COMPILE invocations.
11632         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11633         AC_TRY_COMPILE.
11634         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11635         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11636         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11637         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11638         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11639         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11640         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11641         * m4/lock.m4 (gl_LOCK): Likewise.
11642         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11643         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11644         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11645         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11646         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11647         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11648         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11649         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11650         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11651         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11652         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11653         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11654         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11655         extraneous semicolon.
11656
11657 2010-08-26  Jim Meyering  <meyering@redhat.com>
11658
11659         stat-time: relax license LGPL
11660         * modules/stat-time (License): Change from GPL to LGPL,
11661         with consent from all contributors, for use in libguile.
11662         Requested by Ludovic Courtès.
11663
11664 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11665
11666         poll: return immediately on POLLHUP.
11667         * lib/poll.c (poll): Always set timeout before wait_timeout is
11668         computed.
11669
11670 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11671
11672         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11673         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11674         rmdir ("dir/.//"), unlinkat.
11675
11676 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11677
11678         stdbool: avoid spurious failure with modern xlc
11679         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11680
11681 2010-08-24  Bruno Haible  <bruno@clisp.org>
11682
11683         getloadavg: simplify code
11684         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11685         gl_have_func. Update comments.
11686
11687 2010-08-24  Eric Blake  <eblake@redhat.com>
11688
11689         getloadavg: don't define SVR4 on cygwin
11690         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11691         only define SVR4 when -lkvm is required.
11692         Reported by Yaakov Selkowitz.
11693
11694 2010-08-24  Bruno Haible  <bruno@clisp.org>
11695
11696         priv-set: fix comment
11697         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11698
11699 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11700
11701         priv-set: fix comments
11702         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11703         to match code, as suggested by David Bartley in:
11704         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11705
11706 2010-08-23  Eric Blake  <eblake@redhat.com>
11707
11708         stdbool: avoid rejecting clang
11709         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11710         * tests/test-stdbool.c: Enable more tests if using the system
11711         <stdbool.h> instead of the gnulib replacement.
11712         (main): Move xlc bug test to a runtime test for all compilers.
11713         Reported by Anders Kaseorg.
11714
11715         argz: fix shell quoting issue
11716         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11717         Reported by Charles Wilson.
11718
11719 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11720             Erik Faye-Lund <kusmabite@gmail.com>
11721
11722         poll, select: handle ERROR_BROKEN_PIPE.
11723         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11724         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11725         * lib/select.c (win32_compute_revents): Do not mark a pipe
11726         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11727
11728 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11729
11730         fts: allow compilation with C++
11731         * lib/fts_.h: Specify extern "C" linkage with C++.
11732
11733 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11734
11735         Fix gnulib-tool sed script de-commentation for AIX sed.
11736         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
11737         sed.
11738
11739 2010-08-17  Eric Blake  <eblake@redhat.com>
11740
11741         test-stddef: test for (some) offsetof bugs
11742         * tests/test-stddef.c: Enhance test to ensure correct type of
11743         offsetof.
11744         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
11745         that we are not fixing at this time.
11746
11747 2010-08-15  Bruno Haible  <bruno@clisp.org>
11748
11749         stpncpy: Allow stpncpy to be defined as a macro.
11750         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
11751         if it's already correctly declared.
11752         * lib/string.in.h (stpncpy): Undefine before redefining.
11753         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
11754
11755 2010-08-14  Bruno Haible  <bruno@clisp.org>
11756
11757         Rename module 'memxfrm' to 'amemxfrm'.
11758         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
11759         (amemxfrm): Renamed from memxfrm.
11760         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
11761         (amemxfrm): Renamed from memxfrm.
11762         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
11763         * NEWS: Mention the change.
11764         * MODULES.html.sh (String handling <string.h>): Update.
11765         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
11766         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
11767         * lib/unicase/u16-casexfrm.c: Likewise.
11768         * lib/unicase/u32-casexfrm.c: Likewise.
11769         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
11770         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
11771         * lib/uninorm/u16-normxfrm.c: Likewise.
11772         * lib/uninorm/u32-normxfrm.c: Likewise.
11773         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
11774         memxfrm.
11775         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
11776         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
11777         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
11778         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
11779         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
11780         Suggested by Paul Eggert.
11781
11782 2010-08-14  Bruno Haible  <bruno@clisp.org>
11783
11784         Tests for module 'astrxfrm'.
11785         * modules/astrxfrm-tests: New file.
11786         * tests/test-astrxfrm.c: New file.
11787
11788         New module 'astrxfrm'.
11789         * lib/astrxfrm.h: New file.
11790         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
11791         * modules/astrxfrm: New file.
11792
11793 2010-08-14  Reuben Thomas <rrt@sc3d.org>
11794
11795         regex: Tweak doc.
11796         * doc/regex.texi (Overview): Don't mention regex.c.
11797         (GNU Regular Expression Compiling): Likewise.
11798         (Match-end-of-line Operator): Mention 'not_eol'.
11799
11800 2010-08-14  Brian Gough  <bjg@gnu.org>
11801             Bruno Haible  <bruno@clisp.org>
11802
11803         git-merge-changelog: add doc relating to use with bzr and hg.
11804         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
11805
11806 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
11807
11808         pthread: fix pthread.h creation for srcdir != builddir
11809         * modules/pthread (Makefile.am): Fix the rule to work also in a
11810         non-srcdir build.
11811
11812 2010-08-13  Karl Berry  <karl@gnu.org>
11813
11814         * doc/regex.texi (Predefined Syntaxes): @smallexample.
11815         * doc/posix-*/*: force line break before @url of POSIX
11816         specifications.
11817         Suggested by Werner Lemberg.
11818
11819 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11820
11821         strtod: fix const diagnostic
11822         * lib/strtod.c (strtod): Don't assign const char * to char *,
11823         as this elicits a warning from GCC when warnings are enabled.
11824
11825 2010-08-10  Pádraig Brady <P@draigbrady.com>
11826         and Eric Blake  <eblake@redhat.com>
11827
11828         copy-acl: ignore ENOTSUP on HP-UX
11829         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
11830         so that it is available for HP-UX.
11831         * lib/copy-acl.c (qcopy_acl): Use it.
11832         Reported by Patrick M. Callahan.
11833
11834 2010-08-10  Eric Blake  <eblake@redhat.com>
11835
11836         open, chown: relax license
11837         * modules/open (License): Change to LGPLv2+, with consent by all
11838         authors, for use in augeas.
11839         * modules/chown (License): Likewise.
11840         * modules/lchown (Likewise): Likewise.
11841         Requested by Adam Stokes.
11842
11843 2010-08-09  Karl Berry  <karl@gnu.org>
11844
11845         * build-aux/ar-lib: new file, import from Automake.
11846         * config/srclist.txt: autocheck for updates.
11847
11848 2010-08-09  Eric Blake  <eblake@redhat.com>
11849
11850         readlinkat: adjust client modules
11851         * modules/areadlinkat (Depends-on): Use readlinkat, not
11852         symlinkat.
11853         * modules/areadlinkat-with-size (Depends-on): Likewise.
11854
11855         mknod: be more vocal about danger of running tests as root
11856         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
11857         root, since that is just asking for problems.
11858         Suggested by Bruno Haible, based on a report by Rainer Tammer.
11859
11860         readlinkat: split into its own module
11861         * modules/symlinkat: Split readlinkat...
11862         * modules/readlinkat: ...into separate module.
11863         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
11864         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
11865         * lib/symlinkat.c (readlinkat): Move...
11866         * lib/readlinkat.c: ...into new file.
11867         * modules/symlinkat-tests: Split readlinkat test...
11868         * modules/readlinkat-tests: ...into separate module.
11869         * tests/test-symlinkat.c: Split...
11870         * tests/test-readlinkat.c: ...into new file.
11871         * NEWS: Document the split.
11872         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11873         * lib/unistd.in.h (readlinkat): Likewise.
11874         Suggested by Bruno Haible.
11875
11876 2010-08-08  Bruno Haible  <bruno@clisp.org>
11877
11878         memxfrm: Speed up.
11879         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
11880         that usually only one call to strxfrm is necessary for each string
11881         part.
11882         Reported by Paul Eggert <eggert@cs.ucla.edu>.
11883
11884 2010-08-07  Karl Berry  <karl@gnu.org>
11885
11886         * doc/posix-headers/limits.texi,
11887         * doc/posix-functions/malloc.texi,
11888         * doc/posix-functions/strsignal.texi: missing @item.
11889         * doc/ld-version-script.texi: spurious leading i.
11890         * doc/regex.texi (Interval Operators): no commas inside @var.
11891
11892 2010-08-01  Bruno Haible  <bruno@clisp.org>
11893
11894         Integrate the regex documentation.
11895         * doc/gnulib.texi: Define 'cn' index.
11896         (Regular expressions): New a chapter that includes regex.texi and
11897         regexprops-generic.texi.
11898         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
11899         syntax.
11900
11901         Whitespace cleanup.
11902         * doc/regex.texi: Remove trailing spaces.
11903
11904         Add regex documentation.
11905         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
11906         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
11907         Written by Kathy A. Hargreaves and Karl Berry.
11908
11909 2010-08-01  Bruno Haible  <bruno@clisp.org>
11910
11911         link: Update documentation.
11912         * doc/posix-functions/link.texi: Update regarding Solaris.
11913
11914 2010-07-31  Bruno Haible  <bruno@clisp.org>
11915
11916         Update modules list.
11917         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
11918         (String handling <string.h>): Add memcmp2, memxfrm.
11919         (Container data structures): Add xlist, xsublist, xoset.
11920         (Core language properties): Add alignof, unused-parameter.
11921         (Process control, Numeric conversion functions <stdlib.h>): Renamed
11922         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
11923         (Unibyte characters <ctype.h>): New section.
11924         (String handling <string.h>): New section.
11925         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
11926         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
11927         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
11928         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
11929         tan, tanh, tanl, y0, y1, yn.
11930         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
11931         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
11932         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
11933         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
11934         unlockpt, vdprintf, vdprintf-posix.
11935         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
11936         (File system functions): Add concat-filename, sys_file, sys_ioctl,
11937         xconcat-filename.
11938         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
11939         getdtablesize, pipe2, pipe2-safer.
11940         (Security): New section.
11941         (Networking functions): Add accept4.
11942         (Signal handling): Add sigpipe.
11943         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
11944         mbmemcasecoll.
11945         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
11946         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
11947         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
11948         pipe-filter-ii.
11949         (Misc): Add argp-version-etc, login_tty, parse-duration.
11950
11951 2010-07-31  Bruno Haible  <bruno@clisp.org>
11952
11953         Improve doc in MODULES.html.
11954         * modules/linkat (Description): Add the word "function".
11955         * modules/mkfifo (Description): Likewise.
11956         * modules/mknod (Description): Likewise.
11957         * modules/remove (Description): Likewise.
11958         * modules/renameat (Description): Likewise.
11959         * modules/stat (Description): Likewise.
11960         * modules/symlink (Description): Likewise.
11961         * modules/unlink (Description): Likewise.
11962
11963 2010-07-31  Bruno Haible  <bruno@clisp.org>
11964
11965         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
11966         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
11967         option --enable/disable-c++ instead of --enable/disable-cxx.
11968         * NEWS: Mention the change.
11969
11970 2010-07-31  Bruno Haible  <bruno@clisp.org>
11971
11972         readlink, areadlink: Relax test a bit.
11973         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
11974         alternative to ENOTDIR.
11975         * tests/test-areadlink.h (test_areadlink): Likewise.
11976         Reported by Rainer Tammer.
11977
11978 2010-07-31  Bruno Haible  <bruno@clisp.org>
11979
11980         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
11981         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
11982         character, perform the search using U_STRCHR.
11983         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11984         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11985         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11986         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11987         Suggested by Paolo Bonzini.
11988
11989 2010-07-31  Bruno Haible  <bruno@clisp.org>
11990
11991         unistr/u*-strstr: Fix dependencies.
11992         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11993         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11994         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11995
11996 2010-07-31  Bruno Haible  <bruno@clisp.org>
11997
11998         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11999         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12000         the beginning of the loop.
12001         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12002         cases in 'switch' statement.
12003
12004         unistr/u8-strchr: Fix several bugs.
12005         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12006         the string. When not found, return NULL, not a pointer near the end.
12007
12008         More tests for unistr/u8-strchr.
12009         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12010         that the function does not read past the first occurrence of the byte
12011         being searched.
12012         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12013         * tests/unistr/test-u16-strchr.c (main): New function.
12014         * tests/unistr/test-u32-strchr.c (main): New function.
12015
12016 2010-07-31  Bruno Haible  <bruno@clisp.org>
12017
12018         posix-modules: Ignore backup files of documentation files.
12019         * posix-modules: grep only through files named *.texi.
12020
12021 2010-07-31  Bruno Haible  <bruno@clisp.org>
12022
12023         symlinkat: Fix documentation.
12024         * doc/posix-functions/readlinkat.texi: Fix module name.
12025
12026 2010-07-31  Bruno Haible  <bruno@clisp.org>
12027
12028         fchownat: Replace also when chown has the trailing slash bug.
12029         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12030         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12031         introduced on 2010-04-10.
12032         Reported by Rainer Tammer.
12033
12034 2010-07-31  Bruno Haible  <bruno@clisp.org>
12035
12036         linkat: Work around AIX 7.1 bug.
12037         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12038         whether linkat handles trailing slash correctly. If not, replace linkat
12039         and define LINKAT_TRAILING_SLASH_BUG.
12040         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12041         check whether (fd1,file1) points to a directory if file1 or file2 ends
12042         in a slash. Code taken from lib/link.c.
12043         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12044         Reported by Rainer Tammer.
12045
12046 2010-07-31  Bruno Haible  <bruno@clisp.org>
12047
12048         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12049         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12050         This disables an xlc optimization that was causing wrong test results.
12051         Reported by Rainer Tammer.
12052
12053 2010-07-31  Bruno Haible  <bruno@clisp.org>
12054
12055         iconv: Work around AIX 6.1..7.1 bug.
12056         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12057         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12058         cross-compiling, guess no on all versions of AIX.
12059         Reported by Rainer Tammer.
12060
12061 2010-07-31  Bruno Haible  <bruno@clisp.org>
12062
12063         readlink: Relax test a bit.
12064         * tests/test-readlink.h (test_readlink): Allow different errno value
12065         when readlink is called with a file name that ends in / and refers to
12066         a file.
12067         Suggested by Eric Blake.
12068         Reported by Rainer Tammer.
12069
12070 2010-07-31  Bruno Haible  <bruno@clisp.org>
12071
12072         copysign: Does not require -lm on glibc systems.
12073         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12074         gl_COMMON_DOUBLE_MATHFUNC.
12075         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12076
12077 2010-07-31  Bruno Haible  <bruno@clisp.org>
12078
12079         duplocale: Work around AIX 7.1 bug.
12080         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12081         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12082         * lib/duplocale.c (rpl_duplocale): Update comment.
12083         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12084         Reported by Rainer Tammer.
12085
12086 2010-07-30  Bruno Haible  <bruno@clisp.org>
12087
12088         dirfd: Avoid link error on AIX 7.1.
12089         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12090         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12091         exist, set REPLACE_DIRFD.
12092         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12093         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12094         * doc/posix-functions/dirfd.texi: Update.
12095         Reported by Rainer Tammer.
12096
12097 2010-07-30  Eric Blake  <eblake@redhat.com>
12098
12099         strtod: next round of AIX fixes
12100         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12101         exponent.
12102         * tests/test-strtod.c (main): Enhance tests.
12103         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12104         Reported by Rainer Tammer.
12105
12106         futimens: fix configure check
12107         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12108         Reported by Bruno Haible.
12109
12110 2010-07-30  Bruno Haible  <bruno@clisp.org>
12111
12112         getline: Update regarding AIX.
12113         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12114         Reported by Rainer Tammer.
12115
12116 2010-07-30  Bruno Haible  <bruno@clisp.org>
12117
12118         wcwidth: Drop replacement on AIX 7.
12119         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12120         AIX 7.
12121         Reported by Rainer Tammer.
12122
12123 2010-07-30  Bruno Haible  <bruno@clisp.org>
12124
12125         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12126         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12127         a 'char *'.
12128         Reported by Rainer Tammer.
12129
12130 2010-07-30  Bruno Haible  <bruno@clisp.org>
12131
12132         unlink: Update regarding AIX.
12133         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12134         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12135         Reported by Rainer Tammer.
12136
12137 2010-07-30  Bruno Haible  <bruno@clisp.org>
12138
12139         symlink: Update regarding AIX.
12140         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12141         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12142         Reported by Rainer Tammer.
12143
12144 2010-07-30  Bruno Haible  <bruno@clisp.org>
12145
12146         strndup: Update regarding AIX.
12147         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12148         AIX 7.
12149         Reported by Rainer Tammer.
12150
12151 2010-07-30  Bruno Haible  <bruno@clisp.org>
12152
12153         stat: Update regarding AIX.
12154         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12155         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12156         Reported by Rainer Tammer.
12157
12158 2010-07-30  Bruno Haible  <bruno@clisp.org>
12159
12160         truncl: Fix autoconf test.
12161         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12162         whether truncl works.
12163         Reported by Rainer Tammer.
12164
12165 2010-07-30  Bruno Haible  <bruno@clisp.org>
12166
12167         round: Update regarding AIX.
12168         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12169         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12170         Reported by Rainer Tammer.
12171
12172 2010-07-30  Bruno Haible  <bruno@clisp.org>
12173
12174         rename: Update regarding AIX.
12175         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12176         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12177         Reported by Rainer Tammer.
12178
12179 2010-07-30  Bruno Haible  <bruno@clisp.org>
12180
12181         printf.m4: Update regarding AIX.
12182         * m4/printf.m4: Update comments regarding AIX.
12183         Reported by Rainer Tammer.
12184
12185 2010-07-30  Bruno Haible  <bruno@clisp.org>
12186
12187         iconv: Update regarding AIX.
12188         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12189         AIX 7.
12190         Reported by Rainer Tammer.
12191
12192 2010-07-30  Bruno Haible  <bruno@clisp.org>
12193
12194         getopt: Update regarding AIX.
12195         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12196         no on AIX.
12197         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12198         Reported by Rainer Tammer.
12199
12200 2010-07-30  Bruno Haible  <bruno@clisp.org>
12201
12202         ldexpl; Update regarding AIX.
12203         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12204         on AIX 7.
12205         Reported by Rainer Tammer.
12206
12207 2010-07-30  Bruno Haible  <bruno@clisp.org>
12208
12209         frexpl: Update regarding AIX.
12210         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12211         on AIX 7.
12212         Reported by Rainer Tammer.
12213
12214 2010-07-30  Bruno Haible  <bruno@clisp.org>
12215
12216         open, fopen: Update regarding AIX.
12217         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12218         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12219         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12220         * doc/posix-functions/fopen.texi: Likewise.
12221         Reported by Rainer Tammer.
12222
12223 2010-07-30  Bruno Haible  <bruno@clisp.org>
12224
12225         chown: Update doc regarding AIX.
12226         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12227         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12228         Reported by Rainer Tammer.
12229
12230 2010-07-30  Eric Blake  <eblake@redhat.com>
12231
12232         strtod: fix bug in replacement function on AIX
12233         * lib/strtod.c (strtod): Special case broken "0x" parse in
12234         underlying strtod.
12235         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12236         * doc/posix-functions/strtod.texi (strtod): Likewise.
12237         Reported by Rainer Tammer.
12238
12239 2010-07-30  Bruno Haible  <bruno@clisp.org>
12240
12241         mbrlen: Fix cross-compilation guess for AIX.
12242         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12243         guess. Leftover from 2008-12-22.
12244
12245 2010-07-30  Bruno Haible  <bruno@clisp.org>
12246
12247         mbrtowc: Fix cross-compilation guess for AIX.
12248         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12249         guess. Leftover from 2008-12-21.
12250
12251 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12252
12253         init.sh: work around trap limitation of some shells
12254         * tests/init.sh (setup_): Move exit trap outside of shell function.
12255
12256 2010-07-29  Eric Blake  <eblake@redhat.com>
12257
12258         strtod: aid debugging
12259         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12260         understanding why strtod is rejected.
12261
12262 2010-07-28  Bruno Haible  <bruno@clisp.org>
12263
12264         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12265         * lib/unistr/u8-chr.c: Include <string.h>.
12266         * tests/unistr/test-u8-chr.c: Likewise.
12267         * tests/unistr/test-u16-chr.c: Likewise.
12268         * tests/unistr/test-u32-chr.c: Likewise.
12269         * tests/unistr/test-u8-strchr.c: Likewise.
12270         * tests/unistr/test-u16-strchr.c: Likewise.
12271         * tests/unistr/test-u32-strchr.c: Likewise.
12272         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12273         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12274         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12275         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12276
12277 2010-07-28  Bruno Haible  <bruno@clisp.org>
12278
12279         Use spaces for indentation, not tabs.
12280         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12281
12282 2010-07-27  Bruno Haible  <bruno@clisp.org>
12283
12284         mbspcasecmp: Fix function specification.
12285         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12286         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12287         Reported by Eric Blake <eblake@redhat.com>.
12288
12289 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12290
12291         timespec: use cast and not conditional, as truncation isn't possible
12292         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12293         instead of a conditional.  Comment about the situation in more detail.
12294         This undoes most of the 2009-10-29 patch.
12295
12296 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12297
12298         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12299         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12300         * lib/unistr/u8-strchr.c: Likewise.
12301         * modules/unistr/u8-chr: Depend on memchr.
12302
12303         unistr/u*-strchr: add tests
12304         * modules/unistr/u8-strchr-tests: New file.
12305         * modules/unistr/u16-strchr-tests: New file.
12306         * modules/unistr/u32-strchr-tests: New file.
12307         * tests/unistr/test-strchr.h: New file.
12308         * tests/unistr/test-u8-strchr.c: New file.
12309         * tests/unistr/test-u16-strchr.c: New file.
12310         * tests/unistr/test-u32-strchr.c: New file.
12311
12312         unistr/u*-chr: test multibyte sequences more
12313         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12314         test vector.
12315         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12316         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12317         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12318
12319         unistr/u*-chr: test multibyte sequences
12320         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12321
12322         unistr/u*-chr: prepare for multibyte tests
12323         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12324         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12325         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12326         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12327         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12328         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12329
12330 2010-07-18  Bruno Haible  <bruno@clisp.org>
12331
12332         unistr/u8-strchr: Optimize non-ASCII argument case.
12333         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12334         because the first byte often matches anyway.
12335         Reported by Pádraig Brady <P@draigbrady.com>.
12336
12337 2010-07-15  Karl Berry  <karl@gnu.org>
12338
12339         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12340
12341 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12342
12343         getcwd: on Solaris, work better if ancestors are inaccessible
12344         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12345         buffer and size, try again with a large buffer.  This works better
12346         on Solaris, since its getcwd succeeds even if the path to the root
12347         is inaccessible, and this is helpful in common cases such as .zfs
12348         hidden directories.  Problem reported by J Chapman Flack in
12349         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12350         Use system getcwd if it's declared, not merely if it's partly
12351         working; use the partly-working test only to avoid needless effort
12352         if the system getcwd fails.
12353         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12354         comment that was already obsolete and is now even more obsolete.
12355         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12356         now might call strdup.
12357
12358 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12359
12360         pthread: Add enough so that coreutils/src/sort.c compiles.
12361         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12362         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12363         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12364         Include <sys/types.h>, in case it defines pthread_t.
12365         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12366         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12367         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12368         (pthread_rwlockattr_t, pthread_spinlock_t):
12369         New typedefs, if HAVE_PTHREAD_T is not defined.
12370         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12371         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12372         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12373         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12374         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12375         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12376         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12377         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12378         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12379         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12380         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12381         New macros.
12382         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12383         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12384         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12385         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12386         (pthread_spin_unlock): New dummy functions.
12387         (pthread_create): Return EAGAIN; don't set errno.
12388         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12389         require AC_C_INLINE.
12390         * modules/pthread (Depends-on): Add sched, time.
12391         (pthread.h): Use AM_V_GEN.
12392
12393 2010-07-13  Bruno Haible  <bruno@clisp.org>
12394
12395         striconveh: Don't malloc memory if the result buffer is sufficient.
12396         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12397         buffer if its size is sufficient.
12398         Reported by Ludovic Courtès <ludo@gnu.org>.
12399
12400 2010-07-13  Bruno Haible  <bruno@clisp.org>
12401
12402         strtod: Add safety check.
12403         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12404
12405 2010-07-12  Bruno Haible  <bruno@clisp.org>
12406
12407         Unify tests that set gl_cv_func_ldexpl_no_libm.
12408         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12409         gl_FUNC_LDEXPL.
12410         (gl_FUNC_LDEXPL): Invoke it.
12411         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12412
12413 2010-07-12  Bruno Haible  <bruno@clisp.org>
12414
12415         Unify tests that set gl_cv_func_ldexp_no_libm.
12416         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12417         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12418         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12419         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12420         * modules/strtod (Files): Add m4/ldexp.m4.
12421
12422 2010-07-12  Bruno Haible  <bruno@clisp.org>
12423
12424         Unify tests that set gl_cv_func_frexpl_no_libm.
12425         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12426         gl_FUNC_FREXPL_NO_LIBM.
12427         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12428         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12429
12430 2010-07-12  Bruno Haible  <bruno@clisp.org>
12431
12432         Unify tests that set gl_cv_func_frexp_no_libm.
12433         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12434         gl_FUNC_FREXP_NO_LIBM.
12435         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12436         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12437
12438 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12439
12440         memcoll: clarify sizes versus lengths, document better, and tweak perf
12441         * lib/memcoll.c (strcoll_loop, memcoll0):
12442         Improve quality of descriptive comments.  Name variables
12443         consistently as to whether they are lengths (which do not include
12444         terminating null) versus sizes (which do).
12445         * lib/xmemcoll.c (xmemcoll0): Likewise.
12446         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12447         returned when s1size == 0; this is easier to compile and saves
12448         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12449
12450 2010-07-12  Bruno Haible  <bruno@clisp.org>
12451
12452         Tests for module '_Exit'.
12453         * modules/_Exit-tests: New file.
12454         * tests/test-_Exit.sh: New file.
12455         * tests/test-_Exit.c: New file.
12456
12457         New module '_Exit'.
12458         * lib/stdlib.in.h (__attribute__): New macro.
12459         (_Exit): New declaration.
12460         * lib/_Exit.c: New file.
12461         * m4/_Exit.m4: New file.
12462         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
12463         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
12464         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
12465         * modules/_Exit: New file.
12466         * tests/test-stdlib-c++.cc (_Exit): Check signature.
12467         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
12468
12469 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12470
12471         strtod: make it more-accurate typically, and don't require libm
12472         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
12473         Include limits.h.  Don't include string.h.
12474         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
12475         (locale_isspace): New function, so that no casts are needed to
12476         check whether *s is a space.
12477         (ldexp): Provide an unused dummy if not available.
12478         (scale_radix_exp, parse_number, underlying_strtod): New functions.
12479         (strtod): Use them.  This implementation prefers to use the
12480         underlying strtod if available, falling back on our own code
12481         only to fix known bugs.  This is more likely to produce an
12482         accurate result.  Also, it avoids the use of libm functions.
12483         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
12484         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
12485         was absent, but it caused a test failure with coreutils.
12486         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
12487         with libm.
12488         * modules/strtod (Makefile.am, Link): libm is no longer needed.
12489         * modules/strtod-tests (Makefile.am): Likewise.
12490
12491 2010-07-11  Pádraig Brady  <P@draigBrady.com>
12492             Bruno Haible  <bruno@clisp.org>
12493
12494         unistr/u8-strchr: Optimize ASCII argument case.
12495         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
12496
12497 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12498
12499         (x)memcoll: minor tweaks
12500         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
12501         is after the type that it qualifies.
12502         (memcoll0): Likewise.
12503         * lib/memcoll.h (memcoll0): Likewise.
12504         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
12505         * lib/xmemcoll.h (xmemcoll0): Likewise.
12506         * lib/memcoll.c (memcoll0): Correct the comment.  This function
12507         differs from memcoll in that the NUL byte is part of the argument.
12508         Omit the abort-checks, as performance is a real issue here.  Plus,
12509         the checks were wrong anyway (an off-by-one error).  Omit local
12510         variable 'diff', as it's a bit clearer that way.
12511         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
12512         no longer needed.
12513
12514 2010-07-08  Chen Guo <chenguo4@yahoo.com>
12515
12516         (x)memcoll: speedup when input is known to be NUL delimited
12517         * lib/memcoll.c: Include stdlib.
12518         (memcoll0): New function.
12519         (strcoll_loop): New function, refactored for use in both memcoll
12520         and memcoll0.
12521         * lib/memcoll.h (memcoll0): Add prototype.
12522         * lib/xmemcoll.c (xmemcoll0): New function.
12523         (collate_error): New function, refactored for use in both xmemcoll
12524         and xmemcoll0.
12525         * lib/xmemcoll.h (xmemcoll0): Add prototype.
12526         * m4/memcoll.m4: add inline invocation.
12527
12528 2010-07-06  Pádraig Brady  <P@draigBrady.com>
12529
12530         * build-aux/bootstrap: Remove any local translations
12531         from the translation project synchronization directory,
12532         so that local only translations are not distributed.
12533
12534 2010-07-04  Bruno Haible  <bruno@clisp.org>
12535
12536         fsusage: Clarify which code applies to which platforms.
12537         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
12538         platform.
12539         * lib/fsusage.c (get_fs_usage): Likewise.
12540
12541 2010-07-04  Bruno Haible  <bruno@clisp.org>
12542
12543         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
12544         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
12545         Reported by Martin Lambers <marlam@marlam.de>.
12546
12547 2010-07-04  Jim Meyering  <meyering@redhat.com>
12548
12549         hash: once again explicitly disallow insertion of NULL
12550         * lib/hash.c (hash_insert0): Reinstate just-removed test:
12551         inserting a NULL pointer cannot work with these functions.
12552         Add a comment with details.
12553         This reverts part of the 2010-07-01 commit, 5bef1a35
12554         "hash: extend module to deal with non-pointer keys".
12555
12556 2010-07-01  Bruno Haible  <bruno@clisp.org>
12557
12558         stdbool: Update doc.
12559         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
12560         Info from Christian Weisgerber <naddy@mips.inka.de>.
12561
12562 2010-07-01  Jim Meyering  <meyering@redhat.com>
12563
12564         hash: extend module to deal with non-pointer keys
12565         * lib/hash.c (hash_insert0): New interface, much like hash_insert
12566         but that allows insertion of non-pointer entries.
12567         Do not disallow an ENTRY value of NULL.
12568         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
12569         * lib/hash.h (hash_insert0): Declare.
12570
12571 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12572
12573         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
12574         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
12575         not present (i.e. with autoconf 2.59 and when using gettextize, not
12576         gnulib), require AC_GNU_SOURCE instead.
12577
12578 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
12579
12580         idpriv-drop: Fix tests.
12581         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
12582         not to the test-idpriv-droptemp program.
12583
12584 2010-06-29  Bruno Haible  <bruno@clisp.org>
12585
12586         string: Fix syntax error with g++ 2.96.
12587         * lib/string.in.h (__pure__): Remove definition.
12588         (_GL_ATTRIBUTE_PURE): New macro.
12589         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
12590         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
12591         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12592
12593 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
12594
12595         unitypes: Fix bug introduced on 2010-05-18.
12596         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
12597
12598 2010-06-22  Eric Blake  <eblake@redhat.com>
12599
12600         memmem: slight optimization
12601         * lib/str-two-way.h (critical_factorization): Update comments.
12602         Reduce work during factorization phase.
12603         Reported by Carlos Bueno <carlos@bueno.org>.
12604
12605 2010-06-21  Bruno Haible  <bruno@clisp.org>
12606
12607         Fix HAVE_CALLOC_POSIX misnomer.
12608         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
12609         !HAVE_CALLOC_POSIX.
12610         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
12611         HAVE_CALLOC_POSIX.
12612         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
12613         instead of HAVE_CALLOC_POSIX.
12614         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
12615         HAVE_CALLOC_POSIX.
12616
12617         Use modern idiom for calloc() replacement.
12618         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
12619         AC_FUNC_CALLOC.
12620         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
12621         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
12622         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12623         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
12624         (gl_REPLACE_CALLOC): New macro.
12625
12626 2010-06-21  Bruno Haible  <bruno@clisp.org>
12627
12628         Fix HAVE_REALLOC_POSIX misnomer.
12629         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
12630         !HAVE_REALLOC_POSIX.
12631         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
12632         HAVE_REALLOC_POSIX.
12633         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12634         instead of HAVE_REALLOC_POSIX.
12635         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12636         HAVE_REALLOC_POSIX.
12637
12638         Use modern idiom for realloc() replacement.
12639         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12640         AC_FUNC_REALLOC.
12641         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12642         Autoconf's AC_FUNC_REALLOC.
12643         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12644         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12645         (gl_REPLACE_REALLOC): New macro.
12646         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12647
12648 2010-06-21  Bruno Haible  <bruno@clisp.org>
12649
12650         Fix HAVE_MALLOC_POSIX misnomer.
12651         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12652         !HAVE_MALLOC_POSIX.
12653         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12654         HAVE_MALLOC_POSIX.
12655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12656         instead of HAVE_MALLOC_POSIX.
12657         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12658         HAVE_MALLOC_POSIX.
12659
12660         Use modern idiom for malloc() replacement.
12661         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12662         AC_FUNC_MALLOC.
12663         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12664         Autoconf's AC_FUNC_MALLOC.
12665         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12666         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12667         (gl_REPLACE_MALLOC): New macro.
12668         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12669
12670 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12671
12672         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12673         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12674         This macro takes 3 arguments, not 4.
12675
12676 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12677
12678         ipv6: fix detection under mingw
12679         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12680         in6_addr.
12681
12682 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12683
12684         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12685         that strtod() works when cross-compiling to a glibc version known
12686         to work.
12687
12688 2010-06-15  Bruno Haible  <bruno@clisp.org>
12689
12690         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12691
12692 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12693
12694         select: Correct timeout.
12695         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12696
12697 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12698
12699         git-version-gen: init shell var to avoid env var influence
12700         * build-aux/git-version-gen (v): Init shell var to empty.
12701
12702 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12703
12704         priv-set: Don't assume that priv.h exists merely because getppriv does.
12705         See Jan Andersen's bug report about AIX 5L in
12706         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12707         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12708         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12709         * lib/priv-set.h: Likewise.
12710         * tests/test-priv-set.c: Likewise.
12711
12712 2010-06-13  Bruno Haible  <bruno@clisp.org>
12713
12714         relocatable: Make it easier to test whether to install wrappers.
12715         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12716         RELOCATABLE_VIA_WRAPPER.
12717
12718 2010-06-13  Bruno Haible  <bruno@clisp.org>
12719
12720         gnulib-tool: Display specified modules and dependencies differently.
12721         * gnulib-tool (func_show_module_list): New function.
12722         (func_import, func_create_testdir): Invoke it.
12723         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12724
12725 2010-06-13  Bruno Haible  <bruno@clisp.org>
12726
12727         gnulib-tool: Align code of func_import and func_create_testdir.
12728         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12729         specified_modules.
12730
12731 2010-06-12  Jim Meyering  <meyering@redhat.com>
12732
12733         test-inttostr: avoid spurious failure on Solaris 9
12734         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12735         to accept "%ju".  Reported by Bruno Haible.
12736
12737 2010-06-11  Jim Meyering  <meyering@redhat.com>
12738
12739         test-sys_socket: mark variables as used more readably
12740         * tests/test-sys_socket.c (main): Mark otherwise unused variables
12741         as "used" explicitly via (void) statement casts.  This is more
12742         readable than using them in an artificial return expression.
12743         Suggestion from Bruno Haible.
12744
12745 2010-06-11  Bruno Haible  <bruno@clisp.org>
12746
12747         Avoid some more warnings from "gcc -Wwrite-strings".
12748         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
12749         to 'const char *'.
12750         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
12751         * tests/test-c-strcasestr.c (main): Likewise.
12752         * tests/test-mbscasestr1.c (main): Likewise.
12753         * tests/test-mbscasestr2.c (main): Likewise.
12754         * tests/test-memmem.c (main): Likewise.
12755         * tests/test-strstr.c (main): Likewise.
12756         * tests/test-strcasestr.c (main): Likewise.
12757
12758 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12759
12760         init.sh: change framework_failure_ to fail with status 99, not 1
12761         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
12762         automake's parallel-tests rule that this is an unexpected failure,
12763         even if the test is listed in XFAIL_TESTS.
12764
12765 2010-06-11  Jim Meyering  <meyering@redhat.com>
12766
12767         test-inttostr: avoid warnings about 4-6KB literal strings
12768         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
12769         Include "macros.h", for its definition of ASSERT.
12770         (CK): s/assert/ASSERT/
12771         * modules/inttostr-tests (Files): Add macros.h.
12772
12773         init.sh: don't use $ME_ or skip_ before they are defined
12774         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
12775         their first uses.  Also hoist their companions: warn_, fail_,
12776         framework_failure_, $stderr_fileno.  Prompted by a patch from
12777         Stefano Lattarini.
12778
12779         test-sys_socket: avoid set-but-not-used warnings from gcc
12780         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
12781         avoid warning about set-but-not-used variables.
12782
12783         test-xvasprintf: avoid 'const' discard warnings
12784         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
12785         "const" when assigning from literal strings.
12786         (test_xasprintf): Add "void" in function argument list to placate
12787         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
12788
12789         tests: avoid compilation warnings in argmatch and exclude tests...
12790         in packages that define ARGMATCH_DIE_DECL, like coreutils.
12791         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
12792         Since it always exits, declare with the "noreturn" attribute.
12793         * tests/test-argmatch.c: Likewise.
12794
12795         tests: avoid 'const' discard warnings in mbsstr tests
12796         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
12797         * tests/test-mbsstr2.c (main): Likewise.
12798
12799         test-verify: avoid warning from gcc's -Wmissing-declarations
12800         * tests/test-verify.c (function): Declare to be static.
12801
12802         test-inttostr.c: include <string.h> for use of strcmp
12803         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
12804
12805         test-linkat: avoid failed assertion on "other" architectures
12806         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
12807         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
12808         sparc: https://bugs.launchpad.net/bugs/591968
12809
12810 2010-06-11  Jim Meyering  <meyering@redhat.com>
12811
12812         printf.m4: avoid autoconf's "Expanded Before Required" warning
12813         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
12814         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
12815         autoconf warning.
12816
12817 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
12818
12819         Replacement header templates are now named with ".in", not "_".
12820         * doc/gnulib-intro.texi: Correct.
12821
12822 2010-06-10  Jim Meyering  <meyering@redhat.com>
12823
12824         inttostr-tests: depend on snprintf, not snprintf-posix
12825         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
12826         snprintf-posix, to avoid this aclocal failure:
12827           missing file gnulib-tests/vasnprintf.c
12828           configure.ac:45: error: expected source file, required through \
12829           AC_LIBSOURCES, not found
12830
12831 2010-06-10  Jim Meyering  <meyering@redhat.com>
12832
12833         inttostr: add a new function, inttostr, and tests
12834         The namesake function was not available.  The existence of the
12835         template file, inttostr.c makes its addition nontrivial.
12836         * lib/anytostr.c: Rename from inttostr.c.
12837         (anytostr): Rename from inttostr.
12838         * lib/inttostr.c: New file.
12839         * modules/inttostr (Files): Add anytostr.c.
12840         (Makefile.am): Set lib_SOURCES instead of ...
12841         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
12842         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
12843         * lib/offtostr.c: Likewise.
12844         * lib/uinttostr.c: Likewise.
12845         * lib/umaxtostr.c: Likewise.
12846         * modules/inttostr-tests: New file.
12847         * tests/test-inttostr.c: New file.  Test these functions.
12848
12849 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
12850             Bruno Haible  <bruno@clisp.org>
12851
12852         Add "Extending Gnulib" chapter to manual.
12853         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
12854         chapter.
12855         (Extending Gnulib): New chapter.
12856         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
12857         chapter.
12858
12859 2010-06-09  Bruno Haible  <bruno@clisp.org>
12860
12861         Avoid relocwrapper link errors due to gnulib replacement functions.
12862         * lib/areadlink.c: Use the system's malloc, realloc functions.
12863         (areadlink): Set errno to ENOMEM explicitly.
12864         * modules/areadlink (Depends-on): Remove malloc-posix.
12865         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12866
12867 2010-06-09  Bruno Haible  <bruno@clisp.org>
12868
12869         Avoid relocwrapper link errors due to gnulib replacement functions.
12870         * lib/canonicalize-lgpl.c: Use the system's malloc function.
12871         * lib/malloca.c: Likewise.
12872         * lib/relocatable.c: Likewise.
12873         * lib/progreloc.c: Use the system's malloc, sprintf functions.
12874         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
12875         * lib/setenv.c: Use the system's malloc, realloc functions.
12876         * lib/strerror.c: Use the system's sprintf function.
12877         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12878
12879 2010-06-04  Bruno Haible  <bruno@clisp.org>
12880
12881         Prefer documented low-level autoconf macro names.
12882         * m4/lib-link.m4: Use m4_translit instead of translit.
12883         * m4/environ.m4: Likewise.
12884         * m4/mathfunc.m4: Likewise.
12885         * m4/onceonly.m4: Likewise.
12886         * m4/stdint.m4: Likewise.
12887         Suggested by Eric Blake.
12888
12889 2010-06-04  Martin Lambers  <marlam@marlam.de>
12890             Bruno Haible  <bruno@clisp.org>
12891
12892         havelib: Allow library names with '+' characters.
12893         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12894         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
12895
12896 2010-06-09  Bruno Haible  <bruno@clisp.org>
12897
12898         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
12899         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
12900         realloc failed.
12901
12902 2010-06-08  Peter Simons  <simons@cryp.to>
12903
12904         maint.mk: make the news-check rule more configurable
12905         * top/maint.mk (news-check-lines-spec): New variable.
12906         (news-check): Use "sed -n 1,10p" in place of "head".
12907
12908 2010-06-07  Jim Meyering  <meyering@redhat.com>
12909
12910         do-release-commit-and-tag: fix typo in --help
12911         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
12912
12913         regex: avoid new dead-code warning with gcc-4.6.0
12914         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
12915         if-block containing a while-loop.  It's been unused for at least
12916         5 years.
12917
12918 2010-06-05  Bruno Haible  <bruno@clisp.org>
12919
12920         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
12921         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
12922
12923 2010-06-04  Bruno Haible  <bruno@clisp.org>
12924
12925         Update to GNU gettext 0.18.1.
12926         * modules/gettext (configure.ac): Require gettext infrastructure from
12927         version 0.18.1.
12928
12929 2010-06-03  Bruno Haible  <bruno@clisp.org>
12930
12931         Don't use AC_LIBOBJ with file names in subdirectories.
12932         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
12933         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
12934         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
12935         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
12936         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
12937         gl_LIBUNISTRING_LIBSOURCE.
12938         (Makefile.am): Augment lib_SOURCES here, conditionally.
12939         * NEWS: Drop requirement for Automake option 'subdir-objects'.
12940
12941 2010-06-03  Bruno Haible  <bruno@clisp.org>
12942
12943         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
12944         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
12945         expansion does not end with a newline.
12946         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
12947         unnecessary newline.
12948
12949 2010-06-03  Bruno Haible  <bruno@clisp.org>
12950
12951         Reduce dependencies.
12952         * tests/test-quotearg.h: New file, extracted from
12953         tests/test-quotearg.c.
12954         * tests/test-quotearg-simple.c: New file, extracted from
12955         tests/test-quotearg.c.
12956         * tests/test-quotearg.c: Don't include <ctype.h>.
12957         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
12958         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
12959         use_quote_double_quotes, use_quotearg_colon): Moved to
12960         tests/test-quotearg.h.
12961         (results_g, flag_results, custom_quotes, custom_results): Moved
12962         to tests/test-quotearg-simple.c.
12963         (main): Moved the part that does not depend on gettext to
12964         tests/test-quotearg-simple.c. Return 77 if the test cannot be
12965         performed.
12966         * modules/quotearg-simple: New file.
12967         * modules/quotearg-simple-tests: New file.
12968         * modules/quotearg (Depends-on): Add quotearg-simple.
12969         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
12970         (Files): Add tests/test-quotearg.h.
12971         Reported by Paolo Bonzini.
12972
12973 2010-06-03  Bruno Haible  <bruno@clisp.org>
12974
12975         Reduce dependencies.
12976         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
12977
12978 2010-06-03  Bruno Haible  <bruno@clisp.org>
12979
12980         time: Undefine more broken macros.
12981         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
12982         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12983         Reported by Eric Blake.
12984
12985 2010-06-03  Bruno Haible  <bruno@clisp.org>
12986
12987         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12988         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12989         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12990         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12991         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12992         Reported by Ludovic Courtès <ludo@gnu.org>.
12993
12994 2010-06-02  Eric Blake  <eblake@redhat.com>
12995
12996         time: work with mingw + pthreads-win32 library
12997         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12998         if timespec is defined only in pthread.h.
12999         * modules/time (Makefile.am): Substitute it.
13000         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13001         <pthread.h>, when needed.
13002         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13003         from the library.
13004
13005 2010-05-31  Bruno Haible  <bruno@clisp.org>
13006
13007         Avoid expanding two macros in the wrong order.
13008         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13009         gl_LIBUNISTRING if it is defined.
13010         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13011         autoconf >= 2.64.
13012         Reported by Ludovic Courtès <ludo@gnu.org>.
13013
13014 2010-05-27  Jim Meyering  <meyering@redhat.com>
13015
13016         maint.mk: also prohibit "#undef" of always-defined symbols
13017         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13018         Allow more than one space before the symbol name.
13019         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13020         the regexp uses alternation.
13021
13022 2010-05-26  Eric Blake  <eblake@redhat.com>
13023
13024         maint.mk: avoid echo -e
13025         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13026         Convert all uses of echo -* to printf.
13027         Reported by Matthias Bolte.
13028
13029 2010-05-25  Bruno Haible  <bruno@clisp.org>
13030
13031         Update to GNU gettext 0.18, part 2.
13032         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13033         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13034
13035 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13036
13037         Add missing include in test-pwrite.c.
13038         * tests/test-pwrite.c: Include string.h, for strcmp.
13039
13040 2010-05-24  Bruno Haible  <bruno@clisp.org>
13041
13042         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13043
13044 2010-05-24  Bruno Haible  <bruno@clisp.org>
13045
13046         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13047         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13048         iconveh_error argument.
13049         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13050         U_STRCONV_TO_LOCALE.
13051         * lib/unistr/u16-strcoll.c: Likewise.
13052         * lib/unistr/u32-strcoll.c: Likewise.
13053         * modules/unistr/u8-strcoll (Depends-on): Add
13054         uniconv/u8-strconv-to-enc, localcharset. Remove
13055         uniconv/u8-strconv-to-locale.
13056         (configure.ac): Bump version number.
13057         * modules/unistr/u16-strcoll (Depends-on): Add
13058         uniconv/u16-strconv-to-enc, localcharset. Remove
13059         uniconv/u16-strconv-to-locale.
13060         (configure.ac): Bump version number.
13061         * modules/unistr/u32-strcoll (Depends-on): Add
13062         uniconv/u32-strconv-to-enc, localcharset. Remove
13063         uniconv/u32-strconv-to-locale.
13064         (configure.ac): Bump version number.
13065
13066 2010-05-24  Bruno Haible  <bruno@clisp.org>
13067
13068         Avoid a test failure on NetBSD 5.0.
13069         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13070         an iconv() bug.
13071
13072 2010-05-24  Bruno Haible  <bruno@clisp.org>
13073
13074         Adjust #include directive style.
13075         * modules/regex (Includes): Recommend to write <regex.h>.
13076
13077 2010-05-24  Bruno Haible  <bruno@clisp.org>
13078
13079         regex: Don't require alloca.
13080         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13081         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13082         only inside if (0).
13083
13084 2010-05-23  Jim Meyering  <meyering@redhat.com>
13085
13086         test-renameat.c: include <sys/stat.h>
13087         * tests/test-renameat.c: Include <sys/stat.h>; required for
13088         definition of S_IS* macros.
13089
13090 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13091
13092         Update maintainer documentation for 'relocatable-prog' module.
13093         * doc/relocatable-maint.texi: Update.
13094         Comments by Bruno Haible.
13095
13096 2010-05-23  Bruno Haible  <bruno@clisp.org>
13097
13098         git-merge-changelog: Enable --split-merged-entry by default.
13099         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13100         (usage): Don't mention this option any more.
13101         Reported by Ralf Wildenhues.
13102
13103 2010-05-23  Jim Meyering  <meyering@redhat.com>
13104
13105         test-pwrite: do not leave behind a test file named "out"
13106         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13107         The trivial-looking use of init.sh is really necessary.
13108         It ensures that the temporary file, "out", is created in
13109         a temporary directory, and removed upon termination.
13110         * tests/test-pwrite.sh: Re-add file.
13111         * modules/pwrite-tests: Reference it.
13112
13113 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13114
13115         Fix output redirection buglet in init.sh.
13116         * tests/init.sh: Fix redirection of stderr.
13117
13118 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13119
13120         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13121
13122 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13123
13124         * modules/valgrind-tests: New file.
13125         * m4/valgrind-tests.m4: New file.
13126         * doc/valgrind-tests.texi: New file.
13127         * doc/gnulib.texi (Running self-tests under valgrind): New
13128         section.
13129
13130 2010-05-19  Bruno Haible  <bruno@clisp.org>
13131
13132         Clean up dead code in recent commit.
13133         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13134         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13135         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13136         Suggested by Paolo Bonzini.
13137
13138 2010-05-19  Bruno Haible  <bruno@clisp.org>
13139
13140         Avoid valgrind error reports from libunistring.
13141         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13142         * modules/libunistring (Files): Add it.
13143         * modules/libunistring-optional (Files): Likewise.
13144
13145 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13146             Bruno Haible  <bruno@clisp.org>
13147
13148         New module 'libunistring-optional'.
13149         * modules/libunistring-optional: New file.
13150         * m4/libunistring-base.m4: New file.
13151         * m4/libunistring-optional.m4: New file.
13152         * lib/unicase.in.h: Renamed from lib/unicase.h.
13153         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13154         * lib/unictype.in.h: Renamed from lib/unictype.h.
13155         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13156         * lib/uniname.in.h: Renamed from lib/uniname.h.
13157         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13158         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13159         * lib/unistr.in.h: Renamed from lib/unistr.h.
13160         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13161         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13162         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13163         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13164         gl_LIBUNISTRING. If the library was found, determine the installed
13165         version and set LIBUNISTRING_VERSION.
13166         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13167         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13168         handle a configuration option --with-included-libunistring.
13169         * modules/libunistring (Files): Add m4/absolute-header.m4.
13170         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13171         Add m4/libunistring-base.m4.
13172         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13173         (Makefile.am): Build unicase.h from unicase.in.h.
13174         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13175         Add m4/libunistring-base.m4.
13176         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13177         (Makefile.am): Build uniconv.h from uniconv.in.h.
13178         * modules/unictype/base (Files): Use unictype.in.h instead of
13179         unictype.h. Add m4/libunistring-base.m4.
13180         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13181         (Makefile.am): Build unictype.h from unictype.in.h.
13182         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13183         Add m4/libunistring-base.m4.
13184         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13185         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13186         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13187         Add m4/libunistring-base.m4.
13188         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13189         (Makefile.am): Build uniname.h from uniname.in.h.
13190         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13191         Add m4/libunistring-base.m4.
13192         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13193         (Makefile.am): Build uninorm.h from uninorm.in.h.
13194         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13195         unistdio.h. Add m4/libunistring-base.m4.
13196         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13197         (Makefile.am): Build unistdio.h from unistdio.in.h.
13198         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13199         Add m4/libunistring-base.m4.
13200         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13201         (Makefile.am): Build unistr.h from unistr.in.h.
13202         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13203         Add m4/libunistring-base.m4.
13204         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13205         (Makefile.am): Build unitypes.h from unitypes.in.h.
13206         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13207         Add m4/libunistring-base.m4.
13208         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13209         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13210         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13211         uniwidth.h. Add m4/libunistring-base.m4.
13212         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13213         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13214         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13215         instead of augmenting lib_SOURCES.
13216         * modules/unicase/empty-suffix-context: Likewise.
13217         * modules/unicase/locale-language: Likewise.
13218         * modules/unicase/tolower: Likewise.
13219         * modules/unicase/totitle: Likewise.
13220         * modules/unicase/toupper: Likewise.
13221         * modules/unicase/u8-casecmp: Likewise.
13222         * modules/unicase/u8-casecoll: Likewise.
13223         * modules/unicase/u8-casefold: Likewise.
13224         * modules/unicase/u8-casexfrm: Likewise.
13225         * modules/unicase/u8-ct-casefold: Likewise.
13226         * modules/unicase/u8-ct-tolower: Likewise.
13227         * modules/unicase/u8-ct-totitle: Likewise.
13228         * modules/unicase/u8-ct-toupper: Likewise.
13229         * modules/unicase/u8-is-cased: Likewise.
13230         * modules/unicase/u8-is-casefolded: Likewise.
13231         * modules/unicase/u8-is-lowercase: Likewise.
13232         * modules/unicase/u8-is-titlecase: Likewise.
13233         * modules/unicase/u8-is-uppercase: Likewise.
13234         * modules/unicase/u8-prefix-context: Likewise.
13235         * modules/unicase/u8-suffix-context: Likewise.
13236         * modules/unicase/u8-tolower: Likewise.
13237         * modules/unicase/u8-totitle: Likewise.
13238         * modules/unicase/u8-toupper: Likewise.
13239         * modules/unicase/u16-casecmp: Likewise.
13240         * modules/unicase/u16-casecoll: Likewise.
13241         * modules/unicase/u16-casefold: Likewise.
13242         * modules/unicase/u16-casexfrm: Likewise.
13243         * modules/unicase/u16-ct-casefold: Likewise.
13244         * modules/unicase/u16-ct-tolower: Likewise.
13245         * modules/unicase/u16-ct-totitle: Likewise.
13246         * modules/unicase/u16-ct-toupper: Likewise.
13247         * modules/unicase/u16-is-cased: Likewise.
13248         * modules/unicase/u16-is-casefolded: Likewise.
13249         * modules/unicase/u16-is-lowercase: Likewise.
13250         * modules/unicase/u16-is-titlecase: Likewise.
13251         * modules/unicase/u16-is-uppercase: Likewise.
13252         * modules/unicase/u16-prefix-context: Likewise.
13253         * modules/unicase/u16-suffix-context: Likewise.
13254         * modules/unicase/u16-tolower: Likewise.
13255         * modules/unicase/u16-totitle: Likewise.
13256         * modules/unicase/u16-toupper: Likewise.
13257         * modules/unicase/u32-casecmp: Likewise.
13258         * modules/unicase/u32-casecoll: Likewise.
13259         * modules/unicase/u32-casefold: Likewise.
13260         * modules/unicase/u32-casexfrm: Likewise.
13261         * modules/unicase/u32-ct-casefold: Likewise.
13262         * modules/unicase/u32-ct-tolower: Likewise.
13263         * modules/unicase/u32-ct-totitle: Likewise.
13264         * modules/unicase/u32-ct-toupper: Likewise.
13265         * modules/unicase/u32-is-cased: Likewise.
13266         * modules/unicase/u32-is-casefolded: Likewise.
13267         * modules/unicase/u32-is-lowercase: Likewise.
13268         * modules/unicase/u32-is-titlecase: Likewise.
13269         * modules/unicase/u32-is-uppercase: Likewise.
13270         * modules/unicase/u32-prefix-context: Likewise.
13271         * modules/unicase/u32-suffix-context: Likewise.
13272         * modules/unicase/u32-tolower: Likewise.
13273         * modules/unicase/u32-totitle: Likewise.
13274         * modules/unicase/u32-toupper: Likewise.
13275         * modules/unicase/ulc-casecmp: Likewise.
13276         * modules/unicase/ulc-casecoll: Likewise.
13277         * modules/unicase/ulc-casexfrm: Likewise.
13278         * modules/uniconv/u8-conv-from-enc: Likewise.
13279         * modules/uniconv/u8-conv-to-enc: Likewise.
13280         * modules/uniconv/u8-strconv-from-enc: Likewise.
13281         * modules/uniconv/u8-strconv-from-locale: Likewise.
13282         * modules/uniconv/u8-strconv-to-enc: Likewise.
13283         * modules/uniconv/u8-strconv-to-locale: Likewise.
13284         * modules/uniconv/u16-conv-from-enc: Likewise.
13285         * modules/uniconv/u16-conv-to-enc: Likewise.
13286         * modules/uniconv/u16-strconv-from-enc: Likewise.
13287         * modules/uniconv/u16-strconv-from-locale: Likewise.
13288         * modules/uniconv/u16-strconv-to-enc: Likewise.
13289         * modules/uniconv/u16-strconv-to-locale: Likewise.
13290         * modules/uniconv/u32-conv-from-enc: Likewise.
13291         * modules/uniconv/u32-conv-to-enc: Likewise.
13292         * modules/uniconv/u32-strconv-from-enc: Likewise.
13293         * modules/uniconv/u32-strconv-from-locale: Likewise.
13294         * modules/uniconv/u32-strconv-to-enc: Likewise.
13295         * modules/uniconv/u32-strconv-to-locale: Likewise.
13296         * modules/unictype/bidicategory-byname: Likewise.
13297         * modules/unictype/bidicategory-name: Likewise.
13298         * modules/unictype/bidicategory-of: Likewise.
13299         * modules/unictype/bidicategory-test: Likewise.
13300         * modules/unictype/block-list: Likewise.
13301         * modules/unictype/block-test: Likewise.
13302         * modules/unictype/category-C: Likewise.
13303         * modules/unictype/category-Cc: Likewise.
13304         * modules/unictype/category-Cf: Likewise.
13305         * modules/unictype/category-Cn: Likewise.
13306         * modules/unictype/category-Co: Likewise.
13307         * modules/unictype/category-Cs: Likewise.
13308         * modules/unictype/category-L: Likewise.
13309         * modules/unictype/category-Ll: Likewise.
13310         * modules/unictype/category-Lm: Likewise.
13311         * modules/unictype/category-Lo: Likewise.
13312         * modules/unictype/category-Lt: Likewise.
13313         * modules/unictype/category-Lu: Likewise.
13314         * modules/unictype/category-M: Likewise.
13315         * modules/unictype/category-Mc: Likewise.
13316         * modules/unictype/category-Me: Likewise.
13317         * modules/unictype/category-Mn: Likewise.
13318         * modules/unictype/category-N: Likewise.
13319         * modules/unictype/category-Nd: Likewise.
13320         * modules/unictype/category-Nl: Likewise.
13321         * modules/unictype/category-No: Likewise.
13322         * modules/unictype/category-P: Likewise.
13323         * modules/unictype/category-Pc: Likewise.
13324         * modules/unictype/category-Pd: Likewise.
13325         * modules/unictype/category-Pe: Likewise.
13326         * modules/unictype/category-Pf: Likewise.
13327         * modules/unictype/category-Pi: Likewise.
13328         * modules/unictype/category-Po: Likewise.
13329         * modules/unictype/category-Ps: Likewise.
13330         * modules/unictype/category-S: Likewise.
13331         * modules/unictype/category-Sc: Likewise.
13332         * modules/unictype/category-Sk: Likewise.
13333         * modules/unictype/category-Sm: Likewise.
13334         * modules/unictype/category-So: Likewise.
13335         * modules/unictype/category-Z: Likewise.
13336         * modules/unictype/category-Zl: Likewise.
13337         * modules/unictype/category-Zp: Likewise.
13338         * modules/unictype/category-Zs: Likewise.
13339         * modules/unictype/category-and: Likewise.
13340         * modules/unictype/category-and-not: Likewise.
13341         * modules/unictype/category-byname: Likewise.
13342         * modules/unictype/category-name: Likewise.
13343         * modules/unictype/category-none: Likewise.
13344         * modules/unictype/category-of: Likewise.
13345         * modules/unictype/category-or: Likewise.
13346         * modules/unictype/category-test: Likewise.
13347         * modules/unictype/combining-class: Likewise.
13348         * modules/unictype/ctype-alnum: Likewise.
13349         * modules/unictype/ctype-alpha: Likewise.
13350         * modules/unictype/ctype-blank: Likewise.
13351         * modules/unictype/ctype-cntrl: Likewise.
13352         * modules/unictype/ctype-digit: Likewise.
13353         * modules/unictype/ctype-graph: Likewise.
13354         * modules/unictype/ctype-lower: Likewise.
13355         * modules/unictype/ctype-print: Likewise.
13356         * modules/unictype/ctype-punct: Likewise.
13357         * modules/unictype/ctype-space: Likewise.
13358         * modules/unictype/ctype-upper: Likewise.
13359         * modules/unictype/ctype-xdigit: Likewise.
13360         * modules/unictype/decimal-digit: Likewise.
13361         * modules/unictype/digit: Likewise.
13362         * modules/unictype/mirror: Likewise.
13363         * modules/unictype/numeric: Likewise.
13364         * modules/unictype/property-alphabetic: Likewise.
13365         * modules/unictype/property-ascii-hex-digit: Likewise.
13366         * modules/unictype/property-bidi-arabic-digit: Likewise.
13367         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13368         * modules/unictype/property-bidi-block-separator: Likewise.
13369         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13370         * modules/unictype/property-bidi-common-separator: Likewise.
13371         * modules/unictype/property-bidi-control: Likewise.
13372         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13373         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13374         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13375         * modules/unictype/property-bidi-european-digit: Likewise.
13376         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13377         * modules/unictype/property-bidi-left-to-right: Likewise.
13378         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13379         * modules/unictype/property-bidi-other-neutral: Likewise.
13380         * modules/unictype/property-bidi-pdf: Likewise.
13381         * modules/unictype/property-bidi-segment-separator: Likewise.
13382         * modules/unictype/property-bidi-whitespace: Likewise.
13383         * modules/unictype/property-byname: Likewise.
13384         * modules/unictype/property-combining: Likewise.
13385         * modules/unictype/property-composite: Likewise.
13386         * modules/unictype/property-currency-symbol: Likewise.
13387         * modules/unictype/property-dash: Likewise.
13388         * modules/unictype/property-decimal-digit: Likewise.
13389         * modules/unictype/property-default-ignorable-code-point: Likewise.
13390         * modules/unictype/property-deprecated: Likewise.
13391         * modules/unictype/property-diacritic: Likewise.
13392         * modules/unictype/property-extender: Likewise.
13393         * modules/unictype/property-format-control: Likewise.
13394         * modules/unictype/property-grapheme-base: Likewise.
13395         * modules/unictype/property-grapheme-extend: Likewise.
13396         * modules/unictype/property-grapheme-link: Likewise.
13397         * modules/unictype/property-hex-digit: Likewise.
13398         * modules/unictype/property-hyphen: Likewise.
13399         * modules/unictype/property-id-continue: Likewise.
13400         * modules/unictype/property-id-start: Likewise.
13401         * modules/unictype/property-ideographic: Likewise.
13402         * modules/unictype/property-ids-binary-operator: Likewise.
13403         * modules/unictype/property-ids-trinary-operator: Likewise.
13404         * modules/unictype/property-ignorable-control: Likewise.
13405         * modules/unictype/property-iso-control: Likewise.
13406         * modules/unictype/property-join-control: Likewise.
13407         * modules/unictype/property-left-of-pair: Likewise.
13408         * modules/unictype/property-line-separator: Likewise.
13409         * modules/unictype/property-logical-order-exception: Likewise.
13410         * modules/unictype/property-lowercase: Likewise.
13411         * modules/unictype/property-math: Likewise.
13412         * modules/unictype/property-non-break: Likewise.
13413         * modules/unictype/property-not-a-character: Likewise.
13414         * modules/unictype/property-numeric: Likewise.
13415         * modules/unictype/property-other-alphabetic: Likewise.
13416         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13417         * modules/unictype/property-other-grapheme-extend: Likewise.
13418         * modules/unictype/property-other-id-continue: Likewise.
13419         * modules/unictype/property-other-id-start: Likewise.
13420         * modules/unictype/property-other-lowercase: Likewise.
13421         * modules/unictype/property-other-math: Likewise.
13422         * modules/unictype/property-other-uppercase: Likewise.
13423         * modules/unictype/property-paired-punctuation: Likewise.
13424         * modules/unictype/property-paragraph-separator: Likewise.
13425         * modules/unictype/property-pattern-syntax: Likewise.
13426         * modules/unictype/property-pattern-white-space: Likewise.
13427         * modules/unictype/property-private-use: Likewise.
13428         * modules/unictype/property-punctuation: Likewise.
13429         * modules/unictype/property-quotation-mark: Likewise.
13430         * modules/unictype/property-radical: Likewise.
13431         * modules/unictype/property-sentence-terminal: Likewise.
13432         * modules/unictype/property-soft-dotted: Likewise.
13433         * modules/unictype/property-space: Likewise.
13434         * modules/unictype/property-terminal-punctuation: Likewise.
13435         * modules/unictype/property-test: Likewise.
13436         * modules/unictype/property-titlecase: Likewise.
13437         * modules/unictype/property-unassigned-code-value: Likewise.
13438         * modules/unictype/property-unified-ideograph: Likewise.
13439         * modules/unictype/property-uppercase: Likewise.
13440         * modules/unictype/property-variation-selector: Likewise.
13441         * modules/unictype/property-white-space: Likewise.
13442         * modules/unictype/property-xid-continue: Likewise.
13443         * modules/unictype/property-xid-start: Likewise.
13444         * modules/unictype/property-zero-width: Likewise.
13445         * modules/unictype/scripts: Likewise.
13446         * modules/unictype/syntax-c-ident: Likewise.
13447         * modules/unictype/syntax-c-whitespace: Likewise.
13448         * modules/unictype/syntax-java-ident: Likewise.
13449         * modules/unictype/syntax-java-whitespace: Likewise.
13450         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13451         * modules/unilbrk/u8-width-linebreaks: Likewise.
13452         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13453         * modules/unilbrk/u16-width-linebreaks: Likewise.
13454         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13455         * modules/unilbrk/u32-width-linebreaks: Likewise.
13456         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13457         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13458         * modules/uniname/uniname: Likewise.
13459         * modules/uninorm/canonical-decomposition: Likewise.
13460         * modules/uninorm/composition: Likewise.
13461         * modules/uninorm/decomposing-form: Likewise.
13462         * modules/uninorm/decomposition: Likewise.
13463         * modules/uninorm/filter: Likewise.
13464         * modules/uninorm/nfc: Likewise.
13465         * modules/uninorm/nfd: Likewise.
13466         * modules/uninorm/nfkc: Likewise.
13467         * modules/uninorm/nfkd: Likewise.
13468         * modules/uninorm/u8-normalize: Likewise.
13469         * modules/uninorm/u8-normcmp: Likewise.
13470         * modules/uninorm/u8-normcoll: Likewise.
13471         * modules/uninorm/u8-normxfrm: Likewise.
13472         * modules/uninorm/u16-normalize: Likewise.
13473         * modules/uninorm/u16-normcmp: Likewise.
13474         * modules/uninorm/u16-normcoll: Likewise.
13475         * modules/uninorm/u16-normxfrm: Likewise.
13476         * modules/uninorm/u32-normalize: Likewise.
13477         * modules/uninorm/u32-normcmp: Likewise.
13478         * modules/uninorm/u32-normcoll: Likewise.
13479         * modules/uninorm/u32-normxfrm: Likewise.
13480         * modules/unistdio/u8-asnprintf: Likewise.
13481         * modules/unistdio/u8-asprintf: Likewise.
13482         * modules/unistdio/u8-snprintf: Likewise.
13483         * modules/unistdio/u8-sprintf: Likewise.
13484         * modules/unistdio/u8-u8-asnprintf: Likewise.
13485         * modules/unistdio/u8-u8-asprintf: Likewise.
13486         * modules/unistdio/u8-u8-snprintf: Likewise.
13487         * modules/unistdio/u8-u8-sprintf: Likewise.
13488         * modules/unistdio/u8-u8-vasnprintf: Likewise.
13489         * modules/unistdio/u8-u8-vasprintf: Likewise.
13490         * modules/unistdio/u8-u8-vsnprintf: Likewise.
13491         * modules/unistdio/u8-u8-vsprintf: Likewise.
13492         * modules/unistdio/u8-vasnprintf: Likewise.
13493         * modules/unistdio/u8-vasprintf: Likewise.
13494         * modules/unistdio/u8-vsnprintf: Likewise.
13495         * modules/unistdio/u8-vsprintf: Likewise.
13496         * modules/unistdio/u16-asnprintf: Likewise.
13497         * modules/unistdio/u16-asprintf: Likewise.
13498         * modules/unistdio/u16-snprintf: Likewise.
13499         * modules/unistdio/u16-sprintf: Likewise.
13500         * modules/unistdio/u16-u16-asnprintf: Likewise.
13501         * modules/unistdio/u16-u16-asprintf: Likewise.
13502         * modules/unistdio/u16-u16-snprintf: Likewise.
13503         * modules/unistdio/u16-u16-sprintf: Likewise.
13504         * modules/unistdio/u16-u16-vasnprintf: Likewise.
13505         * modules/unistdio/u16-u16-vasprintf: Likewise.
13506         * modules/unistdio/u16-u16-vsnprintf: Likewise.
13507         * modules/unistdio/u16-u16-vsprintf: Likewise.
13508         * modules/unistdio/u16-vasnprintf: Likewise.
13509         * modules/unistdio/u16-vasprintf: Likewise.
13510         * modules/unistdio/u16-vsnprintf: Likewise.
13511         * modules/unistdio/u16-vsprintf: Likewise.
13512         * modules/unistdio/u32-asnprintf: Likewise.
13513         * modules/unistdio/u32-asprintf: Likewise.
13514         * modules/unistdio/u32-snprintf: Likewise.
13515         * modules/unistdio/u32-sprintf: Likewise.
13516         * modules/unistdio/u32-u32-asnprintf: Likewise.
13517         * modules/unistdio/u32-u32-asprintf: Likewise.
13518         * modules/unistdio/u32-u32-snprintf: Likewise.
13519         * modules/unistdio/u32-u32-sprintf: Likewise.
13520         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13521         * modules/unistdio/u32-u32-vasprintf: Likewise.
13522         * modules/unistdio/u32-u32-vsnprintf: Likewise.
13523         * modules/unistdio/u32-u32-vsprintf: Likewise.
13524         * modules/unistdio/u32-vasnprintf: Likewise.
13525         * modules/unistdio/u32-vasprintf: Likewise.
13526         * modules/unistdio/u32-vsnprintf: Likewise.
13527         * modules/unistdio/u32-vsprintf: Likewise.
13528         * modules/unistdio/ulc-asnprintf: Likewise.
13529         * modules/unistdio/ulc-asprintf: Likewise.
13530         * modules/unistdio/ulc-fprintf: Likewise.
13531         * modules/unistdio/ulc-snprintf: Likewise.
13532         * modules/unistdio/ulc-sprintf: Likewise.
13533         * modules/unistdio/ulc-vasnprintf: Likewise.
13534         * modules/unistdio/ulc-vasprintf: Likewise.
13535         * modules/unistdio/ulc-vfprintf: Likewise.
13536         * modules/unistdio/ulc-vsnprintf: Likewise.
13537         * modules/unistdio/ulc-vsprintf: Likewise.
13538         * modules/unistr/u8-check: Likewise.
13539         * modules/unistr/u8-chr: Likewise.
13540         * modules/unistr/u8-cmp: Likewise.
13541         * modules/unistr/u8-cmp2: Likewise.
13542         * modules/unistr/u8-cpy: Likewise.
13543         * modules/unistr/u8-cpy-alloc: Likewise.
13544         * modules/unistr/u8-endswith: Likewise.
13545         * modules/unistr/u8-mblen: Likewise.
13546         * modules/unistr/u8-mbsnlen: Likewise.
13547         * modules/unistr/u8-mbtouc: Likewise.
13548         * modules/unistr/u8-mbtouc-unsafe: Likewise.
13549         * modules/unistr/u8-mbtoucr: Likewise.
13550         * modules/unistr/u8-move: Likewise.
13551         * modules/unistr/u8-next: Likewise.
13552         * modules/unistr/u8-prev: Likewise.
13553         * modules/unistr/u8-set: Likewise.
13554         * modules/unistr/u8-startswith: Likewise.
13555         * modules/unistr/u8-stpcpy: Likewise.
13556         * modules/unistr/u8-stpncpy: Likewise.
13557         * modules/unistr/u8-strcat: Likewise.
13558         * modules/unistr/u8-strchr: Likewise.
13559         * modules/unistr/u8-strcmp: Likewise.
13560         * modules/unistr/u8-strcoll: Likewise.
13561         * modules/unistr/u8-strcpy: Likewise.
13562         * modules/unistr/u8-strcspn: Likewise.
13563         * modules/unistr/u8-strdup: Likewise.
13564         * modules/unistr/u8-strlen: Likewise.
13565         * modules/unistr/u8-strmblen: Likewise.
13566         * modules/unistr/u8-strmbtouc: Likewise.
13567         * modules/unistr/u8-strncat: Likewise.
13568         * modules/unistr/u8-strncmp: Likewise.
13569         * modules/unistr/u8-strncpy: Likewise.
13570         * modules/unistr/u8-strnlen: Likewise.
13571         * modules/unistr/u8-strpbrk: Likewise.
13572         * modules/unistr/u8-strrchr: Likewise.
13573         * modules/unistr/u8-strspn: Likewise.
13574         * modules/unistr/u8-strstr: Likewise.
13575         * modules/unistr/u8-strtok: Likewise.
13576         * modules/unistr/u8-to-u16: Likewise.
13577         * modules/unistr/u8-to-u32: Likewise.
13578         * modules/unistr/u8-uctomb: Likewise.
13579         * modules/unistr/u16-check: Likewise.
13580         * modules/unistr/u16-chr: Likewise.
13581         * modules/unistr/u16-cmp: Likewise.
13582         * modules/unistr/u16-cmp2: Likewise.
13583         * modules/unistr/u16-cpy: Likewise.
13584         * modules/unistr/u16-cpy-alloc: Likewise.
13585         * modules/unistr/u16-endswith: Likewise.
13586         * modules/unistr/u16-mblen: Likewise.
13587         * modules/unistr/u16-mbsnlen: Likewise.
13588         * modules/unistr/u16-mbtouc: Likewise.
13589         * modules/unistr/u16-mbtouc-unsafe: Likewise.
13590         * modules/unistr/u16-mbtoucr: Likewise.
13591         * modules/unistr/u16-move: Likewise.
13592         * modules/unistr/u16-next: Likewise.
13593         * modules/unistr/u16-prev: Likewise.
13594         * modules/unistr/u16-set: Likewise.
13595         * modules/unistr/u16-startswith: Likewise.
13596         * modules/unistr/u16-stpcpy: Likewise.
13597         * modules/unistr/u16-stpncpy: Likewise.
13598         * modules/unistr/u16-strcat: Likewise.
13599         * modules/unistr/u16-strchr: Likewise.
13600         * modules/unistr/u16-strcmp: Likewise.
13601         * modules/unistr/u16-strcoll: Likewise.
13602         * modules/unistr/u16-strcpy: Likewise.
13603         * modules/unistr/u16-strcspn: Likewise.
13604         * modules/unistr/u16-strdup: Likewise.
13605         * modules/unistr/u16-strlen: Likewise.
13606         * modules/unistr/u16-strmblen: Likewise.
13607         * modules/unistr/u16-strmbtouc: Likewise.
13608         * modules/unistr/u16-strncat: Likewise.
13609         * modules/unistr/u16-strncmp: Likewise.
13610         * modules/unistr/u16-strncpy: Likewise.
13611         * modules/unistr/u16-strnlen: Likewise.
13612         * modules/unistr/u16-strpbrk: Likewise.
13613         * modules/unistr/u16-strrchr: Likewise.
13614         * modules/unistr/u16-strspn: Likewise.
13615         * modules/unistr/u16-strstr: Likewise.
13616         * modules/unistr/u16-strtok: Likewise.
13617         * modules/unistr/u16-to-u32: Likewise.
13618         * modules/unistr/u16-to-u8: Likewise.
13619         * modules/unistr/u16-uctomb: Likewise.
13620         * modules/unistr/u32-check: Likewise.
13621         * modules/unistr/u32-chr: Likewise.
13622         * modules/unistr/u32-cmp: Likewise.
13623         * modules/unistr/u32-cmp2: Likewise.
13624         * modules/unistr/u32-cpy: Likewise.
13625         * modules/unistr/u32-cpy-alloc: Likewise.
13626         * modules/unistr/u32-endswith: Likewise.
13627         * modules/unistr/u32-mblen: Likewise.
13628         * modules/unistr/u32-mbsnlen: Likewise.
13629         * modules/unistr/u32-mbtouc: Likewise.
13630         * modules/unistr/u32-mbtouc-unsafe: Likewise.
13631         * modules/unistr/u32-mbtoucr: Likewise.
13632         * modules/unistr/u32-move: Likewise.
13633         * modules/unistr/u32-next: Likewise.
13634         * modules/unistr/u32-prev: Likewise.
13635         * modules/unistr/u32-set: Likewise.
13636         * modules/unistr/u32-startswith: Likewise.
13637         * modules/unistr/u32-stpcpy: Likewise.
13638         * modules/unistr/u32-stpncpy: Likewise.
13639         * modules/unistr/u32-strcat: Likewise.
13640         * modules/unistr/u32-strchr: Likewise.
13641         * modules/unistr/u32-strcmp: Likewise.
13642         * modules/unistr/u32-strcoll: Likewise.
13643         * modules/unistr/u32-strcpy: Likewise.
13644         * modules/unistr/u32-strcspn: Likewise.
13645         * modules/unistr/u32-strdup: Likewise.
13646         * modules/unistr/u32-strlen: Likewise.
13647         * modules/unistr/u32-strmblen: Likewise.
13648         * modules/unistr/u32-strmbtouc: Likewise.
13649         * modules/unistr/u32-strncat: Likewise.
13650         * modules/unistr/u32-strncmp: Likewise.
13651         * modules/unistr/u32-strncpy: Likewise.
13652         * modules/unistr/u32-strnlen: Likewise.
13653         * modules/unistr/u32-strpbrk: Likewise.
13654         * modules/unistr/u32-strrchr: Likewise.
13655         * modules/unistr/u32-strspn: Likewise.
13656         * modules/unistr/u32-strstr: Likewise.
13657         * modules/unistr/u32-strtok: Likewise.
13658         * modules/unistr/u32-to-u16: Likewise.
13659         * modules/unistr/u32-to-u8: Likewise.
13660         * modules/unistr/u32-uctomb: Likewise.
13661         * modules/uniwbrk/u8-wordbreaks: Likewise.
13662         * modules/uniwbrk/u16-wordbreaks: Likewise.
13663         * modules/uniwbrk/u32-wordbreaks: Likewise.
13664         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13665         * modules/uniwbrk/wordbreak-property: Likewise.
13666         * modules/uniwidth/u8-strwidth: Likewise.
13667         * modules/uniwidth/u8-width: Likewise.
13668         * modules/uniwidth/u16-strwidth: Likewise.
13669         * modules/uniwidth/u16-width: Likewise.
13670         * modules/uniwidth/u32-strwidth: Likewise.
13671         * modules/uniwidth/u32-width: Likewise.
13672         * modules/uniwidth/width: Likewise.
13673         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13674         with $(LIBUNISTRING).
13675         * modules/unicase/ignorable-tests: Likewise.
13676         * modules/unicase/locale-language-tests: Likewise.
13677         * modules/unicase/tolower-tests: Likewise.
13678         * modules/unicase/totitle-tests: Likewise.
13679         * modules/unicase/toupper-tests: Likewise.
13680         * modules/unicase/u8-casecmp-tests: Likewise.
13681         * modules/unicase/u8-casecoll-tests: Likewise.
13682         * modules/unicase/u8-casefold-tests: Likewise.
13683         * modules/unicase/u8-is-cased-tests: Likewise.
13684         * modules/unicase/u8-is-casefolded-tests: Likewise.
13685         * modules/unicase/u8-is-lowercase-tests: Likewise.
13686         * modules/unicase/u8-is-titlecase-tests: Likewise.
13687         * modules/unicase/u8-is-uppercase-tests: Likewise.
13688         * modules/unicase/u8-tolower-tests: Likewise.
13689         * modules/unicase/u8-totitle-tests: Likewise.
13690         * modules/unicase/u8-toupper-tests: Likewise.
13691         * modules/unicase/u16-casecmp-tests: Likewise.
13692         * modules/unicase/u16-casecoll-tests: Likewise.
13693         * modules/unicase/u16-casefold-tests: Likewise.
13694         * modules/unicase/u16-is-cased-tests: Likewise.
13695         * modules/unicase/u16-is-casefolded-tests: Likewise.
13696         * modules/unicase/u16-is-lowercase-tests: Likewise.
13697         * modules/unicase/u16-is-titlecase-tests: Likewise.
13698         * modules/unicase/u16-is-uppercase-tests: Likewise.
13699         * modules/unicase/u16-tolower-tests: Likewise.
13700         * modules/unicase/u16-totitle-tests: Likewise.
13701         * modules/unicase/u16-toupper-tests: Likewise.
13702         * modules/unicase/u32-casecmp-tests: Likewise.
13703         * modules/unicase/u32-casecoll-tests: Likewise.
13704         * modules/unicase/u32-casefold-tests: Likewise.
13705         * modules/unicase/u32-is-cased-tests: Likewise.
13706         * modules/unicase/u32-is-casefolded-tests: Likewise.
13707         * modules/unicase/u32-is-lowercase-tests: Likewise.
13708         * modules/unicase/u32-is-titlecase-tests: Likewise.
13709         * modules/unicase/u32-is-uppercase-tests: Likewise.
13710         * modules/unicase/u32-tolower-tests: Likewise.
13711         * modules/unicase/u32-totitle-tests: Likewise.
13712         * modules/unicase/u32-toupper-tests: Likewise.
13713         * modules/unicase/ulc-casecmp-tests: Likewise.
13714         * modules/unicase/ulc-casecoll-tests: Likewise.
13715         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13716         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13717         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13718         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13719         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13720         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13721         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13722         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13723         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13724         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13725         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13726         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13727         * modules/unictype/bidicategory-byname-tests: Likewise.
13728         * modules/unictype/bidicategory-name-tests: Likewise.
13729         * modules/unictype/bidicategory-of-tests: Likewise.
13730         * modules/unictype/bidicategory-test-tests: Likewise.
13731         * modules/unictype/block-list-tests: Likewise.
13732         * modules/unictype/block-of-tests: Likewise.
13733         * modules/unictype/block-test-tests: Likewise.
13734         * modules/unictype/category-C-tests: Likewise.
13735         * modules/unictype/category-Cc-tests: Likewise.
13736         * modules/unictype/category-Cf-tests: Likewise.
13737         * modules/unictype/category-Cn-tests: Likewise.
13738         * modules/unictype/category-Co-tests: Likewise.
13739         * modules/unictype/category-Cs-tests: Likewise.
13740         * modules/unictype/category-L-tests: Likewise.
13741         * modules/unictype/category-Ll-tests: Likewise.
13742         * modules/unictype/category-Lm-tests: Likewise.
13743         * modules/unictype/category-Lo-tests: Likewise.
13744         * modules/unictype/category-Lt-tests: Likewise.
13745         * modules/unictype/category-Lu-tests: Likewise.
13746         * modules/unictype/category-M-tests: Likewise.
13747         * modules/unictype/category-Mc-tests: Likewise.
13748         * modules/unictype/category-Me-tests: Likewise.
13749         * modules/unictype/category-Mn-tests: Likewise.
13750         * modules/unictype/category-N-tests: Likewise.
13751         * modules/unictype/category-Nd-tests: Likewise.
13752         * modules/unictype/category-Nl-tests: Likewise.
13753         * modules/unictype/category-No-tests: Likewise.
13754         * modules/unictype/category-P-tests: Likewise.
13755         * modules/unictype/category-Pc-tests: Likewise.
13756         * modules/unictype/category-Pd-tests: Likewise.
13757         * modules/unictype/category-Pe-tests: Likewise.
13758         * modules/unictype/category-Pf-tests: Likewise.
13759         * modules/unictype/category-Pi-tests: Likewise.
13760         * modules/unictype/category-Po-tests: Likewise.
13761         * modules/unictype/category-Ps-tests: Likewise.
13762         * modules/unictype/category-S-tests: Likewise.
13763         * modules/unictype/category-Sc-tests: Likewise.
13764         * modules/unictype/category-Sk-tests: Likewise.
13765         * modules/unictype/category-Sm-tests: Likewise.
13766         * modules/unictype/category-So-tests: Likewise.
13767         * modules/unictype/category-Z-tests: Likewise.
13768         * modules/unictype/category-Zl-tests: Likewise.
13769         * modules/unictype/category-Zp-tests: Likewise.
13770         * modules/unictype/category-Zs-tests: Likewise.
13771         * modules/unictype/category-and-not-tests: Likewise.
13772         * modules/unictype/category-and-tests: Likewise.
13773         * modules/unictype/category-byname-tests: Likewise.
13774         * modules/unictype/category-name-tests: Likewise.
13775         * modules/unictype/category-none-tests: Likewise.
13776         * modules/unictype/category-of-tests: Likewise.
13777         * modules/unictype/category-or-tests: Likewise.
13778         * modules/unictype/category-test-withtable-tests: Likewise.
13779         * modules/unictype/combining-class-tests: Likewise.
13780         * modules/unictype/ctype-alnum-tests: Likewise.
13781         * modules/unictype/ctype-alpha-tests: Likewise.
13782         * modules/unictype/ctype-blank-tests: Likewise.
13783         * modules/unictype/ctype-cntrl-tests: Likewise.
13784         * modules/unictype/ctype-digit-tests: Likewise.
13785         * modules/unictype/ctype-graph-tests: Likewise.
13786         * modules/unictype/ctype-lower-tests: Likewise.
13787         * modules/unictype/ctype-print-tests: Likewise.
13788         * modules/unictype/ctype-punct-tests: Likewise.
13789         * modules/unictype/ctype-space-tests: Likewise.
13790         * modules/unictype/ctype-upper-tests: Likewise.
13791         * modules/unictype/ctype-xdigit-tests: Likewise.
13792         * modules/unictype/decimal-digit-tests: Likewise.
13793         * modules/unictype/digit-tests: Likewise.
13794         * modules/unictype/mirror-tests: Likewise.
13795         * modules/unictype/numeric-tests: Likewise.
13796         * modules/unictype/property-alphabetic-tests: Likewise.
13797         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
13798         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
13799         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
13800         * modules/unictype/property-bidi-block-separator-tests: Likewise.
13801         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
13802         * modules/unictype/property-bidi-common-separator-tests: Likewise.
13803         * modules/unictype/property-bidi-control-tests: Likewise.
13804         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
13805         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
13806         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
13807         * modules/unictype/property-bidi-european-digit-tests: Likewise.
13808         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
13809         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
13810         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
13811         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
13812         * modules/unictype/property-bidi-pdf-tests: Likewise.
13813         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
13814         * modules/unictype/property-bidi-whitespace-tests: Likewise.
13815         * modules/unictype/property-byname-tests: Likewise.
13816         * modules/unictype/property-combining-tests: Likewise.
13817         * modules/unictype/property-composite-tests: Likewise.
13818         * modules/unictype/property-currency-symbol-tests: Likewise.
13819         * modules/unictype/property-dash-tests: Likewise.
13820         * modules/unictype/property-decimal-digit-tests: Likewise.
13821         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
13822         * modules/unictype/property-deprecated-tests: Likewise.
13823         * modules/unictype/property-diacritic-tests: Likewise.
13824         * modules/unictype/property-extender-tests: Likewise.
13825         * modules/unictype/property-format-control-tests: Likewise.
13826         * modules/unictype/property-grapheme-base-tests: Likewise.
13827         * modules/unictype/property-grapheme-extend-tests: Likewise.
13828         * modules/unictype/property-grapheme-link-tests: Likewise.
13829         * modules/unictype/property-hex-digit-tests: Likewise.
13830         * modules/unictype/property-hyphen-tests: Likewise.
13831         * modules/unictype/property-id-continue-tests: Likewise.
13832         * modules/unictype/property-id-start-tests: Likewise.
13833         * modules/unictype/property-ideographic-tests: Likewise.
13834         * modules/unictype/property-ids-binary-operator-tests: Likewise.
13835         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
13836         * modules/unictype/property-ignorable-control-tests: Likewise.
13837         * modules/unictype/property-iso-control-tests: Likewise.
13838         * modules/unictype/property-join-control-tests: Likewise.
13839         * modules/unictype/property-left-of-pair-tests: Likewise.
13840         * modules/unictype/property-line-separator-tests: Likewise.
13841         * modules/unictype/property-logical-order-exception-tests: Likewise.
13842         * modules/unictype/property-lowercase-tests: Likewise.
13843         * modules/unictype/property-math-tests: Likewise.
13844         * modules/unictype/property-non-break-tests: Likewise.
13845         * modules/unictype/property-not-a-character-tests: Likewise.
13846         * modules/unictype/property-numeric-tests: Likewise.
13847         * modules/unictype/property-other-alphabetic-tests: Likewise.
13848         * modules/unictype/property-other-default-ignorable-code-point-tests:
13849         Likewise.
13850         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
13851         * modules/unictype/property-other-id-continue-tests: Likewise.
13852         * modules/unictype/property-other-id-start-tests: Likewise.
13853         * modules/unictype/property-other-lowercase-tests: Likewise.
13854         * modules/unictype/property-other-math-tests: Likewise.
13855         * modules/unictype/property-other-uppercase-tests: Likewise.
13856         * modules/unictype/property-paired-punctuation-tests: Likewise.
13857         * modules/unictype/property-paragraph-separator-tests: Likewise.
13858         * modules/unictype/property-pattern-syntax-tests: Likewise.
13859         * modules/unictype/property-pattern-white-space-tests: Likewise.
13860         * modules/unictype/property-private-use-tests: Likewise.
13861         * modules/unictype/property-punctuation-tests: Likewise.
13862         * modules/unictype/property-quotation-mark-tests: Likewise.
13863         * modules/unictype/property-radical-tests: Likewise.
13864         * modules/unictype/property-sentence-terminal-tests: Likewise.
13865         * modules/unictype/property-soft-dotted-tests: Likewise.
13866         * modules/unictype/property-space-tests: Likewise.
13867         * modules/unictype/property-terminal-punctuation-tests: Likewise.
13868         * modules/unictype/property-test-tests: Likewise.
13869         * modules/unictype/property-titlecase-tests: Likewise.
13870         * modules/unictype/property-unassigned-code-value-tests: Likewise.
13871         * modules/unictype/property-unified-ideograph-tests: Likewise.
13872         * modules/unictype/property-uppercase-tests: Likewise.
13873         * modules/unictype/property-variation-selector-tests: Likewise.
13874         * modules/unictype/property-white-space-tests: Likewise.
13875         * modules/unictype/property-xid-continue-tests: Likewise.
13876         * modules/unictype/property-xid-start-tests: Likewise.
13877         * modules/unictype/property-zero-width-tests: Likewise.
13878         * modules/unictype/scripts-tests: Likewise.
13879         * modules/unictype/syntax-c-ident-tests: Likewise.
13880         * modules/unictype/syntax-c-whitespace-tests: Likewise.
13881         * modules/unictype/syntax-java-ident-tests: Likewise.
13882         * modules/unictype/syntax-java-whitespace-tests: Likewise.
13883         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
13884         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
13885         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
13886         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
13887         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
13888         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
13889         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
13890         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
13891         * modules/uniname/uniname-tests: Likewise.
13892         * modules/uninorm/canonical-decomposition-tests: Likewise.
13893         * modules/uninorm/compat-decomposition-tests: Likewise.
13894         * modules/uninorm/composition-tests: Likewise.
13895         * modules/uninorm/decomposing-form-tests: Likewise.
13896         * modules/uninorm/decomposition-tests: Likewise.
13897         * modules/uninorm/filter-tests: Likewise.
13898         * modules/uninorm/nfc-tests: Likewise.
13899         * modules/uninorm/nfd-tests: Likewise.
13900         * modules/uninorm/nfkc-tests: Likewise.
13901         * modules/uninorm/nfkd-tests: Likewise.
13902         * modules/uninorm/u8-normcmp-tests: Likewise.
13903         * modules/uninorm/u8-normcoll-tests: Likewise.
13904         * modules/uninorm/u16-normcmp-tests: Likewise.
13905         * modules/uninorm/u16-normcoll-tests: Likewise.
13906         * modules/uninorm/u32-normcmp-tests: Likewise.
13907         * modules/uninorm/u32-normcoll-tests: Likewise.
13908         * modules/unistdio/u8-asnprintf-tests: Likewise.
13909         * modules/unistdio/u8-vasnprintf-tests: Likewise.
13910         * modules/unistdio/u8-vasprintf-tests: Likewise.
13911         * modules/unistdio/u8-vsnprintf-tests: Likewise.
13912         * modules/unistdio/u8-vsprintf-tests: Likewise.
13913         * modules/unistdio/u16-asnprintf-tests: Likewise.
13914         * modules/unistdio/u16-vasnprintf-tests: Likewise.
13915         * modules/unistdio/u16-vasprintf-tests: Likewise.
13916         * modules/unistdio/u16-vsnprintf-tests: Likewise.
13917         * modules/unistdio/u16-vsprintf-tests: Likewise.
13918         * modules/unistdio/u32-asnprintf-tests: Likewise.
13919         * modules/unistdio/u32-vasnprintf-tests: Likewise.
13920         * modules/unistdio/u32-vasprintf-tests: Likewise.
13921         * modules/unistdio/u32-vsnprintf-tests: Likewise.
13922         * modules/unistdio/u32-vsprintf-tests: Likewise.
13923         * modules/unistdio/ulc-asnprintf-tests: Likewise.
13924         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
13925         * modules/unistdio/ulc-vasprintf-tests: Likewise.
13926         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
13927         * modules/unistdio/ulc-vsprintf-tests: Likewise.
13928         * modules/unistr/u8-check-tests: Likewise.
13929         * modules/unistr/u8-chr-tests: Likewise.
13930         * modules/unistr/u8-cmp-tests: Likewise.
13931         * modules/unistr/u8-cmp2-tests: Likewise.
13932         * modules/unistr/u8-cpy-alloc-tests: Likewise.
13933         * modules/unistr/u8-cpy-tests: Likewise.
13934         * modules/unistr/u8-mblen-tests: Likewise.
13935         * modules/unistr/u8-mbsnlen-tests: Likewise.
13936         * modules/unistr/u8-mbtouc-tests: Likewise.
13937         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
13938         * modules/unistr/u8-mbtoucr-tests: Likewise.
13939         * modules/unistr/u8-move-tests: Likewise.
13940         * modules/unistr/u8-next-tests: Likewise.
13941         * modules/unistr/u8-prev-tests: Likewise.
13942         * modules/unistr/u8-set-tests: Likewise.
13943         * modules/unistr/u8-stpcpy-tests: Likewise.
13944         * modules/unistr/u8-stpncpy-tests: Likewise.
13945         * modules/unistr/u8-strcat-tests: Likewise.
13946         * modules/unistr/u8-strcmp-tests: Likewise.
13947         * modules/unistr/u8-strcoll-tests: Likewise.
13948         * modules/unistr/u8-strcpy-tests: Likewise.
13949         * modules/unistr/u8-strdup-tests: Likewise.
13950         * modules/unistr/u8-strlen-tests: Likewise.
13951         * modules/unistr/u8-strmblen-tests: Likewise.
13952         * modules/unistr/u8-strmbtouc-tests: Likewise.
13953         * modules/unistr/u8-strncat-tests: Likewise.
13954         * modules/unistr/u8-strncmp-tests: Likewise.
13955         * modules/unistr/u8-strncpy-tests: Likewise.
13956         * modules/unistr/u8-strnlen-tests: Likewise.
13957         * modules/unistr/u8-to-u16-tests: Likewise.
13958         * modules/unistr/u8-to-u32-tests: Likewise.
13959         * modules/unistr/u8-uctomb-tests: Likewise.
13960         * modules/unistr/u16-check-tests: Likewise.
13961         * modules/unistr/u16-chr-tests: Likewise.
13962         * modules/unistr/u16-cmp-tests: Likewise.
13963         * modules/unistr/u16-cmp2-tests: Likewise.
13964         * modules/unistr/u16-cpy-alloc-tests: Likewise.
13965         * modules/unistr/u16-cpy-tests: Likewise.
13966         * modules/unistr/u16-mblen-tests: Likewise.
13967         * modules/unistr/u16-mbsnlen-tests: Likewise.
13968         * modules/unistr/u16-mbtouc-tests: Likewise.
13969         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
13970         * modules/unistr/u16-mbtoucr-tests: Likewise.
13971         * modules/unistr/u16-move-tests: Likewise.
13972         * modules/unistr/u16-next-tests: Likewise.
13973         * modules/unistr/u16-prev-tests: Likewise.
13974         * modules/unistr/u16-set-tests: Likewise.
13975         * modules/unistr/u16-stpcpy-tests: Likewise.
13976         * modules/unistr/u16-stpncpy-tests: Likewise.
13977         * modules/unistr/u16-strcat-tests: Likewise.
13978         * modules/unistr/u16-strcmp-tests: Likewise.
13979         * modules/unistr/u16-strcoll-tests: Likewise.
13980         * modules/unistr/u16-strcpy-tests: Likewise.
13981         * modules/unistr/u16-strdup-tests: Likewise.
13982         * modules/unistr/u16-strlen-tests: Likewise.
13983         * modules/unistr/u16-strmblen-tests: Likewise.
13984         * modules/unistr/u16-strmbtouc-tests: Likewise.
13985         * modules/unistr/u16-strncat-tests: Likewise.
13986         * modules/unistr/u16-strncmp-tests: Likewise.
13987         * modules/unistr/u16-strncpy-tests: Likewise.
13988         * modules/unistr/u16-strnlen-tests: Likewise.
13989         * modules/unistr/u16-to-u32-tests: Likewise.
13990         * modules/unistr/u16-to-u8-tests: Likewise.
13991         * modules/unistr/u16-uctomb-tests: Likewise.
13992         * modules/unistr/u32-check-tests: Likewise.
13993         * modules/unistr/u32-chr-tests: Likewise.
13994         * modules/unistr/u32-cmp-tests: Likewise.
13995         * modules/unistr/u32-cmp2-tests: Likewise.
13996         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13997         * modules/unistr/u32-cpy-tests: Likewise.
13998         * modules/unistr/u32-mblen-tests: Likewise.
13999         * modules/unistr/u32-mbsnlen-tests: Likewise.
14000         * modules/unistr/u32-mbtouc-tests: Likewise.
14001         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14002         * modules/unistr/u32-mbtoucr-tests: Likewise.
14003         * modules/unistr/u32-move-tests: Likewise.
14004         * modules/unistr/u32-next-tests: Likewise.
14005         * modules/unistr/u32-prev-tests: Likewise.
14006         * modules/unistr/u32-set-tests: Likewise.
14007         * modules/unistr/u32-stpcpy-tests: Likewise.
14008         * modules/unistr/u32-stpncpy-tests: Likewise.
14009         * modules/unistr/u32-strcat-tests: Likewise.
14010         * modules/unistr/u32-strcmp-tests: Likewise.
14011         * modules/unistr/u32-strcoll-tests: Likewise.
14012         * modules/unistr/u32-strcpy-tests: Likewise.
14013         * modules/unistr/u32-strdup-tests: Likewise.
14014         * modules/unistr/u32-strlen-tests: Likewise.
14015         * modules/unistr/u32-strmblen-tests: Likewise.
14016         * modules/unistr/u32-strmbtouc-tests: Likewise.
14017         * modules/unistr/u32-strncat-tests: Likewise.
14018         * modules/unistr/u32-strncmp-tests: Likewise.
14019         * modules/unistr/u32-strncpy-tests: Likewise.
14020         * modules/unistr/u32-strnlen-tests: Likewise.
14021         * modules/unistr/u32-to-u16-tests: Likewise.
14022         * modules/unistr/u32-to-u8-tests: Likewise.
14023         * modules/unistr/u32-uctomb-tests: Likewise.
14024         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14025         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14026         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14027         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14028         * modules/uniwidth/u8-strwidth-tests: Likewise.
14029         * modules/uniwidth/u8-width-tests: Likewise.
14030         * modules/uniwidth/u16-strwidth-tests: Likewise.
14031         * modules/uniwidth/u16-width-tests: Likewise.
14032         * modules/uniwidth/u32-strwidth-tests: Likewise.
14033         * modules/uniwidth/u32-width-tests: Likewise.
14034         * modules/uniwidth/width-tests: Likewise.
14035
14036 2010-05-18  Richard Jones  <rjones@redhat.com>
14037
14038         doc: users.txt: list hivex
14039         * users.txt: Add hivex.
14040
14041 2010-05-18  Richard Jones  <rjones@redhat.com>
14042
14043         doc: users.txt: list febootstrap
14044         * users.txt: Add febootstrap.
14045
14046 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14047
14048         bootstrap: fix an error when gnulib is not used as a git submodule
14049         * build-aux/bootstrap (gnulib_path): If its length is zero then
14050         assign "gnulib" to it.
14051         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14052
14053 2010-05-16  Bruno Haible  <bruno@clisp.org>
14054
14055         Avoid autoconf warnings about AM_ICONV.
14056         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14057         2.64.
14058
14059 2010-05-16  Bruno Haible  <bruno@clisp.org>
14060
14061         absolute-header: Make the macro usable in more situations.
14062         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14063         from gl_ABSOLUTE_HEADER.
14064         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14065
14066 2010-05-16  James Youngman  <jay@gnu.org>
14067
14068         doc: update users.txt
14069         * users.txt: Add CSSC.
14070
14071 2010-05-16  Jim Meyering  <meyering@redhat.com>
14072
14073         init.sh: fix an error in the previous change; add more comments
14074         * tests/init.sh: Compare exit code in loop against 9, not 2.
14075         Patch by Bruno Haible.
14076         Make the two tests more similar by adding an empty "then" clause.
14077         Add comments.
14078
14079         init.sh: avoid unnecessary shell re-exec
14080         * tests/init.sh: Improve the re-exec-required check to first test the
14081         current shell.  If it passes the test, do not search for a shell that
14082         does pass, and do not re-exec.  This test is particularly contorted to
14083         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14084         of $(...) evokes a syntax error and causes immediate shell exit with
14085         status 2.  Bruno Haible reported that the re-exec made it impossible
14086         to single-step through any init.sh-using script.
14087
14088 2010-05-16  Bruno Haible  <bruno@clisp.org>
14089
14090         Fix collision between gnulib's and libintl's printf replacements.
14091         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14092         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14093         (printf): When using GNU C, map the __printf__ function to rpl_printf
14094         via __asm__. When not using GNU C, define rpl_printf instead of
14095         __printf__.
14096         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14097         commit.
14098         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14099         commit.
14100         * m4/asm-underscore.m4: New file.
14101         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14102         * modules/stdio (Files): Add m4/asm-underscore.m4.
14103         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14104         Reported by Ben Pfaff.
14105
14106 2010-05-16  Bruno Haible  <bruno@clisp.org>
14107
14108         verify: Avoid skipping the test on openSUSE 11.0.
14109         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14110
14111 2010-05-13  Bruno Haible  <bruno@clisp.org>
14112
14113         Avoid useless warnings from G++.
14114         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14115         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14116         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14117
14118 2010-05-11  Jim Meyering  <meyering@redhat.com>
14119
14120         maint.mk: tweak preceding change
14121         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14122         regexps tighter by anchoring at EOL, and make the new group "shy"
14123         for slightly decreased overhead.
14124
14125 2010-05-11  Eric Blake  <eblake@redhat.com>
14126
14127         maint.mk: gnulib doesn't guarantee NSIG
14128         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14129
14130 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14131
14132         test-pwrite.c: Remove unused variable declaration.
14133         * tests/test-pwrite.c (main): Remove read_buf declaration.
14134
14135         Remove useless test-pwrite.sh file.
14136         * tests/test-pwrite.sh: Delete file.
14137         * modules/pwrite-tests: Remove references.
14138         Reported by Bruno Haible.
14139
14140 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14141
14142         init.sh: fix a typo
14143         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14144
14145 2010-05-10  Jim Meyering  <meyering@redhat.com>
14146
14147         maint.mk: avoid using a temporary file in the always-defined-macros check
14148         * top/maint.mk (.re-defmac): Remove rule.
14149         (gl_trap_): Remove definition.
14150         (sc_prohibit_always-defined_macros): Rewrite not to create and
14151         depend on a temporary file.  Instead, depend on GNU grep's ability
14152         to read a list of regular expressions from stdin when given "-f -".
14153
14154 2010-05-09  Bruno Haible  <bruno@clisp.org>
14155
14156         Update to GNU gettext 0.18, part 1.
14157         * m4/gettext.m4: Update to GNU gettext 0.18.
14158         * m4/intl.m4: Likewise.
14159         * m4/po.m4: Likewise.
14160         * modules/gettext (Files): Add m4/fcntl-o.m4.
14161         (configure.ac): Require gettext infrastructure from version 0.18.
14162
14163 2010-05-09  Jim Meyering  <meyering@redhat.com>
14164
14165         init.sh: enable MALLOC_PERTURB_
14166         * tests/init.sh: Enable glibc's malloc-perturbing option.
14167
14168         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14169         With my recent change in init.sh from the two-line form:
14170             -#   : ${srcdir=.}
14171             -#   . "$srcdir/init.sh"; path_prepend_ .
14172             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14173         I noticed that using the one-line form would cause this test
14174         to fail with a false-positive, or to stop working altogether,
14175         depending on whether help-version changed or all the tests did.
14176         * top/maint.mk (_hv_regex): Remove this definition.
14177         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14178         (_hv_regex_strong): Use a stronger regex to check for conformance.
14179         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14180         Give a separate diagnostic for lack of conforming use.
14181
14182         maint.mk: prohibit definition of symbols defined by gnulib
14183         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14184         definition of symbols defined by gnulib.
14185
14186 2010-05-09  Bruno Haible  <bruno@clisp.org>
14187
14188         acl: Avoid test failure on Cygwin-hosted mingw.
14189         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14190
14191 2010-05-09  Bruno Haible  <bruno@clisp.org>
14192
14193         error: Use system's fcntl function.
14194         * lib/error.c (fcntl): Undefine.
14195
14196 2010-05-09  Jim Meyering  <meyering@redhat.com>
14197
14198         verify: adjust formatting to be more consistent
14199         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14200         argument-list '('s, and after one comma.
14201
14202 2010-05-09  Bruno Haible  <bruno@clisp.org>
14203
14204         error: More reliable output on mingw.
14205         * lib/error.c: Include <windows.h>.
14206         (is_open): New function.
14207         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14208         defined.
14209
14210 2010-05-09  Bruno Haible  <bruno@clisp.org>
14211
14212         vasnprintf: Fix syntax errors in libintl build on mingw.
14213         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14214         pad_ourselves and prec_ourselves after use.
14215
14216 2010-05-08  Bruno Haible  <bruno@clisp.org>
14217
14218         * lib/config.charset: Update comments for Cygwin 1.7.
14219         * lib/localcharset.c: Likewise.
14220
14221 2010-05-07  Jim Meyering  <meyering@redhat.com>
14222
14223         init.sh: improve comments
14224         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14225         . "${srcdir=.}/init.sh"; path_prepend_ .
14226         Add a note about path_prepend_ and the alternative of using
14227         TESTS_ENVIRONMENT.
14228
14229 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14230
14231         exclude: Unescape hashed patterns in wildcard mode.
14232         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14233         to the hash list.
14234         * tests/test-exclude8.sh: New test case.
14235         * modules/exclude-tests: Add new test.
14236
14237 2010-05-05  Eric Blake  <eblake@redhat.com>
14238
14239         verify: automate tests
14240         * modules/verify-tests: New module.
14241         * tests/test-verify.sh: New file.
14242         * tests/test-verify.c: Guard each negative test with a unique id.
14243         Also avoid warning about unused left hand of comma expressions.
14244
14245 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14246
14247         Further improvements to verify.h, suggested by Eric Blake.
14248         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14249         the GL_* versions, to avoid collision with OpenGL.
14250         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14251         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14252         than testing merely whether it's defined.
14253
14254         Modify verify.h to pacify gcc -Wredundant_decls.
14255         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14256         These use the prefix "GL_" since they're likely to be useful elsewhere.
14257         We may need to break them out into a different .h file.
14258         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14259         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14260         of verify_function__.
14261
14262 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14263
14264         Tests for module pwrite.
14265         * modules/pwrite-tests: New file.
14266         * tests/test-pwrite.sh: New file.
14267         * tests/test-pwrite.c: New file.
14268
14269         New module pwrite.
14270         * lib/unistd.in.h (pwrite): New declaration.
14271         * lib/pwrite.c: New file, from glibc with modifications.
14272         * m4/pwrite.m4: New file.
14273         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14274         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14275         REPLACE_PWRITE.
14276         * modules/pwrite: New file.
14277         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14278         REPLACE_PWRITE.
14279         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14280         * doc/posix-functions/pwrite.texi: Mention the new module.
14281
14282 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14283
14284         pread: Update documentation.
14285         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14286
14287 2010-05-04  Eric Blake  <eblake@redhat.com>
14288
14289         docs: update cygwin progress
14290         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14291         this bug.
14292         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14293         Added in cygwin 1.7.2.
14294         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14295         Likewise.
14296         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14297         Likewise.
14298         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14299         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14300         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14301         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14302         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14303         Mention nproc module.
14304         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14305         bug in cygwin 1.7.5 addition.
14306         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14307         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14308         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14309         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14310         1.7.5.
14311         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14312         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14313         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14314         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14315         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14316         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14317         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14318         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14319         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14320         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14321         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14322         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14323         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14324         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14325         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14326         Likewise.
14327         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14328         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14329         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14330         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14331         Likewise.
14332         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14333         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14334         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14335         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14336         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14337         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14338         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14339         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14340         Likewise.
14341         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14342         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14343         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14344         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14345         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14346         Likewise.
14347         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14348         Likewise.
14349         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14350         Likewise.
14351         * doc/glibc-functions/xdrrec_endofrecord.texi
14352         (xdrrec_endofrecord): Likewise.
14353         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14354         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14355         Likewise.
14356         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14357         Likewise.
14358
14359 2010-05-04  Jim Meyering  <meyering@redhat.com>
14360
14361         gendocs.sh: make its "-s FILE" option more useful
14362         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14363         $PACKAGE to reflect the probably-different basename of "FILE".
14364
14365 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14366
14367         bootstrap: don't ignore download_po_files failure
14368         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14369         failure.
14370
14371 2010-05-03  Jim Meyering  <meyering@redhat.com>
14372
14373         maint.mk: allow to pass options to gendocs.sh
14374         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14375         (gendocs_options_): New overridable variable.
14376
14377         gnu-web-doc-update: don't ignore configure or build failure
14378         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14379
14380         announce-gen: backslash-escape '@'s in --help output
14381         * build-aux/announce-gen: Fix syntax errors.
14382
14383         maint.mk, announce-gen: allow project-specific announcement mail headers
14384         * top/maint.mk (translation_project_): Define default.
14385         (announcement_Cc_, announcement_mail_headers_): Likewise.
14386         (announcement): Invoke announce-gen with new --mail-headers option.
14387         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14388
14389         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14390         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14391         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14392         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14393         line in the "err2" output file when running "make check" in verbose
14394         mode (i.e., with set -x enabled).
14395
14396 2010-05-03  Bruno Haible  <bruno@clisp.org>
14397
14398         wctob: Fix for weird platforms.
14399         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14400         argument value.
14401
14402 2010-05-03  Jim Meyering  <meyering@redhat.com>
14403
14404         maint.mk: prohibit unwarranted use of <strings.h>
14405         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14406         strings.h in a file that does not also use strcasecmp, strncasecmp,
14407         ffs or ffsll.
14408
14409         maint.mk: remove obsolete comments
14410         * top/maint.mk: Remove stale, commented-out rules.
14411
14412 2010-05-02  Bruno Haible  <bruno@clisp.org>
14413
14414         wcwidth: Declare also when it's aliased.
14415         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14416         macro.
14417
14418 2010-05-02  Bruno Haible  <bruno@clisp.org>
14419
14420         Fix regression from 2010-04-25.
14421         * gnulib-tool (func_modules_transitive_closure): Check the status of
14422         all modules, not only of the tests that are of the form foo-tests where
14423         foo is a module.
14424
14425 2010-05-02  Bruno Haible  <bruno@clisp.org>
14426
14427         wctob: Work around nasty Cygwin 1.7.2 bug.
14428         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14429         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14430
14431 2010-05-01  Bruno Haible  <bruno@clisp.org>
14432
14433         fpurge: Sharper test.
14434         * tests/test-fpurge.c (main): Add one more ftell check.
14435         * modules/fpurge-tests (Depends-on): Add ftell.
14436         Suggested by Eric Blake.
14437
14438 2010-05-01  Bruno Haible  <bruno@clisp.org>
14439
14440         ftello: Another test.
14441         * tests/test-ftello3.c: New file.
14442         * modules/ftello-tests (Files): Add it.
14443         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14444         MOSTLYCLEANFILES.
14445
14446         ftell: Another test.
14447         * tests/test-ftell3.c: New file.
14448         * modules/ftell-tests (Files): Add it.
14449         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14450         MOSTLYCLEANFILES.
14451
14452 2010-05-01  Bruno Haible  <bruno@clisp.org>
14453
14454         ftell, ftello: Work around Solaris bug.
14455         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14456         * lib/ftello.c: Include stdio-impl.h.
14457         (ftello): On Solaris, when _IOWRT is set, compute the result without
14458         looking at _IOREAD.
14459         * modules/ftello (Files): Add lib/stdio-impl.h.
14460         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14461         * doc/posix-functions/ftello.texi: Likewise.
14462         Reported by Eric Blake.
14463
14464 2010-05-01  Bruno Haible  <bruno@clisp.org>
14465
14466         freading: Adapt to special meaning of _IOREAD flag on Solaris.
14467         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
14468         the _IOWRT flag is also set.
14469
14470 2010-05-01  Bruno Haible  <bruno@clisp.org>
14471
14472         Fix doc about a HP-UX stdio bug.
14473         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
14474         * doc/posix-functions/ftello.texi: Likewise.
14475
14476 2010-05-01  Bruno Haible  <bruno@clisp.org>
14477
14478         lseek test: Fix failure on Solaris.
14479         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
14480         output.
14481
14482 2010-04-30  Jim Meyering  <meyering@redhat.com>
14483
14484         bootstrap: don't ignore failure to generate po*/Makevars
14485         * build-aux/bootstrap (with_gettext): Don't ignore failure
14486         to create po/Makevars or runtime-po/Makevars.
14487
14488 2010-04-29  Eric Blake  <eblake@redhat.com>
14489
14490         headers: relax license to LGPLv2+
14491         * modules/fcntl-h (License): Relax license.
14492         * modules/getopt-posix (License): Likewise.
14493         * modules/locale (License): Likewise.
14494         * modules/math (License): Likewise.
14495         * modules/pty (License): Likewise.
14496         * modules/sched (License): Likewise.
14497         * modules/search (License): Likewise.
14498         * modules/spawn (License): Likewise.
14499         * modules/stdarg (License): Likewise.
14500         * modules/sysexits (License): Likewise.
14501
14502 2010-04-29  Jim Meyering  <meyering@redhat.com>
14503
14504         inttypes: relax license to LGPLv2+
14505         * modules/inttypes (License): Relax license.
14506
14507 2010-04-29  Simon Josefsson  <simon@josefsson.org>
14508
14509         * top/maint.mk (indent): Run twice to produce idempotent results.
14510
14511 2010-04-28  Bruno Haible  <bruno@clisp.org>
14512
14513         getdate: Generate getdate.c in the source directory.
14514         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
14515         MOSTLYCLEANFILES.
14516         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
14517
14518 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
14519
14520         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14521         is not declared as a const *; avoid warnings in that case.
14522
14523 2010-04-28  Eric Blake  <eblake@redhat.com>
14524
14525         canonicalize-lgpl: avoid compiler warning
14526         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
14527         declaration' / 'extraneous semicolon' warning with some compilers.
14528         Reported by Andreas Gruenbacher.
14529
14530 2010-04-28  Jim Meyering  <meyering@redhat.com>
14531
14532         init.sh: ensure a more reliable exit status when exiting via trap
14533         * tests/init.sh (setup_): Don't rely on $? in signal handler.
14534         Inspired by patches from Dmitry V. Levin.
14535         Also trap on signal 3 (SIGQUIT).
14536
14537 2010-04-27  Bruno Haible  <bruno@clisp.org>
14538
14539         Update doc about utimes().
14540         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
14541         'utimens' module.
14542         Reported by Andreas Gruenbacher <agruen@suse.de>.
14543
14544 2010-04-27  Eric Blake  <eblake@redhat.com>
14545
14546         full-read, full-write: relax license
14547         * modules/full-read (License): Drop to LGPLv2+.
14548         * modules/full-write (License): Likewise.
14549         * modules/safe-read (License): Likewise.
14550         * modules/safe-write (License): Likewise.
14551
14552         pthread: mention library for linking
14553         * modules/pthread (Link): Mention $(LIB_PTHREAD).
14554
14555 2010-04-27  Jim Meyering  <meyering@redhat.com>
14556
14557         maint.mk: fix a bug introduced in last change
14558         * top/maint.mk (gl_assured_headers_): Now that all names are on
14559         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
14560         is not anchored to end of word, it should be adequate.
14561
14562         maint.mk: avoid side-effect in latest syntax-check
14563         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
14564         to run commands via $(shell...), and hence to incur cost only when
14565         the new rule is actually run.
14566
14567         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
14568         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
14569         and use that to create a regexp used to detect all #if HAVE_..._H uses.
14570         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
14571         (gl_assured_headers_, az_, AZ_): Define.
14572         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
14573
14574 2010-04-26  Jim Meyering  <jim@meyering.net>
14575             Bruno Haible  <bruno@clisp.org>
14576
14577         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
14578         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
14579         Prompted by an exchange with Gilles Espinasse.
14580
14581 2010-04-26  Jim Meyering  <meyering@redhat.com>
14582
14583         git-version-gen: aesthetic tweak
14584         * build-aux/git-version-gen: Use "$nl" rather than a literal,
14585         so that the command remains on a single line.
14586
14587 2010-04-26  Eric Blake  <eblake@redhat.com>
14588
14589         git-version-gen: allow use on EBCDIC hosts
14590         * build-aux/git-version-gen (dirty): Use literal rather than tying
14591         ourselves to ascii.
14592         Reported by Steve Goetze.
14593
14594 2010-04-25  Bruno Haible  <bruno@clisp.org>
14595
14596         netdb: Add support for GNULIB_POSIXCHECK.
14597         * lib/netdb.in.h: Include warn-on-use.h.
14598         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
14599         functions are used when GNULIB_POSIXCHECK is defined and the
14600         getaddrinfo module is not in use.
14601         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
14602         freeaddrinfo, gai_strerror, getnameinfo are declared.
14603         * modules/netdb (Depends-on): Add warn-on-use.
14604         (Makefile.am): Include warn-on-use.h in netdb.h.
14605
14606 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
14607
14608         build: avoid "make check" failure without .git/ directory
14609         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
14610         there is no .git/ directory.
14611
14612 2010-04-25  Bruno Haible  <bruno@clisp.org>
14613
14614         ptsname: Fix misuse of ttyname_r.
14615         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
14616         of errno.
14617
14618 2010-04-25  Bruno Haible  <bruno@clisp.org>
14619
14620         ttyname_r: Make it work on Solaris 10.
14621         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
14622         if the system function has the POSIX declaration. Test whether the
14623         function fails if the buffer is less than 128 bytes large.
14624         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
14625         system's ttyname_r function. Provide a reasonably large buffer.
14626         * modules/ttyname_r (Depends-on): Add extensions.
14627         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
14628
14629 2010-04-25  Bruno Haible  <bruno@clisp.org>
14630
14631         Use the 'extensions' module for some more functions on Solaris.
14632         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14633         module.
14634         * doc/posix-functions/ctime_r.texi: Likewise.
14635         * doc/posix-functions/getgrgid_r.texi: Likewise.
14636         * doc/posix-functions/getgrnam_r.texi: Likewise.
14637         * doc/posix-functions/getpwnam_r.texi: Likewise.
14638         * doc/posix-functions/getpwuid_r.texi: Likewise.
14639         * doc/posix-functions/readdir_r.texi: Likewise.
14640         * doc/posix-functions/sigwait.texi: Likewise.
14641         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14642         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14643
14644 2010-04-25  Bruno Haible  <bruno@clisp.org>
14645
14646         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14647         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14648         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14649         * lib/ttyname_r.c: Include <limits.h>.
14650         (ttyname_r): Define using the system's ttyname_r function, if it exists
14651         and not on Solaris.
14652         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14653         set.
14654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14655         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14656         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14657         Reported by Simon Josefsson.
14658
14659 2010-04-25  Bruno Haible  <bruno@clisp.org>
14660
14661         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14662         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14663         * doc/posix-functions/ctime_r.texi: Likewise.
14664         * doc/posix-functions/getgrgid_r.texi: Likewise.
14665         * doc/posix-functions/getgrnam_r.texi: Likewise.
14666         * doc/posix-functions/getlogin_r.texi: Likewise.
14667         * doc/posix-functions/getpwnam_r.texi: Likewise.
14668         * doc/posix-functions/getpwuid_r.texi: Likewise.
14669         * doc/posix-functions/readdir_r.texi: Likewise.
14670         * doc/posix-functions/sigwait.texi: Likewise.
14671         * doc/posix-functions/ttyname_r.texi: Likewise.
14672         Reported by Simon Josefsson.
14673
14674 2010-04-25  Bruno Haible  <bruno@clisp.org>
14675
14676         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14677         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14678         also to --create-testdir.
14679         (func_acceptable): Don't consider the status of *-tests modules here.
14680         (func_modules_transitive_closure): Consider it here, before including a
14681         test module.
14682         (func_import, func_create_testdir): Set inc_all_direct_tests,
14683         inc_all_indirect_tests.
14684         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14685         --create-testdir and --create-megatestdir.
14686
14687 2010-04-25  Bruno Haible  <bruno@clisp.org>
14688
14689         gnulib-tool: Add --without-*-tests options.
14690         * gnulib-tool (func_usage): Document the --without-*-tests options.
14691         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14692         excl_unportable_tests): New variables.
14693         Fail if they are specified with --import or --update.
14694         (func_acceptable): Respect the excl_*_tests variables.
14695         (func_import): Set the excl_*_tests variables to empty.
14696
14697 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14698             Bruno Haible  <bruno@clisp.org>
14699
14700         Work around a MacOS X 10.4 bug with openpty.
14701         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14702         * tests/test-openpty.c (main): Close the master side explicitly.
14703
14704 2010-04-25  Bruno Haible  <bruno@clisp.org>
14705
14706         strnlen: Fix a C++ test error on MacOS X and Solaris.
14707         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14708         the function is not declared.
14709         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14710         Simon Josefsson.
14711
14712 2010-04-24  Bruno Haible  <bruno@clisp.org>
14713
14714         Avoid a gcc warning.
14715         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14716         of correct type for %08lx directive.
14717         Reported by Eric Blake.
14718
14719 2010-04-24  Bruno Haible  <bruno@clisp.org>
14720
14721         vasnprintf: Correct errno value in case of out-of-memory.
14722         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14723         or sprintf. Use the errno value from SNPRINTF or sprintf.
14724         Reported by Ian Beckwith <ianb@erislabs.net>.
14725
14726 2010-04-24  Bruno Haible  <bruno@clisp.org>
14727
14728         ansi-c++-opt: Find correct compiler when cross-compiling.
14729         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14730         AC_CHECK_PROGS.
14731         Reported by Simon Josefsson.
14732
14733 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14734
14735         vc-list-files: Add support for subversion
14736         * build-aux/vc-list-files: Use "svn list" to generate the list of
14737         files controlled by subversion.
14738
14739 2010-04-23  Jim Meyering  <meyering@redhat.com>
14740
14741         vc-list-files tests: convert to use init.sh
14742         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
14743         path_prepend_.
14744         Use Exit, not exit.
14745         Use skip_ rather than open coding it.
14746         Remove trap set-up and compare definitions.
14747         * tests/test-vc-list-files-git.sh: Likewise.
14748         * modules/vc-list-files-tests (Files): Add tests/init.sh.
14749
14750 2010-04-22  Simon Josefsson  <simon@josefsson.org>
14751
14752         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
14753         backup files.
14754
14755 2010-04-21  Simon Josefsson  <simon@josefsson.org>
14756
14757         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
14758
14759 2010-04-20  Eric Blake  <eblake@redhat.com>
14760
14761         tests: be robust to ignored SIGPIPE
14762         * tests/test-select-in.sh: Consume all output.
14763         * tests/test-lseek.sh: Check correct exit status, while avoiding
14764         EPIPE.
14765
14766 2010-04-20  Simon Josefsson  <simon@josefsson.org>
14767             Bruno Haible  <bruno@clisp.org>
14768
14769         visibility: Don't use -fvisibility if it leads to a warning.
14770         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
14771         yes, don't pretend that visibility works if it leads to a warning.
14772         Reported by Mike Gran <spk121@yahoo.com>.
14773
14774 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
14775
14776         * build-aux/bootstrap: Use "git -h" for testing for supported options
14777         instead of "git --help".  The short-form option only shows a summary,
14778         and doesn't layout the full man page.  Grep for the full option name
14779         in the summary, too.
14780
14781 2010-04-19  Bruno Haible  <bruno@clisp.org>
14782
14783         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
14784         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
14785         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
14786         mention of RELOCATABLE_STRIP.
14787         Reported by Sylvain Beucler <beuc@beuc.net>.
14788
14789 2010-04-19  Bruno Haible  <bruno@clisp.org>
14790
14791         * lib/diffseq.h: Fix typo in comment.
14792         Reported by Eric Blake.
14793
14794 2010-04-19  Bruno Haible  <bruno@clisp.org>
14795
14796         ioctl: Move autoconf macro to a .m4 file.
14797         * m4/ioctl.m4: New file, extracted from modules/ioctl.
14798         * modules/ioctl (Files): Add it.
14799         (configure.ac): Simply invoke gl_FUNC_IOCTL.
14800         Reported by Ian Beckwith <ianb@erislabs.net>.
14801
14802 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
14803             Bruno Haible  <bruno@clisp.org>
14804
14805         diffseq: Accommodate use-case with abstract arrays.
14806         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
14807         is not defined.
14808         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
14809         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
14810
14811 2010-04-18  Bruno Haible  <bruno@clisp.org>
14812
14813         * doc/posix-headers/stdbool.texi: More precise wording.
14814
14815 2010-04-17  Jim Meyering  <meyering@redhat.com>
14816
14817         maint.mk: use gnu-style indentation in an embedded perl script
14818         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
14819         Rename variable: s/two/last_two_bytes/
14820
14821 2010-04-16  Eric Blake  <eblake@redhat.com>
14822
14823         test-stdbool: skip test that fails with Solaris CC
14824         * tests/test-stdbool.c (f): Skip test that causes compilation
14825         error under buggy C++ compiler.
14826         * lib/stdbool.in.h: Document the limitation.
14827         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
14828
14829         setenv: allow compilation with C++
14830         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
14831         register keyword.
14832
14833         stdint: allow test to pass with C++
14834         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
14835
14836         getopt: allow compilation with C++
14837         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
14838         struct.
14839         * lib/getopt.c (_getopt_internal_r): Use correct type.
14840         Reported by Dagobert Michelson, via Joel E. Denny.
14841
14842 2010-04-16  Bruno Haible  <bruno@clisp.org>
14843
14844         Override netdb.h always.
14845         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
14846         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
14847         Reported by Ludovic Courtès <ludo@gnu.org>.
14848
14849 2010-04-15  Bruno Haible  <bruno@clisp.org>
14850
14851         openpty: Fix mistake from 2010-03-21.
14852         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
14853         Reported by Simon Josefsson.
14854
14855 2010-04-15  Eric Blake  <eblake@redhat.com>
14856
14857         test-forkpty: fix expected signature
14858         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
14859         Reported by Simon Josefsson.
14860
14861 2010-04-15  Jim Meyering  <meyering@redhat.com>
14862
14863         maint.mk: texinfo_suffix_re_: correct the default regexp
14864         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
14865
14866         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
14867         make it configurable via texinfo_suffix_re_.
14868
14869 2010-04-14  Eric Blake  <eblake@redhat.com>
14870
14871         strtok_r: relax license to LGPLv2+
14872         * modules/strtok_r (License): Relax license.
14873         Reported by Matthias Bolte.
14874
14875 2010-04-14  Simon Josefsson  <simon@josefsson.org>
14876
14877         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
14878         version 1.4.4 by default instead of requiring the libgcrypt
14879         version used during build.  This makes it possible to use the
14880         application with older but still binary compatible libgcrypt
14881         versions.
14882
14883 2010-04-13  Eric Blake  <eblake@redhat.com>
14884
14885         getopt-gnu: match recent glibc fixes and posix ruling
14886         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
14887         '+' handling, when requesting extensions.
14888         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
14889         'W;' handling.
14890         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
14891         * doc/posix-functions/getopt.texi (getopt): Document this.
14892         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14893         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14894         Likewise.
14895
14896         getopt: merge bug fixes from glibc
14897         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
14898         diagnostics.  Honor '+:' correctly.  Reject ';'.
14899
14900         getopt-posix: detect MacOS bug
14901         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
14902         optind when missing a required argument.
14903         * doc/posix-functions/getopt.texi (getopt): Document the bug.
14904         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14905         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14906         Likewise.
14907
14908         getopt-posix: avoid spurious failure on Solaris
14909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
14910         an indicator that setting optind=1 is sufficient for reset.
14911
14912         getopt-posix: avoid spurious failure on FreeBSD
14913         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
14914         in POSIX mode, since the m4 test uses it.
14915
14916         gnulib-tool: silence warning on BSD sh
14917         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
14918
14919 2010-04-13  Jim Meyering  <meyering@redhat.com>
14920
14921         doc: users.txt: GNU patch now uses gnulib
14922         * users.txt: Add patch.
14923
14924 2010-04-12  Jim Meyering  <meyering@redhat.com>
14925
14926         maint.mk: generate more concise timing data for syntax-check rules
14927         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
14928         " done" from each line that reports a syntax-check test duration.
14929
14930 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
14931
14932         git-version-gen: use "git update-index..." rather than "git status"
14933         * build-aux/git-version-gen: Use git update-index --refresh, not
14934         "git status".  With some versions of git, "git status" would fail
14935         to update the index and result in an unwarranted "-dirty" suffix.
14936
14937 2010-04-11  Jim Meyering  <meyering@redhat.com>
14938
14939         openat: correct formatting (no semantic change)
14940         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
14941         Suggested by Bruno Haible.
14942
14943 2010-04-11  Bruno Haible  <bruno@clisp.org>
14944
14945         Stricter declaration checking in testdirs.
14946         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14947         If for_tests is true, augment AM_CPPFLAGS to define
14948         GNULIB_STRICT_CHECKING.
14949         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
14950         GNULIB_STRICT_CHECKING is defined, verify that the function is
14951         declared.
14952
14953 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
14954             Bruno Haible  <bruno@clisp.org>
14955
14956         libunistring: Improve configure output.
14957         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
14958         Don't say "consider installing GNU libunistring" when checking again
14959         with libiconv.
14960
14961 2010-04-11  Bruno Haible  <bruno@clisp.org>
14962
14963         libunistring: Correct value of $LTLIBUNISTRING.
14964         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
14965         correct the value of $LTLIBUNISTRING.
14966
14967 2010-04-11  Bruno Haible  <bruno@clisp.org>
14968
14969         havelib: Add static libraries to LIBS in the right order.
14970         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
14971         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
14972
14973 2010-04-11  Bruno Haible  <bruno@clisp.org>
14974
14975         libunistring: Detect libunistring also when it depends on libiconv.
14976         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
14977         the second AC_LIB_HAVE_LINKFLAGS invocation.
14978
14979 2010-04-11  James Youngman  <jay@gnu.org>
14980
14981         close-stream: declare local scalars to be "const"
14982         * lib/close-stream.c (close_stream): Make boolean variables const
14983         to document the fact that we set but do not change them.
14984
14985 2010-04-11  Bruno Haible  <bruno@clisp.org>
14986
14987         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14988
14989 2010-04-11  Jim Meyering  <meyering@redhat.com>
14990
14991         maint.mk: don't include dist-check.mk
14992         * top/maint.mk: Remove bogus include directive.
14993
14994         maint.mk: improve empty-line-at-EOF check
14995         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14996         solution, rather than tail+Perl-based one.  The latter would read
14997         a few kilobytes from the end of each file, and did not handle empty
14998         files properly.
14999
15000         maint.mk: print the elapsed time for each syntax-check rule
15001         * top/maint.mk (sc_m_rules_): Save start time in a file.
15002         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15003         (local-check): Interpose the .z rules
15004
15005 2010-04-11  Jim Meyering  <meyering@redhat.com>
15006
15007         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15008         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15009         empty file with one that ends in an empty line.
15010
15011 2010-04-10  Bruno Haible  <bruno@clisp.org>
15012
15013         mkdir: Make it work on mingw64.
15014         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15015         * lib/mkdir.c: Update comment.
15016         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15017
15018 2010-04-10  Bruno Haible  <bruno@clisp.org>
15019
15020         Don't override improved macro from newer autoconf.
15021         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15022         autoconf >= 2.62.
15023         Reported by Joel E. Denny <jdenny@clemson.edu>.
15024
15025 2010-04-10  Jim Meyering  <meyering@redhat.com>
15026
15027         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15028         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15029
15030         maint.mk: correct a diagnostic
15031         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15032         in diagnostic; now use $prohibit.
15033
15034 2010-04-10  Bruno Haible  <address@hidden>
15035
15036         fchownat: Fix a C++ test error on Solaris 8.
15037         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15038         the function does not exist.
15039
15040 2010-04-10  Bruno Haible  <bruno@clisp.org>
15041
15042         vasnprintf: Add more tests.
15043         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15044         (test_function): Test converting an invalid wide string.
15045
15046         vasnprintf: Correct handling of unconvertible wide string arguments.
15047         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15048         VASNPRINTF.
15049         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15050         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15051         smaller than the expected maximum need for the directive. Set errno to
15052         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15053         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15055         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15056         * modules/vasnprintf (Files): Add m4/printf.m4.
15057         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15058
15059 2010-04-10  Bruno Haible  <bruno@clisp.org>
15060
15061         vasnprintf: Fix crash in %ls directive.
15062         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15063         string is passed as argument to %ls, with no precision and no width.
15064         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15065
15066 2010-04-10  Bruno Haible  <bruno@clisp.org>
15067
15068         vasnprintf: Fix multiple test failures on mingw.
15069         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15070         _snprintf, or snwprintf, not _snwprintf.
15071
15072 2010-04-10  Bruno Haible  <bruno@clisp.org>
15073
15074         write: Fix a C++ test error on mingw.
15075         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15076
15077 2010-04-10  Bruno Haible  <bruno@clisp.org>
15078
15079         vasnprintf test: Reduce code duplication.
15080         * tests/test-vasnprintf.c (test_function): New function, extracted from
15081         test_vasnprintf.
15082         (test_vasnprintf, test_asnprintf): Invoke it.
15083
15084 2010-04-10  Bruno Haible  <bruno@clisp.org>
15085
15086         strnlen: Fix warning in C++ mode on MacOS X.
15087         * lib/string.in.h (strnlen): Use the modern idiom.
15088         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15089         defining strnlen as a macro already in <config.h>.
15090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15091         REPLACE_STRNLEN.
15092         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15093         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15094
15095 2010-04-08  James Youngman  <jay@gnu.org>
15096
15097         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15098         the example.
15099
15100 2010-04-09  Jim Meyering  <meyering@redhat.com>
15101
15102         maint.mk: print better diagnostic when there is no $(_hv_file)
15103         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15104         announce that when $(_hv_file) (aka help-version) does not exist.
15105
15106         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15107         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15108         not try to interpret its random input bytes.  Jarno Rajahalme reported
15109         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15110         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15111         (mktempd_): Likewise, just in case.
15112
15113         ftruncate: add two years to projected module removal date: 2012
15114         * m4/ftruncate.m4: Adjust comments.
15115
15116         ftruncate: mark module as obsolete; even MinGW provides it, now
15117         * modules/ftruncate (Status): Obsolete.
15118         (Notice): Say that.
15119         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15120         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15121
15122 2010-04-08  Bruno Haible  <bruno@clisp.org>
15123
15124         Fix side effects from tests-related modules.
15125         * modules/dprintf-posix (Comment): New section.
15126         * modules/fprintf-posix (Comment): Likewise.
15127         * modules/obstack-printf-posix (Comment): Likewise.
15128         * modules/printf-posix (Comment): Likewise.
15129         * modules/snprintf-posix (Comment): Likewise.
15130         * modules/sprintf-posix (Comment): Likewise.
15131         * modules/vasnprintf-posix (Comment): Likewise.
15132         * modules/vasprintf-posix (Comment): Likewise.
15133         * modules/vdprintf-posix (Comment): Likewise.
15134         * modules/vfprintf-posix (Comment): Likewise.
15135         * modules/vprintf-posix (Comment): Likewise.
15136         * modules/vsnprintf-posix (Comment): Likewise.
15137         * modules/vsprintf-posix (Comment): Likewise.
15138         * modules/xprintf-posix (Comment): Likewise.
15139         * modules/xvasprintf-posix (Comment): Likewise.
15140         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15141         * modules/floorf-tests (Depends-on): Likewise.
15142         * modules/round-tests (Depends-on): Likewise.
15143         * modules/roundf-tests (Depends-on): Likewise.
15144         * modules/trunc-tests (Depends-on): Likewise.
15145         * modules/truncf-tests (Depends-on): Likewise.
15146         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15147         'fprintf-posix' module is not present.
15148         * tests/test-floorf2.c (check): Likewise.
15149         * tests/test-trunc2.c (check): Likewise.
15150         * tests/test-truncf2.c (check): Likewise.
15151         * tests/test-round2.c (equal): Likewise.
15152         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15153
15154 2010-04-07  Karl Berry  <karl@gnu.org>
15155
15156         * config/srclist.txt,
15157         * config/srclistvars.sh,
15158         * config/srclist-update: doc fixes.
15159
15160 2010-04-07  Jim Meyering  <meyering@redhat.com>
15161
15162         maint.mk: add a PATH crosschecking syntax-check rule
15163         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15164         Useful if you use a test like the one in help-version (coreutils,
15165         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15166         printed by prog --version.
15167
15168 2010-04-06  Bruno Haible  <bruno@clisp.org>
15169
15170         Fix link error on mingw.
15171         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15172         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15173
15174 2010-04-06  Bruno Haible  <bruno@clisp.org>
15175
15176         Assume rmdir exists.
15177         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15178
15179 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15180
15181         doc: update users.txt
15182         * users.txt: Add gcal.
15183
15184 2010-04-06  Jim Meyering  <meyering@redhat.com>
15185
15186         init.sh: simply unset TMPDIR rather than risking env -i
15187         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15188         although it probably works fine on all Unix-based systems, some
15189         systems (Cygwin?) cannot tolerate a totally cleared environment.
15190         Suggestion from Eric Blake.
15191
15192 2010-04-06  Jim Meyering  <meyering@redhat.com>
15193
15194         init.sh: portability fix: use env's POSIX-specified -i option not -u
15195         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15196         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15197
15198 2010-04-05  Bruno Haible  <bruno@clisp.org>
15199
15200         btowc: Work around Cygwin 1.7.2 bug.
15201         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15202         does not map NUL to 0.
15203         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15204
15205 2010-04-05  Bruno Haible  <bruno@clisp.org>
15206
15207         Make the multithread modules work on Cygwin 1.7.2.
15208         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15209         imported symbols can be declared weak, so that it returns "no" on
15210         Cygwin 1.7.2.
15211
15212 2010-04-05  Bruno Haible  <bruno@clisp.org>
15213
15214         Use the module 'strncat'.
15215         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15216
15217         Tests for module 'strncat'.
15218         * modules/strncat-tests: New file.
15219         * tests/test-strncat.c: New file.
15220
15221         New module 'strncat'.
15222         * lib/string.in.h (strncat): New declaration.
15223         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15224         * m4/strncat.m4: New file, based on m4/memchr.m4.
15225         * modules/strncat: New file.
15226         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15227         is declared.
15228         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15229         REPLACE_STRNCAT.
15230         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15231         REPLACE_STRNCAT.
15232         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15233         module.
15234         * tests/test-string-c++.cc: Check signature of strncat.
15235
15236 2010-04-05  Jim Meyering  <meyering@redhat.com>
15237
15238         xstrtoumax-tests: convert to use init.sh
15239         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15240         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15241         Use Exit, not exit.
15242         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15243
15244         xstrtoimax-tests: convert to use init.sh
15245         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15246         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15247         Use Exit, not exit.
15248         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15249
15250 2010-04-05  Bruno Haible  <bruno@clisp.org>
15251
15252         sys_socket: Avoid #define replacements in C++ mode.
15253         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15254         warning to the function if possible, rather than #defining the symbol
15255         to a dysfunctional alias.
15256
15257 2010-04-05  Bruno Haible  <bruno@clisp.org>
15258
15259         fseeko: Fix C++ test error on mingw.
15260         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15261         gl_FUNC_FSEEKO.
15262         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15263         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15264         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15265         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15266
15267 2010-04-05  Bruno Haible  <bruno@clisp.org>
15268
15269         duplocale: Improve test output.
15270         * tests/test-duplocale.c (main): Print reason for skipped test.
15271
15272 2010-04-05  Bruno Haible  <bruno@clisp.org>
15273
15274         Assume rmdir exists.
15275         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15276         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15277
15278 2010-04-05  Bruno Haible  <bruno@clisp.org>
15279
15280         Fix link error on Solaris 8 with cc.
15281         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15282
15283 2010-04-05  Bruno Haible  <bruno@clisp.org>
15284
15285         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15286         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15287
15288 2010-04-05  Bruno Haible  <bruno@clisp.org>
15289
15290         vasprintf: Update documentation.
15291         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15292
15293 2010-04-05  Bruno Haible  <bruno@clisp.org>
15294
15295         ptsname: Improve test.
15296         * tests/test-ptsname.c (main): Also try the various master names of BSD
15297         systems.
15298
15299 2010-04-05  Bruno Haible  <bruno@clisp.org>
15300
15301         memchr: Avoid a possible C++ test error.
15302         * lib/string.in.h (memchr): Provide declaration if function is missing.
15303         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15304         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15305         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15306         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15307
15308 2010-04-05  Bruno Haible  <bruno@clisp.org>
15309
15310         strtok_r: Improve idiom.
15311         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15312         AC_LIBOBJ is used.
15313
15314 2010-04-05  Bruno Haible  <bruno@clisp.org>
15315
15316         strdup: Improve idiom.
15317         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15318         AC_LIBOBJ is used.
15319         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15320         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15321         when AC_LIBOBJ is used.
15322
15323 2010-04-05  Bruno Haible  <bruno@clisp.org>
15324
15325         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15326         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15327         don't set REPLACE_MBSINIT to 1.
15328         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15329         don't set REPLACE_MBRTOWC to 1.
15330         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15331         exist, don't set REPLACE_MBSRTOWCS to 1.
15332         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15333         exist, don't set REPLACE_MBSNRTOWCS to 1.
15334         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15335         don't set REPLACE_WCRTOMB to 1.
15336         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15337         exist, don't set REPLACE_WCSRTOMBS to 1.
15338         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15339         exist, don't set REPLACE_WCSNRTOMBS to 1.
15340
15341 2010-04-05  Bruno Haible  <bruno@clisp.org>
15342
15343         ldexpl: Improve idiom.
15344         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15345         make sure to set HAVE_DECL_LDEXPL to 0.
15346
15347 2010-04-05  Jim Meyering  <meyering@redhat.com>
15348
15349         xstrtol-tests: convert to use init.sh
15350         * modules/xstrtol-tests (Files): Add tests/init.sh.
15351         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15352         Use Exit, not exit.
15353         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15354
15355         atexit-tests: convert to use init.sh
15356         * modules/atexit-tests (Files): Add tests/init.sh.
15357         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15358         Use Exit, not exit.
15359         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15360
15361         init.sh: fix typo
15362         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15363
15364         init.sh: make it easier for a test script to write to the tty, ...
15365         when using automake's parallel-tests mode.
15366         * tests/init.sh (stderr_fileno_): Define overridable variable.
15367         (warn_): New function, to use it.
15368         (fail_, skip_, framework_failure_): Use warn_.
15369
15370 2010-04-04  Bruno Haible  <bruno@clisp.org>
15371
15372         btowc: Avoid warning.
15373         * lib/btowc.c: Include <stdlib.h>.
15374         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15375
15376 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15377             Bruno Haible  <bruno@clisp.org>
15378
15379         wchar: Port to NetBSD 1.5.
15380         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15381         * lib/wctype.in.h (WEOF): Likewise.
15382
15383 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15384             Bruno Haible  <bruno@clisp.org>
15385
15386         Port extended stdio to NetBSD 1.5.
15387         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15388         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15389         older.
15390
15391 2010-04-04  Bruno Haible  <bruno@clisp.org>
15392
15393         string: Remove unused substitution.
15394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15395         HAVE_DECL_STRERROR.
15396         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15397
15398 2010-04-04  Bruno Haible  <bruno@clisp.org>
15399
15400         strtod: Avoid a possible C++ test error.
15401         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15402         set REPLACE_STRTOD.
15403
15404 2010-04-04  Bruno Haible  <bruno@clisp.org>
15405
15406         strerror: Update documentation.
15407         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15408
15409 2010-04-04  Bruno Haible  <bruno@clisp.org>
15410
15411         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15412         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15413         _GL_CXXALIAS_SYS_CAST.
15414
15415 2010-04-04  Bruno Haible  <bruno@clisp.org>
15416
15417         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15418         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15419         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15420         REPLACE_FREXPL to 1.
15421         * doc/posix-functions/frexpl.texi: Update documentation.
15422
15423 2010-04-04  Bruno Haible  <bruno@clisp.org>
15424
15425         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15426         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15427
15428 2010-04-04  Bruno Haible  <bruno@clisp.org>
15429
15430         Implement nanosleep for native Windows.
15431         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15432
15433 2010-04-04  Bruno Haible  <bruno@clisp.org>
15434
15435         math: Fix some C++ test errors on Solaris 8.
15436         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15437
15438 2010-04-04  Bruno Haible  <bruno@clisp.org>
15439
15440         math: Fix some C++ test errors on Cygwin.
15441         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15442         truncl): Provide declaration if the system does not have it.
15443         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15444         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15445         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15446         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15447         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15448         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15449         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15450         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15451         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15452         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15453         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15454         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15455         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15456         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15457         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15458         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15460         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15461         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15462         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
15463         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15464         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15465
15466 2010-04-04  Bruno Haible  <bruno@clisp.org>
15467
15468         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
15469         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15470         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15471         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15472         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15473         * m4/isinf.m4 (gl_ISINF): Likewise.
15474         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15475
15476 2010-04-04  Bruno Haible  <bruno@clisp.org>
15477
15478         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
15479         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15480
15481 2010-04-04  Bruno Haible  <bruno@clisp.org>
15482
15483         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
15484         * modules/tmpfile (configure.ac): Update.
15485
15486         tmpfile: Fix C++ test error on mingw.
15487         * lib/stdio.in.h (tmpfile): New declaration.
15488         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
15489         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
15490         * modules/tmpfile (Depends-on): Add stdio.
15491         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15492         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
15493         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
15494         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
15495         REPLACE_TMPFILE.
15496         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
15497
15498 2010-04-04  Bruno Haible  <bruno@clisp.org>
15499
15500         ioctl: Fix C++ test error on mingw.
15501         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
15502         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
15503         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
15504
15505 2010-04-03  Bruno Haible  <bruno@clisp.org>
15506
15507         wcwidth: Fix C++ test error on mingw.
15508         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
15509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
15510         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
15511
15512 2010-04-03  Bruno Haible  <bruno@clisp.org>
15513
15514         nanosleep: Fix C++ test error on mingw.
15515         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
15516         * lib/time.in.h (nanosleep): Use modern idiom.
15517         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
15518         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
15519         REPLACE_NANOSLEEP to 1.
15520         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15521         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
15522
15523 2010-04-03  Bruno Haible  <bruno@clisp.org>
15524
15525         strptime: Fix C++ test error on mingw.
15526         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
15527         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
15528         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
15529         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
15530         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
15531         not REPLACE_STRPTIME.
15532         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
15533         REPLACE_STRPTIME.
15534
15535 2010-04-03  Bruno Haible  <bruno@clisp.org>
15536
15537         timegm: Fix C++ test error on mingw.
15538         * lib/time.in.h (timegm): Use modern idiom.
15539         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
15540         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
15541         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
15542         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
15543
15544 2010-04-03  Bruno Haible  <bruno@clisp.org>
15545
15546         timegm: Assume declaration if function exists.
15547         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
15548         if it exists. Don't clobber ac_cv_func_timegm.
15549
15550 2010-04-03  Bruno Haible  <bruno@clisp.org>
15551
15552         time_r: Fix C++ test error on mingw.
15553         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
15554         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
15555         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
15556         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
15557         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15558
15559 2010-04-03  Bruno Haible  <bruno@clisp.org>
15560
15561         time_r: Minor updates.
15562         * modules/time_r (Description): Mention the provided functions.
15563         * lib/time_r.c: Don't include <string.h>.
15564         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
15565         * doc/posix-functions/localtime_r.texi: Likewise.
15566
15567 2010-04-03  Bruno Haible  <bruno@clisp.org>
15568
15569         time: Fix regression introduced on 2010-03-08.
15570         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
15571         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
15572
15573 2010-04-03  Jim Meyering  <meyering@redhat.com>
15574
15575         maint.mk: don't silently disable project-specific syntax-check rules
15576         * top/maint.mk (_prohibit_regexp): Define, to help people realize
15577         that they need to convert their project-specific syntax-check rules
15578         to use the new _sc_search_regexp.
15579
15580 2010-04-03  Bruno Haible  <bruno@clisp.org>
15581
15582         fchdir: Fix regression introduced on 2010-03-08.
15583         * lib/unistd.in.h (fchdir): Fix declaration.
15584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
15585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
15586         REPLACE_FCHDIR.
15587         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
15588         REPLACE_FCHDIR.
15589
15590 2010-04-03  Bruno Haible  <bruno@clisp.org>
15591
15592         getpagesize: Fix C++ test error on mingw.
15593         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
15594         system does not declare the function.
15595         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
15596         declared.
15597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15598         HAVE_DECL_GETPAGESIZE.
15599         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
15600
15601 2010-04-03  Bruno Haible  <bruno@clisp.org>
15602
15603         stdio: Make C++ tests work on mingw.
15604         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
15605         does not declare the function.
15606
15607 2010-04-03  Bruno Haible  <bruno@clisp.org>
15608
15609         ftello: Fix C++ test error on mingw.
15610         * lib/stdio.in.h (ftello): Use modern idiom.
15611         * lib/ftello.c (ftello): Renamed from rpl_ftello.
15612         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
15613         is missing and that it needs to be replaced.
15614         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
15615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
15616         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
15617
15618 2010-04-03  Bruno Haible  <bruno@clisp.org>
15619
15620         fseeko: Fix C++ test error on mingw.
15621         * lib/stdio.in.h (fseeko): Use modern idiom.
15622         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
15623         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
15624         is missing and that it needs to be replaced.
15625         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
15626         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
15627         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
15628
15629 2010-04-03  Bruno Haible  <bruno@clisp.org>
15630
15631         mkstemp: Fix C++ test error on mingw.
15632         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15633         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15634         function is missing and that it needs to be replaced.
15635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15636         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15637
15638 2010-04-03  Bruno Haible  <bruno@clisp.org>
15639
15640         stpncpy: Fix C++ test error on mingw.
15641         * lib/string.in.h (stpncpy): Use modern idiom.
15642         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15643         function is missing and that it needs to be replaced.
15644         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15645         REPLACE_STPNCPY.
15646         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15647
15648 2010-04-03  Bruno Haible  <bruno@clisp.org>
15649
15650         sys_stat: Fix C++ test error on mingw.
15651         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15652         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15653
15654 2010-04-03  Bruno Haible  <bruno@clisp.org>
15655
15656         pty: Update doc.
15657         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15658
15659 2010-04-03  Bruno Haible  <bruno@clisp.org>
15660
15661         unistd: Fix C++ test error on mingw.
15662         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15663
15664 2010-04-03  Bruno Haible  <bruno@clisp.org>
15665
15666         Update doc regarding mingw.
15667         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15668         * doc/glibc-functions/login_tty.texi: Likewise.
15669         * doc/glibc-functions/forkpty.texi: Likewise.
15670
15671 2010-04-03  Bruno Haible  <bruno@clisp.org>
15672
15673         stdlib: Avoid compilation failure of c-strtold on mingw.
15674         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15675
15676 2010-04-03  Bruno Haible  <bruno@clisp.org>
15677
15678         locale: Make C++ tests work on Cygwin and mingw.
15679         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15680         cannot provide the function.
15681         Reported by Simon Josefsson.
15682
15683 2010-04-03  Bruno Haible  <bruno@clisp.org>
15684
15685         localename: Port to MacOS X 10.6.
15686         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15687         memory layout of the locales in MacOS X 10.6 as well.
15688         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15689
15690 2010-04-02  Bruno Haible  <bruno@clisp.org>
15691
15692         gnulib-tool: Ensure that long-running tests are executed last.
15693         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15694         running tests after the one for the other tests.
15695
15696 2010-04-02  Bruno Haible  <bruno@clisp.org>
15697
15698         gnulib-tool: Ensure the tests in the main directory are executed first.
15699         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15700         start with the current directory.
15701
15702 2010-04-02  Bruno Haible  <bruno@clisp.org>
15703
15704         Tests for module 'havelib', moved here from GNU gettext.
15705         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15706         modifications.
15707         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15708         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15709         with modifications.
15710         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15711         modifications.
15712         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15713         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15714         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15715         with modifications.
15716         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15717         with modifications.
15718         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15719         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15720         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15721         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15722         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15723         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15724         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15725         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15726         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15727         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15728         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15729         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15730         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15731         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15732         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15733         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15734         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15735         with modifications.
15736         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
15737         with modifications.
15738         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
15739         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
15740         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
15741         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
15742         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
15743         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
15744         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
15745         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
15746         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
15747         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
15748         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
15749         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
15750         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
15751         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
15752         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
15753         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
15754         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
15755         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
15756         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
15757         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
15758         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
15759         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
15760         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
15761         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
15762         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
15763         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
15764         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
15765         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
15766         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
15767         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
15768         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
15769         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
15770         * tests/havelib/rpathx/rpathx.c: New file, from
15771         gettext/autoconf-lib-link.
15772         * tests/havelib/rpathx/Makefile.am: New file, from
15773         gettext/autoconf-lib-link.
15774         * tests/havelib/rpathx/configure.ac: New file, from
15775         gettext/autoconf-lib-link with modifications.
15776         * tests/havelib/rpathy/rpathy.c: New file, from
15777         gettext/autoconf-lib-link.
15778         * tests/havelib/rpathy/Makefile.am: New file, from
15779         gettext/autoconf-lib-link.
15780         * tests/havelib/rpathy/configure.ac: New file, from
15781         gettext/autoconf-lib-link with modifications.
15782         * tests/havelib/rpathz/rpathz.c: New file, from
15783         gettext/autoconf-lib-link.
15784         * tests/havelib/rpathz/Makefile.am: New file, from
15785         gettext/autoconf-lib-link.
15786         * tests/havelib/rpathz/configure.ac: New file, from
15787         gettext/autoconf-lib-link with modifications.
15788         * tests/havelib/rpathlx/usex.c: New file, from
15789         gettext/autoconf-lib-link.
15790         * tests/havelib/rpathlx/Makefile.am: New file, from
15791         gettext/autoconf-lib-link.
15792         * tests/havelib/rpathlx/configure.ac: New file, from
15793         gettext/autoconf-lib-link with modifications.
15794         * tests/havelib/rpathly/usey.c: New file, from
15795         gettext/autoconf-lib-link.
15796         * tests/havelib/rpathly/Makefile.am: New file, from
15797         gettext/autoconf-lib-link.
15798         * tests/havelib/rpathly/configure.ac: New file, from
15799         gettext/autoconf-lib-link with modifications.
15800         * tests/havelib/rpathlz/usez.c: New file, from
15801         gettext/autoconf-lib-link.
15802         * tests/havelib/rpathlz/Makefile.am: New file, from
15803         gettext/autoconf-lib-link.
15804         * tests/havelib/rpathlz/configure.ac: New file, from
15805         gettext/autoconf-lib-link with modifications.
15806         * tests/havelib/rpathlyx/usey.c: New file, from
15807         gettext/autoconf-lib-link.
15808         * tests/havelib/rpathlyx/Makefile.am: New file, from
15809         gettext/autoconf-lib-link.
15810         * tests/havelib/rpathlyx/configure.ac: New file, from
15811         gettext/autoconf-lib-link with modifications.
15812         * tests/havelib/rpathlzyx/usez.c: New file, from
15813         gettext/autoconf-lib-link.
15814         * tests/havelib/rpathlzyx/Makefile.am: New file, from
15815         gettext/autoconf-lib-link.
15816         * tests/havelib/rpathlzyx/configure.ac: New file, from
15817         gettext/autoconf-lib-link with modifications.
15818         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
15819         with modifications.
15820
15821 2010-04-02  Bruno Haible  <bruno@clisp.org>
15822
15823         gnulib-tool: Create distributed built sources also for the tests.
15824         * gnulib-tool (func_create_testdir): Also generate distributed built
15825         sources in the tests directory.
15826
15827 2010-04-02  Bruno Haible  <bruno@clisp.org>
15828
15829         gnulib-tool: Obey user's environment variables.
15830         * gnulib-tool (func_create_testdir): When creating built sources,
15831         respect the environment variables for autoconf, automake, etc. given by
15832         the user.
15833
15834 2010-04-02  Bruno Haible  <bruno@clisp.org>
15835
15836         gnulib-tool: Provide the value of --m4-base to modules.
15837         * gnulib-tool (func_import, func_create_testdir): Emit a definition
15838         of gl_m4_base.
15839
15840 2010-04-02  Eric Blake  <eblake@redhat.com>
15841
15842         maint.mk: fix some fallout
15843         * NEWS: Document the incompatible change, and its effect on cfg.mk.
15844         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
15845
15846 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15847
15848         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
15849         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
15850         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
15851         (sc_cast_of_x_alloc_return_value): Likewise.
15852         (sc_cast_of_alloca_return_value): Likewise.
15853         (sc_space_tab): Likewise.
15854         (sc_prohibit_atoi_atof): Likewise.
15855         (sc_prohibit_magic_number_exit): Likewise.
15856         (sc_error_exit_success): Likewise.
15857         (sc_file_system): Likewise.
15858         (sc_prohibit_have_config_h): Likewise.
15859         (sc_require_config_h): Likewise.
15860         (sc_prohibit_HAVE_MBRTOWC): Likewise.
15861         (sc_obsolete_symbols): Likewise.
15862         (sc_changelog): Likewise.
15863         (sc_program_name): Likewise.
15864         (sc_the_the): Likewise.
15865         (sc_trailing_blank): Likewise.
15866         (sc_two_space_separator_in_usage): Likewise.
15867         (sc_useless_cpp_parens): Likewise.
15868         (sc_GPL_version): Likewise.
15869         (sc_GFDL_version): Likewise.
15870         (sc_texinfo_acronym): Likewise.
15871         (sc_prohibit_cvs_keyword): Likewise.
15872         (sc_prohibit_stat_st_blocks): Likewise.
15873         (sc_prohibit_S_IS_definition): Likewise.
15874         (sc_redundant_const): Likewise.
15875         (sc_makefile_TAB_only_indentation): Likewise.
15876         (sc_m4_quote_check): Likewise.
15877         (sc_makefile_path_separator_check): Likewise.
15878         (sc_copyright_check): Likewise.
15879         (sc_Wundef_boolean): Likewise.
15880         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15881
15882         maint.mk: match 0 or more whitespace-before-function-call '('
15883         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
15884         that have zero or two-and-more spaces between the function name
15885         and the open parenthesis.
15886         (sc_error_message_warn_fatal): Likewise.
15887         (sc_error_message_uppercase): Likewise.
15888         (sc_error_message_period): Likewise.
15889
15890 2010-03-31  Eric Blake  <eblake@redhat.com>
15891
15892         maint.mk: check for [ as well as test
15893         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
15894         Based on a libvirt report by Matthias Bolte.
15895
15896         gnumakefile: don't squelch _version output
15897         * top/GNUmakefile (_version): Create one-shot dependency rather
15898         than using $(shell) when version must be regenerated.
15899         (_autoreconf): Run verbosely, by default.
15900
15901         sys_time: avoid compiler warnings
15902         * lib/sys_time.in.h (includes): Ensure gcc pragma is
15903         unconditional, fixing regression from 2010-03-29.
15904         Reported by Simon Josefsson.
15905
15906 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15907
15908         maint.mk: s/_header_without_use/_sc_header_without_use/
15909         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
15910         (sc_prohibit_assert_without_use): Use the new name.
15911         (sc_prohibit_close_stream_without_use): Likewise.
15912         (sc_prohibit_getopt_without_use): Likewise.
15913         (sc_prohibit_quotearg_without_use): Likewise.
15914         (sc_prohibit_quote_without_use): Likewise.
15915         (sc_prohibit_long_options_without_use): Likewise.
15916         (sc_prohibit_inttostr_without_use): Likewise.
15917         (sc_prohibit_ignore_value_without_use): Likewise.
15918         (sc_prohibit_error_without_use): Likewise.
15919         (sc_prohibit_xalloc_without_use): Likewise.
15920         (sc_prohibit_hash_without_use): Likewise.
15921         (sc_prohibit_hash_pjw_without_use): Likewise.
15922         (sc_prohibit_safe_read_without_use): Likewise.
15923         (sc_prohibit_argmatch_without_use): Likewise.
15924         (sc_prohibit_canonicalize_without_use): Likewise.
15925         (sc_prohibit_root_dev_ino_without_use): Likewise.
15926         (sc_prohibit_openat_without_use): Likewise.
15927         (sc_prohibit_c_ctype_without_use): Likewise.
15928         (sc_prohibit_signal_without_use): Likewise.
15929         (sc_prohibit_intprops_without_use): Likewise.
15930
15931 2010-03-30  Eric Blake  <eblake@redhat.com>
15932
15933         maint: improve module indicators
15934         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
15935         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
15936         columns, and avoid extra macro expansion.
15937
15938         fdopendir: work around FreeBSD bug
15939         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15940         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
15941         * modules/dirent (Makefile.am): Substitute it.
15942         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
15943         declaration.
15944         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
15945         fix.
15946         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15947
15948 2010-03-29  Bruno Haible  <bruno@clisp.org>
15949
15950         Emit #pragma system_header after the inclusion guard, not before.
15951         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
15952         guard that spans the entire file, not before. This enables an
15953         optimization in GCC's preprocessor.
15954         * lib/ctype.in.h: Likewise.
15955         * lib/dirent.in.h: Likewise.
15956         * lib/errno.in.h: Likewise.
15957         * lib/float.in.h: Likewise.
15958         * lib/getopt.in.h: Likewise.
15959         * lib/iconv.in.h: Likewise.
15960         * lib/langinfo.in.h: Likewise.
15961         * lib/locale.in.h: Likewise.
15962         * lib/math.in.h: Likewise.
15963         * lib/netdb.in.h: Likewise.
15964         * lib/netinet_in.in.h: Likewise.
15965         * lib/pty.in.h: Likewise.
15966         * lib/sched.in.h: Likewise.
15967         * lib/se-selinux.in.h: Likewise.
15968         * lib/search.in.h: Likewise.
15969         * lib/spawn.in.h: Likewise.
15970         * lib/stdarg.in.h: Likewise.
15971         * lib/stdint.in.h: Likewise.
15972         * lib/string.in.h: Likewise.
15973         * lib/strings.in.h: Likewise.
15974         * lib/sys_file.in.h: Likewise.
15975         * lib/sys_ioctl.in.h: Likewise.
15976         * lib/sys_time.in.h: Likewise.
15977         * lib/sys_times.in.h: Likewise.
15978         * lib/sys_utsname.in.h: Likewise.
15979         * lib/sys_wait.in.h: Likewise.
15980         * lib/sysexits.in.h: Likewise.
15981         * lib/wctype.in.h: Likewise.
15982
15983 2010-03-28  James Youngman  <jay@gnu.org>
15984
15985         save-cwd: don't leak a file descriptor when the caller execs.
15986         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15987         saved file descriptor.
15988         * modules/save-cwd (Depends-on): Depend on cloexec.
15989
15990 2010-03-29  Bruno Haible  <bruno@clisp.org>
15991
15992         Remove vestiges of fts-lgpl module.
15993         * lib/fts_.h: Assume GNULIB_FTS is 1.
15994         * lib/fts.c: Likewise.
15995         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15996
15997 2010-03-28  Bruno Haible  <bruno@clisp.org>
15998
15999         Fix definition of tests witness macro.
16000         * gnulib-tool (func_import): Fix definition of witness macro.
16001
16002 2010-03-28  Bruno Haible  <bruno@clisp.org>
16003
16004         Fix ioctl's protoype on glibc systems.
16005         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16006         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16007         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16008         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16009         signature. If not, arrange to replace the ioctl function.
16010         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16011         REPLACE_IOCTL.
16012         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16013         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16014         Reported by Ludovic Courtès <ludo@gnu.org>.
16015
16016 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16017
16018         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16019         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16020         made it so grep -r --include=GLOB* ... did not work.
16021
16022 2010-03-26  Jim Meyering  <meyering@redhat.com>
16023             Eric Blake  <eblake@redhat.com>
16024
16025         maint.mk: prohibit use of test's -o and -a operators
16026         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16027
16028 2010-03-28  Bruno Haible  <bruno@clisp.org>
16029
16030         Remove unused GNULIB_XYZ macro definitions.
16031         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16032         invocation.
16033
16034 2010-03-28  Bruno Haible  <bruno@clisp.org>
16035
16036         Mark privileged tests modules.
16037         * modules/idpriv-drop-tests (Status): New section.
16038         * modules/idpriv-droptemp-tests (Status): New section.
16039
16040 2010-03-28  Bruno Haible  <bruno@clisp.org>
16041
16042         Split C++ tests into separate tests modules.
16043         * modules/dirent-c++-tests: New file, extracted from
16044         modules/dirent-tests.
16045         * modules/dirent-tests: Depend on it.
16046         * modules/fcntl-h-c++-tests: New file, extracted from
16047         modules/fcntl-h-tests.
16048         * modules/fcntl-h-tests: Depend on it.
16049         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16050         * modules/glob-tests: Depend on it.
16051         * modules/iconv-h-c++-tests: New file, extracted from
16052         modules/iconv-h-tests.
16053         * modules/iconv-h-tests: Depend on it.
16054         * modules/langinfo-c++-tests: New file, extracted from
16055         modules/langinfo-tests.
16056         * modules/langinfo-tests: Depend on it.
16057         * modules/locale-c++-tests: New file, extracted from
16058         modules/locale-tests.
16059         * modules/locale-tests: Depend on it.
16060         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16061         * modules/math-tests: Depend on it.
16062         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16063         * modules/pty-tests: Depend on it.
16064         * modules/search-c++-tests: New file, extracted from
16065         modules/search-tests.
16066         * modules/search-tests: Depend on it.
16067         * modules/signal-c++-tests: New file, extracted from
16068         modules/signal-tests.
16069         * modules/signal-tests: Depend on it.
16070         * modules/spawn-c++-tests: New file, extracted from
16071         modules/spawn-tests.
16072         * modules/spawn-tests: Depend on it.
16073         * modules/stdio-c++-tests: New file, extracted from
16074         modules/stdio-tests.
16075         * modules/stdio-tests: Depend on it.
16076         * modules/stdlib-c++-tests: New file, extracted from
16077         modules/stdlib-tests.
16078         * modules/stdlib-tests: Depend on it.
16079         * modules/string-c++-tests: New file, extracted from
16080         modules/string-tests.
16081         * modules/string-tests: Depend on it.
16082         * modules/sys_ioctl-c++-tests: New file, extracted from
16083         modules/sys_ioctl-tests.
16084         * modules/sys_ioctl-tests: Depend on it.
16085         * modules/sys_select-c++-tests: New file, extracted from
16086         modules/sys_select-tests.
16087         * modules/sys_select-tests: Depend on it.
16088         * modules/sys_socket-c++-tests: New file, extracted from
16089         modules/sys_socket-tests.
16090         * modules/sys_socket-tests: Depend on it.
16091         * modules/sys_stat-c++-tests: New file, extracted from
16092         modules/sys_stat-tests.
16093         * modules/sys_stat-tests: Depend on it.
16094         * modules/sys_time-c++-tests: New file, extracted from
16095         modules/sys_time-tests.
16096         * modules/sys_time-tests: Depend on it.
16097         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16098         * modules/time-tests: Depend on it.
16099         * modules/unistd-c++-tests: New file, extracted from
16100         modules/unistd-tests.
16101         * modules/unistd-tests: Depend on it.
16102         * modules/wchar-c++-tests: New file, extracted from
16103         modules/wchar-tests.
16104         * modules/wchar-tests: Depend on it.
16105         * modules/wctype-c++-tests: New file, extracted from
16106         modules/wctype-tests.
16107         * modules/wctype-tests: Depend on it.
16108         Reported by Simon Josefsson.
16109
16110 2010-03-28  Bruno Haible  <bruno@clisp.org>
16111
16112         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16113         * gnulib-tool (func_exists_module): New function, extracted from
16114         func_verify_module.
16115         (func_verify_module): Use it.
16116         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16117         'foo' only if 'foo' exists.
16118         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16119         module.
16120
16121 2010-03-28  Bruno Haible  <bruno@clisp.org>
16122
16123         gnulib-tool: Add support for special categories of tests.
16124         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16125         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16126         (func_usage): Document them.
16127         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16128         inc_unportable_tests, inc_all_tests): New variables.
16129         (func_acceptable): Consider these variables.
16130         (func_modules_transitive_closure): Make it work when the 'Status' field
16131         consists of multiple words.
16132         (func_import): Store and restore the values of inc_cxx_tests,
16133         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16134         inc_all_tests in gnulib-comp.m4.
16135         (func_create_testdir): Set inc_all_tests to true.
16136         * doc/gnulib.texi (Extra tests modules): New section.
16137         Suggested by Jim Meyering.
16138
16139 2010-03-28  Bruno Haible  <bruno@clisp.org>
16140
16141         ansi-c++-opt: Allow turning off the C++ build by default.
16142         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16143         gl_CXX_CHOICE_DEFAULT_NO is defined.
16144         Requested by Eric Blake.
16145
16146 2010-03-28  Bruno Haible  <bruno@clisp.org>
16147
16148         unistd: Avoid #define replacements in C++ mode.
16149         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16150         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16151         setsockopt, shutdown, select): In C++, attach a warning to the function
16152         if possible, rather than #defining the symbol to a dysfunctional alias.
16153         Reported by John W. Eaton <jwe@gnu.org>.
16154
16155 2010-03-28  Bruno Haible  <bruno@clisp.org>
16156
16157         Fix link errors on mingw.
16158         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16159         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16160         $(LIBSOCKET).
16161         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16162         $(LIBSOCKET).
16163
16164 2010-03-28  Bruno Haible  <bruno@clisp.org>
16165             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16166
16167         lib-ignore: Determine different options for different compilers.
16168         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16169         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16170         Add comments.
16171         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16172         * NEWS: Mention the change.
16173
16174 2010-03-27  Bruno Haible  <bruno@clisp.org>
16175
16176         Remove unused GNULIB_XYZ macro definitions.
16177         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16178         * modules/fseek (configure.ac): Likewise.
16179         * modules/ioctl (configure.ac): Likewise.
16180         * modules/open (configure.ac): Likewise.
16181         * modules/stdlib-safer (configure.ac): Likewise.
16182
16183 2010-03-27  Bruno Haible  <bruno@clisp.org>
16184
16185         Add a remark about certain modules.
16186         * modules/malloc (Comment): New section.
16187         * modules/realloc (Comment): Likewise.
16188         * modules/sigpipe (Comment): Likewise.
16189
16190 2010-03-27  Bruno Haible  <bruno@clisp.org>
16191
16192         Resolve conflict between the two kinds of module indicators.
16193         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16194         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16195         * modules/canonicalize (configure.ac): Invoke
16196         gl_MODULE_INDICATOR_FOR_TESTS.
16197         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16198         GNULIB_XYZ.
16199         * tests/test-dirent-c++.cc: Likewise.
16200         * tests/test-dirent-safer.c: Likewise.
16201         * tests/test-dup2.c: Likewise.
16202         * tests/test-fchdir.c: Likewise.
16203         * tests/test-fcntl-h-c++.cc: Likewise.
16204         * tests/test-getopt.c: Likewise.
16205         * tests/test-getopt.h: Likewise.
16206         * tests/test-langinfo-c++.cc: Likewise.
16207         * tests/test-locale-c++.cc: Likewise.
16208         * tests/test-math-c++.cc: Likewise.
16209         * tests/test-pty-c++.cc: Likewise.
16210         * tests/test-search-c++.cc: Likewise.
16211         * tests/test-signal-c++.cc: Likewise.
16212         * tests/test-spawn-c++.cc: Likewise.
16213         * tests/test-stdio-c++.cc: Likewise.
16214         * tests/test-stdlib-c++.cc: Likewise.
16215         * tests/test-string-c++.cc: Likewise.
16216         * tests/test-sys_ioctl-c++.cc: Likewise.
16217         * tests/test-sys_select-c++.cc: Likewise.
16218         * tests/test-sys_socket-c++.cc: Likewise.
16219         * tests/test-sys_stat-c++.cc: Likewise.
16220         * tests/test-sys_time-c++.cc: Likewise.
16221         * tests/test-time-c++.cc: Likewise.
16222         * tests/test-unistd-c++.cc: Likewise.
16223         * tests/test-wchar-c++.cc: Likewise.
16224         * tests/uninorm/test-u8-nfc.c: Likewise.
16225         * tests/uninorm/test-u8-nfd.c: Likewise.
16226         * tests/uninorm/test-u8-nfkc.c: Likewise.
16227         * tests/uninorm/test-u8-nfkd.c: Likewise.
16228         * tests/uninorm/test-u16-nfc.c: Likewise.
16229         * tests/uninorm/test-u16-nfd.c: Likewise.
16230         * tests/uninorm/test-u16-nfkc.c: Likewise.
16231         * tests/uninorm/test-u16-nfkd.c: Likewise.
16232         * tests/uninorm/test-u32-nfc.c: Likewise.
16233         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16234         * tests/uninorm/test-u32-nfd.c: Likewise.
16235         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16236         * tests/uninorm/test-u32-nfkc.c: Likewise.
16237         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16238         * tests/uninorm/test-u32-nfkd.c: Likewise.
16239         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16240         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16241
16242 2010-03-27  Bruno Haible  <bruno@clisp.org>
16243
16244         Distinguish two kinds of module indicators.
16245         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16246         gl_MODULE_INDICATOR.
16247         (gl_MODULE_INDICATOR): New macro.
16248         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16249         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16250         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16251         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16252         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16253         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16254         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16255         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16256         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16257         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16258         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16259         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16261         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16262         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16263         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16264         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16265         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16266         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16267         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16268         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16269         * modules/cloexec (configure.ac): Likewise.
16270         * modules/getopt-gnu (configure.ac): Likewise.
16271         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16272         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16273         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16274         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16275
16276 2010-03-27  Bruno Haible  <bruno@clisp.org>
16277
16278         New module description field 'Comment'.
16279         * gnulib-tool: New option --extract-comment.
16280         (func_usage): Document it.
16281         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16282         (func_get_comment): New function.
16283         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16284
16285 2010-03-27  Bruno Haible  <bruno@clisp.org>
16286
16287         Addendum to 2010-02-07 commit.
16288         * gnulib-tool (func_usage): Document --extract-applicability option.
16289
16290 2010-03-27  Bruno Haible  <bruno@clisp.org>
16291
16292         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16293         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16294         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16295         rather than link errors.
16296
16297 2010-03-27  Bruno Haible  <bruno@clisp.org>
16298
16299         Avoid side effects from tests-related modules on the compilation of lib.
16300         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16301         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16302         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16303         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16304         macro.
16305         (func_import): Define a witness macro. Assign it a value that depends
16306         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16307         tests-related modules.
16308         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16309         Reported by Jim Meyering.
16310
16311 2010-03-27  Bruno Haible  <bruno@clisp.org>
16312
16313         Factorize common .m4 code.
16314         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16315         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16316         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16317         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16318         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16319         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16320         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16321         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16322         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16323         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16324         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16325         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16326         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16327         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16328         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16329         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16330         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16331         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16332         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16333         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16334         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16335         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16336         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16337         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16338         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16339         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16340         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16341         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16342         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16343         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16344         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16345         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16346
16347 2010-03-27  Bruno Haible  <bruno@clisp.org>
16348
16349         Fix a compilation error on Cygwin with g++ >= 4.3.
16350         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16351         if it is undefined or if we alias it to chmod.
16352         (lstat): Don't warn about the use of this function if it is undefined
16353         or if we alias it to stat.
16354         Reported by Simon Josefsson.
16355
16356 2010-03-27  Bruno Haible  <bruno@clisp.org>
16357
16358         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16359         * modules/getlogin (configure.ac): Update.
16360
16361         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16362         * modules/getlogin_r (configure.ac): Update.
16363
16364         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16365         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16366         * modules/inet_ntop (configure.ac): Update.
16367
16368         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16369         * modules/inet_pton (configure.ac): Update.
16370
16371         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16372         * modules/mbslen (configure.ac): Update.
16373
16374         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16375         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16376         * modules/forkpty (configure.ac): Update.
16377         * modules/openpty (configure.ac): Update.
16378
16379 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16380
16381         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16382         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16383
16384 2010-03-25  Eric Blake  <eblake@redhat.com>
16385
16386         maint: use pragma consistently across replacement headers
16387         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16388         * lib/dirent.in.h (system_header): Likewise.
16389         * lib/errno.in.h (system_header): Likewise.
16390         * lib/float.in.h (system_header): Likewise.
16391         * lib/getopt.in.h (system_header): Likewise.
16392         * lib/iconv.in.h (system_header): Likewise.
16393         * lib/inttypes.in.h (system_header): Likewise.
16394         * lib/langinfo.in.h (system_header): Likewise.
16395         * lib/locale.in.h (system_header): Likewise.
16396         * lib/math.in.h (system_header): Likewise.
16397         * lib/netdb.in.h (system_header): Likewise.
16398         * lib/netinet_in.in.h (system_header): Likewise.
16399         * lib/pty.in.h (system_header): Likewise.
16400         * lib/sched.in.h (system_header): Likewise.
16401         * lib/se-selinux.in.h (system_header): Likewise.
16402         * lib/search.in.h (system_header): Likewise.
16403         * lib/spawn.in.h (system_header): Likewise.
16404         * lib/stdarg.in.h (system_header): Likewise.
16405         * lib/stdint.in.h (system_header): Likewise.
16406         * lib/string.in.h (system_header): Likewise.
16407         * lib/strings.in.h (system_header): Likewise.
16408         * lib/sys_file.in.h (system_header): Likewise.
16409         * lib/sys_ioctl.in.h (system_header): Likewise.
16410         * lib/sys_socket.in.h (system_header): Likewise.
16411         * lib/sys_times.in.h (system_header): Likewise.
16412         * lib/sys_utsname.in.h (system_header): Likewise.
16413         * lib/sys_wait.in.h (system_header): Likewise.
16414         * lib/sysexits.in.h (system_header): Likewise.
16415         * lib/unistd.in.h (system_header): Likewise.
16416         * lib/wctype.in.h (system_header): Likewise.
16417
16418         arpa/inet: fix mingw compilation warning
16419         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16420         Reported by Matthew Bolte.
16421
16422 2010-03-25  Bruno Haible  <bruno@clisp.org>
16423
16424         Avoid collision between gnulib wrapper and libintl wrapper.
16425         * lib/printf.c (printf): Don't define if a printf wrapper is already
16426         defined in intl/printf.c.
16427         Reported by Michel Boaventura <michel@michelboaventura.com>.
16428
16429 2010-03-25  Bruno Haible  <bruno@clisp.org>
16430
16431         Use ANSI C.
16432         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16433
16434 2010-03-25  Bruno Haible  <bruno@clisp.org>
16435
16436         Minor formatting changes.
16437         * lib/acosl.c: Insert space before function argument list.
16438         * lib/argz.c: Likewise.
16439         * lib/asinl.c: Likewise.
16440         * lib/expl.c: Likewise.
16441         * lib/gen-uni-tables.c: Likewise.
16442         * lib/gettext.h: Likewise.
16443         * lib/glthread/lock.h: Likewise.
16444         * lib/tanl.c: Likewise.
16445         * lib/uniname/uniname.c: Likewise.
16446         * tests/test-idpriv-drop.c: Likewise.
16447         * tests/test-idpriv-droptemp.c: Likewise.
16448         * tests/test-lock.c: Likewise.
16449         * tests/test-tls.c: Likewise.
16450         * lib/argp-help.c: Insert space before function-like macro argument
16451         list.
16452         * lib/memcmp.c: Likewise.
16453         * tests/test-base64.c: Likewise.
16454         * lib/localename.c: Insert space before sizeof's argument list.
16455         * lib/safe-alloc.h: Likewise.
16456         * lib/file-set.h: Insert space before macro argument list.
16457         * tests/test-argp.c: Likewise.
16458         * lib/argp-namefrob.h: Insert space before function parameter list.
16459         * lib/getaddrinfo.c: Likewise.
16460         * lib/netdb.in.h: Likewise.
16461         * lib/parse-duration.h: Likewise.
16462         * lib/parse-duration.c: Likewise.
16463         * lib/poll.c: Likewise.
16464         * lib/select.c: Likewise.
16465         * lib/trim.h: Likewise.
16466         * tests/test-usleep.c: Likewise.
16467         * lib/ldexpl.c: Insert space before function parameter list and before
16468         function argument list.
16469         * lib/logl.c: Likewise.
16470         * lib/sqrtl.c: Likewise.
16471         * lib/trim.c: Likewise.
16472         * lib/cosl.c: Use GNU style indentation. Insert space before function
16473         argument list.
16474         * lib/sinl.c: Likewise.
16475         * lib/tsearch.c: Insert space after 'for'.
16476         Reported by Jim Meyering.
16477
16478 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
16479
16480         * maint.mk (sc_Wundef_boolean): Check for the presence of the
16481         config header before grepping, as it's not present before
16482         autoreconf/configure are run.  Reported by Simon Josefsson.
16483
16484 2010-03-23  Bruno Haible  <bruno@clisp.org>
16485
16486         pt_chown: Make it work with automake < 1.11.
16487         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
16488         Reported by Simon Josefsson.
16489
16490 2010-03-23  Bruno Haible  <bruno@clisp.org>
16491
16492         pt_chown: Don't depend on GPLed modules.
16493         * lib/pt_chown.c: Don't include idpriv.h.
16494         (main): Don't drop privileges.
16495         * modules/pt_chown (Depends-on): Remove idpriv-drop.
16496         Reported by Simon Josefsson.
16497
16498 2010-03-24  Simon Josefsson  <simon@josefsson.org>
16499
16500         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
16501         suggestions from karl@freefriends.org (Karl Berry).
16502
16503 2010-03-22  Eric Blake  <eblake@redhat.com>
16504
16505         gethostname: further tweaks
16506         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
16507         are overriding gethostname.
16508         Suggested by Bruno Haible.
16509
16510 2010-03-21  Bruno Haible  <bruno@clisp.org>
16511
16512         Fix comments.
16513         * lib/forkpty.c (rpl_forkpty): Fix comment.
16514         * lib/openpty.c (rpl_openpty): Likewise.
16515         Reported by Eric Blake.
16516
16517 2010-03-22  Eric Blake  <eblake@redhat.com>
16518
16519         gethostname: fix build on mingw
16520         * lib/unistd.in.h (includes): Work around fact that mingw
16521         <winsock2.h> re-includes <unistd.h>, by avoiding any
16522         redeclarations if we are being included by <winsock2.h>.
16523         Reported by Matthias Bolte.
16524
16525 2010-03-21  Bruno Haible  <bruno@clisp.org>
16526
16527         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16528         * lib/forkpty.c (forkpty): New replacement function, from glibc with
16529         modifications.
16530         * lib/pty.in.h (forkpty): Update declaration. Add comments.
16531         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
16532         provide the replacement.
16533         * modules/forkpty (Depends-on): Add openpty, login_tty.
16534         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
16535         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
16536         * doc/glibc-functions/forkpty.texi: More supported platforms.
16537         * config/srclist.txt: Add forkpty.c (commented).
16538
16539 2010-03-21  Bruno Haible  <bruno@clisp.org>
16540
16541         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
16542         (Makefile.am): Verify that PTY_LIB is defined.
16543
16544         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
16545
16546 2010-03-21  Bruno Haible  <bruno@clisp.org>
16547
16548         Tests for module 'login_tty'.
16549         * modules/login_tty-tests: New file.
16550         * tests/test-login_tty.c: New file.
16551
16552         New module 'login_tty'.
16553         * lib/login_tty.c: New file.
16554         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
16555         * modules/login_tty: New file.
16556         * doc/glibc-functions/login_tty.texi: Mention the new module.
16557
16558 2010-03-21  Bruno Haible  <bruno@clisp.org>
16559
16560         login_tty: Documentation.
16561         * doc/glibc-functions/login_tty.texi: New file.
16562         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
16563
16564 2010-03-21  Bruno Haible  <bruno@clisp.org>
16565
16566         pty: Consistent macro naming.
16567         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
16568         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
16569         * modules/pty (configure.ac): Update.
16570
16571 2010-03-21  Bruno Haible  <bruno@clisp.org>
16572
16573         Tests for openpty: Make stricter.
16574         * tests/test-openpty.c (main): Add test of canonical processing and
16575         erase.
16576         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
16577
16578         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16579         * lib/openpty.c (openpty): New replacement function.
16580         * lib/pty.in.h: Include <termios.h>.
16581         (openpty): Update declaration. Add comments.
16582         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
16583         is not declared, arrange to provide the replacement. Check for _getpty
16584         and posix_openpt.
16585         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
16586         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
16587         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
16588         * modules/pty-tests (test_pty_c___LDADD): New variable.
16589         * doc/glibc-functions/openpty.texi: More supported platforms.
16590
16591 2010-03-21  Bruno Haible  <bruno@clisp.org>
16592
16593         setenv: Tweaks.
16594         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
16595         the test program.
16596         * doc/posix-functions/setenv.texi: Update platforms list.
16597
16598 2010-03-21  Bruno Haible  <bruno@clisp.org>
16599
16600         New module 'unlockpt'.
16601         * lib/unlockpt.c: New file, from glibc with modifications.
16602         * m4/unlockpt.m4: New file.
16603         * modules/unlockpt: New file.
16604         * lib/stdlib.in.h (unlockpt): New declaration.
16605         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
16606         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
16607         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
16608         HAVE_UNLOCKPT.
16609         * doc/posix-functions/unlockpt.texi: Mention the new module.
16610         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
16611         * config/srclist.txt: Add unlockpt.c (commented).
16612
16613 2010-03-21  Jim Meyering  <meyering@redhat.com>
16614
16615         maint.mk: prohibit inclusion of "intprops.h" without use
16616         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
16617
16618 2010-03-21  Bruno Haible  <bruno@clisp.org>
16619
16620         New module 'grantpt'.
16621         * lib/grantpt.c: New file, from glibc with modifications.
16622         * m4/grantpt.m4: New file.
16623         * modules/grantpt: New file.
16624         * lib/stdlib.in.h (grantpt): New declaration.
16625         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
16626         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
16627         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
16628         HAVE_GRANTPT.
16629         * doc/posix-functions/grantpt.texi: Mention the new module.
16630         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
16631         * config/srclist.txt: Add grantpt.c (commented).
16632
16633 2010-03-21  Bruno Haible  <bruno@clisp.org>
16634
16635         New module 'pt_chown'.
16636         * lib/pt_chown.c: New file, from glibc with modifications.
16637         * lib/pty-private.h: New file, from glibc with modifications.
16638         * modules/pt_chown: New file.
16639         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16640
16641 2010-03-21  Bruno Haible  <bruno@clisp.org>
16642
16643         Tests for module 'ptsname'.
16644         * modules/ptsname-tests: New file.
16645         * tests/test-ptsname.c: New file.
16646
16647         New module 'ptsname'.
16648         * lib/ptsname.c: New file, from glibc with modifications.
16649         * m4/ptsname.m4: New file.
16650         * modules/ptsname: New file.
16651         * lib/stdlib.in.h (ptsname): New declaration.
16652         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16653         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16654         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16655         HAVE_PTSNAME.
16656         * doc/posix-functions/ptsname.texi: Mention the new module.
16657         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16658         * config/srclist.txt: Add ptsname.c (commented).
16659
16660 2010-03-21  Bruno Haible  <bruno@clisp.org>
16661
16662         Tests for module 'ttyname_r'.
16663         * modules/ttyname_r-tests: New file.
16664         * tests/test-ttyname_r.c: New file.
16665
16666         New module 'ttyname_r'.
16667         * lib/ttyname_r.c: New file.
16668         * m4/ttyname_r.m4: New file.
16669         * modules/ttyname_r: New file.
16670         * lib/unistd.in.h (ttyname_r): New declaration.
16671         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16672         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16673         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16674         HAVE_TTYNAME_R.
16675         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16676         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16677
16678 2010-03-20  Bruno Haible  <bruno@clisp.org>
16679
16680         signal: Undefine macro definitions in C++ mode.
16681         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16682         sigfillset): Undefine macro definitions from the system header in C++
16683         mode.
16684         Reported by John W. Eaton <jwe@gnu.org>.
16685
16686 2010-03-20  Bruno Haible  <bruno@clisp.org>
16687
16688         Ensure no #include statements inside extern "C" { ... }.
16689         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16690         contain #include statements.
16691         * lib/time.in.h: Likewise.
16692
16693 2010-03-20  Bruno Haible  <bruno@clisp.org>
16694
16695         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16696         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16697         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16698         Reported by John W. Eaton <jwe@gnu.org>.
16699
16700 2010-03-20  Bruno Haible  <bruno@clisp.org>
16701
16702         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16703         Reported by Jim Meyering.
16704
16705 2010-03-20  Bruno Haible  <bruno@clisp.org>
16706
16707         pipe: Set errno upon failure.
16708         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16709         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16710         errno value in error message.
16711
16712 2010-03-20  Bruno Haible  <bruno@clisp.org>
16713             Jim Meyering  <meyering@redhat.com>
16714
16715         lchown: Avoid "unused variable" warning.
16716         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16717
16718 2010-03-20  Bruno Haible  <bruno@clisp.org>
16719
16720         Work around unlink() bug on MacOS X 10.5.6.
16721         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16722         attempting to unlink a parent directory.
16723         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16724         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16725         activate for the replacement function.
16726         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16727
16728 2010-03-20  Bruno Haible  <bruno@clisp.org>
16729
16730         Fix link errors on Solaris 8.
16731         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16732         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16733
16734 2010-03-19  Jim Meyering  <meyering@redhat.com>
16735
16736         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
16737         The _LIBC implementation of build_range_exp correctly honors the
16738         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
16739         However, the non-_LIBC implementation would ignore that syntax-bit
16740         flag and return REG_ERANGE unconditionally.
16741         This change makes it honor that flag.
16742         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
16743         Make two pointer parameters "const".
16744         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
16745         (parse_bracket_exp): Update caller.
16746
16747         regex.m4: correct the reversed range endpoint ([b-a]) test
16748         * m4/regex.m4: When requiring that [b-a] evoke failure,
16749         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
16750         test pass once again for x86-based systems.
16751
16752 2010-03-19  Bruno Haible  <bruno@clisp.org>
16753
16754         scandir: Fix link error on Solaris 8.
16755         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
16756         macros.
16757
16758 2010-03-19  Bruno Haible  <bruno@clisp.org>
16759
16760         getusershell: Fix documentation.
16761         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
16762         module.
16763         * doc/glibc-functions/setusershell.texi: Likewise.
16764
16765         getusershell: Provide declaration, missing on Solaris 9.
16766         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
16767         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
16768         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
16769         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
16770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16771         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
16772         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
16773         HAVE_GETUSERSHELL.
16774         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
16775
16776 2010-03-19  Bruno Haible  <bruno@clisp.org>
16777
16778         wctype: Provide iswblank function.
16779         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
16780         exists and is fine.
16781         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
16782         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
16783         * tests/test-wctype.c (main): Re-enable the iswblank tests.
16784         * doc/posix-functions/iswblank.texi: Update.
16785
16786 2010-03-19  Bruno Haible  <bruno@clisp.org>
16787
16788         Tests of module 'pty' in C++ mode.
16789         * modules/pty-tests: New file.
16790         * tests/test-pty-c++.cc: New file.
16791         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16792
16793 2010-03-19  Eric Blake  <eblake@redhat.com>
16794
16795         logb: fix documentation
16796         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
16797         1.5 declaration bug.
16798
16799         forkpty, openpty: prefer glibc's const-safe prototype
16800         * lib/forkpty.c (rpl_forkpty): New file.
16801         * lib/openpty.c (rpl_openpty): Likewise.
16802         * modules/forkpty (Files): Distribute it.
16803         * modules/openpty (Files): Likewise.
16804         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
16805         check...
16806         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
16807         replacement for for non-const BSD signature.
16808         * modules/pty (Makefile.am): Substitute witnesses.
16809         * lib/pty.in.h (forkpty, openpty): Declare replacements.
16810         * tests/test-forkpty.c: Update signature check.
16811         * tests/test-openpty.c: Likewise.
16812         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
16813         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16814
16815         forkpty, openpty: split functions into new modules
16816         * modules/pty (Makefile.am): Substitute new witnesses.
16817         (Libraries): Move library detection...
16818         * modules/forkpty: ...into new module.
16819         * modules/openpty: Another new module.
16820         * modules/pty-tests: Rename and split...
16821         * modules/forkpty-tests: ...to this...
16822         * modules/openpty-tests: ...and this.
16823         * tests/test-pty.c: Rename and split...
16824         * tests/test-forkpty.c: ...to this...
16825         * tests/test-openpty.c: ...and this.
16826         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
16827         (gl_PTY): Split library searching...
16828         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
16829         (gl_FORKPTY, gl_OPENPTY): New macros.
16830         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
16831         * NEWS: Mention the split.
16832         * MODULES.html.sh (Misc): Document the modules.
16833         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
16834         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16835
16836         pty: improve replacement header
16837         * lib/pty.in.h: New file.
16838         * modules/pty (Files): Ship it.
16839         (Makefile.am): Always build replacement.
16840         * m4/pty.m4: Rename...
16841         * m4/pty_h.m4: ...to this.
16842         (gl_PTY): Modernize setting of witness macros; update check of
16843         forkpty to take proper advantage of cache.
16844         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
16845
16846         getopt: avoid compiler warning
16847         * lib/getopt.c (attribute_hidden): Remove unused macro.
16848
16849 2010-03-18  Bruno Haible  <bruno@clisp.org>
16850
16851         Fix link errors on Solaris 8.
16852         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
16853         * modules/search-tests (test_search_c___LDADD): Likewise.
16854         * modules/signal-tests (test_signal_c___LDADD): Likewise.
16855         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
16856         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
16857         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
16858         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
16859         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
16860         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
16861
16862 2010-03-18  Bruno Haible  <bruno@clisp.org>
16863
16864         Fix bug introduced on 2010-03-14.
16865         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
16866         (gl_SPAWN_H): Require it.
16867         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
16868         Reported by Simon Josefsson.
16869
16870 2010-03-18  Bruno Haible  <bruno@clisp.org>
16871
16872         Fix typo introduced on 2009-12-31.
16873         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
16874         posix_spawn_file_actions_adddup2.
16875
16876 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
16877         and Eric Blake  <eblake@redhat.com>
16878
16879         test-vc-list-files-git: make more robust
16880         * tests/test-vc-list-files-git.sh: Unset problematic environment
16881         variables.  Chain commands together.
16882
16883 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
16884
16885         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
16886         `AC_CHECK_DECL' invocation.
16887
16888 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
16889
16890         * lib/inttostr.c (inttostr): Make sure the invocation of verify
16891         appears before executable statements. Suggested by Petr Sumbera
16892         <Petr.Sumbera@Sun.COM>.
16893
16894 2010-03-14  Bruno Haible  <bruno@clisp.org>
16895
16896         * tests/test-flock.c (test_exclusive): Comment out a test that causes
16897         portability problems. Instead use a simpler test.
16898         (main): Check that invalid arguments are rejected only on Linux.
16899
16900 2010-03-14  Bruno Haible  <bruno@clisp.org>
16901
16902         Fix bug introduced on 2009-12-31.
16903         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16904         gl_PREREQ_SYS_H_WINSOCK2 always.
16905         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
16906         SYS_SOCKET_H variable.
16907         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
16908         Update comments.
16909         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
16910         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16911         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16912         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16913         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
16914
16915 2010-03-14  Bruno Haible  <bruno@clisp.org>
16916
16917         Fix values returned by sinl, cosl.
16918         * lib/trigl.h: Add specification comments.
16919         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
16920         that combines the values from the precomputed table with the values of
16921         the Chebyshev polynomials.
16922
16923 2010-03-14  Bruno Haible  <bruno@clisp.org>
16924
16925         Fix compilation error when modules 'posix_spawn[p]' are not used.
16926         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
16927         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
16928
16929 2010-03-14  Bruno Haible  <bruno@clisp.org>
16930
16931         Fix compilation error on mingw when module 'time_r' is not used.
16932         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
16933         is 1.
16934         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
16935         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16936         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
16937         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
16938
16939 2010-03-14  Bruno Haible  <bruno@clisp.org>
16940
16941         Fix compilation error with Sun C.
16942         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
16943         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
16944         instead of GCC specific ULONG_LONG_MAX.
16945         * lib/xstrtoll.c: Likewise.
16946         * lib/xstrtoull.c: Likewise.
16947
16948 2010-03-13  Bruno Haible  <bruno@clisp.org>
16949
16950         Allow the user to disable C++ code and tests.
16951         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
16952         (gl_PROG_ANSI_CXX): Require it.
16953
16954 2010-03-13  Bruno Haible  <bruno@clisp.org>
16955
16956         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
16957         cases.
16958
16959 2010-03-13  Bruno Haible  <bruno@clisp.org>
16960
16961         Test that gnulib does not break the standard C++ headers.
16962         * tests/test-locale-c++2.cc: New file.
16963         * modules/locale-tests (Files): Add it.
16964         (Makefile.am): Compile it for test-locale-c++.
16965         * tests/test-math-c++2.cc: New file.
16966         * modules/math-tests (Files): Add it.
16967         (Makefile.am): Compile it for test-math-c++.
16968         * tests/test-signal-c++2.cc: New file.
16969         * modules/signal-tests (Files): Add it.
16970         (Makefile.am): Compile it for test-signal-c++.
16971         * tests/test-stdio-c++2.cc: New file.
16972         * modules/stdio-tests (Files): Add it.
16973         (Makefile.am): Compile it for test-stdio-c++.
16974         * tests/test-stdlib-c++2.cc: New file.
16975         * modules/stdlib-tests (Files): Add it.
16976         (Makefile.am): Compile it for test-stdlib-c++.
16977         * tests/test-string-c++2.cc: New file.
16978         * modules/string-tests (Files): Add it.
16979         (Makefile.am): Compile it for test-string-c++.
16980         * tests/test-time-c++2.cc: New file.
16981         * modules/time-tests (Files): Add it.
16982         (Makefile.am): Compile it for test-time-c++.
16983         Reported by John W. Eaton <jwe@gnu.org>.
16984
16985 2010-03-13  Bruno Haible  <bruno@clisp.org>
16986
16987         * gnulib-tool (func_usage): Clarify which options are available for
16988         --create-testdir and --create-megatestdir.
16989
16990 2010-03-13  Bruno Haible  <bruno@clisp.org>
16991
16992         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16993         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16994         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16995         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16996         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16997         when appropriate.
16998         Reported by Jim Meyering.
16999
17000 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17001
17002         * gnulib-tool (func_import): Explain origin of code.
17003
17004 2010-03-12  Bruno Haible  <bruno@clisp.org>
17005
17006         Fix problem with automake's definition of CXXLINK.
17007         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17008         Reported by Simon Josefsson and Ludovic Courtès.
17009
17010 2010-03-12  Bruno Haible  <bruno@clisp.org>
17011
17012         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17013         stable releases.
17014
17015 2010-03-11  Bruno Haible  <bruno@clisp.org>
17016
17017         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17018         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17019         whether the system provides one variant or multiple variants of the
17020         function.
17021         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17022         C++ compilers.
17023         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17024         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17025         Reported by Jim Meyering.
17026
17027 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17028
17029         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17030
17031 2010-03-08  Bruno Haible  <bruno@clisp.org>
17032
17033         gnulib-tool: Add support for --libtool in --create-testdir.
17034         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17035         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17036
17037 2010-03-08  Eric Blake  <eblake@redhat.com>
17038
17039         gnulib-tool.texi: mention possibility of git submodule
17040         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17041         submodules.
17042         * doc/.gitignore: Ignore another generated file.
17043
17044 2010-03-08  Karl Berry  <karl@gnu.org>
17045
17046         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17047         of committing gnulib files while skipping others.
17048
17049 2010-03-07  Bruno Haible  <bruno@clisp.org>
17050
17051         Tests of module 'wctype' in C++ mode.
17052         * tests/test-wctype-c++.cc: New file.
17053         * modules/wctype-tests (Files): Add it and tests/signature.h.
17054         (Depends-on): Add ansi-c++-opt.
17055         (Makefile.am): Arrange to compile and run test-wctype-c++.
17056
17057         Tests of module 'wchar' in C++ mode.
17058         * tests/test-wchar-c++.cc: New file.
17059         * modules/wchar-tests (Files): Add it and tests/signature.h.
17060         (Depends-on): Add ansi-c++-opt.
17061         (Makefile.am): Arrange to compile and run test-wchar-c++.
17062         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17063         gl_MODULE_INDICATOR.
17064
17065         Tests of module 'unistd' in C++ mode.
17066         * tests/test-unistd-c++.cc: New file.
17067         * modules/unistd-tests (Files): Add it and tests/signature.h.
17068         (Depends-on): Add ansi-c++-opt.
17069         (Makefile.am): Arrange to compile and run test-unistd-c++.
17070         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17071         gl_MODULE_INDICATOR.
17072
17073         Tests of module 'time' in C++ mode.
17074         * tests/test-time-c++.cc: New file.
17075         * modules/time-tests (Files): Add it and tests/signature.h.
17076         (Depends-on): Add ansi-c++-opt.
17077         (Makefile.am): Arrange to compile and run test-time-c++.
17078         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17079
17080         Tests of module 'sys_time' in C++ mode.
17081         * tests/test-sys_time-c++.cc: New file.
17082         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17083         (Depends-on): Add ansi-c++-opt.
17084         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17085         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17086         gl_MODULE_INDICATOR.
17087
17088         Tests of module 'sys_stat' in C++ mode.
17089         * tests/test-sys_stat-c++.cc: New file.
17090         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17091         (Depends-on): Add ansi-c++-opt.
17092         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17093         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17094         gl_MODULE_INDICATOR.
17095
17096         Tests of module 'sys_socket' in C++ mode.
17097         * tests/test-sys_socket-c++.cc: New file.
17098         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17099         (Depends-on): Add ansi-c++-opt.
17100         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17101         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17102         gl_MODULE_INDICATOR.
17103
17104         Tests of module 'sys_select' in C++ mode.
17105         * tests/test-sys_select-c++.cc: New file.
17106         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17107         (Depends-on): Add ansi-c++-opt.
17108         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17109         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17110         gl_MODULE_INDICATOR.
17111
17112         Tests of module 'sys_ioctl' in C++ mode.
17113         * tests/test-sys_ioctl-c++.cc: New file.
17114         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17115         (Depends-on): Add ansi-c++-opt.
17116         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17117         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17118         gl_MODULE_INDICATOR.
17119
17120         Tests of module 'string' in C++ mode.
17121         * tests/test-string-c++.cc: New file.
17122         * modules/string-tests (Files): Add it and tests/signature.h.
17123         (Depends-on): Add ansi-c++-opt.
17124         (Makefile.am): Arrange to compile and run test-string-c++.
17125         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17126         gl_MODULE_INDICATOR.
17127
17128         Tests of module 'stdlib' in C++ mode.
17129         * tests/test-stdlib-c++.cc: New file.
17130         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17131         (Depends-on): Add ansi-c++-opt.
17132         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17133         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17134         gl_MODULE_INDICATOR.
17135
17136         Tests of module 'stdio' in C++ mode.
17137         * tests/test-stdio-c++.cc: New file.
17138         * modules/stdio-tests (Files): Add it and tests/signature.h.
17139         (Depends-on): Add ansi-c++-opt.
17140         (Makefile.am): Arrange to compile and run test-stdio-c++.
17141         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17142         gl_MODULE_INDICATOR.
17143
17144         Tests of module 'spawn' in C++ mode.
17145         * tests/test-spawn-c++.cc: New file.
17146         * modules/spawn-tests (Files): Add it and tests/signature.h.
17147         (Depends-on): Add ansi-c++-opt.
17148         (Makefile.am): Arrange to compile and run test-spawn-c++.
17149         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17150         gl_MODULE_INDICATOR.
17151
17152         Tests of module 'signal' in C++ mode.
17153         * tests/test-signal-c++.cc: New file.
17154         * modules/signal-tests (Files): Add it and tests/signature.h.
17155         (Depends-on): Add ansi-c++-opt.
17156         (Makefile.am): Arrange to compile and run test-signal-c++.
17157         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17158         gl_MODULE_INDICATOR.
17159
17160         Tests of module 'search' in C++ mode.
17161         * tests/test-search-c++.cc: New file.
17162         * modules/search-tests (Files): Add it and tests/signature.h.
17163         (Depends-on): Add ansi-c++-opt.
17164         (Makefile.am): Arrange to compile and run test-search-c++.
17165         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17166         gl_MODULE_INDICATOR.
17167
17168         Tests of module 'math' in C++ mode.
17169         * tests/test-math-c++.cc: New file.
17170         * modules/math-tests (Files): Add it and tests/signature.h.
17171         (Depends-on): Add ansi-c++-opt.
17172         (Makefile.am): Arrange to compile and run test-math-c++.
17173         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17174
17175         Tests of module 'locale' in C++ mode.
17176         * tests/test-locale-c++.cc: New file.
17177         * modules/locale-tests (Files): Add it and tests/signature.h.
17178         (Depends-on): Add ansi-c++-opt.
17179         (Makefile.am): Arrange to compile and run test-locale-c++.
17180         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17181         gl_MODULE_INDICATOR.
17182
17183         Tests of module 'langinfo' in C++ mode.
17184         * tests/test-langinfo-c++.cc: New file.
17185         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17186         (Depends-on): Add ansi-c++-opt.
17187         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17188         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17189         gl_MODULE_INDICATOR.
17190
17191         Tests of module 'iconv-h' in C++ mode.
17192         * tests/test-iconv-h-c++.cc: New file.
17193         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17194         (Depends-on): Add ansi-c++-opt.
17195         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17196
17197         Tests of module 'glob' in C++ mode.
17198         * tests/test-glob-c++.cc: New file.
17199         * modules/glob-tests (Files): Add it.
17200         (Depends-on): Add ansi-c++-opt.
17201         (Makefile.am): Arrange to compile and run test-glob-c++.
17202
17203         Tests of module 'fcntl-h' in C++ mode.
17204         * tests/test-fcntl-h-c++.cc: New file.
17205         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17206         (Depends-on): Add ansi-c++-opt.
17207         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17208         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17209         gl_MODULE_INDICATOR.
17210
17211         Tests of module 'dirent' in C++ mode.
17212         * tests/test-dirent-c++.cc: New file.
17213         * modules/dirent-tests (Files): Add it and tests/signature.h.
17214         (Depends-on): Add ansi-c++-opt.
17215         (Makefile.am): Arrange to compile and run test-dirent-c++.
17216         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17217         gl_MODULE_INDICATOR.
17218
17219         New module 'ansi-c++-opt'.
17220         * modules/ansi-c++-opt: New file.
17221         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17222
17223         Document C++ namespace mode.
17224         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17225
17226         wctype: Avoid #define replacements in C++ mode.
17227         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17228         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17229         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17230         In C++, define a namespaced alias symbol.
17231         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17232         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17233         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17234         rule.
17235
17236         wchar: Avoid #define replacements in C++ mode.
17237         * lib/wchar.in.h: Include c++defs.h.
17238         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17239         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17240         symbol.
17241         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17242         * modules/wchar (Depends-on): Add c++defs.
17243         (Makefile.am): Update wchar.h rule.
17244
17245         unistd: Avoid #define replacements in C++ mode.
17246         * lib/unistd.in.h: Include c++defs.h.
17247         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17248         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17249         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17250         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17251         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17252         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17253         symbol.
17254         (environ): Update.
17255         * modules/unistd (Depends-on): Add c++defs.
17256         (Makefile.am): Update unistd.h rule.
17257
17258         time: Avoid #define replacements in C++ mode.
17259         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17260         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17261         define a namespaced alias symbol.
17262         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17263         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17264         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17265         * modules/time (Depends-on): Add c++defs, warn-on-use.
17266         (Makefile.am): Update time.h rule.
17267         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17268         * modules/nanosleep (configure.ac): Likewise.
17269         * modules/strptime (configure.ac): Likewise.
17270         * modules/timegm (configure.ac): Likewise.
17271
17272         sys_time: Avoid #define replacements in C++ mode.
17273         * lib/sys_time.in.h: Include c++defs.h.
17274         (gettimeofday): In C++, define a namespaced alias symbol.
17275         * modules/sys_time (Depends-on): Add c++defs.
17276         (Makefile.am): Update sys/time.h rule.
17277
17278         sys_stat: Avoid #define replacements in C++ mode.
17279         * lib/sys_stat.in.h: Include c++defs.h.
17280         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17281         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17282         namespaced alias symbol.
17283         In C++, define a namespaced alias symbol.
17284         * modules/sys_stat (Depends-on): Add c++defs.
17285         (Makefile.am): Update sys/stat.h rule.
17286
17287         sys_socket: Avoid #define replacements in C++ mode.
17288         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17289         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17290         definitions also when the system has a <sys/socket.h>.
17291         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17292         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17293         In C++, define a namespaced alias symbol.
17294         * modules/sys_socket (Depends-on): Add c++defs.
17295         (Makefile.am): Update sys/socket.h rule.
17296
17297         sys_select: Avoid #define replacements in C++ mode.
17298         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17299         definitions also when the system has a <sys/select.h>.
17300         (select): In C++, define a namespaced alias symbol.
17301         * modules/sys_select (Depends-on): Add c++defs.
17302         (Makefile.am): Update sys/select.h rule.
17303
17304         sys_ioctl: Avoid #define replacements in C++ mode.
17305         * lib/sys_ioctl.in.h: Include c++defs.h.
17306         (ioctl): In C++, define a namespaced alias symbol.
17307         * modules/sys_ioctl (Depends-on): Add c++defs.
17308         (Makefile.am): Update sys/ioctl.h rule.
17309
17310         string: Avoid #define replacements in C++ mode.
17311         * lib/string.in.h: Include c++defs.h.
17312         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17313         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17314         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17315         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17316         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17317         * modules/string (Depends-on): Add c++defs.
17318         (Makefile.am): Update string.h rule.
17319
17320         stdlib: Avoid #define replacements in C++ mode.
17321         * lib/stdlib.in.h: Include c++defs.h.
17322         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17323         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17324         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17325         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17326         symbol.
17327         * modules/stdlib (Depends-on): Add c++defs.
17328         (Makefile.am): Update stdlib.h rule.
17329
17330         stdio: Avoid #define replacements in C++ mode.
17331         * lib/stdio.in.h: Include c++defs.h.
17332         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17333         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17334         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17335         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17336         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17337         namespaced alias symbol.
17338         * modules/stdio (Depends-on): Add c++defs.
17339         (Makefile.am): Update stdio.h rule.
17340
17341         spawn: Avoid #define replacements in C++ mode.
17342         * lib/spawn.in.h: Include c++defs.h.
17343         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17344         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17345         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17346         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17347         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17348         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17349         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17350         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17351         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17352         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17353         In C++, define a namespaced alias symbol.
17354         * modules/spawn (Depends-on): Add c++defs.
17355         (Makefile.am): Update spawn.h rule.
17356
17357         signal: Avoid #define replacements in C++ mode.
17358         * lib/signal.in.h: Include c++defs.h.
17359         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17360         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17361         namespaced alias symbol.
17362         * modules/signal (Depends-on): Add c++defs.
17363         (Makefile.am): Update signal.h rule.
17364
17365         search: Avoid #define replacements in C++ mode.
17366         * lib/search.in.h: Include c++defs.h.
17367         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17368         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17369         symbol.
17370         * modules/search (Depends-on): Add c++defs.
17371         (Makefile.am): Update search.h rule.
17372
17373         math: Avoid #define replacements in C++ mode.
17374         * lib/math.in.h: Include c++defs.h.
17375         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17376         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17377         trunc, truncl): In C++, define a namespaced alias symbol.
17378         * modules/math (Depends-on): Add c++defs.
17379         (Makefile.am): Update math.h rule.
17380
17381         locale: Avoid #define replacements in C++ mode.
17382         * lib/locale.in.h: Include c++defs.h.
17383         (duplocale): In C++, define a namespaced alias symbol.
17384         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17385         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17386         * modules/locale (Depends-on): Add c++defs.
17387         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17388
17389         langinfo: Avoid #define replacements in C++ mode.
17390         * lib/langinfo.in.h: Include c++defs.h.
17391         (nl_langinfo): In C++, define a namespaced alias symbol.
17392         * modules/langinfo (Depends-on): Add c++defs.
17393         (Makefile.am): Update langinfo.h rule.
17394
17395         iconv-h: Avoid #define replacements in C++ mode.
17396         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17397         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17398         symbol.
17399         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17400         whenever iconv is present.
17401         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17402         (Makefile.am): Update iconv.h rule.
17403
17404         glob: Avoid #define replacements in C++ mode.
17405         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17406         (_gl_glob_errfunc_fn): New type.
17407         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17408         symbol.
17409         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17410         (Makefile.am): Update glob.h rule.
17411
17412         fcntl-h: Avoid #define replacements in C++ mode.
17413         * lib/fcntl.in.h: Include c++defs.h.
17414         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17415         * modules/fcntl-h (Depends-on): Add c++defs.
17416         (Makefile.am): Update fcntl.h rule.
17417
17418         dirent: Avoid #define replacements in C++ mode.
17419         * lib/dirent.in.h: Include c++defs.h.
17420         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17421         namespaced alias symbol.
17422         (dirfd): Update declaration.
17423         * modules/dirent (Depends-on): Add c++defs.
17424         (Makefile.am): Update dirent.h rule.
17425
17426         ctype: Make it usable in C++ code.
17427         * lib/ctype.in.h: Include c++defs.h.
17428         (isblank): Declare as extern "C".
17429         * modules/ctype (Depends-on): Add c++defs.
17430         (Makefile.am): Update ctype.h rule.
17431
17432         New module 'c++defs'.
17433         * modules/c++defs: New file.
17434         * build-aux/c++defs.h: New file.
17435         Reported by John W. Eaton <jwe@gnu.org>.
17436
17437 2010-03-07  Bruno Haible  <bruno@clisp.org>
17438
17439         logb: Provide missing declaration for Cygwin.
17440         * lib/math.in.h (logb): New declaration.
17441         * m4/logb.m4: New file.
17442         * modules/logb (Files): Add m4/logb.m4.
17443         (Depends-on): Add math.
17444         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17445         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17447         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17448         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17449
17450 2010-03-07  Bruno Haible  <bruno@clisp.org>
17451
17452         Fix test-cond link error.
17453         * tests/test-cond.c: Include <stdio.h>.
17454
17455 2010-03-07  Bruno Haible  <bruno@clisp.org>
17456
17457         Fix test-dirent-safer link error.
17458         * modules/dirent-safer-tests (Makefile.am): Define
17459         test_dirent_safer_LDADD.
17460
17461 2010-03-07  Bruno Haible  <bruno@clisp.org>
17462
17463         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
17464         among default module list.
17465
17466 2010-03-07  Bruno Haible  <bruno@clisp.org>
17467
17468         Fix link error on platforms with GNU libiconv.
17469         * modules/unistr/u8-strcoll-tests (Makefile): Define
17470         test_u8_strcoll_LDADD.
17471         * modules/unistr/u16-strcoll-tests (Makefile): Define
17472         test_u16_strcoll_LDADD.
17473         * modules/unistr/u32-strcoll-tests (Makefile): Define
17474         test_u32_strcoll_LDADD.
17475
17476 2010-03-07  Bruno Haible  <bruno@clisp.org>
17477
17478         Use POSIX declarations for socket functions.
17479         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
17480         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
17481         rpl_sendto): Change declaration to match POSIX.
17482         * lib/connect.c (rpl_connect): Likewise.
17483         * lib/accept.c (rpl_accept): Likewise.
17484         * lib/bind.c (rpl_bind): Likewise.
17485         * lib/getpeername.c (rpl_getpeername): Likewise.
17486         * lib/getsockname.c (rpl_getsockname): Likewise.
17487         * lib/recv.c (rpl_recv): Likewise.
17488         * lib/send.c (rpl_send): Likewise.
17489         * lib/recvfrom.c (rpl_recvfrom): Likewise.
17490         * lib/sendto.c (rpl_sendto): Likewise.
17491
17492 2010-03-06  Bruno Haible  <bruno@clisp.org>
17493
17494         Clarify access, euidaccess, faccessat.
17495         * doc/posix-functions/faccessat.texi: Mention security problem under
17496         "Other problems", not "Portability problems".
17497         * doc/posix-functions/access.texi: Likewise. Mention a related security
17498         problem.
17499         * doc/glibc-functions/euidaccess.texi: Mention security problems.
17500         * lib/euidaccess.c: Add comments about platforms.
17501         * lib/unistd.in.h (access, euidaccess): Add warnings.
17502
17503 2010-03-07  Bruno Haible  <bruno@clisp.org>
17504
17505         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
17506         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
17507         (POSIX_SPAWN_SETSCHEDULER): Likewise.
17508         (POSIX_SPAWN_USEVFORK): Define in a way that works when
17509         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17510         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
17511         declare when POSIX_SPAWN_SETSCHEDULER is zero.
17512         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
17513         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
17514         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
17515         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
17516         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
17517         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
17518         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
17519         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17520         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17521         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
17522         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
17523         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
17524         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
17525         Likewise.
17526         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
17527         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
17528         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
17529         Likewise.
17530         * tests/test-spawn.c (main): Make it work when
17531         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17532
17533 2010-03-07  Bruno Haible  <bruno@clisp.org>
17534
17535         Fix incorrect Makefile.am generation in German locale.
17536         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17537         Execute sed command with character range in C locale.
17538
17539 2010-03-06  Bruno Haible  <bruno@clisp.org>
17540
17541         Tests for module 'iconv-h'.
17542         * modules/iconv-h-tests: New file.
17543         * tests/test-iconv-h.c: New file.
17544
17545         New module 'iconv-h'.
17546         * modules/iconv-h: New file.
17547         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
17548         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
17549         (configure.ac): Remove gl_ICONV_H.
17550         (Makefile.am): Remove rule for iconv.h.
17551
17552 2010-03-06  Bruno Haible  <bruno@clisp.org>
17553
17554         More consistent naming of *.m4 files.
17555         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
17556         * modules/wctype (Files): Update.
17557
17558         More consistent naming of *.m4 files.
17559         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
17560         * modules/wchar (Files): Update.
17561
17562 2010-03-06  Jim Meyering  <meyering@redhat.com>
17563
17564         euidaccess: relax license to LGPLv2+
17565         * modules/euidaccess (License): Relax to LGPLv2+.
17566
17567 2010-03-06  Bruno Haible  <bruno@clisp.org>
17568
17569         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
17570         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
17571         (Makefile.am): Augment lib_SOURCES instead.
17572
17573 2010-03-04  Jim Meyering  <meyering@redhat.com>
17574
17575         utime: remove obsolete module
17576         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
17577         unnecessary for years, and has been marked as obsolete for 10 months.
17578         * modules/utime: Remove file.
17579         * lib/utime.c: Remove file.
17580         * m4/utime.m4: Remove file.
17581         * m4/utimes-null.m4: Remove file.
17582         * doc/posix-functions/utime.texi (utime): Remove reference to
17583         the module.  Move the sole "fixed by gnulib" item into the
17584         "problems not fixed by Gnulib" list.
17585         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
17586
17587 2010-03-05  Simon Josefsson  <simon@josefsson.org>
17588
17589         * modules/exit (License): Relax license to LGPLv2+.
17590         (Status): Mark as obsolete.
17591         * NEWS: Mention deprecated 'exit' module.
17592         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
17593         of now obsolete 'exit'.
17594
17595 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17596
17597         fts-lgpl: remove unused module
17598         * modules/fts-lgpl: Remove.
17599         * MODULES.html.sh (func_all_modules): Adjust.
17600         * check-module (find_included_lib_files): Adjust.
17601         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
17602
17603 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
17604
17605         copy-acl: enhance Solaris ACL error handling
17606         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
17607         * lib/set-mode-acl.c (qset_acl): Likewise.
17608
17609 2010-03-02  Bruno Haible  <bruno@clisp.org>
17610
17611         spawn: Don't override the system defined values on FreeBSD 8.
17612         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
17613         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
17614         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
17615         if HAVE_POSIX_SPAWN is 1.
17616         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
17617
17618 2010-03-01  Bruno Haible  <bruno@clisp.org>
17619
17620         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
17621         regarding Automake.
17622
17623 2010-02-25  Bruno Haible  <bruno@clisp.org>
17624
17625         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
17626         * gnulib-tool: Define 'echo' as a function only before the ksh alias
17627         setting, not afterwards.
17628         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17629
17630 2010-02-24  Eric Blake  <eblake@redhat.com>
17631
17632         bootstrap, git-version-gen: use timestamp
17633         * build-aux/git-version-gen (scriptversion): Force UTC.
17634         * build-aux/bootstrap (scriptversion): New variable.
17635
17636         bootstrap: allow older git
17637         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17638         older than 1.6.4.  Requested by the libvirt project.
17639
17640 2010-02-23  Eric Blake  <eblake@redhat.com>
17641
17642         warn-on-use: work with old autoconf
17643         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17644         AS_VAR semantics of autoconf 2.60.
17645         Reported by Bruno Haible.
17646
17647         bootstrap: improve some comments
17648         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17649         clarification comments.
17650
17651         gettimeofday: provide correct function
17652         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17653         when replacement is declared, otherwise provide gettimeofday.
17654         Reported by Michael Goffioul.
17655
17656 2010-02-23  Jim Meyering  <meyering@redhat.com>
17657
17658         lib-ignore: relax license to "unlimited", not LGPLv2+
17659         * modules/lib-ignore (License): Relax to "unlimited".
17660
17661 2010-02-23  Jim Meyering  <meyering@redhat.com>
17662
17663         lib-ignore: relax license to LGPLv2+
17664         * modules/lib-ignore (License): Relax to LGPLv2+.
17665
17666 2010-02-22  Eric Blake  <eblake@redhat.com>
17667
17668         lseek: avoid bash 3.2 broken pipe bug
17669         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17670         warning from bash 3.2.
17671         Reported by Ben Pfaff, with analysis from Bruno Haible.
17672
17673         bootstrap: support non-FSF copyright holder
17674         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17675         bootstrap.conf override of COPYRIGHT_HOLDER.
17676         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17677
17678         bootstrap: interoperate with gettext 0.14.1
17679         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17680
17681         bootstrap: allow for alternate submodule location
17682         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17683         hardcoding submodule location.
17684         (gnulib_mk): Allow direct use of Makefile.am.
17685
17686         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17687         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17688         rather than reconfiguring where the submodule points.
17689
17690         gettimeofday: restore support for platforms that lack function
17691         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17692         replacement if function is missing.
17693         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17694         * modules/sys_time (Makefile.am): Substitute it.
17695         * lib/sys_time.in.h (gettimeofday): Check it.
17696         Reported by Michael Goffioul.
17697
17698 2010-02-21  Bruno Haible  <bruno@clisp.org>
17699
17700         * lib/stdio.in.h (obstack_printf): Fix typo.
17701
17702 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17703
17704         vc-list-files: use bzr ls's -R option
17705         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17706         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17707
17708 2010-02-21  Jim Meyering  <meyering@redhat.com>
17709
17710         init.sh: fix EXEEXT shims to work also for names like test-prog
17711         * tests/init.sh: Re-exec a better shell, when needed.
17712         If the current shell lacks support for posix $(...), an init.sh-using
17713         test will now try to find a shell that supports that.  If EXEEXT is
17714         nonempty, we also require support for hyphen-in-alias-name and shell
17715         substitutions like ${var#glob}.  Failure to find such a shell results
17716         in a skipped test.
17717
17718 2010-02-21  Bruno Haible  <bruno@clisp.org>
17719
17720         Really work around around "broken pipe" error message from bash 3.2.
17721         * gnulib-tool (func_reset_sigpipe): Remove function.
17722         (echo): In bash 3.2, define to a function that uses printf.
17723         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17724
17725 2010-02-20  Bruno Haible  <bruno@clisp.org>
17726
17727         Restore support for automake 1.9.6 with autoconf 2.61.
17728         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17729         Reported by James Youngman <jay@gnu.org>.
17730
17731 2010-02-20  Bruno Haible  <bruno@clisp.org>
17732
17733         Improve *printf warning condition.
17734         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17735         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
17736         and the function is overridden due to SIGPIPE emulation.
17737
17738 2010-02-20  Bruno Haible  <bruno@clisp.org>
17739
17740         * lib/stdio.in.h: Tweak comments.
17741
17742 2010-02-19  Bruno Haible  <bruno@clisp.org>
17743
17744         Make it easier to find modules. New gnulib-tool option '--find'.
17745         * gnulib-tool: New option --find.
17746         (func_usage): Document it.
17747         (func_sanitize_modulelist): New function, extracted from
17748         func_all_modules.
17749         (func_all_modules): Invoke it.
17750         * doc/gnulib-tool.texi (Which modules?): New node.
17751
17752 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
17753
17754         * lib/sys_select.in.h: Provide select replacement even if
17755         sys/select.h exists on a system, for Interix.
17756
17757 2010-02-18  Jim Meyering  <meyering@redhat.com>
17758
17759         init.sh: don't use $(...) just yet
17760         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
17761         to accommodate e.g., Solaris' /bin/sh.
17762
17763 2010-02-17  Bruno Haible  <bruno@clisp.org>
17764
17765         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
17766         Reported by Ludovic Courtès <ludo@gnu.org>.
17767
17768 2010-02-16  Simon Josefsson  <simon@josefsson.org>
17769
17770         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
17771         linking with -lintl.
17772
17773 2010-02-17  Simon Josefsson  <simon@josefsson.org>
17774
17775         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
17776         if not provided by the system's netdb.h.  Reported by
17777         ludo@gnu.org (Ludovic Courtès).
17778
17779 2010-02-15  Jim Meyering  <meyering@redhat.com>
17780
17781         init.sh: improve portability and efficiency
17782         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
17783         "dummy" in a for loop.
17784         Use '!', not '^' to select the complement of a character set used
17785         in a "case" statement.
17786         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
17787         Suggestions from Eric Blake.
17788
17789         init.sh: automatically accommodate programs with the .exe suffix
17790         Automatically arrange for an invocation of "prog" to execute the
17791         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
17792         may use the simpler "prog", yet still work when built on a system
17793         that requires specifying the added suffix.
17794         Do this by constructing a function named "prog" that invokes
17795         "prog.exe" for each .exe file in selected directories.
17796         * tests/init.sh (find_exe_basenames_): New function.
17797         (create_exe_shim_functions_): New function.
17798         (path_prepend_): Use it.
17799
17800         maint.mk: mark syntax-check sc_*.m rules as .PHONY
17801         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
17802         "make -t syntax-check" doesn't create a ton of sc_*.m files.
17803
17804 2010-02-14  Jim Meyering  <meyering@redhat.com>
17805
17806         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
17807         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
17808         (sc_prohibit_hash_pjw_without_use): New rule.
17809
17810         maint.mk: allow the default upload destination dir to be overridden
17811         * top/maint.mk (upload_dest_dir_): Define with a default that
17812         preserves the status quo.
17813         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
17814         Reported by Peter Simons.
17815
17816         maint.mk: prohibit inclusion of "hash.h" without_use
17817         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
17818
17819 2010-02-10  Jim Meyering  <meyering@redhat.com>
17820
17821         maint.mk: prohibit inclusion of "ignore-value.h" without_use
17822         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
17823
17824 2010-02-09  Eric Blake  <ebb9@byu.net>
17825         and Bruno Haible  <bruno@clisp.org>
17826
17827         obstack-printf-posix: ensure declaration
17828         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
17829         extracted from gl_FUNC_OBSTACK_PRINTF.
17830         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
17831         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
17832         Likewise.
17833         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
17834         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
17835         0.
17836
17837 2010-02-08  Bruno Haible  <bruno@clisp.org>
17838
17839         gnulib-tool: Fix typo in 2010-02-07 commit.
17840         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
17841         Reported by Eric Blake.
17842
17843 2010-02-07  Bruno Haible  <bruno@clisp.org>
17844
17845         gnulib-tool: Fix up caching patches.
17846         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
17847         option --no-cache. Use associative arrays when supported by the shell.
17848         (sed_comments): New variable.
17849         (modcache): Renamed from do_cache.
17850         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
17851         abbreviate unnecessarily.
17852         (have_associative): New variable.
17853         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
17854         way also for ksh and zsh.
17855         (func_init_sed_convert_to_cache_statements): New function, extracted
17856         from func_cache_lookup_module. Add support for associative arrays.
17857         Don't set the c_MODULE_cached variable here. Ignore all lines before
17858         the first field header. Remove only the final newline, not all trailing
17859         newlines. Support empty fields correctly. Limit the use of 'eval' to
17860         assignments.
17861         (func_get_description, func_get_status, func_get_notice,
17862         func_get_applicability, func_get_filelist, func_get_dependencies,
17863         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
17864         func_get_automake_snippet, func_get_include_directive,
17865         func_get_link_directive, func_get_license, func_get_maintainer):
17866         Update documentation. List the unoptimized code first. Add support for
17867         associative arrays. Limit the use of 'eval' to assignments.
17868         (func_get_applicability): Undo stylistic pessimisations.
17869         (func_get_automake_snippet, func_get_include_directive): Reduce code
17870         duplication.
17871         (func_modules_transitive_closure, func_modules_add_dummy,
17872         func_modules_notice, func_modules_to_filelist, func_add_file,
17873         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
17874         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
17875         func_create_testdir, func_create_megatestdir): Update documentation.
17876
17877 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17878
17879         * gnulib-tool (func_cache_lookup_module): Store the module name
17880         belonging to the cache variable; error out if two different
17881         module names map to the same cache variable name.
17882
17883 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17884
17885         gnulib-tool: Make caching optional.
17886         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
17887         Update matching short versions of --no-changelog.
17888         (func_usage): Update.
17889         (sed_extract_cache_prog): Renamed from ...
17890         (sed_extract_prog): ... this; revert to old extraction script.
17891         (func_get_description, func_get_status)
17892         (func_get_notice, func_get_applicability, func_get_filelist)
17893         (func_get_dependencies, func_get_autoconf_early_snippet)
17894         (func_get_autoconf_snippet, func_get_automake_snippet)
17895         (func_get_include_directive, func_get_link_directive)
17896         (func_get_license, func_get_maintainer): If $do_cache is false,
17897         use old, non-caching extraction scripts.
17898         Suggestion by Bruno Haible.
17899
17900 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17901
17902         gnulib-tool: cache module metainformation.
17903         * gnulib-tool (sed_extract_prog): Match newline before each
17904         header, and rewrite header to a shell variable suffix.
17905         (func_cache_var, func_cache_lookup_module): New functions,
17906         to turn a module name into a cache variable prefix, and to
17907         look up and cache module metainformation.
17908         (func_get_description, func_get_status)
17909         (func_get_notice, func_get_applicability, func_get_filelist)
17910         (func_get_dependencies, func_get_autoconf_early_snippet)
17911         (func_get_autoconf_snippet, func_get_automake_snippet)
17912         (func_get_include_directive, func_get_link_directive)
17913         (func_get_license, func_get_maintainer): Use
17914         func_cache_lookup_module.
17915
17916 2010-02-07  Bruno Haible  <bruno@clisp.org>
17917
17918         fnctl: Fix missing dependency.
17919         * modules/fcntl (Depends-on): Add getdtablesize.
17920         Reported by John W. Eaton <jwe@gnu.org>.
17921
17922 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17923
17924         Argp: fix recognition of short alias options.
17925
17926         * lib/argp-parse.c (convert_options): Fix improper use of
17927         `|' between character values.
17928         * tests/test-argp.c (group1_option): New alias option
17929         --read (-r).
17930         (group1_parser): Special handling for 'r'.
17931         (test15): New test case.
17932         (test_fun): Add test15.
17933         * tests/test-argp-2.sh: Update expected --help and --usage
17934         outputs.
17935
17936 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17937
17938         * tests/test-argp.c: Fix indentation.
17939
17940 2010-02-04  Eric Blake  <ebb9@byu.net>
17941
17942         gettimeofday: expose type of second argument
17943         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
17944         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
17945         * tests/test-gettimeofday.c: Use it to silence warning.
17946         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
17947         the issue.
17948
17949 2010-02-03  Jim Meyering  <meyering@redhat.com>
17950
17951         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
17952         * lib/regcomp.c (TYPE_SIGNED): Define.
17953         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
17954
17955         regcomp.c: avoid a new -Wshadow warning
17956         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
17957
17958 2010-02-01  Jim Meyering  <meyering@redhat.com>
17959
17960         removing useless parentheses in cpp #define directives
17961         For motivation, see commit c0221df4, "define STREQ(a,b)
17962         consistently, removing useless parentheses"
17963         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
17964         * lib/mountlist.c (MNT_IGNORE): Likewise.
17965         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
17966
17967 2010-02-01  Eric Blake  <ebb9@byu.net>
17968
17969         sys_time: use link-warning
17970         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
17971         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
17972         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
17973         * modules/sys_time (Depends-on): Add warn-on-use.
17974         (Makefile.am): Always build replacement.
17975         (configure.ac): Update substitutions.
17976         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
17977         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
17978         bother with SYS_TIME_H.
17979         * modules/gettimeofday (configure.ac): Declare indicator.
17980         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
17981         in use.
17982
17983         closein-tests: silence compiler warning
17984         * tests/test-closein.c (main): Ignore fread result.
17985         * modules/closein-tests (Depends-on): Add ignore-value.
17986
17987         tests: silence warning about system return
17988         * tests/test-areadlink-with-size.c (main): Ignore system result.
17989         * tests/test-areadlink.c (main): Likewise.
17990         * tests/test-areadlinkat-with-size.c (main): Likewise.
17991         * tests/test-areadlinkat.c (main): Likewise.
17992         * tests/test-canonicalize-lgpl.c (main): Likewise.
17993         * tests/test-canonicalize.c (main): Likewise.
17994         * tests/test-chown.c (main): Likewise.
17995         * tests/test-fchownat.c (main): Likewise.
17996         * tests/test-fdutimensat.c (main): Likewise.
17997         * tests/test-fstatat.c (main): Likewise.
17998         * tests/test-futimens.c (main): Likewise.
17999         * tests/test-lchown.c (main): Likewise.
18000         * tests/test-link.c (main): Likewise.
18001         * tests/test-linkat.c (main): Likewise.
18002         * tests/test-lstat.c (main): Likewise.
18003         * tests/test-mkdir.c (main): Likewise.
18004         * tests/test-mkdirat.c (main): Likewise.
18005         * tests/test-mkfifo.c (main): Likewise.
18006         * tests/test-mkfifoat.c (main): Likewise.
18007         * tests/test-mknod.c (main): Likewise.
18008         * tests/test-readlink.c (main): Likewise.
18009         * tests/test-remove.c (main): Likewise.
18010         * tests/test-rename.c (main): Likewise.
18011         * tests/test-renameat.c (main): Likewise.
18012         * tests/test-rmdir.c (main): Likewise.
18013         * tests/test-symlink.c (main): Likewise.
18014         * tests/test-symlinkat.c (main): Likewise.
18015         * tests/test-unlink.c (main): Likewise.
18016         * tests/test-unlinkat.c (main): Likewise.
18017         * tests/test-utimens.c (main): Likewise.
18018         * tests/test-utimensat.c (main): Likewise.
18019         * modules/areadlink-tests (Depends-on): Add ignore-value.
18020         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18021         * modules/areadlinkat-tests (Depends-on): Likewise.
18022         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18023         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18024         * modules/canonicalize-tests (Depends-on): Likewise.
18025         * modules/chown-tests (Depends-on): Likewise.
18026         * modules/fdutimensat-tests (Depends-on): Likewise.
18027         * modules/futimens-tests (Depends-on): Likewise.
18028         * modules/lchown-tests (Depends-on): Likewise.
18029         * modules/link-tests (Depends-on): Likewise.
18030         * modules/linkat-tests (Depends-on): Likewise.
18031         * modules/lstat-tests (Depends-on): Likewise.
18032         * modules/mkdir-tests (Depends-on): Likewise.
18033         * modules/mkfifo-tests (Depends-on): Likewise.
18034         * modules/mkfifoat-tests (Depends-on): Likewise.
18035         * modules/mknod-tests (Depends-on): Likewise.
18036         * modules/openat-tests (Depends-on): Likewise.
18037         * modules/readlink-tests (Depends-on): Likewise.
18038         * modules/remove-tests (Depends-on): Likewise.
18039         * modules/rename-tests (Depends-on): Likewise.
18040         * modules/renameat-tests (Depends-on): Likewise.
18041         * modules/rmdir-tests (Depends-on): Likewise.
18042         * modules/symlink-tests (Depends-on): Likewise.
18043         * modules/symlinkat-tests (Depends-on): Likewise.
18044         * modules/unlink-tests (Depends-on): Likewise.
18045         * modules/utimens-tests (Depends-on): Likewise.
18046         * modules/utimensat-tests (Depends-on): Likewise.
18047
18048 2010-01-31  Bruno Haible  <bruno@clisp.org>
18049
18050         Perform the same test for many <math.h> functions.
18051         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18052         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18053         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18054         of gl_MATHFUNC.
18055         * modules/acos (configure.ac): Likewise.
18056         * modules/asin (configure.ac): Likewise.
18057         * modules/atan (configure.ac): Likewise.
18058         * modules/atan2 (configure.ac): Likewise.
18059         * modules/cbrt (configure.ac): Likewise.
18060         * modules/copysign (configure.ac): Likewise.
18061         * modules/cos (configure.ac): Likewise.
18062         * modules/cosh (configure.ac): Likewise.
18063         * modules/erf (configure.ac): Likewise.
18064         * modules/erfc (configure.ac): Likewise.
18065         * modules/exp (configure.ac): Likewise.
18066         * modules/fmod (configure.ac): Likewise.
18067         * modules/hypot (configure.ac): Likewise.
18068         * modules/j0 (configure.ac): Likewise.
18069         * modules/j1 (configure.ac): Likewise.
18070         * modules/jn (configure.ac): Likewise.
18071         * modules/lgamma (configure.ac): Likewise.
18072         * modules/log (configure.ac): Likewise.
18073         * modules/log10 (configure.ac): Likewise.
18074         * modules/log1p (configure.ac): Likewise.
18075         * modules/pow (configure.ac): Likewise.
18076         * modules/remainder (configure.ac): Likewise.
18077         * modules/sin (configure.ac): Likewise.
18078         * modules/sinh (configure.ac): Likewise.
18079         * modules/tan (configure.ac): Likewise.
18080         * modules/tanh (configure.ac): Likewise.
18081         * modules/y0 (configure.ac): Likewise.
18082         * modules/y1 (configure.ac): Likewise.
18083         * modules/yn (configure.ac): Likewise.
18084         Suggested by Paolo Bonzini.
18085
18086 2010-01-31  Bruno Haible  <bruno@clisp.org>
18087
18088         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18089
18090 2010-01-31  Bruno Haible  <bruno@clisp.org>
18091
18092         Work around getdelim() bug on FreeBSD 8.0.
18093         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18094         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18095         not work.
18096         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18097         is 1.
18098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18099         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18100         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18101         a non-zero size.
18102         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18103
18104 2010-01-31  Bruno Haible  <bruno@clisp.org>
18105
18106         Work around getline() bug on FreeBSD 8.0.
18107         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18108         and a non-zero size.
18109         * tests/test-getline.c (main): Likewise.
18110         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18111         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18112
18113 2010-01-28  Eric Blake  <ebb9@byu.net>
18114
18115         regex: fix build failure
18116         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18117         platforms.
18118
18119 2010-01-28  Jim Meyering  <meyering@redhat.com>
18120
18121         regex: do not ignore memory allocation failure
18122         * lib/regex_internal.c (create_cd_newstate): Detect
18123         re_node_set_init_copy failure.   Extracted from glibc commit
18124         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18125
18126         regex: sync more white-space changes from libc
18127         * lib/regex_internal.c: White-space only changes.
18128         * lib/regexec.c: Likewise.
18129
18130         regex: add many uses of __attribute_warn_unused_result__
18131         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18132         * lib/regexec.c: Likewise.
18133         Extracted from a messy glibc commit.
18134
18135         regcomp.c: spelling and merge-artifact from glibc
18136         * lib/regcomp.c: Merge remainder of glibc's
18137         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18138
18139         regcomp.c: sync white-space changes from glibc
18140         * lib/regcomp.c: Merge to accommodate white space
18141         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18142
18143         regcomp.c: do not ignore internal return values
18144         * lib/regcomp.c: Do not ignore internal return values.
18145         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18146         but without its white-space changes and spelling fixes.
18147
18148         regex_internal.h: define __attribute_warn_unused_result__
18149         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18150
18151         maint: add a syntax-check rule to check for vulnerable Makefile.in
18152         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18153
18154 2010-01-27  Jim Meyering  <meyering@redhat.com>
18155
18156         ncftpput-ftp: clean up spaces
18157         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18158         Remove trailing blanks.
18159
18160 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18161
18162         * build-aux/git-version-gen: Fix copyright statement.
18163         * build-aux/gnupload: Likewise.
18164         * tests/test-arcfour.c: Likewise.
18165         * tests/test-arctwo.c: Likewise.
18166         * tests/test-count-one-bits.c: Likewise.
18167         * tests/test-crc.c: Likewise.
18168         * tests/test-des.c: Likewise.
18169         * tests/test-gc-arcfour.c: Likewise.
18170         * tests/test-gc-arctwo.c: Likewise.
18171         * tests/test-gc-des.c: Likewise.
18172         * tests/test-gc-hmac-md5.c: Likewise.
18173         * tests/test-gc-hmac-sha1.c: Likewise.
18174         * tests/test-gc-md2.c: Likewise.
18175         * tests/test-gc-md4.c: Likewise.
18176         * tests/test-gc-md5.c: Likewise.
18177         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18178         * tests/test-gc-rijndael.c: Likewise.
18179         * tests/test-gc-sha1.c: Likewise.
18180         * tests/test-gc.c: Likewise.
18181         * tests/test-gethostname.c: Likewise.
18182         * tests/test-gettimeofday.c: Likewise.
18183         * tests/test-hash.c: Likewise.
18184         * tests/test-hmac-md5.c: Likewise.
18185         * tests/test-hmac-sha1.c: Likewise.
18186         * tests/test-md2.c: Likewise.
18187         * tests/test-md4.c: Likewise.
18188         * tests/test-md5.c: Likewise.
18189         * tests/test-memchr.c: Likewise.
18190         * tests/test-memchr2.c: Likewise.
18191         * tests/test-memcmp.c: Likewise.
18192         * tests/test-memmem.c: Likewise.
18193         * tests/test-memrchr.c: Likewise.
18194         * tests/test-rawmemchr.c: Likewise.
18195         * tests/test-read-file.c: Likewise.
18196         * tests/test-rijndael.c: Likewise.
18197         * tests/test-sockets.c: Likewise.
18198         * tests/test-strchrnul.c: Likewise.
18199         * tests/test-strstr.c: Likewise.
18200         * tests/test-strtod.c: Likewise.
18201         * build-aux/ncftpput-ftp: Likewise.
18202
18203 2010-01-26  Eric Blake  <ebb9@byu.net>
18204
18205         ignore-value: update recommended header name
18206         * modules/ignore-value (Include): Only use <> for headers that
18207         exist in glibc.
18208
18209 2010-01-26  Jim Meyering  <meyering@redhat.com>
18210
18211         test-userspec.c: avoid compiler warnings
18212         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18213         and "initialization discards qualifiers..." warnings.
18214         Put the first "uid" in its own scope, and make char* members "const".
18215
18216 2010-01-25  Bruno Haible  <bruno@clisp.org>
18217
18218         gnulib-tool: Make warning diagnostics consistent.
18219         * gnulib-tool (func_warning): New function.
18220         Use it everywhere where gnulib-tool produces output to stderr and it is
18221         not a fatal error.
18222
18223 2010-01-25  Bruno Haible  <bruno@clisp.org>
18224
18225         Fix test dependencies.
18226         * modules/xstrtol-tests (Depends-on): Add inttypes.
18227         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18228
18229 2010-01-25 Pádraig Brady <P@draigBrady.com>
18230
18231         syntax-check: detect incorrect boolean macro values in config.h
18232         * modules/maintainer-makefile (configure.ac): Parameterize the location
18233         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18234         The logic is from Eric Blake and the location indicated by Jim Meyering.
18235         Note the more natural CONFIG_HEADER name is prohibited by automake
18236         for backwards compatibility reasons.
18237         * top/maint.mk (sc_Wundef_boolean): New rule.
18238
18239 2010-01-25  Jim Meyering  <meyering@redhat.com>
18240
18241         bootstrap: detect MacOS 10.6's shasum, too
18242         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18243         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18244
18245 2010-01-23  Jim Meyering  <meyering@redhat.com>
18246
18247         xstrtoll: new module
18248         * modules/xstrtoll: New file.
18249         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18250         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18251         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18252         ./configure fails if you use this module and lack "long long".
18253         * modules/xstrtoll-tests: New module.
18254         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18255         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18256         new init.sh-based test framework.
18257
18258 2010-01-24  Bruno Haible  <bruno@clisp.org>
18259
18260         Tests for module 'yn'.
18261         * modules/yn-tests: New file.
18262         * tests/test-yn.c: New file.
18263
18264         Tests for module 'y1'.
18265         * modules/y1-tests: New file.
18266         * tests/test-y1.c: New file.
18267
18268         Tests for module 'y0'.
18269         * modules/y0-tests: New file.
18270         * tests/test-y0.c: New file.
18271
18272         Tests for module 'tanh'.
18273         * modules/tanh-tests: New file.
18274         * tests/test-tanh.c: New file.
18275
18276         Tests for module 'tan'.
18277         * modules/tan-tests: New file.
18278         * tests/test-tan.c: New file.
18279
18280         Tests for module 'sqrt'.
18281         * modules/sqrt-tests: New file.
18282         * tests/test-sqrt.c: New file.
18283
18284         Tests for module 'sinh'.
18285         * modules/sinh-tests: New file.
18286         * tests/test-sinh.c: New file.
18287
18288         Tests for module 'sin'.
18289         * modules/sin-tests: New file.
18290         * tests/test-sin.c: New file.
18291
18292         Tests for module 'rint'.
18293         * modules/rint-tests: New file.
18294         * tests/test-rint.c: New file.
18295
18296         Tests for module 'remainder'.
18297         * modules/remainder-tests: New file.
18298         * tests/test-remainder.c: New file.
18299
18300         Tests for module 'pow'.
18301         * modules/pow-tests: New file.
18302         * tests/test-pow.c: New file.
18303
18304         Tests for module 'nextafter'.
18305         * modules/nextafter-tests: New file.
18306         * tests/test-nextafter.c: New file.
18307
18308         Tests for module 'modf'.
18309         * modules/modf-tests: New file.
18310         * tests/test-modf.c: New file.
18311
18312         Tests for module 'logb'.
18313         * modules/logb-tests: New file.
18314         * tests/test-logb.c: New file.
18315
18316         Tests for module 'log1p'.
18317         * modules/log1p-tests: New file.
18318         * tests/test-log1p.c: New file.
18319
18320         Tests for module 'log10'.
18321         * modules/log10-tests: New file.
18322         * tests/test-log10.c: New file.
18323
18324         Tests for module 'log'.
18325         * modules/log-tests: New file.
18326         * tests/test-log.c: New file.
18327
18328         Tests for module 'lgamma'.
18329         * modules/lgamma-tests: New file.
18330         * tests/test-lgamma.c: New file.
18331
18332         Tests for module 'ldexp'.
18333         * modules/ldexp-tests: New file.
18334         * tests/test-ldexp.c: New file.
18335
18336         Tests for module 'jn'.
18337         * modules/jn-tests: New file.
18338         * tests/test-jn.c: New file.
18339
18340         Tests for module 'j1'.
18341         * modules/j1-tests: New file.
18342         * tests/test-j1.c: New file.
18343
18344         Tests for module 'j0'.
18345         * modules/j0-tests: New file.
18346         * tests/test-j0.c: New file.
18347
18348         Tests for module 'hypot'.
18349         * modules/hypot-tests: New file.
18350         * tests/test-hypot.c: New file.
18351
18352         Tests for module 'fmod'.
18353         * modules/fmod-tests: New file.
18354         * tests/test-fmod.c: New file.
18355
18356         Tests for module 'fabs'.
18357         * modules/fabs-tests: New file.
18358         * tests/test-fabs.c: New file.
18359
18360         Tests for module 'exp'.
18361         * modules/exp-tests: New file.
18362         * tests/test-exp.c: New file.
18363
18364         Tests for module 'erfc'.
18365         * modules/erfc-tests: New file.
18366         * tests/test-erfc.c: New file.
18367
18368         Tests for module 'erf'.
18369         * modules/erf-tests: New file.
18370         * tests/test-erf.c: New file.
18371
18372         Tests for module 'cosh'.
18373         * modules/cosh-tests: New file.
18374         * tests/test-cosh.c: New file.
18375
18376         Tests for module 'cos'.
18377         * modules/cos-tests: New file.
18378         * tests/test-cos.c: New file.
18379
18380         Tests for module 'copysign'.
18381         * modules/copysign-tests: New file.
18382         * tests/test-copysign.c: New file.
18383
18384         Tests for module 'cbrt'.
18385         * modules/cbrt-tests: New file.
18386         * tests/test-cbrt.c: New file.
18387
18388         Tests for module 'atan2'.
18389         * modules/atan2-tests: New file.
18390         * tests/test-atan2.c: New file.
18391
18392         Tests for module 'atan'.
18393         * modules/atan-tests: New file.
18394         * tests/test-atan.c: New file.
18395
18396         Tests for module 'asin'.
18397         * modules/asin-tests: New file.
18398         * tests/test-asin.c: New file.
18399
18400         Tests for module 'acos'.
18401         * modules/acos-tests: New file.
18402         * tests/test-acos.c: New file.
18403
18404 2010-01-24  Bruno Haible  <bruno@clisp.org>
18405
18406         Fix tests for common <math.h> functions.
18407         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18408         code snippet that references the function pointer, rather than merely
18409         calling the function. Substitute the FUNC_LIBM variable.
18410         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18411         * modules/acos (configure.ac): Likewise.
18412         * modules/asin (configure.ac): Likewise.
18413         * modules/atan (configure.ac): Likewise.
18414         * modules/atan2 (configure.ac): Likewise.
18415         * modules/cbrt (configure.ac): Likewise.
18416         * modules/copysign (configure.ac): Likewise.
18417         * modules/cos (configure.ac): Likewise.
18418         * modules/cosh (configure.ac): Likewise.
18419         * modules/erf (configure.ac): Likewise.
18420         * modules/erfc (configure.ac): Likewise.
18421         * modules/exp (configure.ac): Likewise.
18422         * modules/fabs (configure.ac): Likewise.
18423         * modules/fmod (configure.ac): Likewise.
18424         * modules/hypot (configure.ac): Likewise.
18425         * modules/j0 (configure.ac): Likewise.
18426         * modules/j1 (configure.ac): Likewise.
18427         * modules/jn (configure.ac): Likewise.
18428         * modules/ldexp (configure.ac): Likewise.
18429         * modules/lgamma (configure.ac): Likewise.
18430         * modules/log (configure.ac): Likewise.
18431         * modules/log10 (configure.ac): Likewise.
18432         * modules/log1p (configure.ac): Likewise.
18433         * modules/logb (configure.ac): Likewise.
18434         * modules/modf (configure.ac): Likewise.
18435         * modules/nextafter (configure.ac): Likewise.
18436         * modules/pow (configure.ac): Likewise.
18437         * modules/remainder (configure.ac): Likewise.
18438         * modules/rint (configure.ac): Likewise.
18439         * modules/sin (configure.ac): Likewise.
18440         * modules/sinh (configure.ac): Likewise.
18441         * modules/tan (configure.ac): Likewise.
18442         * modules/tanh (configure.ac): Likewise.
18443         * modules/y0 (configure.ac): Likewise.
18444         * modules/y1 (configure.ac): Likewise.
18445         * modules/yn (configure.ac): Likewise.
18446
18447 2010-01-24  Bruno Haible  <bruno@clisp.org>
18448
18449         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18450         * tests/test-acosl.c (x): New variable.
18451         (main): Store argument in x and fetch it from x.
18452         * tests/test-asinl.c (x): New variable.
18453         (main): Store argument in x and fetch it from x.
18454         * tests/test-atanl.c (x): New variable.
18455         (main): Store argument in x and fetch it from x.
18456         * tests/test-cosl.c (x): New variable.
18457         (main): Store argument in x and fetch it from x.
18458         * tests/test-expl.c (x): New variable.
18459         (main): Store argument in x and fetch it from x.
18460         * tests/test-logl.c (x): New variable.
18461         (main): Store argument in x and fetch it from x.
18462         * tests/test-sinl.c (x): New variable.
18463         (main): Store argument in x and fetch it from x.
18464         * tests/test-sqrtl.c (x): New variable.
18465         (main): Store argument in x and fetch it from x.
18466         * tests/test-tanl.c (x): New variable.
18467         (main): Store argument in x and fetch it from x.
18468
18469 2010-01-24  Bruno Haible  <bruno@clisp.org>
18470
18471         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
18472         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
18473         assignments to the initial TESTS_ENVIRONMENT.
18474         * doc/gnulib.texi (Unit test modules): Document it.
18475         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
18476         TESTS_ENVIRONMENT.
18477         * modules/btowc-tests (Makefile.am): Likewise.
18478         * modules/c-stack-tests (Makefile.am): Likewise.
18479         * modules/c-strcase-tests (Makefile.am): Likewise.
18480         * modules/copy-file-tests (Makefile.am): Likewise.
18481         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
18482         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
18483         * modules/mbrtowc-tests (Makefile.am): Likewise.
18484         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18485         * modules/mbscasestr-tests (Makefile.am): Likewise.
18486         * modules/mbschr-tests (Makefile.am): Likewise.
18487         * modules/mbscspn-tests (Makefile.am): Likewise.
18488         * modules/mbsinit-tests (Makefile.am): Likewise.
18489         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18490         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
18491         * modules/mbspbrk-tests (Makefile.am): Likewise.
18492         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18493         * modules/mbsrchr-tests (Makefile.am): Likewise.
18494         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
18495         * modules/mbsspn-tests (Makefile.am): Likewise.
18496         * modules/mbsstr-tests (Makefile.am): Likewise.
18497         * modules/nl_langinfo-tests (Makefile.am): Likewise.
18498         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
18499         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18500         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18501         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18502         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18503         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
18504         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18505         * modules/wcrtomb-tests (Makefile.am): Likewise.
18506         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
18507         * modules/wcsrtombs-tests (Makefile.am): Likewise.
18508         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
18509         assignments from TESTS_ENVIRONMENT.
18510         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
18511         augmentation.
18512         * modules/argp-version-etc-tests (Makefile.am): Likewise.
18513         * modules/atexit-tests (Makefile.am): Likewise.
18514         * modules/binary-io-tests (Makefile.am): Likewise.
18515         * modules/closein-tests (Makefile.am): Likewise.
18516         * modules/dprintf-posix-tests (Makefile.am): Likewise.
18517         * modules/exclude-tests (Makefile.am): Likewise.
18518         * modules/fflush-tests (Makefile.am): Likewise.
18519         * modules/fpending-tests (Makefile.am): Likewise.
18520         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18521         * modules/freadahead-tests (Makefile.am): Likewise.
18522         * modules/freadptr-tests (Makefile.am): Likewise.
18523         * modules/freadseek-tests (Makefile.am): Likewise.
18524         * modules/fseek-tests (Makefile.am): Likewise.
18525         * modules/fseeko-tests (Makefile.am): Likewise.
18526         * modules/ftell-tests (Makefile.am): Likewise.
18527         * modules/ftello-tests (Makefile.am): Likewise.
18528         * modules/idpriv-drop-tests (Makefile.am): Likewise.
18529         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
18530         * modules/lseek-tests (Makefile.am): Likewise.
18531         * modules/parse-duration-tests (Makefile.am): Likewise.
18532         * modules/perror-tests (Makefile.am): Likewise.
18533         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
18534         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
18535         * modules/pipe-tests (Makefile.am): Likewise.
18536         * modules/pread-tests (Makefile.am): Likewise.
18537         * modules/printf-posix-tests (Makefile.am): Likewise.
18538         * modules/select-tests (Makefile.am): Likewise.
18539         * modules/sigpipe-tests (Makefile.am): Likewise.
18540         * modules/tsearch-tests (Makefile.am): Likewise.
18541         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
18542         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
18543         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18544         * modules/uniwidth/width-tests (Makefile.am): Likewise.
18545         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
18546         * modules/version-etc-tests (Makefile.am): Likewise.
18547         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18548         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18549         * modules/xalloc-die-tests (Makefile.am): Likewise.
18550         * modules/xprintf-posix-tests (Makefile.am): Likewise.
18551         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18552         * modules/xstrtol-tests (Makefile.am): Likewise.
18553         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18554         * modules/yesno-tests (Makefile.am): Likewise.
18555         Suggested by Jim Meyering.
18556
18557 2010-01-24  Bruno Haible  <bruno@clisp.org>
18558
18559         More documentation.
18560         * doc/gnulib.texi (Writing modules): New chapter.
18561         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
18562         the new chapter.
18563
18564 2010-01-24  Jim Meyering  <meyering@redhat.com>
18565
18566         maint.mk: do not prepend "./" after filtering
18567         * top/maint.mk (_prepend_srcdir_prefix): New variable
18568         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
18569         "./" when $(srcdir) is ".".
18570
18571         define STREQ(a,b) consistently, removing useless parentheses
18572         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
18573         since the only risk is that "a" or "b" contains an unparenthesized
18574         comma, but if either did that, STREQ would have 3 or more arguments.
18575         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
18576         * lib/fts.c (STREQ): Remove unnecessary parentheses.
18577         * lib/hash-triple.c (STREQ): Likewise.
18578         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
18579         * lib/getugroups.c (STREQ): Likewise.
18580
18581 2010-01-23  Jim Meyering  <meyering@redhat.com>
18582
18583         maint.mk: fix syntax-check in a non-srcdir build directory
18584         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
18585         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
18586
18587 2010-01-22  Jim Meyering  <meyering@redhat.com>
18588
18589         userspec: add unit tests
18590         * tests/test-userspec.c: New file.
18591         * modules/userspec-tests: Likewise.
18592
18593 2010-01-21  Jim Meyering  <meyering@redhat.com>
18594
18595         maint.mk: handle source file names containing "." robustly
18596         * top/maint.mk (_dot_escaped_srcdir): Define.
18597         (VC_LIST): Use it in LHS of sed substitution.
18598
18599 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
18600
18601         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
18602         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
18603         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
18604         from a non-srcdir build.
18605
18606 2010-01-20  Eric Blake  <ebb9@byu.net>
18607
18608         warn-on-use: use instead of link-warning
18609         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
18610         * modules/unistd (Depends-on, Makefile.am): Likewise.
18611         * modules/arpa_inet (Depends-on): Replace link-warning with
18612         warn-on-use.
18613         (Makefile.am): Update rules accordingly.
18614         * modules/ctype (Depends-on, Makefile.am): Likewise.
18615         * modules/dirent (Depends-on, Makefile.am): Likewise.
18616         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
18617         * modules/inttypes (Depends-on, Makefile.am): Likewise.
18618         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18619         * modules/locale (Depends-on, Makefile.am): Likewise.
18620         * modules/math (Depends-on, Makefile.am): Likewise.
18621         * modules/search (Depends-on, Makefile.am): Likewise.
18622         * modules/signal (Depends-on, Makefile.am): Likewise.
18623         * modules/spawn (Depends-on, Makefile.am): Likewise.
18624         * modules/stdlib (Depends-on, Makefile.am): Likewise.
18625         * modules/string (Depends-on, Makefile.am): Likewise.
18626         * modules/strings (Depends-on, Makefile.am): Likewise.
18627         * modules/sys_file (Depends-on, Makefile.am): Likewise.
18628         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
18629         * modules/sys_select (Depends-on, Makefile.am): Likewise.
18630         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
18631         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
18632         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18633         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18634         * modules/wchar (Depends-on, Makefile.am): Likewise.
18635         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18636         should be poisoned.
18637         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18638         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18639         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18640         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18641         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18642         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18643         * m4/math_h.m4 (gl_MATH_H): Likewise.
18644         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18645         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18646         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18647         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18648         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18649         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18650         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18651         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18652         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18653         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18654         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18655         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18656         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18657         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18658         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18659         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18660         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18661         GL_LINK_WARNING.
18662         * lib/ctype.in.h: Likewise.
18663         * lib/dirent.in.h: Likewise.
18664         * lib/fcntl.in.h: Likewise.
18665         * lib/inttypes.in.h: Likewise.
18666         * lib/langinfo.in.h: Likewise.
18667         * lib/locale.in.h: Likewise.
18668         * lib/math.in.h: Likewise.
18669         * lib/search.in.h: Likewise.
18670         * lib/signal.in.h: Likewise.
18671         * lib/spawn.in.h: Likewise.
18672         * lib/stdio.in.h: Likewise.
18673         * lib/stdlib.in.h: Likewise.
18674         * lib/string.in.h: Likewise.
18675         * lib/strings.in.h: Likewise.
18676         * lib/sys_file.in.h: Likewise.
18677         * lib/sys_ioctl.in.h: Likewise.
18678         * lib/sys_select.in.h: Likewise.
18679         * lib/sys_socket.in.h: Likewise.
18680         * lib/sys_stat.in.h: Likewise.
18681         * lib/sys_times.in.h: Likewise.
18682         * lib/sys_utsname.in.h: Likewise.
18683         * lib/unistd.in.h: Likewise.
18684         * lib/wchar.in.h: Likewise.
18685
18686 2010-01-20  Bruno Haible  <bruno@clisp.org>
18687
18688         Avoid duplicate -lm.
18689         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18690         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18691         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18692         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18693         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18694         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18695         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18696         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18697         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18698         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18699         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18700         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18701         Reported by Paolo Bonzini.
18702
18703 2010-01-19  Bruno Haible  <bruno@clisp.org>
18704
18705         langinfo, nl_langinfo: Relicense under LGPLv2+.
18706         * modules/langinfo (License): Change to LGPLv2+.
18707         * modules/nl_langinfo (License): Likewise.
18708         Patch by David Lutterkort <lutter@redhat.com>.
18709
18710 2010-01-19  Bruno Haible  <bruno@clisp.org>
18711
18712         Avoid compilation error with cc on OSF/1 5.1.
18713         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18714         statement, not before.
18715         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18716
18717 2010-01-18  Bruno Haible  <bruno@clisp.org>
18718
18719         Avoid a link error due to the __printf__ symbol.
18720         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18721         and 2.6.x.
18722         (__format__, __printf__): Remove definitions.
18723         * lib/argp-fmtstream.h: Likewise.
18724         * lib/argp.h: Likewise.
18725         * lib/error.h: Likewise.
18726         * lib/vasnprintf.h: Likewise.
18727         * lib/xprintf.h: Likewise.
18728         * lib/xvasprintf.h: Likewise.
18729         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18730
18731 2010-01-18  Bruno Haible  <bruno@clisp.org>
18732
18733         Tests for module 'tanl'.
18734         * modules/tanl-tests: New file.
18735         * tests/test-tanl.c: New file.
18736
18737         Tests for module 'sqrtl'.
18738         * modules/sqrtl-tests: New file.
18739         * tests/test-sqrtl.c: New file.
18740
18741         Tests for module 'sinl'.
18742         * modules/sinl-tests: New file.
18743         * tests/test-sinl.c: New file.
18744
18745         Tests for module 'logl'.
18746         * modules/logl-tests: New file.
18747         * tests/test-logl.c: New file.
18748
18749         Tests for module 'expl'.
18750         * modules/expl-tests: New file.
18751         * tests/test-expl.c: New file.
18752
18753         Tests for module 'cosl'.
18754         * modules/cosl-tests: New file.
18755         * tests/test-cosl.c: New file.
18756
18757         Tests for module 'atanl'.
18758         * modules/atanl-tests: New file.
18759         * tests/test-atanl.c: New file.
18760
18761         Tests for module 'asinl'.
18762         * modules/asinl-tests: New file.
18763         * tests/test-asinl.c: New file.
18764
18765         Tests for module 'acosl'.
18766         * modules/acosl-tests: New file.
18767         * tests/test-acosl.c: New file.
18768
18769         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18770         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18771         tanl): Use the standard gnulib idiom.
18772         * lib/cosl.c: Don't include trigl.c and sincosl.c.
18773         * lib/sinl.c: Likewise.
18774         * lib/tanl.c: Don't include trigl.c.
18775         (kernel_tanl): Make static.
18776         * lib/sincosl.c: Include trigl.h first.
18777         * lib/trigl.c: Likewise.
18778         * m4/acosl.m4: New file.
18779         * m4/asinl.m4: New file.
18780         * m4/atanl.m4: New file.
18781         * m4/cosl.m4: New file.
18782         * m4/expl.m4: New file.
18783         * m4/logl.m4: New file.
18784         * m4/sinl.m4: New file.
18785         * m4/sqrtl.m4: New file.
18786         * m4/tanl.m4: New file.
18787         * m4/mathl.m4: Remove file.
18788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
18789         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18790         Don't initialize GNULIB_MATHL.
18791         * modules/acosl: New file.
18792         * modules/asinl: New file.
18793         * modules/atanl: New file.
18794         * modules/cosl: New file.
18795         * modules/expl: New file.
18796         * modules/logl: New file.
18797         * modules/sinl: New file.
18798         * modules/sqrtl: New file.
18799         * modules/tanl: New file.
18800         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
18801         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
18802         substitute GNULIB_MATHL.
18803         * modules/mathl: Rewritten.
18804         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
18805         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
18806         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
18807         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
18808         * doc/posix-functions/expl.texi: Mention the 'expl' module.
18809         * doc/posix-functions/logl.texi: Mention the 'logl' module.
18810         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
18811         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
18812         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
18813
18814 2010-01-18  Bruno Haible  <bruno@clisp.org>
18815
18816         sqrt: Make gl_FUNC_SQRT requirable.
18817         * m4/sqrt.m4: New file.
18818         * modules/sqrt (Files): Add it.
18819         (configure.ac): Invoke gl_FUNC_SQRT.
18820
18821 2010-01-18  Bruno Haible  <bruno@clisp.org>
18822
18823         New modules for common <math.h> functions.
18824         * m4/mathfunc.m4: New file.
18825         * modules/acos: New file.
18826         * modules/asin: New file.
18827         * modules/atan: New file.
18828         * modules/atan2: New file.
18829         * modules/cbrt: New file.
18830         * modules/copysign: New file.
18831         * modules/cos: New file.
18832         * modules/cosh: New file.
18833         * modules/erf: New file.
18834         * modules/erfc: New file.
18835         * modules/exp: New file.
18836         * modules/fabs: New file.
18837         * modules/fmod: New file.
18838         * modules/hypot: New file.
18839         * modules/j0: New file.
18840         * modules/j1: New file.
18841         * modules/jn: New file.
18842         * modules/ldexp: New file.
18843         * modules/lgamma: New file.
18844         * modules/log: New file.
18845         * modules/log10: New file.
18846         * modules/log1p: New file.
18847         * modules/logb: New file.
18848         * modules/modf: New file.
18849         * modules/nextafter: New file.
18850         * modules/pow: New file.
18851         * modules/remainder: New file.
18852         * modules/rint: New file.
18853         * modules/sin: New file.
18854         * modules/sinh: New file.
18855         * modules/sqrt: New file.
18856         * modules/tan: New file.
18857         * modules/tanh: New file.
18858         * modules/y0: New file.
18859         * modules/y1: New file.
18860         * modules/yn: New file.
18861         * doc/posix-functions/acos.texi: Mention the 'acos' module.
18862         * doc/posix-functions/asin.texi: Mention the 'asin' module.
18863         * doc/posix-functions/atan.texi: Mention the 'atan' module.
18864         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
18865         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
18866         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
18867         * doc/posix-functions/cos.texi: Mention the 'cos' module.
18868         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
18869         * doc/posix-functions/erf.texi: Mention the 'erf' module.
18870         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
18871         * doc/posix-functions/exp.texi: Mention the 'exp' module.
18872         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
18873         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
18874         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
18875         * doc/posix-functions/j0.texi: Mention the 'j0' module.
18876         * doc/posix-functions/j1.texi: Mention the 'j1' module.
18877         * doc/posix-functions/jn.texi: Mention the 'jn' module.
18878         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
18879         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
18880         * doc/posix-functions/log.texi: Mention the 'log' module.
18881         * doc/posix-functions/log10.texi: Mention the 'log10' module.
18882         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
18883         * doc/posix-functions/logb.texi: Mention the 'logb' module.
18884         * doc/posix-functions/modf.texi: Mention the 'modf' module.
18885         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
18886         * doc/posix-functions/pow.texi: Mention the 'pow' module.
18887         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
18888         * doc/posix-functions/rint.texi: Mention the 'rint' module.
18889         * doc/posix-functions/sin.texi: Mention the 'sin' module.
18890         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
18891         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
18892         * doc/posix-functions/tan.texi: Mention the 'tan' module.
18893         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
18894         * doc/posix-functions/y0.texi: Mention the 'y0' module.
18895         * doc/posix-functions/y1.texi: Mention the 'y1' module.
18896         * doc/posix-functions/yn.texi: Mention the 'yn' module.
18897
18898 2010-01-18  Jim Meyering  <meyering@redhat.com>
18899
18900         ignore-value: relax license to LGPLv2+
18901         * modules/ignore-value (License): Relax to LGPLv2+.
18902
18903         getdate: don't leak when TZ contains two or more '"'s
18904         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
18905         double quote in TZ after the first one.
18906
18907         readtokens: do not leak internal token_lengths buffer
18908         * lib/readtokens.c (readtokens): Free the local, lengths,
18909         when the supplied "token_lengths" parameter is NULL.
18910
18911 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18912
18913         Fix a couple of missing LIBTHREAD link failures on AIX.
18914         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
18915         $(LIBTHREAD).
18916         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
18917
18918         Link test-poll against INET_PTON_LIB.
18919         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
18920         for inet_pton on Solaris 10.
18921
18922 2010-01-17  Bruno Haible  <bruno@clisp.org>
18923
18924         unistdio/*-sprintf: Fix typo in module description.
18925         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
18926         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
18927         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
18928         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
18929         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
18930         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
18931         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
18932         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18933
18934 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18935
18936         gnulib-tool: fix filelist for AIX, HP-UX ksh.
18937         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
18938         variables in shell case patterns, for AIX and HP-UX ksh.
18939
18940         Split large sed scripts, for HP-UX sed.
18941         * modules/stdio: Split sed scripts around 50 sed commands,
18942         to avoid HP-UX limit of 99 commands, in the near future.
18943         * modules/string: Likewise.
18944         * modules/unistd: Likewise.
18945
18946         gnulib-tool: avoid writing in the current directory.
18947         * gnulib-tool (func_emit_lib_Makefile_am)
18948         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
18949         not in the current directory, so concurrent gnulib-tool
18950         instances do not interfere.
18951
18952 2010-01-16  Jim Meyering  <meyering@redhat.com>
18953
18954         doc: update users.txt
18955         * users.txt: Add grep.
18956         (diffutils, gzip): Update URLs.
18957
18958 2010-01-12  Bruno Haible  <bruno@clisp.org>
18959
18960         posix_spawn: Avoid test failure on Cygwin.
18961         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
18962         characters.
18963         Reported by Simon Josefsson.
18964
18965 2010-01-12  Bruno Haible  <bruno@clisp.org>
18966
18967         * tests/test-cond.c (main): When skipping the test, show the reason.
18968
18969 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18970
18971         * lib/striconv.c (str_cd_iconv): Avoid if before free.
18972
18973 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18974
18975         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
18976         VC_LIST_ALWAYS_EXCLUDE_REGEX.
18977
18978 2010-01-12  Eric Blake  <ebb9@byu.net>
18979
18980         build: guarantee AS_VAR_IF
18981         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
18982         (gl_AS_VAR_IF): Move...
18983         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18984         Reported by Simon Josefsson.
18985
18986 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18987
18988         * lib/stdio.in.h: Fix typo.
18989
18990 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18991
18992         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18993         libgpg-error.
18994
18995 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18996
18997         * tests/test-xalloc-die.sh: Use $EXEEXT.
18998
18999 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19000             Bruno Haible  <bruno@clisp.org>
19001
19002         getlogin, getlogin_r: Avoid test failure.
19003         * tests/test-getlogin.c: Include <stdio.h>.
19004         (main): Skip the test when the function fails because stdin is not a
19005         tty.
19006         * tests/test-getlogin_r.c: Include <stdio.h>.
19007         (main): Skip the test when the function fails because stdin is not a
19008         tty.
19009
19010 2010-01-11  Eric Blake  <ebb9@byu.net>
19011
19012         tests: avoid more large file warnings
19013         * tests/test-fflush.c: Avoid warning about ftell use.
19014         * tests/test-fseek.c: Avoid warning about fseek use.
19015
19016 2010-01-10  Bruno Haible  <bruno@clisp.org>
19017
19018         nproc: Work better on Linux when /proc and /sys are not mounted.
19019         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19020         as lower bound when, on glibc/Linux systems,
19021         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19022         Suggested by Pádraig Brady <P@draigbrady.com>.
19023         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19024
19025         nproc: Refactor.
19026         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19027         extracted from num_processors.
19028         (num_processors): Call it.
19029
19030 2010-01-11  Jim Meyering  <meyering@redhat.com>
19031
19032         utimecmp: avoid new warning from upcoming gcc-4.5.0
19033         * lib/utimecmp.c (BILLION): Define using #define rather than an
19034         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19035
19036 2010-01-11  Eric Blake  <ebb9@byu.net>
19037
19038         math: add portability warnings for classification macros
19039         * modules/math (Depends-on): Add warn-on-use.
19040         (Makefile.am): Provide new substitutions.
19041         * m4/math_h.m4 (gl_MATH_H): Require inline.
19042         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19043         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19044         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19045         implement warnings.
19046
19047         unistd: warn on use of environ without module
19048         * modules/unistd (Depends-on): Add warn-on-use.
19049         (Makefile.am): Provide new substitutions.
19050         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19051         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19052
19053         stdio: warn on suspicious uses
19054         * modules/stdio (Depends-on): Add warn-on-use.
19055         (Makefile.am): Provide new substitutions.
19056         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19057         fseeko.
19058         * lib/stdio.in.h (gets): Always warn on use.
19059         (fseek, ftell): Adjust when warnings are issued, and honor
19060         _GL_NO_LARGE_FILES as a way to silence the warning.
19061         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19062         any warning about large file offsets.
19063         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19064         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19065         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19066         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19067         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19068         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19069         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19070         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19071
19072         warn-on-use: new module
19073         * modules/warn-on-use: New file.
19074         * build-aux/warn-on-use.h: Likewise.
19075         * m4/warn-on-use.m4: Likewise.
19076         * MODULES.html.sh (Support for building): Mention it.
19077
19078 2010-01-10  Bruno Haible  <bruno@clisp.org>
19079
19080         Tests for module 'unistr/u32-strdup'.
19081         * modules/unistr/u32-strdup-tests: New file.
19082         * tests/unistr/test-u32-strdup.c: New file.
19083
19084         Tests for module 'unistr/u16-strdup'.
19085         * modules/unistr/u16-strdup-tests: New file.
19086         * tests/unistr/test-u16-strdup.c: New file.
19087
19088         Tests for module 'unistr/u8-strdup'.
19089         * modules/unistr/u8-strdup-tests: New file.
19090         * tests/unistr/test-u8-strdup.c: New file.
19091         * tests/unistr/test-strdup.h: New file.
19092
19093         Tests for module 'unistr/u32-strncmp'.
19094         * modules/unistr/u32-strncmp-tests: New file.
19095         * tests/unistr/test-u32-strncmp.c: New file.
19096
19097         Tests for module 'unistr/u16-strncmp'.
19098         * modules/unistr/u16-strncmp-tests: New file.
19099         * tests/unistr/test-u16-strncmp.c: New file.
19100
19101         Tests for module 'unistr/u8-strncmp'.
19102         * modules/unistr/u8-strncmp-tests: New file.
19103         * tests/unistr/test-u8-strncmp.c: New file.
19104         * tests/unistr/test-strncmp.h: New file.
19105
19106         Tests for module 'unistr/u32-strcoll'.
19107         * modules/unistr/u32-strcoll-tests: New file.
19108         * tests/unistr/test-u32-strcoll.c: New file.
19109
19110         Tests for module 'unistr/u16-strcoll'.
19111         * modules/unistr/u16-strcoll-tests: New file.
19112         * tests/unistr/test-u16-strcoll.c: New file.
19113
19114         Tests for module 'unistr/u8-strcoll'.
19115         * modules/unistr/u8-strcoll-tests: New file.
19116         * tests/unistr/test-u8-strcoll.c: New file.
19117
19118         Tests for module 'unistr/u32-strcmp'.
19119         * modules/unistr/u32-strcmp-tests: New file.
19120         * tests/unistr/test-u32-strcmp.c: New file.
19121         * tests/unistr/test-u32-strcmp.h: New file.
19122
19123         Tests for module 'unistr/u16-strcmp'.
19124         * modules/unistr/u16-strcmp-tests: New file.
19125         * tests/unistr/test-u16-strcmp.c: New file.
19126         * tests/unistr/test-u16-strcmp.h: New file.
19127
19128         Tests for module 'unistr/u8-strcmp'.
19129         * modules/unistr/u8-strcmp-tests: New file.
19130         * tests/unistr/test-u8-strcmp.c: New file.
19131         * tests/unistr/test-u8-strcmp.h: New file.
19132         * tests/unistr/test-strcmp.h: New file.
19133
19134         Tests for module 'unistr/u32-strncat'.
19135         * modules/unistr/u32-strncat-tests: New file.
19136         * tests/unistr/test-u32-strncat.c: New file.
19137
19138         Tests for module 'unistr/u16-strncat'.
19139         * modules/unistr/u16-strncat-tests: New file.
19140         * tests/unistr/test-u16-strncat.c: New file.
19141
19142         Tests for module 'unistr/u8-strncat'.
19143         * modules/unistr/u8-strncat-tests: New file.
19144         * tests/unistr/test-u8-strncat.c: New file.
19145         * tests/unistr/test-strncat.h: New file.
19146
19147         Tests for module 'unistr/u32-strcat'.
19148         * modules/unistr/u32-strcat-tests: New file.
19149         * tests/unistr/test-u32-strcat.c: New file.
19150
19151         Tests for module 'unistr/u16-strcat'.
19152         * modules/unistr/u16-strcat-tests: New file.
19153         * tests/unistr/test-u16-strcat.c: New file.
19154
19155         Tests for module 'unistr/u8-strcat'.
19156         * modules/unistr/u8-strcat-tests: New file.
19157         * tests/unistr/test-u8-strcat.c: New file.
19158         * tests/unistr/test-strcat.h: New file.
19159
19160         Tests for module 'unistr/u32-stpncpy'.
19161         * modules/unistr/u32-stpncpy-tests: New file.
19162         * tests/unistr/test-u32-stpncpy.c: New file.
19163
19164         Tests for module 'unistr/u16-stpncpy'.
19165         * modules/unistr/u16-stpncpy-tests: New file.
19166         * tests/unistr/test-u16-stpncpy.c: New file.
19167
19168         Tests for module 'unistr/u8-stpncpy'.
19169         * modules/unistr/u8-stpncpy-tests: New file.
19170         * tests/unistr/test-u8-stpncpy.c: New file.
19171         * tests/unistr/test-stpncpy.h: New file.
19172
19173         Tests for module 'unistr/u32-strncpy'.
19174         * modules/unistr/u32-strncpy-tests: New file.
19175         * tests/unistr/test-u32-strncpy.c: New file.
19176
19177         Tests for module 'unistr/u16-strncpy'.
19178         * modules/unistr/u16-strncpy-tests: New file.
19179         * tests/unistr/test-u16-strncpy.c: New file.
19180
19181         Tests for module 'unistr/u8-strncpy'.
19182         * modules/unistr/u8-strncpy-tests: New file.
19183         * tests/unistr/test-u8-strncpy.c: New file.
19184         * tests/unistr/test-strncpy.h: New file.
19185
19186         Tests for module 'unistr/u32-stpcpy'.
19187         * modules/unistr/u32-stpcpy-tests: New file.
19188         * tests/unistr/test-u32-stpcpy.c: New file.
19189
19190         Tests for module 'unistr/u16-stpcpy'.
19191         * modules/unistr/u16-stpcpy-tests: New file.
19192         * tests/unistr/test-u16-stpcpy.c: New file.
19193
19194         Tests for module 'unistr/u8-stpcpy'.
19195         * modules/unistr/u8-stpcpy-tests: New file.
19196         * tests/unistr/test-u8-stpcpy.c: New file.
19197         * tests/unistr/test-stpcpy.h: New file.
19198
19199         Tests for module 'unistr/u32-strcpy'.
19200         * modules/unistr/u32-strcpy-tests: New file.
19201         * tests/unistr/test-u32-strcpy.c: New file.
19202
19203         Tests for module 'unistr/u16-strcpy'.
19204         * modules/unistr/u16-strcpy-tests: New file.
19205         * tests/unistr/test-u16-strcpy.c: New file.
19206
19207         Tests for module 'unistr/u8-strcpy'.
19208         * modules/unistr/u8-strcpy-tests: New file.
19209         * tests/unistr/test-u8-strcpy.c: New file.
19210         * tests/unistr/test-strcpy.h: New file.
19211
19212         Tests for module 'unistr/u32-strnlen'.
19213         * modules/unistr/u32-strnlen-tests: New file.
19214         * tests/unistr/test-u32-strnlen.c: New file.
19215
19216         Tests for module 'unistr/u16-strnlen'.
19217         * modules/unistr/u16-strnlen-tests: New file.
19218         * tests/unistr/test-u16-strnlen.c: New file.
19219
19220         Tests for module 'unistr/u8-strnlen'.
19221         * modules/unistr/u8-strnlen-tests: New file.
19222         * tests/unistr/test-u8-strnlen.c: New file.
19223         * tests/unistr/test-strnlen.h: New file.
19224
19225         Tests for module 'unistr/u32-strlen'.
19226         * modules/unistr/u32-strlen-tests: New file.
19227         * tests/unistr/test-u32-strlen.c: New file.
19228
19229         Tests for module 'unistr/u16-strlen'.
19230         * modules/unistr/u16-strlen-tests: New file.
19231         * tests/unistr/test-u16-strlen.c: New file.
19232
19233         Tests for module 'unistr/u8-strlen'.
19234         * modules/unistr/u8-strlen-tests: New file.
19235         * tests/unistr/test-u8-strlen.c: New file.
19236
19237         Tests for module 'unistr/u32-prev'.
19238         * modules/unistr/u32-prev-tests: New file.
19239         * tests/unistr/test-u32-prev.c: New file.
19240
19241         Tests for module 'unistr/u16-prev'.
19242         * modules/unistr/u16-prev-tests: New file.
19243         * tests/unistr/test-u16-prev.c: New file.
19244
19245         Tests for module 'unistr/u8-prev'.
19246         * modules/unistr/u8-prev-tests: New file.
19247         * tests/unistr/test-u8-prev.c: New file.
19248
19249         Tests for module 'unistr/u32-next'.
19250         * modules/unistr/u32-next-tests: New file.
19251         * tests/unistr/test-u32-next.c: New file.
19252
19253         Tests for module 'unistr/u16-next'.
19254         * modules/unistr/u16-next-tests: New file.
19255         * tests/unistr/test-u16-next.c: New file.
19256
19257         Tests for module 'unistr/u8-next'.
19258         * modules/unistr/u8-next-tests: New file.
19259         * tests/unistr/test-u8-next.c: New file.
19260
19261         Tests for module 'unistr/u32-strmbtouc'.
19262         * modules/unistr/u32-strmbtouc-tests: New file.
19263         * tests/unistr/test-u32-strmbtouc.c: New file.
19264
19265         Tests for module 'unistr/u16-strmbtouc'.
19266         * modules/unistr/u16-strmbtouc-tests: New file.
19267         * tests/unistr/test-u16-strmbtouc.c: New file.
19268
19269         Tests for module 'unistr/u8-strmbtouc'.
19270         * modules/unistr/u8-strmbtouc-tests: New file.
19271         * tests/unistr/test-u8-strmbtouc.c: New file.
19272
19273         Tests for module 'unistr/u32-strmblen'.
19274         * modules/unistr/u32-strmblen-tests: New file.
19275         * tests/unistr/test-u32-strmblen.c: New file.
19276
19277         Tests for module 'unistr/u16-strmblen'.
19278         * modules/unistr/u16-strmblen-tests: New file.
19279         * tests/unistr/test-u16-strmblen.c: New file.
19280
19281         Tests for module 'unistr/u8-strmblen'.
19282         * modules/unistr/u8-strmblen-tests: New file.
19283         * tests/unistr/test-u8-strmblen.c: New file.
19284
19285         Tests for module 'unistr/u32-cpy-alloc'.
19286         * modules/unistr/u32-cpy-alloc-tests: New file.
19287         * tests/unistr/test-u32-cpy-alloc.c: New file.
19288
19289         Tests for module 'unistr/u16-cpy-alloc'.
19290         * modules/unistr/u16-cpy-alloc-tests: New file.
19291         * tests/unistr/test-u16-cpy-alloc.c: New file.
19292
19293         Tests for module 'unistr/u8-cpy-alloc'.
19294         * modules/unistr/u8-cpy-alloc-tests: New file.
19295         * tests/unistr/test-u8-cpy-alloc.c: New file.
19296         * tests/unistr/test-cpy-alloc.h: New file.
19297
19298         Tests for module 'unistr/u32-mbsnlen'.
19299         * modules/unistr/u32-mbsnlen-tests: New file.
19300         * tests/unistr/test-u32-mbsnlen.c: New file.
19301
19302         Tests for module 'unistr/u16-mbsnlen'.
19303         * modules/unistr/u16-mbsnlen-tests: New file.
19304         * tests/unistr/test-u16-mbsnlen.c: New file.
19305
19306         Tests for module 'unistr/u8-mbsnlen'.
19307         * modules/unistr/u8-mbsnlen-tests: New file.
19308         * tests/unistr/test-u8-mbsnlen.c: New file.
19309
19310         Tests for module 'unistr/u32-chr'.
19311         * modules/unistr/u32-chr-tests: New file.
19312         * tests/unistr/test-u32-chr.c: New file.
19313
19314         Tests for module 'unistr/u16-chr'.
19315         * modules/unistr/u16-chr-tests: New file.
19316         * tests/unistr/test-u16-chr.c: New file.
19317
19318         Tests for module 'unistr/u8-chr'.
19319         * modules/unistr/u8-chr-tests: New file.
19320         * tests/unistr/test-u8-chr.c: New file.
19321         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19322
19323         Tests for module 'unistr/u32-cmp2'.
19324         * modules/unistr/u32-cmp2-tests: New file.
19325         * tests/unistr/test-u32-cmp2.c: New file.
19326
19327         Tests for module 'unistr/u16-cmp2'.
19328         * modules/unistr/u16-cmp2-tests: New file.
19329         * tests/unistr/test-u16-cmp2.c: New file.
19330
19331         Tests for module 'unistr/u8-cmp2'.
19332         * modules/unistr/u8-cmp2-tests: New file.
19333         * tests/unistr/test-u8-cmp2.c: New file.
19334         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19335
19336         Tests for module 'unistr/u32-cmp'.
19337         * modules/unistr/u32-cmp-tests: New file.
19338         * tests/unistr/test-u32-cmp.c: New file.
19339
19340         Tests for module 'unistr/u16-cmp'.
19341         * modules/unistr/u16-cmp-tests: New file.
19342         * tests/unistr/test-u16-cmp.c: New file.
19343
19344         Tests for module 'unistr/u8-cmp'.
19345         * modules/unistr/u8-cmp-tests: New file.
19346         * tests/unistr/test-u8-cmp.c: New file.
19347         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19348
19349         Tests for module 'unistr/u32-set'.
19350         * modules/unistr/u32-set-tests: New file.
19351         * tests/unistr/test-u32-set.c: New file.
19352
19353         Tests for module 'unistr/u16-set'.
19354         * modules/unistr/u16-set-tests: New file.
19355         * tests/unistr/test-u16-set.c: New file.
19356
19357         Tests for module 'unistr/u8-set'.
19358         * modules/unistr/u8-set-tests: New file.
19359         * tests/unistr/test-u8-set.c: New file.
19360         * tests/unistr/test-set.h: New file.
19361
19362         Tests for module 'unistr/u32-move'.
19363         * modules/unistr/u32-move-tests: New file.
19364         * tests/unistr/test-u32-move.c: New file.
19365
19366         Tests for module 'unistr/u16-move'.
19367         * modules/unistr/u16-move-tests: New file.
19368         * tests/unistr/test-u16-move.c: New file.
19369
19370         Tests for module 'unistr/u8-move'.
19371         * modules/unistr/u8-move-tests: New file.
19372         * tests/unistr/test-u8-move.c: New file.
19373         * tests/unistr/test-move.h: New file.
19374
19375         Tests for module 'unistr/u32-cpy'.
19376         * modules/unistr/u32-cpy-tests: New file.
19377         * tests/unistr/test-u32-cpy.c: New file.
19378
19379         Tests for module 'unistr/u16-cpy'.
19380         * modules/unistr/u16-cpy-tests: New file.
19381         * tests/unistr/test-u16-cpy.c: New file.
19382
19383         Tests for module 'unistr/u8-cpy'.
19384         * modules/unistr/u8-cpy-tests: New file.
19385         * tests/unistr/test-u8-cpy.c: New file.
19386         * tests/unistr/test-cpy.h: New file.
19387
19388 2010-01-09  Bruno Haible  <bruno@clisp.org>
19389
19390         Tests for module 'unistr/u32-uctomb'.
19391         * modules/unistr/u32-uctomb-tests: New file.
19392         * tests/unistr/test-u32-uctomb.c: New file.
19393
19394         Tests for module 'unistr/u16-uctomb'.
19395         * modules/unistr/u16-uctomb-tests: New file.
19396         * tests/unistr/test-u16-uctomb.c: New file.
19397
19398         Tests for module 'unistr/u8-uctomb'.
19399         * modules/unistr/u8-uctomb-tests: New file.
19400         * tests/unistr/test-u8-uctomb.c: New file.
19401
19402         Tests for module 'unistr/u32-mbtoucr'.
19403         * modules/unistr/u32-mbtoucr-tests: New file.
19404         * tests/unistr/test-u32-mbtoucr.c: New file.
19405
19406         Tests for module 'unistr/u16-mbtoucr'.
19407         * modules/unistr/u16-mbtoucr-tests: New file.
19408         * tests/unistr/test-u16-mbtoucr.c: New file.
19409
19410         Tests for module 'unistr/u8-mbtoucr'.
19411         * modules/unistr/u8-mbtoucr-tests: New file.
19412         * tests/unistr/test-u8-mbtoucr.c: New file.
19413
19414         Tests for module 'unistr/u32-mbtouc'.
19415         * modules/unistr/u32-mbtouc-tests: New file.
19416         * tests/unistr/test-u32-mbtouc.c: New file.
19417
19418         Tests for module 'unistr/u16-mbtouc'.
19419         * modules/unistr/u16-mbtouc-tests: New file.
19420         * tests/unistr/test-u16-mbtouc.c: New file.
19421
19422         Tests for module 'unistr/u8-mbtouc'.
19423         * modules/unistr/u8-mbtouc-tests: New file.
19424         * tests/unistr/test-u8-mbtouc.c: New file.
19425
19426         Tests for module 'unistr/u32-mbtouc-unsafe'.
19427         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19428         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19429         * tests/unistr/test-u32-mbtouc.h: New file.
19430
19431         Tests for module 'unistr/u16-mbtouc-unsafe'.
19432         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19433         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19434         * tests/unistr/test-u16-mbtouc.h: New file.
19435
19436         Tests for module 'unistr/u8-mbtouc-unsafe'.
19437         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19438         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19439         * tests/unistr/test-u8-mbtouc.h: New file.
19440
19441         Tests for module 'unistr/u32-mblen'.
19442         * modules/unistr/u32-mblen-tests: New file.
19443         * tests/unistr/test-u32-mblen.c: New file.
19444
19445         Tests for module 'unistr/u16-mblen'.
19446         * modules/unistr/u16-mblen-tests: New file.
19447         * tests/unistr/test-u16-mblen.c: New file.
19448
19449         Tests for module 'unistr/u8-mblen'.
19450         * modules/unistr/u8-mblen-tests: New file.
19451         * tests/unistr/test-u8-mblen.c: New file.
19452
19453         Tests for module 'unistr/u32-to-u16'.
19454         * modules/unistr/u32-to-u16-tests: New file.
19455         * tests/unistr/test-u32-to-u16.c: New file.
19456
19457         Tests for module 'unistr/u32-to-u8'.
19458         * modules/unistr/u32-to-u8-tests: New file.
19459         * tests/unistr/test-u32-to-u8.c: New file.
19460
19461         Tests for module 'unistr/u16-to-u32'.
19462         * modules/unistr/u16-to-u32-tests: New file.
19463         * tests/unistr/test-u16-to-u32.c: New file.
19464
19465         Tests for module 'unistr/u16-to-u8'.
19466         * modules/unistr/u16-to-u8-tests: New file.
19467         * tests/unistr/test-u16-to-u8.c: New file.
19468
19469         Tests for module 'unistr/u8-to-u32'.
19470         * modules/unistr/u8-to-u32-tests: New file.
19471         * tests/unistr/test-u8-to-u32.c: New file.
19472
19473         Tests for module 'unistr/u8-to-u16'.
19474         * modules/unistr/u8-to-u16-tests: New file.
19475         * tests/unistr/test-u8-to-u16.c: New file.
19476
19477         Tests for module 'unistr/u32-check'.
19478         * modules/unistr/u32-check-tests: New file.
19479         * tests/unistr/test-u32-check.c: New file.
19480
19481         Tests for module 'unistr/u16-check'.
19482         * modules/unistr/u16-check-tests: New file.
19483         * tests/unistr/test-u16-check.c: New file.
19484
19485         Tests for module 'unistr/u8-check'.
19486         * modules/unistr/u8-check-tests: New file.
19487         * tests/unistr/test-u8-check.c: New file.
19488
19489         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
19490         (category_equals): New function.
19491         (main): Add more tests.
19492         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
19493
19494         * tests/unictype/test-bidi_byname.c (main): Add more tests.
19495
19496 2010-01-10  Bruno Haible  <bruno@clisp.org>
19497
19498         unistr/u*-strcoll: Try harder to distinguish different strings.
19499         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
19500         compare s1 and s2 to see if they are different.
19501
19502 2010-01-10  Bruno Haible  <bruno@clisp.org>
19503
19504         unistr/u*-stpncpy: Fix the return value.
19505         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
19506         description of the return value consistent with stpncpy in glibc.
19507         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
19508         written non-NUL unit.
19509
19510 2010-01-10  Bruno Haible  <bruno@clisp.org>
19511
19512         unistr/u*-next: Add missing dependencies.
19513         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
19514         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
19515         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
19516
19517 2010-01-10  Bruno Haible  <bruno@clisp.org>
19518
19519         unistr/u8-mbsnlen: Fix return value for incomplete character.
19520         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19521         u8_mblen.
19522         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
19523         Remove unistr/u8-mblen.
19524         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
19525         u16_mblen.
19526         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
19527         Remove unistr/u16-mblen.
19528
19529 2010-01-10  Bruno Haible  <bruno@clisp.org>
19530
19531         wchar: Fix compilation error when <wchar.h> is used from coreutils.
19532         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
19533         Reported by Brian Gough <bjg@gnu.org> and
19534         Chris Clayton <chris2553@googlemail.com> via
19535         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
19536
19537 2010-01-09  Bruno Haible  <bruno@clisp.org>
19538
19539         unistr/u16-to-u32: Reject invalid input.
19540         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
19541         u16_mbtouc.
19542         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
19543         Remove unistr/u16-mbtouc.
19544
19545         unistr/u16-to-u8: Reject invalid input.
19546         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
19547         u16_mbtouc.
19548         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
19549         Remove unistr/u16-mbtouc.
19550
19551         unistr/u8-to-u32: Reject invalid input.
19552         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
19553         u8_mbtouc.
19554         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
19555         Remove unistr/u8-mbtouc.
19556
19557         unistr/u8-to-u16: Reject invalid input.
19558         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
19559         u8_mbtouc.
19560         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
19561         Remove unistr/u8-mbtouc.
19562
19563 2010-01-09  Bruno Haible  <bruno@clisp.org>
19564
19565         Tests for module 'getlogin'.
19566         * modules/getlogin-tests: New file.
19567         * tests/test-getlogin.c: New file.
19568
19569         New module 'getlogin'.
19570         * lib/unistd.in.h (getlogin): New declaration.
19571         * lib/getlogin.c: New file.
19572         * m4/getlogin.m4: New file.
19573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
19574         HAVE_GETLOGIN.
19575         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
19576         HAVE_GETLOGIN.
19577         * modules/getlogin: New file.
19578         * doc/posix-functions/getlogin.texi: Mention the new module.
19579         Reported by John W. Eaton <jwe@gnu.org>.
19580
19581 2010-01-09  Bruno Haible  <bruno@clisp.org>
19582
19583         getlogin_r: Support for native Windows.
19584         * lib/getlogin_r.c: Include <windows.h>
19585         (getlogin_r): Implement for native Windows.
19586         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
19587         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
19588         via John W. Eaton <jwe@gnu.org>.
19589
19590 2010-01-09  Bruno Haible  <bruno@clisp.org>
19591
19592         getlogin_r: Small fixes.
19593         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
19594         succeeds.
19595         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
19596         before testing whether getlogin_r is declared. No need to set
19597         HAVE_DECL_GETLOGIN_R to 1.
19598         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
19599
19600 2010-01-09  Bruno Haible  <bruno@clisp.org>
19601
19602         * lib/unistd.in.h (getlogin_r): Add comment.
19603
19604 2010-01-09  Bruno Haible  <bruno@clisp.org>
19605
19606         Tests for module 'getlogin_r'.
19607         * modules/getlogin_r-tests: New file.
19608         * tests/test-getlogin_r.c: New file.
19609
19610 2010-01-09  Jim Meyering  <meyering@redhat.com>
19611
19612         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
19613         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
19614         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
19615
19616 2010-01-08  Simon Josefsson  <simon@josefsson.org>
19617
19618         * lib/dup2.c (rpl_dup2): Improve comment.
19619
19620 2010-01-08  Eric Blake  <ebb9@byu.net>
19621
19622         maint.mk: allow packages to add makefile @@ exceptions
19623         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
19624         (sc_makefile_check): Rename...
19625         (sc_makefile_at_at_check): ...to this, and use hook.
19626
19627         dup2: work around mingw bug
19628         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
19629         Reported by Simon Josefsson.
19630
19631 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
19632
19633         glob: Fix C++ compilation.
19634         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19635         C++.
19636
19637 2010-01-07  Bruno Haible  <bruno@clisp.org>
19638
19639         Fix indentation of wctype.in.h, broken since 2007-01-06.
19640         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19641
19642 2010-01-07  Bruno Haible  <bruno@clisp.org>
19643
19644         mbslen: Avoid collision with system function.
19645         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19646         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19647         * m4/mbslen.m4: New file.
19648         * modules/mbslen (Files): Add it.
19649         (configure.ac): Invoke gl_MBSLEN.
19650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19651         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19652         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19653         via Ian Beckwith <ianb@erislabs.net>.
19654
19655 2010-01-07  Bruno Haible  <bruno@clisp.org>
19656
19657         dirent: Document the last fix.
19658         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19659
19660 2010-01-07  Bruno Haible  <bruno@clisp.org>
19661
19662         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19663         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19664         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19665         va_list are defined.
19666         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19667         Reported by Eric Blake.
19668
19669 2010-01-07  Bruno Haible  <bruno@clisp.org>
19670
19671         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19672         * modules/xlist (Depends-on): Add 'list',
19673         * modules/xoset (Depends-on): Add 'oset'.
19674         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19675
19676 2010-01-07  Bruno Haible  <bruno@clisp.org>
19677
19678         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19679         * doc/posix-functions/strncasecmp.texi: Likewise.
19680
19681 2010-01-07  Bruno Haible  <bruno@clisp.org>
19682
19683         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19684
19685 2010-01-07  John W. Eaton  <jwe@octave.org>
19686
19687         wctype: allow C++ use
19688         * lib/wctype.in.h: Add extern "C" block for C++.
19689
19690 2010-01-06  Eric Blake  <ebb9@byu.net>
19691
19692         maint.mk: detect incorrect GFDL usage
19693         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19694
19695 2010-01-06  Jim Meyering  <meyering@redhat.com>
19696         and Eric Blake  <ebb9@byu.net>
19697
19698         maint.mk: ignore multi-line copyright in NEWS
19699         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19700
19701 2010-01-06  Eric Blake  <ebb9@byu.net>
19702
19703         select: add missing dependency
19704         * modules/select-tests (Depends-on): Move sockets dependency...
19705         * modules/select (Depends-on): ...here.
19706         Reported by Ian Beckwith.
19707
19708         doc: regenerate INSTALL
19709         * doc/INSTALL: Reflect recent autoconf update.
19710         * doc/INSTALL.ISO: Likewise.
19711         * doc/INSTALL.UTF-8: Likewise.
19712
19713         pread: fix compilation on glibc
19714         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19715         Reported by Ralf Wildenhues.
19716
19717         dirent: fix test failure
19718         * lib/dirent.in.h (includes): Guarantee ino_t.
19719         Reported by Ralf Wildenhues.
19720
19721 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19722
19723         linkat, renameat: avoid bad free
19724         * lib/at-func2.c (at_func2): Fix typo.
19725         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19726
19727 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19728
19729         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19730         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19731         to avoid failure of symlink test later.
19732
19733 2010-01-06  Eric Blake  <ebb9@byu.net>
19734
19735         stdio, unistd: guarantee ssize_t
19736         * lib/unistd.in.h (includes): Ensure that types required by POSIX
19737         2008 are exposed when needed.
19738         * lib/stdio.in.h (includes): Likewise.
19739         Reported by Ralf Wildenhues.
19740
19741 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
19742
19743         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
19744         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
19745         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
19746
19747 2010-01-06  Jim Meyering  <meyering@redhat.com>
19748
19749         readtokens: this module *does* require xalloc.h
19750         It uses only functions that were omitted by the old syntax-check rule.
19751         * lib/readtokens.c: Include "xalloc.h" once again.
19752         * modules/readtokens (Depends-on): Add xalloc.
19753         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
19754
19755 2010-01-05  Eric Blake  <ebb9@byu.net>
19756
19757         maint: support 'make announcement' from a VPATH build
19758         * top/maint.mk (announcement): Look for correct NEWS file.
19759
19760 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
19761
19762         utimens (fdutimens): ignore a negative FD, per contract
19763         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
19764         when we have a valid file descriptor.  Otherwise, using a brand
19765         new glibc (with just-patched futimens that now fails with EBADF)
19766         would cause this function to fail with ENOSYS.
19767         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
19768         See also http://bugzilla.redhat.com/552320.
19769
19770 2010-01-05  Eric Blake  <ebb9@byu.net>
19771
19772         strcase: document what it provides
19773         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
19774         gnulib module.
19775         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
19776         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
19777
19778 2010-01-05  Jim Meyering  <meyering@redhat.com>
19779
19780         maint: remove useless inclusions of "xalloc.h"
19781         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
19782         * lib/readtokens.c: Likewise.
19783         * lib/same.c: Likewise.
19784         * modules/getloadavg (Depends-on): Remove xalloc.
19785         * modules/readtokens: Likewise.
19786         * modules/same: Likewise.
19787
19788         maint.mk: include 4 more function names in alloca.h-checking regexp
19789         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
19790         regexp.  Before, we would give a false-positive (saying alloca.h
19791         is included unnecessarily) when the only uses involved omitted symbols.
19792
19793         xalloc.h: use consistent formatting
19794         * lib/xalloc.h: Move declarations to start in the first column.
19795
19796 2010-01-05  Eric Blake  <ebb9@byu.net>
19797
19798         mkdir: avoid xalloc
19799         * lib/mkdir.c (includes): Drop unused header.
19800         Reported by John W. Eaton.
19801
19802 2010-01-04  Jim Meyering  <meyering@redhat.com>
19803
19804         nl_langinfo: avoid configure-time syntax error
19805         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
19806         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
19807         the empty string.  Don't let that provoke a shell syntax error.
19808
19809         regcomp, regexec, fnmatch: avoid array bounds read error
19810         * lib/regcomp.c (build_equiv_class): From glibc:
19811         Use only the low 24 bits of a findidx return value as an index
19812         into the weights array.  Patch by Ulrich Drepper:
19813         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
19814         * lib/regexec.c (check_node_accept_bytes): Likewise.
19815         * lib/fnmatch_loop.c (FCT): Likewise.
19816
19817         regcomp: skip collseq lookup when there are no rules
19818         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
19819         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
19820
19821         regcomp: recognize ill-formed { } expressions
19822         * lib/regcomp.c (parse_dup_op): From glibc:
19823         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
19824
19825         regcomp: fix typo in comment
19826         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
19827         s/satisfy/satisfies/.
19828
19829         regcomp: sync from glibc: remove dead store
19830         * lib/regcomp.c (duplicate_node_closure): Remove useless
19831         search_duplicated_node call and dead store.
19832
19833         regcomp: sync from glibc; always use nl_langinfo
19834         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
19835         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
19836         * modules/regex (Depends-on): Add nl_langinfo.
19837
19838 2010-01-04  Eric Blake  <ebb9@byu.net>
19839
19840         fdopendir: fix configure test
19841         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
19842
19843 2010-01-01  Bruno Haible  <bruno@clisp.org>
19844
19845         wchar: Remove unused configure check.
19846         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
19847
19848 2010-01-01  Eric Blake  <ebb9@byu.net>
19849
19850         headers: make check of system header explicit
19851         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
19852         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
19853         ourselves.
19854         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19855         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19856         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19857         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
19858         internals.
19859         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
19860         missing.
19861         Suggested by Bruno Haible.
19862
19863 2010-01-01  Jim Meyering  <meyering@redhat.com>
19864
19865         ChangeLog: tweak to eliminate unnecessary copyright line
19866         * ChangeLog: Remove a copyright line that was mistakenly updated
19867         by today's update-copyright run.  Reported by Eric Blake.
19868
19869         test-update-copyright: don't let envvar setting cause test failure
19870         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19871
19872 2010-01-01  Bruno Haible  <bruno@clisp.org>
19873
19874         localename: Avoid gcc warning.
19875         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
19876         function if it is not used.
19877
19878 2010-01-01  Jim Meyering  <meyering@redhat.com>
19879
19880         update nearly all FSF copyright year lists to include 2010
19881         Use the same procedure as for 2009, outlined in
19882         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
19883
19884         version-etc: set COPYRIGHT_YEAR to 2010
19885         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
19886
19887 2009-12-31  Eric Blake  <ebb9@byu.net>
19888
19889         doc: correct availability of cygwin 1.5.x getopt
19890         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
19891         variables.
19892         * doc/posix-functions/opterr.texi (opterr): Likewise.
19893         * doc/posix-functions/optind.texi (optind): Likewise.
19894         * doc/posix-functions/optopt.texi (optopt): Likewise.
19895         * doc/posix-functions/tzname.texi (tzname): Likewise.
19896
19897         openat: update maintainer
19898         * modules/openat (Maintainer): Add myself.
19899
19900         utimens: avoid shadowing warning
19901         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
19902         buffers into one, to avoid shadowing, as well as avoiding a
19903         redundant stat.
19904         Reported by Jim Meyering.
19905
19906         test-dup2: avoid compiler warning
19907         * tests/test-dup2.c (is_inheritable): Only define if used.
19908
19909 2010-01-01  Bruno Haible  <bruno@clisp.org>
19910
19911         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
19912         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
19913         defined, use wctomb instead of wcrtomb.
19914
19915 2010-01-01  Bruno Haible  <bruno@clisp.org>
19916
19917         iconv: Reject native Solaris iconv.
19918         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
19919         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
19920
19921 2009-12-31  Bruno Haible  <bruno@clisp.org>
19922
19923         * tests/test-signal.c (main): Remove test of 'SIG'.
19924
19925 2009-12-31  Bruno Haible  <bruno@clisp.org>
19926
19927         spawn: Fix incomplete fix.
19928         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19929         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19930         warnings for GNULIB_POSIXCHECK again.
19931         Reported by Eric Blake.
19932
19933 2009-12-31  Bruno Haible  <bruno@clisp.org>
19934
19935         Avoid namespace pollution on glibc systems.
19936         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
19937         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
19938         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
19939         glibc systems.
19940
19941 2009-12-31  Bruno Haible  <bruno@clisp.org>
19942
19943         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
19944         (gl_REPLACE_WCHAR_H): Turn into a no-op.
19945         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
19946         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19947         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19948         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19949         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19950
19951 2009-12-31  Bruno Haible  <bruno@clisp.org>
19952
19953         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19954         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
19955         afterwards.
19956
19957 2009-12-31  Bruno Haible  <bruno@clisp.org>
19958
19959         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
19960         SYS_UTSNAME_H.
19961
19962 2009-12-31  Bruno Haible  <bruno@clisp.org>
19963
19964         spawn: Fix misapplied patch.
19965         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19966         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19967         warnings for GNULIB_POSIXCHECK.
19968
19969 2009-12-31  Bruno Haible  <bruno@clisp.org>
19970
19971         times: Update after sys_times changed.
19972         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
19973         * modules/times (Files): Add it.
19974         (configure.ac): Invoke gl_FUNC_TIMES.
19975
19976 2009-12-31  Bruno Haible  <bruno@clisp.org>
19977
19978         Use AC_C_INLINE where necessary.
19979         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
19980         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19981         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19982         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19983         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19984         * m4/mbiter.m4 (gl_MBITER): Likewise.
19985         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19986         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19987         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19988         * modules/u64 (configure.ac): Likewise.
19989
19990 2009-12-31  Bruno Haible  <bruno@clisp.org>
19991
19992         Use AC_C_INLINE instead of module 'inline' where possible.
19993         * modules/inline (Description): Clarify purpose.
19994         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19995         * modules/count-one-bits (Depends-on): Remove inline.
19996         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19997         * modules/openat (Depends-on): Remove inline.
19998         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19999         instead of depending on module 'inline'.
20000         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20001         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20002         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20003         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20004         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20005         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20006         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20007         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20008         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20009         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20010         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20011         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20012         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20013         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20014         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20015         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20016         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20017         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20018         Likewise.
20019         * modules/unictype/property-ascii-hex-digit (Depends-on,
20020         configure.ac): Likewise.
20021         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20022         configure.ac): Likewise.
20023         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20024         configure.ac): Likewise.
20025         * modules/unictype/property-bidi-block-separator (Depends-on,
20026         configure.ac): Likewise.
20027         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20028         configure.ac): Likewise.
20029         * modules/unictype/property-bidi-common-separator (Depends-on,
20030         configure.ac): Likewise.
20031         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20032         Likewise.
20033         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20034         configure.ac): Likewise.
20035         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20036         configure.ac): Likewise.
20037         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20038         configure.ac): Likewise.
20039         * modules/unictype/property-bidi-european-digit (Depends-on,
20040         configure.ac): Likewise.
20041         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20042         configure.ac): Likewise.
20043         * modules/unictype/property-bidi-left-to-right (Depends-on,
20044         configure.ac): Likewise.
20045         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20046         configure.ac): Likewise.
20047         * modules/unictype/property-bidi-other-neutral (Depends-on,
20048         configure.ac): Likewise.
20049         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20050         Likewise.
20051         * modules/unictype/property-bidi-segment-separator (Depends-on,
20052         configure.ac): Likewise.
20053         * modules/unictype/property-bidi-whitespace (Depends-on,
20054         configure.ac): Likewise.
20055         * modules/unictype/property-combining (Depends-on, configure.ac):
20056         Likewise.
20057         * modules/unictype/property-composite (Depends-on, configure.ac):
20058         Likewise.
20059         * modules/unictype/property-currency-symbol (Depends-on,
20060         configure.ac): Likewise.
20061         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20062         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20063         Likewise.
20064         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20065         configure.ac): Likewise.
20066         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20067         Likewise.
20068         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20069         Likewise.
20070         * modules/unictype/property-extender (Depends-on, configure.ac):
20071         Likewise.
20072         * modules/unictype/property-format-control (Depends-on, configure.ac):
20073         Likewise.
20074         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20075         Likewise.
20076         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20077         Likewise.
20078         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20079         Likewise.
20080         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20081         Likewise.
20082         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20083         Likewise.
20084         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20085         Likewise.
20086         * modules/unictype/property-id-start (Depends-on, configure.ac):
20087         Likewise.
20088         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20089         Likewise.
20090         * modules/unictype/property-ids-binary-operator (Depends-on,
20091         configure.ac): Likewise.
20092         * modules/unictype/property-ids-trinary-operator (Depends-on,
20093         configure.ac): Likewise.
20094         * modules/unictype/property-ignorable-control (Depends-on,
20095         configure.ac): Likewise.
20096         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20097         Likewise.
20098         * modules/unictype/property-join-control (Depends-on, configure.ac):
20099         Likewise.
20100         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20101         Likewise.
20102         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20103         Likewise.
20104         * modules/unictype/property-logical-order-exception (Depends-on,
20105         configure.ac): Likewise.
20106         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20107         Likewise.
20108         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20109         * modules/unictype/property-non-break (Depends-on, configure.ac):
20110         Likewise.
20111         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20112         Likewise.
20113         * modules/unictype/property-numeric (Depends-on, configure.ac):
20114         Likewise.
20115         * modules/unictype/property-other-alphabetic (Depends-on,
20116         configure.ac): Likewise.
20117         * modules/unictype/property-other-default-ignorable-code-point
20118         (Depends-on, configure.ac): Likewise.
20119         * modules/unictype/property-other-grapheme-extend (Depends-on,
20120         configure.ac): Likewise.
20121         * modules/unictype/property-other-id-continue (Depends-on,
20122         configure.ac): Likewise.
20123         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20124         Likewise.
20125         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20126         Likewise.
20127         * modules/unictype/property-other-math (Depends-on, configure.ac):
20128         Likewise.
20129         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20130         Likewise.
20131         * modules/unictype/property-paired-punctuation (Depends-on,
20132         configure.ac): Likewise.
20133         * modules/unictype/property-paragraph-separator (Depends-on,
20134         configure.ac): Likewise.
20135         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20136         Likewise.
20137         * modules/unictype/property-pattern-white-space (Depends-on,
20138         configure.ac): Likewise.
20139         * modules/unictype/property-private-use (Depends-on, configure.ac):
20140         Likewise.
20141         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20142         Likewise.
20143         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20144         Likewise.
20145         * modules/unictype/property-radical (Depends-on, configure.ac):
20146         Likewise.
20147         * modules/unictype/property-sentence-terminal (Depends-on,
20148         configure.ac): Likewise.
20149         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20150         Likewise.
20151         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20152         * modules/unictype/property-terminal-punctuation (Depends-on,
20153         configure.ac): Likewise.
20154         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20155         Likewise.
20156         * modules/unictype/property-unassigned-code-value (Depends-on,
20157         configure.ac): Likewise.
20158         * modules/unictype/property-unified-ideograph (Depends-on,
20159         configure.ac): Likewise.
20160         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20161         Likewise.
20162         * modules/unictype/property-variation-selector (Depends-on,
20163         configure.ac): Likewise.
20164         * modules/unictype/property-white-space (Depends-on, configure.ac):
20165         Likewise.
20166         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20167         Likewise.
20168         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20169         Likewise.
20170         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20171         Likewise.
20172         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20173         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20174         Likewise.
20175
20176 2009-12-31  Bruno Haible  <bruno@clisp.org>
20177
20178         Remove unnecessary AC_C_INLINE invocation.
20179         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20180         since 2009-08-21.
20181
20182 2009-12-31  Jim Meyering  <meyering@redhat.com>
20183
20184         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20185         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20186         With this change, we can all remove the gpg_key_ID = ... definition
20187         from our respective cfg.mk files.
20188
20189         maint.mk: create announcement template in ~/, not in /tmp
20190         * top/maint.mk (emit_upload_commands): Adjust.
20191         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20192         Remove temporary file, .ci-msg.
20193
20194 2009-12-31  Eric Blake  <ebb9@byu.net>
20195
20196         link-warning: always build headers with link warnings
20197         * modules/arpa_inet (Makefile.am): Always build replacement
20198         header.
20199         * modules/ctype (Makefile.am): Likewise.
20200         * modules/dirent (Makefile.am): Likewise.
20201         * modules/inttypes (Makefile.am): Likewise.
20202         * modules/langinfo (Makefile.am): Likewise.
20203         * modules/locale (Makefile.am): Likewise.
20204         * modules/spawn (Makefile.am): Likewise.
20205         * modules/sys_file (Makefile.am): Likewise.
20206         * modules/sys_ioctl (Makefile.am): Likewise.
20207         * modules/sys_select (Makefile.am): Likewise.
20208         * modules/sys_socket (Makefile.am): Likewise.
20209         * modules/sys_times (Makefile.am): Likewise.
20210         * modules/sys_utsname (Makefile.am): Likewise.
20211         * modules/sys_wait (Makefile.am): Likewise.
20212         * modules/wchar (Makefile.am): Likewise.
20213         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20214         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20215         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20216         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20217         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20218         Likewise.
20219         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20220         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20221         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20222         Likewise.
20223         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20224         Likewise.
20225         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20226         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20227         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20228         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20229         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20230         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20231         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20232         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20233         (gl_WCHAR_H_DEFAULTS): Likewise.
20234
20235 2009-12-31  Eric Blake  <ebb9@byu.net>
20236
20237         signal, spawn: use link warnings
20238         * lib/signal.in.h (sigset_t): Make unconditional.
20239         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20240         (sigpending, sigprocmask, sigaction): Add link warnings.
20241         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20242         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20243         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20244         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20245         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20246         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20247         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20248         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20249         (posix_spawn_file_actions_destroy)
20250         (posix_spawn_file_actions_addopen)
20251         (posix_spawn_file_actions_addclose)
20252         (posix_spawn_file_actions_adddup2): Likewise.
20253         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20254         * tests/test-signal.c (main): Enhance test.
20255
20256         spawn: improve wrapper support
20257         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20258         (gl_SPAWN_H_DEFAULTS): New defaults.
20259         * modules/spawn (Makefile.am): Substitute them.
20260         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20261         Only declare if missing or broken.
20262
20263         sys_times, sys_utsname: use include_next
20264         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20265         header.
20266         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20267         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20268         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20269         * modules/sys_times (Depends-on): Add include_next.
20270         (Makefile.am): Substitute additional values.
20271         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20272         * lib/sys_times.in.h (includes): Include native header, if
20273         available.
20274         * lib/sys_utsname.in.h (includes): Likewise.
20275         * tests/test-sys_times.c (main): Enhance test.
20276
20277         fdutimensat: revert prior patch
20278         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20279         utimens.h.
20280         Reported by Bruno Haible.
20281
20282 2009-12-30  Eric Blake  <ebb9@byu.net>
20283
20284         sys_wait: drop link-warning dependency
20285         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20286         link-warning efforts.
20287         * lib/sys_wait.in.h: Likewise.
20288
20289         fdutimensat: remove bogus dependency
20290         * modules/fdutimensat (Depends-on): Drop inline.
20291
20292         unistd: fix typo
20293         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20294
20295 2009-12-30  Bruno Haible  <bruno@clisp.org>
20296
20297         Fix compilation error with Solaris cc.
20298         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20299         * lib/unicase/u16-is-invariant.c: Likewise.
20300         * lib/unicase/u32-is-invariant.c: Likewise.
20301         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20302
20303 2009-12-30  Bruno Haible  <bruno@clisp.org>
20304
20305         Fix test crash.
20306         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20307         locales.
20308         Reported by Simon Josefsson <simon@josefsson.org>.
20309
20310 2009-12-30  Bruno Haible  <bruno@clisp.org>
20311
20312         Fix compilation error on most platforms.
20313         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20314         Reported by Simon Josefsson <simon@josefsson.org>
20315         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20316
20317 2009-12-30  Eric Blake  <ebb9@byu.net>
20318
20319         futimens, utimensat: work around ntfs-3g bug
20320         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20321         a ctime bug is present, and expand workaround to cover ntfs-3g.
20322         * lib/utimens.c (fdutimens, lutimens): Likewise.
20323         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20324         (validate_timespec): Adjust return value.
20325         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20326         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20327         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20328
20329 2009-12-29  Eric Blake  <ebb9@byu.net>
20330
20331         link-warning: make usage consistent
20332         * modules/ctype (Depends-on): Add link-warning.
20333         (Makefile.am): Update rules accordingly.
20334         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20335         * modules/locale (Depends-on, Makefile.am): Likewise.
20336         * modules/sys_file (Makefile.am): Likewise.
20337         * modules/getopt-posix (Makefile.am): Delete unused link warning
20338         efforts.
20339         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20340         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20341         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20342         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20343
20344         stdio: remove unused variables
20345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20346         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20347         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20348
20349         tests: test more substitute headers
20350         * modules/ctype-tests: New file.
20351         * modules/dirent-tests: Likewise.
20352         * modules/spawn-tests: Likewise.
20353         * modules/sys_file-tests: Likewise.
20354         * modules/sys_ioctl-tests: Likewise.
20355         * modules/sys_wait-tests: Likewise.
20356         * tests/test-ctype.c: Likewise.
20357         * tests/test-dirent.c: Likewise.
20358         * tests/test-spawn.c: Likewise.
20359         * tests/test-sys_file.c: Likewise.
20360         * tests/test-sys_ioctl.c: Likewise.
20361         * tests/test-sys_wait.c: Likewise.
20362         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20363         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20364         whether or not flock is in use.
20365
20366         tests: remove License section from module
20367         * modules/arpa_inet-tests: Remove unneeded section.
20368         * modules/byteswap-tests: Likewise.
20369         * modules/ceilf-tests: Likewise.
20370         * modules/ceill-tests: Likewise.
20371         * modules/crypto/des-tests: Likewise.
20372         * modules/crypto/gc-arcfour-tests: Likewise.
20373         * modules/crypto/gc-arctwo-tests: Likewise.
20374         * modules/crypto/gc-des-tests: Likewise.
20375         * modules/crypto/gc-hmac-md5-tests: Likewise.
20376         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20377         * modules/crypto/gc-md2-tests: Likewise.
20378         * modules/crypto/gc-md4-tests: Likewise.
20379         * modules/crypto/gc-md5-tests: Likewise.
20380         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20381         * modules/crypto/gc-rijndael-tests: Likewise.
20382         * modules/crypto/gc-sha1-tests: Likewise.
20383         * modules/crypto/gc-tests: Likewise.
20384         * modules/crypto/md2-tests: Likewise.
20385         * modules/crypto/md4-tests: Likewise.
20386         * modules/fcntl-h-tests: Likewise.
20387         * modules/floorf-tests: Likewise.
20388         * modules/floorl-tests: Likewise.
20389         * modules/frexp-nolibm-tests: Likewise.
20390         * modules/frexp-tests: Likewise.
20391         * modules/frexpl-nolibm-tests: Likewise.
20392         * modules/frexpl-tests: Likewise.
20393         * modules/getaddrinfo-tests: Likewise.
20394         * modules/inttypes-tests: Likewise.
20395         * modules/isfinite-tests: Likewise.
20396         * modules/isinf-tests: Likewise.
20397         * modules/ldexpl-tests: Likewise.
20398         * modules/locale-tests: Likewise.
20399         * modules/math-tests: Likewise.
20400         * modules/netdb-tests: Likewise.
20401         * modules/netinet_in-tests: Likewise.
20402         * modules/printf-frexp-tests: Likewise.
20403         * modules/printf-frexpl-tests: Likewise.
20404         * modules/priv-set-tests: Likewise.
20405         * modules/random_r-tests: Likewise.
20406         * modules/round-tests: Likewise.
20407         * modules/roundf-tests: Likewise.
20408         * modules/roundl-tests: Likewise.
20409         * modules/search-tests: Likewise.
20410         * modules/select-tests: Likewise.
20411         * modules/signal-tests: Likewise.
20412         * modules/stdbool-tests: Likewise.
20413         * modules/stddef-tests: Likewise.
20414         * modules/stdint-tests: Likewise.
20415         * modules/stdio-tests: Likewise.
20416         * modules/stdlib-tests: Likewise.
20417         * modules/string-tests: Likewise.
20418         * modules/strings-tests: Likewise.
20419         * modules/sys_select-tests: Likewise.
20420         * modules/sys_socket-tests: Likewise.
20421         * modules/sys_stat-tests: Likewise.
20422         * modules/sys_time-tests: Likewise.
20423         * modules/sys_utsname-tests: Likewise.
20424         * modules/sysexits-tests: Likewise.
20425         * modules/time-tests: Likewise.
20426         * modules/trunc-tests: Likewise.
20427         * modules/truncf-tests: Likewise.
20428         * modules/truncl-tests: Likewise.
20429         * modules/tsearch-tests: Likewise.
20430         * modules/unistd-tests: Likewise.
20431         * modules/wchar-tests: Likewise.
20432         * modules/wctype-tests: Likewise.
20433
20434         tests: fix license on several tests
20435         * tests/test-des.c: Update to GPLv3+.
20436         * tests/test-flock.c: Likewise.
20437         * tests/test-fsync.c: Likewise.
20438         * tests/test-futimens.h: Likewise.
20439         * tests/test-gc-arcfour.c: Likewise.
20440         * tests/test-gc-arctwo.c: Likewise.
20441         * tests/test-gc-des.c: Likewise.
20442         * tests/test-gc-hmac-md5.c: Likewise.
20443         * tests/test-gc-hmac-sha1.c: Likewise.
20444         * tests/test-gc-md2.c: Likewise.
20445         * tests/test-gc-md4.c: Likewise.
20446         * tests/test-gc-md5.c: Likewise.
20447         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20448         * tests/test-gc-rijndael.c: Likewise.
20449         * tests/test-gc-sha1.c: Likewise.
20450         * tests/test-gc.c: Likewise.
20451         * tests/test-getcwd.c: Likewise.
20452         * tests/test-link.c: Likewise.
20453         * tests/test-link.h: Likewise.
20454         * tests/test-lutimens.h: Likewise.
20455         * tests/test-md2.c: Likewise.
20456         * tests/test-md4.c: Likewise.
20457         * tests/test-mkdir.h: Likewise.
20458         * tests/test-rename.c: Likewise.
20459         * tests/test-rename.h: Likewise.
20460         * tests/test-safe-alloc.c: Likewise.
20461         * tests/test-utimens-common.h: Likewise.
20462         * tests/test-utimens.h: Likewise.
20463
20464         maint: sync license texts
20465         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
20466         * doc/gpl-3.0.texi: Revert copyright year update.
20467         * doc/lgpl-3.0.texi: Likewise.
20468
20469 2009-12-29  Jim Meyering  <meyering@redhat.com>
20470
20471         update nearly all FSF copyright year lists to include 2009
20472         The files named by the following are exempted:
20473             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
20474               test -f "$dst" && { echo "$dst"; continue; }
20475               test -d "$dst" || continue
20476               echo "$dst"/$(basename "$src")
20477             done > exempt
20478             git ls-files tests/unictype >> exempt
20479         In the remaining files, convert to all-interval notation if
20480         - there is already at least one year interval like 2000-2003
20481         - the file is maintained by me
20482         - the file is in lib/uni*/, where that style already prevails
20483         Otherwise, use update-copyright's default.
20484
20485 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20486         and Eric Blake  <ebb9@byu.net>
20487
20488         tests: don't require debug system() to pass
20489         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
20490         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20491         * tests/test-unlink.h (test_unlink_func): Likewise.
20492         * tests/test-fstatat.c (main): ...into callers.
20493         * tests/test-lstat.c (main): Likewise.
20494         * tests/test-rmdir.c (main): Likewise.
20495         * tests/test-unlink.c (main): Likewise.
20496         * tests/test-unlinkat.c (main): Likewise.
20497         * tests/test-areadlink-with-size.c (main): Don't require a
20498         debug-only system call to pass, aiding cross-testing to mingw.
20499         * tests/test-areadlink.c (main): Likewise.
20500         * tests/test-areadlinkat-with-size.c (main): Likewise.
20501         * tests/test-areadlinkat.c (main): Likewise.
20502         * tests/test-canonicalize-lgpl.c (main): Likewise.
20503         * tests/test-canonicalize.c (main): Likewise.
20504         * tests/test-chown.c (main): Likewise.
20505         * tests/test-fchownat.c (main): Likewise.
20506         * tests/test-lchown.c (main): Likewise.
20507         * tests/test-fdutimensat.c (main): Likewise.
20508         * tests/test-futimens.c (main): Likewise.
20509         * tests/test-link.c (main): Likewise.
20510         * tests/test-linkat.c (main): Likewise.
20511         * tests/test-mkdir.c (main): Likewise.
20512         * tests/test-mkdirat.c (main): Likewise.
20513         * tests/test-mkfifo.c (main): Likewise.
20514         * tests/test-mkfifoat.c (main): Likewise.
20515         * tests/test-mknod.c (main): Likewise.
20516         * tests/test-readlink.c (main): Likewise.
20517         * tests/test-remove.c (main): Likewise.
20518         * tests/test-rename.c (main): Likewise.
20519         * tests/test-renameat.c (main): Likewise.
20520         * tests/test-symlink.c (main): Likewise.
20521         * tests/test-symlinkat.c (main): Likewise.
20522         * tests/test-utimens.c (main): Likewise.
20523         * tests/test-utimensat.c (main): Likewise.
20524
20525 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20526
20527         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
20528         on $(UNUSED_PARAMETER_H) to avoid build failure.
20529
20530 2009-12-28  Jim Meyering  <meyering@redhat.com>
20531
20532         update-copyright: you may specify a max. line length other than 72
20533         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20534
20535         maint: use consistent FSF copyright line syntax
20536         * lib/posixtm.c: Add missing comma in FSF copyright line.
20537         * lib/posixtm.h: Likewise.
20538         * lib/getugroups.c: Add missing ", Inc.".
20539
20540         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
20541         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
20542         FSF copyright line.  Remove trailing blanks.
20543
20544 2009-12-28  Eric Blake  <ebb9@byu.net>
20545
20546         test-dup2: reduce dependencies
20547         * modules/cloexec (Configure.ac): Set witness.
20548         * modules/dup2-tests (Depends-on): Drop cloexec.
20549         * tests/test-dup2.c (main): Skip portion of test if cloexec module
20550         not present.
20551         Suggested by Bruno Haible.
20552
20553 2009-12-26  Bruno Haible  <bruno@clisp.org>
20554
20555         Remove an unneeded dependency.
20556         * modules/fseterr (Depends-on): Remove dup2.
20557
20558 2009-12-26  Eric Blake  <ebb9@byu.net>
20559
20560         tests: use macros.h in more places
20561         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
20562         (ASSERT_STREAM): Provide default of stderr.
20563         * tests/test-dirent-safer.c: Include macros.h, using alternate
20564         stream for assertions.
20565         * tests/test-dup-safer.c: Likewise.
20566         * tests/test-freopen-safer.c: Likewise.
20567         * tests/test-getopt.c: Likewise.
20568         * tests/test-openat-safer.c: Likewise.
20569         * tests/test-pipe.c: Likewise.
20570         * tests/test-popen-safer.c: Likewise.
20571         * modules/dirent-safer-tests (Files): Include macros.h.
20572         * modules/unistd-safer-tests (Files): Likewise.
20573         * modules/freopen-safer-tests (Files): Likewise.
20574         * modules/getopt-posix-tests (Files): Likewise.
20575         * modules/openat-safer-tests (Files): Likewise.
20576         * modules/pipe-tests (Files): Likewise.
20577
20578 2009-12-26  Bruno Haible  <bruno@clisp.org>
20579
20580         javacomp: Portability fix.
20581         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
20582         that it also works on Solaris.
20583
20584 2009-12-26  Bruno Haible  <bruno@clisp.org>
20585
20586         localename: Fix storage allocation of gl_locale_name_thread's result.
20587         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
20588         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
20589         all platforms that have 'uselocale'.
20590         (gl_locale_name_thread_unsafe): New function, extracted from
20591         gl_locale_name_thread.
20592         (gl_locale_name_thread): Call struniq on all platforms that have
20593         'uselocale'.
20594         * tests/test-localename.c (test_locale_name_thread): Check that the
20595         resulting strings are permanently allocated.
20596         * modules/localename-tests (Depends-on): Add strdup.
20597
20598 2009-12-26  Bruno Haible  <bruno@clisp.org>
20599
20600         * tests/test-localename.c (categories): Fill in the strings.
20601
20602 2009-12-26  Jim Meyering  <meyering@redhat.com>
20603
20604         isdir: complete the removal of m4/isdir.m4
20605         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
20606
20607         isdir: clean up, since at least grep still uses it
20608         * lib/isdir.c: Include "isdir.h".
20609         (S_ISDIR): Remove now-unneeded definition.
20610         * modules/isdir (Files): Add lib/isdir.h.
20611         * lib/isdir.h: New file, with declaration.
20612         * m4/isdir.m4: Remove file -- unneeded.
20613
20614 2009-12-25  Bruno Haible  <bruno@clisp.org>
20615
20616         selinux-h: Make generated .h files standalone.
20617         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
20618         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
20619         * lib/se-selinux.in.h: Likewise.
20620         * modules/selinux-h (Depends-on): Add unused-parameter.
20621         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
20622         selinux/selinux.h and selinux/context.h.
20623         Suggested by Eric Blake.
20624
20625 2009-12-25  Bruno Haible  <bruno@clisp.org>
20626
20627         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
20628         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
20629         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
20630         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
20631         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
20632
20633 2009-12-24  Bruno Haible  <bruno@clisp.org>
20634
20635         openat: Fix warning.
20636         * lib/openat-proc.c: Include <unistd.h>.
20637
20638 2009-12-24  Bruno Haible  <bruno@clisp.org>
20639
20640         New module 'unused-parameter'.
20641         * build-aux/unused-parameter.h: New file, extracted from earlier
20642         gnulib-common.m4.
20643         * modules/unused-parameter: New file.
20644         * lib/unistr.h: Include unused-parameter.h.
20645         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20646         _GL_UNUSED.
20647         * modules/unistr/base (Depends-on): Add unused-parameter.
20648
20649 2009-12-24  Bruno Haible  <bruno@clisp.org>
20650
20651         Add missing dependencies to 'extensions' module.
20652         * m4/extensions.m4: Add comment.
20653         * modules/accept4 (Depends-on): Add extensions.
20654         * modules/dup3 (Depends-on): Likewise.
20655         * modules/fcntl (Depends-on): Likewise.
20656         * modules/futimens (Depends-on): Likewise.
20657         * modules/mknod (Depends-on): Likewise.
20658         * modules/pipe2 (Depends-on): Likewise.
20659         * modules/stat-time (Depends-on): Likewise.
20660         * modules/strcasestr-simple (Depends-on): Likewise.
20661         * modules/strsignal (Depends-on): Likewise.
20662         * modules/utimensat (Depends-on): Likewise.
20663         * modules/localcharset (Depends-on): Likewise. Needed because of
20664         gl_FCNTL_O_FLAGS.
20665         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20666         AC_TYPE_MBSTATE_T.
20667         * modules/wcsnrtombs (Depends-on): Likewise.
20668         * modules/wcsrtombs (Depends-on): Likewise.
20669
20670 2009-12-24  Bruno Haible  <bruno@clisp.org>
20671
20672         binary-io: Avoid gcc warning due to SET_BINARY.
20673         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20674         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20675
20676 2009-12-24  Bruno Haible  <bruno@clisp.org>
20677
20678         Avoid future namespace pollution on glibc systems.
20679         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20680         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20681         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20682         glibc systems.
20683
20684 2009-12-24  Bruno Haible  <bruno@clisp.org>
20685
20686         Refactor common macros used in tests.
20687         * tests/macros.h: New file.
20688         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20689         and/or <stdlib.h>, if appropriate.
20690         (ASSERT, SIZEOF): Remove macros.
20691         * tests/test-areadlink-with-size.c: Likewise.
20692         * tests/test-areadlinkat.c: Likewise.
20693         * tests/test-areadlinkat-with-size.c: Likewise.
20694         * tests/test-argmatch.c: Likewise.
20695         * tests/test-argv-iter.c: Likewise.
20696         * tests/test-array-mergesort.c: Likewise.
20697         * tests/test-array_list.c: Likewise.
20698         * tests/test-array_oset.c: Likewise.
20699         * tests/test-avltree_list.c: Likewise.
20700         * tests/test-avltree_oset.c: Likewise.
20701         * tests/test-avltreehash_list.c: Likewise.
20702         * tests/test-base64.c: Likewise.
20703         * tests/test-binary-io.c: Likewise.
20704         * tests/test-bitrotate.c: Likewise.
20705         * tests/test-btowc.c: Likewise.
20706         * tests/test-byteswap.c: Likewise.
20707         * tests/test-c-ctype.c: Likewise.
20708         * tests/test-c-stack.c: Likewise.
20709         * tests/test-c-strcasecmp.c: Likewise.
20710         * tests/test-c-strcasestr.c: Likewise.
20711         * tests/test-c-strncasecmp.c: Likewise.
20712         * tests/test-c-strstr.c: Likewise.
20713         * tests/test-canonicalize-lgpl.c: Likewise.
20714         * tests/test-canonicalize.c: Likewise.
20715         * tests/test-carray_list.c: Likewise.
20716         * tests/test-ceilf1.c: Likewise.
20717         * tests/test-ceilf2.c: Likewise.
20718         * tests/test-ceill.c: Likewise.
20719         * tests/test-chown.c: Likewise.
20720         * tests/test-cloexec.c: Likewise.
20721         * tests/test-copy-acl.c: Likewise.
20722         * tests/test-copy-file.c: Likewise.
20723         * tests/test-count-one-bits.c: Likewise.
20724         * tests/test-dprintf-posix.c: Likewise.
20725         * tests/test-dup2.c: Likewise.
20726         * tests/test-dup3.c: Likewise.
20727         * tests/test-duplocale.c: Likewise.
20728         * tests/test-fbufmode.c: Likewise.
20729         * tests/test-fchdir.c: Likewise.
20730         * tests/test-fchownat.c: Likewise.
20731         * tests/test-fcntl-safer.c: Likewise.
20732         * tests/test-fcntl.c: Likewise.
20733         * tests/test-fdopendir.c: Likewise.
20734         * tests/test-fdutimensat.c: Likewise.
20735         * tests/test-fflush2.c: Likewise.
20736         * tests/test-file-has-acl.c: Likewise.
20737         * tests/test-filevercmp.c: Likewise.
20738         * tests/test-flock.c: Likewise.
20739         * tests/test-floorf1.c: Likewise.
20740         * tests/test-floorf2.c: Likewise.
20741         * tests/test-floorl.c: Likewise.
20742         * tests/test-fnmatch.c: Likewise.
20743         * tests/test-fopen.h: Likewise.
20744         * tests/test-fpending.c: Likewise.
20745         * tests/test-fprintf-posix.c: Likewise.
20746         * tests/test-fpurge.c: Likewise.
20747         * tests/test-freadable.c: Likewise.
20748         * tests/test-freadahead.c: Likewise.
20749         * tests/test-freading.c: Likewise.
20750         * tests/test-freadptr.c: Likewise.
20751         * tests/test-freadptr2.c: Likewise.
20752         * tests/test-freadseek.c: Likewise.
20753         * tests/test-freopen.c: Likewise.
20754         * tests/test-frexp.c: Likewise.
20755         * tests/test-frexpl.c: Likewise.
20756         * tests/test-fseek.c: Likewise.
20757         * tests/test-fseeko.c: Likewise.
20758         * tests/test-fstatat.c: Likewise.
20759         * tests/test-fstrcmp.c: Likewise.
20760         * tests/test-fsync.c: Likewise.
20761         * tests/test-ftell.c: Likewise.
20762         * tests/test-ftello.c: Likewise.
20763         * tests/test-func.c: Likewise.
20764         * tests/test-futimens.c: Likewise.
20765         * tests/test-fwritable.c: Likewise.
20766         * tests/test-fwriting.c: Likewise.
20767         * tests/test-getcwd.c: Likewise.
20768         * tests/test-getdate.c: Likewise.
20769         * tests/test-getdelim.c: Likewise.
20770         * tests/test-getdtablesize.c: Likewise.
20771         * tests/test-getgroups.c: Likewise.
20772         * tests/test-getline.c: Likewise.
20773         * tests/test-getndelim2.c: Likewise.
20774         * tests/test-glob.c: Likewise.
20775         * tests/test-hash.c: Likewise.
20776         * tests/test-i-ring.c: Likewise.
20777         * tests/test-iconv-utf.c: Likewise.
20778         * tests/test-iconv.c: Likewise.
20779         * tests/test-idpriv-drop.c: Likewise.
20780         * tests/test-idpriv-droptemp.c: Likewise.
20781         * tests/test-inet_ntop.c: Likewise.
20782         * tests/test-inet_pton.c: Likewise.
20783         * tests/test-isblank.c: Likewise.
20784         * tests/test-isfinite.c: Likewise.
20785         * tests/test-isinf.c: Likewise.
20786         * tests/test-isnan.c: Likewise.
20787         * tests/test-isnand.h: Likewise.
20788         * tests/test-isnanf.h: Likewise.
20789         * tests/test-isnanl.h: Likewise.
20790         * tests/test-lchown.c: Likewise.
20791         * tests/test-ldexpl.c: Likewise.
20792         * tests/test-link.c: Likewise.
20793         * tests/test-linkat.c: Likewise.
20794         * tests/test-linked_list.c: Likewise.
20795         * tests/test-linkedhash_list.c: Likewise.
20796         * tests/test-localename.c: Likewise.
20797         * tests/test-lseek.c: Likewise.
20798         * tests/test-lstat.c: Likewise.
20799         * tests/test-mbmemcasecmp.c: Likewise.
20800         * tests/test-mbmemcasecoll.c: Likewise.
20801         * tests/test-mbrtowc.c: Likewise.
20802         * tests/test-mbscasecmp.c: Likewise.
20803         * tests/test-mbscasestr1.c: Likewise.
20804         * tests/test-mbscasestr2.c: Likewise.
20805         * tests/test-mbscasestr3.c: Likewise.
20806         * tests/test-mbscasestr4.c: Likewise.
20807         * tests/test-mbschr.c: Likewise.
20808         * tests/test-mbscspn.c: Likewise.
20809         * tests/test-mbsinit.c: Likewise.
20810         * tests/test-mbsncasecmp.c: Likewise.
20811         * tests/test-mbsnrtowcs.c: Likewise.
20812         * tests/test-mbspbrk.c: Likewise.
20813         * tests/test-mbspcasecmp.c: Likewise.
20814         * tests/test-mbsrchr.c: Likewise.
20815         * tests/test-mbsrtowcs.c: Likewise.
20816         * tests/test-mbsspn.c: Likewise.
20817         * tests/test-mbsstr1.c: Likewise.
20818         * tests/test-mbsstr2.c: Likewise.
20819         * tests/test-mbsstr3.c: Likewise.
20820         * tests/test-memchr.c: Likewise.
20821         * tests/test-memchr2.c: Likewise.
20822         * tests/test-memcmp.c: Likewise.
20823         * tests/test-memmem.c: Likewise.
20824         * tests/test-memrchr.c: Likewise.
20825         * tests/test-mkdir.c: Likewise.
20826         * tests/test-mkdirat.c: Likewise.
20827         * tests/test-mkfifo.c: Likewise.
20828         * tests/test-mkfifoat.c: Likewise.
20829         * tests/test-mknod.c: Likewise.
20830         * tests/test-nanosleep.c: Likewise.
20831         * tests/test-nl_langinfo.c: Likewise.
20832         * tests/test-obstack-printf.c: Likewise.
20833         * tests/test-open.c: Likewise.
20834         * tests/test-openat.c: Likewise.
20835         * tests/test-pipe-filter-gi1.c: Likewise.
20836         * tests/test-pipe-filter-gi2-main.c: Likewise.
20837         * tests/test-pipe-filter-ii1.c: Likewise.
20838         * tests/test-pipe-filter-ii2-main.c: Likewise.
20839         * tests/test-pipe2.c: Likewise.
20840         * tests/test-popen.h: Likewise.
20841         * tests/test-posixtm.c: Likewise.
20842         * tests/test-pread.c: Likewise.
20843         * tests/test-printf-frexp.c: Likewise.
20844         * tests/test-printf-frexpl.c: Likewise.
20845         * tests/test-printf-posix.c: Likewise.
20846         * tests/test-priv-set.c: Likewise.
20847         * tests/test-quotearg.c: Likewise.
20848         * tests/test-random_r.c: Likewise.
20849         * tests/test-rawmemchr.c: Likewise.
20850         * tests/test-rbtree_list.c: Likewise.
20851         * tests/test-rbtree_oset.c: Likewise.
20852         * tests/test-rbtreehash_list.c: Likewise.
20853         * tests/test-readlink.c: Likewise.
20854         * tests/test-remove.c: Likewise.
20855         * tests/test-rename.c: Likewise.
20856         * tests/test-renameat.c: Likewise.
20857         * tests/test-rmdir.c: Likewise.
20858         * tests/test-round1.c: Likewise.
20859         * tests/test-roundf1.c: Likewise.
20860         * tests/test-roundl.c: Likewise.
20861         * tests/test-safe-alloc.c: Likewise.
20862         * tests/test-sameacls.c: Likewise.
20863         * tests/test-set-mode-acl.c: Likewise.
20864         * tests/test-setenv.c: Likewise.
20865         * tests/test-sigaction.c: Likewise.
20866         * tests/test-signbit.c: Likewise.
20867         * tests/test-sleep.c: Likewise.
20868         * tests/test-snprintf-posix.c: Likewise.
20869         * tests/test-snprintf.c: Likewise.
20870         * tests/test-sprintf-posix.c: Likewise.
20871         * tests/test-stat-time.c: Likewise.
20872         * tests/test-stat.c: Likewise.
20873         * tests/test-strcasestr.c: Likewise.
20874         * tests/test-strchrnul.c: Likewise.
20875         * tests/test-strerror.c: Likewise.
20876         * tests/test-striconv.c: Likewise.
20877         * tests/test-striconveh.c: Likewise.
20878         * tests/test-striconveha.c: Likewise.
20879         * tests/test-strsignal.c: Likewise.
20880         * tests/test-strstr.c: Likewise.
20881         * tests/test-strtod.c: Likewise.
20882         * tests/test-strverscmp.c: Likewise.
20883         * tests/test-symlink.c: Likewise.
20884         * tests/test-symlinkat.c: Likewise.
20885         * tests/test-trunc1.c: Likewise.
20886         * tests/test-trunc2.c: Likewise.
20887         * tests/test-truncf1.c: Likewise.
20888         * tests/test-truncf2.c: Likewise.
20889         * tests/test-truncl.c: Likewise.
20890         * tests/test-uname.c: Likewise.
20891         * tests/test-unlink.c: Likewise.
20892         * tests/test-unlinkat.c: Likewise.
20893         * tests/test-unsetenv.c: Likewise.
20894         * tests/test-usleep.c: Likewise.
20895         * tests/test-utimens.c: Likewise.
20896         * tests/test-utimensat.c: Likewise.
20897         * tests/test-vasnprintf-posix.c: Likewise.
20898         * tests/test-vasnprintf-posix2.c: Likewise.
20899         * tests/test-vasnprintf.c: Likewise.
20900         * tests/test-vasprintf-posix.c: Likewise.
20901         * tests/test-vasprintf.c: Likewise.
20902         * tests/test-vdprintf-posix.c: Likewise.
20903         * tests/test-vfprintf-posix.c: Likewise.
20904         * tests/test-vprintf-posix.c: Likewise.
20905         * tests/test-vsnprintf-posix.c: Likewise.
20906         * tests/test-vsnprintf.c: Likewise.
20907         * tests/test-vsprintf-posix.c: Likewise.
20908         * tests/test-wcrtomb.c: Likewise.
20909         * tests/test-wcsnrtombs.c: Likewise.
20910         * tests/test-wcsrtombs.c: Likewise.
20911         * tests/test-wctype.c: Likewise.
20912         * tests/test-wcwidth.c: Likewise.
20913         * tests/test-xfprintf-posix.c: Likewise.
20914         * tests/test-xmemdup0.c: Likewise.
20915         * tests/test-xprintf-posix.c: Likewise.
20916         * tests/test-xvasprintf.c: Likewise.
20917         * tests/unicase/test-locale-language.c: Likewise.
20918         * tests/unicase/test-mapping-part1.h: Likewise.
20919         * tests/unicase/test-predicate-part1.h: Likewise.
20920         * tests/unicase/test-u8-casecmp.c: Likewise.
20921         * tests/unicase/test-u8-casecoll.c: Likewise.
20922         * tests/unicase/test-u8-casefold.c: Likewise.
20923         * tests/unicase/test-u8-is-cased.c: Likewise.
20924         * tests/unicase/test-u8-is-casefolded.c: Likewise.
20925         * tests/unicase/test-u8-is-lowercase.c: Likewise.
20926         * tests/unicase/test-u8-is-titlecase.c: Likewise.
20927         * tests/unicase/test-u8-is-uppercase.c: Likewise.
20928         * tests/unicase/test-u8-tolower.c: Likewise.
20929         * tests/unicase/test-u8-totitle.c: Likewise.
20930         * tests/unicase/test-u8-toupper.c: Likewise.
20931         * tests/unicase/test-u16-casecmp.c: Likewise.
20932         * tests/unicase/test-u16-casecoll.c: Likewise.
20933         * tests/unicase/test-u16-casefold.c: Likewise.
20934         * tests/unicase/test-u16-is-cased.c: Likewise.
20935         * tests/unicase/test-u16-is-casefolded.c: Likewise.
20936         * tests/unicase/test-u16-is-lowercase.c: Likewise.
20937         * tests/unicase/test-u16-is-titlecase.c: Likewise.
20938         * tests/unicase/test-u16-is-uppercase.c: Likewise.
20939         * tests/unicase/test-u16-tolower.c: Likewise.
20940         * tests/unicase/test-u16-totitle.c: Likewise.
20941         * tests/unicase/test-u16-toupper.c: Likewise.
20942         * tests/unicase/test-u32-casecmp.c: Likewise.
20943         * tests/unicase/test-u32-casecoll.c: Likewise.
20944         * tests/unicase/test-u32-casefold.c: Likewise.
20945         * tests/unicase/test-u32-is-cased.c: Likewise.
20946         * tests/unicase/test-u32-is-casefolded.c: Likewise.
20947         * tests/unicase/test-u32-is-lowercase.c: Likewise.
20948         * tests/unicase/test-u32-is-titlecase.c: Likewise.
20949         * tests/unicase/test-u32-is-uppercase.c: Likewise.
20950         * tests/unicase/test-u32-tolower.c: Likewise.
20951         * tests/unicase/test-u32-totitle.c: Likewise.
20952         * tests/unicase/test-u32-toupper.c: Likewise.
20953         * tests/unicase/test-ulc-casecmp.c: Likewise.
20954         * tests/unicase/test-ulc-casecoll.c: Likewise.
20955         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20956         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20957         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20958         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20959         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20960         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20961         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20962         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20963         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20964         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20965         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20966         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20967         * tests/unictype/test-bidi_byname.c: Likewise.
20968         * tests/unictype/test-bidi_name.c: Likewise.
20969         * tests/unictype/test-bidi_of.c: Likewise.
20970         * tests/unictype/test-bidi_test.c: Likewise.
20971         * tests/unictype/test-block_list.c: Likewise.
20972         * tests/unictype/test-block_of.c: Likewise.
20973         * tests/unictype/test-block_test.c: Likewise.
20974         * tests/unictype/test-categ_and.c: Likewise.
20975         * tests/unictype/test-categ_and_not.c: Likewise.
20976         * tests/unictype/test-categ_byname.c: Likewise.
20977         * tests/unictype/test-categ_name.c: Likewise.
20978         * tests/unictype/test-categ_none.c: Likewise.
20979         * tests/unictype/test-categ_of.c: Likewise.
20980         * tests/unictype/test-categ_or.c: Likewise.
20981         * tests/unictype/test-categ_test_withtable.c: Likewise.
20982         * tests/unictype/test-combining.c: Likewise.
20983         * tests/unictype/test-decdigit.c: Likewise.
20984         * tests/unictype/test-digit.c: Likewise.
20985         * tests/unictype/test-mirror.c: Likewise.
20986         * tests/unictype/test-numeric.c: Likewise.
20987         * tests/unictype/test-pr_byname.c: Likewise.
20988         * tests/unictype/test-pr_test.c: Likewise.
20989         * tests/unictype/test-predicate-part1.h: Likewise.
20990         * tests/unictype/test-scripts.c: Likewise.
20991         * tests/unictype/test-sy_c_ident.c: Likewise.
20992         * tests/unictype/test-sy_java_ident.c: Likewise.
20993         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20994         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20995         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20996         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20997         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20998         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20999         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21000         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21001         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21002         * tests/uninorm/test-compat-decomposition.c: Likewise.
21003         * tests/uninorm/test-composition.c: Likewise.
21004         * tests/uninorm/test-decomposing-form.c: Likewise.
21005         * tests/uninorm/test-decomposition.c: Likewise.
21006         * tests/uninorm/test-u8-nfc.c: Likewise.
21007         * tests/uninorm/test-u8-nfd.c: Likewise.
21008         * tests/uninorm/test-u8-nfkc.c: Likewise.
21009         * tests/uninorm/test-u8-nfkd.c: Likewise.
21010         * tests/uninorm/test-u8-normcmp.c: Likewise.
21011         * tests/uninorm/test-u8-normcoll.c: Likewise.
21012         * tests/uninorm/test-u16-nfc.c: Likewise.
21013         * tests/uninorm/test-u16-nfd.c: Likewise.
21014         * tests/uninorm/test-u16-nfkc.c: Likewise.
21015         * tests/uninorm/test-u16-nfkd.c: Likewise.
21016         * tests/uninorm/test-u16-normcmp.c: Likewise.
21017         * tests/uninorm/test-u16-normcoll.c: Likewise.
21018         * tests/uninorm/test-u32-nfc.c: Likewise.
21019         * tests/uninorm/test-u32-nfd.c: Likewise.
21020         * tests/uninorm/test-u32-nfkc.c: Likewise.
21021         * tests/uninorm/test-u32-nfkd.c: Likewise.
21022         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21023         * tests/uninorm/test-u32-normcmp.c: Likewise.
21024         * tests/uninorm/test-u32-normcoll.c: Likewise.
21025         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21026         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21027         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21028         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21029         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21030         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21031         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21032         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21033         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21034         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21035         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21036         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21037         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21038         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21039         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21040         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21041         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21042         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21043         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21044         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21045         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21046         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21047         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21048         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21049         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21050         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21051         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21052         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21053         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21054         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21055         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21056         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21057         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21058         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21059         * tests/uniwidth/test-u8-width.c: Likewise.
21060         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21061         * tests/uniwidth/test-u16-width.c: Likewise.
21062         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21063         * tests/uniwidth/test-u32-width.c: Likewise.
21064         * tests/uniwidth/test-uc_width.c: Likewise.
21065         * tests/uniwidth/test-uc_width2.c: Likewise.
21066         * modules/acl-tests (Files): Add tests/macros.h.
21067         * modules/areadlink-tests (Files): Likewise.
21068         * modules/areadlink-with-size-tests (Files): Likewise.
21069         * modules/areadlinkat-tests (Files): Likewise.
21070         * modules/areadlinkat-with-size-tests (Files): Likewise.
21071         * modules/argmatch-tests (Files): Likewise.
21072         * modules/argv-iter-tests (Files): Likewise.
21073         * modules/array-list-tests (Files): Likewise.
21074         * modules/array-mergesort-tests (Files): Likewise.
21075         * modules/array-oset-tests (Files): Likewise.
21076         * modules/avltree-list-tests (Files): Likewise.
21077         * modules/avltree-oset-tests (Files): Likewise.
21078         * modules/avltreehash-list-tests (Files): Likewise.
21079         * modules/base64-tests (Files): Likewise.
21080         * modules/binary-io-tests (Files): Likewise.
21081         * modules/bitrotate-tests (Files): Likewise.
21082         * modules/btowc-tests (Files): Likewise.
21083         * modules/byteswap-tests (Files): Likewise.
21084         * modules/c-ctype-tests (Files): Likewise.
21085         * modules/c-stack-tests (Files): Likewise.
21086         * modules/c-strcase-tests (Files): Likewise.
21087         * modules/c-strcasestr-tests (Files): Likewise.
21088         * modules/c-strstr-tests (Files): Likewise.
21089         * modules/canonicalize-lgpl-tests (Files): Likewise.
21090         * modules/canonicalize-tests (Files): Likewise.
21091         * modules/carray-list-tests (Files): Likewise.
21092         * modules/ceilf-tests (Files): Likewise.
21093         * modules/ceill-tests (Files): Likewise.
21094         * modules/chown-tests (Files): Likewise.
21095         * modules/cloexec-tests (Files): Likewise.
21096         * modules/copy-file-tests (Files): Likewise.
21097         * modules/count-one-bits-tests (Files): Likewise.
21098         * modules/dprintf-posix-tests (Files): Likewise.
21099         * modules/dup2-tests (Files): Likewise.
21100         * modules/dup3-tests (Files): Likewise.
21101         * modules/duplocale-tests (Files): Likewise.
21102         * modules/fbufmode-tests (Files): Likewise.
21103         * modules/fchdir-tests (Files): Likewise.
21104         * modules/fcntl-safer-tests (Files): Likewise.
21105         * modules/fcntl-tests (Files): Likewise.
21106         * modules/fdopendir-tests (Files): Likewise.
21107         * modules/fdutimensat-tests (Files): Likewise.
21108         * modules/fflush-tests (Files): Likewise.
21109         * modules/filevercmp-tests (Files): Likewise.
21110         * modules/flock-tests (Files): Likewise.
21111         * modules/floorf-tests (Files): Likewise.
21112         * modules/floorl-tests (Files): Likewise.
21113         * modules/fnmatch-tests (Files): Likewise.
21114         * modules/fopen-safer-tests (Files): Likewise.
21115         * modules/fopen-tests (Files): Likewise.
21116         * modules/fpending-tests (Files): Likewise.
21117         * modules/fprintf-posix-tests (Files): Likewise.
21118         * modules/fpurge-tests (Files): Likewise.
21119         * modules/freadable-tests (Files): Likewise.
21120         * modules/freadahead-tests (Files): Likewise.
21121         * modules/freading-tests (Files): Likewise.
21122         * modules/freadptr-tests (Files): Likewise.
21123         * modules/freadseek-tests (Files): Likewise.
21124         * modules/freopen-tests (Files): Likewise.
21125         * modules/frexp-nolibm-tests (Files): Likewise.
21126         * modules/frexp-tests (Files): Likewise.
21127         * modules/frexpl-nolibm-tests (Files): Likewise.
21128         * modules/frexpl-tests (Files): Likewise.
21129         * modules/fseek-tests (Files): Likewise.
21130         * modules/fseeko-tests (Files): Likewise.
21131         * modules/fstrcmp-tests (Files): Likewise.
21132         * modules/fsync-tests (Files): Likewise.
21133         * modules/ftell-tests (Files): Likewise.
21134         * modules/ftello-tests (Files): Likewise.
21135         * modules/func-tests (Files): Likewise.
21136         * modules/futimens-tests (Files): Likewise.
21137         * modules/fwritable-tests (Files): Likewise.
21138         * modules/fwriting-tests (Files): Likewise.
21139         * modules/getcwd-tests (Files): Likewise.
21140         * modules/getdate-tests (Files): Likewise.
21141         * modules/getdelim-tests (Files): Likewise.
21142         * modules/getdtablesize-tests (Files): Likewise.
21143         * modules/getgroups-tests (Files): Likewise.
21144         * modules/getline-tests (Files): Likewise.
21145         * modules/getndelim2-tests (Files): Likewise.
21146         * modules/glob-tests (Files): Likewise.
21147         * modules/hash-tests (Files): Likewise.
21148         * modules/i-ring-tests (Files): Likewise.
21149         * modules/iconv-tests (Files): Likewise.
21150         * modules/iconv_open-utf-tests (Files): Likewise.
21151         * modules/idpriv-drop-tests (Files): Likewise.
21152         * modules/idpriv-droptemp-tests (Files): Likewise.
21153         * modules/inet_ntop-tests (Files): Likewise.
21154         * modules/inet_pton-tests (Files): Likewise.
21155         * modules/isblank-tests (Files): Likewise.
21156         * modules/isfinite-tests (Files): Likewise.
21157         * modules/isinf-tests (Files): Likewise.
21158         * modules/isnan-tests (Files): Likewise.
21159         * modules/isnand-nolibm-tests (Files): Likewise.
21160         * modules/isnand-tests (Files): Likewise.
21161         * modules/isnanf-nolibm-tests (Files): Likewise.
21162         * modules/isnanf-tests (Files): Likewise.
21163         * modules/isnanl-nolibm-tests (Files): Likewise.
21164         * modules/isnanl-tests (Files): Likewise.
21165         * modules/lchown-tests (Files): Likewise.
21166         * modules/ldexpl-tests (Files): Likewise.
21167         * modules/link-tests (Files): Likewise.
21168         * modules/linkat-tests (Files): Likewise.
21169         * modules/linked-list-tests (Files): Likewise.
21170         * modules/linkedhash-list-tests (Files): Likewise.
21171         * modules/localename-tests (Files): Likewise.
21172         * modules/lseek-tests (Files): Likewise.
21173         * modules/lstat-tests (Files): Likewise.
21174         * modules/mbmemcasecmp-tests (Files): Likewise.
21175         * modules/mbmemcasecoll-tests (Files): Likewise.
21176         * modules/mbrtowc-tests (Files): Likewise.
21177         * modules/mbscasecmp-tests (Files): Likewise.
21178         * modules/mbscasestr-tests (Files): Likewise.
21179         * modules/mbschr-tests (Files): Likewise.
21180         * modules/mbscspn-tests (Files): Likewise.
21181         * modules/mbsinit-tests (Files): Likewise.
21182         * modules/mbsncasecmp-tests (Files): Likewise.
21183         * modules/mbsnrtowcs-tests (Files): Likewise.
21184         * modules/mbspbrk-tests (Files): Likewise.
21185         * modules/mbspcasecmp-tests (Files): Likewise.
21186         * modules/mbsrchr-tests (Files): Likewise.
21187         * modules/mbsrtowcs-tests (Files): Likewise.
21188         * modules/mbsspn-tests (Files): Likewise.
21189         * modules/mbsstr-tests (Files): Likewise.
21190         * modules/memchr-tests (Files): Likewise.
21191         * modules/memchr2-tests (Files): Likewise.
21192         * modules/memcmp-tests (Files): Likewise.
21193         * modules/memmem-tests (Files): Likewise.
21194         * modules/memrchr-tests (Files): Likewise.
21195         * modules/mkdir-tests (Files): Likewise.
21196         * modules/mkfifo-tests (Files): Likewise.
21197         * modules/mkfifoat-tests (Files): Likewise.
21198         * modules/mknod-tests (Files): Likewise.
21199         * modules/nanosleep-tests (Files): Likewise.
21200         * modules/nl_langinfo-tests (Files): Likewise.
21201         * modules/obstack-printf-tests (Files): Likewise.
21202         * modules/open-tests (Files): Likewise.
21203         * modules/openat-tests (Files): Likewise.
21204         * modules/pipe-filter-gi-tests (Files): Likewise.
21205         * modules/pipe-filter-ii-tests (Files): Likewise.
21206         * modules/pipe2-tests (Files): Likewise.
21207         * modules/popen-safer-tests (Files): Likewise.
21208         * modules/popen-tests (Files): Likewise.
21209         * modules/posixtm-tests (Files): Likewise.
21210         * modules/pread-tests (Files): Likewise.
21211         * modules/printf-frexp-tests (Files): Likewise.
21212         * modules/printf-frexpl-tests (Files): Likewise.
21213         * modules/printf-posix-tests (Files): Likewise.
21214         * modules/priv-set-tests (Files): Likewise.
21215         * modules/quotearg-tests (Files): Likewise.
21216         * modules/random_r-tests (Files): Likewise.
21217         * modules/rawmemchr-tests (Files): Likewise.
21218         * modules/rbtree-list-tests (Files): Likewise.
21219         * modules/rbtree-oset-tests (Files): Likewise.
21220         * modules/rbtreehash-list-tests (Files): Likewise.
21221         * modules/readlink-tests (Files): Likewise.
21222         * modules/remove-tests (Files): Likewise.
21223         * modules/rename-tests (Files): Likewise.
21224         * modules/renameat-tests (Files): Likewise.
21225         * modules/rmdir-tests (Files): Likewise.
21226         * modules/round-tests (Files): Likewise.
21227         * modules/roundf-tests (Files): Likewise.
21228         * modules/roundl-tests (Files): Likewise.
21229         * modules/safe-alloc-tests (Files): Likewise.
21230         * modules/setenv-tests (Files): Likewise.
21231         * modules/sigaction-tests (Files): Likewise.
21232         * modules/signbit-tests (Files): Likewise.
21233         * modules/sleep-tests (Files): Likewise.
21234         * modules/snprintf-posix-tests (Files): Likewise.
21235         * modules/snprintf-tests (Files): Likewise.
21236         * modules/sprintf-posix-tests (Files): Likewise.
21237         * modules/stat-tests (Files): Likewise.
21238         * modules/stat-time-tests (Files): Likewise.
21239         * modules/strcasestr-tests (Files): Likewise.
21240         * modules/strchrnul-tests (Files): Likewise.
21241         * modules/strerror-tests (Files): Likewise.
21242         * modules/striconv-tests (Files): Likewise.
21243         * modules/striconveh-tests (Files): Likewise.
21244         * modules/striconveha-tests (Files): Likewise.
21245         * modules/strsignal-tests (Files): Likewise.
21246         * modules/strstr-tests (Files): Likewise.
21247         * modules/strtod-tests (Files): Likewise.
21248         * modules/strverscmp-tests (Files): Likewise.
21249         * modules/symlink-tests (Files): Likewise.
21250         * modules/symlinkat-tests (Files): Likewise.
21251         * modules/trunc-tests (Files): Likewise.
21252         * modules/truncf-tests (Files): Likewise.
21253         * modules/truncl-tests (Files): Likewise.
21254         * modules/uname-tests (Files): Likewise.
21255         * modules/unicase/cased-tests (Files): Likewise.
21256         * modules/unicase/ignorable-tests (Files): Likewise.
21257         * modules/unicase/locale-language-tests (Files): Likewise.
21258         * modules/unicase/tolower-tests (Files): Likewise.
21259         * modules/unicase/totitle-tests (Files): Likewise.
21260         * modules/unicase/toupper-tests (Files): Likewise.
21261         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21262         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21263         * modules/unicase/u8-casefold-tests (Files): Likewise.
21264         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21265         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21266         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21267         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21268         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21269         * modules/unicase/u8-tolower-tests (Files): Likewise.
21270         * modules/unicase/u8-totitle-tests (Files): Likewise.
21271         * modules/unicase/u8-toupper-tests (Files): Likewise.
21272         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21273         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21274         * modules/unicase/u16-casefold-tests (Files): Likewise.
21275         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21276         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21277         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21278         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21279         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21280         * modules/unicase/u16-tolower-tests (Files): Likewise.
21281         * modules/unicase/u16-totitle-tests (Files): Likewise.
21282         * modules/unicase/u16-toupper-tests (Files): Likewise.
21283         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21284         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21285         * modules/unicase/u32-casefold-tests (Files): Likewise.
21286         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21287         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21288         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21289         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21290         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21291         * modules/unicase/u32-tolower-tests (Files): Likewise.
21292         * modules/unicase/u32-totitle-tests (Files): Likewise.
21293         * modules/unicase/u32-toupper-tests (Files): Likewise.
21294         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21295         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21296         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21297         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21298         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21299         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21300         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21301         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21302         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21303         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21304         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21305         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21306         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21307         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21308         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21309         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21310         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21311         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21312         * modules/unictype/block-list-tests (Files): Likewise.
21313         * modules/unictype/block-of-tests (Files): Likewise.
21314         * modules/unictype/block-test-tests (Files): Likewise.
21315         * modules/unictype/category-C-tests (Files): Likewise.
21316         * modules/unictype/category-Cc-tests (Files): Likewise.
21317         * modules/unictype/category-Cf-tests (Files): Likewise.
21318         * modules/unictype/category-Cn-tests (Files): Likewise.
21319         * modules/unictype/category-Co-tests (Files): Likewise.
21320         * modules/unictype/category-Cs-tests (Files): Likewise.
21321         * modules/unictype/category-L-tests (Files): Likewise.
21322         * modules/unictype/category-Ll-tests (Files): Likewise.
21323         * modules/unictype/category-Lm-tests (Files): Likewise.
21324         * modules/unictype/category-Lo-tests (Files): Likewise.
21325         * modules/unictype/category-Lt-tests (Files): Likewise.
21326         * modules/unictype/category-Lu-tests (Files): Likewise.
21327         * modules/unictype/category-M-tests (Files): Likewise.
21328         * modules/unictype/category-Mc-tests (Files): Likewise.
21329         * modules/unictype/category-Me-tests (Files): Likewise.
21330         * modules/unictype/category-Mn-tests (Files): Likewise.
21331         * modules/unictype/category-N-tests (Files): Likewise.
21332         * modules/unictype/category-Nd-tests (Files): Likewise.
21333         * modules/unictype/category-Nl-tests (Files): Likewise.
21334         * modules/unictype/category-No-tests (Files): Likewise.
21335         * modules/unictype/category-P-tests (Files): Likewise.
21336         * modules/unictype/category-Pc-tests (Files): Likewise.
21337         * modules/unictype/category-Pd-tests (Files): Likewise.
21338         * modules/unictype/category-Pe-tests (Files): Likewise.
21339         * modules/unictype/category-Pf-tests (Files): Likewise.
21340         * modules/unictype/category-Pi-tests (Files): Likewise.
21341         * modules/unictype/category-Po-tests (Files): Likewise.
21342         * modules/unictype/category-Ps-tests (Files): Likewise.
21343         * modules/unictype/category-S-tests (Files): Likewise.
21344         * modules/unictype/category-Sc-tests (Files): Likewise.
21345         * modules/unictype/category-Sk-tests (Files): Likewise.
21346         * modules/unictype/category-Sm-tests (Files): Likewise.
21347         * modules/unictype/category-So-tests (Files): Likewise.
21348         * modules/unictype/category-Z-tests (Files): Likewise.
21349         * modules/unictype/category-Zl-tests (Files): Likewise.
21350         * modules/unictype/category-Zp-tests (Files): Likewise.
21351         * modules/unictype/category-Zs-tests (Files): Likewise.
21352         * modules/unictype/category-and-not-tests (Files): Likewise.
21353         * modules/unictype/category-and-tests (Files): Likewise.
21354         * modules/unictype/category-byname-tests (Files): Likewise.
21355         * modules/unictype/category-name-tests (Files): Likewise.
21356         * modules/unictype/category-none-tests (Files): Likewise.
21357         * modules/unictype/category-of-tests (Files): Likewise.
21358         * modules/unictype/category-or-tests (Files): Likewise.
21359         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21360         * modules/unictype/combining-class-tests (Files): Likewise.
21361         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21362         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21363         * modules/unictype/ctype-blank-tests (Files): Likewise.
21364         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21365         * modules/unictype/ctype-digit-tests (Files): Likewise.
21366         * modules/unictype/ctype-graph-tests (Files): Likewise.
21367         * modules/unictype/ctype-lower-tests (Files): Likewise.
21368         * modules/unictype/ctype-print-tests (Files): Likewise.
21369         * modules/unictype/ctype-punct-tests (Files): Likewise.
21370         * modules/unictype/ctype-space-tests (Files): Likewise.
21371         * modules/unictype/ctype-upper-tests (Files): Likewise.
21372         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21373         * modules/unictype/decimal-digit-tests (Files): Likewise.
21374         * modules/unictype/digit-tests (Files): Likewise.
21375         * modules/unictype/mirror-tests (Files): Likewise.
21376         * modules/unictype/numeric-tests (Files): Likewise.
21377         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21378         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21379         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21380         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21381         Likewise.
21382         * modules/unictype/property-bidi-block-separator-tests (Files):
21383         Likewise.
21384         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21385         Likewise.
21386         * modules/unictype/property-bidi-common-separator-tests (Files):
21387         Likewise.
21388         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21389         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21390         Likewise.
21391         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21392         Likewise.
21393         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21394         Likewise.
21395         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21396         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21397         Likewise.
21398         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21399         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21400         Likewise.
21401         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21402         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21403         * modules/unictype/property-bidi-segment-separator-tests (Files):
21404         Likewise.
21405         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21406         * modules/unictype/property-byname-tests (Files): Likewise.
21407         * modules/unictype/property-combining-tests (Files): Likewise.
21408         * modules/unictype/property-composite-tests (Files): Likewise.
21409         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21410         * modules/unictype/property-dash-tests (Files): Likewise.
21411         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21412         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21413         Likewise.
21414         * modules/unictype/property-deprecated-tests (Files): Likewise.
21415         * modules/unictype/property-diacritic-tests (Files): Likewise.
21416         * modules/unictype/property-extender-tests (Files): Likewise.
21417         * modules/unictype/property-format-control-tests (Files): Likewise.
21418         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21419         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21420         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21421         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21422         * modules/unictype/property-hyphen-tests (Files): Likewise.
21423         * modules/unictype/property-id-continue-tests (Files): Likewise.
21424         * modules/unictype/property-id-start-tests (Files): Likewise.
21425         * modules/unictype/property-ideographic-tests (Files): Likewise.
21426         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21427         * modules/unictype/property-ids-trinary-operator-tests (Files):
21428         Likewise.
21429         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21430         * modules/unictype/property-iso-control-tests (Files): Likewise.
21431         * modules/unictype/property-join-control-tests (Files): Likewise.
21432         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21433         * modules/unictype/property-line-separator-tests (Files): Likewise.
21434         * modules/unictype/property-logical-order-exception-tests (Files):
21435         Likewise.
21436         * modules/unictype/property-lowercase-tests (Files): Likewise.
21437         * modules/unictype/property-math-tests (Files): Likewise.
21438         * modules/unictype/property-non-break-tests (Files): Likewise.
21439         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21440         * modules/unictype/property-numeric-tests (Files): Likewise.
21441         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21442         * modules/unictype/property-other-default-ignorable-code-point-tests
21443         (Files): Likewise.
21444         * modules/unictype/property-other-grapheme-extend-tests (Files):
21445         Likewise.
21446         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21447         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21448         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21449         * modules/unictype/property-other-math-tests (Files): Likewise.
21450         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21451         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21452         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21453         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21454         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21455         * modules/unictype/property-private-use-tests (Files): Likewise.
21456         * modules/unictype/property-punctuation-tests (Files): Likewise.
21457         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21458         * modules/unictype/property-radical-tests (Files): Likewise.
21459         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21460         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21461         * modules/unictype/property-space-tests (Files): Likewise.
21462         * modules/unictype/property-terminal-punctuation-tests (Files):
21463         Likewise.
21464         * modules/unictype/property-test-tests (Files): Likewise.
21465         * modules/unictype/property-titlecase-tests (Files): Likewise.
21466         * modules/unictype/property-unassigned-code-value-tests (Files):
21467         Likewise.
21468         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
21469         * modules/unictype/property-uppercase-tests (Files): Likewise.
21470         * modules/unictype/property-variation-selector-tests (Files): Likewise.
21471         * modules/unictype/property-white-space-tests (Files): Likewise.
21472         * modules/unictype/property-xid-continue-tests (Files): Likewise.
21473         * modules/unictype/property-xid-start-tests (Files): Likewise.
21474         * modules/unictype/property-zero-width-tests (Files): Likewise.
21475         * modules/unictype/scripts-tests (Files): Likewise.
21476         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
21477         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
21478         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
21479         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
21480         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
21481         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
21482         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
21483         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
21484         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
21485         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
21486         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
21487         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
21488         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
21489         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
21490         * modules/uninorm/composition-tests (Files): Likewise.
21491         * modules/uninorm/decomposing-form-tests (Files): Likewise.
21492         * modules/uninorm/decomposition-tests (Files): Likewise.
21493         * modules/uninorm/filter-tests (Files): Likewise.
21494         * modules/uninorm/nfc-tests (Files): Likewise.
21495         * modules/uninorm/nfd-tests (Files): Likewise.
21496         * modules/uninorm/nfkc-tests (Files): Likewise.
21497         * modules/uninorm/nfkd-tests (Files): Likewise.
21498         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
21499         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
21500         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
21501         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
21502         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
21503         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
21504         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
21505         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21506         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
21507         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
21508         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
21509         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
21510         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21511         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
21512         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
21513         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
21514         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
21515         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21516         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
21517         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
21518         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
21519         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21520         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21521         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
21522         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
21523         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
21524         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
21525         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
21526         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
21527         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
21528         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
21529         * modules/uniwidth/u8-width-tests (Files): Likewise.
21530         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
21531         * modules/uniwidth/u16-width-tests (Files): Likewise.
21532         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
21533         * modules/uniwidth/u32-width-tests (Files): Likewise.
21534         * modules/uniwidth/width-tests (Files): Likewise.
21535         * modules/unlink-tests (Files): Likewise.
21536         * modules/unsetenv-tests (Files): Likewise.
21537         * modules/usleep-tests (Files): Likewise.
21538         * modules/utimens-tests (Files): Likewise.
21539         * modules/utimensat-tests (Files): Likewise.
21540         * modules/vasnprintf-posix-tests (Files): Likewise.
21541         * modules/vasnprintf-tests (Files): Likewise.
21542         * modules/vasprintf-posix-tests (Files): Likewise.
21543         * modules/vasprintf-tests (Files): Likewise.
21544         * modules/vdprintf-posix-tests (Files): Likewise.
21545         * modules/vfprintf-posix-tests (Files): Likewise.
21546         * modules/vprintf-posix-tests (Files): Likewise.
21547         * modules/vsnprintf-posix-tests (Files): Likewise.
21548         * modules/vsnprintf-tests (Files): Likewise.
21549         * modules/vsprintf-posix-tests (Files): Likewise.
21550         * modules/wcrtomb-tests (Files): Likewise.
21551         * modules/wcsnrtombs-tests (Files): Likewise.
21552         * modules/wcsrtombs-tests (Files): Likewise.
21553         * modules/wctype-tests (Files): Likewise.
21554         * modules/wcwidth-tests (Files): Likewise.
21555         * modules/xmemdup0-tests (Files): Likewise.
21556         * modules/xprintf-posix-tests (Files): Likewise.
21557         * modules/xvasprintf-tests (Files): Likewise.
21558
21559 2009-12-24  Eric Blake  <ebb9@byu.net>
21560
21561         test-nanosleep: fix typo
21562         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
21563         patch.
21564         Reported by Bruno Haible.
21565
21566 2009-12-24  Bruno Haible  <bruno@clisp.org>
21567
21568         Reduce namespace pollution on glibc systems.
21569         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
21570         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
21571         systems.
21572         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
21573         <getopt.h> on glibc systems.
21574         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
21575         systems.
21576         * lib/fcntl.c: Include <unistd.h> here instead.
21577
21578 2009-12-24  Bruno Haible  <bruno@clisp.org>
21579
21580         * lib/stdlib.in.h (includes): Fix typo in today's commit.
21581
21582 2009-12-24  Eric Blake  <ebb9@byu.net>
21583
21584         tests: add signature checks
21585         * tests/signature.h (SIGNATURE_CHECK): New file.
21586         * modules/atexit-tests (Files): Use it.
21587         * modules/btowc-tests (Files): Likewise.
21588         * modules/canonicalize-lgpl-tests (Files): Likewise.
21589         * modules/ceilf-tests (Files): Likewise.
21590         * modules/ceill-tests (Files): Likewise.
21591         * modules/chown-tests (Files): Likewise.
21592         * modules/dprintf-posix-tests (Files): Likewise.
21593         * modules/dup2-tests (Files): Likewise.
21594         * modules/dup3-tests (Files): Likewise.
21595         * modules/duplocale-tests (Files): Likewise.
21596         * modules/fchdir-tests (Files): Likewise.
21597         * modules/fcntl-tests (Files): Likewise.
21598         * modules/fdopendir-tests (Files): Likewise.
21599         * modules/fflush-tests (Files): Likewise.
21600         * modules/flock-tests (Files): Likewise.
21601         * modules/floorf-tests (Files): Likewise.
21602         * modules/floorl-tests (Files): Likewise.
21603         * modules/fnmatch-tests (Files): Likewise.
21604         * modules/fopen-tests (Files): Likewise.
21605         * modules/fprintf-posix-tests (Files): Likewise.
21606         * modules/freopen-tests (Files): Likewise.
21607         * modules/frexp-nolibm-tests (Files): Likewise.
21608         * modules/frexp-tests (Files): Likewise.
21609         * modules/frexpl-nolibm-tests (Files): Likewise.
21610         * modules/frexpl-tests (Files): Likewise.
21611         * modules/fseek-tests (Files): Likewise.
21612         * modules/fseeko-tests (Files): Likewise.
21613         * modules/fsync-tests (Files): Likewise.
21614         * modules/ftell-tests (Files): Likewise.
21615         * modules/ftello-tests (Files): Likewise.
21616         * modules/futimens-tests (Files): Likewise.
21617         * modules/getaddrinfo-tests (Files): Likewise.
21618         * modules/getcwd-tests (Files): Likewise.
21619         * modules/getdelim-tests (Files): Likewise.
21620         * modules/getdtablesize-tests (Files): Likewise.
21621         * modules/getgroups-tests (Files): Likewise.
21622         * modules/gethostname-tests (Files): Likewise.
21623         * modules/getline-tests (Files): Likewise.
21624         * modules/getopt-posix-tests (Files): Likewise.
21625         * modules/gettimeofday-tests (Files): Likewise.
21626         * modules/glob-tests (Files): Likewise.
21627         * modules/iconv-tests (Files): Likewise.
21628         * modules/inet_ntop-tests (Files): Likewise.
21629         * modules/inet_pton-tests (Files): Likewise.
21630         * modules/isblank-tests (Files): Likewise.
21631         * modules/lchown-tests (Files): Likewise.
21632         * modules/ldexpl-tests (Files): Likewise.
21633         * modules/link-tests (Files): Likewise.
21634         * modules/linkat-tests (Files): Likewise.
21635         * modules/lseek-tests (Files): Likewise.
21636         * modules/lstat-tests (Files): Likewise.
21637         * modules/mbrtowc-tests (Files): Likewise.
21638         * modules/mbsinit-tests (Files): Likewise.
21639         * modules/mbsnrtowcs-tests (Files): Likewise.
21640         * modules/mbsrtowcs-tests (Files): Likewise.
21641         * modules/memchr-tests (Files): Likewise.
21642         * modules/memcmp-tests (Files): Likewise.
21643         * modules/memmem-tests (Files): Likewise.
21644         * modules/memrchr-tests (Files): Likewise.
21645         * modules/mkdir-tests (Files): Likewise.
21646         * modules/mkfifo-tests (Files): Likewise.
21647         * modules/mkfifoat-tests (Files): Likewise.
21648         * modules/mknod-tests (Files): Likewise.
21649         * modules/nanosleep-tests (Files): Likewise.
21650         * modules/nl_langinfo-tests (Files): Likewise.
21651         * modules/obstack-printf-tests (Files): Likewise.
21652         * modules/open-tests (Files): Likewise.
21653         * modules/openat-tests (Files): Likewise.
21654         * modules/perror-tests (Files): Likewise.
21655         * modules/pipe2-tests (Files): Likewise.
21656         * modules/poll-tests (Files): Likewise.
21657         * modules/popen-tests (Files): Likewise.
21658         * modules/posix_spawn-tests (Files): Likewise.
21659         * modules/posix_spawnp-tests (Files): Likewise.
21660         * modules/pread-tests (Files): Likewise.
21661         * modules/printf-posix-tests (Files): Likewise.
21662         * modules/pty-tests (Files): Likewise.
21663         * modules/random_r-tests (Files): Likewise.
21664         * modules/rawmemchr-tests (Files): Likewise.
21665         * modules/readlink-tests (Files): Likewise.
21666         * modules/remove-tests (Files): Likewise.
21667         * modules/rename-tests (Files): Likewise.
21668         * modules/renameat-tests (Files): Likewise.
21669         * modules/rmdir-tests (Files): Likewise.
21670         * modules/round-tests (Files): Likewise.
21671         * modules/roundf-tests (Files): Likewise.
21672         * modules/roundl-tests (Files): Likewise.
21673         * modules/select-tests (Files): Likewise.
21674         * modules/setenv-tests (Files): Likewise.
21675         * modules/sigaction-tests (Files): Likewise.
21676         * modules/sleep-tests (Files): Likewise.
21677         * modules/snprintf-posix-tests (Files): Likewise.
21678         * modules/snprintf-tests (Files): Likewise.
21679         * modules/sprintf-posix-tests (Files): Likewise.
21680         * modules/stat-tests (Files): Likewise.
21681         * modules/strcasestr-tests (Files): Likewise.
21682         * modules/strchrnul-tests (Files): Likewise.
21683         * modules/strerror-tests (Files): Likewise.
21684         * modules/strsignal-tests (Files): Likewise.
21685         * modules/strstr-tests (Files): Likewise.
21686         * modules/strtod-tests (Files): Likewise.
21687         * modules/strverscmp-tests (Files): Likewise.
21688         * modules/symlink-tests (Files): Likewise.
21689         * modules/symlinkat-tests (Files): Likewise.
21690         * modules/times-tests (Files): Likewise.
21691         * modules/trunc-tests (Files): Likewise.
21692         * modules/truncf-tests (Files): Likewise.
21693         * modules/truncl-tests (Files): Likewise.
21694         * modules/tsearch-tests (Files): Likewise.
21695         * modules/uname-tests (Files): Likewise.
21696         * modules/unlink-tests (Files): Likewise.
21697         * modules/unsetenv-tests (Files): Likewise.
21698         * modules/usleep-tests (Files): Likewise.
21699         * modules/utimensat-tests (Files): Likewise.
21700         * modules/vasprintf-tests (Files): Likewise.
21701         * modules/vdprintf-posix-tests (Files): Likewise.
21702         * modules/vfprintf-posix-tests (Files): Likewise.
21703         * modules/vprintf-posix-tests (Files): Likewise.
21704         * modules/vsnprintf-posix-tests (Files): Likewise.
21705         * modules/vsnprintf-tests (Files): Likewise.
21706         * modules/vsprintf-posix-tests (Files): Likewise.
21707         * modules/wcrtomb-tests (Files): Likewise.
21708         * modules/wcsnrtombs-tests (Files): Likewise.
21709         * modules/wcsrtombs-tests (Files): Likewise.
21710         * modules/wcwidth-tests (Files): Likewise.
21711         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21712         * tests/test-isinf.c (isinf): Likewise.
21713         * tests/test-isnan.c (isnan): Likewise.
21714         * tests/test-signbit.c (signbit): Likewise.
21715         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21716         declaration, either as macro or with correct signature.
21717         (select): Ensure function under test is declared with correct
21718         signature in correct header.
21719         * tests/test-atexit.c (atexit): Likewise.
21720         * tests/test-btowc.c (btowc): Likewise.
21721         * tests/test-canonicalize-lgpl.c (realpath)
21722         (canonicalize_file_name): Likewise.
21723         * tests/test-ceilf1.c (ceilf): Likewise.
21724         * tests/test-ceill.c (ceill): Likewise.
21725         * tests/test-chown.c (chown): Likewise.
21726         * tests/test-dprintf-posix.c (dprintf): Likewise.
21727         * tests/test-dup2.c (dup2): Likewise.
21728         * tests/test-dup3.c (dup3): Likewise.
21729         * tests/test-duplocale.c (duplocale): Likewise.
21730         * tests/test-fchdir.c (fchdir): Likewise.
21731         * tests/test-fchownat.c (fchownat): Likewise.
21732         * tests/test-fcntl.c (fcntl): Likewise.
21733         * tests/test-fdopendir.c (fdopendir): Likewise.
21734         * tests/test-fflush.c (fflush): Likewise.
21735         * tests/test-flock.c (flock): Likewise.
21736         * tests/test-floorf1.c (floorf): Likewise.
21737         * tests/test-floorl.c (floorl): Likewise.
21738         * tests/test-fnmatch.c (fnmatch): Likewise.
21739         * tests/test-fopen.c (fopen): Likewise.
21740         * tests/test-fprintf-posix.c (fprintf): Likewise.
21741         * tests/test-freopen.c (freopen): Likewise.
21742         * tests/test-frexp.c (frexp): Likewise.
21743         * tests/test-frexpl.c (frexpl): Likewise.
21744         * tests/test-fseek.c (fseek): Likewise.
21745         * tests/test-fseeko.c (fseeko): Likewise.
21746         * tests/test-fstatat.c (fstatat): Likewise.
21747         * tests/test-fsync.c (fsync): Likewise.
21748         * tests/test-ftell.c (ftell): Likewise.
21749         * tests/test-ftello.c (ftello): Likewise.
21750         * tests/test-futimens.c (futimens): Likewise.
21751         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
21752         (gai_strerror): Likewise.
21753         * tests/test-getcwd.c (getcwd): Likewise.
21754         * tests/test-getdelim.c (getdelim): Likewise.
21755         * tests/test-getdtablesize.c (getdtablesize): Likewise.
21756         * tests/test-getgroups.c (getgroups): Likewise.
21757         * tests/test-gethostname.c (gethostname): Likewise.
21758         * tests/test-getline.c (getline): Likewise.
21759         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
21760         Likewise.
21761         * tests/test-gettimeofday.c (gettimeofday): Likewise.
21762         * tests/test-glob.c (glob, globfree): Likewise.
21763         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
21764         * tests/test-inet_ntop.c (inet_ntop): Likewise.
21765         * tests/test-inet_pton.c (inet_pton): Likewise.
21766         * tests/test-isblank.c (isblank): Likewise.
21767         * tests/test-lchown.c (lchown): Likewise.
21768         * tests/test-ldexpl.c (ldexpl): Likewise.
21769         * tests/test-link.c (link): Likewise.
21770         * tests/test-linkat.c (linkat): Likewise.
21771         * tests/test-lseek.c (lseek): Likewise.
21772         * tests/test-lstat.c (lstat): Likewise.
21773         * tests/test-mbrtowc.c (mbrtowc): Likewise.
21774         * tests/test-mbsinit.c (mbsinit): Likewise.
21775         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
21776         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
21777         * tests/test-memchr.c (memchr): Likewise.
21778         * tests/test-memcmp.c (memcmp): Likewise.
21779         * tests/test-memmem.c (memmem): Likewise.
21780         * tests/test-memrchr.c (memrchr): Likewise.
21781         * tests/test-mkdir.c (mkdir): Likewise.
21782         * tests/test-mkdirat.c (mkdirat): Likewise.
21783         * tests/test-mkfifo.c (mkfifo): Likewise.
21784         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
21785         * tests/test-mknod.c (mknod): Likewise.
21786         * tests/test-nanosleep.c (nanosleep): Likewise.
21787         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
21788         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
21789         Likewise.
21790         * tests/test-open.c (open): Likewise.
21791         * tests/test-openat.c (openat): Likewise.
21792         * tests/test-perror.c (perror): Likewise.
21793         * tests/test-pipe2.c (pipe2): Likewise.
21794         * tests/test-poll.c (poll): Likewise.
21795         * tests/test-popen.c (popen, pclose): Likewise.
21796         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
21797         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
21798         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
21799         (posix_spawn_file_actions_destroy)
21800         (posix_spawn_file_actions_addclose)
21801         (posix_spawn_file_actions_addopen)
21802         (posix_spawn_file_actions_adddup2): Likewise.
21803         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
21804         * tests/test-pread.c (pread): Likewise.
21805         * tests/test-printf-posix.c (printf): Likewise.
21806         * tests/test-pty.c (openpty, forkpty): Likewise.
21807         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
21808         (random_r): Likewise.
21809         * tests/test-rawmemchr.c (rawmemchr): Likewise.
21810         * tests/test-readlink.c (readlink): Likewise.
21811         * tests/test-remove.c (remove): Likewise.
21812         * tests/test-rename.c (rename): Likewise.
21813         * tests/test-renameat.c (renameat): Likewise.
21814         * tests/test-rmdir.c (rmdir): Likewise.
21815         * tests/test-round1.c (round): Likewise.
21816         * tests/test-roundf1.c (roundf): Likewise.
21817         * tests/test-roundl.c (roundl): Likewise.
21818         * tests/test-setenv.c (setenv): Likewise.
21819         * tests/test-sigaction.c (sigaction): Likewise.
21820         * tests/test-sleep.c (sleep): Likewise.
21821         * tests/test-snprintf.c (snprintf): Likewise.
21822         * tests/test-sprintf-posix.c (sprintf): Likewise.
21823         * tests/test-stat.c (stat): Likewise.
21824         * tests/test-stpncpy.c (stpncpy): Likewise.
21825         * tests/test-strcasestr.c (strcasestr): Likewise.
21826         * tests/test-strchrnul.c (strchrnul): Likewise.
21827         * tests/test-strerror.c (strerror): Likewise.
21828         * tests/test-strsignal.c (strsignal): Likewise.
21829         * tests/test-strstr.c (strstr): Likewise.
21830         * tests/test-strtod.c (strtod): Likewise.
21831         * tests/test-strverscmp.c (strverscmp): Likewise.
21832         * tests/test-symlink.c (symlink): Likewise.
21833         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
21834         * tests/test-times.c (times): Likewise.
21835         * tests/test-trunc1.c (trunc): Likewise.
21836         * tests/test-truncf1.c (truncf): Likewise.
21837         * tests/test-truncl.c (truncl): Likewise.
21838         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
21839         Likewise.
21840         * tests/test-uname.c (uname): Likewise.
21841         * tests/test-unlink.c (unlink): Likewise.
21842         * tests/test-unlinkat.c (unlinkat): Likewise.
21843         * tests/test-unsetenv.c (unsetenv): Likewise.
21844         * tests/test-usleep.c (usleep): Likewise.
21845         * tests/test-utimensat.c (utimensat): Likewise.
21846         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
21847         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
21848         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
21849         * tests/test-vprintf-posix.c (vprintf): Likewise.
21850         * tests/test-vsnprintf.c (vsnprintf): Likewise.
21851         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
21852         * tests/test-wcrtomb.c (wcrtomb): Likewise.
21853         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
21854         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
21855         * tests/test-wcwidth.c (wcwidth): Likewise.
21856
21857         build: pull in conditional headers during GNULIB_POSIXCHECK
21858         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
21859         definitions from any conditionally-included headers.
21860         * lib/stdlib.in.h (includes): Likewise.
21861         * lib/unistd.in.h (includes): Likewise.
21862
21863 2009-12-24  Bruno Haible  <bruno@clisp.org>
21864
21865         * tests/test-argv-iter.c: Include header file being tested immediately
21866         after config.h.
21867         * tests/test-base64.c: Likewise.
21868         * tests/test-flock.c: Likewise.
21869         * tests/test-fsync.c: Likewise.
21870         * tests/test-getdate.c: Likewise.
21871         * tests/test-getndelim2.c: Likewise.
21872         * tests/test-isfinite.c: Likewise.
21873         * tests/test-isinf.c: Likewise.
21874         * tests/test-strerror.c: Likewise.
21875         * tests/test-strsignal.c: Likewise.
21876
21877 2009-12-23  Eric Blake  <ebb9@byu.net>
21878
21879         unistd: work around cygwin bug
21880         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
21881         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
21882         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21883
21884 2009-12-23  Bruno Haible  <bruno@clisp.org>
21885
21886         localename: More tests.
21887         * tests/test-localename.c (SIZEOF): New macro.
21888         (categories): New variable.
21889         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
21890         test_locale_name_default): Add test w.r.t. thread locale.
21891         (test_locale_name_thread): New function.
21892         (main): Invoke it.
21893
21894         localename: Make aware of thread locale.
21895         * lib/localename.h (gl_locale_name_thread): New declaration.
21896         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
21897         behaviour with respect to thread locale.
21898         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
21899         <langinfo.h>, glthread/lock.h.
21900         (SIZE_BITS): New macro.
21901         (string_hash): New function.
21902         (struct hash_node): New type.
21903         (HASH_TABLE_SIZE): New macro.
21904         (struniq_hash_table, struniq_lock): New variables.
21905         (struniq): New function.
21906         (gl_locale_name_thread): New function.
21907         (gl_locale_name): Invoke it.
21908         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
21909         * modules/localename (Depends-on): Add lock.
21910         Reported by Mike Gran <spk121@yahoo.com>.
21911
21912 2009-12-23  Eric Blake  <ebb9@byu.net>
21913
21914         va-args: new module
21915         * modules/va-args: New file.
21916         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
21917         * MODULES.html.sh (Core language properties): Mention it.
21918
21919         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
21920         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
21921         named alias for __attribute__((__unused__)).
21922         * lib/chown.c: Update client.
21923         * lib/fchmodat.c: Likewise.
21924         * lib/fts.c: Likewise.
21925         * lib/getdate.y: Likewise.
21926         * lib/getgroups.c: Likewise.
21927         * lib/getopt.c: Likewise.
21928         * lib/getugroups.c: Likewise.
21929         * lib/mkdir.c: Likewise.
21930         * lib/mkfifo.c: Likewise.
21931         * lib/mkfifoat.c: Likewise.
21932         * lib/mknod.c: Likewise.
21933         * lib/mknodat.c: Likewise.
21934         * lib/readlink.c: Likewise.
21935         * lib/se-context.in.h: Likewise.
21936         * lib/se-selinux.in.h: Likewise.
21937         * lib/sockets.c: Likewise.
21938         * lib/symlink.c: Likewise.
21939         * lib/symlinkat.c: Likewise.
21940         * lib/unicodeio.c: Likewise.
21941         * lib/unistr.h: Likewise.
21942         * tests/test-areadlink.c: Likewise.
21943         * tests/test-areadlinkat.c: Likewise.
21944         * tests/test-filenamecat.c: Likewise.
21945         * tests/test-fseeko.c: Likewise.
21946         * tests/test-ftello.c: Likewise.
21947         * tests/test-getdate.c: Likewise.
21948         * tests/test-getgroups.c: Likewise.
21949         * tests/test-gethostname.c: Likewise.
21950         * tests/test-quotearg.c: Likewise.
21951         * tests/test-version-etc.c: Likewise.
21952         * tests/test-xalloc-die.c: Likewise.
21953         * tests/test-xfprintf-posix.c: Likewise.
21954         * tests/test-xprintf-posix.c: Likewise.
21955         * tests/test-xvasprintf.c: Likewise.
21956
21957         tests: avoid compiler warnings
21958         * tests/test-fcntl.c (main): Delete unused parameters.
21959         * tests/test-freopen-safer.c (main): Likewise.
21960         * tests/test-xalloc-die.c (main): Mark unused parameters.
21961         * tests/test-fseeko.c (main): Likewise.
21962         * tests/test-ftello.c (main): Likewise.
21963         * tests/test-nanosleep.c (main): Avoid declaration warning.
21964         * tests/test-sleep.c (main): Likewise.
21965         * tests/test-unsetenv.c (main): Silence warning about string
21966         literal.
21967         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21968
21969 2009-12-23  Bruno Haible  <bruno@clisp.org>
21970
21971         * tests/test-localename.c (test_locale_name): New function, extracted
21972         from main. Also test mixed situations.
21973         (test_locale_name_posix, test_locale_name_environ,
21974         test_locale_name_default): New functions.
21975         (main): Invoke them all.
21976         * modules/localename-tests (configure.ac): Test for newlocale.
21977
21978 2009-12-23  Bruno Haible  <bruno@clisp.org>
21979
21980         unistd: Ensure getcwd gets declared before being overridden.
21981         * lib/unistd.in.h: Conditionally include <io.h>.
21982
21983 2009-12-22  Bruno Haible  <bruno@clisp.org>
21984
21985         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21986         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21987         (gl_WCHAR_H): Invoke it.
21988         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21989         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21990         Reported by Karl Berry <karl@freefriends.org>.
21991
21992 2009-12-22  Eric Blake  <ebb9@byu.net>
21993
21994         math, unistd: avoid redundant includes
21995         * lib/math.in.h (isnan): No need to re-include <math.h>.
21996         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21997
21998         getsubopt: work around cygwin bug
21999         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22000         avoid conflicting with system getsubopt.
22001         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22002         bug.
22003
22004         getopt: synchronize from glibc
22005         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22006         parameter order.  Adjust all callers.
22007         (_getopt_internal_r, main): Adjust quoting in error messages.
22008         Drop considerations for outdated POSIX 1003.2 error message.
22009         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22010         callers.
22011         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22012
22013         test-getopt: test stderr behavior
22014         * modules/getopt-posix-tests (Depends-on): Add dup2.
22015         * tests/test-getopt.c (ASSERT): Avoid stderr.
22016         (main): Move stderr to a temporary file.
22017         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22018         Instead, add parameter to inform caller if output occurred.
22019         (test_getopt): Adjust all existing tests to expect silence, and
22020         add new tests of leading ":".
22021         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22022         glibc shortcomings with leading "-:" or "+:" in optstring.
22023         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22024         Likewise.
22025         * doc/posix-functions/getopt.texi (getopt): Likewise.
22026
22027         test-getopt: enhance test
22028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22029         supports optind=0.
22030         * tests/test-getopt.c (OPTIND_MIN): Move...
22031         * tests/test-getopt.h (OPTIND_MIN): ...here.
22032         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22033         Require that optind=0 works, since modern BSD supports it in
22034         addition to optreset, and since coreutils expects it.
22035         (test_getopt_long_only): New test.
22036         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22037         glibc shortcomings with 'W;', and enforcement of optind=0.
22038         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22039         Likewise.
22040
22041 2009-12-21  Bruno Haible  <bruno@clisp.org>
22042
22043         localename: Improvements for MacOS X and Cygwin.
22044         * lib/localename.h (gl_locale_name_environ): New declaration.
22045         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22046         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22047         (gl_locale_name_posix): Invoke it.
22048         (gl_locale_name_default): Add comments. Use Windows native API also on
22049         Cygwin.
22050
22051 2009-12-21  Bruno Haible  <bruno@clisp.org>
22052
22053         Update list of Win32 locale ids.
22054         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22055         (LANG_SAMI): Renamed from LANG_SAAMI.
22056         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22057         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22058         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22059         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22060         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22061         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22062         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22063         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22064         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22065         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22066         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22067         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22068         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22069         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22070         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22071         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22072         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22073         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22074         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22075         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22076         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22077         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22078         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22079         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22080         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22081         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22082         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22083         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22084         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22085         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22086         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22087         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22088         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22089         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22090         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22091         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22092         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22093         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22094         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22095         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22096         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22097         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22098         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22099         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22100         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22101         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22102         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22103         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22104         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22105         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22106         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22107         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22108         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22109         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22110         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22111         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22112         Add more languages and countries for Sami, Sorbian. Add more countries
22113         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22114         for Pashto. Change country for Syriac, Tswana.
22115
22116 2009-12-21  Eric Blake  <ebb9@byu.net>
22117
22118         test-utimens: avoid spurious failure
22119         * tests/test-chown.h (nap): Factor...
22120         * tests/nap.h: ...into new file.
22121         * tests/test-lchown.h (nap): Avoid duplication.
22122         * tests/test-utimens-common.h (nap): Use shared implementation,
22123         necessary on file systems with 1-second resolution.
22124         * modules/chown-tests (Files): Include new file.
22125         * modules/fdutimensat-tests (Files): Likewise.
22126         * modules/futimens-tests (Files): Likewise.
22127         * modules/lchown-tests (Files): Likewise.
22128         * modules/openat-tests (Files): Likewise.
22129         * modules/utimens-tests (Files): Likewise.
22130         * modules/utimensat-tests (Files): Likewise.
22131
22132 2009-12-19  Eric Blake  <ebb9@byu.net>
22133
22134         futimens, utimensat: work around Linux bug
22135         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22136         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22137         * lib/utimensat.c (rpl_utimensat): Work around it.
22138         * lib/futimens.c (rpl_futimens): Adjust comment.
22139
22140         utimens: work around Linux ctime bug
22141         * lib/utimens.c (detect_ctime_bug): New helper function.
22142         (update_timespec): Differentiate between workaround needed for
22143         this bug vs. what is needed for systems that lack utimensat.
22144         (fdutimens, lutimens): Work around bug.
22145
22146         utimens: check for ctime update
22147         * tests/test-utimens-common.h (check_ctime): Define.
22148         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22149         * tests/test-futimens.h (test_futimens): Likewise.
22150         * tests/test-lutimens.h (test_lutimens): Likewise.
22151         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22152         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22153
22154 2009-12-19  Bruno Haible  <bruno@clisp.org>
22155
22156         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22157         * tests/test-dprintf-posix2.sh: New file.
22158         * tests/test-dprintf-posix2.c: New file.
22159         * modules/dprintf-posix-tests (Files): Add them.
22160         (configure.ac): Check for getrlimit and setrlimit.
22161         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22162
22163 2009-12-19  Bruno Haible  <bruno@clisp.org>
22164
22165         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22166         * tests/test-fprintf-posix3.sh: New file.
22167         * tests/test-fprintf-posix3.c: New file.
22168         * modules/fprintf-posix-tests (Files): Add them.
22169         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22170
22171 2009-12-19  Eric Blake  <ebb9@byu.net>
22172
22173         dirfd: fix prototype
22174         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22175         * lib/dirfd.c (dirfd): Likewise.
22176
22177         canonicalize: reduce memory usage
22178         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22179         allocation to size.
22180         Reported by Solar Designer <solar@openwall.com>.
22181
22182 2009-12-19  Bruno Haible  <bruno@clisp.org>
22183
22184         New module attribute 'Applicability'.
22185         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22186         * gnulib-tool: New option --extract-applicability.
22187         (func_usage): Document it.
22188         (sed_extract_prog): Recognize it.
22189         (func_get_applicability): New function.
22190         (func_import): Generalize handling of 'link-warning' module.
22191         * modules/link-warning (Applicability): New section.
22192         * modules/arg-nonnull (Applicability): New section.
22193         Repoted by Simon Josefsson <simon@josefsson.org>.
22194
22195 2009-12-19  Bruno Haible  <bruno@clisp.org>
22196
22197         fflush: tweak
22198         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22199         * lib/fseeko.c (rpl_fseeko): Likewise.
22200
22201 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22202
22203         * lib/gl_list.h: Fix typo in comment.
22204
22205 2009-12-16  Eric Blake  <ebb9@byu.net>
22206
22207         fcntl: use to simplify other modules
22208         * modules/cloexec (Depends-on): Add fcntl.
22209         * modules/fchdir (Depends-on): Likewise.
22210         * modules/fd-safer-flag (Depends-on): Likewise.
22211         * modules/unistd-safer (Depends-on): Likewise.
22212         * modules/dup3 (configure.ac): Set module indicator.
22213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22214         missing.
22215         * lib/fchdir.c (_gl_register_dup): Fix comment.
22216         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22217         * lib/dup-safer.c (dup_safer): Likewise.
22218         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22219         * lib/dup3.c (dup3): Likewise.
22220         * tests/test-fchdir.c (main): Enhance test.
22221         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22222
22223         fcntl: port portions of fcntl to mingw
22224         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22225         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22226         replacement for mingw.
22227         * modules/fcntl (Description): Update.
22228         (Depends-on): Add dup2.
22229         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22230         * modules/fcntl-h (Makefile.am): Substitute it.
22231         * lib/fcntl.in.h (fcntl): Update declaration.
22232         (F_DUPFD, F_GETFD): New macros, when needed.
22233         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22234         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22235         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22236         we now guarantee.
22237
22238         fcntl: work around cygwin bug in F_DUPFD
22239         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22240         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22241         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22242         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22243         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22244
22245         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22246         * modules/fcntl (Files): List new files.
22247         (configure.ac): Run a test.
22248         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22249         * lib/fcntl.c (rpl_fcntl): Likewise.
22250         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22251         (gl_FCNTL_H): Always replace fcntl.h.
22252         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22253         * lib/fcntl.in.h (fcntl): Declare replacement.
22254         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22255         needed, plus a witness.
22256         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22257         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22258         * tests/test-fcntl.c: New file.
22259         * modules/fcntl-tests: Likewise.
22260
22261         binary-io: avoid potential compilation warning
22262         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22263         directives.
22264
22265         fflush: avoid compilation error on NetBSD
22266         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22267         between off_t and fpos_t, since the latter is sometimes a struct.
22268         * lib/fseeko.c (rpl_fseeko): Likewise.
22269         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22270
22271 2009-12-15  Eric Blake  <ebb9@byu.net>
22272
22273         fcntl-h, stdio, sys_ioctl: fix declarations
22274         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22275         function must not take arguments.
22276         * lib/sys_ioctl.in.h (ioctl): Likewise.
22277         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22278         (open): Add a link warning.
22279
22280 2009-12-15  Jim Meyering  <meyering@redhat.com>
22281
22282         areadlink, areadlink-with-size: relax license to LGPLv2+
22283         * modules/areadlink (License): Relax to LGPLv2+.
22284         * modules/areadlink-with-size (License): Likewise.
22285
22286 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22287             Bruno Haible  <bruno@clisp.org>
22288
22289         *printf: Fix memory leak.
22290         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22291         * lib/vfprintf.c (vfprintf): Likewise.
22292         * lib/dprintf.c (dprintf): Likewise.
22293         * lib/vdprintf.c (vdprintf): Likewise.
22294
22295 2009-12-14  Eric Blake  <ebb9@byu.net>
22296
22297         accept4: adjust module dependencies
22298         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22299
22300         utimens: one more try at avoiding compiler warning
22301         * lib/utimens.c (lutimens): Lower scope of result.
22302
22303 2009-12-13  Bruno Haible  <bruno@clisp.org>
22304
22305         Move the malloc checking from module 'list' to new module 'xlist'.
22306         * modules/xlist: New file.
22307         * lib/gl_xlist.h: New file.
22308         * lib/gl_xlist.c: New file.
22309         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22310         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22311         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22312         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22313         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22314         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22315         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22316         gl_sortedlist_nx_add): New declarations.
22317         (struct gl_list_implementation): Rename and change methods accordingly.
22318         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22319         (gl_list_nx_create): Renamed from gl_list_create.
22320         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22321         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22322         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22323         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22324         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22325         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22326         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22327         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22328         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22329         gl_list_create_empty.
22330         (gl_list_nx_create): Renamed from gl_list_create.
22331         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22332         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22333         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22334         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22335         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22336         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22337         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22338         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22339         * lib/gl_array_list.c: Don't include xalloc.h.
22340         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22341         NULL upon out-of-memory.
22342         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22343         out-of-memory.
22344         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22345         Change return type to 'int'.
22346         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22347         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22348         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22349         upon out-of-memory.
22350         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22351         upon out-of-memory.
22352         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22353         upon out-of-memory.
22354         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22355         upon out-of-memory.
22356         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22357         out-of-memory.
22358         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22359         Update.
22360         (gl_array_list_implementation): Update.
22361         * lib/gl_carray_list.c: Don't include xalloc.h.
22362         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22363         Return NULL upon out-of-memory.
22364         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22365         out-of-memory.
22366         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22367         Change return type to 'int'.
22368         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22369         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22370         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22371         upon out-of-memory.
22372         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22373         upon out-of-memory.
22374         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22375         out-of-memory.
22376         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22377         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22378         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22379         Update.
22380         (gl_carray_list_implementation): Update.
22381         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22382         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22383         gl_linked_create_empty. Return NULL upon out-of-memory.
22384         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22385         out-of-memory.
22386         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22387         Change return type to 'int'. Return -1 upon out-of-memory.
22388         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22389         out-of-memory.
22390         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22391         upon out-of-memory.
22392         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22393         upon out-of-memory.
22394         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22395         NULL upon out-of-memory.
22396         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22397         upon out-of-memory.
22398         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22399         out-of-memory.
22400         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22401         Update.
22402         * lib/gl_linked_list.c: Don't include xalloc.h.
22403         (gl_linked_list_implementation): Update.
22404         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22405         (add_to_bucket): Change return type to 'int'.
22406         (gl_linkedhash_list_implementation): Update.
22407         * lib/gl_anytree_list1.h (free_subtree): New function.
22408         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22409         gl_tree_create_empty. Return NULL upon out-of-memory.
22410         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22411         Change return type to 'int'. Return -1 upon out-of-memory.
22412         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22413         out-of-memory.
22414         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22415         (gl_tree_remove_node): New function, moved here from
22416         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22417         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22418         Update.
22419         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22420         malloc, not xmalloc. Return NULL upon out-of-memory.
22421         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22422         out-of-memory.
22423         (gl_tree_remove_node_from_tree): New function, extracted from
22424         gl_tree_remove_node.
22425         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22426         upon out-of-memory.
22427         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22428         out-of-memory.
22429         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22430         upon out-of-memory.
22431         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22432         upon out-of-memory.
22433         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22434         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22435         not xmalloc. Return NULL upon out-of-memory.
22436         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22437         out-of-memory.
22438         (gl_tree_remove_node_from_tree): New function, extracted from
22439         gl_tree_remove_node.
22440         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22441         upon out-of-memory.
22442         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22443         out-of-memory.
22444         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22445         upon out-of-memory.
22446         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22447         upon out-of-memory.
22448         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22449         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22450         gl_anytree_list1.h before gl_anyavltree_list2.h.
22451         (gl_avltree_list_implementation): Update.
22452         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22453         gl_anytree_list1.h before gl_anyavltree_list2.h.
22454         (gl_rbtree_list_implementation): Update.
22455         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22456         Change return type to 'int'. Return -1 upon out-of-memory. Use
22457         __builtin_expect.
22458         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22459         (gl_avltreehash_list_implementation): Update.
22460         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22461         (gl_rbtreehash_list_implementation): Update.
22462         * modules/array-list (Depends-on): Remove xalloc.
22463         * modules/carray-list (Depends-on): Likewise.
22464         * modules/linked-list (Depends-on): Likewise.
22465         * modules/linkedhash-list (Depends-on): Likewise.
22466         * modules/avltree-list (Depends-on): Likewise.
22467         * modules/rbtree-list (Depends-on): Likewise.
22468         * modules/avltreehash-list (Depends-on): Likewise.
22469         * modules/rbtreehash-list (Depends-on): Likewise.
22470
22471         * modules/xsublist: New file.
22472         * lib/gl_xsublist.h: New file.
22473         * lib/gl_xsublist.c: New file.
22474         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
22475         (gl_sublist_nx_create): New declaration.
22476         * lib/gl_sublist.c: Don't include xalloc.h.
22477         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
22478         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
22479         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
22480         Change return type to 'int'. Return -1 upon out-of-memory.
22481         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
22482         upon out-of-memory.
22483         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
22484         NULL upon out-of-memory.
22485         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
22486         upon out-of-memory.
22487         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
22488         NULL upon out-of-memory.
22489         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
22490         NULL upon out-of-memory.
22491         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
22492         upon out-of-memory.
22493         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
22494         (gl_sublist_list_implementation): Update.
22495         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
22496         upon out-of-memory.
22497         * modules/sublist (Depends-on): Remove xalloc.
22498
22499         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
22500         * tests/test-carray_list.c: Likewise.
22501         * tests/test-linked_list.c: Likewise.
22502         * tests/test-linkedhash_list.c: Likewise.
22503         * tests/test-avltree_list.c: Likewise.
22504         * tests/test-rbtree_list.c: Likewise.
22505         * tests/test-avltreehash_list.c: Likewise.
22506         * tests/test-rbtreehash_list.c: Likewise.
22507         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
22508         * modules/carray-list-tests (Makefile.am): Likewise.
22509         * modules/linked-list-tests (Makefile.am): Likewise.
22510         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22511         * modules/avltree-list-tests (Makefile.am): Likewise.
22512         * modules/rbtree-list-tests (Makefile.am): Likewise.
22513         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22514         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22515
22516         * NEWS: Mention the changes.
22517
22518         * lib/clean-temp.c: Include gl_xlist.h.
22519         * modules/clean-temp (Depends-on): Add xlist.
22520
22521         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
22522         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
22523
22524         * tests/test-array_oset.c: Include gl_xlist.h.
22525         * modules/array-oset-tests (Depends-on): Add xlist.
22526
22527         Reported by José E. Marchesi <jemarch@gnu.org>.
22528
22529 2009-12-13  Bruno Haible  <bruno@clisp.org>
22530
22531         Move the malloc checking from module 'oset' to new module 'xoset'.
22532         * modules/xoset: New file.
22533         * lib/gl_xoset.h: New file.
22534         * lib/gl_xoset.c: New file.
22535         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
22536         declarations.
22537         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
22538         (struct gl_oset_implementation): Rename and change methods accordingly.
22539         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
22540         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22541         'int'. Mark as __warn_unused_result__.
22542         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
22543         gl_oset_create_empty.
22544         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22545         'int'.
22546         * lib/gl_array_oset.c: Don't include xalloc.h.
22547         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
22548         malloc, not xmalloc.
22549         (grow): Change return type to 'int'. Don't call xalloc_die.
22550         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
22551         to 'int'.
22552         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
22553         'int'.
22554         (gl_array_oset_implementation): Update.
22555         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
22556         gl_tree_create_empty.
22557         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
22558         'int'.
22559         * lib/gl_avltree_oset.c: Don't include xalloc.h.
22560         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22561         xmalloc.
22562         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22563         not xmalloc.
22564         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22565         xmalloc.
22566         (gl_avltree_oset_implementation): Update.
22567         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
22568         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22569         xmalloc.
22570         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22571         not xmalloc.
22572         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22573         xmalloc.
22574         (gl_rbtree_oset_implementation): Update.
22575         * modules/array-oset (Depends-on): Remove xalloc.
22576         * modules/avltree-oset (Depends-on): Likewise.
22577         * modules/rbtree-oset (Depends-on): Likewise.
22578         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
22579         * tests/test-avltree_oset.c: Likewise.
22580         * tests/test-rbtree_oset.c: Likewise.
22581         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22582         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
22583         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22584         * NEWS: Mention the change.
22585
22586 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
22587
22588         maint.mk: allow a project to override release-prep commands
22589         * top/maint.mk (alpha, beta, stable): Move release-preparatory
22590         commands into a new rule.
22591         (release-prep): New rule.
22592         (release-prep-hook): New overridable variable.
22593
22594 2009-12-13  Bruno Haible  <bruno@clisp.org>
22595
22596         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
22597
22598 2009-12-13  Jim Meyering  <meyering@redhat.com>
22599
22600         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
22601         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
22602
22603 2009-12-12  Bruno Haible  <bruno@clisp.org>
22604
22605         duplocale: Tweak.
22606         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
22607
22608 2009-12-12  Karl Berry  <karl@gnu.org>
22609
22610         * config/srclist.txt (strtoll.c): tab changes, no more sync.
22611
22612 2009-12-12  Bruno Haible  <bruno@clisp.org>
22613
22614         * m4/po.m4: Undo incorrect untabification.
22615
22616 2009-12-12  Bruno Haible  <bruno@clisp.org>
22617
22618         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
22619         * modules/c-strtod (Depends-on): Add locale.
22620         * modules/c-strtold (Depends-on): Likewise.
22621
22622 2009-12-12  Bruno Haible  <bruno@clisp.org>
22623
22624         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
22625
22626 2009-12-11  Eric Blake  <ebb9@byu.net>
22627
22628         setenv: relax requirement in light of POSIX ruling
22629         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
22630         not NULL.
22631         * tests/test-setenv.c (main): Relax test.
22632         * tests/test-unsetenv.c (main): Likewise.
22633         * doc/posix-functions/setenv.texi (setenv): Document this.
22634         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22635
22636 2009-12-11  Bruno Haible  <bruno@clisp.org>
22637
22638         New module 'fd-safer-flag'.
22639         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22640         * lib/dup-safer.c (dup_safer_flag): Remove function.
22641         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22642         * lib/fd-safer.c (fd_safer_flag): Remove function.
22643         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22644         * modules/cloexec (configure.ac): Drop indicator macro.
22645         * modules/fd-safer-flag: New file.
22646         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22647         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22648         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22649
22650 2009-12-11  Bruno Haible  <bruno@clisp.org>
22651
22652         Tests for module 'nl_langinfo'.
22653         * modules/nl_langinfo-tests: New file.
22654         * tests/test-nl_langinfo.sh: New file.
22655         * tests/test-nl_langinfo.c: New file.
22656
22657         New module 'nl_langinfo'.
22658         * lib/nl_langinfo.c: New file.
22659         * m4/nl_langinfo.m4: New file.
22660         * modules/nl_langinfo: New file.
22661         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22662
22663 2009-12-11  Bruno Haible  <bruno@clisp.org>
22664
22665         Tests for module 'langinfo'.
22666         * modules/langinfo-tests: New file.
22667         * tests/test-langinfo.c: New file.
22668
22669         New module 'langinfo'.
22670         * lib/langinfo.in.h: New file.
22671         * m4/langinfo_h.m4: New file.
22672         * modules/langinfo: New file.
22673         * doc/posix-headers/langinfo.texi: Mention the new module.
22674
22675 2009-12-11  Bruno Haible  <bruno@clisp.org>
22676
22677         * lib/config.charset: Untabify.
22678
22679 2009-12-11  Bruno Haible  <bruno@clisp.org>
22680
22681         * modules/unistd-safer (configure.ac): Drop indicator macro.
22682
22683 2009-12-11  Bruno Haible  <bruno@clisp.org>
22684
22685         Move pipe2-safer code to its own file.
22686         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22687         * lib/pipe-safer.c (pipe2_safer): Remove function.
22688         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22689         (Makefile.am): Add it to lib_SOURCES.
22690
22691 2009-12-10  Bruno Haible  <bruno@clisp.org>
22692
22693         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22694
22695 2009-12-10  Bruno Haible  <bruno@clisp.org>
22696
22697         Declare which arguments expect non-NULL values, for GCC and clang.
22698         * build-aux/arg-nonnull.h: New file.
22699         * modules/arg-nonnull: New file.
22700         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22701         (inet_ntop, inet_pton): Use it.
22702         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22703         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22704         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22705         (open, openat): Use it.
22706         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22707         (fnmatch): Use it.
22708         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22709         (getopt, getopt_long, getopt_long_only): Use it.
22710         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22711         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22712         Use it.
22713         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22714         (iconv_open): Use it.
22715         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22716         (strtoimax, strtoumax): Use it.
22717         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22718         (duplocale): Use it.
22719         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22720         (frexp, frexpl): Use it.
22721         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22722         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22723         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22724         (tsearch, tfind, tdelete, twalk): Use it.
22725         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22726         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22727         sigpending): Use it.
22728         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22729         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22730         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22731         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22732         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22733         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22734         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22735         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22736         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22737         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22738         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22739         Use it.
22740         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
22741         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
22742         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
22743         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
22744         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
22745         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
22746         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
22747         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
22748         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
22749         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
22750         strtoull, unsetenv): Use it.
22751         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
22752         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22753         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22754         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22755         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22756         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
22757         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
22758         (strcasecmp, strncasecmp): Use it.
22759         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
22760         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
22761         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
22762         rpl_setsockopt): Use it.
22763         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
22764         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
22765         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
22766         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
22767         (gettimeofday): Use it.
22768         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
22769         (times): Use it.
22770         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
22771         (uname): Use it.
22772         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
22773         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
22774         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
22775         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
22776         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
22777         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
22778         unlinkat, write): Use it.
22779         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
22780         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
22781         * lib/argv-iter.h: Include arg-nonnull.h.
22782         (_ATTRIBUTE_NONNULL_): Remove macro.
22783         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
22784         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
22785         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
22786         optimization.
22787         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
22788         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
22789         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
22790         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
22791         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
22792         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
22793         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
22794         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
22795         * modules/arpa_inet (Depends-on): Add arg-nonnull.
22796         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
22797         * modules/dirent (Depends-on): Add arg-nonnull.
22798         (Makefile.am): Insert arg-nonnull.h into dirent.h.
22799         * modules/fcntl-h (Depends-on): Add arg-nonnull.
22800         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
22801         * modules/fnmatch (Depends-on): Add arg-nonnull.
22802         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
22803         * modules/getopt-posix (Depends-on): Add arg-nonnull.
22804         (Makefile.am): Insert arg-nonnull.h into getopt.h.
22805         * modules/glob (Depends-on): Add arg-nonnull.
22806         (Makefile.am): Insert arg-nonnull.h into glob.h.
22807         * modules/iconv_open (Depends-on): Add arg-nonnull.
22808         (Makefile.am): Insert arg-nonnull.h into iconv.h.
22809         * modules/inttypes (Depends-on): Add arg-nonnull.
22810         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
22811         * modules/locale (Depends-on): Add arg-nonnull.
22812         (Makefile.am): Insert arg-nonnull.h into locale.h.
22813         * modules/math (Depends-on): Add arg-nonnull.
22814         (Makefile.am): Insert arg-nonnull.h into math.h.
22815         * modules/netdb (Depends-on): Add arg-nonnull.
22816         (Makefile.am): Insert arg-nonnull.h into netdb.h.
22817         * modules/search (Depends-on): Add arg-nonnull.
22818         (Makefile.am): Insert arg-nonnull.h into search.h.
22819         * modules/signal (Depends-on): Add arg-nonnull.
22820         (Makefile.am): Insert arg-nonnull.h into signal.h.
22821         * modules/spawn (Depends-on): Add arg-nonnull.
22822         (Makefile.am): Insert arg-nonnull.h into spawn.h.
22823         * modules/stdio (Depends-on): Add arg-nonnull.
22824         (Makefile.am): Insert arg-nonnull.h into stdio.h.
22825         * modules/stdlib (Depends-on): Add arg-nonnull.
22826         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
22827         * modules/string (Depends-on): Add arg-nonnull.
22828         (Makefile.am): Insert arg-nonnull.h into string.h.
22829         * modules/strings (Depends-on): Add arg-nonnull.
22830         (Makefile.am): Insert arg-nonnull.h into strings.h.
22831         * modules/sys_socket (Depends-on): Add arg-nonnull.
22832         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
22833         * modules/sys_stat (Depends-on): Add arg-nonnull.
22834         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
22835         * modules/sys_time (Depends-on): Add arg-nonnull.
22836         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
22837         * modules/sys_times (Depends-on): Add arg-nonnull.
22838         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
22839         * modules/sys_utsname (Depends-on): Add arg-nonnull.
22840         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
22841         * modules/time (Depends-on): Add arg-nonnull.
22842         (Makefile.am): Insert arg-nonnull.h into time.h.
22843         * modules/unistd (Depends-on): Add arg-nonnull.
22844         (Makefile.am): Insert arg-nonnull.h into unistd.h.
22845         * modules/wchar (Depends-on): Add arg-nonnull.
22846         (Makefile.am): Insert arg-nonnull.h into wchar.h.
22847         * modules/argv-iter (Depends-on): Add arg-nonnull.
22848         * tests/test-canonicalize.c (null_ptr): New function.
22849         (main): Use it.
22850         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
22851         (main): Use it.
22852         * tests/test-memmem.c (null_ptr): New function.
22853         (main): Use it.
22854         Reported by Jim Meyering.
22855
22856 2009-12-10  Bruno Haible  <bruno@clisp.org>
22857
22858         Use spaces for indentation, not tabs.
22859         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22860         * m4/*.m4: Untabify.
22861         * build-aux/*.h: Untabify.
22862         * tests/**/*.[hc]: Untabify.
22863         * README: New section "Indent with spaces, not TABs", based on
22864         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
22865         * NEWS: Mention the change.
22866
22867 2009-12-10  Bruno Haible  <bruno@clisp.org>
22868
22869         pty test: Fix link error.
22870         * modules/pty-tests (Makefile.am): Add the default LDADD value to
22871         test_pty_LDADD.
22872
22873 2009-12-07  Simon Josefsson  <simon@josefsson.org>
22874
22875         * modules/pty: New file.
22876         * modules/pty-tests: New file.
22877         * m4/pty.m4: New file.
22878         * tests/test-pty.c: New file.
22879         * doc/glibc-headers/pty.texi: Modified.
22880         * doc/glibc-functions/forkpty.texi: Modified.
22881         * doc/glibc-functions/openpty.texi: Modified.
22882
22883 2009-12-10  Bruno Haible  <bruno@clisp.org>
22884
22885         Avoid syntax error in C++ mode.
22886         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
22887
22888 2009-12-10  Bruno Haible  <bruno@clisp.org>
22889
22890         Use sed with option -e.
22891         * gnulib-tool (func_version, func_emit_copyright_notice,
22892         func_emit_initmacro_end, func_import, func_create_testdir): Pass
22893         option -e to sed.
22894         * modules/link-warning (Makefile.am): Likewise.
22895
22896 2009-12-10  Jim Meyering  <meyering@redhat.com>
22897
22898         mgetgroups: do not write bytes beyond end of malloc'd buffer
22899         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
22900         username, we call getgroups with a one-element-shorter buffer,
22901         but still told it the length was original, max_n_groups.
22902
22903 2009-12-09  Eric Blake  <ebb9@byu.net>
22904
22905         cloexec: relax license
22906         * modules/cloexec (Maintainer): Add myself.
22907         (License): Use LGPL, not GPL.
22908
22909         link-warning: optimize generation
22910         * modules/link-warning (Makefile.am): Reduce process usage.
22911
22912 2009-12-09  Bruno Haible  <bruno@clisp.org>
22913
22914         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
22915         workaround was added on 2009-11-17.
22916
22917 2009-12-09  Jim Meyering  <meyering@redhat.com>
22918             Bruno Haible  <bruno@clisp.org>
22919
22920         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
22921         * modules/link-warning (Makefile.am): Make the comment-removing sed
22922         command more robust in the face of bootstrap-prepended comment lines.
22923
22924 2009-12-09  Bruno Haible  <bruno@clisp.org>
22925
22926         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
22927         most one group.
22928
22929 2009-12-09  Simon Josefsson <simon@josefsson.org>
22930             Bruno Haible  <bruno@clisp.org>
22931
22932         * build-aux/link-warning.h: Add copyright notice.
22933         * modules/link-warning (Makefile.am): Generate link-warning.h from
22934         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
22935         * NEWS: Mention change in link-warning module.
22936         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
22937         * modules/dirent (Makefile.am): Add dependency to dirent.h.
22938         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
22939         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
22940         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
22941         * modules/math (Makefile.am): Add dependency to math.h.
22942         * modules/search (Makefile.am): Add dependency to search.h.
22943         * modules/signal (Makefile.am): Add dependency to signal.h.
22944         * modules/spawn (Makefile.am): Add dependency to spawn.h.
22945         * modules/stdio (Makefile.am): Add dependency to stdio.h.
22946         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
22947         * modules/string (Makefile.am): Add dependency to string.h.
22948         * modules/strings (Makefile.am): Add dependency to strings.h.
22949         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
22950         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
22951         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
22952         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
22953         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
22954         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
22955         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
22956         * modules/unistd (Makefile.am): Add dependency to unistd.h.
22957         * modules/wchar (Makefile.am): Add dependency to wchar.h.
22958
22959 2009-12-09  Bruno Haible  <bruno@clisp.org>
22960
22961         fchdir: Optimize away rpl_fstat when possible.
22962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
22963         REPLACE_OPEN_DIRECTORY.
22964         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
22965
22966 2009-12-09  Bruno Haible  <bruno@clisp.org>
22967
22968         * lib/fchdir.c: Update comment.
22969
22970 2009-12-09  Bruno Haible  <bruno@clisp.org>
22971
22972         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
22973
22974 2009-12-08  Eric Blake  <ebb9@byu.net>
22975
22976         fchdir: avoid memory leak on re-registration.
22977         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
22978
22979 2009-12-08  Jim Meyering  <meyering@redhat.com>
22980
22981         init.sh: avoid Solaris 10 /bin/sh portability problem
22982         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22983         sourced script:
22984           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22985           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22986           bar
22987         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22988         and two tests used that idiom.
22989         * tests/init.sh: Update suggested usage comments.
22990         (path_prepend_): New function, to be used in place
22991         of the --src-path=DIR option.
22992         (setup_): Move PATH-prepending code into path_prepend_.
22993         * tests/test-pread.sh: Adapt to new usage.
22994         * tests/test-xalloc-die.sh: Likewise.
22995
22996 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22997
22998         * doc/gnulib.texi (Glibc pty.h): Add.
22999         * doc/glibc-functions/forkpty.texi: Add.
23000         * doc/glibc-functions/openpty.texi: Add.
23001         Suggested by Bruno Haible.
23002
23003 2009-12-08  Eric Blake  <ebb9@byu.net>
23004
23005         fchdir: fix logic bugs
23006         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23007         * tests/test-fchdir.c (main): Enhance test.
23008         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23009         is in use.
23010
23011         dup2: fix logic bugs
23012         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23013         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23014         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23015         exists.
23016         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23017
23018 2009-12-07  Eric Blake  <ebb9@byu.net>
23019
23020         unlink: fix m4 detection
23021         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23022
23023         unistd-safer: add unit test
23024         * modules/unistd-safer-tests: New file.
23025         * tests/test-dup-safer.c: Likewise.
23026         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23027         * tests/test-dup2.c (setmode): Likewise.
23028         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23029
23030         cloexec: preserve text vs. binary across dup_cloexec
23031         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23032         mode.
23033         * modules/dup2-tests (Depends-on): Add binary-io.
23034         * modules/cloexec-tests (Depends-on): Likewise.
23035         * tests/test-dup2.c (setmode, is_mode): New helpers.
23036         (main): Add tests that translation mode is preserved.
23037         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23038         Reported by Bruno Haible.
23039
23040         mgetgroups: reduce duplicate listings
23041         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23042         resulting array.
23043         * tests/test-chown.h (test_chown): Simplify client.
23044         * tests/test-lchown.h (test_lchown): Likewise.
23045
23046 2009-12-06  Bruno Haible  <bruno@clisp.org>
23047
23048         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23049         value.
23050
23051 2009-12-06  Bruno Haible  <bruno@clisp.org>
23052
23053         * lib/progname.c: Include stdio.h, stdlib.h.
23054         (set_program_name): Reject a NULL argument.
23055
23056 2009-12-05  Eric Blake  <ebb9@byu.net>
23057
23058         pipe2-safer: new module
23059         * modules/pipe2-safer: New file.
23060         * lib/unistd-safer.h (pipe2_safer): New prototype.
23061         * lib/unistd--.h (pipe2): New wrapper.
23062         * lib/pipe-safer.c (pipe2_safer): New function.
23063         * modules/pipe (Depends-on): Add pipe2-safer.
23064         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23065
23066         stdlib-safer: preserve cloexec flag for mkostemp[s]
23067         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23068         fd_safer_flag.
23069
23070         unistd-safer: allow preservation of cloexec status via flag
23071         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23072         prototypes.
23073         * lib/dup-safer.c (dup_safer_flag): New function.
23074         * lib/fd-safer.c (fd_safer_flag): Likewise.
23075         * modules/cloexec (configure.ac): Set witness.
23076
23077         test-dup2: enhance test
23078         * modules/dup2-tests (Depends-on): Add cloexec.
23079         * tests/test-dup2.c (main): Enhance test.
23080
23081         cloexec: add dup_cloexec
23082         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23083         header and comments.
23084         * lib/cloexec.c (set_cloexec_flag): Add comments.
23085         (dup_cloexec): New function, with mingw implementation borrowed
23086         from...
23087         * lib/w32spawn.h (dup_noinherit): ...here.
23088         * modules/execute (Depends-on): Add cloexec.
23089         * modules/pipe (Depends-on): Likewise.
23090         * modules/cloexec (Depends-on): Add dup2.
23091         * modules/cloexec-tests (Files): New file.
23092         * tests/test-cloexec.c: Likewise.
23093
23094         test-xalloc-die: fix test for mingw
23095         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23096         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23097         directory and .exe suffix off argv[0] output.
23098
23099         test-fseeko: fix test for mingw
23100         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23101         than undefining fseek, so test will pass on mingw.
23102
23103 2009-12-05  Bruno Haible  <bruno@clisp.org>
23104
23105         * lib/progname.h (set_program_name): Clarify specification.
23106         * lib/progname.c (set_program_name): Likewise.
23107         Reported by Jim Meyering.
23108
23109 2009-12-05  Jim Meyering  <meyering@redhat.com>
23110
23111         maint.mk: backslash-escape parens in default regexp
23112         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23113         backslash-escape the literal parentheses.
23114
23115         maint.mk: news-date-check: use grep -E
23116         * top/maint.mk (today): Define a Make variable, not a...
23117         (news-date-check): ...shell variable.
23118         (news-date-regexp): Use the Make variable.
23119         Use grep's -E option.  Change the failing diagnostic to mention
23120         the variable, $(news-date-regexp).
23121
23122 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23123
23124         maintainer-makefile: allow customization of NEWS entry format
23125         * top/maint.mk (news-date-regexp): New overridable variable.
23126         (news-date-check): Use it.
23127
23128 2009-12-04  Eric Blake  <ebb9@byu.net>
23129
23130         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23131         * lib/mgetgroups.h (xgetgroups): New prototype.
23132         * lib/mgetgroups.c (xgetgroups): New wrapper.
23133         (mgetgroups): Handle ENOSYS.
23134         * modules/mgetgroups (Depends-on): Add realloc.
23135         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23136
23137         mgetgroups: avoid argument promotion issues with -1
23138         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23139         for invalid gid_t.
23140         * tests/test-chown.h (getegid, test_chown): Likewise.
23141         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23142
23143 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23144
23145         exclude: Fix header file problems.
23146         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23147
23148 2009-12-01  Jim Meyering  <meyering@redhat.com>
23149
23150         fts: fts_open: do not let an empty string cause immediate failure
23151         This is required in support of GNU rm, for which the command
23152         "rm A '' B" must process and remove both A and B, in spite of
23153         the empty string argument.
23154         * lib/fts.c (fts_open): Do not let the presence of an empty string
23155         cause fts_open to fail immediately.  Most fts-using tools must be
23156         able to process all arguments, in order, and can be expected to
23157         diagnose such arguments themselves.
23158
23159 2009-11-30  Eric Blake  <ebb9@byu.net>
23160
23161         utimens: fix compilation error
23162         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23163         Declare variable at right scope.
23164
23165 2009-11-29  Jim Meyering  <meyering@redhat.com>
23166
23167         bootstrap: handle perl-5.11's changed --version output
23168         * build-aux/bootstrap (get_version): Handle perl separately,
23169         since perl-5.11's --version output is different.
23170
23171 2009-11-28  Jim Meyering  <meyering@redhat.com>
23172
23173         userspec: depend on the inttostr module, too
23174         * modules/userspec (Depends-on): Add inttostr.
23175
23176         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23177         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23178         number of MAXUID when it evaluates to (uid_t) -1.
23179         Likewise for group ID.  Reported by Matt McCutchen in
23180         <http://savannah.gnu.org/bugs/?28113>
23181
23182         userspec: reformat to use spaces, not TABs
23183         * lib/userspec.c: Expand TABs to spaces.
23184         Add Emacs' "indent-tabs-mode: nil" hint.
23185
23186 2009-11-27  Eric Blake  <ebb9@byu.net>
23187
23188         getopt-gnu: flush out another BSD bug
23189         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23190         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23191         flush out BSD bug.
23192         * tests/test-getopt.h (test_getopt): End lists with NULL.
23193         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23194         (test_getopt_long_posix): Enhance test.
23195         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23196         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23197         getopt-gnu.
23198         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23199         Likewise.
23200
23201 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23202
23203         * modules/idpriv-droptemp-tests (Notice): Fix text.
23204
23205 2009-11-27  Jim Meyering  <meyering@redhat.com>
23206
23207         test-xalloc-die: avoid spurious failure due to libtool argv difference
23208         In a libtool-enabled project, this test would fail due to a difference
23209         in the emitted program name, e.g.,
23210         -test-xalloc-die: memory exhausted
23211         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23212         Use program to avoid that.
23213         * modules/xalloc-die-tests (Depends-on): Add progname.
23214         * tests/test-xalloc-die.c: Include progname.h".
23215         (program_name): Remove decl.
23216         (main): Call set_program_name.
23217         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23218
23219 2009-11-26  Richard Jones  <rjones@redhat.com>
23220
23221         w32sock: leave win32 error in place.
23222         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23223
23224 2009-11-26  Eric Blake  <ebb9@byu.net>
23225
23226         init.sh: suggest to use skip_ and fail_ functions in comments
23227         * tests/init.sh: Add a sentence.
23228
23229 2009-11-25  Bruno Haible  <bruno@clisp.org>
23230
23231         init.sh: add documentation in comments
23232         * tests/init.sh: Add some developer and user documentation.
23233
23234 2009-11-26  Jim Meyering  <meyering@redhat.com>
23235
23236         init.sh: accommodate even those who specify bogus srcdir manually
23237         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23238         configure-time tests to be sanitized, so that there is no need to
23239         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23240         (with no double quotes) suffices.  However, since tests may be
23241         invoked manually, and since you may explicitly set srcdir to the
23242         name of a directory containing spaces, do quote its uses here.
23243         * tests/test-pread.sh: Likewise.
23244         Suggested by Bruno Haible.
23245
23246         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23247         * tests/test-pread.sh: Write no data into the pipe, because
23248         test-pread actually reads none.  This avoids a diagnostic,
23249         "bash: echo: write error: Broken pipe", that arises in the unusual
23250         event something is ignoring SIGPIPE, and might be interpreted
23251         as some sort of failure.  Reported by Bruno Haible.
23252
23253 2009-11-25  Jim Meyering  <meyering@redhat.com>
23254
23255         test-pread: cover failure with ESPIPE and EINVAL
23256         * tests/test-pread.c (main): Test for failure, too.
23257         * tests/test-pread.sh: Invoke with stdin on a pipe.
23258         Suggested by Eric Blake.
23259
23260         pread: improvement and fix
23261         * modules/pread (Depends-on): Depend on lseek, for portability to
23262         e.g., mingw.  Suggested by Eric Blake.
23263         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23264
23265         unistd.in.h: correct declaration of pread
23266         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23267         Reported by Richard W.M. Jones.
23268
23269         test-pread.sh: distribute the test script
23270         * modules/pread-tests (Files): Include test-pread.sh.
23271
23272         test-pread.sh: clean up
23273         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23274         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23275         That is unnecessary, since it's always ".".
23276         Suggestion from Eric Blake.
23277
23278         test-pread.sh: make executable
23279         * tests/test-pread.sh: Set executable bit.
23280         Reported by Eric Blake.
23281
23282         correct typo in test-pread.sh
23283         * tests/test-pread.sh: Add #! line.
23284
23285         test pread
23286         * tests/test-pread.c: New file.
23287         * tests/test-pread.sh: Likewise.
23288         * modules/pread-tests: Likewise.
23289
23290         pread: new module
23291         * modules/pread: New file.
23292         * lib/unistd.in.h (pread): Define/declare.
23293         * lib/pread.c (pread): New file.
23294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23295         * modules/unistd (Makefile.am): Substitute witnesses.
23296         * doc/posix-functions/pread.texi (pread): Update.
23297         * MODULES.html.sh: Add pread.
23298
23299 2009-11-25  Jim Meyering  <meyering@redhat.com>
23300
23301         tests/init.sh: new file to be used via most *.sh tests
23302         * tests/init.sh: New file.
23303
23304 2009-11-25  Eric Blake  <ebb9@byu.net>
23305
23306         utimens: work around older Linux failure with symlinks
23307         * lib/utimens.c (lutimensat_works_really): New variable.
23308         (fdutimens, lutimens): Use it to manage kernels that support
23309         nanosecond times on files, but not on symlinks.
23310         Reported by OndÅ™ej Vašík.
23311
23312         utimes: fix configure grammar
23313         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23314
23315 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23316
23317         regex: Fix fastmap for multibyte character ranges.
23318         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23319         characters when a multibyte character range is included.
23320
23321 2009-11-22  Andy Wingo  <wingo@pobox.com>
23322
23323         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23324         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23325
23326 2009-11-24  Bruno Haible  <bruno@clisp.org>
23327
23328         doc: Most *_l functions exist in MacOS X 10.5.
23329         * doc/posix-functions/duplocale.texi: Update platforms list.
23330         * doc/posix-functions/freelocale.texi: Likewise.
23331         * doc/posix-functions/newlocale.texi: Likewise.
23332         * doc/posix-functions/uselocale.texi: Likewise.
23333         * doc/posix-functions/isalnum_l.texi: Likewise.
23334         * doc/posix-functions/isalpha_l.texi: Likewise.
23335         * doc/posix-functions/isblank_l.texi: Likewise.
23336         * doc/posix-functions/iscntrl_l.texi: Likewise.
23337         * doc/posix-functions/isdigit_l.texi: Likewise.
23338         * doc/posix-functions/isgraph_l.texi: Likewise.
23339         * doc/posix-functions/islower_l.texi: Likewise.
23340         * doc/posix-functions/isprint_l.texi: Likewise.
23341         * doc/posix-functions/ispunct_l.texi: Likewise.
23342         * doc/posix-functions/isspace_l.texi: Likewise.
23343         * doc/posix-functions/isupper_l.texi: Likewise.
23344         * doc/posix-functions/iswalnum_l.texi: Likewise.
23345         * doc/posix-functions/iswalpha_l.texi: Likewise.
23346         * doc/posix-functions/iswblank_l.texi: Likewise.
23347         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23348         * doc/posix-functions/iswctype_l.texi: Likewise.
23349         * doc/posix-functions/iswdigit_l.texi: Likewise.
23350         * doc/posix-functions/iswgraph_l.texi: Likewise.
23351         * doc/posix-functions/iswlower_l.texi: Likewise.
23352         * doc/posix-functions/iswprint_l.texi: Likewise.
23353         * doc/posix-functions/iswpunct_l.texi: Likewise.
23354         * doc/posix-functions/iswspace_l.texi: Likewise.
23355         * doc/posix-functions/iswupper_l.texi: Likewise.
23356         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23357         * doc/posix-functions/isxdigit_l.texi: Likewise.
23358         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23359         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23360         * doc/posix-functions/strcoll_l.texi: Likewise.
23361         * doc/posix-functions/strfmon_l.texi: Likewise.
23362         * doc/posix-functions/strftime_l.texi: Likewise.
23363         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23364         * doc/posix-functions/strxfrm_l.texi: Likewise.
23365         * doc/posix-functions/tolower_l.texi: Likewise.
23366         * doc/posix-functions/toupper_l.texi: Likewise.
23367         * doc/posix-functions/towctrans_l.texi: Likewise.
23368         * doc/posix-functions/towlower_l.texi: Likewise.
23369         * doc/posix-functions/towupper_l.texi: Likewise.
23370         * doc/posix-functions/wcscoll_l.texi: Likewise.
23371         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23372         * doc/posix-functions/wctrans_l.texi: Likewise.
23373         * doc/posix-functions/wctype_l.texi: Likewise.
23374         * doc/glibc-functions/strptime_l.texi: Likewise.
23375         * doc/glibc-functions/strtod_l.texi: Likewise.
23376         * doc/glibc-functions/strtof_l.texi: Likewise.
23377         * doc/glibc-functions/strtol_l.texi: Likewise.
23378         * doc/glibc-functions/strtold_l.texi: Likewise.
23379         * doc/glibc-functions/strtoll_l.texi: Likewise.
23380         * doc/glibc-functions/strtoul_l.texi: Likewise.
23381         * doc/glibc-functions/strtoull_l.texi: Likewise.
23382         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23383         * doc/glibc-functions/wcstod_l.texi: Likewise.
23384         * doc/glibc-functions/wcstof_l.texi: Likewise.
23385         * doc/glibc-functions/wcstol_l.texi: Likewise.
23386         * doc/glibc-functions/wcstold_l.texi: Likewise.
23387         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23388         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23389         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23390
23391 2009-11-24  Bruno Haible  <bruno@clisp.org>
23392
23393         duplocale: Fix logic bug.
23394         * lib/duplocale.c: Don't include <langinfo.h>.
23395         (_NL_LOCALE_NAME): Remove macro.
23396         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23397         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23398
23399 2009-11-23  Jim Meyering  <meyering@redhat.com>
23400
23401         test-update-copyright: don't hard-code /usr/bin/perl
23402         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23403         perl to print the current year.  Gilles Espinasse reported that
23404         the replaced use of perl was hard-coded as /usr/bin/perl.
23405
23406 2009-11-23  Bruno Haible  <bruno@clisp.org>
23407
23408         duplocale: Add support for glibc 2.3.x.
23409         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23410
23411 2009-11-22  Bruno Haible  <bruno@clisp.org>
23412
23413         vasnprintf: Tiny optimization.
23414         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23415         MacOS X.
23416
23417 2009-11-22  Bruno Haible  <bruno@clisp.org>
23418
23419         Tests for module 'duplocale'.
23420         * modules/duplocale-tests: New file.
23421         * tests/test-duplocale.c: New file.
23422
23423         New module 'duplocale'.
23424         * m4/duplocale.m4: New file.
23425         * lib/locale.in.h (duplocale): New declaration.
23426         * lib/duplocale.c: New file.
23427         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23428         gl_LOCALE_H_DEFAULTS): New macros.
23429         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23430         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23431         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23432         REPLACE_DUPLOCALE.
23433         * modules/duplocale: New file.
23434         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23435
23436 2009-11-22  Bruno Haible  <bruno@clisp.org>
23437
23438         * modules/locale-tests (configure.ac): Test for newlocale function.
23439         * tests/test-locale.c: When the system has extended locale functions,
23440         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23441
23442         locale: Make locale_t available when possible.
23443         * lib/locale.in.h: Include <xlocale.h> when it exists.
23444         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23445         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23446         * modules/locale (Depends-on): Add extensions.
23447         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23448         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23449
23450 2009-11-22  Bruno Haible  <bruno@clisp.org>
23451
23452         Add comments.
23453         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23454         invocation.
23455         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23456         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23457         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23458
23459 2009-11-22  Bruno Haible  <bruno@clisp.org>
23460
23461         error: account for the possibility of freopen (stdout).
23462         * lib/error.c: Include <unistd.h>.
23463         (flush_stdout): New function, extracted from error and error_at_line.
23464         Determine stdout's fd dynamically.
23465         (error, error_at_line): Invoke flush_stdout.
23466         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
23467         * modules/error (Depends-on): Add unistd.
23468
23469 2009-11-22  Bruno Haible  <bruno@clisp.org>
23470
23471         diffseq: Add comment.
23472         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
23473
23474 2009-11-22  Jim Meyering  <meyering@redhat.com>
23475
23476         c-stack: avoid defining an unused static function
23477         * lib/c-stack.c (find_stack_direction): Do not define this function
23478         when it will not be used.
23479
23480         diffseq: avoid spurious gcc warnings
23481         * lib/diffseq.h (IF_LINT2): Define.
23482         (compareseq): Use it to initialize two members of "part".
23483         This avoids two used-uninitialized warnings.
23484
23485 2009-11-21  Jim Meyering  <meyering@redhat.com>
23486
23487         c-stack: avoid "ignoring return value of `write'" warning
23488         * lib/c-stack.c: Include "ignore-value.h".
23489         (die): Explicitly ignore each write return value.
23490         * modules/c-stack (Depends-on): Add ignore-value.
23491
23492 2009-11-21  Bruno Haible  <bruno@clisp.org>
23493
23494         diffseq: reduce scope of variable 'best'.
23495         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
23496         variable, earlier used for two different purposes.
23497
23498 2009-11-21  Jim Meyering  <meyering@redhat.com>
23499
23500         diffseq: remove useless assignment to "best"
23501         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
23502         assignment.  At that point "best" is already guaranteed to be zero.
23503
23504 2009-11-20  Eric Blake  <ebb9@byu.net>
23505
23506         build: mention ftp redirector in release announcements
23507         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
23508         values that used to come from cfg.mk; mention FTP redirect URL.
23509         * build-aux/announce-gen: Mention the mirror list.
23510         Suggested by Karl Berry.
23511
23512         nanosleep: improve port to mingw
23513         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
23514         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
23515         LIB_NANOSLEEP, but only when needed.
23516         * modules/select (Link): Document LIBSOCKET.
23517         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
23518         enough.
23519
23520         nanosleep: work around cygwin bug
23521         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
23522         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
23523         bug.
23524         (getnow): Delete, not needed.
23525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
23526         LIB_CLOCK_GETTIME.
23527         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
23528         clock-time, gettime.
23529         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
23530         bug.
23531         * modules/nanosleep-tests: New test.
23532         * tests/test-nanosleep.c: New file.
23533
23534         sleep: work around cygwin bug
23535         * lib/sleep.c (rpl_sleep): Work around the bug.
23536         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
23537         (gl_PREREQ_SLEEP): Delete unused macro.
23538         * modules/sleep (Depends-on): Add verify.
23539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23540         * modules/unistd (Makefile.am): Substitute witness.
23541         * lib/unistd.in.h (sleep): Update prototype.
23542         * doc/posix-functions/sleep.texi (sleep): Document the bug.
23543         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
23544         * modules/sleep-tests (Depends-on): Check for alarm.
23545
23546 2009-11-20  Jim Meyering  <meyering@redhat.com>
23547
23548         maint.mk: improve sc_prohibit_magic_number_exit
23549         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
23550         so it does not match uses like System.exit(1).
23551         Add comments showing how to correct all offenders.
23552
23553 2009-11-19  Eric Blake  <ebb9@byu.net>
23554
23555         xalloc-die-tests: add missing library
23556         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
23557
23558         test-xvasprintf: silence compiler warnings
23559         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
23560         empty string from gcc.
23561
23562 2009-11-19  Jim Meyering  <meyering@redhat.com>
23563
23564         xfreopen: new module, from coreutils
23565         * modules/xfreopen: New module.
23566         * lib/xfreopen.c: New file.
23567         * lib/xfreopen.h: New file.
23568         * MODULES.html.sh (File stream based Input/Output"): Add it.
23569
23570 2009-11-19  Eric Blake  <ebb9@byu.net>
23571
23572         manywarnings: depend on warnings
23573         * modules/manywarnings (Depends-on): Add warnings.
23574
23575         build: avoid compiler warnings
23576         * lib/select.c (rpl_select): Delete unused variable.
23577         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
23578
23579 2009-11-18  Eric Blake  <ebb9@byu.net>
23580
23581         tests: avoid false negative with --with-packager
23582         * tests/test-version-etc.sh: Discard packager information.
23583         * tests/test-argp-version-etc-1.sh: Likewise.
23584         Reported by Mike Frysinger.
23585
23586         utimens: fix regression on Solaris
23587         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
23588         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
23589         can only change fd timestamps via futimesat.  Instead, use an
23590         additional witness macro to avoid BSD bug.
23591         Reported by Jim Meyering.
23592
23593 2009-11-17  Eric Blake  <ebb9@byu.net>
23594
23595         usleep: use it to simplify tests
23596         * modules/stat-time-tests (Depends-on): Add usleep.
23597         (configure.ac): Drop usleep check.
23598         * modules/chown-tests (Depends-on, configure.ac): Likewise.
23599         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
23600         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
23601         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
23602         * modules/openat-tests (Depends-on, configure.ac): Likewise.
23603         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
23604         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
23605         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
23606         Likewise.
23607         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
23608         * tests/test-lchown.h (nap): Likewise.
23609         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
23610         * tests/test-stat-time.c (nap): Likewise.
23611         * tests/test-utimens-common.h (nap): Update comments.
23612
23613         usleep: new module
23614         * modules/usleep: New file.
23615         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23616         * lib/usleep.c (usleep): Likewise.
23617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23618         * modules/unistd (Makefile.am): Substitute witnesses.
23619         * lib/unistd.in.h (usleep): Add declaration.
23620         * doc/pastposix-functions/usleep.texi (usleep): Document this.
23621         * MODULES.html.sh (Date and time): Likewise.
23622         * modules/usleep-tests (Depends-on): New test.
23623         * tests/test-usleep.c: New file.
23624
23625         chown: work around OpenBSD bug
23626         * lib/chown.c (rpl_chown): Work around the bug.
23627         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
23628         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
23629         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
23630         * modules/chown (Depends-on): Add stdbool.
23631         * modules/lchown (Depends-on): Likewise.
23632         * doc/posix-functions/chown.texi (chown): Document the bug.
23633         * doc/posix-functions/lchown.texi (lchown): Likewise.
23634         * tests/test-lchown.h (test_chown): Relax test.
23635
23636         mkstemp: avoid conflict with C++ keyword template
23637         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23638         * lib/mkostemp.c (mkostemp): Likewise.
23639         * lib/mkostemps.c (mkostemps): Likewise.
23640         * lib/mkstemp.c (mkstemp): Likewise.
23641         * lib/mkstemps.c (mkstemps): Likewise.
23642
23643         xalloc-die-tests: optimize
23644         * tests/test-xalloc-die.sh: Reduce number of processes.
23645
23646 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23647
23648         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23649         patch from ludo@gnu.org (Ludovic Courtès).
23650
23651 2009-11-17  Jim Meyering  <meyering@redhat.com>
23652
23653         version-etc: use proper license string
23654         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23655         * modules/version-etc-fsf: Likewise.
23656
23657 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23658
23659         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23660         printed to stdout.  Deal with EOL differences.
23661
23662 2009-11-17  Eric Blake  <ebb9@byu.net>
23663
23664         unsetenv: work around Solaris bug
23665         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23666         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23667         Reported by Jim Meyering.
23668
23669         vasnprintf: avoid compiler warnings
23670         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23671         variables.
23672         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23673
23674 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23675
23676         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23677         settings since xalloc-die is no longer the self test,
23678         xalloc-die.sh is.
23679
23680 2009-11-17  Jim Meyering  <meyering@redhat.com>
23681
23682         test-xalloc-die.sh: make the code agree with the commit log
23683         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23684         at the end, just in case you happen to have a test-xalloc-die
23685         program in some other PATH directory.
23686
23687         test-xalloc-die.sh: fix a portability bug
23688         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23689         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23690         Otherwise, argv[0] (as often seen in diagnostics) would be too
23691         system-dependent, sometimes with, and sometimes without the leading "./".
23692
23693         version-etc-fsf: relax license to LGPLv3+
23694         * modules/version-etc-fsf (License): Relax license.
23695
23696 2009-11-16  Eric Blake  <ebb9@byu.net>
23697
23698         xalloc-die-tests: avoid printing null pointer
23699         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23700         shell script.
23701         * tests/test-xalloc-die.c (program_name): Declare.
23702         * tests/test-xalloc-die.sh (tmpfiles): New file.
23703
23704         setenv, unsetenv: work around various bugs
23705         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23706         (setenv) [HAVE_SETENV]: Work around bugs.
23707         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23708         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23709         for bugs.
23710         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23711         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23713         * modules/stdlib (Makefile.am): Update substitutions.
23714         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23715         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23716         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23717         * modules/setenv-tests: New test.
23718         * modules/unsetenv-tests: Likewise.
23719         * tests/test-setenv.c: New file.
23720         * tests/test-unsetenv.c: Likewise.
23721
23722 2009-11-16  Jim Meyering  <meyering@redhat.com>
23723
23724         version-etc: relax license to LGPLv3+
23725         * modules/version-etc (License): Relax license.
23726
23727         better AC_REQUIRE expanded-before-required-warning avoidance
23728         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23729         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23730         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23731         which is no longer needed.
23732
23733 2009-11-16  Eric Blake  <ebb9@byu.net>
23734
23735         test-freading: clean up temporary file
23736         * tests/test-freading.c (main): Remove file on success, and use
23737         ASSERT more liberally.
23738         Reported by Jim Meyering.
23739
23740 2009-11-16  Jim Meyering  <meyering@redhat.com>
23741
23742         avoid new AC_REQUIRE expanded-before-required warnings
23743         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
23744         merely using it.
23745         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
23746         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
23747
23748 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23749
23750         * tests/test-xalloc-die.c: New file.
23751         * modules/xalloc-die-tests: New file.
23752         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
23753         XFAIL_TESTS so it can be appended by modules.
23754
23755 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23756
23757         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
23758         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
23759
23760 2009-11-14  Eric Blake  <ebb9@byu.net>
23761
23762         fnmatch: avoid compiler warning
23763         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
23764         to silence compiler warning about mismatch signedness in ?:.
23765         Reported by Robert Millan.
23766
23767         intprops: add double-inclusion guard
23768         * lib/intprops.h: Allow idempotent includes.
23769         Suggested by Bruce Korb.
23770
23771         openat: detect Solaris fchownat bug
23772         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
23773         penalizing glibc chownat when only lchownat is broken.
23774         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
23775         trailing slash bugs.
23776         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
23777         * modules/openat-tests (Files): Include more files.
23778         (Depends-on): Add mgetgroups, sleep, stat-time.
23779         (configure.ac): Add additional checks.
23780         (Makefile.am): Build new test.
23781         * tests/test-fchownat.c: New file.
23782
23783         lchown: detect Solaris and FreeBSD bug
23784         * lib/lchown.c (rpl_lchown): Work around bug.
23785         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
23786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23787         * modules/unistd (Makefile.am): Populate it.
23788         * lib/unistd.in.h (lchown): Update declaration.
23789         * doc/posix-functions/lchown.texi (lchown): Document the bug.
23790         * modules/lchown-tests: New file.
23791         * tests/test-lchown.h (test_lchown): Likewise.
23792         * tests/test-lchown.c (main): Likewise.
23793
23794         chown: detect Solaris and FreeBSD bug
23795         * lib/chown.c (rpl_chown): Work around bug.
23796         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
23797         (gl_PREREQ_CHOWN): Delete.
23798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23799         * modules/unistd (Makefile.am): Populate it.
23800         * lib/unistd.in.h (chown): Update declaration.
23801         * lib/lchown.c (chown): Update client.
23802         * modules/lchown (Depends-on): Add lstat.
23803         * doc/posix-functions/chown.texi (chown): Document the bug.
23804         * doc/posix-functions/getgroups.texi (getgroups): Document
23805         getgroups pitfall.
23806         * modules/chown-tests: New file.
23807         * tests/test-chown.h (test_chown): Likewise.
23808         * tests/test-chown.c (main): Likewise.
23809
23810 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
23811
23812         gnulib-tool: correctly detect absence of m4 directories
23813         * gnulib-tool: Avoid extra newline on data passed to wc -l.
23814
23815 2009-11-14  Jim Meyering  <meyering@redhat.com>
23816
23817         maint.mk: Prohibit inclusion of "xalloc.h" without use.
23818         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23819
23820 2009-11-14  John W. Eaton  <jwe@gnu.org>
23821
23822         strftime.h: wrap funtion declaration in extern "C" block
23823         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
23824
23825 2009-11-13  Eric Blake  <ebb9@byu.net>
23826
23827         getgroups: avoid compiler warning
23828         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
23829
23830         getgroups: work around FreeBSD bug
23831         * lib/getgroups.c (rpl_getgroups): Work around the bug.
23832         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
23833         * doc/posix-functions/getgroups.texi (getgroups): Document it.
23834         * tests/test-getgroups.c (main): Fix buffer overrun.
23835
23836         getgroups: avoid compilation failure
23837         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
23838         * modules/getgroups (Depends-on): Add stdint.
23839
23840 2009-11-13  Jim Meyering  <meyering@redhat.com>
23841
23842         test-getgroups: avoid compilation failure
23843         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
23844
23845 2009-11-13  Eric Blake  <ebb9@byu.net>
23846
23847         mgetgroups: new module, taken from coreutils
23848         * modules/mgetgroups: New file.
23849         * lib/mgetgroups.h: Likewise.
23850         * lib/mgetgroups.c (mgetgroups): Likewise.
23851         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
23852         * MODULES.html.sh (Users and groups): Mention it.
23853
23854         getgroups: don't expose GETGROUPS_T to user
23855         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
23856         an element at a time if GETGROUPS_T is wrong size.
23857         * lib/getugroups.h (getugroups): Change signature.
23858         * lib/unistd.in.h (getgroups): Likewise.
23859         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
23860         signature needs fixing.
23861         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
23862         AC_TYPE_GETGROUPS.
23863         * modules/group-member (Depends-on): Add getgroups.
23864         * lib/group-member.c (group_info, get_group_info): Use gid_t.
23865         (group_member): Rely on getgroups replacement.
23866         * lib/getugroups.c (getugroups): Use gid_t.
23867         * tests/test-getgroups.c (main): Likewise.
23868         * NEWS: Mention the signature change.
23869         * doc/posix-functions/getgroups.texi (getgroups): Mention the
23870         problem with signature.
23871         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
23872         GETGROUPS_T is still useful for setgroups.
23873
23874         getgroups, getugroups: provide stubs for mingw
23875         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
23876         * lib/getugroups.c (getugroups): Likewise.
23877         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
23878         function.  Modernize replacement scheme.
23879         (gl_PREREQ_GETGROUPS): Delete.
23880         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
23881         * modules/getgroups (configure.ac): Declare witness.
23882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23883         * modules/unistd (Depends-on): Substitute witness.
23884         * lib/unistd.in.h (getgroups): Declare replacement.
23885
23886         getgroups: avoid calling exit
23887         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
23888         drop xalloc.
23889         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
23890         dependencies.
23891         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
23892         exiting, in the rare case of malloc failure.
23893
23894         getgroups: fix logic error
23895         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
23896         has more than 20 groups.
23897         * modules/getgroups-tests: New test.
23898         * tests/test-getgroups.c: New file.
23899
23900 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23901
23902         * tests/test-base64.c: Improve.
23903
23904 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23905
23906         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
23907         Blake <ebb9@byu.net>.
23908
23909 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23910
23911         * tests/test-xvasprintf.c: Add %s%s related checks.
23912
23913 2009-11-12  Eric Blake  <ebb9@byu.net>
23914
23915         version-etc: match standards.texi style
23916         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
23917         and use <> only for URLs.
23918
23919 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
23920
23921         fts: do not fail on a submount during traversal
23922         * lib/fts.c (fts_build): Read the stat info again after opening
23923         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
23924         Original report at http://bugzilla.redhat.com/501848.
23925
23926 2009-11-12  Jim Meyering  <meyering@redhat.com>
23927
23928         bootstrap: sync from coreutils
23929         * build-aux/bootstrap (bootstrap_epilogue): New function.
23930         Use git_modules_config in one more place.  This make bootstrap's
23931         --gnulib-srcdir option more useful for testing.
23932
23933         bootstrap: generalize autoheader check
23934         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
23935         AC_CONFIG_HEADERS.
23936
23937 2009-11-11  Eric Blake  <ebb9@byu.net>
23938
23939         mkfifoat: use new modules for Solaris and BSD bugs
23940         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
23941         * lib/mkfifoat.c (mknodat): Split...
23942         * lib/mknodat.c (mknodat): ...into new file.
23943         * modules/mkfifoat (Files): Ship new file.
23944         (Depends-on): Add mkfifo, mknod.
23945         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
23946         (Depends-on): Add symlink.
23947         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
23948         redundant with test_mkfifo.h.
23949         (do_mkfifoat, do_mknodat): New helpers.
23950
23951         mknod: new module
23952         * modules/mknod: New file.
23953         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
23954         * lib/mknod.c (mknod): Likewise.
23955         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23956         defaults.
23957         * modules/sys_stat (Makefile.am): Substitute them.
23958         * lib/sys_stat.in.h (mknod): Declare replacement.
23959         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23960         Document it.
23961         * doc/posix-functions/mknod.texi (mknod): Likewise.
23962         * modules/mknod-tests: New test.
23963         * tests/test-mknod.c: Likewise.
23964
23965         mkfifo: new module
23966         * modules/mkfifo: New file.
23967         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23968         * lib/mkfifo.c (mkfifo): Likewise.
23969         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23970         defaults.
23971         * modules/sys_stat (Makefile.am): Substitute them.
23972         * lib/sys_stat.in.h (mkfifo): Declare replacement.
23973         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23974         Document it.
23975         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
23976         * modules/mkfifo-tests: New test.
23977         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
23978         from test-mkfifoat.c.
23979         * tests/test-mkfifo.c: New file.
23980
23981         readlink: detect FreeBSD bug
23982         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23983         slash on symlink.
23984         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23985         * tests/test-readlink.h (test_readlink): Enhance test.
23986
23987         symlink: detect FreeBSD bug
23988         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23989         slash on symlink.
23990         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23991         * tests/test-symlink.h (test_symlink): Enhance test.
23992
23993 2009-11-10  Eric Blake  <ebb9@byu.net>
23994
23995         link: detect FreeBSD bug
23996         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23997         symlink.
23998         * doc/posix-functions/link.texi (link): Document the bug.
23999         * tests/test-link.h (test_link): Enhance test.
24000         * tests/test-linkat.c (main): Update caller.
24001
24002         unlink, remove: detect FreeBSD bug
24003         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24004         slash on symlink.
24005         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24006         * doc/posix-functions/remove.texi (remove): Likewise.
24007         * tests/test-unlink.h (test_unlink): Enhance test.
24008         * tests/test-remove.c (main): Likewise.
24009
24010 2009-11-09  Eric Blake  <ebb9@byu.net>
24011
24012         rename: detect FreeBSD bug
24013         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24014         slash on symlink.
24015         * modules/renameat-tests (Depends-on): Add filenamecat.
24016         * tests/test-rename.h (test_rename): Allow one more errno.
24017         * tests/test-renameat.c (main): Likewise.
24018         * doc/posix-functions/rename.texi (rename): Document the bug.
24019
24020         open: detect FreeBSD bug
24021         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24022         symlink.
24023         * doc/posix-functions/open.texi (open): Document the bug.
24024         * doc/posix-functions/utimes.texi (utimes): Likewise.
24025         * tests/test-open.h (test_open): Add parameters, and test symlink
24026         handling.
24027         * tests/test-open.c (main): Adjust caller.
24028         * tests/test-fcntl-safer.c (main): Likewise.
24029         * modules/open-tests (Depends-on): Add stdbool, symlink.
24030         * modules/fcntl-safer-tests (Depends-on): Likewise.
24031         * tests/test-openat.c (main): Add test-open tests.
24032
24033         stat: detect FreeBSD bug
24034         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24035         symlink.
24036         * doc/posix-functions/stat.texi (stat): Document the bug.
24037         * tests/test-stat.h (test_stat_func): Add argument.
24038         * tests/test-stat.c (main): Adjust caller.
24039         * tests/test-fstatat.c (main): Likewise.
24040         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24041         Reported by Jim Meyering.
24042
24043 2009-11-09  James Youngman  <jay@gnu.org>
24044
24045         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24046         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24047
24048 2009-11-08  Jim Meyering  <meyering@redhat.com>
24049
24050         utimens: remove invalid futimesat call
24051         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24052         It used the file descriptor of the target file as the DIR_FD
24053         parameter and NULL as the file name.  That caused failure with
24054         errno == EFAULT on FreeBSD-8.0-rc2
24055
24056 2009-11-07  Eric Blake  <ebb9@byu.net>
24057
24058         fflush, freadseek: use fseeko, not fseek
24059         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24060         (clear_ungetc_buffer): Avoid potential problems on large files.
24061         * lib/freadseek.c (freadseek): Likewise.
24062         * modules/freadseek (Depends-on): Add fseeko.
24063         * modules/fseek (configure.ac): Set a witness.
24064         * tests/test-fflush.c (main): Use fseeko.
24065         * tests/test-fpurge.c (fseek): Disable link warning.
24066         * tests/test-freadable.c (fseek): Likewise.
24067         * tests/test-freading.c (fseek): Likewise.
24068         * tests/test-fseeko.c (fseek): Likewise.
24069         * tests/test-ftell.c (fseek): Likewise.
24070         * tests/test-ftello.c (fseek): Likewise.
24071         * tests/test-fwritable.c (fseek): Likewise.
24072         * tests/test-fwriting.c (fseek): Likewise.
24073
24074 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24075
24076         * modules/memchr (Depends-on): Drop getpagesize dependency.
24077
24078 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24079
24080         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24081         Reported by Ludovic Courtès.
24082         * build-aux/pmccabe2html: Improve example usage.
24083         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24084
24085 2009-11-06  Jim Meyering  <meyering@redhat.com>
24086
24087         do-release-commit-and-tag: New module.
24088         Automate the release-commit and tag process.
24089         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24090         * modules/do-release-commit-and-tag: New file.
24091         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24092
24093 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24094
24095         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24096         because test-select.c uses inet_pton.
24097
24098 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24099
24100         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24101         GETADDRINFO_LIB.  Bump serial number.
24102         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24103         Suggested by Eric Blake <ebb9@byu.net>.
24104
24105 2009-11-05  Eric Blake  <ebb9@byu.net>
24106
24107         strtod: detect darwin bug
24108         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24109         Reported by Leo Davis.
24110
24111         freopen-safer: new module
24112         * modules/freopen-safer: New module.
24113         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24114         * lib/freopen-safer.c (freopen_safer): New file.
24115         * lib/stdio-safer.h (freopen_safer): New declaration.
24116         * lib/stdio--.h (freopen): New override.
24117         * MODULES.html.sh (File stream based Input/Output): Mention it.
24118         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24119         freopen-safer module.
24120         * doc/posix-functions/stderr.texi (stderr): Likewise.
24121         * doc/posix-functions/stdin.texi (stdin): Likewise.
24122         * doc/posix-functions/stdout.texi (stdout): Likewise.
24123         * modules/freopen-safer-tests: New test.
24124         * tests/test-reopen-safer.c: New file.
24125
24126 2009-11-05  Jim Meyering  <meyering@redhat.com>
24127
24128         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24129         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24130
24131 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24132
24133         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24134
24135 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24136
24137         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24138
24139 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24140
24141         Fix link error.
24142         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24143         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24144
24145 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24146
24147         * tests/test-func.c: Also test value of __func__.
24148
24149 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24150
24151         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24152         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24153
24154 2009-11-05  Bruno Haible  <bruno@clisp.org>
24155
24156         Fix link error.
24157         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24158         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24159         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24160
24161 2009-11-05  Bruno Haible  <bruno@clisp.org>
24162
24163         Tests for module 'inet_pton'.
24164         * modules/inet_pton-tests: New file.
24165         * tests/test-inet_pton.c: New file.
24166
24167 2009-11-05  Bruno Haible  <bruno@clisp.org>
24168
24169         Tests for module 'inet_ntop'.
24170         * modules/inet_ntop-tests: New file.
24171         * tests/test-inet_ntop.c: New file.
24172
24173 2009-11-04  Eric Blake  <ebb9@byu.net>
24174
24175         stdlib-safer: wrap all mkstemp variants
24176         * modules/mkostemp (configure.ac): Set witness.
24177         * modules/mkostemps (configure.ac): Likewise.
24178         * modules/mkstemps (configure.ac): Likewise.
24179         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24180         (mkstemps_safer): Wrap more functions.
24181         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24182         wrapping.
24183         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24184         (mkstemps_safer): Implement the wrappers.
24185
24186         mkstemps, mkostemps: new modules
24187         * modules/mkostemps: New module.
24188         * modules/mkstemps: Likewise.
24189         * lib/mkostemps.c (mkostemps): New file.
24190         * lib/mkstemps.c (mkstemps): Likewise.
24191         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24192         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24194         * modules/stdlib (Makefile.am): Substitute them.
24195         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24196         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24197         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24198         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24199         * MODULES.html.sh (File system functions): Mention them.
24200
24201         tempname: resync from glibc
24202         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24203         same values for __GT_FILE as glibc.  Abort even when assertions
24204         are disabled.
24205         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24206         match its value otherwise.  Allow idempotent inclusion.
24207         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24208         * lib/mkostemp.c (mkostemp): Likewise.
24209         * lib/mkstemp.c (mkstemp): Likewise.
24210         * lib/tmpfile.c (tmpfile): Likewise.
24211         * NEWS: Document this.
24212
24213         utimens: fix use of futimens on older Linux
24214         * lib/utimens.c (fdutimens): Use updated, rather than original,
24215         timespec to avoid bug in older Linux kernel.
24216         Reported by Simon Josefsson.
24217
24218 2009-11-04  Bruno Haible  <bruno@clisp.org>
24219
24220         Make num_processors more flexible and consistent.
24221         * lib/nproc.h (enum nproc_query): New type.
24222         (num_processors): Add a 'query' argument.
24223         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24224         (num_processors): Add a 'query' argument. Test the value of the
24225         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24226         mingw, count the number of CPUs available for the current process.
24227         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24228         Check for sched_getaffinity and sched_getaffinity_np.
24229         * modules/nproc (Depends-on): Add c-ctype, extensions.
24230         * NEWS: Mention the change.
24231
24232 2009-11-03  Bruno Haible  <bruno@clisp.org>
24233
24234         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24235
24236 2009-11-03  Jim Meyering  <meyering@redhat.com>
24237
24238         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24239         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24240         if it is defined.
24241
24242 2009-11-02  Eric Blake  <ebb9@byu.net>
24243
24244         mktime, timegm: share common declaration
24245         * lib/mktime-internal.h: New file.
24246         * lib/mktime.c: Use it rather than open-coding a declaration.
24247         * lib/timegm.c: Likewise.
24248         * modules/mktime (Files): Ship it.
24249         * modules/timegm (Files): Likewise.
24250         Suggested by Bruno Haible.
24251
24252         test-update-copyright: update test to match script changes
24253         * tests/test-update-copyright.sh: Avoid hard-coding perl
24254         location.  Don't update *.bak created by earlier runs.
24255
24256 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24257             Simon Josefsson  <simon@josefsson.org>
24258             Bruno Haible  <bruno@clisp.org>
24259
24260         Fix link error on Solaris 8.
24261         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24262         also in libnsl. Define also INET_PTON_LIB.
24263         * modules/inet_pton (Link): New section.
24264
24265 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24266             Bruno Haible  <bruno@clisp.org>
24267
24268         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24269         * modules/inet_ntop (Link): New section.
24270         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24271
24272 2009-11-02  Eric Blake  <ebb9@byu.net>
24273
24274         maint: avoid compiler warnings in m4 macros
24275         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24276         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24277
24278 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24279
24280         * m4/pmccabe2html.m4: Remove file.
24281         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24282         function.  Change maintainer.
24283         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24284         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24285         Courtès).
24286
24287 2009-10-31  Eric Blake  <ebb9@byu.net>
24288
24289         fseeko: fix m4 regression
24290         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24291         regression from 2009-10-27.
24292         Reported by Ralf Wildenhues.
24293
24294 2009-10-31  Jim Meyering  <meyering@redhat.com>
24295
24296         inttostr: aesthetics and improved (compile-time) safety
24297         Define inttype_is_signed rather than inttype_is_unsigned,
24298         since the sole use is via "#if inttype_is_signed".
24299         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24300         inttype_is_unsigned.
24301         * lib/offtostr.c (inttype_is_signed): Likewise.
24302         * lib/uinttostr.c (inttype_is_signed): Likewise.
24303         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24304         * lib/inttostr.c (inttostr): Use verify to cross-check the
24305         inttype_is_signed value and the signedness of the actual type.
24306         * modules/inttostr (Depends-on): Add verify.
24307
24308 2009-10-30  Eric Blake  <ebb9@byu.net>
24309
24310         build: avoid compiler warnings
24311         * lib/fchmodat.c (lchmod): Mark unused variables.
24312         * lib/getopt.c (_getopt_initialize): Likewise.
24313         * lib/mktime.c (__mktime_internal): Provide prototype.
24314         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24315         older gcc that do not understand #pragma GCC diagnostic.
24316         * lib/uinttostr.c (inttype_is_unsigned): Define.
24317         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24318
24319 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24320
24321         stat: fix compilation on AIX
24322         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24323         only see struct stat64.
24324
24325 2009-10-30  Eric Blake  <ebb9@byu.net>
24326
24327         exclude: make more robust
24328         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24329         rather than masking a coding bug.
24330         Suggested by Bruno Haible.
24331
24332 2009-10-30  Jim Meyering  <meyering@redhat.com>
24333
24334         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24335         Rather than putting #!/usr/bin/perl on the first line,
24336         start with a variant of what's recommended by "man perlrun" that
24337         invokes the first "perl" program from your shell's search path.
24338         * build-aux/gitlog-to-changelog: Replace #!... as above.
24339         Add a "Local Variables" perl mode setting.
24340         Prompted by a patch from Ludovic Courtès.
24341         Improved by Eric Blake.
24342         * build-aux/useless-if-before-free: Likewise.
24343         * build-aux/announce-gen: Likewise.
24344         * build-aux/update-copyright: Likewise.
24345
24346 2009-10-29  Eric Blake  <ebb9@byu.net>
24347
24348         filenamecat-lgpl: adjust clients
24349         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24350         filenamecat.
24351         * modules/renameat (Depends-on): Likewise.
24352
24353         filenamecat: split into filenamecat-lgpl
24354         * modules/filenamecat-lgpl: New module.
24355         * modules/filenamecat (Files): Move library-safe files into
24356         filenamecat-lgpl.
24357         (Depends-on): Add filenamecat-lgpl.
24358         (configure.ac): Declare witness.
24359         * lib/filenamecat.h (file_name_concat): Only declare when using
24360         GPL module.
24361         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24362         Move...
24363         * lib/filenamecat-lgpl.c: ...into new file.
24364         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24365         (gl_FILE_NAME_CONCAT): Use it.
24366         * MODULES.html.sh (File system functions): Mention new module.
24367
24368         argp: avoid memory leak
24369         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24370         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24371         base_name, since the latter malloc()s and can call exit().
24372         Leak introduced 2006-07-03.
24373
24374         dirname-lgpl: adjust clients that don't need full dirname
24375         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24376         * modules/filenamecat (Depends-on): Likewise.
24377         * modules/linkat (Depends-on): Likewise.
24378         * modules/mkancesdirs (Depends-on): Likewise.
24379         * modules/mkdir (Depends-on): Likewise.
24380         * modules/openat (Depends-on): Likewise.
24381         * modules/savewd (Depends-on): Likewise.
24382         * modules/rename (Depends-on): Likewise.
24383         (License): Relax license.
24384         * modules/mkdir-tests (Depends-on): Drop progname.
24385         (Makefile.am): Delete unneeded LDADD.
24386         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24387
24388         dirname: split into dirname-lgpl
24389         * modules/dirname-lgpl: New module.
24390         * modules/dirname (Files): Move library-safe files into
24391         dirname-lgpl.
24392         (Depends-on): Add dirname-lgpl.
24393         (configure.ac): Declare witness.
24394         * modules/double-slash-root (License): Relax license.
24395         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24396         module.
24397         * lib/dirname.c (dir_len, mdir_name): Move...
24398         * lib/dirname-lgpl.c: ...into new file.
24399         * lib/basename.c (last_component, base_len): Move...
24400         * lib/basename-lgpl.c: ...into new file.
24401         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24402         (gl_DIRNAME): Use it.
24403         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24404         Mention new module.
24405         * modules/dirname-tests (Depends-on): Add progname.
24406         * tests/test-dirname.c (program_name): Delete.
24407
24408         mkdir: make safe for libraries
24409         * modules/mkdir (Depends-on): Drop xalloc.
24410         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24411         exit.
24412
24413         tests: avoid some compiler warnings
24414         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24415         literals.
24416         * tests/test-memchr.c (main): Avoid type mismatch.
24417         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24418         * tests/test-base64.c (main): Likewise.
24419         * tests/test-getdelim.c (main): Likewise.
24420         * tests/test-gethostname.c (main): Likewise.
24421         * tests/test-getline.c (main): Likewise.
24422         * tests/test-netinet_in.c (main): Likewise.
24423         * tests/test-select.c (open_server_socket, main): Likewise.
24424         * tests/test-select-stdin.c (main): Likewise.
24425         * tests/test-sockets.c (main): Likewise.
24426         * tests/test-strsignal.c (main): Likewise.
24427         * tests/test-sys_select.c (main): Likewise.
24428         * tests/test-sys_socket.c (main): Likewise.
24429         * tests/test-u64.c (main): Likewise.
24430         * tests/test-xfprintf-posix.c (main): Likewise.
24431         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24432
24433         sockets: avoid compiler warning
24434         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24435
24436         maint: detect usage(1) and other suspicious exits
24437         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24438
24439 2009-10-29  Jim Meyering  <meyering@redhat.com>
24440
24441         timespec: long-to-int truncation could make timespec_cmp malfunction
24442         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24443         a multiple of 2^32 nanoseconds as no difference.
24444
24445 2009-10-28  Jim Meyering  <meyering@redhat.com>
24446
24447         fprintftime: wrap macro code argument in "do {...} while(0)"
24448         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24449         cpy macro must be a statement that can be followed by a semicolon.
24450         Now that the else clause contains a comment and is hence longer
24451         than one line, I require curly braces.  That in turn requires
24452         that we wrap this code block in the standard do...while(0).
24453
24454         fprintftime: remove stray semicolon from previous change
24455         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24456
24457         fprintftime: avoid a warning about ignored fwrite return value
24458         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24459         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24460         that is unsafe.
24461         * modules/fprintftime (Depends-on): Add ignore-value.
24462
24463         exclude: avoid an unwarranted warning
24464         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
24465
24466 2009-10-27  Eric Blake  <ebb9@byu.net>
24467
24468         fseek: avoid compilation failure when fflush is replaced
24469         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
24470         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
24471         module is in use.
24472         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
24473         module is not in use; since REPLACE_FSEEK worked otherwise.
24474         (GNULIB_FTELLO): Likewise for ftell.
24475         Reported by Ian Beckwith and others.
24476
24477 2009-10-27  Bruno Haible  <bruno@clisp.org>
24478
24479         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
24480         Reported by Jim Meyering.
24481
24482 2009-10-27  Jim Meyering  <jim@meyering.net>
24483             Bruno Haible  <bruno@clisp.org>
24484
24485         Avoid warning despite dropping the return value of fwrite.
24486         * lib/unicodeio.c: Include ignore-value.h.
24487         (fwrite_success_callback): Explicitly ignore fwrite's return value.
24488         * modules/unicodeio (Depends-on): Add ignore-value.
24489
24490 2009-10-26  Eric Blake  <ebb9@byu.net>
24491
24492         areadlinkat: fix fallback path
24493         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
24494         pointer and zero.
24495
24496 2009-10-22  Pádraig Brady  <P@draigBrady.com>
24497
24498         Use a better IO block size for modern systems
24499         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
24500         * lib/md2.c: Likewise.
24501         * lib/md4.c: Likewise.
24502         * lib/md5.c: Likewise.
24503         * lib/sha1.c: Likewise.
24504         * lib/sha256.c: Likewise.
24505         * lib/sha512.c: Likewise.
24506
24507 2009-10-22  Eric Blake  <ebb9@byu.net>
24508
24509         tests: avoid several compiler warnings
24510         * tests/test-getcwd.c (main): Avoid buffer underflow.
24511         * tests/test-getdate.c (main): String literals are not safe with
24512         putenv, so use setenv.  Declare unused argument.
24513         * modules/getdate-tests (Depends-on): Add setenv.
24514         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
24515         problems with string literals in char *.
24516         * tests/test-hash.c (main): Avoid shadowing declaration.
24517         (insert_new): Treat string literals as char const *.
24518         * tests/test-getopt.h (test_getopt): Likewise.
24519         (getopt_loop): Alter types to minimize casting elsewhere.
24520         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24521         (test_getopt_long_posix): Likewise.
24522         (do_getopt_long): Add wrapper to minimize casting.
24523         * tests/test-atexit.c (clear_temp_file): Use void.
24524         * tests/test-areadlink-with-size.c (main): Declare unused
24525         arguments.
24526         * tests/test-areadlink.c (main): Likewise.
24527         * tests/test-areadlinkat-with-size.c (main): Likewise.
24528         * tests/test-areadlinkat.c (main): Likewise.
24529         * tests/test-canonicalize-lgpl.c (main): Likewise.
24530         * tests/test-canonicalize.c (main): Likewise.
24531         * tests/test-dirent-safer.c (main): Likewise.
24532         * tests/test-dirname.c (main): Likewise.
24533         * tests/test-dup2.c (main): Likewise.
24534         * tests/test-fchdir.c (main): Likewise.
24535         * tests/test-fcntl-h.c (main): Likewise.
24536         * tests/test-fcntl-safer.c (main): Likewise.
24537         * tests/test-fdopendir.c (main): Likewise.
24538         * tests/test-fdutimensat.c (main): Likewise.
24539         * tests/test-fflush.c (main): Likewise.
24540         * tests/test-filenamecat.c (main): Likewise.
24541         * tests/test-filevercmp.c (main): Likewise.
24542         * tests/test-fopen-safer.c (main): Likewise.
24543         * tests/test-fopen.c (main): Likewise.
24544         * tests/test-fpending.c (main): Likewise.
24545         * tests/test-fpurge.c (main): Likewise.
24546         * tests/test-freading.c (main): Likewise.
24547         * tests/test-fstatat.c (main): Likewise.
24548         * tests/test-fsync.c (main): Likewise.
24549         * tests/test-futimens.c (main): Likewise.
24550         * tests/test-getndelim2.c (main): Likewise.
24551         * tests/test-gettimeofday.c (main): Likewise.
24552         * tests/test-getopt.c (main): Likewise.
24553         * tests/test-i-ring.c (main): Likewise.
24554         * tests/test-inttypes.c (main): Likewise.
24555         * tests/test-link.c (main): Likewise.
24556         * tests/test-lstat.c (main): Likewise.
24557         * tests/test-math.c (main): Likewise.
24558         * tests/test-md5.c (main): Likewise.
24559         * tests/test-memchr2.c (main): Likewise.
24560         * tests/test-memrchr.c (main): Likewise.
24561         * tests/test-mkdir.c (main): Likewise.
24562         * tests/test-mkdirat.c (main): Likewise.
24563         * tests/test-mkfifoat.c (main): Likewise.
24564         * tests/test-open.c (main): Likewise.
24565         * tests/test-openat-safer.c (main): Likewise.
24566         * tests/test-openat.c (main): Likewise.
24567         * tests/test-quotearg.c (main): Likewise.
24568         * tests/test-rawmemchr.c (main): Likewise.
24569         * tests/test-readlink.c (main): Likewise.
24570         * tests/test-remove.c (main): Likewise.
24571         * tests/test-rename.c (main): Likewise.
24572         * tests/test-renameat.c (main): Likewise.
24573         * tests/test-rmdir.c (main): Likewise.
24574         * tests/test-sha1.c (main): Likewise.
24575         * tests/test-signal.c (main): Likewise.
24576         * tests/test-sigaction.c (main): Likewise.
24577         * tests/test-stat.c (main): Likewise.
24578         * tests/test-stat-time.c (main): Likewise.
24579         * tests/test-stddef.c (main): Likewise.
24580         * tests/test-stdint.c (main): Likewise.
24581         * tests/test-stdio.c (main): Likewise.
24582         * tests/test-stdlib.c (main): Likewise.
24583         * tests/test-strchrnul.c (main): Likewise.
24584         * tests/test-strerror.c (main): Likewise.
24585         * tests/test-string.c (main): Likewise.
24586         * tests/test-strtod.c (main): Likewise.
24587         * tests/test-strverscmp.c (main): Likewise.
24588         * tests/test-symlink.c (main): Likewise.
24589         * tests/test-symlinkat.c (main): Likewise.
24590         * tests/test-sys_stat.c (main): Likewise.
24591         * tests/test-sys_time.c (main): Likewise.
24592         * tests/test-time.c (main): Likewise.
24593         * tests/test-unistd.c (main): Likewise.
24594         * tests/test-unlink.c (main): Likewise.
24595         * tests/test-unlinkat.c (main): Likewise.
24596         * tests/test-utimens.c (main): Likewise.
24597         * tests/test-utimensat.c (main): Likewise.
24598         * tests/test-version-etc.c (main): Likewise.
24599         * tests/test-wchar.c (main): Likewise.
24600         * tests/test-wctype.c (main): Likewise.
24601         * tests/test-xprintf-posix.c (main): Likewise.
24602         * tests/test-posixtm.c (main): Likewise.
24603         (STREQ): Delete unused macro.
24604         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
24605         shadowed variables.
24606         * tests/test-memchr.c (main): Likewise.
24607
24608 2009-10-21  Eric Blake  <ebb9@byu.net>
24609
24610         areadlinkat: avoid failure on older glibc
24611         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
24612         rather than mis-comparing 0 against FUNC_RESULT of char*.
24613
24614 2009-10-21  Bruno Haible  <bruno@clisp.org>
24615
24616         * modules/stpncpy (License): Relicense under LGPLv2+.
24617         Reported by David Lutterkort <lutter@redhat.com>.
24618
24619 2009-10-20  Eric Blake  <ebb9@byu.net>
24620
24621         utimensat: work around Solaris 9 bug
24622         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
24623         has trailing slash bugs.
24624         * tests/test-lutimens.h (test_lutimens): Enhance test.
24625         * tests/test-utimens.h (test_utimens): Likewise.
24626         * doc/posix-functions/utime.texi (utime): Enhance documentation.
24627         * doc/posix-functions/utimes.texi (utimes): Likewise.
24628         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24629         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
24630         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
24631         * doc/posix-functions/futimens.texi (futimens): Likewise.
24632
24633         fdutimensat: new module
24634         * modules/fdutimensat: New file.
24635         * lib/fdutimensat.c (fdutimensat): Likewise.
24636         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24637         * MODULES.html.sh (File system functions): Mention module.
24638         * modules/fdutimensat-tests: New test.
24639         * tests/test-fdutimensat.c: Likewise.
24640
24641         doc: regenerate INSTALL
24642         * doc/INSTALL: Reflect recent autoconf update.
24643         * doc/INSTALL.ISO: Likewise.
24644         * doc/INSTALL.UTF-8: Likewise.
24645
24646 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24647
24648         acl: warn if ACL support is not detected
24649         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24650
24651 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24652
24653         * lib/nproc.h: Add extern "C" block for C++.
24654
24655 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24656             Bruno Haible  <bruno@clisp.org>
24657
24658         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24659         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24660         * doc/posix-functions/isalpha.texi: Likewise.
24661         * doc/posix-functions/isblank.texi: Likewise.
24662         * doc/posix-functions/iscntrl.texi: Likewise.
24663         * doc/posix-functions/isdigit.texi: Likewise.
24664         * doc/posix-functions/isgraph.texi: Likewise.
24665         * doc/posix-functions/islower.texi: Likewise.
24666         * doc/posix-functions/isprint.texi: Likewise.
24667         * doc/posix-functions/ispunct.texi: Likewise.
24668         * doc/posix-functions/isspace.texi: Likewise.
24669         * doc/posix-functions/isupper.texi: Likewise.
24670         * doc/posix-functions/isxdigit.texi: Likewise.
24671
24672 2009-10-18  Bruno Haible  <bruno@clisp.org>
24673
24674         Tests for module 'isblank'.
24675         * modules/isblank-tests: New file.
24676         * tests/test-isblank.c: New file.
24677
24678         New module 'isblank'.
24679         * lib/isblank.c: New file.
24680         * m4/isblank.m4: New file.
24681         * modules/isblank: New file.
24682         * doc/posix-functions/isblank.texi: Mention the new module.
24683
24684 2009-10-18  Bruno Haible  <bruno@clisp.org>
24685
24686         New module 'ctype'.
24687         * lib/ctype.in.h: New file.
24688         * m4/ctype.m4: New file.
24689         * modules/ctype: New file.
24690         * doc/posix-headers/ctype.texi: Mention the new module.
24691
24692 2009-10-18  Jim Meyering  <meyering@redhat.com>
24693
24694         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24695         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24696         right after its initialization, rather than farther down.
24697         Keeping these in close proximity makes it easier to ensure
24698         that each such variable is initialized.  E.g.,
24699
24700             LIB_CLOCK_GETTIME=
24701             AC_SUBST([LIB_CLOCK_GETTIME])
24702
24703         This change also increments these serial numbers.
24704         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24705         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24706         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24707
24708 2009-10-18  Bruno Haible  <bruno@clisp.org>
24709
24710         Don't let environment variables perturb build.
24711         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24712         (gl_PREREQ_GETHRXTIME): ... not here.
24713
24714 2009-10-18  Bruno Haible  <bruno@clisp.org>
24715
24716         Avoid symlink attack in localcharset module.
24717         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24718         (O_NOFOLLOW): Define fallback.
24719         (get_charset_aliases): Don't open the file if it is a symbolic link.
24720         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24721         gl_FCNTL_H.
24722         (gl_FCNTL_H): Require it.
24723         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24724         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24725         Reported by Fergal Glynn <fglynn@veracode.com>.
24726
24727 2009-10-18  Bruno Haible  <bruno@clisp.org>
24728
24729         Implement nproc for mingw.
24730         * lib/nproc.c: Include <windows.h>
24731         (num_processors): On native Windows platforms, try GetSystemInfo.
24732
24733 2009-10-18  Bruno Haible  <bruno@clisp.org>
24734
24735         Implement nproc for IRIX.
24736         * lib/nproc.c: Include <sys/sysmp.h>.
24737         (num_processors): On IRIX systems, try sysmp.
24738         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
24739
24740 2009-10-18  Bruno Haible  <bruno@clisp.org>
24741
24742         Implement nproc for HP-UX.
24743         * lib/nproc.c: Include <sys/pstat.h>
24744         (num_processors): On HP-UX systems, try pstat_getdynamic.
24745         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
24746         pstat_getdynamic.
24747
24748 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
24749             Bruno Haible  <bruno@clisp.org>
24750
24751         Implement nproc for NetBSD, OpenBSD.
24752         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
24753         (ARRAY_SIZE): New macro.
24754         (num_processors): On BSD systems, try sysctl of HW_NCPU.
24755         * m4/nproc.m4: New file.
24756         * modules/nproc (Files): Add m4/nproc.m4.
24757         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
24758         (Makefile.am): Instead, augment lib_SOURCES.
24759
24760 2009-10-18  Bruno Haible  <bruno@clisp.org>
24761
24762         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
24763         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
24764         sys/param.h.
24765
24766 2009-10-16  Eric Blake  <ebb9@byu.net>
24767
24768         utimensat: new module
24769         * modules/utimensat: New file.
24770         * lib/utimensat.c (utimensat): Likewise.
24771         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24772         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
24773         so we can work around Linux bugs.
24774         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24775         * modules/sys_stat (Makefile.am): Substitute them.
24776         * lib/sys_stat.in.h (utimensat): Declare it.
24777         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24778         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24779         * modules/utimensat-tests: New test.
24780         * tests/test-utimensat.c: Likewise.
24781
24782         utimens: let lutimens work on non-symlinks
24783         * lib/utimens.c (lutimens): Fall back to utimens rather than
24784         failing with ENOSYS, when file is not a symlink.
24785         (utimens): Reduce redirection.
24786         * tests/test-lutimens.h (test_lutimens): Update test to cover
24787         non-symlinks.
24788         * tests/test-utimens.h (test_utimens): Update test to cover
24789         symlinks.
24790         * tests/test-utimens.c (main): Update caller.
24791
24792         utimens: cache whether utimensat syscall works
24793         * lib/utimens.c (utimensat_works_really): New cache variable.
24794         (fdutimens, lutimens): Use it to avoid failing syscall.
24795
24796         test-stat-time, test-utimens: improve portability
24797         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
24798         ext4 on alpha, and for cygwin.
24799         * tests/test-utimens-common.h: New file.
24800         (nap): Factor delays into single function.
24801         * tests/test-lutimens.h (test_lutimens): Use new header.
24802         * tests/test-futimens.h (test_futimens): Likewise.
24803         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
24804         timestamps to occur from same machine, as was done previously for
24805         test_utimens.
24806         * modules/utimens-tests (Files): Ship new file.
24807         * modules/futimens-tests (Files): Likewise.
24808         Reported in part by Jim Meyering.
24809
24810         sys_stat: sort replacement declarations
24811         * lib/sys_stat.in.h: Sort declarations.
24812         * lib/futimens.c (futimens): Fix typo.
24813
24814 2009-10-15  Jim Meyering  <meyering@redhat.com>
24815
24816         don't let environment settings perturb build
24817         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
24818         could cause a configure-time and/or build-time malfunction.
24819         Typically, a configure-time function-in-library test is performed
24820         via code like this:
24821
24822           LIB_VAR=
24823           AC_SUBST([LIB_VAR])
24824           prefix_saved_LIBS=$LIBS
24825             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
24826                        [test "$ac_cv_search_FUNC" = "none required" ||
24827                         LIB_VAR=$ac_cv_search_FUNC])
24828           LIBS=$prefix_saved_LIBS
24829
24830         However, in each of the files affected by this change, the LIB_VAR=
24831         initialization was omitted.  Thus, when set in the environment, its
24832         value would propagate into generated Makefiles when FUNC is not found
24833         in LIB_NAME.
24834         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
24835         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24837
24838 2009-10-14  Eric Blake  <ebb9@byu.net>
24839
24840         fchdir: avoid infinite recursion in mingw
24841         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
24842         recursing.
24843
24844         test-stat-time: port to mingw
24845         * tests/test-stat-time.c (force_unlink): Return a value.
24846         (test_ctime) [W32]: Fix compilation error.
24847         (nap): Don't call usleep with too large an argument.  Use
24848         force_unlink.
24849         * doc/pastposix-functions/usleep.texi (usleep): Document the
24850         portability issue.
24851
24852 2009-10-13  Jim Meyering  <meyering@redhat.com>
24853
24854         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
24855         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
24856         * modules/pipe-filter-ii: Likewise.
24857         * modules/sys_socket-tests: Likewise.
24858         * modules/tsearch-tests: Likewise.
24859         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
24860         (check): Depend on it.
24861
24862 2009-10-12  Eric Blake  <ebb9@byu.net>
24863
24864         utimens-tests: port to NFS file systems
24865         * tests/test-utimens.h (test_utimens): Refactor utimecmp
24866         comparisons to avoid spurious failures from timestamp drift
24867         between NFS machines.
24868
24869 2009-10-12  Eric Blake  <ebb9@byu.net>
24870
24871         stat-time-tests: minor cleanups
24872         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
24873         * tests/test-stat-time.c (nap): Separate assignment from call.
24874         Suggested by Paolo Bonzini and Bruno Haible.
24875
24876         sys_stat: guarantee struct timespec
24877         * lib/sys_stat.in.h (includes): Always include <time.h>
24878         * modules/sys_stat (Depends-on): Add time.
24879         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
24880         mode_t permission values.
24881         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
24882         get at subsecond timestamps.
24883
24884 2009-10-10  Eric Blake  <ebb9@byu.net>
24885
24886         futimens: new module
24887         * modules/futimens: New file.
24888         * lib/futimens.c (futimens): Likewise.
24889         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
24890         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
24891         we can work around Linux bugs.
24892         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24893         * modules/sys_stat (Makefile.am): Substitute them.
24894         * lib/sys_stat.in.h (futimens): Declare it.
24895         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24896         * doc/posix-functions/futimens.texi (futimens): Likewise.
24897         * modules/futimens-tests: New test.
24898         * tests/test-futimens.c: Likewise.
24899
24900         utimens: introduce fdutimens
24901         * lib/utimens.h (fdutimens): New prototype.
24902         * lib/utimens.c (gl_futimens): Move guts...
24903         (fdutimens): ...to new interface.
24904         * tests/test-utimens.c (do_fdutimens): Use it.
24905
24906         utimens: add UTIME_NOW and UTIME_OMIT support
24907         * lib/utimens.c (validate_timespec, update_timespec): New helper
24908         functions.
24909         (gl_futimens, lutimens): Use them.
24910         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
24911         stdbool, sys_stat.
24912         (Link): Mention resulting library dependency.
24913         * modules/utimecmp (Link): Likewise.
24914         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
24915         (Makefile.am): Pick up library dependency.
24916         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
24917         definition.
24918         * tests/test-sys_stat.c: Test the definitions.
24919         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
24920         * NEWS: Document library dependency.
24921
24922         utimecmp: support symlink timestamps
24923         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
24924         hashing when possible.  Use pathconf when available.
24925         (SYSCALL_RESOLUTION): Recognize tighter resolution.
24926         * modules/utimecmp (Depends-on): Add lstat.
24927
24928         utimens: add lutimens interface
24929         * lib/utimens.c (lutimens): New function.
24930         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
24931         * lib/utimens.h (lutimens): Declare new interface.
24932         * tests/test-utimens.c (main): Enhance test.
24933         * tests/test-lutimens.h (test_lutimens): New file.
24934         * modules/utimens-tests (Files): Distribute it.
24935         (Depends-on): Add symlink.
24936         (configure.ac): Check for usleep.
24937
24938         utimens: validate futimens usage
24939         * lib/utimens.c (gl_futimens): Require valid fd up front, using
24940         fewer syscalls on failure later on.  Avoid compiler warning on
24941         mingw.
24942         * modules/utimens (Depends-on): Add dup2.
24943
24944         utimens: add test
24945         * modules/utimens-tests: New test.
24946         * tests/test-utimens.h: New file.
24947         * tests/test-futimens.h: Likewise.
24948         * tests/test-utimens.c: Likewise.
24949
24950         doc: mention timestamp portability issues
24951         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
24952         instead.
24953         * doc/posix-functions/utime.texi (utime): Likewise.
24954         * doc/posix-functions/utimes.texi (utimes): Likewise.
24955         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
24956         instead.
24957         * doc/posix-functions/futimens.texi (futimens): Mention utimens
24958         module.
24959         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24960         Mention weakness with symlink timestamps.
24961         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
24962         to utimensat/futimens instead.
24963         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
24964
24965         test-dup2: enhance test
24966         * tests/test-dup2.c (main): Also check AT_FDCWD.
24967
24968         test-stat-time: avoid more spurious failures
24969         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
24970         xfs; and avoid race if the two timestamps cross quantization edge.
24971
24972         relocatable: prefer 'file system' over 'filesystem'
24973         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
24974         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
24975         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
24976         * doc/relocatable.texi (Enabling Relocatability): Likewise.
24977         * lib/relocatable.c (compute_curr_prefix): Likewise.
24978
24979 2009-10-10  Jim Meyering  <meyering@redhat.com>
24980
24981         stat-time-tests: check for the usleep function
24982         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24983
24984 2009-10-10  Bruno Haible  <bruno@clisp.org>
24985
24986         * modules/xnanosleep: Put the Link section after the Include section.
24987
24988 2009-10-09  Eric Blake  <ebb9@byu.net>
24989
24990         dup2: work around FreeBSD 6.1 bug
24991         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24992         * doc/posix-functions/dup2.texi (dup2): Document it.
24993         Reported by Nelson H. F. Beebe and Jim Meyering.
24994
24995         test-stat-time: port to buggy NFS clients
24996         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24997         (test_ctime): Also skip test if mtime and ctime are skewed.
24998
24999         maint: prefer 'file system' over 'filesystem'
25000         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25001         * doc/posix-functions/lstat.texi (lstat): Likewise.
25002         * lib/file-has-acl.c (file_has_acl): Likewise.
25003         * lib/fwriteerror.c [TEST]: Likewise.
25004         * tests/test-areadlink.h (test_areadlink): Likewise.
25005         * tests/test-areadlinkat-with-size.c (main): Likewise.
25006         * tests/test-areadlinkat.c (main): Likewise.
25007         * tests/test-canonicalize-lgpl.c (main): Likewise.
25008         * tests/test-canonicalize.c (main): Likewise.
25009         * tests/test-fstatat.c (main): Likewise.
25010         * tests/test-linkat.c (main): Likewise.
25011         * tests/test-lstat.h (test_lstat_func): Likewise.
25012         * tests/test-mkdir.h (test_mkdir): Likewise.
25013         * tests/test-readlink.h (test_readlink): Likewise.
25014         * tests/test-remove.c (main): Likewise.
25015         * tests/test-rename.h (test_rename): Likewise.
25016         * tests/test-renameat.c (main): Likewise.
25017         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25018         * tests/test-symlink.h (test_symlink): Likewise.
25019         * tests/test-symlinkat.c (main): Likewise.
25020         * tests/test-unlink.h (test_unlink_func): Likewise.
25021         * tests/test-unlinkat.c (main): Likewise.
25022
25023         maint: make realtime library usage explicit
25024         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25025         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25026         * modules/settime (Link): Likewise.
25027         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25028
25029         test-stat-time: speed up execution
25030         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25031         warning on mingw.
25032         (nap): New helper function.
25033         (prepare_test): Use it to reduce sleep time.
25034         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25035         execution.
25036         * modules/stat-time-tests (configure.ac): Check for usleep.
25037
25038 2009-10-09  Jim Meyering  <meyering@redhat.com>
25039
25040         selinux-h: always use getfilecon wrappers
25041         * lib/getfilecon.c: New file.
25042         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25043         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25044         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25045         (fgetfilecon): Provide a stub.
25046         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25047         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25048         file unconditionally.
25049         When <selinux/selinux.h> is found, arrange to use wrappers.
25050         * modules/selinux-h (Files): Add getfilecon.c.
25051         (Makefile.am): Substitute include-next-related bits
25052         into the now-always-generated selinux/selinux.h file.
25053         * doc/glibc-functions/lgetfilecon.texi: New file.
25054         * doc/glibc-functions/fgetfilecon.texi: New file.
25055         * doc/glibc-functions/getfilecon.texi: New file.
25056         * doc/glibc-functions/getfilecon-desc.texi: New file.
25057         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25058         which to pull in the new files.
25059         * MODULES.html.sh (Misc): Add selinux-h.
25060
25061 2009-10-08  Jim Meyering  <meyering@redhat.com>
25062
25063         unistd: fix comment typo
25064         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25065
25066 2009-10-08  Eric Blake  <ebb9@byu.net>
25067
25068         areadlink: use SIZE_MAX consistently
25069         * modules/areadlink (Depends-on): Add stdint.
25070         * modules/areadlink-with-size (Depends-on): Likewise.
25071         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25072         gives NULL; drop sys/types, since unistd gives size_t; and add
25073         stdint for SIZE_MAX.
25074         (SIZE_MAX): Rely on headers.
25075         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25076         and add stdint.
25077         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25078         (SIZE_MAX): Likewise.
25079         (INITIAL_BUF_SIZE): Turn into enum.
25080         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25081
25082 2009-10-08  Jim Meyering  <meyering@redhat.com>
25083
25084         areadlinkat: avoid compilation failure
25085         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25086         Fix typo in comment.
25087
25088 2009-10-07  Eric Blake  <ebb9@byu.net>
25089
25090         areadlinkat-with-size: new module
25091         * modules/areadlinkat-with-size: New module.
25092         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25093         * lib/areadlink.h (areadlinkat): Declare it.
25094         * MODULES.html.sh (File system functions): Mention it.
25095         * modules/areadlinkat-with-size-tests: New test.
25096         * tests/test-areadlinkat-with-size.c: New file.
25097
25098         xreadlinkat: new module
25099         * modules/xreadlinkat: New module.
25100         * lib/xreadlinkat.c (xreadlinkat): New file.
25101         * lib/xreadlink.h (xreadlinkat): Declare it.
25102         * MODULES.html.sh (File system functions): Mention it.
25103
25104         areadlinkat: new module
25105         * lib/at-func.c (FUNC_FAIL): New define.
25106         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25107         * modules/areadlinkat: New module.
25108         * lib/linkat.c (areadlinkat): Move...
25109         * lib/areadlinkat.c (areadlinkat): ...to new file.
25110         * lib/areadlink.h (areadlinkat): Declare it.
25111         * modules/linkat (Depends-on): Add areadlinkat.
25112         * MODULES.html.sh (File system functions): Mention it.
25113         * modules/areadlinkat-tests: New test.
25114         * tests/test-areadlinkat.c: New file.
25115
25116         areadlink, areadlink-with-size: add tests
25117         * modules/areadlink-tests: New test.
25118         * modules/areadlink-with-size-tests: Likewise.
25119         * tests/test-areadlink.h: New file.
25120         * tests/test-areadlink.c: Likewise.
25121         * tests/test-areadlink-with-size.c: Likewise.
25122
25123         maint: minor cleanups
25124         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25125         _UNUSED_PARAMETER_ instead.
25126         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25127         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25128         * modules/linkat-tests (Files): Distribute test-link.h.
25129
25130         openat, utimens: whitespace cleanup
25131         * lib/openat.c: Prefer space throughout, rather than mix of 8
25132         spaces vs. tabs.
25133         * lib/at-func.c: Likewise.
25134         * lib/utimens.c: Likewise.
25135
25136         openat: avoid using wrong fd
25137         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25138         working directory chooses same fd.
25139         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25140
25141         mkdir, mkdirat: fix cygwin 1.5.x bug
25142         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25143         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25144         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25145         bug.
25146         (gl_PREREQ_MKDIR): Delete unused macro.
25147         * modules/mkdir (Files): Track file rename.
25148         (configure.ac): Update macro name.
25149         * modules/openat (Depends-on): Add mkdir.
25150         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25151
25152         mkdir, mkdirat: add tests
25153         * modules/mkdir-tests: New test.
25154         * tests/test-mkdir.h: New file.
25155         * tests/test-mkdir.c: Likewise.
25156         * tests/test-mkdirat.c: Likewise.
25157         * modules/openat-tests (Files): Add new files.
25158         (Makefile.am): Run new test.
25159
25160 2009-10-06  Eric Blake  <ebb9@byu.net>
25161
25162         doc: tweak *at function documentation
25163         * doc/posix-functions/faccessat.texi (faccessat): Mention
25164         known issue with replacement.
25165         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25166         * doc/posix-functions/linkat.texi (linkat): Likewise.
25167         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25168         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25169         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25170         * doc/posix-functions/renameat.texi (renameat): Likewise.
25171         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25172
25173         openat: fix GNU/Hurd bug in unlinkat
25174         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25175         broken.
25176         * doc/posix-functions/unlink.texi (unlink): Document this.
25177         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25178
25179         fdopendir: fix GNU/Hurd bug
25180         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25181         allowing non-directory fds.
25182         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25183         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25184         * modules/dirent (Makefile.am): Substitute it.
25185         * lib/dirent.in.h (fdopendir): Declare replacement.
25186         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25187         * tests/test-fdopendir.c (main): Test something other than
25188         /dev/null, since on Hurd that behaves like a directory.
25189
25190         test-symlink: port to GNU/Hurd
25191         * tests/test-symlink.h (test_symlink): Relax expected errno.
25192
25193         doc: tweak more cygwin information
25194         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25195         now compatible with glibc.
25196         * doc/posix-functions/getopt.texi (getopt): Likewise.
25197
25198         getopt-gnu: add another test
25199         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25200         guarantee behavior relied on by m4.
25201         * tests/test-getopt.c (main): Use it.
25202         * modules/getopt-posix-tests (Depends-on): Add setenv.
25203         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25204
25205         getopt: fix compilation on darwin
25206         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25207         include.
25208         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25209         Reported by Ludovic Courtès.
25210
25211 2009-10-06  Bruno Haible  <bruno@clisp.org>
25212
25213         * modules/size_max (Description): Discourage its use.
25214         Reported by Simon Josefsson.
25215
25216 2009-10-06  Jim Meyering  <meyering@redhat.com>
25217
25218         linkat: avoid compilation failure
25219         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25220
25221 2009-10-05  Eric Blake  <ebb9@byu.net>
25222
25223         linkat: support Linux 2.6.17
25224         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25225         linkat on Linux, but allow cache variable override.
25226         * lib/linkat.c (rpl_linkat): Define override.
25227         * modules/linkat (Depends-on): Add symlinkat.
25228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25229         * modules/unistd (Makefile.am): Substitute it.
25230         * lib/unistd.in.h (linkat): Declare replacement.
25231         Reported by Pádraig Brady.
25232
25233         quotearg: port test to systems with C.UTF-8 locale
25234         * tests/test-quotearg.c (struct result_strings): Add another
25235         member, differentiating between C.ASCII and C.UTF-8 handling.
25236         (compare_strings): Add parameter.
25237         (main): Adjust all callers.
25238
25239         getopt: avoid clash with FreeBSD _getopt_internal
25240         * lib/getopt.in.h (_getopt_internal): Override the name.
25241         * lib/getopt_int.h (includes): Pick up any overrides.
25242         Reported by Reuben Thomas.
25243
25244         hash: allow C89 compilation
25245         * lib/hash.c (check_tuning): Move declaration before statement.
25246         Reported by Reuben Thomas.
25247
25248 2009-10-05  Karl Berry  <karl@gnu.org>
25249
25250         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25251
25252 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25253             Bruno Haible  <bruno@clisp.org>
25254
25255         * lib/uname.c (uname): Use a table-driven algorithm to compute
25256         Windows NT versions.
25257
25258 2009-10-04  Bruno Haible  <bruno@clisp.org>
25259
25260         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25261         program_invocation_short_name.
25262         * modules/progname (configure.ac): Test for presence of
25263         program_invocation_short_name.
25264         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25265
25266 2009-10-04  Bruno Haible  <bruno@clisp.org>
25267
25268         * lib/progname.c (set_program_name): Fix comment.
25269         Reported by Jim Meyering.
25270
25271 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25272             Bruno Haible  <bruno@clisp.org>
25273
25274         * lib/uname.c: Include <string.h>.
25275         (uname): Do only one call to GetVersionEx in the common case.
25276
25277 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25278             Bruno Haible  <bruno@clisp.org>
25279
25280         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25281         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25282         (uname): Add support for Windows CE and various non-x86 CPU types.
25283
25284 2009-10-03  Bruno Haible  <bruno@clisp.org>
25285
25286         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25287         invocation to tests/configure.ac.
25288         Reported by Ian Beckwith <ianb@erislabs.net>.
25289
25290 2009-10-02  Eric Blake  <ebb9@byu.net>
25291
25292         fchdir: avoid compiler warning
25293         * lib/fchdir.c (canonicalize_file_name)
25294         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25295
25296         test-open: support mingw errno values
25297         * tests/test-open.h (test_open): Relax test.
25298         * tests/test-fopen.h (test_fopen): Likewise.
25299         * tests/test-openat-safer.c (main): Likewise.
25300
25301         open: fix opening directory on mingw
25302         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25303
25304         test-open: on GNU/Hurd, /dev/null is a directory
25305         * tests/test-fopen.h (main): Rename...
25306         (test_fopen): ...to this.  Use a guaranteed non-directory when
25307         confirming open behavior on trailing slash.
25308         * tests/test-openat-safer.c (main): Likewise.
25309         * tests/test-open.h (main): Likewise....
25310         (test_open): ...to this.
25311         * tests/test-fopen.c (main): Adjust caller.
25312         * tests/test-fopen-safer.c (main): Likewise.
25313         * tests/test-open.c (main): Likewise.
25314         * tests/test-fcntl-safer.c (main): Likewise.
25315         Reported by Samuel Thibault.
25316
25317         rename, fchdir: don't ignore chdir failure
25318         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25319         * lib/rename.c (rpl_rename) [W32]: Likewise.
25320         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25321         an empty destination directory if source cannot be renamed,
25322         although there is still possibility for failure.
25323         * doc/posix-functions/rename.texi (rename): Document the race.
25324         Reported by Jim Meyering.
25325
25326         maint: cleanup whitespace in recent commits
25327         * lib/rename.c (rpl_rename): Remove tabs.
25328         * tests/test-link.h (test_link): Likewise.
25329         * lib/fchdir.c (get_name): Likewise.
25330         Reported by Jim Meyering.
25331
25332 2009-10-02  Ben Pfaff  <blp@gnu.org>
25333
25334         relocatable-prog-wrapper: Add missing dependency on
25335         double-slash-root.
25336         * modules/relocatable-prog-wrapper: Add dependency.
25337         Reported by Ian Beckwith <ianb@erislabs.net>.
25338
25339 2009-10-02  Eric Blake  <ebb9@byu.net>
25340
25341         renameat: fix Solaris bugs
25342         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25343         needed fixing.
25344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25345         * modules/stdio (Makefile.am): Substitute it.
25346         * lib/stdio.in.h (renameat): Declare replacement.
25347         * lib/renameat.c (rpl_renameat): Implement fix.
25348
25349         renameat: new module
25350         * modules/renameat: New file.
25351         * lib/renameat.c (renameat): Likewise.
25352         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25354         * modules/stdio (Makefile.am): Substitute them.
25355         * lib/stdio.in.h (renameat): Declare it.
25356         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25357         * doc/posix-functions/renameat.texi (renameat): Likewise.
25358         * modules/renameat-tests: New test.
25359         * tests/test-renameat.c: Likewise.
25360
25361         rename: fix mingw bugs
25362         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25363         directory overwrite bugs.
25364
25365         rename: fix another cygwin 1.5 bug
25366         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25367         checks.
25368         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25369         unnecessary cygwin workarounds.  Also work around bug with moving
25370         full directory onto an empty one.
25371         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25372
25373         rename-dest-slash: merge into rename module
25374         * modules/rename-dest-slash (Status): Mark obsolete.
25375         (Depends-on): Add rename.
25376         (Files): Let rename do it all.
25377         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25378         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25379         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25380         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25381         * lib/rename.c (rpl_rename): Update comments.
25382
25383         rename: fix cygwin 1.5.x bugs
25384         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25385         * lib/rename.c (rpl_rename): Work around them.
25386         * modules/rename (Depends-on): Add same-inode.
25387
25388         rename: fix Solaris 10 bug
25389         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25390         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25391         was the only bug.
25392
25393         rename: fix Solaris 9 bug
25394         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25395         on non-directory.  Avoid calling exit.
25396         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25397         strdup.
25398         * modules/rename-tests (Depends-on): Drop lstat.
25399         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25400         (gl_PREREQ_RENAME): Delete unused macro.
25401
25402         rename-dest-slash: fix NetBSD bug
25403         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25404         links.
25405         * modules/rename-dest-slash (Depends-on): Add same-inode.
25406
25407         rename-tests: new test, exposes several platform bugs
25408         * modules/rename-tests: New file.
25409         * tests/test-rename.h: Likewise.
25410         * tests/test-rename.c: Likewise.
25411         * doc/posix-functions/rename.texi (rename): Improve documentation,
25412         including bugs that will eventually be fixed in gnulib.
25413
25414 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25415
25416         * lib/uname.c: Include <stdlib.h>
25417         (uname): Assume version info is available.
25418
25419 2009-10-02  Jim Meyering  <meyering@redhat.com>
25420
25421         gnu-web-doc-update: correct --help output
25422         * build-aux/gnu-web-doc-update: Make --help output relevant.
25423
25424         gnu-web-doc-update: add standard options
25425         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25426
25427         gnu-web-doc-update: New module.
25428         Use this script to automatically update the on-line web documentation
25429         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25430         * modules/gnu-web-doc-update: New file, from coreutils.
25431         * build-aux/gnu-web-doc-update: New script.
25432
25433 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25434
25435         link: LoadLibrary is not needed.
25436         * lib/link.c: Use GetModuleHandle.
25437
25438 2009-10-01  Eric Blake  <ebb9@byu.net>
25439
25440         getopt: bump serial number
25441         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25442         change.
25443
25444         tests: tighten link, rmdir, and remove tests
25445         * tests/test-link.h (includes): No need to use <config.h> here.
25446         Clean up if directory hard link was created, otherwise test for
25447         trailing '.'.
25448         * tests/test-linkat.c (main): Simplify.
25449         * tests/test-remove.c (main): Enhance test for trailing '.'.
25450         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25451
25452 2009-10-01  Jim Meyering  <meyering@redhat.com>
25453
25454         maint.mk: requiring "make major" was annoying, for a "minor" release.
25455         What is intended is "stable", to contrast with alpha and beta,
25456         so require "make stable", not "make major".
25457         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25458         (get_tool_versions): Likewise.
25459         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25460
25461 2009-09-30  Ben Pfaff  <blp@gnu.org>
25462
25463         Fix broken build of replacement for Windows tmpfile().
25464         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
25465         flags argument added along with the 'mkostemp' module.
25466
25467 2009-09-28  Bruno Haible  <bruno@clisp.org>
25468
25469         Avoid identifier clash with POSIX function 'remove' defined as a macro.
25470         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
25471         to 'remove_elt'.
25472         (gl_list_remove): Update.
25473         * lib/gl_list.c (gl_list_remove): Update.
25474         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
25475         to 'remove_elt'.
25476         (gl_oset_remove): Update.
25477         * lib/gl_list.c (gl_oset_remove): Update.
25478         Reported by Eric Blake.
25479
25480 2009-09-28  Eric Blake  <ebb9@byu.net>
25481
25482         doc: mention yet more cygwin 1.7 status
25483         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
25484         cygwin.
25485         * doc/glibc-functions/execvpe.texi (execvpe): New file.
25486         * doc/gnulib.texi (Glibc unistd.h): Mention it.
25487
25488         argp: fix test failure
25489         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
25490         that are not upper-case.  Pass correct range to tolower.
25491
25492 2009-09-27  Jim Meyering  <meyering@redhat.com>
25493
25494         test-yesno: work around sparc-dash here-document infelicity
25495         Without this change, the literal \177 byte in a here document
25496         would make dash 0.5.5.1-3 access uninitialized memory.
25497         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
25498         Instead, use a marker, "@", and filter through tr to create the desired
25499         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
25500
25501 2009-09-27  Bruno Haible  <bruno@clisp.org>
25502
25503         Disable untested support for new flavours of ACLs on AIX.
25504         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
25505         progress.
25506         * lib/set-mode-acl.c (qset_acl): Likewise.
25507
25508 2008-12-07  Bruno Haible  <bruno@clisp.org>
25509
25510         Add support for new flavours of ACLs on AIX. (Untested.)
25511         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
25512         (file_has_acl): Add support for newer AIX.
25513         * lib/set-mode-acl.c (qset_acl): Likewise.
25514         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
25515         Rainer Tammer <tammer@tammer.net>.
25516
25517 2009-09-26  Eric Blake  <ebb9@byu.net>
25518
25519         argp: fix compilation of getopt
25520         * lib/getopt.in.h (includes): Use different guard than glibc.
25521         Reported by Sergey Poznyakoff.
25522
25523         doc: mention more cygwin 1.7 status
25524         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
25525         bug.
25526         * doc/posix-functions/execl.texi (execl): Likewise.
25527         * doc/posix-functions/execle.texi (execle): Likewise.
25528         * doc/posix-functions/execlp.texi (execlp): Likewise.
25529         * doc/posix-functions/execv.texi (execv): Likewise.
25530         * doc/posix-functions/execve.texi (execve): Likewise.
25531         * doc/posix-functions/execvp.texi (execvp): Likewise.
25532         * doc/glibc-functions/canonicalize_file_name.texi
25533         (canonicalize_file_name): Cygwin 1.7 now provides this.
25534         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
25535         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
25536         on AT_SYMLINK_NOFOLLOW.
25537
25538 2009-09-24  Eric Blake  <ebb9@byu.net>
25539
25540         test-linkat: make test more robust
25541         * tests/test-linkat.c (main): Avoid collision with EEXIST.
25542
25543         getopt: fix inclusion guards for cygwin
25544         * modules/getopt-posix (Depends-on): Add include-next.
25545         (Makefile.am): Substitute more items in replacement header.
25546         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
25547         <getopt.h>.
25548         * lib/getopt.in.h (includes): Use split inclusion guard, and
25549         prefer <getopt.h> over include <unistd.h> when one is present.
25550         (option): Also override name of 'struct option'.
25551
25552         same-inode: revert prior change; it is not yet ready
25553         * NEWS: Undo mention of this change.
25554         * lib/same-inode.h (same-inode.h): Undo tri-state change.
25555         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25556         * lib/cycle-check.c (cycle_check): Likewise.
25557         * lib/same.c (same_name): Likewise.
25558         * lib/at-func2.c (at_func2): Likewise.
25559
25560 2009-09-23  Eric Blake  <ebb9@byu.net>
25561
25562         linkat: new module
25563         * modules/linkat: New file.
25564         * lib/at-func2.c (at_func2): Likewise.
25565         * lib/linkat.c (linkat): Likewise.
25566         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25567         * lib/openat-priv.h (at_func2): Add declaration.
25568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25569         * modules/unistd (Makefile.am): Substitute them.
25570         * lib/unistd.in.h (linkat): Declare it.
25571         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25572         * doc/posix-functions/linkat.texi (linkat): Likewise.
25573         * doc/posix-functions/link.texi (link): Tweak wording.
25574         * tests/test-link.c (main): Move guts...
25575         * tests/test-link.h (test_link): ...into new file.
25576         * modules/linkat-tests: New test.
25577         * tests/test-linkat.c: Likewise.
25578         * modules/link-tests (Files): Ship new file.
25579         (Depends-on): Add stdbool.
25580
25581         dirname: add library-safe mdir_name
25582         * lib/dirname.h (mdir_name): New prototype.
25583         * lib/dirname.c (dir_name): Move guts...
25584         (mdir_name): ...to new function that avoids xalloc_die.
25585
25586         fchdir: another mingw fix
25587         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
25588         * lib/fchdir.c (get_name): New helper method; skips canonicalize
25589         on mingw (where it has not yet been ported), and make it optional
25590         elsewhere.
25591         (_gl_register_fd): Use it.
25592
25593         same-inode: make SAME_INODE tri-state, to port to mingw
25594         * NEWS: Mention this change.
25595         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
25596         st_ino always being 0.
25597         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25598         * lib/cycle-check.c (cycle_check): Likewise.
25599         * lib/same.c (same_name): Likewise.
25600
25601         lstat: avoid mingw compilation error
25602         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
25603         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
25604         lstat ourselves.
25605         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
25606         was adequate.
25607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
25608         the checks for lstat.
25609         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
25610
25611         link: fix test failure on Solaris 9
25612         * lib/link.c (rpl_link): Don't assume link will catch bogus
25613         trailing slash on source.
25614
25615         test-symlinkat: enhance test
25616         * tests/test-readlink.c (main): Move guts...
25617         * tests/test-readlink.h (test_readlink): ...into new file.
25618         * tests/test-symlink.c (main): Move guts...
25619         * tests/test-symlink.h (test_symlink): ...into new file.
25620         * tests/test-symlinkat.c (main): Use new files for further
25621         coverage.
25622         (do_symlink, do_readlink): New helper functions.
25623         * modules/symlink-tests (Files): Ship new file.
25624         (Depends-on): Add stdbool.
25625         * modules/readlink-tests (Files): Ship new file.
25626         (Depends-on): Add stdbool.
25627         * modules/symlinkat-tests (Files): Use new files.
25628
25629 2009-09-23  Eric Blake  <ebb9@byu.net>
25630
25631         readlink: document portability issue with symlink length
25632         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25633         systems have bogus st_size on symlinks, and mention the
25634         areadlink-with-size module.
25635         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25636         * doc/posix-functions/readlink.texi (readlink): Mention the
25637         areadlink module, and ERANGE failure.
25638         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25639         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25640
25641         readlink: fix Solaris 9 bug with trailing slash
25642         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25643         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25644         * doc/posix-functions/readlink.texi (readlink): Document this.
25645         * modules/readlink-tests: New test.
25646         * tests/test-readlink.c: Likewise.
25647
25648         readlink: fix cygwin 1.5.x bug with return type
25649         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25650         * lib/unistd.in.h (readlink): Use ssize_t.
25651         * lib/readlink.c (readlink): Likewise.
25652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25653         * modules/unistd (Makefile.am): Substitute it.
25654         * lib/unistd.in.h (readlink): Declare replacement.
25655         * doc/posix-functions/readlink.texi (readlink): Document this.
25656
25657         symlink: use throughout gnulib
25658         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25659         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25660         symlink is not used.
25661         * modules/symlinkat (Depends-on): Add symlink.
25662         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25663         * modules/canonicalize-tests (Depends-on): Likewise.
25664         * modules/lstat-tests (Depends-on): Likewise.
25665         * modules/openat-tests (Depends-on): Likewise.
25666         * modules/remove-tests (Depends-on): Likewise.
25667         * modules/rmdir-tests (Depends-on): Likewise.
25668         * modules/unlink-tests (Depends-on): Likewise.
25669         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25670         * tests/test-canonicalize.c (symlink): Likewise.
25671         * tests/test-fstatat.c (symlink): Likewise.
25672         * tests/test-lstat.c (symlink): Likewise.
25673         * tests/test-remove.c (symlink): Likewise.
25674         * tests/test-rmdir.c (symlink): Likewise.
25675         * tests/test-unlink.c (symlink): Likewise.
25676         * tests/test-unlinkat.c (symlink): Likewise.
25677
25678         symlink: new module, for Solaris 9 bug
25679         * modules/symlink: New file.
25680         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25681         * lib/symlink.c: Likewise.
25682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25683         * modules/unistd (Makefile.am): Substitute them.
25684         * lib/unistd.in.h (symlink): Declare replacement.
25685         * MODULES.html.sh (File system functions): Mention it.
25686         * doc/posix-functions/symlink.texi (symlink): Likewise.
25687         * modules/symlink-tests: New test.
25688         * tests/test-symlink.c: Likewise.
25689
25690 2009-09-23  Bruno Haible  <bruno@clisp.org>
25691
25692         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25693         when needed.
25694         Test case: gnulib-tool --import --with-tests atexit inttypes.
25695         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25696
25697 2009-09-23  Bruno Haible  <bruno@clisp.org>
25698
25699         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25700         subcommand, not in a subshell.
25701
25702 2009-09-22  Eric Blake  <ebb9@byu.net>
25703
25704         unistd: sort replacement declarations
25705         * lib/unistd.in.h: Sort declarations.
25706
25707         open, openat: minor optimization
25708         * lib/open.c (open): If open succeeded, len is non-zero.
25709         * lib/openat.c (rpl_openat): Likewise.
25710
25711         link-follow: ensure correct result
25712         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25713         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25714         distinguish between possible failures.
25715
25716 2009-09-21  Eric Blake  <ebb9@byu.net>
25717
25718         fts: avoid compiler warning
25719         * lib/fts.c (dirent_inode_sort_may_be_useful)
25720         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25721
25722 2009-09-19  Bruno Haible  <bruno@clisp.org>
25723
25724         * lib/progreloc.c (canonicalize_file_name): New declaration.
25725
25726 2009-09-19  Eric Blake  <ebb9@byu.net>
25727
25728         link: fix quoting
25729         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25730
25731         openat: fix openat bugs on Solaris 9
25732         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25733         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25734         * modules/openat (Depends-on): Add open.
25735         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
25736         * modules/fcntl-h (Makefile.am): Substitute it.
25737         * lib/fcntl.in.h (openat): Declare replacement.
25738         * doc/posix-functions/openat.texi (openat): Document this.
25739
25740         openat: move fstatat and unlinkat into correct files
25741         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
25742         compiled.
25743         * lib/openat.c (fstatat, unlinkat): Move...
25744         * lib/fstatat.c (fstatat): ...into correct files.
25745         * lib/unlinkat.c (unlinkat): Likewise.
25746
25747         openat: fix unlinkat bugs on Solaris 9
25748         * lib/unlinkat.c (unlinkat): New file.
25749         * modules/openat (Depends-on): Add unlink.
25750         (Files): Distribute it.
25751         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
25752         trailing slash behavior is broken.
25753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25754         * modules/unistd (Makefile.am): Substitute it.
25755         * lib/unistd.in.h (unlinkat): Declare replacement.
25756         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
25757
25758         openat: fix fstatat bugs on Solaris 9
25759         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
25760         stat.
25761         * doc/posix-functions/fstatat.texi (fstatat): Document this.
25762
25763         test-unlinkat: enhance test, to expose Solaris 9 bug
25764         * tests/test-unlink.c (main): Factor guts...
25765         * tests/test-unlink.h (test_rmdir_func): ...into new file.
25766         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
25767         * tests/test-rmdir.c (main): Adjust caller.
25768         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
25769         (unlinker): New helper function.
25770         (rmdirat): Enhance check.
25771         * modules/rmdir-tests (Depends-on): Add stdbool.
25772         * modules/unlink-tests (Depends-on): Likewise.
25773         (Files): Add test-unlink.h.
25774         * modules/openat-tests (Files): Likewise.
25775         (Depends-on): Add unlinkdir.
25776
25777         test-fstatat: new test, to expose Solaris 9 bugs
25778         * tests/test-stat.c (main): Factor guts...
25779         * tests/test-stat.h (test_stat_func): ...into new file.
25780         * tests/test-lstat.c (main): Factor guts...
25781         * tests/test-lstat.h (test_lstat_func): ...into new file.
25782         * tests/test-fstatat.c: New file.
25783         * modules/stat-tests (Files): Add test-stat.h.
25784         * modules/lstat-tests (Files): Add test-lstat.h.
25785         (Depends-on): Add stdbool.
25786         * modules/openat-tests (Depends-on): Add pathmax.
25787         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
25788         (Makefile.am): Run new test.
25789
25790         remove: new module, for mingw and Solaris 9 bugs
25791         * modules/remove: New file.
25792         * lib/remove.c: Likewise.
25793         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
25794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25795         * modules/stdio (Makefile.am): Use them.
25796         * lib/stdio.in.h (remove): Declare replacement.
25797         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25798         * doc/posix-functions/remove.texi (remove): Likewise.
25799         * modules/remove-tests: New test.
25800         * tests/test-remove.c: Likewise.
25801
25802         unlink: new module, for Solaris 9 bug
25803         * modules/unlink: New file.
25804         * lib/unlink.c: Likewise.
25805         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25807         * modules/unistd (Makefile.am): Use them.
25808         * lib/unistd.in.h (stat): Declare replacement.
25809         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25810         * doc/posix-functions/unlink.texi (unlink): Likewise.
25811         * modules/unlink-tests: New test.
25812         * tests/test-unlink.c: Likewise.
25813
25814         lstat: fix Solaris 9 bug
25815         * lib/lstat.c (lstat): Also check for trailing slash on
25816         non-symlink, non-directories.  Use stat module to simplify logic.
25817         * doc/posix-functions/lstat.texi (lstat): Document it.
25818         * modules/lstat-tests (Depends-on): Add errno, same-inode.
25819         (configure.ac): Check for symlink.
25820         * tests/test-lstat.c (main): Add more tests.
25821
25822         stat: add as dependency to other modules
25823         * modules/chown (Depends-on): Add stat.
25824         * modules/euidaccess (Depends-on): Likewise.
25825         * modules/fchdir (Depends-on): Likewise.
25826         * modules/isdir (Depends-on): Likewise.
25827         * modules/link (Depends-on): Likewise.
25828         * modules/lstat (Depends-on): Likewise.
25829         * modules/mkdir-p (Depends-on): Likewise.
25830         * modules/modechange (Depends-on): Likewise.
25831         * modules/open (Depends-on): Likewise.
25832         * modules/readlink (Depends-on): Likewise.
25833         * modules/same (Depends-on): Likewise.
25834
25835         stat: fix Solaris 9 bug
25836         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
25837         slash.
25838         * lib/stat.c (rpl_stat): Work around it.
25839         * doc/posix-functions/stat.texi (stat): Update documentation.
25840
25841         stat: new module, for mingw bug
25842         * modules/stat: New file.
25843         * lib/stat.c: Likewise.
25844         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25845         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25846         * modules/sys_stat (Makefile.am): Use them.
25847         * lib/sys_stat.in.h (stat): Declare replacement.
25848         * lib/openat.c (fstatat): Deal with lstat and stat being function
25849         macros.
25850         * modules/openat (Depends-on): Add inline.
25851         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25852         * doc/posix-functions/stat.texi (stat): Likewise.
25853         * modules/stat-tests: New test.
25854         * tests/test-stat.c: Likewise.
25855
25856 2009-09-19  Jim Meyering  <meyering@redhat.com>
25857
25858         syntax-check: detect unnecessary inclusion of canonicalize.h
25859         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
25860
25861 2009-09-19  Eric Blake  <ebb9@byu.net>
25862
25863         canonicalize-lgpl: adjust clients to use correct header
25864         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25865         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
25866         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
25867         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
25868         * lib/progreloc.c (includes): Likewise.
25869
25870 2009-09-19  Jim Meyering  <meyering@redhat.com>
25871
25872         test-posixtm.c: correct a comment
25873         * tests/test-posixtm.c: Correct first-line comment.
25874         Spotted by Eric Blake.
25875
25876 2009-09-16  Jim Meyering  <meyering@redhat.com>
25877
25878         posixtm-tests: make T const-correct; add a test case
25879         * tests/test-posixtm.c (T): Declare const.
25880         Add a test for -(2^31+1).
25881         Remove useless can-succeed-only-in-2002 test.
25882
25883         posixtm-tests: adjust the sole failing test
25884         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
25885         expected output matches what mktime now produces.  Cross-checked via
25886         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
25887
25888         posixtm: move #ifdef'd tests into a new module
25889         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
25890         * tests/test-posixtm.c: ... this new file.
25891         * modules/posixtm-tests: New module.
25892
25893 2009-09-19  Eric Blake  <ebb9@byu.net>
25894
25895         openat: simplify use of at-func.c
25896         * lib/at-func.c (includes): Include prerequisites here, to
25897         simplify requirements on client files.
25898         * lib/openat-priv.h: Add double-inclusion guard.
25899         * lib/faccessat.c (includes): Simplify.
25900         * lib/fchmodat.c (includes): Likewise.
25901         * lib/fchownat.c (includes): Likewise.
25902         * lib/mkdirat.c (includes): Likewise.
25903         * lib/mkfifoat.c (includes): Likewise.
25904         * lib/symlinkat.c (includes): Likewise.
25905
25906         openat: allow return of fd 0
25907         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
25908         * modules/save-cwd (Depends-on): Replace fcntl-safer with
25909         unistd-safer.
25910         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
25911         <fcntl.h>; this module does not leak fds.
25912         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
25913         must be allowed to return 0, leaving openat_safer to add the
25914         safety.
25915         (openat_permissive): Avoid writing to just-opened fd 2 if
25916         restoring the current directory fails.
25917         * lib/openat-die.c (openat_restore_fail): Add comment.
25918         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
25919         (save_cwd): Guarantee safe fd, but without use of open_safer.
25920         * tests/test-openat.c: New test.
25921         * modules/openat-tests (Files, Makefile.am): Distribute and build
25922         new file.
25923
25924         relocatable-prog-wrapper: fix build
25925         * modules/relocatable-prog-wrapper (Files): Update name of
25926         canonicalize m4 file, broken on 2009-09-17.
25927         Reported by emad hajjar <aleppos@hotmail.com>.
25928
25929 2009-09-19  Bruno Haible  <bruno@clisp.org>
25930
25931         * lib/safe-alloc.h: Use the standard header with GPL copyright.
25932         * lib/safe-alloc.c: Likewise.
25933         Reported by Ian Beckwith <ianb@erislabs.net>.
25934
25935 2009-09-18  Bruno Haible  <bruno@clisp.org>
25936
25937         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
25938         Reported by <erobles@sensacd.com.mx>.
25939
25940 2009-09-17  Eric Blake  <ebb9@byu.net>
25941
25942         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
25943         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
25944         slashes when checking if last component is missing.
25945         * tests/test-canonicalize.c (main): Test this.
25946
25947         canonicalize, canonicalize-lgpl: honor // if distinct from /
25948         * modules/canonicalize (Files): Add double-slash-root.m4.
25949         * modules/canonicalize-lgpl (Files): Likewise.
25950         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25951         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
25952         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
25953         fallback definition.
25954         (canonicalize_filename_mode): Use it to protect //.
25955         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
25956         (__realpath): Likewise.
25957         * tests/test-canonicalize.c (main): Test this.
25958         * tests/test-canonicalize-lgpl.c (main): Likewise.
25959         * modules/canonicalize-tests (Depends-on): Add same-inode.
25960         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25961
25962         canonicalize-lgpl: fix glibc bug with trailing slash
25963         * m4/canonicalize-lgpl.m4: Move contents...
25964         * m4/canonicalize.m4: ...here.
25965         (gl_CANONICALIZE_LGPL): Factor realpath check...
25966         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
25967         glibc 2.3.5 bug, fixed 2005-04-27.
25968         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
25969         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
25970         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
25971         * modules/canonicalize-lgpl (Files): Manage file rename.
25972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25973         * modules/stdlib (Makefile.am): Substitute witness.
25974         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
25975         is needed.
25976         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
25977         replacement is required.
25978         * lib/canonicalize.c (canonicalize_file_name): Likewise.
25979         * doc/glibc-functions/canonicalize_file_name.texi
25980         (canonicalize_file_name): Document this.
25981         * doc/posix-functions/realpath.texi (realpath): Likewise.
25982
25983         canonicalize-lgpl: reject non-directory with trailing slash
25984         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25985         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25986         catches failures in glibc 2.3.5.
25987         * tests/test-canonicalize.c (main): Likewise.
25988
25989         canonicalize-lgpl: use native realpath if it works
25990         * lib/canonicalize-lgpl.c (realpath): Guard with
25991         FUNC_REALPATH_WORKS.
25992         * lib/stdlib.in.h (realpath): Make declaration optional based on
25993         HAVE_REALPATH.
25994         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25995         native realpath works.
25996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25997         * modules/stdlib (Makefile.am): Substitute witness.
25998
25999         canonicalize, canonicalize-lgpl: use <stdlib.h>
26000         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26001         (Include): Mention <stdlib.h>.
26002         (configure.ac): Mention functions we provide.
26003         * modules/canonicalize (configure.ac): Likewise.
26004         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26005         realpath if canonicalize_file_name is missing.
26006         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26007         * modules/stdlib (Makefile.am): Substitute witnesses.
26008         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26009         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26010         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26011         * NEWS: Document this.
26012         * doc/glibc-functions/canonicalize_file_name.texi
26013         (canonicalize_file_name): Likewise.
26014         * doc/posix-functions/realpath.texi (realpath): Likewise.
26015         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26016
26017         test-canonicalize: consolidate into single C program
26018         * tests/test-canonicalize.sh: Delete; move setup into...
26019         * tests/test-canonicalize.c (main): ...the program, making it
26020         easier to run in debugger.  Add some tests.
26021         * modules/canonicalize-tests (Files): Remove unused file.
26022         (Depends-on): Add progname.
26023         (configure.ac, Makefile.am): Simplify.
26024
26025         test-canonicalize-lgpl: consolidate into single C program
26026         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26027         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26028         easier to run in debugger.  Add some tests.
26029         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26030         (configure.ac, Makefile.am): Simplify.
26031
26032         canonicalize: avoid resolvepath
26033         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26034         unnecessary checks.
26035         * lib/canonicalize.c (includes): Simplify.
26036         (canonicalize_file_name): Drop resolvepath implementation.
26037         * modules/canonicalize (Depends-on): Drop filenamecat.
26038
26039         canonicalize: don't lose errno
26040         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26041         over calls to free.
26042
26043         canonicalize: simplify errno handling
26044         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26045         assignment.
26046
26047         canonicalize, canonicalize-lgpl: update module dependencies
26048         * modules/canonicalize (Depends-on): Add extensions, lstat,
26049         pathmax, stdlib.
26050         (Files): Drop pathmax.h.
26051         (configure.ac): Adjust macro name.
26052         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26053         lstat, stdlib, sys_stat.
26054         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26055         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26056         extensions.
26057         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26058         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26059         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26060         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26061         declaration, if available.
26062         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26063         we can rely on the readlink module.
26064         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26065         (includes): Use <unistd.h> unconditionally.
26066
26067 2009-09-17  Eric Blake  <ebb9@byu.net>
26068
26069         maint: make Include sections of modules consistent
26070         * modules/alloca: Use only header name; no need to list #include.
26071         * modules/alloca-opt: Likewise.
26072         * modules/arpa_inet: Likewise.
26073         * modules/canon-host: Likewise.
26074         * modules/configmake: Likewise.
26075         * modules/dirent: Likewise.
26076         * modules/eealloc: Likewise.
26077         * modules/environ: Likewise.
26078         * modules/fchdir: Likewise.
26079         * modules/fcntl: Likewise.
26080         * modules/fcntl-h: Likewise.
26081         * modules/gethrxtime: Likewise.
26082         * modules/gettime: Likewise.
26083         * modules/ignore-value: Likewise.
26084         * modules/inet_ntop: Likewise.
26085         * modules/inet_pton: Likewise.
26086         * modules/inttypes: Likewise.
26087         * modules/isnand-nolibm: Likewise.
26088         * modules/isnanf-nolibm: Likewise.
26089         * modules/mbchar: Likewise.
26090         * modules/mbfile: Likewise.
26091         * modules/mbiter: Likewise.
26092         * modules/mbuiter: Likewise.
26093         * modules/netdb: Likewise.
26094         * modules/netinet_in: Likewise.
26095         * modules/nproc: Likewise.
26096         * modules/pagealign_alloc: Likewise.
26097         * modules/poll: Likewise.
26098         * modules/printf-frexp: Likewise.
26099         * modules/pthread: Likewise.
26100         * modules/putenv: Likewise.
26101         * modules/random_r: Likewise.
26102         * modules/relocatable-prog: Likewise.
26103         * modules/search: Likewise.
26104         * modules/select: Likewise.
26105         * modules/selinux-h: Likewise.
26106         * modules/settime: Likewise.
26107         * modules/signal: Likewise.
26108         * modules/size_max: Likewise.
26109         * modules/socklen: Likewise.
26110         * modules/ssize_t: Likewise.
26111         * modules/stdarg: Likewise.
26112         * modules/stdbool: Likewise.
26113         * modules/stddef: Likewise.
26114         * modules/stdint: Likewise.
26115         * modules/stdio: Likewise.
26116         * modules/stdlib: Likewise.
26117         * modules/string: Likewise.
26118         * modules/strings: Likewise.
26119         * modules/sys_file: Likewise.
26120         * modules/sys_ioctl: Likewise.
26121         * modules/sys_select: Likewise.
26122         * modules/sys_socket: Likewise.
26123         * modules/sys_stat: Likewise.
26124         * modules/sys_time: Likewise.
26125         * modules/sys_times: Likewise.
26126         * modules/sys_utsname: Likewise.
26127         * modules/sys_wait: Likewise.
26128         * modules/sysexits: Likewise.
26129         * modules/time: Likewise.
26130         * modules/times: Likewise.
26131         * modules/tmpfile: Likewise.
26132         * modules/trim: Likewise.
26133         * modules/unistd: Likewise.
26134         * modules/wchar: Likewise.
26135         * modules/wctype: Likewise.
26136
26137 2009-09-17  Bruno Haible  <bruno@clisp.org>
26138
26139         Make getdate.y compile on QNX and NetBSD 5 / i386.
26140         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26141         TIME_T_FITS_IN_LONG_INT.
26142         * lib/getdate.y (long_time_t): New type.
26143         (relative_time): Change type of 'seconds' field to long_time_t.
26144         (get_date): Update types of local variables. Check against overflow
26145         during conversion from long_time_t to time_t.
26146         Reported by Matt Kraai <kraai@ftbfs.org>
26147         and Hasso Tepper <hasso@netbsd.org>.
26148
26149 2009-09-17  Bruno Haible  <bruno@clisp.org>
26150
26151         * modules/COPYING: Update copyright years.
26152         * modules/README: Likeiwse.
26153         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26154         Reported by Ian Beckwith <ianb@erislabs.net>.
26155
26156 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26157
26158         * users.txt: Update references for gnuit package.
26159
26160 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26161
26162         * m4/getdelim.m4: Fix typo in copyright line.
26163
26164 2009-09-17  Bruno Haible  <bruno@clisp.org>
26165
26166         * lib/atoll.c: Use the standard header with GPL copyright.
26167         * lib/argz.in.h: Likewise.
26168         * lib/glob.c: Likewise.
26169         * lib/glob-libc.h: Likewise.
26170         * lib/random_r.c: Likewise.
26171         * lib/siglist.h: Likewise.
26172         * lib/strsignal.c: Likewise.
26173         Reported by Ian Beckwith <ianb@erislabs.net>.
26174
26175 2009-09-17  Eric Blake  <ebb9@byu.net>
26176
26177         rmdir: ensure correct dependency order
26178         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26179
26180 2009-09-17  Bruno Haible  <bruno@clisp.org>
26181
26182         Disable assertion that fails on NetBSD 5 / i386.
26183         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26184         Reported by Sam Steingold <sds@gnu.org>
26185         and Hasso Tepper <hasso@netbsd.org>.
26186
26187 2009-09-16  Eric Blake  <ebb9@byu.net>
26188
26189         unlinkdir: port to mingw
26190         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26191         on which no one can unlink a directory.
26192
26193         stdlib: sort witness names
26194         * modules/stdlib (Makefile.am): Sort replacements.
26195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26196         * lib/stdlib.in.h: Likewise.
26197
26198         parse-duration-tests: avoid link failure
26199         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26200         LIBINTL.
26201         Reported by Tom G. Christensen.
26202
26203         openat-tests: ensure unlinkat behaves like rmdir
26204         * tests/test-rmdir.c (main): Factor guts...
26205         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26206         * modules/rmdir-tests (Files): Ship new file.
26207         * modules/openat-tests: New test.
26208         * tests/test-unlinkat.c: Likewise.
26209
26210         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26211         * modules/rmdir-errno (Status, Notice): Now obsolete.
26212
26213         rmdir: work around cygwin 1.5.x and mingw bugs
26214         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26215         * lib/rmdir.c (rmdir): Work around it.
26216         * modules/rmdir (Status, Notice): No longer obsolete.
26217         (Files): Add dos.m4.
26218         (Depends-on): Add unistd.
26219         (configure.ac): Set witnesses.
26220         (License): Relax to LGPLv2+.
26221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26222         * modules/unistd (Makefile.am): Substitute witnesses.
26223         * lib/unistd.in.h (rmdir): Declare replacement.
26224         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26225         * modules/rmdir-tests: New tests.
26226         * tests/test-rmdir.c: Likewise.
26227
26228 2009-09-15  Eric Blake  <ebb9@byu.net>
26229
26230         fchdir: improve use of replacement functions
26231         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26232         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26233         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26234         REPLACE_CLOSEDIR.
26235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26236         * modules/sys_stat (Makefile.am): Substitute correct witness.
26237         * modules/dirent (Makefile.am): Likewise.
26238         * modules/unistd (Makefile.am): Likewise.
26239         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26240         * lib/unistd.in.h (dup): Likewise.
26241         * lib/sys_stat.in.h (fstat): Likewise.
26242
26243         maint: ignore gnulib-tool temp files
26244         * .gitignore: Ignore files created during gnulib-tool --test.
26245
26246 2009-09-13  Jim Meyering  <meyering@redhat.com>
26247
26248         posixtm: don't reject a time that specify "60" as the number of seconds
26249         * lib/posixtm.c (posixtime): The code to reject invalid dates
26250         would also reject a time specified with the .60 suffix.
26251         But POSIX allows that, in order to accommodate leap seconds.
26252         So don't reject it.
26253         (main): Adjust tests accordingly.
26254         * modules/posixtm (Depends-on): Add stpcpy.
26255
26256 2009-09-11  Jim Meyering  <meyering@redhat.com>
26257
26258         announce-gen: include [$release_type] in emitted Subject:
26259         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26260         e.g., [stable] in the emitted Subject: line.
26261
26262 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26263
26264         Remove obsolete macros from several modules.
26265         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26266         obsolete Autoconf macros with their modern counterparts.
26267         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26268         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26269         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26270         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26271         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26272         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26273         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26274         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26275         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26276         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26277         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26278         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26279         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26280         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26281         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26282         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26283         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26284         * m4/time_r.m4 (gl_TIME_R): Likewise.
26285         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26286         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26287         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26288
26289         Fix copyright header in build-aux scripts.
26290         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26291         recommendation.
26292         * build-aux/ncftpput-ftp: Likewise.
26293         * build-aux/update-copyright: Likewise.
26294
26295 2009-09-09  Eric Blake  <ebb9@byu.net>
26296
26297         test-link: allow Linux choice of errno
26298         * tests/test-link.c (main): Relax test for alternate error.
26299
26300         strndup: fix improper m4 caching
26301         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26302         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26303         (gl_PREREQ_STRNDUP): Delete.
26304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26305         * modules/string (Makefile.am): Substitute it.
26306         * lib/string.in.h (strndup): Modernize prototype.
26307
26308         getcwd: port to mingw
26309         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26310         different from the POSIX assumptions made throughout the getcwd
26311         module; fortunately, the mingw getcwd does not need replacement.
26312         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26313         * modules/getcwd-tests: New test.
26314         * tests/test-getcwd.c: Likewise.
26315
26316         link: fix platform bugs
26317         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26318         * lib/link.c (link): Work around them.  Fix related mingw bug.
26319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26320         * modules/unistd (Makefile.am): Substitute it.
26321         * lib/unistd.in.h (link): Declare replacement.
26322         * doc/posix-functions/link.texi (link): Document this.
26323         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26324
26325         test-link: consolidate into single C program, test more cases
26326         * tests/test-link.sh: Delete.
26327         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26328         at least Cygwin and Solaris.
26329         * modules/link-tests (Files): Remove unused file.
26330         (Depends-on): Add errno, sys_stat.
26331         (Makefile.am): Simplify.
26332
26333 2009-09-08  Bruno Haible  <bruno@clisp.org>
26334
26335         Work around towlower, towupper bug on mingw.
26336         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26337         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26338         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26339         * doc/posix-functions/towupper.texi: Likewise.
26340         Reported by Eric Blake.
26341
26342 2009-09-08  Jim Meyering  <meyering@redhat.com>
26343
26344         build: don't try to run autoheader if we don't use it
26345         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26346         is not used in configure.ac.
26347
26348 2009-09-08  Eric Blake  <ebb9@byu.net>
26349
26350         euidaccess: fix compilation error
26351         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26352
26353         rawmemchr: relax license
26354         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26355         okay.
26356         Reported by Jim Meyering.
26357
26358         mkfifoat: new module
26359         * modules/mkfifoat: New file.
26360         * lib/mkfifoat.c: Likewise.
26361         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26362         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26363         * modules/sys_stat (Makefile.am): Use them.
26364         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26365         * MODULES.html.sh (File system functions): Mention module.
26366         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26367         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26368         * modules/mkfifoat-tests: New test.
26369         * tests/test-mkfifoat.c: Likewise.
26370
26371         strchrnul: relax license
26372         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26373         okay.
26374         Reported by Jim Meyering.
26375
26376 2009-09-08  Eric Blake  <ebb9@byu.net>
26377
26378         fstatat: fix compilation on Solaris
26379         * lib/fstatat.c (includes): Add fcntl.h.
26380         Reported by Pádraig Brady.
26381
26382 2009-09-07  Eric Blake  <ebb9@byu.net>
26383
26384         rename: modernize replacement
26385         * modules/rename (Depends-on): Add stdio.
26386         (configure.ac): Declare witness.
26387         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26388         stdio take care of replacement.
26389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26390         * modules/stdio (Makefile.am): Substitute them.
26391         * lib/stdio.in.h (rename): Declare replacement.
26392         * lib/rename.c (includes): Allow cross-compilation to non-windows
26393         machines.
26394         * doc/posix-functions/rename.texi (rename): Improve
26395         documentation.
26396
26397         stdio: sort witness names
26398         * modules/stdio (Makefile.am): Sort replacements.
26399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26400         * lib/stdio.in.h: Likewise.
26401
26402         getcwd: minor cleanups
26403         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26404         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26405
26406         openat: provide more convenience names
26407         * modules/faccessat (configure.ac): Add C witness.
26408         * lib/unistd.in.h (readlinkat): Fix typo.
26409         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26410         convenience wrappers.
26411         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26412         wrappers in syntax checks.
26413
26414 2009-09-06  Eric Blake  <ebb9@byu.net>
26415
26416         doc: fix comments in recent patches
26417         * lib/faccessat.c: Mention correct function.
26418         * lib/fchmodat.c: Likewise.
26419         * lib/fchownat.c: Likewise.
26420         * lib/symlinkat.c: Likewise.
26421         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26422         constants.
26423
26424         faccessat, symlinkat: continue cleanup of previous patch
26425         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26426         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26427         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26429         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26430         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26431         set.
26432
26433 2009-09-06  Bruno Haible  <bruno@clisp.org>
26434
26435         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26436         (fstatat): Declare if GNULIB_FSTATAT is set.
26437         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26438         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26439         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26440         * modules/fcntl-h (Files): Remove m4/openat.m4.
26441         * modules/sys_stat (Files): Remove m4/openat.m4.
26442         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26443         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26444         * modules/unistd (Files): Remove m4/openat.m4.
26445         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26446         GNULIB_OPENAT.
26447         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26448         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26449         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26450         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26451         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26452         gl_OPENAT_DEFAULTS.
26453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26454         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26455         Don't require gl_OPENAT_DEFAULTS.
26456         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26457         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26458         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26459         (gl_OPENAT_DEFAULTS): Remove macro.
26460
26461 2009-09-06  Bruno Haible  <bruno@clisp.org>
26462
26463         * modules/openat (configure.ac): Remove unneeded witness.
26464
26465 2009-09-06  Bruno Haible  <bruno@clisp.org>
26466
26467         Set errno to ENOSYS when a function is entirely unsupported.
26468         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
26469         EOPNOTSUPP.
26470         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26471         * modules/chown (Depends-on): Remove errno.
26472
26473 2009-09-06  Bruno Haible  <bruno@clisp.org>
26474
26475         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
26476
26477 2009-09-06  Bruno Haible  <bruno@clisp.org>
26478
26479         * lib/sys_stat.in.h: Fix preprocessor command indentation.
26480
26481 2009-09-06  Ben Pfaff  <blp@gnu.org>
26482             Bruno Haible  <bruno@clisp.org>
26483
26484         Work around a glibc bug in strtok_r.
26485         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
26486         Undefine if UNDEFINE_STRTOK_R is set.
26487         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
26488         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26489         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
26490         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
26491         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
26492         UNDEFINE_STRTOK_R.
26493         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
26494
26495 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26496
26497         exclude: minor fix
26498         * lib/exclude.c: Include wctype.h
26499
26500 2009-09-06  Akim Demaille  <demaille@gostai.com>
26501
26502         bootstrap: improve error message
26503         * build-aux/bootstrap (find_tool): Upon failure, report the list
26504         of candidates.
26505         Honor the initial value of the envvar.
26506
26507 2009-09-05  Eric Blake  <ebb9@byu.net>
26508
26509         symlinkat: new module
26510         * modules/symlinkat: New file.
26511         * lib/symlinkat.c: Likewise.
26512         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
26513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26514         * modules/unistd (Makefile.am): Use them.
26515         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
26516         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
26517         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
26518         * MODULES.html.sh (File system functions): Mention module.
26519         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26520         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26521         * modules/symlinkat-tests: New test.
26522         * tests/test-symlinkat.c: Likewise.
26523
26524         test-openat-safer: add more checks
26525         * tests/test-openat-safer.c (main): Check more code paths.
26526
26527 2009-09-05  Jim Meyering  <meyering@redhat.com>
26528
26529         syntax-check: detect unnecessary inclusion of openat.h
26530         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
26531
26532 2009-09-05  Bruno Haible  <bruno@clisp.org>
26533
26534         Support towlower, towupper.
26535         * doc/posix-functions/towlower.texi: Mention module wctype.
26536         * doc/posix-functions/towupper.texi: Likewise.
26537         * lib/wctype.in.h (towlower, towupper): New functions.
26538         * tests/test-wctype.c: Include stdio.h, stdlib.h.
26539         (ASSERT): New macro.
26540         (e): New variable.
26541         (main): Test also towlower, towupper. Test WEOF argument.
26542         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26543
26544 2009-09-05  Bruno Haible  <bruno@clisp.org>
26545
26546         Fix conversion behaviour when the input is invalid.
26547         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
26548         mark occurring in first pass of indirect conversion.
26549         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
26550         input.
26551         Found by clang's static analyzer.
26552
26553 2009-09-05  Bruno Haible  <bruno@clisp.org>
26554
26555         * tests/test-striconveh.c (main): Test indirect conversion on platforms
26556         where direct conversion is possible.
26557
26558 2009-09-04  Eric Blake  <ebb9@byu.net>
26559
26560         openat: fail with ENOENT on empty name
26561         * lib/openat-proc.c (openat_proc_name): Special-case the empty
26562         buffer.
26563
26564         link-follow: fix logic bug in prior patch
26565         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
26566         reversed sense of yes and no in prior patch.  Avoid confusing
26567         compilation failure with desired semantics.
26568
26569         link-follow: accomodate mingw and cross-compilation
26570         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
26571         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
26572         cross-compilation results to -1, to make linkat easier to
26573         implement when cross-compiling.  Trivially support mingw.
26574         * modules/link-follow (configure.ac): Call new name.
26575         * NEWS: Mention this.
26576
26577 2009-09-03  Eric Blake  <ebb9@byu.net>
26578
26579         faccessat: compile replacement
26580         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
26581         needed.
26582
26583         fts: fix compilation error
26584         * lib/fts.c (includes): Re-add "openat.h", for
26585         openat_needs_fchdir.
26586
26587         faccessat: new module
26588         * modules/faccessat: New file.
26589         * lib/faccessat.c: Likewise.
26590         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26592         * modules/unistd (Makefile.am): Use it.
26593         * lib/unistd.in.h (faccessat): Declare it.
26594         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
26595         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
26596         * MODULES.html.sh (File system functions): Mention it.
26597         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
26598         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26599
26600         euidaccess: prefer POSIX over non-standard implementation
26601         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
26602         * lib/euidaccess.c (euidaccess): Use it if available.
26603
26604         openat: make template easier to use
26605         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
26606         AT_FUNC_F2 to be undefined.
26607         (VALIDATE_FLAG): New macro; use it to reject bad flags.
26608         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
26609         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
26610         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
26611         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
26612         Likewise.
26613         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
26614         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
26615         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
26616         Likewise.
26617
26618         openat: declare in POSIX headers
26619         * NEWS: Mention this.
26620         * modules/openat (configure.ac): Declare witnesses.
26621         (Depends-on): Add fcntl-h, sys_stat, unistd.
26622         (Include): Mention correct headers.
26623         * modules/fcntl-h (Depends-on): Add link-warning.
26624         (Files): Add openat.m4.
26625         (Makefile.am): Substitute witnesses.
26626         * modules/sys_stat (Files, Makefile.am): Likewise.
26627         * modules/unistd (Files, Makefile.am): Likewise.
26628         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
26629         (gl_OPENAT_DEFAULTS): New macro.
26630         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
26631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
26632         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26633         (SYS_STAT_H): Remove unused variable.
26634         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26635         * lib/fcntl--.h (includes): Remove unneeded header.
26636         * lib/openat-safer.c (includes): Likewise.
26637         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26638         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26639         appropriate headers.
26640         (__OPENAT_PREFIX): Delete.
26641         * lib/fcntl.in.h (openat): Provide declaration.
26642         (AT_FDCWD): Fix Solaris bug.
26643         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26644         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26645         * lib/fchmodat.c (includes):  Adjust to find declaration.
26646         * lib/fchownat.c (includes): Likewise.
26647         * lib/mkdirat.c (includes): Likewise.
26648         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26649         still visible.
26650
26651 2009-09-02  Eric Blake  <ebb9@byu.net>
26652
26653         errno: use consistently
26654         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26655         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26656         * lib/canonicalize.c (ELOOP): Likewise.
26657         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26658         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26659         * lib/lchown.c (EOPNOTSUPP): Likewise.
26660         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26661         * lib/savewd.c (ESTALE): Likewise.
26662         * lib/settime.c (ENOSYS): Likewise.
26663         * lib/utimens.c (ENOSYS): Likewise.
26664         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26665         * lib/chdir-safer.c (ELOOP): Likewise.
26666         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26667         * modules/c-stack (Depends-on): Add errno.
26668         * modules/canonicalize (Depends-on): Likewise.
26669         * modules/chdir-safer (Depends-on): Likewise.
26670         * modules/fdopendir (Depends-on): Likewise.
26671         * modules/inet_ntop (Depends-on): Likewise.
26672         * modules/inet_pton (Depends-on): Likewise.
26673         * modules/lchown (Depends-on): Likewise.
26674         * modules/openat (Depends-on): Likewise.
26675         * modules/savewd (Depends-on): Likewise.
26676         * modules/settime (Depends-on): Likewise.
26677         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26678
26679         fts: avoid leaking fds
26680         * modules/fts (Depends-on): Add cloexec.
26681         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26682         flag.
26683
26684         fts: make directory fds more robust
26685         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26686         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26687
26688         backupfile, chdir-long, fts, savedir: make safer
26689         * lib/backupfile.c (includes): Use "dirent--.h", since
26690         numbered_backup can write to stderr during readdir.
26691         * lib/savedir.c (includes): Likewise.
26692         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26693         emulation can write to stderr on failure.
26694         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26695         * lib/getcwd.c: Document why opendir_safer is unused.
26696         * lib/glob.c: Likewise.
26697         * lib/scandir.c: Likewise.
26698         * lib/openat-proc.c: Likewise, for open_safer.
26699         * modules/backupfile (Depends-on): Add dirent-safer.
26700         * modules/savedir (Depends-on): Likewise.
26701         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26702         * modules/chdir-long (Depends-on): Add openat-safer.
26703
26704         openat-safer: new module
26705         * modules/openat-safer: New file.
26706         * lib/openat-safer.c: Likewise.
26707         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26708         * lib/fcntl-safer.h (openat_safer): Declare.
26709         * lib/fcntl--.h (openat): Override.
26710         * MODULES.html.sh (File descriptor based I/O): Mention it.
26711         * lib/openat.h: Add double-inclusion guards.
26712         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26713         "fcntl--.h", so we can implement openat.
26714         * modules/openat-safer-tests: New test.
26715         * tests/test-openat-safer.c: New file.
26716
26717         dirent-safer: new module
26718         * modules/dirent-safer: New file.
26719         * lib/dirent--.h: Likewise.
26720         * lib/dirent-safer.h: Likewise.
26721         * lib/opendir-safer.c: Likewise.
26722         * m4/dirent-safer.m4: Likewise.
26723         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26724         * modules/dirent-safer-tests: New test.
26725         * tests/test-dirent-safer.c: New file.
26726         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26727
26728         fdopendir: optimize on mingw
26729         * lib/unistd.in.h (_gl_directory_name): New prototype.
26730         * lib/fchdir.c (_gl_directory_name): Implement it.
26731         (fchdir): Use it to simplify implementation.
26732         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26733         fchdir, when available, to avoid calling [f]chdir().
26734
26735         fdopendir: split into its own module
26736         * lib/openat.c (fdopendir): Move...
26737         * lib/fdopendir.c: ...into new file.
26738         * modules/fdopendir: New module.
26739         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
26740         * modules/openat (Depends-on): Add fdopendir.
26741         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
26742         fdopendir here.
26743         * modules/savedir (Depends-on): Only need fdopendir, not full
26744         openat.
26745         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
26746         * lib/openat.h (fdopendir): Drop prototype.
26747         * lib/dirent.in.h (fdopendir): Provide prototype.
26748         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
26749         * modules/dirent (Makefile.am): Substitute them.
26750         * MODULES.html.sh (File system functions): Mention it.
26751         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
26752         * modules/fdopendir-tests: New file.
26753         * tests/test-fdopendir.c: Likewise.
26754
26755         fchdir: use more consistent macro convention
26756         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
26757         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
26758         REPLACE_FCHDIR, rather than relying on config.h macros.
26759         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
26760         inside a single make-time REPLACE_FCHDIR block, rather than using
26761         the config.h FCHDIR_REPLACEMENT.
26762         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
26763         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
26764         Manage fstat replacement.
26765         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
26766         REPLACE_FCHDIR.
26767         * modules/sys_stat (Files): Add m4/unistd_h.m4.
26768         (Makefile.am): Substitute REPLACE_FCHDIR.
26769         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
26770         FCHDIR_REPLACEMENT.
26771         * lib/dup-safer.c (dup_safer): Likewise.
26772         * lib/dup2.c (rpl_dup2): Likewise.
26773         * lib/dup3.c (rpl_dup3): Likewise.
26774         * lib/open.c (rpl_open): Likewise.
26775
26776         fchdir: simplify error handling, and support dup3
26777         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
26778         stdbool, malloc-posix, realloc-posix.
26779         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
26780         (ensure_dirs_slot): Return false on allocation failure.
26781         (rpl_dup2): Delete.
26782         (_gl_register_dup): New function.
26783         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
26784         (_gl_register_fd): Close fd on allocation failure.
26785         * lib/fcntl.in.h (_gl_register_fd): Update signature.
26786         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
26787         prototype.
26788         (rpl_dup2_fchdir): Delete prototype.
26789         * lib/open.c (open): Update caller.
26790         * lib/dup2.c (dup2): Track fchdir metadata.
26791         * lib/dup3.c (dup3): Likewise.
26792         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
26793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
26794
26795 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26796
26797         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
26798         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
26799         don't pass arguments to AC_OUTPUT.
26800
26801 2009-09-02  Bruno Haible  <bruno@clisp.org>
26802
26803         * modules/mkdtemp (License): Relicense under LGPLv2+.
26804         Reported by Paolo Bonzini.
26805
26806 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26807
26808         Replace uses of obsolete autoconf macros in Jim's modules.
26809         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
26810         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
26811         can evoke a warning from autoconf when run with -Wobsolete
26812         enabled.  They were declared obsolete for good reasons (see
26813         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
26814         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
26815         should not continue using the deprecated macros.
26816         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
26817         obsolete Autoconf macros with modern counterparts.
26818         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26819         * m4/dos.m4 (gl_AC_DOS): Likewise.
26820         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
26821         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26822         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
26823         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
26824         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
26825         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
26826         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
26827         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
26828         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
26829         Likewise.
26830         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26831         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26832         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
26833         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
26834         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
26835         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26836
26837 2009-09-01  Eric Blake  <ebb9@byu.net>
26838
26839         fchdir: fix off-by-one bug in previous patch
26840         * lib/fchdir.c (rpl_fstat): Use correct bounds.
26841         (_gl_unregister_fd): Delete useless if.
26842
26843 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
26844
26845         maint.mk: sort the list of syntax-check rules
26846         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
26847         easier to get a sense of progress when the rules are run sequentially
26848         and take a long time.
26849
26850 2009-09-01  Simon Josefsson  <simon@josefsson.org>
26851
26852         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
26853         * modules/netinet_in: Likewise.
26854         * modules/sys_file: Likewise.
26855         * modules/sys_ioctl: Likewise.
26856         * modules/sys_select: Likewise.
26857         * modules/sys_socket: Likewise.
26858         * modules/sys_stat: Likewise.
26859         * modules/sys_time: Likewise.
26860         * modules/sys_times: Likewise.
26861         * modules/sys_utsname: Likewise.
26862         * modules/sys_wait: Likewise.
26863
26864 2009-09-01  Jim Meyering  <meyering@redhat.com>
26865
26866         fts: help ensure that return values are not ignored
26867         * lib/fts_.h (__GNUC_PREREQ): Define.
26868         (__attribute_warn_unused_result__): Define.
26869         (fts_children, fts_close, fts_open, fts_read): Declare with
26870         __attribute_warn_unused_result__.
26871
26872         fts: fts_close now fails also when closing a dir file descriptor fails
26873         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
26874         and propagate to caller, along with errno.
26875
26876         announce-gen: correct formatting in --help output
26877         * build-aux/announce-gen (usage): Move the one-line description in
26878         --help output "up", to where it belongs, just after Usage:.
26879
26880 2009-08-31  Eric Blake  <ebb9@byu.net>
26881
26882         fchdir: port to mingw
26883         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
26884         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
26885         opened, then use a substitute.
26886         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
26887         replacement.
26888         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
26889         (_gl_register_fd): No need to check stat if open already filters
26890         all directories.
26891         (fchdir): Fix error condition to match POSIX.
26892         * modules/fchdir (Depends-on): Add sys_stat.
26893         * doc/posix-functions/open.texi (open): Document the limitation.
26894         * modules/fchdir-tests: New file.
26895         * tests/test-fchdir.c: Likewise.
26896
26897         canonicalize: allow cross-testing from cygwin to mingw
26898         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
26899         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
26900         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
26901         Likewise.
26902         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
26903         target does not support symlinks.
26904         * tests/test-canonicalize-lgpl.sh: Likewise.
26905
26906         chown: avoid compilation warning on mingw
26907         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
26908         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
26909         mingw.
26910         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26911         * modules/chown (Depends-on): Add errno.
26912
26913 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26914
26915         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
26916         command.
26917
26918 2009-08-31  Jim Meyering  <meyering@redhat.com>
26919
26920         canonicalize: remove useless initialization
26921         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
26922         initialization of local, "end".
26923
26924 2009-08-30  Bruno Haible  <bruno@clisp.org>
26925
26926         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
26927         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
26928         ENOSYS.
26929
26930 2009-08-30  Bruno Haible  <bruno@clisp.org>
26931
26932         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
26933         /usr/xpg4/bin/tr when it exists.
26934         * tests/test-pipe-filter-gi1.sh: Likewise.
26935
26936 2009-08-30  Bruno Haible  <bruno@clisp.org>
26937
26938         Work around deficient /usr/bin/id program on Solaris.
26939         * tests/test-file-has-acl.sh (ID): New variable.
26940         * tests/test-set-mode-acl.sh (ID): Likewise.
26941         * tests/test-copy-acl.sh (ID): Likewise.
26942         * tests/test-copy-file.sh (ID): Likewise.
26943
26944 2009-08-30  Bruno Haible  <bruno@clisp.org>
26945
26946         New module 'xstriconveh'.
26947         * lib/xstriconveh.h: New file.
26948         * lib/xstriconveh.c: New file.
26949         * modules/xstriconveh: New file.
26950
26951 2009-08-30  Bruno Haible  <bruno@clisp.org>
26952
26953         Make it easier to use mem_cd_iconveh.
26954         * lib/striconveh.h (iconveh_t): New type.
26955         (iconveh_open, iconveh_close): New declarations.
26956         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26957         with a single 'const iconveh_t *' argument.
26958         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
26959         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26960         with a single 'const iconveh_t *' argument.
26961         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
26962         * tests/test-striconveh.c (main): Update.
26963         * NEWS: Mention the change.
26964
26965 2009-08-30  Bruno Haible  <bruno@clisp.org>
26966
26967         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
26968         problem.
26969
26970 2009-08-30  Bruno Haible  <bruno@clisp.org>
26971
26972         Work around iconv_open problem on Solaris.
26973         * lib/iconv_open-solaris.gperf: New file.
26974         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
26975         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
26976         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
26977         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
26978         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
26979         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
26980
26981 2009-08-29  Jim Meyering  <meyering@redhat.com>
26982
26983         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26984         * top/maint.mk (cvs-check): Remove target; it was just an alias
26985         to the better-named vc-diff-check.
26986         (maintainer-distcheck): Remove rule.  It was used only from
26987         the (alpha/beta/major) target, and all of its commands but one
26988         were coreutils-specific.
26989         (vc-dist): Remove rule.
26990         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26991         Run vc-diff-check, not vc-dist.
26992         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26993
26994 2009-08-27  Bruno Haible  <bruno@clisp.org>
26995
26996         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26997         of 0.
26998
26999 2009-08-27  Bruno Haible  <bruno@clisp.org>
27000
27001         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27002         compilers.
27003         * doc/func.texi: Document the SunPRO C bug.
27004
27005 2009-08-27  Bruno Haible  <bruno@clisp.org>
27006
27007         Fix link error on Solaris.
27008         * tests/test-parse-duration.c (xstrdup): Remove function.
27009
27010 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27011
27012         ignore-value: handle pointer types, too
27013         * lib/ignore-value.h (__attribute__): Remove definition.
27014         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27015         of a more concise and more-often effective "(void) i" statement.
27016         (ignore_ptr): New function to suppress warnings from functions that
27017         return pointers, and to make it explicit that one function doesn't
27018         handle all cases.
27019
27020 2009-08-25  Bruno Haible  <bruno@clisp.org>
27021
27022         dup2: work around a Linux bug.
27023         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27024         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27025         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27026         Reported by Simon Josefsson.
27027
27028 2009-08-25  Jim Meyering  <meyering@redhat.com>
27029
27030         libguestfs uses gnulib
27031         * users.txt: Add libguestfs.
27032
27033 2009-08-24  Eric Blake  <ebb9@byu.net>
27034
27035         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27036         * lib/pipe2.c (includes): Add binary-io.h.
27037         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27038
27039 2009-08-24  Bruno Haible  <bruno@clisp.org>
27040
27041         Tolerate declared but missing accept4 syscall.
27042         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27043         available.
27044         * lib/sys_socket.in.h (accept4): If the function is already present,
27045         override it.
27046         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27047         * modules/accept4 (Makefile.am): Compile accept4.c always.
27048         Reported by Paolo Bonzini and Eric Blake.
27049
27050 2009-08-23  Bruno Haible  <bruno@clisp.org>
27051
27052         New module 'accept4'.
27053         * lib/sys_socket.in.h (accept4): New declaration.
27054         * lib/accept4.c: New file.
27055         * m4/accept4.m4: New file.
27056         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27057         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27058         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27059         HAVE_ACCEPT4.
27060         * modules/accept4: New file.
27061         * doc/glibc-functions/accept4.texi: Mention the new module.
27062
27063 2009-08-24  Jim Meyering  <meyering@redhat.com>
27064
27065         progname: also set global program_invocation_name, when possible
27066         Before this change, a libtool-enabled program that calls glibc's
27067         error function would report the program name as
27068         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27069         * modules/progname (configure.ac): Check for a declaration of
27070         program_invocation_name.
27071         * lib/progname.c:  Include <errno.h>.
27072         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27073         Set program_invocation_name.
27074
27075 2009-08-23  Bruno Haible  <bruno@clisp.org>
27076
27077         * lib/dup3.c: Include <string.h>.
27078
27079 2009-08-23  Bruno Haible  <bruno@clisp.org>
27080
27081         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27082         * lib/pipe2.c (pipe2): Likewise.
27083         Suggested by Eric Blake.
27084
27085 2009-08-23  Bruno Haible  <bruno@clisp.org>
27086
27087         Tolerate declared but missing dup3 syscall.
27088         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27089         * lib/unistd.in.h (dup3): If the function is already present,
27090         override it.
27091         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27092         * modules/dup3 (Makefile.am): Compile dup3.c always.
27093         Reported by Paolo Bonzini.
27094
27095 2009-08-23  Bruno Haible  <bruno@clisp.org>
27096
27097         Tolerate declared but missing pipe2 syscall.
27098         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27099         available.
27100         * lib/unistd.in.h (pipe2): If the function is already present,
27101         override it.
27102         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27103         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27104         Reported by Paolo Bonzini.
27105
27106 2009-08-23  Bruno Haible  <bruno@clisp.org>
27107
27108         * lib/pipe2.c (pipe2): Move #ifs inside function.
27109
27110 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27111
27112         quotearg: document limitations of quote_these_too
27113         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27114         those limitations are created.
27115         * lib/quotearg.h (set_char_quoting): Document that digits and
27116         letters that are special after backslash are not permitted.
27117         (quotearg_char): Cross-reference set_char_quoting documentation.
27118
27119 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27120
27121         quotearg: implement custom_quoting_style
27122         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27123         right_quote fields.
27124         (set_custom_quoting): New public function.
27125         (quotearg_buffer_restyled): Add left_quote and right_quote
27126         arguments, handle them very much like locale quoting, and update
27127         all uses.
27128         (quotearg_n_custom): New public function.
27129         (quotearg_n_custom_mem): New public function.
27130         (quotearg_custom): New public function.
27131         (quotearg_custom_mem): New public function.
27132         * lib/quotearg.h: Prototype and document new public functions.
27133         (enum quoting_style): For escape_quoting_style and
27134         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27135         ignored even though they're otherwise like c_quoting_style.
27136         Add custom_quoting_style member and document with comparison to
27137         clocale_quoting_style.
27138         * tests/test-quotearg.c (custom_quotes): New array.
27139         (custom_results): New array.
27140         (main): Extend to test custom quoting.
27141
27142 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27143
27144         quotearg: fix right quote escaping when it's in quote_these_too
27145         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27146         quote, be sure to prepend only one backslash.
27147         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27148         (main): Test it.
27149
27150 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27151
27152         quotearg-tests: test escaping of embedded locale quotes
27153         * tests/test-quotearg.c (struct result_strings): Add member for
27154         new input.
27155         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27156         (inputs): Add new input.
27157         (results_g): Add expected results.
27158         (flag_results): Likewise.
27159         (locale_results): Likewise.
27160         (compare_strings): Check those.
27161
27162 2009-08-23  Bruno Haible  <bruno@clisp.org>
27163
27164         Tests for module 'dup3'.
27165         * modules/dup3-tests: New file.
27166         * tests/test-dup3.c: New file.
27167
27168         New module 'dup3'.
27169         * lib/unistd.in.h (dup3): New declaration.
27170         * lib/dup3.c: New file.
27171         * m4/dup3.m4: New file.
27172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27173         HAVE_DUP3.
27174         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27175         * modules/dup3: New file.
27176         * doc/glibc-functions/dup3.texi: Mention the new module.
27177
27178 2009-08-23  Bruno Haible  <bruno@clisp.org>
27179
27180         Tweak the dup2 test.
27181         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27182         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27183         the test file is still empty. Fix argument order of lseek.
27184
27185 2009-08-23  Bruno Haible  <bruno@clisp.org>
27186
27187         Avoid test link errors when the modules getopt-gnu, gettext are used.
27188         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27189         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27190
27191 2009-08-23  Bruno Haible  <bruno@clisp.org>
27192
27193         Fix getdtablesize() on mingw.
27194         * lib/getdtablesize.c (getdtablesize): Implement differently.
27195         * lib/unistd.in.h (getdtablesize): Improve comment.
27196
27197 2009-08-23  Bruno Haible  <bruno@clisp.org>
27198
27199         New module 'mkostemp'.
27200         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27201         * lib/stdlib.in.h (mksotemp): New declaration.
27202         * lib/mkostemp.c: New file, from glibc with modifications.
27203         * lib/tempname.h (GT_FILE): Remove outdated comment.
27204         (gen_tempname): Add flags argument.
27205         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27206         (__GT_FILE): Map to 1.
27207         (small_open, large_open): Remove macros.
27208         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27209         * lib/mkstemp.c (mkstemp): Update.
27210         * lib/mkdtemp.c (mkdtemp): Likewise.
27211         * m4/mkostemp.m4: New file.
27212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27213         HAVE_MKOSTEMP.
27214         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27215         HAVE_MKOSTEMP.
27216         * modules/mkostemp: New file, based on modules/mkstemp.
27217         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27218         * NEWS: Mention the change.
27219
27220 2009-08-23  Bruno Haible  <bruno@clisp.org>
27221
27222         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27223         Reported by Eric Blake.
27224
27225 2009-08-23  Bruno Haible  <bruno@clisp.org>
27226
27227         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27228         Reported by Eric Blake.
27229
27230 2009-08-23  Bruno Haible  <bruno@clisp.org>
27231
27232         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27233         * modules/pipe2 (Depends-on): Likewise.
27234
27235 2009-08-23  Eric Blake  <ebb9@byu.net>
27236
27237         fcntl-h: add O_TTY_INIT support
27238         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27239         * tests/test-fcntl-h.c (o): Test it.
27240         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27241
27242         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27243         * modules/fcntl: Move <fcntl.h> header replacement...
27244         * modules/fcntl-h: ...to new name, so as not to collide with
27245         like-named function.
27246         * tests/test-fcntl.c: Rename...
27247         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27248         * modules/fcntl-tests: Rename...
27249         * modules/fcntl-h-tests: ...to this.  Update test file name.
27250         * modules/chdir-long (Depends-on): Update clients.
27251         * modules/chdir-safer (Depends-on): Likewise.
27252         * modules/fcntl-safer (Depends-on): Likewise.
27253         * modules/fts (Depends-on): Likewise.
27254         * modules/mkancesdirs (Depends-on): Likewise.
27255         * modules/mkdir-p (Depends-on): Likewise.
27256         * modules/open (Depends-on): Likewise.
27257         * modules/savewd (Depends-on): Likewise.
27258         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27259         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27260
27261 2009-08-22  Bruno Haible  <bruno@clisp.org>
27262
27263         * modules/binary-io (License): Relicense under LGPL.
27264         * modules/pipe2 (License): Likewise.
27265
27266 2009-08-22  Bruno Haible  <bruno@clisp.org>
27267
27268         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27269         return value.
27270         * lib/pipe-filter-gi.c (filter_init): Likewise.
27271         Reported by Eric Blake.
27272
27273 2009-08-22  Bruno Haible  <bruno@clisp.org>
27274
27275         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27276         * modules/pipe (Depends-on): Add pipe2.
27277
27278 2009-08-22  Bruno Haible  <bruno@clisp.org>
27279
27280         Tests for module 'pipe2'.
27281         * modules/pipe2-tests: New file.
27282         * tests/test-pipe2.c: New file.
27283
27284         New module 'pipe2'.
27285         * lib/unistd.in.h (pipe2): New declaration.
27286         * lib/pipe2.c: New file.
27287         * m4/pipe2.m4: New file.
27288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27289         HAVE_PIPE2.
27290         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27291         * modules/pipe2: New file.
27292         * doc/glibc-functions/pipe2.texi: Mention the new module.
27293
27294 2009-08-22  Bruno Haible  <bruno@clisp.org>
27295
27296         Reference some new glibc functions.
27297         * doc/glibc-functions/accept4.texi: New file.
27298         * doc/glibc-functions/dup3.texi: New file.
27299         * doc/glibc-functions/mkostemp.texi: New file.
27300         * doc/glibc-functions/pipe2.texi: New file.
27301         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27302         (Glibc sys/socket.h): Refer to accept4.
27303         (Glibc unistd.h): Refer to dup3, pipe2.
27304         Reported by Eric Blake.
27305
27306 2009-08-22  Jim Meyering  <meyering@redhat.com>
27307             Bruno Haible  <bruno@clisp.org>
27308
27309         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27310         This makes it so packages using automake-1.11's silent-rules option
27311         can print e.g., a single "GEN    configmake.h" line, rather than
27312         the 30+ statements that perform the job.  If you want to see the
27313         actual commands, you can still run "make V=1".
27314         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27315         so that make output is abbreviated when those variables are defined
27316         appropriately.
27317         * modules/argz: Likewise.
27318         * modules/arpa_inet: Likewise.
27319         * modules/byteswap: Likewise.
27320         * modules/configmake: Likewise.
27321         * modules/dirent: Likewise.
27322         * modules/errno: Likewise.
27323         * modules/fcntl: Likewise.
27324         * modules/float: Likewise.
27325         * modules/fnmatch: Likewise.
27326         * modules/getopt-posix: Likewise.
27327         * modules/glob: Likewise.
27328         * modules/iconv_open: Likewise.
27329         * modules/inttypes: Likewise.
27330         * modules/localcharset: Likewise.
27331         * modules/locale: Likewise.
27332         * modules/math: Likewise.
27333         * modules/netdb: Likewise.
27334         * modules/netinet_in: Likewise.
27335         * modules/poll: Likewise.
27336         * modules/posix_spawnp-tests: Likewise.
27337         * modules/sched: Likewise.
27338         * modules/search: Likewise.
27339         * modules/selinux-h: Likewise.
27340         * modules/signal: Likewise.
27341         * modules/spawn: Likewise.
27342         * modules/stdarg: Likewise.
27343         * modules/stdbool: Likewise.
27344         * modules/stddef: Likewise.
27345         * modules/stdint: Likewise.
27346         * modules/stdio: Likewise.
27347         * modules/stdlib: Likewise.
27348         * modules/string: Likewise.
27349         * modules/strings: Likewise.
27350         * modules/sys_file: Likewise.
27351         * modules/sys_ioctl: Likewise.
27352         * modules/sys_select: Likewise.
27353         * modules/sys_socket: Likewise.
27354         * modules/sys_stat: Likewise.
27355         * modules/sys_time: Likewise.
27356         * modules/sys_times: Likewise.
27357         * modules/sys_utsname: Likewise.
27358         * modules/sys_wait: Likewise.
27359         * modules/sysexits: Likewise.
27360         * modules/time: Likewise.
27361         * modules/unistd: Likewise.
27362         * modules/wchar: Likewise.
27363         * modules/wctype: Likewise.
27364
27365 2009-08-22  Jim Meyering  <meyering@redhat.com>
27366
27367         announce-gen: detect write failure
27368         * build-aux/announce-gen: Add Coda at end.
27369         Remove equivalent-but-more-verbose block at top.
27370
27371 2009-08-19  Akim Demaille  <demaille@gostai.com>
27372
27373         bootstrap: --help to stdout.
27374         * bootstrap (usage): Don't send --help to stderr.
27375         Use a here doc instead of a long string.
27376
27377 2009-08-21  Eric Blake  <ebb9@byu.net>
27378
27379         test-popen-safer: split from test-popen
27380         * tests/test-popen.c (main): Move...
27381         * tests/test-popen.h: ...into new file.
27382         * tests/test-popen-safer2.c: New file.
27383         * modules/popen-tests (Files): Add test-popen.h.
27384         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27385         Suggested by Bruno Haible.
27386
27387         test-fcntl-safer: split from test-open
27388         * tests/test-open.c (main): Move...
27389         * tests/test-open.h: ...into new file.
27390         * tests/test-fcntl-safer.c: New file.
27391         * modules/open-tests (Files): Add test-open.h.
27392         * modules/fcntl-safer-tests: New file.
27393         Suggested by Bruno Haible.
27394
27395         test-fopen-safer: split from test-fopen
27396         * tests/test-fopen.c (main): Move...
27397         * tests/test-fopen.h: ...into new file.
27398         * tests/test-fopen-safer.c: New file.
27399         * modules/fopen-tests (Files): Add test-fopen.h.
27400         * modules/fopen-safer-tests: New file.
27401         Suggested by Bruno Haible.
27402
27403 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27404
27405         popen-safer: test O_CLOEXEC at run-time.
27406         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27407
27408 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27409
27410         fcntl: move more flags to the header
27411         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27412         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27413         * lib/fcntl.in.h: Do both things here.
27414
27415 2009-08-21  Jim Meyering  <meyering@redhat.com>
27416
27417         consistently remove $@-t before redirecting to it
27418         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27419         * modules/alloca-opt: Likewise.
27420         * modules/byteswap: Likewise.
27421         * modules/fnmatch: Likewise.
27422         * modules/getopt-posix: Likewise.
27423         * modules/glob: Likewise.
27424         * modules/poll: Likewise.
27425         * modules/posix_spawnp-tests: Likewise.
27426         * modules/sys_socket: Likewise.
27427         * modules/sysexits: Likewise.
27428
27429 2009-08-21  Eric Blake  <ebb9@byu.net>
27430
27431         popen: simplify access to original popen
27432         * lib/popen.c (rpl_popen): No need to worry about popen being a
27433         macro.
27434         Reported by Bruno Haible.
27435
27436 2009-08-20  Eric Blake  <ebb9@byu.net>
27437
27438         build: avoid some compiler warnings
27439         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27440         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27441         type.
27442         (new_exclude_segment, excluded_file_pattern_p)
27443         (excluded_file_name_p): Reduce scope.
27444         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27445         old-style declaration.
27446
27447 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27448
27449         * tests/test-exclude1.sh: Handle Windows EOL.
27450         * tests/test-exclude2.sh: Likewise.
27451         * tests/test-exclude3.sh: Likewise.
27452         * tests/test-exclude4.sh: Likewise.
27453         * tests/test-exclude5.sh: Likewise.
27454         * tests/test-exclude6.sh: Likewise.
27455         * tests/test-exclude7.sh: Likewise.
27456
27457 2009-08-19  Akim Demaille  <demaille@gostai.com>
27458
27459         bootstrap: find sha1sum when named gsha1sum.
27460         * bootstrap (find_tool): New.
27461         ($SHA1SUM): New.
27462         Use it.
27463
27464 2009-08-20  Jim Meyering  <meyering@redhat.com>
27465
27466         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
27467         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
27468         expression that converts "." in a file name to "\." in the resulting
27469         regexp.  Start with a dummy statement, so that prior shell variable
27470         definitions are expanded portably.  Reported by Simon Josefsson.
27471
27472 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
27473
27474         Fix polling for writeability of a screen buffer.
27475         * lib/poll.c: Distinguish input and screen buffers for the
27476         Win32 implementation.
27477         * lib/select.c: Likewise.
27478
27479 2009-08-19  Eric Blake  <ebb9@byu.net>
27480
27481         popen-safer: prevent popen from clobbering std descriptors
27482         * modules/popen-safer: New file.
27483         * lib/popen-safer.c: Likewise.
27484         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
27485         * lib/stdio--.h (popen): Provide override.
27486         * lib/stdio-safer.h (popen_safer): Provide declaration.
27487         * tests/test-popen.c (includes): Partially test this.
27488         * modules/popen-safer-tests: New file, for more tests.
27489         * tests/test-popen-safer.c: Likewise.
27490         * MODULES.html.sh (file stream based Input/Output): Mention it.
27491
27492         tests: test some of the *-safer modules
27493         * modules/fopen-safer (Depends-on): Add fopen.
27494         * modules/fcntl-safer (Depends-on): Add fcntl.
27495         * modules/stdlib-safer (Depends-on): Add stdlib.
27496         (configure.ac): Set indicator.
27497         * modules/unistd-safer (configure.ac): Likewise.
27498         * modules/tmpfile-safer (configure.ac): Likewise.
27499         (Depends-on): Add tmpfile.
27500         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
27501         active.
27502         * tests/test-fopen.c (includes): Test safer versions when they are
27503         in use.
27504         * tests/test-open.c (includes): Likewise.
27505
27506         popen: fix cygwin 1.5 bug when stdin closed
27507         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
27508         * modules/popen: New file.
27509         * modules/popen-tests: Likewise.
27510         * tests/test-popen.c: Likewise.
27511         * m4/popen.m4: Likewise.
27512         * lib/popen.c: Likewise.
27513         * lib/stdio.in.h (popen): New declaration.
27514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
27515         * modules/stdio (Makefile.am): Likewise.
27516         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
27517
27518 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
27519
27520         maint.mk: give full control over update-copyright exclusions
27521         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
27522         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
27523         (update-copyright): Don't force inclusion of top-level
27524         ChangeLog.  Don't force exclusion of all COPYING files, but make
27525         them the default exclusion instead.
27526
27527 2009-08-16  Bruno Haible  <bruno@clisp.org>
27528
27529         Fix test failures on Solaris 10.
27530         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
27531         tests when Solaris iconv() is used.
27532         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27533         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27534         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27535         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27536         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27537
27538 2009-08-16  Bruno Haible  <bruno@clisp.org>
27539
27540         Fix test failures on Solaris 10.
27541         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
27542         'tr' program and pass it as first argument.
27543         * tests/test-pipe-filter-gi1.sh: Likewise.
27544         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
27545         program as first argument.
27546         * tests/test-pipe-filter-gi1.c (main): Likewise.
27547
27548 2009-08-16  Eric Blake  <ebb9@byu.net>
27549
27550         fpurge: fix previous commits
27551         * modules/fpurge (Makefile.am): Make replacement conditional,
27552         partially reverting 2007-04-29 change; missed in previous
27553         attempt.
27554         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
27555         is missing.
27556
27557 2009-08-16  Bruno Haible  <bruno@clisp.org>
27558
27559         Clarify fpurge's effect on the file position.
27560         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
27561         * tests/test-fpurge.c (main): Make a second pass for checking the file
27562         position.
27563
27564 2009-08-16  Bruno Haible  <bruno@clisp.org>
27565
27566         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
27567         declaration of fpurge is missing.
27568         * tests/test-fpurge.c (main): Check that the file has not more contents
27569         than expected. Close the file before removing it.
27570
27571 2009-08-15  Eric Blake  <ebb9@byu.net>
27572
27573         fpurge: don't wrap working cygwin implementation
27574         * lib/fpurge.c (fpurge): Fix comment typo.
27575         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
27576         1.7 to avoid replacement.
27577         * tests/test-fpurge.c (main): Enhance test.
27578
27579 2009-08-15  Eric Blake  <ebb9@byu.net>
27580         and Jim Meyering  <meyering@redhat.com>
27581
27582         test-update-copyright: skip if perl is insufficient
27583         * tests/test-update-copyright.sh: Failure to run maintainer tool
27584         should not cause testsuite failure on cygwin 1.5.
27585
27586 2009-08-14  Eric Blake  <ebb9@byu.net>
27587
27588         doc: mention more functions added in cygwin 1.7.0
27589         * doc/posix-headers/limits.texi (limits.h): Update for recent
27590         cygwin additions.
27591         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
27592         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
27593         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
27594         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
27595         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
27596
27597 2009-08-14  Eric Blake  <ebb9@byu.net>
27598
27599         maint.mk: simplify update-copyright rule
27600         * top/maint.mk (update-copyright-local): Delete, and document how
27601         to do it in cfg.mk instead.
27602         (update-copyright-exclude-regexp): Delete, and document how to do
27603         it in .x-update-copyright instead.
27604         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
27605         exclude ChangeLog.
27606
27607 2009-08-14  Bruno Haible  <bruno@clisp.org>
27608
27609         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
27610
27611 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27612
27613         maint.mk: support update-copyright-env
27614         * top/maint.mk (update-copyright-env): Define place-holder.
27615         (update-copyright): Expand $(update-copyright-env) before
27616         invoking update-copyright.
27617
27618 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27619
27620         update-copyright: implement forced reformatting
27621         * build-aux/update-copyright: Implement and document
27622         UPDATE_COPYRIGHT_FORCE.
27623         * tests/test-update-copyright.sh: Test it.
27624
27625 2009-08-14  Eric Blake  <ebb9@byu.net>
27626         and Bruno Haible  <bruno@clisp.org>
27627
27628         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
27629         * tests/test-locale.c: Revert previous patch related to NULL.
27630         * tests/test-stdio.c: Likewise.
27631         * tests/test-stdlib.c: Likewise.
27632         * tests/test-string.c: Likewise.
27633         * tests/test-unistd.c: Likewise.
27634         * modules/time-tests (Depends-on): Add verify.
27635         * modules/wchar-tests (Depends-on): Likewise.
27636         * tests/test-time.c: Test for NULL compliance.
27637         * tests/test-wchar.c: Likewise.
27638         * modules/locale (Depends-on): Add stddef.
27639         * modules/stdio (Depends-on): Likewise.
27640         * modules/stdlib (Depends-on): Likewise.
27641         * modules/string (Depends-on): Likewise.
27642         * modules/time (Depends-on): Likewise.
27643         * modules/unistd (Depends-on): Likewise.
27644         * modules/wchar (Depends-on): Likewise.
27645         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27646         * lib/stdlib.in.h (includes): Likewise.
27647         * lib/string.in.h (includes): Likewise.
27648         * lib/time.in.h (includes): Likewise.
27649         * lib/unistd.in.h (includes): Likewise.
27650         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27651         replaced.
27652         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27653         * m4/stddef_h.m4: New file.
27654         * modules/stddef: Likewise.
27655         * lib/stddef.in.h: Likewise.
27656         * modules/stddef-tests: Likewise.
27657         * tests/test-stddef.c: Likewise.
27658         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27659         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27660         * doc/posix-headers/locale.texi (locale.h): Likewise.
27661         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27662         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27663         * doc/posix-headers/string.texi (string.h): Likewise.
27664         * doc/posix-headers/time.texi (time.h): Likewise.
27665         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27666         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27667
27668 2009-08-14  Eric Blake  <ebb9@byu.net>
27669
27670         doc: improve git diff of texinfo files
27671         * .gitattributes: Add rule for *.texi files, with hint on how to
27672         use it.
27673         Copied from m4, and based on a report by Bruno Haible.
27674
27675 2009-08-14  Bruno Haible  <bruno@clisp.org>
27676
27677         Disable multithread support by default on Cygwin 1.5.x for real.
27678         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27679
27680 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27681
27682         update-copyright: much ado about intervals
27683         * build-aux/update-copyright: Implement and document
27684         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27685         of copyright year intervals.
27686         Also, document UPDATE_COPYRIGHT_YEAR.
27687         * tests/test-update-copyright.sh: Test it.
27688
27689         update-copyright: convert 2-digit to 4-digit years
27690         * build-aux/update-copyright: Implement and document.
27691         * tests/test-update-copyright.sh: Update.
27692
27693 2009-08-14  Jim Meyering  <meyering@redhat.com>
27694
27695         test-exclude: avoid coreutils "make check" failure
27696         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27697         just as in test-argmatch.c.
27698
27699 2009-08-13  Eric Blake  <ebb9@byu.net>
27700
27701         test-dup2: fix bad assumption
27702         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27703         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27704
27705         test-version-etc: fix CRLF portability issue
27706         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27707         recognize \r.
27708         * tests/test-argp-version-etc-1.sh: Likewise.
27709
27710         getopt: update client modules
27711         * modules/argp (Depends-on): Use getopt-gnu.
27712         * modules/git-merge-changelog (Depends-on): Likewise.
27713         * modules/long-options (Depends-on): Likewise.
27714         * modules/xstrtol (Depends-on): Likewise.
27715
27716 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27717
27718         * tests/test-version-etc.sh: Don't fail on different
27719         project/version.  Don't fail on CRLF differences.  Rewrite to use
27720         multiple -e instead of multiple sed forks, suggested by Eric Blake
27721         <ebb9@byu.net>.
27722         * tests/test-argp-version-etc-1.sh: Likewise.
27723
27724 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27725
27726         * tests/test-version-etc.sh: Don't fail on different
27727         project/version.
27728
27729 2009-08-12  Bruno Haible  <bruno@clisp.org>
27730
27731         Tests for modules 'getopt-posix', 'getopt-gnu'.
27732         * modules/getopt-posix-tests: New file.
27733         * tests/test-getopt.c: New file.
27734         * tests/test-getopt.h: New file.
27735         * tests/test-getopt_long.h: New file.
27736
27737         New modules 'getopt-posix', 'getopt-gnu'.
27738         * modules/getopt-gnu: New file, renamed from modules/getopt.
27739         * modules/getopt-posix: New file.
27740         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
27741         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
27742         (gl_GETOPT): Remove macro.
27743         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
27744         Disable the test against BSD systems that declare optreset. Test
27745         against mingw bug. Test against lack of support of optional arguments
27746         on many platforms.
27747         * doc/glibc-headers/getopt.texi: Update module name and list of
27748         relevant platforms.
27749         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
27750         'getopt-gnu' and more portability problems.
27751         * NEWS: Mention the changes.
27752
27753 2009-08-12  Bruno Haible  <bruno@clisp.org>
27754
27755         Ensure that optarg etc. get declared by <unistd.h>.
27756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
27757         AC_USE_SYSTEM_EXTENSIONS.
27758         * modules/getopt (Depends-on): Add 'extensions'.
27759
27760 2009-08-12  Bruno Haible  <bruno@clisp.org>
27761
27762         Avoid test link errors.
27763         * modules/pipe-filter-ii-tests (Makefile.am): Define
27764         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
27765         * modules/pipe-filter-gi-tests (Makefile.am): Define
27766         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
27767         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27768
27769 2009-08-12  Bruno Haible  <bruno@clisp.org>
27770
27771         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
27772         gl_GETOPT_SUBSTITUTE before.
27773         (gl_GETOPT): Use it.
27774         * m4/argp.m4 (gl_ARGP): Update.
27775         Reported by Sergey Poznyakoff.
27776
27777         * m4/getopt.m4: Reorder macros.
27778         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
27779         (gl_GETOPT_SUBSTITUTE): Remove macro.
27780
27781 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27782
27783         Minor improvement in gitlog-to-changelog
27784
27785         * build-aux/gitlog-to-changelog: New option `--format' makes
27786         output format string configurable.
27787
27788 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27789
27790         Optimize exclude: use hash tables for non-wildcard patterns.
27791
27792         * lib/exclude.c: Include hash.h and mbuiter.h
27793         (struct exclude_pattern, exclude_segment): New data types.
27794         (struct exclude): Rewrite.
27795         (fnmatch_pattern_has_wildcards): New function.
27796         (new_exclude_segment, free_exclude_segment): New functions.
27797         (excluded_file_pattern_p, excluded_file_name_p): New functions.
27798         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
27799         * lib/exclude.h (is_fnmatch_pattern): New prototype.
27800         * modules/exclude: Depend on hash and mbuiter.
27801
27802         * modules/exclude-tests: New file.
27803         * tests/test-exclude.c: New file.
27804         * tests/test-exclude1.sh: New file.
27805         * tests/test-exclude2.sh: New file.
27806         * tests/test-exclude3.sh: New file.
27807         * tests/test-exclude4.sh: New file.
27808         * tests/test-exclude5.sh: New file.
27809         * tests/test-exclude6.sh: New file.
27810         * tests/test-exclude7.sh: New file.
27811
27812 2009-08-12  Bruno Haible  <bruno@clisp.org>
27813
27814         Ensure that getopt() gets declared by <unistd.h>.
27815         * lib/unistd.in.h: Conditionally include getopt.h.
27816         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
27817         Set GNULIB_UNISTD_H_GETOPT.
27818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27819         GNULIB_UNISTD_H_GETOPT.
27820         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
27821
27822 2009-08-12  Bruno Haible  <bruno@clisp.org>
27823
27824         Clarify logic.
27825         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
27826         gl_replace_getopt instead of GETOPT_H.
27827
27828 2009-08-12  Bruno Haible  <bruno@clisp.org>
27829
27830         * m4/getopt.m4: Add comments.
27831
27832 2009-08-12  Bruno Haible  <bruno@clisp.org>
27833
27834         Disable multithread support by default on Cygwin 1.5.x.
27835         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
27836         set gl_use_threads=no if not specified otherwise.
27837
27838 2009-08-11  Bruno Haible  <bruno@clisp.org>
27839
27840         Avoid compilation error on NetBSD 5.0.
27841         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
27842         * tests/test-stdio.c: Likewise.
27843         * tests/test-stdlib.c: Likewise.
27844         * tests/test-string.c: Likewise.
27845         * tests/test-unistd.c: Likewise.
27846         Reported by Greg Troxel <gdt@ir.bbn.com>
27847         at <https://savannah.gnu.org/support/?106973>.
27848
27849 2009-08-11  Bruno Haible  <bruno@clisp.org>
27850
27851         * modules/dup2-tests (Depends-on): Remove close.
27852
27853         Undo 2009-07-19 commit.
27854         * modules/acl-tests (Depends-on): Remove close.
27855         * modules/binary-io-tests (Depends-on): Likewise.
27856         * modules/closein-tests (Depends-on): Likewise.
27857         * modules/flock-tests (Depends-on): Likewise.
27858         * modules/fsync-tests (Depends-on): Likewise.
27859         * modules/lseek-tests (Depends-on): Likewise.
27860         * modules/pipe-tests (Depends-on): Likewise.
27861         * modules/posix_spawn-tests (Depends-on): Likewise.
27862         * modules/posix_spawnp-tests (Depends-on): Likewise.
27863         * modules/stat-time-tests (Depends-on): Likewise.
27864         * modules/yesno-tests (Depends-on): Likewise.
27865
27866 2009-08-10  Bruno Haible  <bruno@clisp.org>
27867
27868         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
27869
27870 2009-08-10  Bruno Haible  <bruno@clisp.org>
27871
27872         Fix a gcc warning.
27873         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
27874
27875 2009-08-10  Bruno Haible  <bruno@clisp.org>
27876
27877         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
27878         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
27879         not only the first time.
27880         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
27881         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
27882         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
27883         is 1, not only the the first time.
27884
27885 2009-08-10  Bruno Haible  <bruno@clisp.org>
27886
27887         Make it possible to use module 'gethostname' without module 'close'.
27888         * lib/unistd.in.h (close): Evoke a link error only if
27889         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27891         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27892         * modules/unistd (Makefile.am): Substitute
27893         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27894         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
27895         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27896         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27897         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27898         * modules/sys_ioctl (Makefile.am): Substitute
27899         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27900         * modules/socket (configure.ac): On native Windows, set
27901         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
27902         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27903         Reported by Sam Steingold <sds@gnu.org>.
27904
27905 2009-08-10  Bruno Haible  <bruno@clisp.org>
27906
27907         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
27908         * modules/ioctl (configure.ac): Likewise.
27909
27910 2009-08-10  Bruno Haible  <bruno@clisp.org>
27911
27912         Avoid collision between gnulib wrapper and libintl wrapper.
27913         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
27914         already defined in intl/printf.c.
27915         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
27916         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
27917
27918 2009-08-09  Bruno Haible  <bruno@clisp.org>
27919
27920         Make <sys/select.h> really self-contained, also on Solaris 10.
27921         * lib/sys_select.in.h: Include <string.h>.
27922         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
27923         Solaris 10 problem.
27924         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
27925         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
27926         Reported by Jim Meyering.
27927
27928 2009-08-09  Bruno Haible  <bruno@clisp.org>
27929
27930         Avoid warnings from 'aclocal' that are due to a use of macro name
27931         AM_XGETTEXT_OPTION that is not defined in automake.
27932         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
27933         automake.
27934         * modules/error (configure.ac): Likewise.
27935         * modules/propername (configure.ac): Likewise.
27936         * modules/vasprintf (configure.ac): Likewise.
27937         * modules/verror (configure.ac): Likewise.
27938         * modules/xprintf (configure.ac): Likewise.
27939         * modules/xvasprintf (configure.ac): Likewise.
27940
27941 2009-08-08  Bruno Haible  <bruno@clisp.org>
27942
27943         Avoid compilation error in C++ mode.
27944         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
27945         Reported by Sam Steingold <sds@gnu.org>.
27946
27947 2009-08-08  Bruno Haible  <bruno@clisp.org>
27948
27949         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
27950         for the various Unix platforms.
27951         * doc/posix-headers/limits.texi: Update platforms list regarding
27952         HOST_NAME_MAX.
27953         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27954
27955 2009-08-07  Jim Meyering  <meyering@redhat.com>
27956
27957         selinux-at: fix typo in a comment
27958         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
27959         Spotted by Paolo Bonzini.
27960
27961         selinux-at: remove redundant m4 code, add documentation
27962         * modules/selinux-at (configure.ac): Remove redundant code.
27963         LIB_SELINUX is already set via the dependent module, selinux-h.
27964         (Include): Add quotes around selinux-at.h.
27965         * lib/selinux-at.h: Add documentation.
27966         Reported by Bruno Haible in
27967         http://marc.info/?l=gnulib-bug&m=124958988300749
27968
27969 2009-08-07  Bruno Haible  <bruno@clisp.org>
27970
27971         Avoid link error on MacOS X 10.3 and 10.4.
27972         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
27973         on non-ELF systems.
27974         * lib/argp-pv.c (argp_program_version): Likewise.
27975         Reported by Simon Josefsson.
27976
27977 2009-08-07  Simon Josefsson  <simon@josefsson.org>
27978
27979         * tests/test-version-etc.sh: Use $EXEEXT.
27980
27981 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
27982
27983         update-copyright: update documentation to point to maint.mk
27984         * build-aux/update-copyright: Here.
27985
27986 2009-08-06  Jim Meyering  <meyering@redhat.com>
27987
27988         maint.mk: support update-copyright-local
27989         * top/maint.mk (update-copyright-local): Define place-holder.
27990         (update-copyright): Depend on $(update-copyright-local).
27991
27992 2009-08-06  Jim Meyering  <meyering@redhat.com>
27993
27994         selinux-at: new module
27995         Initially written for coreutils, this module will soon be
27996         used by findutils, too.
27997         * MODULES.html.sh [Misc]: Add selinux-at.
27998         * lib/selinux-at.h: New file, from coreutils.
27999         * lib/selinux-at.c: Likewise.
28000         * modules/selinux-at: Likewise.
28001         (License): Change from LGPL to GPL, since it depends
28002         on the GPL'd openat module.
28003
28004         doc: update README
28005         * README: Remove references to cogito.
28006         Remove cvs-repo-updating instructions from 2007.
28007         Don't imply that CVS is better if you have limited disk space.
28008
28009 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28010
28011         update-copyright: support C-style comments
28012         * build-aux/update-copyright: Implement and document.
28013         * tests/test-update-copyright.sh: Test.
28014
28015 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28016
28017         update-copyright: support omitted "(C)"
28018         * build-aux/update-copyright: Implement and document.  Also,
28019         allow variable whitespace before "(C)".
28020         * tests/test-update-copyright.sh: Test.
28021
28022 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28023
28024         update-copyright: don't trip on non-FSF copyright statements
28025         * build-aux/update-copyright: Fix so that the first correctly
28026         formatted FSF copyright statement is recognized no matter what
28027         appears before it.  Update documentation.
28028         * tests/test-update-copyright.sh: Test that.
28029
28030 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28031
28032         update-copyright: clean up code a little
28033         * build-aux/update-copyright: Append "_re" to the name of any
28034         variable holding a regular expression.
28035         Replace "old" and "new" with "stmt" in variable names.
28036         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28037         handled correctly.
28038         Format code more consistently.
28039
28040 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28041
28042         update-copyright-tests: improve portability
28043         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28044         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28045
28046 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28047
28048         update-copyright: support @copyright{} and &copy;
28049         * build-aux/update-copyright: Implement and document.
28050         * tests/test-update-copyright.sh: Test.
28051
28052 2009-08-04  Jim Meyering  <meyering@redhat.com>
28053
28054         update-copyright-tests: correctly test EOL=\r\n handling
28055         * tests/test-update-copyright.sh: Put \r at the end of some lines
28056         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28057
28058         maint.mk: make update-copyright exclusion list more configurable
28059         * top/maint.mk (update-copyright): Default to excluding COPYING,
28060         but allow an override, in case someone does want to update that file.
28061
28062         maint.mk: don't update copyright date in COPYING
28063         * top/maint.mk (update-copyright): Exclude COPYING.
28064
28065         maint.mk: add a copyright-updating rule
28066         * top/maint.mk (update-copyright): New rule.
28067         Derived from coreutils/Makefile.am.
28068
28069         update-copyright: rename some variables
28070         * build-aux/update-copyright: Rename a few variables for clarity.
28071         Tweak syntax.  List Joel E. Denny as coauthor.
28072
28073 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28074
28075         update-copyright: fix bug for 2-digit last year and add tests
28076         * build-aux/update-copyright: Fix bug.
28077         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28078         specified.
28079         * modules/update-copyright-tests: New
28080         * tests/test-update-copyright.sh: New.
28081
28082 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28083
28084         update-copyright: handle leading tabs in line prefix
28085         * build-aux/update-copyright: Count leading tabs as 8 spaces
28086         when computing margin.  This helps with the formatting of
28087         ChangeLogs, for example.
28088         Fix documentation a little.
28089
28090 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28091
28092         update-copyright: support EOL=\r\n
28093         * build-aux/update-copyright: Implement that.
28094
28095 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28096
28097         update-copyright: automatically format copyright statements
28098         * build-aux/update-copyright: Implement that.
28099         Also, be a little more predictable and safer by always failing
28100         when the full copyright format is not perfectly recognized as an
28101         unbroken whole.  Discussed at
28102         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28103         Rewrite documentation.
28104
28105 2009-08-03  Bruno Haible  <bruno@clisp.org>
28106
28107         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28108
28109 2009-08-02  Bruno Haible  <bruno@clisp.org>
28110
28111         Tests for module 'uname'.
28112         * modules/uname-tests: New file.
28113         * tests/test-uname.c: New file.
28114
28115         New module 'uname'.
28116         * lib/uname.c: New file.
28117         * m4/uname.m4: New file.
28118         * modules/uname: New file.
28119         * doc/posix-functions/uname.texi: Mention the new module.
28120
28121 2009-08-02  Bruno Haible  <bruno@clisp.org>
28122
28123         Tests for module 'sys_utsname'.
28124         * modules/sys_utsname-tests: New file.
28125         * tests/test-sys_utsname.c: New file.
28126
28127         New module 'sys_utsname'.
28128         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28129         * m4/sys_utsname_h.m4: New file.
28130         * modules/sys_utsname: New file.
28131         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28132
28133 2009-08-02  Bruno Haible  <bruno@clisp.org>
28134
28135         Implicitly initialize the sockets library.
28136         * lib/gethostname.c: Include sockets.h.
28137         (rpl_gethostname): Invoke gl_sockets_startup.
28138         * lib/socket.c: Include sockets.h.
28139         (rpl_socket): Invoke gl_sockets_startup.
28140         * modules/gethostname (Depends-on): Add sockets.
28141         * modules/socket (Depends-on): Likewise.
28142         * tests/test-poll.c: Don't include sockets.h.
28143         (main): Don't invoke gl_sockets_startup.
28144         * tests/test-select.c: Don't include sockets.h.
28145         (main): Don't invoke gl_sockets_startup.
28146
28147 2009-08-02  Bruno Haible  <bruno@clisp.org>
28148
28149         Allow multiple calls to gl_sockets_startup.
28150         * lib/sockets.c (initialized_sockets_version): New variable.
28151         (gl_sockets_startup): Do nothing if already called for this or a higher
28152         version.
28153         (gl_sockets_cleanup): Reset initialized_sockets_version.
28154
28155 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28156
28157         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28158         different project/version.
28159
28160 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28161             Bruno Haible  <bruno@clisp.org>
28162
28163         Tests for module 'pipe-filter-gi'.
28164         * modules/pipe-filter-gi-tests: New file.
28165         * tests/test-pipe-filter-gi1.sh: New file.
28166         * tests/test-pipe-filter-gi1.c: New file.
28167         * tests/test-pipe-filter-gi2.sh: New file.
28168         * tests/test-pipe-filter-gi2-main.c: New file.
28169         * tests/test-pipe-filter-gi2-child.c: New file.
28170
28171         New module 'pipe-filter-gi'.
28172         * lib/pipe-filter-gi.c: New file.
28173         * modules/pipe-filter-gi: New file.
28174
28175 2009-08-02  Bruno Haible  <bruno@clisp.org>
28176             Paolo Bonzini  <bonzini@gnu.org>
28177
28178         Tests for module 'pipe-filter-ii'.
28179         * modules/pipe-filter-ii-tests: New file.
28180         * tests/test-pipe-filter-ii1.sh: New file.
28181         * tests/test-pipe-filter-ii1.c: New file.
28182         * tests/test-pipe-filter-ii2.sh: New file.
28183         * tests/test-pipe-filter-ii2-main.c: New file.
28184         * tests/test-pipe-filter-ii2-child.c: New file.
28185
28186         New module 'pipe-filter-ii'.
28187         * lib/pipe-filter.h: New file.
28188         * lib/pipe-filter-ii.c: New file.
28189         * lib/pipe-filter-aux.h: New file.
28190         * modules/pipe-filter-ii: New file.
28191
28192 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28193
28194         * lib/gc-libgcrypt.c: Change copyright to FSF.
28195         * lib/gc-gnulib.c: Likewise.
28196
28197 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28198
28199         * lib/gethostname.c: Include limits.h.
28200
28201 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28202             Bruno Haible  <bruno@clisp.org>
28203
28204         Ensure HOST_NAME_MAX as part of the gethostname module.
28205         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28206         define also HOST_NAME_MAX.
28207         * tests/test-gethostname.c: Include <limits.h>.
28208         (main): Check also HOST_NAME_MAX.
28209         * doc/posix-headers/limits.texi: Document the mingw problem.
28210
28211 2009-08-02  Bruno Haible  <bruno@clisp.org>
28212
28213         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28214         Add comments.
28215
28216 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28217
28218         * lib/gethostname.c: Add Windows wrapper.
28219         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28220         * modules/gethostname: Depend on sys_socket & errno, for also
28221         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28222         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28223
28224 2009-07-31  Jim Meyering  <meyering@redhat.com>
28225
28226         getloadavg: fix symbol name in comment
28227         * lib/getloadavg.c: Correct a typo I introduced when adding
28228         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28229         Matt Kraai spotted the problem.
28230
28231 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28232
28233         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28234         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28235         code also if ! defined N_NAME_POINTER.
28236         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28237         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28238         but the n_name member is a 12-byte array.
28239
28240 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28241
28242         update-copyright: generalize comment handling
28243         * build-aux/update-copyright: Handle copyright statements
28244         within more comment styles.
28245         Document usage.
28246         Report any file with an external copyright holder or parse failure.
28247
28248 2009-07-29  Jim Meyering  <meyering@redhat.com>
28249
28250         mktime: correct setting of REPLACE_MKTIME
28251         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28252
28253         update-copyright: new module
28254         * modules/update-copyright: New file.
28255         * build-aux/update-copyright: New file.
28256         * MODULES.html.sh (maint+release support): Add update-copyright.
28257
28258 2009-07-27  Bruno Haible  <bruno@clisp.org>
28259
28260         Fix compilation error when <ctime> is used and mktime is replaced.
28261         * lib/time.in.h (mktime): New declaration.
28262         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28263         REPLACE_MKTIME instead of defining mktime in config.h.
28264         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28265         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28266         Reported by Ross McFarland <rwmcfa1@neces.com>.
28267
28268 2009-07-27  Bruno Haible  <bruno@clisp.org>
28269
28270         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28271         Reported by Matt Kraai <mkraai@beckman.com>.
28272
28273 2009-07-25  Jim Meyering  <meyering@redhat.com>
28274
28275         maint.mk: avoid warnings about missing files
28276         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28277         diagnostic when .prev-version does not exist.
28278         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28279         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28280         nonexistent cfg.mk.
28281         Suggestions from Simon Josefsson.
28282
28283 2009-07-25  Bruno Haible  <bruno@clisp.org>
28284
28285         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28286         defined as macros. Needed on QNX 6.4.1.
28287         Reported by Matt Kraai <mkraai@beckman.com>.
28288
28289 2009-07-23  Jim Meyering  <meyering@redhat.com>
28290
28291         maint.mk: invoke "make dist" with a working value of XZ_OPT
28292         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28293
28294 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28295
28296         Make fseeko.c compile on QNX.
28297         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28298
28299 2009-07-22  Peter Simons  <simons@cryp.to>
28300
28301         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28302         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28303         * lib/md4.h: Likewise.
28304         * lib/md5.h: Likewise.
28305         * lib/sha1.h: Likewise.
28306         * lib/sha256.h: Likewise.
28307         * lib/sha512.h: Likewise.
28308
28309         tests-sha1: don't assign literal string to 'char *' variable
28310         * tests/test-sha1.c (main): Declare locals with "const" to match
28311         attributes of the right hand side.
28312
28313 2009-07-21  Eric Blake  <ebb9@byu.net>
28314
28315         dup2: fix more mingw problems
28316         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28317         fd to itself.
28318         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28319         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28320         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28321         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28322         care of mingw bugs.
28323
28324 2009-07-21  Jim Meyering  <meyering@redhat.com>
28325
28326         vc-list-files: avoid failure when /bin/sh is dash
28327         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28328         On some Debian based systems, /bin/sh is a symlink to dash, and running
28329         this command would omit the "/" following each 'tests' prefix:
28330           dash -x build-aux/vc-list-files -C . tests
28331         That is because bash and dash work differently:
28332           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28333           bash ok
28334           dash odd
28335
28336 2009-07-21  Eric Blake  <ebb9@byu.net>
28337
28338         dup2-tests: test previous patch
28339         * modules/dup2-tests: New file.
28340         * tests/test-dup2.c: Likewise.
28341         * tests/test-open.c (main): Avoid unspecified behavior.
28342         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28343         test.
28344
28345         dup2: work around mingw and cygwin 1.5 bug
28346         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28348         * modules/unistd (Makefile.am): Substitute it.
28349         * lib/unistd.in.h (dup2): Declare the replacement.
28350         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28351         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28352         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28353         * modules/execute (Depends-on): Add dup2.
28354         * modules/fseterr (Depends-on): Likewise.
28355         * modules/pipe (Depends-on): Likewise.
28356         * modules/posix_spawn-internal (Depends-on): Likewise.
28357
28358 2009-07-21  Bruno Haible  <bruno@clisp.org>
28359
28360         * modules/.gitattributes: New file.
28361
28362 2009-07-20  Bruno Haible  <bruno@clisp.org>
28363
28364         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28365         (main): Use it.
28366
28367 2009-07-20  Eric Blake  <ebb9@byu.net>
28368
28369         test-pipe: make a bit more robust.
28370         * tests/test-pipe.c (myerr): Allow error messages regardless of
28371         what we do to stderr.
28372         (test_pipe): Rearrange to avoid deadlock.
28373         (child_main): Try a larger read, to ensure we avoided deadlock.
28374         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28375         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28376         if misused.
28377
28378 2009-07-19  Jim Meyering  <meyering@redhat.com>
28379
28380         fts: avoid false-positive cycle-detection
28381         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28382         for each new command line argument.
28383
28384 2009-07-19  Bruno Haible  <bruno@clisp.org>
28385
28386         Fix build error on mingw with the modules sys_select and unistd.
28387         * modules/acl-tests (Depends-on): Add close.
28388         * modules/binary-io-tests (Depends-on): Likewise.
28389         * modules/closein-tests (Depends-on): Likewise.
28390         * modules/flock-tests (Depends-on): Likewise.
28391         * modules/fsync-tests (Depends-on): Likewise.
28392         * modules/lseek-tests (Depends-on): Likewise.
28393         * modules/pipe-tests (Depends-on): Likewise.
28394         * modules/posix_spawn-tests (Depends-on): Likewise.
28395         * modules/posix_spawnp-tests (Depends-on): Likewise.
28396         * modules/stat-time-tests (Depends-on): Likewise.
28397         * modules/yesno-tests (Depends-on): Likewise.
28398
28399 2009-07-19  Bruno Haible  <bruno@clisp.org>
28400
28401         Unify conditionals.
28402         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28403         macros, not at the compiler macros.
28404         * lib/pipe.c: Likewise.
28405         * lib/execute.c: Likewise.
28406         * lib/spawni.c: Likewise.
28407
28408 2009-07-19  Bruno Haible  <bruno@clisp.org>
28409
28410         Fix handling of closed stdin/stdout/stderr on mingw.
28411         * lib/w32spawn.h: Include unistd.h.
28412         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28413         file descriptor with O_NOINHERIT flag.
28414         (fd_safer_noinherit): New function, based on fd-safer.c.
28415         (dup_safer_noinherit): New function, based on dup-safer.c.
28416         (undup_safer_noinherit): New function.
28417         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28418         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28419         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28420         instead of fd_safer.
28421         * tests/test-pipe.c: Include <windows.h>.
28422         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28423         result.
28424
28425         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28426         from main.
28427         (test_pipe): Pass an extra argument for disambiguation.
28428         (main): Invoke parent_main or child_main.
28429
28430         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28431         consistently.
28432
28433 2009-07-18  Eric Blake  <ebb9@byu.net>
28434
28435         test-pipe: fix mingw build
28436         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28437
28438 2009-07-18  Bruno Haible  <bruno@clisp.org>
28439
28440         * modules/pipe-tests (Makefile.am): Fix typo.
28441
28442 2009-07-18  Eric Blake  <ebb9@byu.net>
28443
28444         error: fix mingw build
28445         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28446         Reported by Bruno Haible.
28447
28448         error: avoid undefined use of stdout
28449         * lib/error.c (error, error_at_line): Check that fd 1 is open
28450         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28451         is handling faults and the close_stdout module wants to report the
28452         detection of closed stdout as an error.
28453
28454 2009-07-17  Eric Blake  <ebb9@byu.net>
28455
28456         pipe: be robust in face of closed fds
28457         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28458         should cause child to misbehave.
28459         * modules/pipe-tests: New module.
28460         * tests/test-pipe.c: New file.
28461         * tests/test-pipe.sh: New file.
28462         Reported by Akim Demaille.
28463
28464 2009-07-14  Bruno Haible  <bruno@clisp.org>
28465
28466         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
28467         Reported by anonymous kc.
28468
28469 2009-07-07  Jim Meyering  <meyering@redhat.com>
28470
28471         maint.mk: don't look for translatable strings in *.m4 or *.mk
28472         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
28473         when searching for translatable strings.
28474
28475 2009-07-05  Jim Meyering  <meyering@redhat.com>
28476
28477         remove superfluous parentheses in STREQ definition
28478         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
28479         * lib/getugroups.c (STREQ): Likewise.
28480         * lib/fnmatch.c (STREQ): Likewise.
28481         Spotted by Bruno Haible.
28482
28483 2009-07-04  Jim Meyering  <meyering@redhat.com>
28484
28485         argv-iter: new module
28486         * MODULES.html.sh: Add argv-iter.
28487         * lib/argv-iter.c, lib/argv-iter.h: New files.
28488         * modules/argv-iter: New file.
28489         * modules/argv-iter-tests: New file.
28490         * tests/test-argv-iter.c: Test it.
28491
28492 2009-07-04  Bruno Haible  <bruno@clisp.org>
28493
28494         Fix assertion.
28495         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
28496         contains more exact copies of a given entry than file2, leave the extra
28497         copies unpaired rather than aborting.
28498         Reported by Eric Blake.
28499
28500 2009-07-02  Bruno Haible  <bruno@clisp.org>
28501
28502         Speedup git-merge-changelog for git cherry-pick.
28503         * lib/git-merge-changelog.c (struct entries_mapping): New type.
28504         (entries_mapping_get): New function, extracted from compute_mapping.
28505         (entries_mapping_reverse_get): New function.
28506         (compute_mapping): Add a 'full' argument. Return the result in a
28507         'struct entries_mapping'.
28508         (main): Update. Access the mappings through entries_mapping_get.
28509         Reported by Eric Blake.
28510
28511 2009-07-02  Bruno Haible  <bruno@clisp.org>
28512
28513         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
28514         best_i.
28515
28516 2009-07-02  Bruno Haible  <bruno@clisp.org>
28517
28518         Speed up approximate search for matching ChangeLog entries.
28519         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28520         argument. Call fstrcmp_bounded instead of fstrcmp.
28521         (compute_mapping, try_split_merged_entry, main): Update callers.
28522
28523 2009-07-02  Bruno Haible  <bruno@clisp.org>
28524
28525         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
28526
28527 2009-06-30  Bruno Haible  <bruno@clisp.org>
28528
28529         Reduce the number of uc_is_cased calls.
28530         * lib/unicase.h (casing_suffix_context_t): Add
28531         'first_char_except_ignorable' field.
28532         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
28533         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
28534         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
28535         Update initializer.
28536         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
28537         case-ignorable characters.
28538         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
28539         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
28540         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
28541         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
28542         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
28543
28544 2009-06-30  Bruno Haible  <bruno@clisp.org>
28545
28546         Tests for module 'unicase/ignorable'.
28547         * modules/unicase/ignorable-tests: New file.
28548         * tests/unicase/test-ignorable.c: New file, generated by
28549         gen-uni-tables.
28550
28551         Tests for module 'unicase/cased'.
28552         * modules/unicase/cased-tests: New file.
28553         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
28554         * tests/unicase/test-predicate-part1.h: New file, derived from
28555         tests/unictype/test-predicate-part1.h.
28556         * tests/unicase/test-predicate-part2.h: New file, same as
28557         tests/unictype/test-predicate-part2.h.
28558
28559         Fix evaluation of "Before C" condition of FINAL_SIGMA.
28560         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
28561         (output_casing_properties): New function.
28562         (main): Call it.
28563         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
28564         * lib/unicase/cased.c: Include unictype/bitmap.h.
28565         (uc_is_cased): Define through a bitmap lookup.
28566         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
28567         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
28568         (uc_is_case_ignorable): Define through a bitmap lookup.
28569         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
28570         lib/unictype/bitmap.h.
28571         (Depends-on): Add inline. Clean up.
28572         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
28573         lib/unictype/bitmap.h.
28574         (Depends-on): Add inline. Clean up.
28575         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
28576         recognition.
28577         * tests/unicase/test-u16-tolower.c (main): Likewise.
28578         * tests/unicase/test-u32-tolower.c (main): Likewise.
28579
28580 2009-06-30  Bruno Haible  <bruno@clisp.org>
28581
28582         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
28583         * lib/unicase/u16-casemap.c: Likewise.
28584         * lib/unicase/u32-casemap.c: Likewise.
28585
28586 2009-06-29  Bruno Haible  <bruno@clisp.org>
28587
28588         Define u32_casefold as a wrapper around u32_ct_casefold.
28589         * lib/unicase/u32-casefold.c: Update.
28590         * modules/unicase/u32-casefold (Depends-on): Add
28591         unicase/u32-ct-casefold, unicase/empty-prefix-context,
28592         unicase/empty-suffix-context. Clean up.
28593
28594         Define u16_casefold as a wrapper around u16_ct_casefold.
28595         * lib/unicase/u16-casefold.c: Update.
28596         * modules/unicase/u16-casefold (Depends-on): Add
28597         unicase/u16-ct-casefold, unicase/empty-prefix-context,
28598         unicase/empty-suffix-context. Clean up.
28599
28600         Define u8_casefold as a wrapper around u8_ct_casefold.
28601         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
28602         * lib/unicase/u8-casefold.c: Update.
28603         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
28604         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28605
28606         Define u32_totitle as a wrapper around u32_ct_totitle.
28607         * lib/unicase/u32-totitle.c: Update.
28608         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
28609         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28610
28611         Define u16_totitle as a wrapper around u16_ct_totitle.
28612         * lib/unicase/u16-totitle.c: Update.
28613         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
28614         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28615
28616         Define u8_totitle as a wrapper around u8_ct_totitle.
28617         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
28618         functions.
28619         (FUNC): Delegate to U_CT_TOTITLE.
28620         * lib/unicase/u8-totitle.c: Update.
28621         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
28622         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28623
28624         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
28625         invocation.
28626         * modules/unicase/u32-tolower (Depends-on): Add
28627         unicase/empty-prefix-context, unicase/empty-suffix-context.
28628
28629         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
28630         invocation.
28631         * modules/unicase/u16-tolower (Depends-on): Add
28632         unicase/empty-prefix-context, unicase/empty-suffix-context.
28633
28634         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28635         * modules/unicase/u8-tolower (Depends-on): Add
28636         unicase/empty-prefix-context, unicase/empty-suffix-context.
28637
28638         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28639         invocation.
28640         * modules/unicase/u32-toupper (Depends-on): Add
28641         unicase/empty-prefix-context, unicase/empty-suffix-context.
28642
28643         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28644         invocation.
28645         * modules/unicase/u16-toupper (Depends-on): Add
28646         unicase/empty-prefix-context, unicase/empty-suffix-context.
28647
28648         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28649         * modules/unicase/u8-toupper (Depends-on): Add
28650         unicase/empty-prefix-context, unicase/empty-suffix-context.
28651
28652         New module 'unicase/u32-ct-casefold'.
28653         * lib/unicase/u32-ct-casefold.c: New file.
28654         * modules/unicase/u32-ct-casefold: New file.
28655
28656         New module 'unicase/u16-ct-casefold'.
28657         * lib/unicase/u16-ct-casefold.c: New file.
28658         * modules/unicase/u16-ct-casefold: New file.
28659
28660         New module 'unicase/u8-ct-casefold'.
28661         * lib/unicase/u8-ct-casefold.c: New file.
28662         * lib/unicase/u-ct-casefold.h: New file, derived from
28663         lib/unicase/u-casefold.h.
28664         * modules/unicase/u8-ct-casefold: New file.
28665
28666         New module 'unicase/u32-ct-totitle'.
28667         * lib/unicase/u32-ct-totitle.c: New file.
28668         * modules/unicase/u32-ct-totitle: New file.
28669
28670         New module 'unicase/u16-ct-totitle'.
28671         * lib/unicase/u16-ct-totitle.c: New file.
28672         * modules/unicase/u16-ct-totitle: New file.
28673
28674         New module 'unicase/u8-ct-totitle'.
28675         * lib/unicase/u8-ct-totitle.c: New file.
28676         * lib/unicase/u-ct-totitle.h: New file, derived from
28677         lib/unicase/u-totitle.h.
28678         * modules/unicase/u8-ct-totitle: New file.
28679
28680         New module 'unicase/u32-ct-tolower'.
28681         * lib/unicase/u32-ct-tolower.c: New file.
28682         * modules/unicase/u32-ct-tolower: New file.
28683
28684         New module 'unicase/u16-ct-tolower'.
28685         * lib/unicase/u16-ct-tolower.c: New file.
28686         * modules/unicase/u16-ct-tolower: New file.
28687
28688         New module 'unicase/u8-ct-tolower'.
28689         * lib/unicase/u8-ct-tolower.c: New file.
28690         * modules/unicase/u8-ct-tolower: New file.
28691
28692         New module 'unicase/u32-ct-toupper'.
28693         * lib/unicase/u32-ct-toupper.c: New file.
28694         * modules/unicase/u32-ct-toupper: New file.
28695
28696         New module 'unicase/u16-ct-toupper'.
28697         * lib/unicase/u16-ct-toupper.c: New file.
28698         * modules/unicase/u16-ct-toupper: New file.
28699
28700         New module 'unicase/u8-ct-toupper'.
28701         * lib/unicase/u8-ct-toupper.c: New file.
28702         * modules/unicase/u8-ct-toupper: New file.
28703
28704         Add context arguments to u*_casemap functions.
28705         * lib/unicase/unicasemap.h: Include unicase.h.
28706         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28707         suffix_context arguments.
28708         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28709         functions.
28710         (FUNC): Add prefix_context and suffix_context arguments. Use
28711         uc_is_cased and uc_is_case_ignorable.
28712         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28713         * lib/unicase/u16-casemap.c: Likewise.
28714         * lib/unicase/u32-casemap.c: Likewise.
28715         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28716         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28717         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28718         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28719         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28720         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28721
28722         New module 'unicase/u32-suffix-context'.
28723         * lib/unicase/u32-suffix-context.c: New file.
28724         * modules/unicase/u32-suffix-context: New file.
28725
28726         New module 'unicase/u16-suffix-context'.
28727         * lib/unicase/u16-suffix-context.c: New file.
28728         * modules/unicase/u16-suffix-context: New file.
28729
28730         New module 'unicase/u8-suffix-context'.
28731         * lib/unicase/u8-suffix-context.c: New file.
28732         * lib/unicase/u-suffix-context.h: New file.
28733         * modules/unicase/u8-suffix-context: New file.
28734
28735         New module 'unicase/empty-suffix-context'.
28736         * lib/unicase/empty-suffix-context.c: New file.
28737         * modules/unicase/empty-suffix-context: New file.
28738
28739         New module 'unicase/u32-prefix-context'.
28740         * lib/unicase/u32-prefix-context.c: New file.
28741         * modules/unicase/u32-prefix-context: New file.
28742
28743         New module 'unicase/u16-prefix-context'.
28744         * lib/unicase/u16-prefix-context.c: New file.
28745         * modules/unicase/u16-prefix-context: New file.
28746
28747         New module 'unicase/u8-prefix-context'.
28748         * lib/unicase/u8-prefix-context.c: New file.
28749         * lib/unicase/u-prefix-context.h: New file.
28750         * lib/unicase/context.h: New file.
28751         * modules/unicase/u8-prefix-context: New file.
28752
28753         New module 'unicase/empty-prefix-context'.
28754         * lib/unicase/empty-prefix-context.c: New file.
28755         * modules/unicase/empty-prefix-context: New file.
28756
28757         New module 'unicase/ignorable'.
28758         * lib/unicase/ignorable.c: New file.
28759         * modules/unicase/ignorable: New file.
28760
28761         New module 'unicase/cased'.
28762         * lib/unicase/caseprop.h: New file.
28763         * lib/unicase/cased.c: New file.
28764         * modules/unicase/cased: New file.
28765
28766         New functions for case mapping of substrings.
28767         * lib/unicase.h (casing_prefix_context_t): New type.
28768         (unicase_empty_prefix_context): New variable.
28769         (u8_casing_prefix_context, u16_casing_prefix_context,
28770         u32_casing_prefix_context, u8_casing_prefixes_context,
28771         u16_casing_prefixes_context, u32_casing_prefixes_context): New
28772         declarations.
28773         (casing_suffix_context_t): New type.
28774         (unicase_empty_suffix_context): New variable.
28775         (u8_casing_suffix_context, u16_casing_suffix_context,
28776         u32_casing_suffix_context, u8_casing_suffixes_context,
28777         u16_casing_suffixes_context, u32_casing_suffixes_context,
28778         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
28779         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
28780         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
28781         declarations.
28782
28783 2009-06-28  Jim Meyering  <meyering@redhat.com>
28784
28785         boostrap: indent only with spaces
28786         * build-aux/bootstrap: Indent only with spaces, never TABs.
28787
28788         bootstrap: split long lines
28789         * build-aux/bootstrap: Keep line length < 80.
28790
28791         bootstrap: sync from coreutils
28792         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
28793         just as autoreconf does.  Verify a list of prerequisite
28794         package-name,version-number pairs if defined in bootstrap.conf.
28795         Refer to README-prereq, if prerequisites are not satisfied.
28796
28797 2009-06-27  Eric Blake  <ebb9@byu.net>
28798
28799         tests: add test for bogus NULL definition
28800         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
28801         * tests/test-stdlib.c: Likewise.
28802         * tests/test-string.c: Likewise.
28803         * tests/test-locale.c: Likewise.
28804         * tests/test-unistd.c: Likewise.
28805         * modules/stdio-tests (Depends-on): Add verify.
28806         * modules/stdlib-tests (Depends-on): Likewise.
28807         * modules/string-tests (Depends-on): Likewise.
28808         * modules/locale-tests (Depends-on): Likewise.
28809         * modules/unistd-tests (Depends-on): Likewise.
28810
28811 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
28812
28813         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
28814         self-explaining comment.
28815         * m4/selinux-selinux-h: Update serial.
28816         (gl_LIBSELINUX): New macro, adding a warning for missing development
28817         packages to code extracted from...
28818         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
28819         Add warning for missing development packages here, too.
28820
28821 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
28822
28823         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
28824
28825 2009-06-25  Eric Blake  <ebb9@byu.net>
28826
28827         version-etc: fix regression
28828         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
28829         gcc.
28830         (version_etc): Use it, to catch bugs with trailing NULL.
28831         * lib/version-etc.c (version_etc_arn): Delete unused argument.
28832         (version_etc_va): Fix logic bug.
28833         * modules/version-etc-tests: Add test.
28834         * tests/test-version-etc.c: New file.
28835         * tests/test-version-etc.sh: Likewise.
28836
28837 2009-06-25  Sam Steingold  <sds@gnu.org>
28838
28839         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
28840         mbtowc declaration.
28841
28842 2009-06-25  Eric Blake  <ebb9@byu.net>
28843
28844         fpurge: migrate into <stdio.h>
28845         * lib/fpurge.h: Delete...
28846         * lib/stdio.in.h (fpurge): ...and declare here, instead.
28847         * lib/fpurge.c (fpurge): Change declaring header.
28848         * modules/fpurge (Files): Drop deleted file.
28849         (Depends-on): Add stdio.
28850         (configure.ac): Set witness.
28851         * modules/stdio (Makefile.am): Support fpurge macros.
28852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28853         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
28854         * lib/fflush.c: Update client.
28855         * tests/test-fpurge.c: Likewise.
28856         * NEWS: Mention the change.
28857
28858 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28859
28860         * lib/argp-version-etc.c (program_authors): Add const
28861         qualifier.
28862         * lib/version-etc.c: Fix typos in the comments.
28863         * modules/argp-version-etc: Depends on version-etc.
28864
28865 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28866
28867         argp-version-etc: new module.
28868
28869         * lib/argp-version-etc.c: New file.
28870         * lib/argp-version-etc.h: New file.
28871         * modules/argp-version-etc: New file.
28872         * modules/argp-version-etc-tests: New file.
28873         * tests/test-argp-version-etc.c: New test.
28874         * tests/test-argp-version-etc-1.sh: New test.
28875
28876 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28877
28878         Provide additional interfaces and documentation for version-etc
28879         module.
28880
28881         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
28882         interfaces.
28883         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
28884         prototypes.
28885
28886 2009-06-24  Bruno Haible  <bruno@clisp.org>
28887
28888         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
28889         HAVE_LIB${NAME} macro.
28890         Reported by Sam Steingold <sds@gnu.org>.
28891
28892 2009-06-23  Simon Josefsson  <simon@josefsson.org>
28893
28894         * modules/hash-tests (test_hash_LDADD): Link to libintl when
28895         needed.
28896
28897 2009-06-21  Bruno Haible  <bruno@clisp.org>
28898
28899         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
28900         work.
28901         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
28902         together with LIB${NAME}, LTLIB${NAME}.
28903         Reported by Sam Steingold <sds@gnu.org>.
28904
28905 2009-06-20  Jim Meyering  <meyering@redhat.com>
28906
28907         tests: make sc_require_test_exit_idiom more generic
28908         * top/maint.mk (Exit_witness_file): New overridable variable.
28909         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
28910         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
28911
28912 2009-06-19  Jim Meyering  <meyering@redhat.com>
28913
28914         hash: reverse order of src/dst parameters in an internal interface
28915         * lib/hash.c (transfer_entries): Reverse order of parameters to
28916         put DST before SRC.  Adjust callers.
28917
28918         tests: test-hash: avoid wholesale duplication
28919         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
28920         Instead, use a loop and add a single conditional.
28921
28922         tests: test-hash: allow seed selection via a command line argument
28923         * tests/test-hash.c (get_seed): New function.
28924         (main): Use it.
28925
28926 2009-06-19  Eric Blake  <ebb9@byu.net>
28927
28928         hash: avoid memory leak on allocation failure
28929         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
28930         failure.  Factor repeated algorithm...
28931         (transfer_entries): ...into new helper routine.
28932         (hash_delete): React to hash_rehash return value.
28933
28934         hash: reduce memory pressure in hash_rehash no-op case
28935         * lib/hash.c (next_prime): Avoid overflow.
28936         (hash_initialize): Factor bucket size computation...
28937         (compute_bucket_size): ...into new helper function.
28938         (hash_rehash): Use new function and open coding to reduce memory
28939         pressure, and avoid a memory leak in USE_OBSTACK code.
28940         Reported by Jim Meyering.
28941
28942 2009-06-18  Eric Blake  <ebb9@byu.net>
28943
28944         hash: make rotation more obvious
28945         * modules/hash (Depends-on): Add bitrotate and stdint.
28946         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
28947         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
28948         (SIZE_MAX): Rely on headers for definition.
28949         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
28950         (raw_hasher): Use rotr_sz.
28951         Suggested by Jim Meyering.
28952
28953         hash: fix memory leak in last patch
28954         * lib/hash.c (hash_rehash): Avoid memory leak.
28955
28956         hash: avoid no-op rehashing
28957         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
28958
28959         hash: provide default callback functions
28960         * lib/hash.c (raw_hasher, raw_comparator): New functions.
28961         (hash_initialize): Use them as defaults.
28962         * tests/test-hash.c (main): Test this.
28963
28964         hash: minor optimization
28965         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
28966         when possible.
28967         (hash_initialize): Document this promise.
28968         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
28969         * tests/test-hash.c (hash_compare_strings): Test this.
28970
28971 2009-06-18  Bruno Haible  <bruno@clisp.org>
28972
28973         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
28974         going to be replaced anyway.
28975
28976 2009-06-18  Bruno Haible  <bruno@clisp.org>
28977
28978         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
28979         in one place.
28980         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
28981         be replaced anyway.
28982
28983 2009-06-18  Eric Blake  <ebb9@byu.net>
28984
28985         hash: check for resize before insertion
28986         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28987         threshold before insertion, so that a pathological hash_rehash
28988         that fills every bucket can still trigger another rehash.
28989
28990 2009-06-18  Jim Meyering  <meyering@redhat.com>
28991
28992         hash-tests: add a loop around the small tests
28993         * tests/test-hash.c (main): Repeat small tests with selected
28994         small initial table sizes.
28995
28996 2009-06-17  Eric Blake  <ebb9@byu.net>
28997
28998         hash: minor cleanups
28999         * lib/hash.h (hash_entry): Make opaque, by moving...
29000         * lib/hash.c (hash_entry): ...here.
29001         (hash_insert): Clarify restrictions on what can be inserted.
29002         (hash_get_next): Clarify when it is safe to remove an element
29003         during traversal.
29004         (check_tuning): Skip verification when tuning is known safe.
29005         (hash_initialize): Clarify restrictions on tuning.
29006
29007 2009-06-17  Jim Meyering  <jim@meyering.net>
29008         and Eric Blake  <ebb9@byu.net>
29009
29010         hash-tests: new module
29011         * modules/hash-tests: New file.
29012         * tests/test-hash.c: New file.
29013
29014 2009-06-17  Eric Blake  <ebb9@byu.net>
29015
29016         strstr-simple: document new module
29017         * MODULES.html.sh: Document new module.
29018
29019         strstr, strcasestr: replace on platforms with broken memchr
29020         * modules/strstr: Split into...
29021         * modules/strstr-simple: ...new module that does not care about
29022         performance, but does care about glibc bug.
29023         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29024         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29025         if platform memchr is broken, per Debian bug 521737.
29026         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29027         memchr.
29028         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29029         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29030         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29031         * modules/mountlist (Depends-on): Add strstr-simple.
29032         * modules/gen-uni-tables (Depends-on): Likewise.
29033         * modules/argz (Depends-on): Add strstr.
29034
29035 2009-06-17  Bruno Haible  <bruno@clisp.org>
29036
29037         * modules/posix_spawn-internal (Depends-on): Add errno.
29038
29039 2009-06-17  Bruno Haible  <bruno@clisp.org>
29040
29041         Define missing ESTALE on Interix 3.5.
29042         * lib/errno.in.h (ESTALE): Assign a value if missing.
29043         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29044         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29045         missing.
29046         * doc/posix-headers/errno.texi: Mention the Interix bug.
29047         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29048
29049 2009-06-15  Eric Blake  <ebb9@byu.net>
29050
29051         memchr, memchr2: add valgrind exception
29052         * lib/memchr.valgrind: New file.
29053         * lib/memchr2.valgrind: New file.
29054         * modules/memchr (Files): Distribute valgrind file.
29055         * modules/memchr2 (Files): Likewise.
29056
29057         docs: memchr is no longer obsolete
29058         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29059         * lib/string.in.h (memchr): Simplify logic.
29060
29061 2009-06-14  Jim Meyering  <meyering@redhat.com>
29062
29063         link-follow: fix the "checking..." message to not mention trailing slash
29064         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29065         never considered trailing slashes.
29066
29067 2009-06-14  Bruno Haible  <bruno@clisp.org>
29068
29069         * m4/memchr.m4: Mention also the bug on IA-64.
29070         * doc/posix-functions/memchr.texi: Likewise.
29071
29072 2009-06-12  Eric Blake  <ebb9@byu.net>
29073
29074         memchr: detect broken x86_64 and alpha implementations
29075         * modules/memchr-tests (Depends-on): Move mmap detection...
29076         * modules/memchr (Depends-on): ...here.
29077         (configure.ac): Set indicator.
29078         * lib/string.in.h (memchr): Declare replacement.
29079         * modules/string (Makefile.am): Trigger replacement.
29080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29081         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29082         bugs.
29083         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29084         * modules/getpagesize (License): Relax license.
29085
29086 2009-06-11  Bruno Haible  <bruno@clisp.org>
29087
29088         * lib/idpriv.h: Add more references.
29089
29090 2009-06-08  Bruno Haible  <bruno@clisp.org>
29091
29092         Tests for module 'idpriv-droptemp'.
29093         * modules/idpriv-droptemp-tests: New file.
29094         * tests/test-idpriv-droptemp.sh: New file.
29095         * tests/test-idpriv-droptemp.su.sh: New file.
29096         * tests/test-idpriv-droptemp.c: New file.
29097
29098         New module 'idpriv-droptemp'.
29099         * lib/idpriv-droptemp.c: New file.
29100         * modules/idpriv-droptemp: New file.
29101
29102 2009-06-08  Bruno Haible  <bruno@clisp.org>
29103
29104         Tests for module 'idpriv-drop'.
29105         * modules/idpriv-drop-tests: New file.
29106         * tests/test-idpriv-drop.sh: New file.
29107         * tests/test-idpriv-drop.su.sh: New file.
29108         * tests/test-idpriv-drop.c: New file.
29109
29110         New module 'idpriv-drop'.
29111         * lib/idpriv.h: New file.
29112         * lib-idpriv-drop.c: New file.
29113         * m4/idpriv.m4: New file.
29114         * modules/idpriv-drop: New file.
29115
29116 2009-06-08  Bruno Haible  <bruno@clisp.org>
29117
29118         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29119         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29120         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29121         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29122         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29123         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29124         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29125
29126 2009-06-08  Eric Blake  <ebb9@byu.net>
29127
29128         test-strstr: use memory fence, when possible
29129         * tests/test-strstr.c (main): Use memory fence, in order to be
29130         more likely to trigger Debian bug 521737.
29131         * modules/strstr-tests (Files): Pull in additional files.
29132
29133         memchr: no longer obsolete, for wider field testing
29134         * modules/memchr (Status, Notice): Delete, this module is no
29135         longer obsolete.
29136         * modules/vasnprintf (Depends-on): Add memchr.
29137
29138 2009-06-07  Jim Meyering  <meyering@redhat.com>
29139
29140         hash: declare some functions with the warn_unused_result attribute
29141         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29142
29143 2009-06-07  Bruno Haible  <bruno@clisp.org>
29144
29145         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29146         Reported by Eric Blake.
29147
29148 2009-06-06  Eric Blake  <ebb9@byu.net>
29149
29150         test-alignof: fix typo with long double
29151         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29152         compiler error.
29153
29154 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29155
29156         Escape non-texinfo { and }s.
29157         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29158         markup error.
29159
29160 2009-06-04  Jim Meyering  <meyering@redhat.com>
29161
29162         gitlog-to-changelog: don't infloop on an empty commit log
29163         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29164         Reported by Boris Petersen <transacid@centerim.org>.
29165
29166 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29167
29168         version-etc: extend for packagers
29169         Add three new configure options, intended for packagers:
29170           --with-packager="packager name"
29171           --with-packager-version="packager-specific version"
29172           --with-packager-bug-reports="packager bug reporting"
29173         An example with coreutils:
29174           $ ./configure \
29175             --with-packager=Gentoo \
29176             --with-packager-bug-report=http://bugs.gentoo.org/ \
29177             --with-packager-version="patchset 1.6"
29178           $ ./src/ls --version | head -n2
29179           ls (GNU coreutils) 7.1-dirty
29180           Packaged by Gentoo (patchset 1.6)
29181         Note that the bug reporting info via --help doesn't show up because
29182         coreutils uses its own custom emit_bug_reporting_address() implementation
29183         in src/system.h.  If it didn't, it'd look like:
29184           $ ./src/ls --help | tail -n4
29185           Report bugs to <bug-coreutils@gnu.org>.
29186           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29187           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29188           General help using GNU software: <http://www.gnu.org/gethelp/>.
29189         * lib/version-etc.c: Print new information, if provided.
29190         * m4/version-etc.m4: New file.
29191         * modules/version-etc (Files): Add m4/version-etc.m4.
29192         (configure.ac): Add gl_VERSION_ETC.
29193
29194 2009-05-31  Bruno Haible  <bruno@clisp.org>
29195
29196         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29197         and 'int64_t'.
29198         * modules/alignof-tests (Dependencies): Add stdint.
29199         Reported by Eric Blake.
29200
29201 2009-05-31  Bruno Haible  <bruno@clisp.org>
29202
29203         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29204         restriction due to compiler bugs.
29205         Reported by Eric Blake.
29206
29207 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29208             Bruno Haible  <bruno@clisp.org>
29209
29210         Fix test-alignof failure.
29211         * lib/alignof.h (alignof_slot): New macro.
29212         (alignof_type): New macro, with the same semantics as the previous
29213         'alignof'.
29214         (alignof): Alias to alignof_slot.
29215         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29216         check that the results are usable as constant expressions.
29217
29218 2009-05-31  Bruno Haible  <bruno@clisp.org>
29219
29220         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29221         * tests/test-memchr.c (main): Check that memchr does not read past the
29222         first occurrence of the byte.
29223         * tests/test-strstr.c (main): Update comment.
29224         Suggested by Eric Blake.
29225
29226 2009-05-30  Bruno Haible  <bruno@clisp.org>
29227
29228         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29229         detail how to use dumpbin.
29230         Reported by David Byron <dbyron@dbyron.com>.
29231
29232 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29233
29234         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29235
29236 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29237
29238         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29239
29240 2009-05-28  Bruno Haible  <bruno@clisp.org>
29241
29242         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29243         build-aux/ files.
29244
29245 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29246
29247         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29248
29249 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29250
29251         * gnulib-tool (sed_transform_main_lib_file)
29252         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29253         regexps.
29254
29255 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29256
29257         * tests/test-strstr.c: Add another self-test.
29258         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29259         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29260
29261 2009-05-23  Bruno Haible  <bruno@clisp.org>
29262
29263         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29264         change.
29265
29266 2009-05-21  Bruno Haible  <bruno@clisp.org>
29267
29268         Simplify use of mode_t varargs.
29269         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29270         uses 'mode_t' or 'int'.
29271         * lib/openat.c (openat): Likewise.
29272         * lib/open-safer.c (open_safer): Likewise.
29273         * m4/mode_t.m4: New file.
29274         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29275         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29276         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29277         * modules/open (Files): Add m4/mode_t.m4.
29278         * modules/openat (Files): Likewise.
29279         * modules/fcntl-safer (Files): Likewise.
29280         Suggested by Eric Blake.
29281
29282 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29283
29284         * doc/glibc-functions/fallocate.texi: New file.
29285         * doc/gnulib.texi: Include it.
29286
29287 2009-05-21  Eric Blake  <ebb9@byu.net>
29288             Bruno Haible  <bruno@clisp.org>
29289
29290         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29291         invocations.
29292         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29293
29294 2009-05-21  Eric Blake  <ebb9@byu.net>
29295             Bruno Haible  <bruno@clisp.org>
29296
29297         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29298         include_next. Fix of 2008-11-20 commit.
29299         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29300         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29301         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29302         NEXT_MATH_H.
29303         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29304         instead of NEXT_MATH_H.
29305
29306 2009-05-21  Bruno Haible  <bruno@clisp.org>
29307
29308         Avoid redefinition warnings for SIZE_MAX.
29309         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29310         Reported by Simon Josefsson.
29311
29312 2009-05-21  Bruno Haible  <bruno@clisp.org>
29313
29314         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29315         AC_CACHE_VAL.
29316
29317 2009-05-20  Bruno Haible  <bruno@clisp.org>
29318
29319         Make zeroptr.h work on mingw.
29320         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29321         mprotect.
29322         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29323         * modules/memchr2-tests (configure.ac): Likewise.
29324         * modules/memcmp-tests (configure.ac): Likewise.
29325         * modules/memmem-tests (configure.ac): Likewise.
29326         * modules/memrchr-tests (configure.ac): Likewise.
29327         Reported by Simon Josefsson.
29328
29329 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29330
29331         * tests/test-glob.c: Include string.h for strcmp prototype.
29332
29333 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29334
29335         * modules/getdelim (Depends-on): Add explicit stdint, although it
29336         was implicitly already pulled in via realloc-posix.
29337         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29338
29339 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29340
29341         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29342         G. Christensen" <tgc@jupiterrise.com>.
29343         * m4/sys_socket_h.m4: Check for sa_family_t.
29344         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29345         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29346         * tests/test-sys_socket.c: Check that sa_family_t works.
29347
29348 2009-05-18  Eric Blake  <ebb9@byu.net>
29349
29350         maint.mk: allow gnulib_dir in VPATH build
29351         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29352
29353 2009-05-15  Jim Meyering  <meyering@redhat.com>
29354
29355         maint.mk: Give gnulib_dir a default definition.
29356         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29357         Thus, most packages no longer need to specify this variable in cfg.mk
29358
29359 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29360
29361         rename.m4: fix typos that would make non-mingw cross-configure fail
29362         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29363
29364 2009-05-13  Eric Blake  <ebb9@byu.net>
29365
29366         mmap-anon: avoid out-of-order autoconf expansion
29367         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29368         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29369         * modules/memchr-tests (Depends-on): Add extensions.
29370         * modules/memchr2-tests (Depends-on): Add extensions.
29371         * modules/memcmp-tests (Depends-on): Add extensions.
29372         * modules/memmem-tests (Depends-on): Add extensions.
29373         * modules/memrchr-tests (Depends-on): Add extensions.
29374
29375 2009-05-13  Bruno Haible  <bruno@clisp.org>
29376
29377         Make some tests ISO C 99 compliant.
29378         * tests/zerosize-ptr.h: New file.
29379         * tests/test-memchr.c: Include zerosize-ptr.h.
29380         (main): Use a zero-size object pointer instead of NULL.
29381         * tests/test-memchr2.c: Include zerosize-ptr.h.
29382         (main): Use a zero-size object pointer instead of NULL.
29383         * tests/test-memcmp.c: Include zerosize-ptr.h.
29384         (main): Use a zero-size object pointer instead of NULL.
29385         * tests/test-memmem.c: Include zerosize-ptr.h.
29386         (main): Use a zero-size object pointer instead of NULL.
29387         * tests/test-memrchr.c: Include zerosize-ptr.h.
29388         (main): Use a zero-size object pointer instead of NULL.
29389         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29390         m4/mmap-anon.m4.
29391         (Depends-on): Add getpagesize.
29392         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29393         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29394         m4/mmap-anon.m4.
29395         (Depends-on): Add getpagesize.
29396         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29397         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29398         m4/mmap-anon.m4.
29399         (Depends-on): Add getpagesize.
29400         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29401         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29402         m4/mmap-anon.m4.
29403         (Depends-on): Add getpagesize.
29404         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29405         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29406         m4/mmap-anon.m4.
29407         (Depends-on): Add getpagesize.
29408         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29409
29410 2009-05-12  Bruno Haible  <bruno@clisp.org>
29411
29412         Tests for module 'alignof'.
29413         * modules/alignof-tests: New file.
29414         * tests/test-alignof.c: New file.
29415
29416 2009-05-12  Bruno Haible  <bruno@clisp.org>
29417
29418         Fix alignof macro.
29419         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29420         vendor compilers that are always correct.
29421
29422 2009-05-12  Bruno Haible  <bruno@clisp.org>
29423
29424         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29425         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29426         not whether its fully works.
29427
29428 2009-05-12  Bruno Haible  <bruno@clisp.org>
29429
29430         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29431
29432 2009-05-12  Jim Meyering  <meyering@redhat.com>
29433
29434         * top/maint.mk: Adjust backslash alignment.
29435
29436 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29437
29438         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29439
29440 2009-05-11  Eric Blake  <ebb9@byu.net>
29441
29442         argp: avoid undefined behavior
29443         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29444         macros.
29445
29446 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29447
29448         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29449         user.name to prevent git commit from complaining.
29450
29451 2009-05-10  Bruno Haible  <bruno@clisp.org>
29452
29453         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29454         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29455         it rewrites every file name only once.
29456         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29457
29458 2009-05-08  Bruno Haible  <bruno@clisp.org>
29459
29460         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29461         instead of 'max'.
29462
29463 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29464
29465         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
29466         sockaddr_storage test.
29467
29468 2009-05-07  Simon Josefsson  <simon@josefsson.org>
29469
29470         * modules/sys_socket (Makefile.am): Substitute
29471         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
29472         * m4/sys_socket_h.m4: Check for sockaddr_storage.
29473         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
29474         * tests/test-sys_socket.c: Check sockaddr_storage.
29475
29476 2009-05-08  Bruno Haible  <bruno@clisp.org>
29477
29478         New module 'alignof'.
29479         * lib/alignof.h: New file.
29480         * modules/alignof: New file.
29481
29482 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29483             Bruno Haible  <bruno@clisp.org>
29484
29485         Fix test-file-has-acl on FreeBSD.
29486         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
29487         mask is implicitly added.
29488         * tests/test-file-has-acl.c: Include <signal.h>.
29489         (main): Terminate the test after 5 seconds.
29490         * modules/acl-tests (configure.ac): Check for alarm function.
29491
29492 2009-05-04  Bruno Haible  <bruno@clisp.org>
29493
29494         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
29495         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
29496         * modules/errno (configure.ac): Drop AC_REQUIRE.
29497         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
29498         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
29499
29500 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29501
29502         * modules/glob-tests: New module.
29503         * tests/test-glob.c: Add.
29504
29505 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29506
29507         * modules/fnmatch-tests: New module.
29508         * tests/test-fnmatch.c: Add.
29509
29510 2009-05-04  Eric Blake  <ebb9@byu.net>
29511
29512         maint: make the new no-submodule-changes rule VPATH-safe
29513         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
29514
29515 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29516             Bruno Haible  <bruno@clisp.org>
29517
29518         acl: Fix infinite loop on FreeBSD.
29519         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29520         of return value from acl_get_entry.
29521         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
29522         Likewise.
29523
29524 2009-05-03  Bruno Haible  <bruno@clisp.org>
29525
29526         * lib/acl-internal.h (acl_entries): Clarify return value.
29527         * lib/acl_entries.c (acl_entries): Likewise.
29528
29529 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29530
29531         Bug fix in acl module.
29532         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
29533
29534 2009-05-03  Bruno Haible  <bruno@clisp.org>
29535
29536         Create gperf-generated file in the source dir, not in the build dir.
29537         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
29538         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
29539         * modules/unicase/locale-language (unicase/locale-languages.h):
29540         Likewise.
29541         * modules/unicase/special-casing (unicase/special-casing-table.h):
29542         Likewise.
29543         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
29544         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
29545         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
29546         Reported by Ralf Wildenhues.
29547
29548 2009-05-03  Bruno Haible  <bruno@clisp.org>
29549
29550         * modules/fnmatch (Description, configure.ac): Taken from
29551         fnmatch-posix.
29552         * modules/fnmatch-posix: Turn into a symbolic reference to the
29553         'fnmatch' module, and deprecate.
29554         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
29555
29556 2009-05-03  Bruno Haible  <bruno@clisp.org>
29557
29558         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
29559         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
29560         Reported by Ralf Wildenhues.
29561
29562 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29563
29564         * m4/fnmatch.m4: Fix fnmatch re-define.
29565
29566 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29567
29568         priv-set: new module and tests; adapt write-any-file
29569         * lib/priv-set.c: New file.
29570         * lib/priv-set.h: New file.
29571         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
29572         * lib/write-any-file.c: Simplify by using priv-set module.
29573         * m4/priv-set.m4: New file.
29574         * modules/priv-set: New file.
29575         * modules/unlinkdir: Add dependency on priv-set module.
29576         * modules/write-any-file: Likewise.
29577
29578         Tests for module 'priv-set'.
29579         * modules/priv-set-tests: New file.
29580         * tests/test-priv-set.c: New file.
29581
29582 2009-05-03  Jim Meyering  <meyering@redhat.com>
29583             Bruno Haible  <bruno@clisp.org>
29584
29585         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
29586         use the converted UTF-8 variant of the name instead.
29587
29588 2009-05-03  Jim Meyering  <meyering@redhat.com>
29589
29590         tests: tighten some getdate tests
29591         * tests/test-getdate.c (main): Tighten tests: require equality,
29592         not just greater than.  Set TZ envvar to UTC0.
29593
29594 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29595
29596         getdate: correctly interpret "next monday" when run on a Monday
29597         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
29598         that e.g., "next tues" (when run on a tuesday) results in a date
29599         that is one week in the future, and not today's date.
29600         I.e., add a week when the wday is the same as the current one.
29601         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
29602         and earlier by Martin Bernreuther and Jan Minář.
29603         * tests/test-getdate.c (main): Check that "next DAY" is always in
29604         the future and that "last DAY" is always in the past.
29605
29606 2009-05-02  Jim Meyering  <meyering@redhat.com>
29607
29608         build: ensure that a release build fails when a submodule is unclean
29609         * top/maint.mk (no-submodule-changes): New rule.
29610         (alpha beta major): Depend on it.
29611
29612 2009-05-02  Bruno Haible  <bruno@clisp.org>
29613
29614         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
29615         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
29616         shell variable gl_fnmatch_required to detect which variant is
29617         requested.
29618         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
29619         gl_FUNC_FNMATCH_POSIX.
29620         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
29621         exclude fnmatch-posix.
29622
29623 2009-05-02  Bruno Haible  <bruno@clisp.org>
29624
29625         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
29626         * modules/mbsrtowcs (License): Change to LGPLv2+.
29627         * modules/strnlen1 (License): Likewise.
29628         Reported by Simon Josefsson.
29629
29630 2009-05-02  Bruno Haible  <bruno@clisp.org>
29631
29632         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29633         "cross".
29634         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29635         gnulib-tool was called with option --source-base=lib.
29636
29637 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29638
29639         Use automake *-local hooks without commands, for extensibility.
29640         * modules/localcharset (Makefile.am): Rename install-exec-local
29641         rule to install-exec-localcharset, and make it a prerequisite of
29642         install-exec-local.  Likewise, rename the uninstall-local rule to
29643         uninstall-localcharset, and make it a prerequisite of the former.
29644
29645 2009-05-01  Bruno Haible  <bruno@clisp.org>
29646
29647         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29648         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29649         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29650         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29651         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29652         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29653         m4/locale-zh.m4, m4/codeset.m4.
29654
29655         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29656         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29657         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29658         m4/locale-zh.m4.
29659
29660         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29661         REPLACE_WCRTOMB if mbstate_t must be replaced.
29662         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29663         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29664
29665 2009-05-01  Bruno Haible  <bruno@clisp.org>
29666
29667         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29668         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29669         dngettext, dcngettext, textdomain, bindtextdomain,
29670         bind_textdomain_codeset): Undefine before redefining.
29671
29672 2009-04-30  Bruno Haible  <bruno@clisp.org>
29673
29674         Fix bug introduced on 2009-04-25.
29675         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29676         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29677         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29678         is defined.
29679         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29680         is defined.
29681         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29682         is defined.
29683         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29684
29685 2009-04-28  Bruno Haible  <bruno@clisp.org>
29686
29687         Comment tweaks.
29688         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29689         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29690         * lib/unicase.h (u*_casexfrm): Likewise.
29691         Reported by Paolo Bonzini.
29692
29693 2009-04-28  Bruno Haible  <bruno@clisp.org>
29694
29695         Fix a compilation error.
29696         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29697         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29698         Reported by Jim Meyering.
29699
29700 2009-04-27  Bruno Haible  <bruno@clisp.org>
29701
29702         New module 'libunistring'.
29703         * modules/libunistring: New file.
29704         * m4/libunistring.m4: New file.
29705         * MODULES.html.sh (Unicode string functions): Add it.
29706
29707 2009-04-27  Eric Blake  <ebb9@byu.net>
29708
29709         maint.mk: allow package-specific header to provide <config.h>
29710         * top/maint.mk (sc_require_config_h): New variable.
29711         (sc_require_config_h, sc_require_config_h_first): Use it.
29712
29713 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29714
29715         * top/maint.mk (sc_avoid_if_before_free): Except
29716         useless-if-before-free script.
29717
29718 2009-04-27  Eric Blake  <ebb9@byu.net>
29719
29720         maintainer-makefile: depend on all required helper scripts
29721         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29722         useless-if-before-free.
29723         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29724         version, rather than assuming gnulib checkout is available.
29725         Reported by Simen Josefsson.
29726
29727 2009-04-26  Bruno Haible  <bruno@clisp.org>
29728
29729         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29730         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29731         "../" or "..".
29732
29733 2009-04-26  Bruno Haible  <bruno@clisp.org>
29734
29735         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
29736         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
29737         AC_LIB_HAVE_LINKFLAGS.
29738
29739 2009-04-26  Bruno Haible  <bruno@clisp.org>
29740
29741         Simplify calling convention of u*_conv_from_encoding.
29742         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
29743         u32_conv_from_encoding): Expect a resultbuf argument and return the
29744         result directly as a pointer.
29745         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
29746         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
29747         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
29748         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
29749         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
29750         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29751         Update.
29752         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
29753         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
29754         * lib/vasnprintf.c (VASNPRINTF): Update.
29755         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
29756         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
29757         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
29758         * NEWS: Mention the change.
29759
29760 2009-04-26  Bruno Haible  <bruno@clisp.org>
29761
29762         Simplify calling convention of u*_conv_to_encoding.
29763         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29764         u32_conv_to_encoding): Expect a resultbuf argument and return the
29765         result directly as a pointer.
29766         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29767         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
29768         freeing scaled_offsets if mem_iconveha failed.
29769         * lib/unicase/u-casexfrm.h (FUNC): Update.
29770         * lib/uninorm/u-normxfrm.h (FUNC): Update.
29771         * lib/vasnprintf.c (VASNPRINTF): Update.
29772         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
29773         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
29774         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
29775         * NEWS: Mention the change.
29776
29777 2009-04-26  Bruno Haible  <bruno@clisp.org>
29778
29779         Avoid test failures on AIX and OSF/1.
29780         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
29781         malloc(0).
29782         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29783         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29784         Likewise.
29785         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
29786         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
29787         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
29788         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
29789         * doc/posix-functions/malloc.texi: Document the portability problem
29790         related to malloc(0).
29791
29792 2009-04-26  Bruno Haible  <bruno@clisp.org>
29793
29794         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
29795         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
29796         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
29797
29798 2009-04-25  Bruno Haible  <bruno@clisp.org>
29799
29800         Avoid link error when creating a namespace clean library.
29801         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
29802         as macro with arguments if already defined as an alias.
29803         * lib/signbitf.c (gl_signbitf): Don't undefine.
29804         * lib/signbitd.c (gl_signbitd): Don't undefine.
29805         * lib/signbitl.c (gl_signbitl): Don't undefine.
29806
29807 2009-04-25  Jim Meyering  <meyering@redhat.com>
29808
29809         vc-list-files: fix another quoting bug
29810         * build-aux/vc-list-files: Avoid sed backslash expansion
29811         of pathological directory names.
29812
29813 2009-04-25  Eric Blake  <ebb9@byu.net>
29814
29815         vc-list-files: fix shell quoting error
29816         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
29817         timestamp.
29818
29819 2009-04-25  Jim Meyering  <meyering@redhat.com>
29820
29821         vc-list-files: restore lost functionality with subdir argument
29822         * build-aux/vc-list-files: When given a non-"." sub-directory
29823         argument, substitute the $dir/ prefix back onto each resulting name.
29824         Otherwise, coreutils' root_tests check would fail.
29825
29826 2009-04-24  Eric Blake  <ebb9@byu.net>
29827
29828         vc-list-files: ignore git symlinks
29829         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
29830         than ls-files, to ignore git symlinks.
29831
29832         maint.mk: import improvements from m4
29833         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
29834         (move_if_change): Delete unused macro.
29835         (news-date-check, vc-diff-check): Support VPATH builds.
29836         (announcement): Likewise.  Split --bootstrap-tools list...
29837         (boostrap-tools): ...into separate list, which can be overridden
29838         in cfg.mk.
29839         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
29840         requiring dependency on useless-if-before-free module.
29841         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
29842         Support VPATH builds.
29843
29844 2009-04-24  Jim Meyering  <meyering@redhat.com>
29845
29846         maint.mk: remove coreutils-specific rules and variables
29847         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
29848         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
29849         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
29850
29851         maint.mk: remove obsolete rule
29852         * top/maint.mk (rel-check): Remove rule.
29853         (WGET, WGETFLAGS): Remove now-unused variables.
29854
29855 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29856
29857         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
29858         consistency.
29859
29860         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
29861         '$(PATH_SEPARATOR)' instead of ':'.
29862
29863 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29864
29865         * lib/getopt1.c (main): Use 'const' for static array.
29866
29867 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29868
29869         * top/maint.mk: Sync with coreutils.
29870         * NEWS: Explain incompatibilities.
29871
29872 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29873             Bruno Haible  <bruno@clisp.org>
29874
29875         Fix cross-compilation results.
29876         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
29877         statement, as third argument of AC_TRY_RUN.
29878         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29879         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29880         Likewise.
29881         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29882         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
29883         Likewise.
29884         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29885         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
29886         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
29887
29888 2009-04-20  Bruno Haible  <bruno@clisp.org>
29889
29890         Avoid test failure on mingw.
29891         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
29892
29893 2009-04-20  Bruno Haible  <bruno@clisp.org>
29894
29895         Avoid compilation error on mingw.
29896         * modules/localename-tests (Depends-on): Add locale.
29897
29898 2009-04-19  Bruno Haible  <bruno@clisp.org>
29899
29900         Support for building a shared library on Windows platforms.
29901         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
29902         (main): Test the presence of UNINORM_NFC here.
29903         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
29904         (main): Test the presence of UNINORM_NFD here.
29905         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
29906         (main): Test the presence of UNINORM_NFKC here.
29907         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
29908         (main): Test the presence of UNINORM_NFKD here.
29909
29910 2009-04-19  Bruno Haible  <bruno@clisp.org>
29911
29912         Avoid a compiler warning.
29913         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
29914         Change type of variable 'sequence'.
29915
29916 2009-04-19  Bruno Haible  <bruno@clisp.org>
29917
29918         * modules/configmake (Makefile.am): When the contents of configmake.h
29919         does not change, arrange to preserve its modification time.
29920
29921 2009-04-17  Simon Josefsson  <simon@josefsson.org>
29922
29923         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
29924         gettext domain.
29925
29926 2009-04-16  Jim Meyering  <meyering@redhat.com>
29927
29928         useless-if-before-free: improve conversion code
29929         * build-aux/useless-if-before-free: Adjust code-in-comment to match
29930         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
29931
29932 2009-04-14  Bruno Haible  <bruno@clisp.org>
29933
29934         * modules/fcntl (Depends-on): Add extensions.
29935         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
29936
29937 2009-04-12  Ben Pfaff  <blp@gnu.org>
29938
29939         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
29940         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
29941
29942 2009-03-20  Ben Pfaff  <blp@gnu.org>
29943
29944         Make rename replace existing destinations on Windows.
29945         * m4/rename.m4: Add test for Mingw.
29946         * lib/rename.c: Add rename replacement that uses MoveFileEx with
29947         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
29948         * doc/posix-functions/rename.texi: Document.
29949
29950 2009-04-10  Bruno Haible  <bruno@clisp.org>
29951
29952         New include file "iconveh.h".
29953         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
29954         * lib/striconveh.h: Include it.
29955         (enum iconv_ilseq_handler): Remove definition.
29956         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
29957         striconveh.h.
29958         * lib/striconveha.c: Include striconveh.h.
29959         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29960         * modules/striconveh (Files): Add lib/iconveh.h.
29961         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
29962         lib/striconveh.h.
29963
29964 2009-04-10  Bruno Haible  <bruno@clisp.org>
29965
29966         * lib/uniconv.h: Update comment.
29967
29968 2009-04-10  Bruno Haible  <bruno@clisp.org>
29969
29970         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
29971         always.
29972         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29973         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29974         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29975         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
29976         "unistring-notinline.h", so that the function gets defined always.
29977         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29978         * lib/unistr/u8-uctomb.c: Likewise.
29979         * lib/unistr/u16-mbtouc.c: Likewise.
29980         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29981         * lib/unistr/u16-uctomb.c: Likewise.
29982         * lib/unistr/u32-mbtouc.c: Likewise.
29983         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29984         * lib/unistr/u32-uctomb.c: Likewise.
29985
29986 2009-04-10  Bruno Haible  <bruno@clisp.org>
29987
29988         Mark 'utime' obsolete.
29989         * modules/utime (Status, Notice): New sections.
29990         Suggested by Jim Meyering.
29991
29992         Fix cross-compile guess for utime test.
29993         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29994         autoconf.
29995         * doc/posix-functions/utime.texi: Give more precisions.
29996         Reported by Jan <ipif@ymail.com>.
29997
29998 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29999
30000         filevercmp: correct today's change
30001         * lib/filevercmp.c: Also handle coreutils' test inputs.
30002         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30003
30004         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30005         for reporting it.
30006         * lib/filevercmp.c: Special handle for "", "." and "..".
30007         * tests/test-filevercmp.c: Enlarge the set suite.
30008
30009 2009-04-07  Jim Meyering  <meyering@redhat.com>
30010
30011         useless-if-before-free: show how to remove braced useless free, too
30012         * build-aux/useless-if-before-free: still only in a comment, though.
30013
30014 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30015
30016         maint.mk: import changes to syntax-check macros from coreutils
30017         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30018         Use them in the relevant macros.
30019
30020 2009-04-06  Bruno Haible  <bruno@clisp.org>
30021
30022         Fix unportable use of bit-fields.
30023         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30024         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30025         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30026
30027 2009-04-06  Bruno Haible  <bruno@clisp.org>
30028
30029         Avoid test failures on AIX and OSF/1.
30030         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30031         that malloc(0) = NULL.
30032         * tests/unicase/test-u8-tolower.c (check): Likewise.
30033         * tests/unicase/test-u8-totitle.c (check): Likewise.
30034         * tests/unicase/test-u8-toupper.c (check): Likewise.
30035         * tests/unicase/test-u16-casefold.c (check): Likewise.
30036         * tests/unicase/test-u16-tolower.c (check): Likewise.
30037         * tests/unicase/test-u16-totitle.c (check): Likewise.
30038         * tests/unicase/test-u16-toupper.c (check): Likewise.
30039         * tests/unicase/test-u32-casefold.c (check): Likewise.
30040         * tests/unicase/test-u32-tolower.c (check): Likewise.
30041         * tests/unicase/test-u32-totitle.c (check): Likewise.
30042         * tests/unicase/test-u32-toupper.c (check): Likewise.
30043         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30044         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30045         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30046         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30047         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30048         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30049         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30050         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30051         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30052         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30053         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30054         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30055
30056 2009-04-05  Bruno Haible  <bruno@clisp.org>
30057
30058         Work around an autoconf limitation.
30059         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30060         comment line if it would be longer than 3 KB.
30061
30062 2009-04-05  Bruno Haible  <bruno@clisp.org>
30063
30064         Avoid test failure with libiconv-1.13.
30065         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30066         of the expected test results.
30067
30068 2009-04-05  Bruno Haible  <bruno@clisp.org>
30069
30070         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30071         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30072         that it should be installed.
30073
30074 2009-04-05  Bruno Haible  <bruno@clisp.org>
30075
30076         * gnulib-tool: New option --copy-file.
30077         (func_usage): Document it.
30078         (func_dest_tmpfilename): Moved out of func_import.
30079         (func_add_file, func_update_file): New functions, extracted from
30080         func_import.
30081         (func_import): Update.
30082
30083 2009-04-05  Karl Berry  <karl@gnu.org>
30084
30085         * README: prominently mention gnulib-tool.
30086         Rearrange sections so getting the code is near the top.
30087
30088 2009-04-05  Bruno Haible  <bruno@clisp.org>
30089
30090         * lib/unicase.h: Mention u*_cmp2.
30091         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30092         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30093         * lib/unicase/ulc-casecmp.c: Likewise.
30094         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30095         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30096         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30097         unistr/u8-cmp.
30098         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30099         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30100         unistr/u16-cmp.
30101         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30102         unistr/u32-cmp.
30103
30104         * lib/uninorm.h: Mention u*_cmp2.
30105         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30106         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30107         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30108         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30109         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30110         unistr/u8-cmp.
30111         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30112         unistr/u16-cmp.
30113         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30114         unistr/u32-cmp.
30115
30116         New module 'unistr/u32-cmp2'.
30117         * lib/unistr/u32-cmp2.c: New file.
30118         * modules/unistr/u32-cmp2: New file.
30119
30120         New module 'unistr/u16-cmp2'.
30121         * lib/unistr/u16-cmp2.c: New file.
30122         * modules/unistr/u16-cmp2: New file.
30123
30124         New module 'unistr/u8-cmp2'.
30125         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30126         * lib/unistr/u8-cmp2.c: New file.
30127         * lib/unistr/u-cmp2.h: New file.
30128         * modules/unistr/u8-cmp2: New file.
30129
30130 2009-04-05  Bruno Haible  <bruno@clisp.org>
30131
30132         * lib/unictype.h (uc_property_is_valid): New macro.
30133         * tests/unictype/test-pr_byname.c (main): Use it.
30134
30135         * lib/unistr.h: Doc fixes.
30136         * lib/uniconv.h: Doc fixes.
30137         * lib/unictype.h: Doc fixes.
30138
30139 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30140
30141         Port coreutils 7.2 to Solaris 8.
30142
30143         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30144         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30145         for Solaris 8.  This is a bit of a hack, as it means it's the
30146         caller's responsibility to add -lnsl if needed, but most likely it
30147         won't be needed since only getaddrinfo uses this and getaddrinfo
30148         isn't needed on Solaris 8.
30149
30150         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30151         problem to Solaris 8 encountered with coreutils 7.2, which
30152         resulted in a message "fnmatch.c:292: warning: passing argument 4
30153         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30154         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30155
30156 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30157
30158         * m4/ld-version-script.m4: Add FIXME comment.
30159
30160 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30161
30162         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30163         SOVERSION variable.
30164
30165 2009-04-02  Bruno Haible  <bruno@clisp.org>
30166
30167         * Makefile (info, html, dvi, pdf): Combine the rules.
30168         Suggested by Jim Meyering.
30169
30170 2009-04-01  Bruno Haible  <bruno@clisp.org>
30171
30172         * Makefile (info, html, dvi, pdf): New targets.
30173         Reported by Reuben Thomas <rrt@sc3d.org>.
30174
30175 2009-04-01  Bruno Haible  <bruno@clisp.org>
30176
30177         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30178         can be put into PATH.
30179         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30180
30181 2009-04-01  Bruno Haible  <bruno@clisp.org>
30182
30183         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30184
30185 2009-04-01  Bruno Haible  <bruno@clisp.org>
30186
30187         Rename module 'visibility'.
30188         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30189         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30190         * doc/gnulib.texi: Update.
30191         * MODULES.html.sh (Misc): Update.
30192         * NEWS: Mention the change.
30193
30194 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30195
30196         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30197         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30198         Eric Blake <ebb9@byu.net> for review.
30199         * MODULES.html.sh: Add lib-msvc-compat.
30200         * doc/gnulib.texi: Link to new section.
30201         * m4/ld-output-def.m4: New file.
30202         * doc/ld-output-def.texi: New file.
30203
30204 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30205
30206         Rename ld-version-script to lib-symbol-versions.  Suggested by
30207         Bruno Haible <bruno@clisp.org>.
30208         * modules/ld-version-script: Renamed to lib-symbol-versions.
30209         * doc/ld-version-script.texi: Fix module name.
30210         * MODULES.html.sh: Add lib-symbol-versions.
30211
30212 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30213
30214         * modules/u64-tests: New file.
30215         * tests/test-u64.c: New file.
30216
30217 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30218
30219         * MODULES.html.sh: Mention u64.
30220         * modules/u64: New module.
30221         * modules/crypto/sha512: Depend on u64 module instead of providing
30222         u64.h.
30223
30224 2009-03-27  Eric Blake  <ebb9@byu.net>
30225
30226         test-strerror: make debugging EAI_SYSTEM easier
30227         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30228         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30229         failure was EAI_SYSTEM.
30230
30231 2009-03-25  Bruno Haible  <bruno@clisp.org>
30232
30233         Fix a problem with --enable-relocatable on Solaris 7.
30234         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30235         since 2008-02-24.
30236
30237 2009-03-25  Eric Blake  <ebb9@byu.net>
30238
30239         test-sockets: avoid gcc warning
30240         * tests/test-sockets.c (main): Silence compiler warning.
30241
30242 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30243
30244         New modules nproc, pthread, contributed by Glen Lenker.
30245
30246         * MODULES.html.sh: Add pthread, nproc.
30247         * lib/nproc.c: New file.
30248         * lib/nproc.h: New file.
30249         * lib/pthread.in.h: New file.
30250         * m4/pthread.m4: New file.
30251         * modules/nproc: New file.
30252         * modules/pthread: New file.
30253
30254 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30255
30256         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30257         New variable.
30258
30259 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30260
30261         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30262         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30263         * tests/test-filevercmp.c: Add tests for backup suffixes.
30264
30265 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30266
30267         * modules/stdlib (Depends-on): Add stdint, needed when defining
30268         struct random_data on, for example, HP-UX 10.20.  Reported by
30269         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30270
30271 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30272
30273         * lib/readline.c (readline): Call fflush on stdout after printing
30274         prompt.
30275
30276 2009-03-20  Bruno Haible  <bruno@clisp.org>
30277
30278         Remove dependency from 'close' module to -lws2_32 on native Windows.
30279         * lib/close-hook.h: New file.
30280         * lib/close-hook.c: New file.
30281         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30282         w32sock.h.
30283         (_gl_close_fd_maybe_socket): Remove function.
30284         (rpl_close): Invoke execute_all_close_hooks instead of
30285         _gl_close_fd_maybe_socket.
30286         * lib/sockets.c: Include close-hook.h, w32sock.h.
30287         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30288         (close_sockets_hook): New variable.
30289         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30290         (gl_sockets_cleanup): Unregister it.
30291         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30292         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30293         * modules/close-hook: New file.
30294         * modules/close (Files): Remove lib/w32sock.h.
30295         (Depends-on): Add close-hook.
30296         (Link): Remove section.
30297         * modules/sockets (Files): Add lib/w32sock.h.
30298         (Depends-on): Add close-hook.
30299         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30300         invocation.
30301         * NEWS: Mention that LIB_CLOSE is gone.
30302
30303 2009-03-23  Eric Blake  <ebb9@byu.net>
30304
30305         signal-tests: test previous patch
30306         * tests/test-signal.c: New file.
30307         * modules/signal-tests: Likewise.
30308
30309         signal.h: always support 'volatile sig_atomic_t'
30310         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30311         (gl_SIGNAL_H_DEFAULTS): Add a default.
30312         * modules/signal (Makefile.am): Substitute if needed.
30313         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30314         users can blindly add volatile.
30315         * doc/posix-headers/signal.texi (signal.h): Document it.
30316         Reported by Matthew Woehlke.
30317
30318 2009-03-23  Jim Meyering  <meyering@redhat.com>
30319
30320         pathmax: PATH_MAX: use pathconf only when available
30321         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30322         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30323         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30324         This avoids a link failure in a PSP cross-compilation environment
30325         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30326
30327         * lib/vasnprintf.c (divide): Fix typo in comment.
30328
30329 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30330
30331         * gnulib-tool (func_filter_filelist): Fix comment.
30332
30333 2009-03-20  Bruno Haible  <bruno@clisp.org>
30334
30335         Make sockets.h self-contained.
30336         * lib/sockets.c: Include sockets.h first.
30337         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30338
30339 2009-03-19  Eric Blake  <ebb9@byu.net>
30340
30341         doc: mention more functions added in cygwin 1.7.0
30342         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30343         addition.
30344         * doc/posix-functions/log2f.texi: Likewise.
30345
30346 2009-03-19  Jim Meyering  <meyering@redhat.com>
30347
30348         fsusage: avoid syntax error due to statement-before-declaration
30349         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30350         after all declarations.  Reported by Matthew Woehlke in
30351         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30352
30353 2009-03-18  Eric Blake  <ebb9@byu.net>
30354
30355         build-aux/compile: sync from automake
30356         * build-aux/compile: New file, from automake.
30357         * config/srclist.txt: Mention build-aux/compile.
30358
30359 2009-03-17  Bruno Haible  <bruno@clisp.org>
30360
30361         * lib/git-merge-changelog.c: Fix typo in comment.
30362         Reported by Reuben Thomas <rrt@sc3d.org>.
30363
30364 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30365
30366         * m4/regex.m4: update and improve help for
30367         --without-included-regex.
30368
30369 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30370
30371         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30372         failure on missing include files.
30373
30374 2009-03-17  Eric Blake  <ebb9@byu.net>
30375
30376         doc: mention more functions added in cygwin 1.7.0
30377         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30378         addition.
30379         * doc/posix-functions/fwscanf.texi: Likewise.
30380         * doc/posix-functions/swprintf.texi: Likewise.
30381         * doc/posix-functions/swscanf.texi: Likewise.
30382         * doc/posix-functions/vfwprintf.texi: Likewise.
30383         * doc/posix-functions/vfwscanf.texi: Likewise.
30384         * doc/posix-functions/vswprintf.texi: Likewise.
30385         * doc/posix-functions/vswscanf.texi: Likewise.
30386         * doc/posix-functions/vwprintf.texi: Likewise.
30387         * doc/posix-functions/vwscanf.texi: Likewise.
30388         * doc/posix-functions/wcscasecmp.texi: Likewise.
30389         * doc/posix-functions/wcsdup.texi: Likewise.
30390         * doc/posix-functions/wcsftime.texi: Likewise.
30391         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30392         * doc/posix-functions/wprintf.texi: Likewise.
30393         * doc/posix-functions/wscanf.texi: Likewise.
30394         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30395
30396 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30397
30398         maint.mk: really add $(AM_MAKEFLAGS)
30399         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30400         was inadvertently omitted in the last commit.
30401         Spotted by Bruno Haible.
30402
30403         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30404         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30405         $(AM_MAKEFLAGS)' rather than plain `make'.
30406
30407         gnulib-tool: execute $MAKE not make
30408         * gnulib-tool: Default $MAKE to 'make'.
30409         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30410         than make.  Initialize $MAKE in the do-autobuild script.
30411
30412         gnulib-tool: use $MAKE not make in generated files
30413         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30414         make, in generated files.  Initialize $MAKE in the do-autobuild
30415         script.
30416
30417         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30418
30419         GNUmakefile: disable parallelism only for multiple, recursive targets
30420         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30421         additions in the Makefile.
30422         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30423         by Automake.
30424         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30425         are listed on the command line and at least one of them is
30426         listed in $(ALL_RECURSIVE_TARGETS).
30427
30428 2009-03-14  Bruno Haible  <bruno@clisp.org>
30429
30430         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30431         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30432         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30433         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30434         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30435         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30436         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30437         unistr/u8-uctomb.
30438         * modules/unistr/u8-strchr (Depends-on): Likewise.
30439         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30440         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30441         unistr/u16-uctomb.
30442         * modules/unistr/u16-strchr (Depends-on): Likewise.
30443         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30444
30445 2009-03-12  Bruno Haible  <bruno@clisp.org>
30446
30447         Work around select() bug on Interix 3.5.
30448         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30449         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30450         * m4/select.m4: New file.
30451         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30452         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30453         * modules/select (Files): Add m4/select.m4.
30454         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30455         * modules/nanosleep (Depends-on): Add select.
30456         * modules/poll (Depends-on): Likewise.
30457         * doc/posix-functions/select.texi: Mention the Interix bug.
30458         Reported by Markus Duft <mduft@gentoo.org>.
30459
30460         * lib/select.c: Renamed from lib/winsock-select.c.
30461         * modules/select (Files): Add lib/select.c, remove
30462         lib/winsock-select.c.
30463         (configure.ac): Update.
30464
30465 2009-03-12  Jim Meyering  <meyering@redhat.com>
30466
30467         avoid gcc warnings about unused macro definitions
30468         * lib/readtokens.c (STREQ): Remove unused definition.
30469         * lib/xmalloc.c (SIZE_MAX): Likewise.
30470         * lib/openat-die.c (N_): Likewise.
30471         * lib/mountlist.c (SIZE_MAX): Remove definition.
30472         Instead, include <stdint.h>.
30473         * lib/readutmp.c: Likewise.
30474         * modules/readutmp (Depends-on): Add stdint.
30475         * modules/mountlist (Depends-on): Add stdint.
30476         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
30477
30478 2009-03-10  Bruno Haible  <bruno@clisp.org>
30479
30480         Tests for module 'mbmemcasecoll'.
30481         * modules/mbmemcasecoll-tests: New file.
30482         * tests/test-mbmemcasecoll1.sh: New file.
30483         * tests/test-mbmemcasecoll2.sh: New file.
30484         * tests/test-mbmemcasecoll3.sh: New file.
30485         * tests/test-mbmemcasecoll.c: New file.
30486
30487         New module 'mbmemcasecoll'.
30488         * lib/mbmemcasecoll.h: New file.
30489         * lib/mbmemcasecoll.c: New file.
30490         * modules/mbmemcasecoll: New file.
30491
30492         * tests/test-mbmemcasecmp.h: New file, extracted from
30493         tests/test-mbmemcasecmp.c.
30494         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
30495         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
30496         (main): Update.
30497         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
30498
30499 2009-03-09  Bruno Haible  <bruno@clisp.org>
30500
30501         Tests for module 'mbmemcasecmp'.
30502         * modules/mbmemcasecmp-tests: New file.
30503         * tests/test-mbmemcasecmp1.sh: New file.
30504         * tests/test-mbmemcasecmp2.sh: New file.
30505         * tests/test-mbmemcasecmp3.sh: New file.
30506         * tests/test-mbmemcasecmp.c: New file.
30507
30508         New module 'mbmemcasecmp'.
30509         * lib/mbmemcasecmp.h: New file.
30510         * lib/mbmemcasecmp.c: New file.
30511         * modules/mbmemcasecmp: New file.
30512
30513 2009-03-09  Bruno Haible  <bruno@clisp.org>
30514
30515         Tests for module 'unicase/ulc-casecoll'.
30516         * modules/unicase/ulc-casecoll-tests: New file.
30517         * tests/unicase/test-ulc-casecoll1.sh: New file.
30518         * tests/unicase/test-ulc-casecoll2.sh: New file.
30519         * tests/unicase/test-ulc-casecoll.c: New file.
30520
30521         New module 'unicase/ulc-casecoll'.
30522         * lib/unicase.h (ulc_casecoll): New declaration.
30523         * lib/unicase/ulc-casecoll.c: New file.
30524         * modules/unicase/ulc-casecoll: New file.
30525
30526         New module 'unicase/ulc-casexfrm'.
30527         * lib/unicase.h (ulc_casexfrm): New declaration.
30528         * lib/unicase/ulc-casexfrm.c: New file.
30529         * modules/unicase/ulc-casexfrm: New file.
30530
30531 2009-03-09  Bruno Haible  <bruno@clisp.org>
30532
30533         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
30534         invocations.
30535
30536         * m4/mbscasecmp.m4: Remove file.
30537         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
30538         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
30539
30540         * m4/mbscasestr.m4: Remove file.
30541         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
30542         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
30543
30544         * m4/mbschr.m4: Remove file.
30545         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
30546         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
30547
30548         * m4/mbscspn.m4: Remove file.
30549         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
30550         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
30551
30552         * m4/mbslen.m4: Remove file.
30553         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
30554         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
30555
30556         * m4/mbsncasecmp.m4: Remove file.
30557         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
30558         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
30559
30560         * m4/mbsnlen.m4: Remove file.
30561         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
30562         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
30563
30564         * m4/mbspbrk.m4: Remove file.
30565         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
30566         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
30567
30568         * m4/mbspcasecmp.m4: Remove file.
30569         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
30570         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
30571
30572         * m4/mbsrchr.m4: Remove file.
30573         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
30574         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
30575
30576         * m4/mbssep.m4: Remove file.
30577         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
30578         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
30579
30580         * m4/mbsspn.m4: Remove file.
30581         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
30582         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
30583
30584         * m4/mbsstr.m4: Remove file.
30585         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
30586         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
30587
30588         * m4/mbstok_r.m4: Remove file.
30589         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
30590         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
30591
30592         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
30593
30594         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
30595         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
30596
30597         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
30598
30599 2009-03-08  Bruno Haible  <bruno@clisp.org>
30600
30601         Tests for module 'unicase/ulc-casecmp'.
30602         * modules/unicase/ulc-casecmp-tests: New file.
30603         * tests/unicase/test-ulc-casecmp1.sh: New file.
30604         * tests/unicase/test-ulc-casecmp2.sh: New file.
30605         * tests/unicase/test-ulc-casecmp.c: New file.
30606
30607         New module 'unicase/ulc-casecmp'.
30608         * lib/unicase.h (ulc_casecmp): New declaration.
30609         * lib/unicase/ulc-casecmp.c: New file.
30610         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
30611         'const SRC_UNIT *'.
30612         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
30613         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
30614         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
30615         * modules/unicase/ulc-casecmp: New file.
30616
30617         Tests for module 'unicase/u32-is-cased'.
30618         * modules/unicase/u32-is-cased-tests: New file.
30619         * tests/unicase/test-u32-is-cased.c: New file.
30620
30621         Tests for module 'unicase/u16-is-cased'.
30622         * modules/unicase/u16-is-cased-tests: New file.
30623         * tests/unicase/test-u16-is-cased.c: New file.
30624
30625         Tests for module 'unicase/u8-is-cased'.
30626         * modules/unicase/u8-is-cased-tests: New file.
30627         * tests/unicase/test-u8-is-cased.c: New file.
30628         * tests/unicase/test-is-cased.h: New file.
30629
30630         New module 'unicase/u32-is-cased'.
30631         * lib/unicase/u32-is-cased.c: New file.
30632         * modules/unicase/u32-is-cased: New file.
30633
30634         New module 'unicase/u16-is-cased'.
30635         * lib/unicase/u16-is-cased.c: New file.
30636         * modules/unicase/u16-is-cased: New file.
30637
30638         New module 'unicase/u8-is-cased'.
30639         * lib/unicase/u8-is-cased.c: New file.
30640         * lib/unicase/u-is-cased.h: New file.
30641         * modules/unicase/u8-is-cased: New file.
30642
30643         Tests for module 'unicase/u32-is-casefolded'.
30644         * modules/unicase/u32-is-casefolded-tests: New file.
30645         * tests/unicase/test-u32-is-casefolded.c: New file.
30646
30647         Tests for module 'unicase/u16-is-casefolded'.
30648         * modules/unicase/u16-is-casefolded-tests: New file.
30649         * tests/unicase/test-u16-is-casefolded.c: New file.
30650
30651         Tests for module 'unicase/u8-is-casefolded'.
30652         * modules/unicase/u8-is-casefolded-tests: New file.
30653         * tests/unicase/test-u8-is-casefolded.c: New file.
30654         * tests/unicase/test-is-casefolded.h: New file.
30655
30656         New module 'unicase/u32-is-casefolded'.
30657         * lib/unicase/u32-is-casefolded.c: New file.
30658         * modules/unicase/u32-is-casefolded: New file.
30659
30660         New module 'unicase/u16-is-casefolded'.
30661         * lib/unicase/u16-is-casefolded.c: New file.
30662         * modules/unicase/u16-is-casefolded: New file.
30663
30664         New module 'unicase/u8-is-casefolded'.
30665         * lib/unicase/u8-is-casefolded.c: New file.
30666         * modules/unicase/u8-is-casefolded: New file.
30667
30668         Tests for module 'unicase/u32-is-titlecase'.
30669         * modules/unicase/u32-is-titlecase-tests: New file.
30670         * tests/unicase/test-u32-is-titlecase.c: New file.
30671
30672         Tests for module 'unicase/u16-is-titlecase'.
30673         * modules/unicase/u16-is-titlecase-tests: New file.
30674         * tests/unicase/test-u16-is-titlecase.c: New file.
30675
30676         Tests for module 'unicase/u8-is-titlecase'.
30677         * modules/unicase/u8-is-titlecase-tests: New file.
30678         * tests/unicase/test-u8-is-titlecase.c: New file.
30679         * tests/unicase/test-is-titlecase.h: New file.
30680
30681         New module 'unicase/u32-is-titlecase'.
30682         * lib/unicase/u32-is-titlecase.c: New file.
30683         * modules/unicase/u32-is-titlecase: New file.
30684
30685         New module 'unicase/u16-is-titlecase'.
30686         * lib/unicase/u16-is-titlecase.c: New file.
30687         * modules/unicase/u16-is-titlecase: New file.
30688
30689         New module 'unicase/u8-is-titlecase'.
30690         * lib/unicase/u8-is-titlecase.c: New file.
30691         * modules/unicase/u8-is-titlecase: New file.
30692
30693         Tests for module 'unicase/u32-is-lowercase'.
30694         * modules/unicase/u32-is-lowercase-tests: New file.
30695         * tests/unicase/test-u32-is-lowercase.c: New file.
30696
30697         Tests for module 'unicase/u16-is-lowercase'.
30698         * modules/unicase/u16-is-lowercase-tests: New file.
30699         * tests/unicase/test-u16-is-lowercase.c: New file.
30700
30701         Tests for module 'unicase/u8-is-lowercase'.
30702         * modules/unicase/u8-is-lowercase-tests: New file.
30703         * tests/unicase/test-u8-is-lowercase.c: New file.
30704         * tests/unicase/test-is-lowercase.h: New file.
30705
30706         New module 'unicase/u32-is-lowercase'.
30707         * lib/unicase/u32-is-lowercase.c: New file.
30708         * modules/unicase/u32-is-lowercase: New file.
30709
30710         New module 'unicase/u16-is-lowercase'.
30711         * lib/unicase/u16-is-lowercase.c: New file.
30712         * modules/unicase/u16-is-lowercase: New file.
30713
30714         New module 'unicase/u8-is-lowercase'.
30715         * lib/unicase/u8-is-lowercase.c: New file.
30716         * modules/unicase/u8-is-lowercase: New file.
30717
30718         Tests for module 'unicase/u32-is-uppercase'.
30719         * modules/unicase/u32-is-uppercase-tests: New file.
30720         * tests/unicase/test-u32-is-uppercase.c: New file.
30721
30722         Tests for module 'unicase/u16-is-uppercase'.
30723         * modules/unicase/u16-is-uppercase-tests: New file.
30724         * tests/unicase/test-u16-is-uppercase.c: New file.
30725
30726         Tests for module 'unicase/u8-is-uppercase'.
30727         * modules/unicase/u8-is-uppercase-tests: New file.
30728         * tests/unicase/test-u8-is-uppercase.c: New file.
30729         * tests/unicase/test-is-uppercase.h: New file.
30730
30731         New module 'unicase/u32-is-uppercase'.
30732         * lib/unicase/u32-is-uppercase.c: New file.
30733         * modules/unicase/u32-is-uppercase: New file.
30734
30735         New module 'unicase/u16-is-uppercase'.
30736         * lib/unicase/u16-is-uppercase.c: New file.
30737         * modules/unicase/u16-is-uppercase: New file.
30738
30739         New module 'unicase/u8-is-uppercase'.
30740         * lib/unicase/u8-is-uppercase.c: New file.
30741         * modules/unicase/u8-is-uppercase: New file.
30742
30743         New module 'unicase/u32-is-invariant'.
30744         * lib/unicase/u32-is-invariant.c: New file.
30745         * modules/unicase/u32-is-invariant: New file.
30746
30747         New module 'unicase/u16-is-invariant'.
30748         * lib/unicase/u16-is-invariant.c: New file.
30749         * modules/unicase/u16-is-invariant: New file.
30750
30751         New module 'unicase/u8-is-invariant'.
30752         * lib/unicase/u8-is-invariant.c: New file.
30753         * lib/unicase/invariant.h: New file.
30754         * lib/unicase/u-is-invariant.h: New file.
30755         * modules/unicase/u8-is-invariant: New file.
30756
30757         Tests for module 'unicase/u32-casecoll'.
30758         * modules/unicase/u32-casecoll-tests: New file.
30759         * tests/unicase/test-u32-casecoll.c: New file.
30760
30761         Tests for module 'unicase/u16-casecoll'.
30762         * modules/unicase/u16-casecoll-tests: New file.
30763         * tests/unicase/test-u16-casecoll.c: New file.
30764
30765         Tests for module 'unicase/u8-casecoll'.
30766         * modules/unicase/u8-casecoll-tests: New file.
30767         * tests/unicase/test-u8-casecoll.c: New file.
30768
30769         New module 'unicase/u32-casecoll'.
30770         * lib/unicase/u32-casecoll.c: New file.
30771         * modules/unicase/u32-casecoll: New file.
30772
30773         New module 'unicase/u16-casecoll'.
30774         * lib/unicase/u16-casecoll.c: New file.
30775         * modules/unicase/u16-casecoll: New file.
30776
30777         New module 'unicase/u8-casecoll'.
30778         * lib/unicase/u8-casecoll.c: New file.
30779         * lib/unicase/u-casecoll.h: New file.
30780         * modules/unicase/u8-casecoll: New file.
30781
30782         New module 'unicase/u32-casexfrm'.
30783         * lib/unicase/u32-casexfrm.c: New file.
30784         * modules/unicase/u32-casexfrm: New file.
30785
30786         New module 'unicase/u16-casexfrm'.
30787         * lib/unicase/u16-casexfrm.c: New file.
30788         * modules/unicase/u16-casexfrm: New file.
30789
30790         New module 'unicase/u8-casexfrm'.
30791         * lib/unicase/u8-casexfrm.c: New file.
30792         * lib/unicase/u-casexfrm.h: New file.
30793         * modules/unicase/u8-casexfrm: New file.
30794
30795         Tests for module 'unicase/u32-casecmp'.
30796         * modules/unicase/u32-casecmp-tests: New file.
30797         * tests/unicase/test-u32-casecmp.c: New file.
30798
30799         Tests for module 'unicase/u16-casecmp'.
30800         * modules/unicase/u16-casecmp-tests: New file.
30801         * tests/unicase/test-u16-casecmp.c: New file.
30802
30803         Tests for module 'unicase/u8-casecmp'.
30804         * modules/unicase/u8-casecmp-tests: New file.
30805         * tests/unicase/test-u8-casecmp.c: New file.
30806         * tests/unicase/test-casecmp.h: New file.
30807
30808         New module 'unicase/u32-casecmp'.
30809         * lib/unicase/u32-casecmp.c: New file.
30810         * modules/unicase/u32-casecmp: New file.
30811
30812         New module 'unicase/u16-casecmp'.
30813         * lib/unicase/u16-casecmp.c: New file.
30814         * modules/unicase/u16-casecmp: New file.
30815
30816         New module 'unicase/u8-casecmp'.
30817         * lib/unicase/u8-casecmp.c: New file.
30818         * lib/unicase/u-casecmp.h: New file.
30819         * modules/unicase/u8-casecmp: New file.
30820
30821         Tests for module 'unicase/u32-casefold'.
30822         * modules/unicase/u32-casefold-tests: New file.
30823         * tests/unicase/test-u32-casefold.c: New file.
30824
30825         Tests for module 'unicase/u16-casefold'.
30826         * modules/unicase/u16-casefold-tests: New file.
30827         * tests/unicase/test-u16-casefold.c: New file.
30828
30829         Tests for module 'unicase/u8-casefold'.
30830         * modules/unicase/u8-casefold-tests: New file.
30831         * tests/unicase/test-u8-casefold.c: New file.
30832
30833         New module 'unicase/u32-casefold'.
30834         * lib/unicase/u32-casefold.c: New file.
30835         * modules/unicase/u32-casefold: New file.
30836
30837         New module 'unicase/u16-casefold'.
30838         * lib/unicase/u16-casefold.c: New file.
30839         * modules/unicase/u16-casefold: New file.
30840
30841         New module 'unicase/u8-casefold'.
30842         * lib/unicase/u8-casefold.c: New file.
30843         * lib/unicase/u-casefold.h: New file.
30844         * modules/unicase/u8-casefold: New file.
30845
30846         New module 'unicase/tocasefold'.
30847         * lib/unicase/casefold.h: New file.
30848         * lib/unicase/tocasefold.c: New file.
30849         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
30850         * modules/unicase/tocasefold: New file.
30851
30852         Tests for module 'unicase/u32-totitle'.
30853         * modules/unicase/u32-totitle-tests: New file.
30854         * tests/unicase/test-u32-totitle.c: New file.
30855
30856         Tests for module 'unicase/u16-totitle'.
30857         * modules/unicase/u16-totitle-tests: New file.
30858         * tests/unicase/test-u16-totitle.c: New file.
30859
30860         Tests for module 'unicase/u8-totitle'.
30861         * modules/unicase/u8-totitle-tests: New file.
30862         * tests/unicase/test-u8-totitle.c: New file.
30863
30864         New module 'unicase/u32-totitle'.
30865         * lib/unicase/u32-totitle.c: New file.
30866         * modules/unicase/u32-totitle: New file.
30867
30868         New module 'unicase/u16-totitle'.
30869         * lib/unicase/u16-totitle.c: New file.
30870         * modules/unicase/u16-totitle: New file.
30871
30872         New module 'unicase/u8-totitle'.
30873         * lib/unicase/u8-totitle.c: New file.
30874         * lib/unicase/u-totitle.h: New file.
30875         * modules/unicase/u8-totitle: New file.
30876
30877         Tests for module 'unicase/u32-tolower'.
30878         * modules/unicase/u32-tolower-tests: New file.
30879         * tests/unicase/test-u32-tolower.c: New file.
30880
30881         Tests for module 'unicase/u16-tolower'.
30882         * modules/unicase/u16-tolower-tests: New file.
30883         * tests/unicase/test-u16-tolower.c: New file.
30884
30885         Tests for module 'unicase/u8-tolower'.
30886         * modules/unicase/u8-tolower-tests: New file.
30887         * tests/unicase/test-u8-tolower.c: New file.
30888
30889         New module 'unicase/u32-tolower'.
30890         * lib/unicase/u32-tolower.c: New file.
30891         * modules/unicase/u32-tolower: New file.
30892
30893         New module 'unicase/u16-tolower'.
30894         * lib/unicase/u16-tolower.c: New file.
30895         * modules/unicase/u16-tolower: New file.
30896
30897         New module 'unicase/u8-tolower'.
30898         * lib/unicase/u8-tolower.c: New file.
30899         * modules/unicase/u8-tolower: New file.
30900
30901         Tests for module 'unicase/u32-toupper'.
30902         * modules/unicase/u32-toupper-tests: New file.
30903         * tests/unicase/test-u32-toupper.c: New file.
30904
30905         Tests for module 'unicase/u16-toupper'.
30906         * modules/unicase/u16-toupper-tests: New file.
30907         * tests/unicase/test-u16-toupper.c: New file.
30908
30909         Tests for module 'unicase/u8-toupper'.
30910         * modules/unicase/u8-toupper-tests: New file.
30911         * tests/unicase/test-u8-toupper.c: New file.
30912
30913         New module 'unicase/u32-toupper'.
30914         * lib/unicase/u32-toupper.c: New file.
30915         * modules/unicase/u32-toupper: New file.
30916
30917         New module 'unicase/u16-toupper'.
30918         * lib/unicase/u16-toupper.c: New file.
30919         * modules/unicase/u16-toupper: New file.
30920
30921         New module 'unicase/u8-toupper'.
30922         * lib/unicase/u8-toupper.c: New file.
30923         * modules/unicase/u8-toupper: New file.
30924
30925         New module 'unicase/u32-casemap'.
30926         * lib/unicase/u32-casemap.c: New file.
30927         * modules/unicase/u32-casemap: New file.
30928
30929         New module 'unicase/u16-casemap'.
30930         * lib/unicase/u16-casemap.c: New file.
30931         * modules/unicase/u16-casemap: New file.
30932
30933         New module 'unicase/u8-casemap'.
30934         * lib/unicase/unicasemap.h: New file.
30935         * lib/unicase/u8-casemap.c: New file.
30936         * lib/unicase/u-casemap.h: New file.
30937         * modules/unicase/u8-casemap: New file.
30938
30939         New module 'unicase/special-casing'.
30940         * lib/unicase/special-casing.h: New file.
30941         * lib/unicase/special-casing.c: New file.
30942         * lib/unicase/special-casing-table.gperf: New file, generated by
30943         gen-uni-tables.c.
30944         * modules/unicase/special-casing: New file.
30945
30946         Tests for module 'unicase/locale-language'.
30947         * modules/unicase/locale-language-tests: New file.
30948         * tests/unicase/test-locale-language.sh: New file.
30949         * tests/unicase/test-locale-language.c: New file.
30950
30951         New module 'unicase/locale-language'.
30952         * lib/unicase/locale-language.c: New file.
30953         * lib/unicase/locale-languages.gperf: New file.
30954         * modules/unicase/locale-language: New file.
30955
30956         Generate more tables for case conversion and case folding.
30957         * lib/gen-uni-tables.c (SCC_*): New enum items.
30958         (struct special_casing_rule): New type.
30959         (casing_rules, num_casing_rules, allocated_casing_rules): New
30960         variables.
30961         (add_casing_rule, fill_casing_rules): New functions.
30962         (struct casefold_rule): New type.
30963         (casefolding_rules, num_casefolding_rules,
30964         allocated_casefolding_rules): New variables.
30965         (fill_casefolding_rules): New function.
30966         (unicode_casefold): New variable.
30967         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
30968         sort_casing_rules, output_casing_rules): New functions.
30969         (main): Accept to more arguments: SpecialCasing.txt and
30970         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
30971         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
30972         Output mapping for casefolding.
30973
30974         * lib/unicase.h: Include stdbool.h, uninorm.h.
30975         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
30976         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
30977         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
30978         arguments.
30979         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
30980         resultp arguments.
30981         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
30982         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30983         resultp arguments.
30984         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30985         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30986         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30987         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30988         declarations.
30989         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30990
30991 2009-03-08  Bruno Haible  <bruno@clisp.org>
30992
30993         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30994         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30995         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30996         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30997
30998 2009-03-07  Bruno Haible  <bruno@clisp.org>
30999
31000         Adjust u*_normcmp, u*_normcoll API.
31001         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31002         u16_normcoll, u32_normcoll): Change failure conventions.
31003         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31004         errno and return -1.
31005         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31006
31007 2009-03-07  Bruno Haible  <bruno@clisp.org>
31008
31009         Tests for module 'uninorm/u32-normcoll'.
31010         * modules/uninorm/u32-normcoll-tests: New file.
31011         * tests/uninorm/test-u32-normcoll.c: New file.
31012
31013         Tests for module 'uninorm/u16-normcoll'.
31014         * modules/uninorm/u16-normcoll-tests: New file.
31015         * tests/uninorm/test-u16-normcoll.c: New file.
31016
31017         Tests for module 'uninorm/u8-normcoll'.
31018         * modules/uninorm/u8-normcoll-tests: New file.
31019         * tests/uninorm/test-u8-normcoll.c: New file.
31020
31021 2009-03-07  Bruno Haible  <bruno@clisp.org>
31022
31023         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31024         tests/uninorm/test-u32-normcmp.c.
31025         * tests/uninorm/test-u32-normcmp.c: Include it.
31026         (test_nonascii): New function, extracted from main. Add some more
31027         tests.
31028         (main): Invoke test_ascii and test_nonascii.
31029         * modules/uninorm/u32-normcmp-tests (Files): Add
31030         tests/uninorm/test-u32-normcmp.h.
31031         (Depends-on): Remove uninorm/u32-normcmp.
31032
31033         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31034         tests/uninorm/test-u16-normcmp.c.
31035         * tests/uninorm/test-u16-normcmp.c: Include it.
31036         (test_nonascii): New function, extracted from main. Add some more
31037         tests.
31038         (main): Invoke test_ascii and test_nonascii.
31039         * modules/uninorm/u16-normcmp-tests (Files): Add
31040         tests/uninorm/test-u16-normcmp.h.
31041         (Depends-on): Remove uninorm/u16-normcmp.
31042
31043         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31044         tests/uninorm/test-u8-normcmp.c.
31045         * tests/uninorm/test-u8-normcmp.c: Include it.
31046         (test_nonascii): New function, extracted from main. Add some more
31047         tests.
31048         (main): Invoke test_ascii and test_nonascii.
31049         * modules/uninorm/u8-normcmp-tests (Files): Add
31050         tests/uninorm/test-u8-normcmp.h.
31051         (Depends-on): Remove uninorm/u8-normcmp.
31052
31053 2009-03-07  Bruno Haible  <bruno@clisp.org>
31054
31055         New module 'uninorm/u32-normcoll'.
31056         * lib/uninorm/u32-normcoll.c: New file.
31057         * modules/uninorm/u32-normcoll: New file.
31058
31059         New module 'uninorm/u16-normcoll'.
31060         * lib/uninorm/u16-normcoll.c: New file.
31061         * modules/uninorm/u16-normcoll: New file.
31062
31063         New module 'uninorm/u8-normcoll'.
31064         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31065         declarations.
31066         * lib/uninorm/u8-normcoll.c: New file.
31067         * lib/uninorm/u-normcoll.h: New file.
31068         * modules/uninorm/u8-normcoll: New file.
31069
31070         New module 'uninorm/u32-normxfrm'.
31071         * lib/uninorm/u32-normxfrm.c: New file.
31072         * modules/uninorm/u32-normxfrm: New file.
31073
31074         New module 'uninorm/u16-normxfrm'.
31075         * lib/uninorm/u16-normxfrm.c: New file.
31076         * modules/uninorm/u16-normxfrm: New file.
31077
31078         New module 'uninorm/u8-normxfrm'.
31079         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31080         declarations.
31081         * lib/uninorm/u8-normxfrm.c: New file.
31082         * lib/uninorm/u-normxfrm.h: New file.
31083         * modules/uninorm/u8-normxfrm: New file.
31084
31085 2009-03-07  Bruno Haible  <bruno@clisp.org>
31086
31087         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31088         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31089         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31090
31091 2009-03-07  Bruno Haible  <bruno@clisp.org>
31092
31093         New module 'memxfrm'.
31094         * lib/memxfrm.h: New file.
31095         * lib/memxfrm.c: New file.
31096         * modules/memxfrm: New file.
31097
31098 2009-03-07  Bruno Haible  <bruno@clisp.org>
31099
31100         New module 'memcmp2'.
31101         * lib/memcmp2.h: New file.
31102         * lib/memcmp2.c: New file.
31103         * modules/memcmp2: New file.
31104
31105 2009-03-07  Bruno Haible  <bruno@clisp.org>
31106
31107         Tests for module 'uninorm/decomposing-form'.
31108         * modules/uninorm/decomposing-form-tests: New file.
31109         * tests/uninorm/test-decomposing-form.c: New file.
31110
31111         New module 'uninorm/decomposing-form'.
31112         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31113         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31114         Add 'decomposing_variant' field.
31115         * lib/uninorm/decomposing-form.c: New file.
31116         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31117         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31118         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31119         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31120         * modules/uninorm/decomposing-form: New file.
31121         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31122         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31123
31124 2009-03-07  Bruno Haible  <bruno@clisp.org>
31125
31126         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31127         strings.
31128
31129 2009-03-06  Bruno Haible  <bruno@clisp.org>
31130
31131         Tests for module 'uninorm/u32-normcmp'.
31132         * tests/uninorm/test-u32-normcmp.c: New file.
31133         * modules/uninorm/u32-normcmp-tests: New file.
31134
31135         Tests for module 'uninorm/u16-normcmp'.
31136         * tests/uninorm/test-u16-normcmp.c: New file.
31137         * modules/uninorm/u16-normcmp-tests: New file.
31138
31139         Tests for module 'uninorm/u8-normcmp'.
31140         * tests/uninorm/test-u8-normcmp.c: New file.
31141         * modules/uninorm/u8-normcmp-tests: New file.
31142
31143         New module 'uninorm/u32-normcmp'.
31144         * lib/uninorm/u32-normcmp.c: New file.
31145         * modules/uninorm/u32-normcmp: New file.
31146
31147         New module 'uninorm/u16-normcmp'.
31148         * lib/uninorm/u16-normcmp.c: New file.
31149         * modules/uninorm/u16-normcmp: New file.
31150
31151         New module 'uninorm/u8-normcmp'.
31152         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31153         declarations.
31154         * lib/uninorm/u8-normcmp.c: New file.
31155         * lib/uninorm/u-normcmp.h: New file.
31156         * modules/uninorm/u8-normcmp: New file.
31157
31158 2009-03-06  Bruno Haible  <bruno@clisp.org>
31159
31160         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31161         Reported by Eric Blake.
31162
31163 2009-03-06  Eric Blake  <ebb9@byu.net>
31164             Bruno Haible  <bruno@clisp.org>
31165
31166         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31167         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31168         condition.
31169         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31170         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31171         condition.
31172         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31173
31174 2009-03-06  Eric Blake  <ebb9@byu.net>
31175
31176         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31177         to avoid compiler warnings.
31178         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31179
31180 2009-03-05  Bruno Haible  <bruno@clisp.org>
31181
31182         * tests/test-ftell.c (main): Disable test beyond end of file on
31183         FreeMiNT.
31184         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31185
31186 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31187
31188         * lib/filevercmp.c: Move hidden files up in ordering.
31189         * tests/test-filevercmp.c: Add tests for hidden files.
31190
31191 2009-03-04  Bruno Haible  <bruno@clisp.org>
31192
31193         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31194         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31195         AM_CFLAGS.
31196         Reported by Simon Josefsson.
31197
31198 2009-03-03  Bruno Haible  <bruno@clisp.org>
31199
31200         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31201         Reported by Simon Josefsson.
31202
31203         * doc/ld-version-script.texi: Update node reference.
31204
31205 2009-03-03  Bruno Haible  <bruno@clisp.org>
31206
31207         * modules/visibility (License): Change to 'unlimited'.
31208         Suggested by Simon Josefsson.
31209
31210 2009-03-03  Jim Meyering  <meyering@redhat.com>
31211
31212         unlinkdir: cannot_unlink_dir may modify process state
31213         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31214         it's neither thread-safe nor appropriate for use in a library.
31215
31216 2009-03-03  Eric Blake  <ebb9@byu.net>
31217
31218         test-closein: silence test under Darwin
31219         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31220         care if it dies from EPIPE or EBADF.
31221
31222 2009-03-03  Bruno Haible  <bruno@clisp.org>
31223
31224         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31225         earlier.
31226         * doc/visibility.texi: Fix @node and @section.
31227
31228 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31229
31230         * doc/gnulib.texi: Link to sections for ld version script and
31231         visibility.
31232         * doc/visibility.texi: Add @node and @section.
31233         * modules/ld-version-script: New module.
31234         * m4/ld-version-script.m4: New file.
31235         * doc/ld-version-script.texi: New file.
31236
31237 2009-03-02  David Lutterkort  <lutter@redhat.com>
31238
31239         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31240         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31241
31242 2009-03-02  Bruno Haible  <bruno@clisp.org>
31243
31244         * doc/visibility.texi: Mention libtool's -export-symbols option.
31245
31246 2009-03-02  Jim Meyering  <meyering@redhat.com>
31247
31248         announce-gen: new option: --no-print-checksums
31249         * build-aux/announce-gen (usage): Describe it.
31250         (print_checksums): Print a newline here, not in the [*] footnote.
31251         (main): Honor it.
31252
31253 2009-03-01  Bruno Haible  <bruno@clisp.org>
31254
31255         Use socklen_t in the native Windows replacements prototypes.
31256         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31257         instead of 'int'.
31258         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31259         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31260         * modules/getsockopt (Depends-on): Add socklen.
31261         * modules/setsockopt (Depends-on): Add socklen.
31262
31263 2009-03-01  Bruno Haible  <bruno@clisp.org>
31264
31265         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31266         least 4.2.
31267
31268 2009-03-01  Eric Blake  <ebb9@byu.net>
31269             Bruno Haible  <bruno@clisp.org>
31270
31271         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31272         error messages.
31273         * lib/wait-process.c (wait_subprocess): Omit error message about
31274         deadly signal sent to the child of termsigp != NULL.
31275
31276 2009-03-01  Eric Blake  <ebb9@byu.net>
31277
31278         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31279
31280 2009-03-01  Bruno Haible  <bruno@clisp.org>
31281
31282         Avoid a gcc warning.
31283         * tests/test-sched.c (b): Make global.
31284         Reported by Eric Blake.
31285
31286 2009-01-19  Martin Lambers  <marlam@marlam.de>
31287
31288         Provide POSIX semantics for socket timeout options on W32.
31289         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31290         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31291         * modules/setsockopt: Depend on sys_time module for struct timeval.
31292         * modules/getsockopt: Depend on sys_time module for struct timeval.
31293
31294 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31295
31296         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31297         __USE_GNU, for consistency with netdb.in.h.
31298         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31299
31300 2009-03-01  Bruno Haible  <bruno@clisp.org>
31301
31302         More support for FreeMiNT.
31303         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31304         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31305
31306 2009-03-01  Bruno Haible  <bruno@clisp.org>
31307
31308         More support for FreeMiNT.
31309         * lib/fpurge.c (fpurge): Correct last commit.
31310         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31311
31312 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31313
31314         Fix unportable awk script in vc-list-files.
31315         * build-aux/vc-list-files: In the replacement awk script, use
31316         substr with a second argument of 1, not zero.
31317         Report by Simon Josefsson.
31318
31319 2009-02-28  Bruno Haible  <bruno@clisp.org>
31320
31321         More support for FreeMiNT.
31322         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31323         to FreeMiNT today.
31324         * lib/fwriting.c (fwriting): Likewise.
31325         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31326
31327 2009-02-28  Bruno Haible  <bruno@clisp.org>
31328
31329         * tests/test-freadseek.c (main): Disable test beyond end of file on
31330         FreeMiNT.
31331         * tests/test-ftello.c (main): Likewise.
31332         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31333
31334 2009-02-28  Bruno Haible  <bruno@clisp.org>
31335
31336         Add tentative support for FreeMiNT.
31337         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31338         * lib/fpurge.c (fpurge): Likewise.
31339         * lib/freadable.c (freadable): Likewise.
31340         * lib/freading.c (freading): Likewise.
31341         * lib/freadptr.c (freadptr): Likewise.
31342         * lib/freadseek.c (freadptrinc): Likewise.
31343         * lib/fseeko.c (rpl_fseeko): Likewise.
31344         * lib/fseterr.c (fseterr): Likewise.
31345         * lib/fwritable.c (fwritable): Likewise.
31346         * lib/fwriting.c (fwriting): Likewise.
31347         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31348         Hourihane.
31349         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31350
31351 2009-02-28  Bruno Haible  <bruno@clisp.org>
31352
31353         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31354         SIGCHLD.
31355         Reported by Jim Meyering.
31356
31357 2009-02-28  Bruno Haible  <bruno@clisp.org>
31358
31359         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31360         Mention the results of these tests on various platforms.
31361         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31362         order.
31363         * doc/posix-functions/printf.texi: Likewise.
31364         * doc/posix-functions/snprintf.texi: Likewise.
31365         * doc/posix-functions/sprintf.texi: Likewise.
31366         * doc/posix-functions/vfprintf.texi: Likewise.
31367         * doc/posix-functions/vprintf.texi: Likewise.
31368         * doc/posix-functions/vsnprintf.texi: Likewise.
31369         * doc/posix-functions/vsprintf.texi: Likewise.
31370         * doc/glibc-functions/obstack_printf.texi: Likewise.
31371         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31372
31373 2009-02-28  Bruno Haible  <bruno@clisp.org>
31374
31375         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31376         Reported by Loïc Minier <lool@dooz.org>.
31377
31378 2009-02-27  Bruno Haible  <bruno@clisp.org>
31379
31380         * gnulib-tool (func_import): Make the sed expression used to create the
31381         sed script for updating the .gitignore file POSIX compliant.
31382         Reported by Eric Blake.
31383
31384 2009-02-27  Bruno Haible  <bruno@clisp.org>
31385
31386         * gnulib-tool (sed): Don't alias as "sed --posix".
31387         Reported by Eric Blake.
31388
31389 2009-02-27  Bruno Haible  <bruno@clisp.org>
31390
31391         Avoid test link errors.
31392         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31393         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31394         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31395         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31396         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31397
31398 2009-02-27  Bruno Haible  <bruno@clisp.org>
31399
31400         Avoid spurious "(cached)" in configure output.
31401         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31402         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31403         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31404         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31405         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31406         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31407         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31408         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31409         Reported by Eric Blake.
31410
31411 2009-02-27  Eric Blake  <ebb9@byu.net>
31412
31413         printf: fix regression in previous patch
31414         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31415
31416 2009-02-27  Bruno Haible  <bruno@clisp.org>
31417
31418         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31419         value.
31420         * lib/stdint.in.h: Likewise.
31421         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31422
31423 2009-02-27  Eric Blake  <ebb9@byu.net>
31424
31425         doc: mention more functions added in cygwin 1.7.0
31426         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31427         addition.
31428         * doc/posix-functions/open_wmemstream.texi: Likewise.
31429         * doc/posix-functions/wcsnlen.texi: Likewise.
31430         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31431         * doc/posix-functions/wcstod.texi: Likewise.
31432         * doc/posix-functions/wcstof.texi: Likewise.
31433         * doc/posix-functions/wcstoimax.texi: Likewise.
31434         * doc/posix-functions/wcstok.texi: Likewise.
31435         * doc/posix-functions/wcstoumax.texi: Likewise.
31436
31437         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31438         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
31439         * doc/posix-functions/fprintf.texi: Update.
31440         * doc/posix-functions/printf.texi: Update.
31441         * doc/posix-functions/snprintf.texi: Update.
31442         * doc/posix-functions/sprintf.texi: Update.
31443         * doc/posix-functions/vfprintf.texi: Update.
31444         * doc/posix-functions/vprintf.texi: Update.
31445         * doc/posix-functions/vsnprintf.texi: Update.
31446         * doc/posix-functions/vsprintf.texi: Update.
31447         * doc/glibc-functions/obstack_printf.texi: Update.
31448         * doc/glibc-functions/obstack_vprintf.texi: Update.
31449
31450 2009-02-26  Eric Blake  <ebb9@byu.net>
31451
31452         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31453         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31454         compilation bug by using runtime conversion.
31455         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31456         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31457         * modules/ceill-tests (Files): Use nan.h.
31458         * modules/floorl-tests (Files): Likewise.
31459         * modules/frexpl-tests (Files): Likewise.
31460         * modules/isnanl-tests (Files): Likewise.
31461         * modules/ldexpl-tests (Files): Likewise.
31462         * modules/roundl-tests (Files): Likewise.
31463         * modules/truncl-tests (Files): Likewise.
31464         * tests/test-ceill.c (main): Use a working NaN.
31465         * tests/test-floorl.c (main): Likewise.
31466         * tests/test-frexpl.c (main): Likewise.
31467         * tests/test-isnan.c (test_long_double): Likewise.
31468         * tests/test-isnanl.h (main): Likewise.
31469         * tests/test-ldexpl.h (main): Likewise.
31470         * tests/test-roundl.h (main): Likewise.
31471         * tests/test-truncl.h (main): Likewise.
31472         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
31473
31474 2009-02-26  Eric Blake  <ebb9@byu.net>
31475             Bruno Haible  <bruno@clisp.org>
31476
31477         Work around a *printf bug with %ls on Solaris.
31478         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
31479         precision is specified, sprintf stops converting the wide string
31480         argument when the number of bytes that have been produced by this
31481         conversion equals or exceeds the precision.
31482         * doc/posix-functions/fprintf.texi: Update.
31483         * doc/posix-functions/printf.texi: Update.
31484         * doc/posix-functions/snprintf.texi: Update.
31485         * doc/posix-functions/sprintf.texi: Update.
31486         * doc/posix-functions/vfprintf.texi: Update.
31487         * doc/posix-functions/vprintf.texi: Update.
31488         * doc/posix-functions/vsnprintf.texi: Update.
31489         * doc/posix-functions/vsprintf.texi: Update.
31490         * doc/glibc-functions/obstack_printf.texi: Update.
31491         * doc/glibc-functions/obstack_vprintf.texi: Update.
31492
31493 2009-02-26  Eric Blake  <ebb9@byu.net>
31494
31495         stdlib: favor compiler check of random.h
31496         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
31497         to avoid an ObjC random.h installed by Swarm.
31498
31499 2009-02-26  Bruno Haible  <bruno@clisp.org>
31500
31501         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
31502         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
31503         Reported by Gary V. Vaughan <gary@gnu.org>.
31504
31505 2009-02-26  Bruno Haible  <bruno@clisp.org>
31506
31507         Fix *printf behaviour regarding the %ls directive.
31508         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
31509         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
31510         NEED_PRINTF_DIRECTIVE_LS.
31511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
31512         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31513         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31514         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
31515         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
31516         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
31517         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31518         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31519         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31521         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31522         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
31523         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31526         * doc/posix-functions/fprintf.texi: Update.
31527         * doc/posix-functions/printf.texi: Update.
31528         * doc/posix-functions/snprintf.texi: Update.
31529         * doc/posix-functions/sprintf.texi: Update.
31530         * doc/posix-functions/vfprintf.texi: Update.
31531         * doc/posix-functions/vprintf.texi: Update.
31532         * doc/posix-functions/vsnprintf.texi: Update.
31533         * doc/posix-functions/vsprintf.texi: Update.
31534         * doc/glibc-functions/obstack_printf.texi: Update.
31535         * doc/glibc-functions/obstack_vprintf.texi: Update.
31536         Reported by Eric Blake.
31537
31538 2009-02-25  Bruno Haible  <bruno@clisp.org>
31539
31540         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
31541         with known value.
31542         Reported by Gary V. Vaughan <gary@gnu.org>.
31543
31544 2009-02-25  Bruno Haible  <bruno@clisp.org>
31545
31546         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
31547         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
31548         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
31549         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
31550         Reported by Gary V. Vaughan <gary@gnu.org>.
31551
31552 2009-02-25  Bruno Haible  <bruno@clisp.org>
31553
31554         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
31555         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
31556         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
31557         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
31558         Reported by Gary V. Vaughan <gary@gnu.org>.
31559
31560 2009-02-25  Eric Blake  <ebb9@byu.net>
31561
31562         tests: skip fseek/ftell tests if ungetc is broken
31563         * m4/ungetc.m4: New file.
31564         * modules/fseek-tests: Split test, so ungetc dependency is
31565         separate from rest of test.
31566         * modules/fseeko-tests: Likewise.
31567         * modules/ftell-tests: Likewise.
31568         * modules/ftello-tests: Likewise.
31569         * tests/test-fseek.c (main): Isolate ungetc dependency.
31570         * tests/test-fseeko.c (main): Likewise.
31571         * tests/test-ftell.c (main): Likewise.
31572         * tests/test-ftello.c (main): Likewise.
31573         * tests/test-fseek2.sh: New file.
31574         * tests/test-fseeko2.sh: Likewise.
31575         * tests/test-ftell2.sh: Likewise.
31576         * tests/test-ftello2.sh: Likewise.
31577
31578 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
31579
31580         test-getaddrinfo: fix usage of skip return code 77
31581         * tests/test-gettaddrinfo.c: Return skip code 77 only
31582         for first occurance of skip (4x77 is not 77)
31583
31584 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
31585
31586         strtod: avoid C99 decl-after-statement
31587         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
31588
31589 2009-02-24  Eric Blake  <ebb9@byu.net>
31590
31591         strtod: detect HP-UX 11.31 bug
31592         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
31593         Reported by Gary V. Vaughan.
31594
31595 2009-02-23  Bruno Haible  <bruno@clisp.org>
31596
31597         Fix invalid read past end of memory block.
31598         * lib/vasnprintf.c (DCHAR_SET): Define.
31599         (local_wcslen): Define only when needed.
31600         (local_strnlen, local_wcsnlen): New functions.
31601         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
31602         directives that involve a conversion ourselves.
31603         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
31604         wcsnlen, mbrtowc, wcrtomb.
31605         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
31606         * tests/test-vasprintf-posix.c (test_function): Likewise.
31607         * tests/test-snprintf-posix.h (test_function): Likewise.
31608         * tests/test-sprintf-posix.h (test_function): Likewise.
31609         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31610
31611 2009-02-22  Bruno Haible  <bruno@clisp.org>
31612
31613         Implement new clarified decomposition of Hangul syllables.
31614         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
31615         of type LTV, return only a pairwise decomposition.
31616         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
31617         Likewise.
31618         * tests/uninorm/test-decomposition.c (main): Updated expected result.
31619         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
31620         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
31621
31622 2009-02-22  Bruno Haible  <bruno@clisp.org>
31623
31624         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
31625         zero-length results and shrink excess allocated memory.
31626         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
31627         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
31628         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
31629         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
31630         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
31631         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
31632         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31633         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31634         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31635         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31636         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31637         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31638
31639 2009-02-21  Bruno Haible  <bruno@clisp.org>
31640
31641         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31642         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31643         spaces after a period. Put a space between a macro name and its
31644         argument list. Trivial rewordings.
31645         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31646         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31647         (main): Return 0 explicitly.
31648
31649 2009-02-21  Bruno Haible  <bruno@clisp.org>
31650
31651         Tests for module 'uninorm/filter'.
31652         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31653         * modules/uninorm/filter-tests: New file.
31654
31655         New module 'uninorm/filter'.
31656         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31657         uninorm_filter_flush, uninorm_filter_free): New declarations.
31658         * lib/uninorm/uninorm-filter.c: New file.
31659         * modules/uninorm/filter: New file.
31660
31661 2009-02-21  Bruno Haible  <bruno@clisp.org>
31662
31663         Tests for module 'uninorm/nfkc'.
31664         * tests/uninorm/test-nfkc.c: New file.
31665         * tests/uninorm/test-u8-nfkc.c: New file.
31666         * tests/uninorm/test-u16-nfkc.c: New file.
31667         * tests/uninorm/test-u32-nfkc.c: New file.
31668         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31669         * tests/uninorm/test-u32-nfkc-big.c: New file.
31670         * modules/uninorm/nfkc-tests: New file.
31671
31672         New module 'uninorm/nfkc'.
31673         * lib/uninorm/nfkc.c: New file.
31674         * modules/uninorm/nfkc: New file.
31675
31676         Tests for module 'uninorm/nfkd'.
31677         * tests/uninorm/test-nfkd.c: New file.
31678         * tests/uninorm/test-u8-nfkd.c: New file.
31679         * tests/uninorm/test-u16-nfkd.c: New file.
31680         * tests/uninorm/test-u32-nfkd.c: New file.
31681         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31682         * tests/uninorm/test-u32-nfkd-big.c: New file.
31683         * modules/uninorm/nfkd-tests: New file.
31684
31685         New module 'uninorm/nfkd'.
31686         * lib/uninorm/nfkd.c: New file.
31687         * modules/uninorm/nfkd: New file.
31688
31689         Tests for module 'uninorm/nfc'.
31690         * tests/uninorm/test-nfc.c: New file.
31691         * tests/uninorm/test-u8-nfc.c: New file.
31692         * tests/uninorm/test-u16-nfc.c: New file.
31693         * tests/uninorm/test-u32-nfc.c: New file.
31694         * tests/uninorm/test-u32-nfc-big.sh: New file.
31695         * tests/uninorm/test-u32-nfc-big.c: New file.
31696         * modules/uninorm/nfc-tests: New file.
31697
31698         New module 'uninorm/nfc'.
31699         * lib/uninorm/nfc.c: New file.
31700         * modules/uninorm/nfc: New file.
31701
31702         Tests for module 'uninorm/nfd'.
31703         * tests/uninorm/test-nfd.c: New file.
31704         * tests/uninorm/test-u8-nfd.c: New file.
31705         * tests/uninorm/test-u16-nfd.c: New file.
31706         * tests/uninorm/test-u32-nfd.c: New file.
31707         * tests/uninorm/test-u32-nfd-big.sh: New file.
31708         * tests/uninorm/test-u32-nfd-big.c: New file.
31709         * tests/uninorm/test-u32-normalize-big.h: New file.
31710         * tests/uninorm/test-u32-normalize-big.c: New file.
31711         * tests/uninorm/NormalizationTest.txt: New file, created from
31712         Unicode 5.1.0 NormalizationTest.txt.
31713         * modules/uninorm/nfd-tests: New file.
31714
31715         New module 'uninorm/nfd'.
31716         * lib/uninorm/nfd.c: New file.
31717         * modules/uninorm/nfd: New file.
31718
31719         New module 'uninorm/u32-normalize'.
31720         * lib/uninorm/u32-normalize.c: New file.
31721         * modules/uninorm/u32-normalize: New file.
31722
31723         New module 'uninorm/u16-normalize'.
31724         * lib/uninorm/u16-normalize.c: New file.
31725         * modules/uninorm/u16-normalize: New file.
31726
31727         New module 'uninorm/u8-normalize'.
31728         * lib/uninorm/u8-normalize.c: New file.
31729         * lib/uninorm/normalize-internal.h: New file.
31730         * lib/uninorm/u-normalize-internal.h: New file.
31731         * modules/uninorm/u8-normalize: New file.
31732
31733         New module 'uninorm/decompose-internal'.
31734         * lib/uninorm/decompose-internal.c: New file.
31735         * modules/uninorm/decompose-internal: New file.
31736
31737         Tests for module 'uninorm/composition'.
31738         * tests/uninorm/test-composition.c: New file.
31739         * modules/uninorm/composition-tests: New file.
31740
31741         New module 'uninorm/composition'.
31742         * lib/uninorm/composition.c: New file.
31743         * lib/uninorm/composition-table.gperf: New file, generated by
31744         gen-uni-tables.
31745         * modules/uninorm/composition: New file.
31746
31747         Tests for module 'uninorm/compat-decomposition'.
31748         * tests/uninorm/test-compat-decomposition.c: New file.
31749         * modules/uninorm/compat-decomposition-tests: New file.
31750
31751         New module 'uninorm/compat-decomposition'.
31752         * lib/uninorm/decompose-internal.h: New file.
31753         * lib/uninorm/compat-decomposition.c: New file.
31754         * modules/uninorm/compat-decomposition: New file.
31755
31756         Tests for module 'uninorm/canonical-decomposition'.
31757         * tests/uninorm/test-canonical-decomposition.c: New file.
31758         * modules/uninorm/canonical-decomposition-tests: New file.
31759
31760         New module 'uninorm/canonical-decomposition'.
31761         * lib/uninorm/canonical-decomposition.c: New file.
31762         * modules/uninorm/canonical-decomposition: New file.
31763
31764         Tests for module 'uninorm/decomposition'.
31765         * tests/uninorm/test-decomposition.c: New file.
31766         * modules/uninorm/decomposition-tests: New file.
31767
31768         New module 'uninorm/decomposition'.
31769         * lib/uninorm/decomposition.c: New file.
31770         * modules/uninorm/decomposition: New file.
31771
31772         New module 'uninorm/decomposition-table'.
31773         * lib/uninorm/decomposition-table.h: New file.
31774         * lib/uninorm/decomposition-table.c: New file.
31775         * lib/uninorm/decomposition-table1.h: New file, generated by
31776         gen-uni-tables.
31777         * lib/uninorm/decomposition-table2.h: New file, generated by
31778         gen-uni-tables.
31779         * modules/uninorm/decomposition-table: New file.
31780
31781         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
31782         (UC_DECOMP_*): New enumeration items.
31783         (get_decomposition): New function.
31784         (struct decomp_table): New type.
31785         (output_decomposition, output_decomposition_tables): New functions.
31786         (unicode_composition_exclusions): New variable.
31787         (fill_composition_exclusions, debug_output_composition_tables): New
31788         functions.
31789         (main): Accept one more argument. Invoke fill_composition_exclusions.
31790         Output decomposition and composition tables.
31791
31792         New module 'uninorm/base'.
31793         * lib/uninorm.h: New file.
31794         * lib/unictype.h: Update comment.
31795         * modules/uninorm/base: New file.
31796
31797 2009-02-21  David Lutterkort  <lutter@redhat.com>
31798
31799         Tests for module 'safe-alloc'.
31800         * tests/test-safe-alloc.c: New file.
31801         * modules/safe-alloc-tests: New file.
31802
31803         New module 'safe-alloc'.
31804         * lib/safe-alloc.h: New file.
31805         * lib/safe-alloc.c: New file.
31806         * m4/safe-alloc.m4: New file.
31807         * modules/safe-alloc: New file.
31808         * doc/safe-alloc.texi: New file.
31809         * doc/gnulib.texi: Include it.
31810         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31811         safe-alloc.
31812
31813 2009-02-18  Bruno Haible  <bruno@clisp.org>
31814
31815         Fix link error on non-glibc systems.
31816         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
31817         variable.
31818         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31819
31820 2009-02-18  Jim Meyering  <meyering@redhat.com>
31821
31822         fts: avoid used-uninitialized error due to recent change
31823         * lib/fts.c (fts_read): Guard uses of the new member,
31824         parent->fts_n_dirs_remaining, since it's not relevant for
31825         the parent of a directory specified on the command-line.
31826
31827 2009-02-17  James Youngman  <jay@gnu.org>
31828             Bruno Haible  <bruno@clisp.org>
31829
31830         * m4/include_next.m4: Reformulate comment.
31831
31832 2009-02-16  Jim Meyering  <meyering@redhat.com>
31833
31834         fts: add #if guards so that the fts_lgpl module still builds
31835         * lib/fts.c: Guard just-added hash-table-using parts with
31836         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
31837         Reported by Simon Josefsson.
31838
31839 2009-02-15  Bruno Haible  <bruno@clisp.org>
31840
31841         * modules/array-mergesort-tests: New file.
31842         * tests/test-array-mergesort.c: New file.
31843
31844         New module 'array-mergesort'.
31845         * modules/array-mergesort: New file.
31846         * lib/array-mergesort.h: New file.
31847
31848 2009-02-15  Bruno Haible  <bruno@clisp.org>
31849
31850         Fix 2009-02-07 commit.
31851         * lib/gen-uni-tables.c (output_predicate, output_category,
31852         output_combclass, output_bidi_category, output_decimal_digit,
31853         output_digit, output_numeric, output_mirror, output_scripts,
31854         output_ident_category, output_simple_mapping): Fix format directives.
31855         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
31856
31857 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
31858
31859         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
31860         fixes are available from IBM.
31861
31862 2009-02-13  Jim Meyering  <meyering@redhat.com>
31863
31864         fts: arrange not to stat non-directories in more cases
31865         This makes GNU find (when it doesn't need to stat each file)
31866         *much* more efficient at traversing reiserfs file systems.
31867         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
31868         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
31869         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
31870         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
31871         (leaf_optimization_applies): New function.
31872         (LCO_hash, LCO_compare): New helper functions.
31873         (link_count_optimize_ok): New function.
31874         (fts_stat): Initialize new member (if dir).
31875         (fts_read): Decrement parent's fts_n_dirs_remaining count if
31876         we've just stat'ed a directory.  Skip the stat call when possible.
31877         ---
31878         Note this AFS-related exchange:
31879         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
31880         and note find's pioctl call in find/fstype.c.
31881         But that is necessary only if you want to enable the
31882         optimization for AFS, and for now, I don't.
31883
31884         fts: move a function definition "up" (no semantic change)
31885         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
31886         "up" to precede upcoming use of a related function.
31887
31888 2009-02-11  Jim Meyering  <meyering@redhat.com>
31889
31890         fts: correct internal computation of nlinks (optimization-related)
31891         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
31892         whether the current entry is a directory, so don't test it.
31893
31894 2009-02-10  Bruno Haible  <bruno@clisp.org>
31895
31896         Tests for module 'uniwbrk/ulc-wordbreaks'.
31897         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
31898         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
31899         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
31900
31901         Tests for module 'uniwbrk/u32-wordbreaks'.
31902         * modules/uniwbrk/u32-wordbreaks-tests: New file.
31903         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
31904
31905         Tests for module 'uniwbrk/u16-wordbreaks'.
31906         * modules/uniwbrk/u16-wordbreaks-tests: New file.
31907         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
31908
31909         Tests for module 'uniwbrk/u8-wordbreaks'.
31910         * modules/uniwbrk/u8-wordbreaks-tests: New file.
31911         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
31912
31913 2009-02-10  Bruno Haible  <bruno@clisp.org>
31914
31915         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
31916         property.
31917         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
31918         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
31919         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
31920
31921 2009-02-10  Simon Josefsson  <simon@josefsson.org>
31922
31923         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
31924         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
31925
31926 2009-02-10  Bruno Haible  <bruno@clisp.org>
31927
31928         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
31929         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
31930         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
31931         * lib/unilbrk/u8-possible-linebreaks.c: Update.
31932         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
31933         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
31934
31935 2009-02-09  Simon Josefsson  <simon@josefsson.org>
31936
31937         * lib/sockets.h (gl_fd_to_handle): New function.
31938
31939         * tests/test-sockets.c: Call gl_fd_to_handle.
31940
31941 2009-02-09  Bruno Haible  <bruno@clisp.org>
31942
31943         * doc/havelib.texi: Document the conventions on bi-arch systems.
31944
31945 2009-02-08  Bruno Haible  <bruno@clisp.org>
31946
31947         Document the AC_LIB_LINKFLAGS macro.
31948         * doc/havelib.texi: New file, mostly written on 2005-05-24.
31949         * doc/gnulib.texi: Include it.
31950
31951 2009-02-08  Bruno Haible  <bruno@clisp.org>
31952
31953         Fix wrong order of sections, compared to TOC.
31954         * doc/gnulib.texi: Include relocatable-maint.texi after the
31955         "Regular expressions" node, not before.
31956
31957 2009-02-08  Bruno Haible  <bruno@clisp.org>
31958
31959         Tests for module 'unicase/totitle'.
31960         * modules/unicase/totitle-tests: New file.
31961
31962         Tests for module 'unicase/tolower'.
31963         * modules/unicase/tolower-tests: New file.
31964
31965         Tests for module 'unicase/toupper'.
31966         * modules/unicase/toupper-tests: New file.
31967         * tests/unicase/test-mapping-part1.h: New file.
31968         * tests/unicase/test-mapping-part2.h: New file.
31969
31970         New module 'unicase/totitle'.
31971         * modules/unicase/totitle: New file.
31972         * lib/unicase/totitle.c: New file.
31973
31974         New module 'unicase/tolower'.
31975         * modules/unicase/tolower: New file.
31976         * lib/unicase/tolower.c: New file.
31977
31978         New module 'unicase/toupper'.
31979         * modules/unicase/toupper: New file.
31980         * lib/unicase/toupper.c: New file.
31981         * lib/unicase/simple-mapping.h: New file.
31982
31983         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31984         (mapping_table): New structure.
31985         (output_simple_mapping): New function.
31986         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31987         * modules/gen-uni-tables (Description): Update.
31988         * lib/unicase/toupper.h: New file, automatically generated by
31989         gen-uni-tables.
31990         * lib/unicase/tolower.h: New file, automatically generated by
31991         gen-uni-tables.
31992         * lib/unicase/totitle.h: New file, automatically generated by
31993         gen-uni-tables.
31994         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31995         gen-uni-tables.
31996         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31997         gen-uni-tables.
31998         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31999         gen-uni-tables.
32000
32001         New module 'unicase/base'.
32002         * modules/unicase/base: New file.
32003         * lib/unicase.h: New file.
32004
32005 2009-02-08  Bruno Haible  <bruno@clisp.org>
32006
32007         New module 'uniwbrk/ulc-wordbreaks'.
32008         * modules/uniwbrk/ulc-wordbreaks: New file.
32009         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32010
32011         New module 'uniwbrk/u32-wordbreaks'.
32012         * modules/uniwbrk/u32-wordbreaks: New file.
32013         * lib/uniwbrk/u32-wordbreaks.c: New file.
32014
32015         New module 'uniwbrk/u16-wordbreaks'.
32016         * modules/uniwbrk/u16-wordbreaks: New file.
32017         * lib/uniwbrk/u16-wordbreaks.c: New file.
32018
32019         New module 'uniwbrk/u8-wordbreaks'.
32020         * modules/uniwbrk/u8-wordbreaks: New file.
32021         * lib/uniwbrk/u8-wordbreaks.c: New file.
32022         * lib/uniwbrk/u-wordbreaks.h: New file.
32023
32024         New module 'uniwbrk/table'.
32025         * modules/uniwbrk/table: New file.
32026         * lib/uniwbrk/wbrktable.h: New file.
32027         * lib/uniwbrk/wbrktable.c: New file.
32028
32029         New module 'uniwbrk/wordbreak-property'.
32030         * modules/uniwbrk/wordbreak-property: New file.
32031         * lib/uniwbrk/wordbreak-property.c: New file.
32032
32033         * lib/gen-uni-tables.c (WBP_*): New enum items.
32034         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32035         (unicode_org_wbp): New variable.
32036         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32037         New functions.
32038         (wbp_table): New structure.
32039         (output_wbp, output_wbrk_tables): New functions.
32040         (main): Accept additional argument. Invoke fill_org_wbp,
32041         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32042         output_wbrk_tables.
32043         * modules/gen-uni-tables (Description): Update.
32044         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32045         gen-uni-tables.
32046
32047         New module 'uniwbrk/base'.
32048         * modules/uniwbrk/base: New file.
32049         * lib/uniwbrk.h: New file.
32050
32051 2009-02-08  Bruno Haible  <bruno@clisp.org>
32052
32053         Update to Unicode 5.1.0.
32054         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32055         U+2185..U+2188.
32056         (is_property_default_ignorable_code_point): Don't include characters
32057         of category Cc or Cs and not-a-characters.
32058         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32059         U+0D79, U+109E, U+109F, U+A60C.
32060         * lib/unictype/bidi_of.h: Regenerated.
32061         * lib/unictype/blocks.h: Regenerated.
32062         * lib/unictype/categ_C.h: Regenerated.
32063         * lib/unictype/categ_Cf.h: Regenerated.
32064         * lib/unictype/categ_Cn.h: Regenerated.
32065         * lib/unictype/categ_L.h: Regenerated.
32066         * lib/unictype/categ_Ll.h: Regenerated.
32067         * lib/unictype/categ_Lm.h: Regenerated.
32068         * lib/unictype/categ_Lo.h: Regenerated.
32069         * lib/unictype/categ_Lu.h: Regenerated.
32070         * lib/unictype/categ_M.h: Regenerated.
32071         * lib/unictype/categ_Mc.h: Regenerated.
32072         * lib/unictype/categ_Me.h: Regenerated.
32073         * lib/unictype/categ_Mn.h: Regenerated.
32074         * lib/unictype/categ_N.h: Regenerated.
32075         * lib/unictype/categ_Nd.h: Regenerated.
32076         * lib/unictype/categ_Nl.h: Regenerated.
32077         * lib/unictype/categ_No.h: Regenerated.
32078         * lib/unictype/categ_P.h: Regenerated.
32079         * lib/unictype/categ_Pd.h: Regenerated.
32080         * lib/unictype/categ_Pe.h: Regenerated.
32081         * lib/unictype/categ_Pf.h: Regenerated.
32082         * lib/unictype/categ_Pi.h: Regenerated.
32083         * lib/unictype/categ_Po.h: Regenerated.
32084         * lib/unictype/categ_Ps.h: Regenerated.
32085         * lib/unictype/categ_S.h: Regenerated.
32086         * lib/unictype/categ_Sk.h: Regenerated.
32087         * lib/unictype/categ_Sm.h: Regenerated.
32088         * lib/unictype/categ_So.h: Regenerated.
32089         * lib/unictype/categ_of.h: Regenerated.
32090         * lib/unictype/combining.h: Regenerated.
32091         * lib/unictype/ctype_alnum.h: Regenerated.
32092         * lib/unictype/ctype_alpha.h: Regenerated.
32093         * lib/unictype/ctype_graph.h: Regenerated.
32094         * lib/unictype/ctype_lower.h: Regenerated.
32095         * lib/unictype/ctype_print.h: Regenerated.
32096         * lib/unictype/ctype_punct.h: Regenerated.
32097         * lib/unictype/ctype_upper.h: Regenerated.
32098         * lib/unictype/decdigit.h: Regenerated.
32099         * lib/unictype/digit.h: Regenerated.
32100         * lib/unictype/mirror.h: Regenerated.
32101         * lib/unictype/numeric.h: Regenerated.
32102         * lib/unictype/pr_alphabetic.h: Regenerated.
32103         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32104         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32105         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32106         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32107         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32108         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32109         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32110         * lib/unictype/pr_combining.h: Regenerated.
32111         * lib/unictype/pr_dash.h: Regenerated.
32112         * lib/unictype/pr_decimal_digit.h: Regenerated.
32113         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32114         * lib/unictype/pr_deprecated.h: Regenerated.
32115         * lib/unictype/pr_diacritic.h: Regenerated.
32116         * lib/unictype/pr_extender.h: Regenerated.
32117         * lib/unictype/pr_format_control.h: Regenerated.
32118         * lib/unictype/pr_grapheme_base.h: Regenerated.
32119         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32120         * lib/unictype/pr_grapheme_link.h: Regenerated.
32121         * lib/unictype/pr_id_continue.h: Regenerated.
32122         * lib/unictype/pr_id_start.h: Regenerated.
32123         * lib/unictype/pr_ideographic.h: Regenerated.
32124         * lib/unictype/pr_ignorable_control.h: Regenerated.
32125         * lib/unictype/pr_lowercase.h: Regenerated.
32126         * lib/unictype/pr_math.h: Regenerated.
32127         * lib/unictype/pr_numeric.h: Regenerated.
32128         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32129         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32130         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32131         * lib/unictype/pr_other_id_continue.h: Regenerated.
32132         * lib/unictype/pr_other_lowercase.h: Regenerated.
32133         * lib/unictype/pr_other_math.h: Regenerated.
32134         * lib/unictype/pr_punctuation.h: Regenerated.
32135         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32136         * lib/unictype/pr_soft_dotted.h: Regenerated.
32137         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32138         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32139         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32140         * lib/unictype/pr_uppercase.h: Regenerated.
32141         * lib/unictype/pr_xid_continue.h: Regenerated.
32142         * lib/unictype/pr_xid_start.h: Regenerated.
32143         * lib/unictype/pr_zero_width.h: Regenerated.
32144         * lib/unictype/scripts.h: Regenerated.
32145         * lib/unictype/scripts_byname.gperf: Regenerated.
32146         * lib/unictype/sy_java_ident.h: Regenerated.
32147         * lib/unilbrk/lbrkprop1.h: Regenerated.
32148         * lib/unilbrk/lbrkprop2.h: Regenerated.
32149         * tests/unictype/test-categ_C.c: Regenerated.
32150         * tests/unictype/test-categ_Cf.c: Regenerated.
32151         * tests/unictype/test-categ_Cn.c: Regenerated.
32152         * tests/unictype/test-categ_L.c: Regenerated.
32153         * tests/unictype/test-categ_Ll.c: Regenerated.
32154         * tests/unictype/test-categ_Lm.c: Regenerated.
32155         * tests/unictype/test-categ_Lo.c: Regenerated.
32156         * tests/unictype/test-categ_Lu.c: Regenerated.
32157         * tests/unictype/test-categ_M.c: Regenerated.
32158         * tests/unictype/test-categ_Mc.c: Regenerated.
32159         * tests/unictype/test-categ_Me.c: Regenerated.
32160         * tests/unictype/test-categ_Mn.c: Regenerated.
32161         * tests/unictype/test-categ_N.c: Regenerated.
32162         * tests/unictype/test-categ_Nd.c: Regenerated.
32163         * tests/unictype/test-categ_Nl.c: Regenerated.
32164         * tests/unictype/test-categ_No.c: Regenerated.
32165         * tests/unictype/test-categ_P.c: Regenerated.
32166         * tests/unictype/test-categ_Pd.c: Regenerated.
32167         * tests/unictype/test-categ_Pe.c: Regenerated.
32168         * tests/unictype/test-categ_Pf.c: Regenerated.
32169         * tests/unictype/test-categ_Pi.c: Regenerated.
32170         * tests/unictype/test-categ_Po.c: Regenerated.
32171         * tests/unictype/test-categ_Ps.c: Regenerated.
32172         * tests/unictype/test-categ_S.c: Regenerated.
32173         * tests/unictype/test-categ_Sk.c: Regenerated.
32174         * tests/unictype/test-categ_Sm.c: Regenerated.
32175         * tests/unictype/test-categ_So.c: Regenerated.
32176         * tests/unictype/test-ctype_alnum.c: Regenerated.
32177         * tests/unictype/test-ctype_alpha.c: Regenerated.
32178         * tests/unictype/test-ctype_graph.c: Regenerated.
32179         * tests/unictype/test-ctype_lower.c: Regenerated.
32180         * tests/unictype/test-ctype_print.c: Regenerated.
32181         * tests/unictype/test-ctype_punct.c: Regenerated.
32182         * tests/unictype/test-ctype_upper.c: Regenerated.
32183         * tests/unictype/test-decdigit.h: Regenerated.
32184         * tests/unictype/test-digit.h: Regenerated.
32185         * tests/unictype/test-numeric.h: Regenerated.
32186         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32187         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32188         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32189         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32190         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32191         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32192         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32193         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32194         * tests/unictype/test-pr_combining.c: Regenerated.
32195         * tests/unictype/test-pr_dash.c: Regenerated.
32196         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32197         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32198         * tests/unictype/test-pr_deprecated.c: Regenerated.
32199         * tests/unictype/test-pr_diacritic.c: Regenerated.
32200         * tests/unictype/test-pr_extender.c: Regenerated.
32201         * tests/unictype/test-pr_format_control.c: Regenerated.
32202         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32203         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32204         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32205         * tests/unictype/test-pr_id_continue.c: Regenerated.
32206         * tests/unictype/test-pr_id_start.c: Regenerated.
32207         * tests/unictype/test-pr_ideographic.c: Regenerated.
32208         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32209         * tests/unictype/test-pr_lowercase.c: Regenerated.
32210         * tests/unictype/test-pr_math.c: Regenerated.
32211         * tests/unictype/test-pr_numeric.c: Regenerated.
32212         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32213         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32214         Regenerated.
32215         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32216         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32217         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32218         * tests/unictype/test-pr_other_math.c: Regenerated.
32219         * tests/unictype/test-pr_punctuation.c: Regenerated.
32220         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32221         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32222         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32223         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32224         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32225         * tests/unictype/test-pr_uppercase.c: Regenerated.
32226         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32227         * tests/unictype/test-pr_xid_start.c: Regenerated.
32228         * tests/unictype/test-pr_zero_width.c: Regenerated.
32229
32230         Update to Unicode 5.1.0.
32231         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32232         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32233         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32234         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32235         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32236         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32237         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32238         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32239         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32240         (nonspacing_table_ind): Update.
32241         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32242
32243         Update to Unicode 5.1.0.
32244         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32245         code transform.
32246         * lib/uniname/uniname.c (unicode_character_name,
32247         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32248         * lib/uniname/uninames.h: Regenerated.
32249         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32250
32251 2009-02-07  Bruno Haible  <bruno@clisp.org>
32252
32253         Merge gen-ctype and gen-lbrk into a single program.
32254         * lib/gen-uni-tables.c: New file, incorporating
32255         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32256         Add directory prefixes to the names of the generated files.
32257         * lib/unictype/gen-ctype.c: Remove file.
32258         * lib/unilbrk/gen-lbrk.c: Remove file.
32259         * modules/gen-uni-tables: New file.
32260         * modules/unictype/gen-ctype: Remove file.
32261         * modules/unilbrk/gen-lbrk: Remove file.
32262
32263 2009-02-07  Bruno Haible  <bruno@clisp.org>
32264
32265         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32266
32267         New module 'unistr/u32-strcoll'.
32268         * modules/unistr/u32-strcoll: New file.
32269         * lib/unistr/u32-strcoll.c: New file.
32270
32271         New module 'unistr/u16-strcoll'.
32272         * modules/unistr/u16-strcoll: New file.
32273         * lib/unistr/u16-strcoll.c: New file.
32274
32275         New module 'unistr/u8-strcoll'.
32276         * modules/unistr/u8-strcoll: New file.
32277         * lib/unistr/u8-strcoll.c: New file.
32278         * lib/unistr/u-strcoll.h: New file.
32279
32280 2009-02-07  Bruno Haible  <bruno@clisp.org>
32281
32282         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32283         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32284         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32285         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32286         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32287         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32288
32289 2009-02-07  Bruno Haible  <bruno@clisp.org>
32290
32291         Make 64-bit clean.
32292         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32293         output_combclass, output_bidi_category, output_decimal_digit,
32294         output_digit, output_numeric, output_mirror, output_scripts,
32295         output_ident_category): Use proper width specifier in format strings.
32296
32297 2009-02-07  Bruno Haible  <bruno@clisp.org>
32298
32299         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32300         failure behaviour.
32301
32302 2009-02-07  Jim Meyering  <meyering@redhat.com>
32303
32304         regex: avoid compilation failure with upcoming gcc-4.4
32305         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32306         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32307         "... error: integer overflow in preprocessor expression".
32308
32309 2009-02-05  Ben Pfaff  <blp@gnu.org>
32310
32311         Fix link errors on Windows when close module is used.
32312         * modules/close: Add $(LIB_CLOSE) to Link section.
32313         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32314         $(LIB_CLOSE) on Windows.
32315
32316 2009-02-05  Jim Meyering  <meyering@redhat.com>
32317
32318         still avoid unused-parameter warnings, but do it cleanly
32319         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32320         (get_fs_usage): Cast to void instead.
32321         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32322         (dev_from_mount_options, read_file_system_list): Cast to void.
32323         Prompted by Bruno Haible.
32324
32325 2009-02-04  Jim Meyering  <meyering@redhat.com>
32326
32327         fsusage.c: correct copyright year
32328         * lib/fsusage.c: Reflect year in which the change is pushed into
32329
32330         avoid misc. warnings
32331         * lib/fsusage.c (UNUSED_PARAM): Define.
32332         (get_fs_usage): Mark parameter "disk" as unused.
32333         * lib/getugroups.c (getgrent): Use "void" in prototype.
32334         * lib/mountlist.c: Mark unused parameters.
32335         (read_file_system_list): Declare a local with "const".
32336         * lib/nanosleep.c (getnow): Declare static.
32337         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32338
32339         dirfd: set errno upon failure
32340         * lib/dirfd.c: Include <errno.h>.
32341         Set errno to ENOTSUP when returning -1.
32342         * modules/dirfd (Depends-on): Add errno.
32343         Suggested by John Kodis <kodis@comcast.net>.
32344
32345 2009-02-01  Bruno Haible  <bruno@clisp.org>
32346
32347         Don't assume sizeof (long) >= sizeof (void *).
32348         * lib/memcmp.c: Include stdint.h.
32349         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32350         srcp2 to 'const byte *'.
32351         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32352         types to uintptr_t.
32353         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32354         * modules/memcmp (Depends-on): Add stdint.
32355         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32356
32357 2009-01-30  Eric Blake  <ebb9@byu.net>
32358
32359         fix more require-before-expand issues
32360         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32361         expand, AC_PROG_AWK.
32362         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32363
32364 2009-01-28  Eric Blake  <ebb9@byu.net>
32365
32366         version-etc: use consistent URL formatting
32367         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32368         Improve formatting.  Use fputs for string without %.
32369
32370 2009-01-28  Jim Meyering  <meyering@redhat.com>
32371
32372         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32373         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32374         "underquoted definition of NAME" from autoconf-2.59.
32375
32376 2009-01-28  Bruno Haible  <bruno@clisp.org>
32377
32378         * doc/gnulib.texi: Add "Obsolete modules" to index.
32379
32380 2009-01-28  Jim Meyering  <meyering@redhat.com>
32381
32382         useless-if-before-free: recognize more variants
32383         * build-aux/useless-if-before-free: Also recognize e.g.,
32384         if (NULL != p) free (p);
32385
32386 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32387
32388         test-getaddrinfo: skip (don't fail) this test when there's no network
32389         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32390         on the presumption that it means you lack network access.
32391
32392 2009-01-26  Jim Meyering  <meyering@redhat.com>
32393
32394         fflush: avoid warnings on modern systems
32395         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32396         pos and result, into scopes where they're used.
32397
32398 2009-01-26  Eric Blake  <ebb9@byu.net>
32399
32400         Silence warning reintroduced by recent extensions patch.
32401         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32402         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32403         autoconf.
32404
32405         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32406         * m4/00gnulib.m4: New file.
32407         * gnulib-tool (func_get_filelist): Always use it.
32408         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32409         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32410
32411 2009-01-25  Bruno Haible  <bruno@clisp.org>
32412
32413         Make test-quotearg work on MacOS X and AIX.
32414         * tests/test-quotearg.sh: New file.
32415         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32416         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32417         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32418         include <libintl.h>.
32419         (fake_locale): Remove variable.
32420         (gettext, dgettext, dcgettext): Remove functions.
32421         (main): Instead of setting a fake locale, set a real locale. Call
32422         textdomain and bindtextdomain.
32423         * modules/quotearg-tests (Files): Add the new files.
32424         (Depends-on): Add gettext, setenv, unsetenv.
32425         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32426         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32427         Augment TESTS_ENVIRONMENT.
32428
32429 2009-01-25  Bruno Haible  <bruno@clisp.org>
32430
32431         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32432         fr_FR.ISO8859-1 locale on MacOS X.
32433         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32434         ja_JP.eucJP locale on MacOS X.
32435         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32436         zh_CN.GB18030 locale on MacOS X.
32437
32438 2009-01-25  Bruno Haible  <bruno@clisp.org>
32439
32440         Avoid link errors on MacOS X 10.3.
32441         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32442         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32443
32444 2009-01-25  Bruno Haible  <bruno@clisp.org>
32445
32446         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32447         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32448         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32449         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32450         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32451         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32452         posix_spawnattr_init, posix_spawnattr_setsigmask,
32453         posix_spawnattr_setflags, posix_spawnattr_destroy.
32454
32455         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32456         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32457         * modules/execute (Files): Remove m4/posix_spawn.m4.
32458         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32459         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32460         posix_spawnattr_init, posix_spawnattr_setsigmask,
32461         posix_spawnattr_setflags, posix_spawnattr_destroy.
32462
32463 2009-01-25  Bruno Haible  <bruno@clisp.org>
32464
32465         * lib/glthread/threadlib.c: Include <stdlib.h>.
32466
32467 2009-01-25  Bruno Haible  <bruno@clisp.org>
32468
32469         * lib/glthread/threadlib.c (dummy): New declaration.
32470
32471 2009-01-25  Bruno Haible  <bruno@clisp.org>
32472
32473         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
32474         multibyte characters also for the GB18030 encoding. Don't crash when
32475         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
32476
32477 2009-01-25  Bruno Haible  <bruno@clisp.org>
32478
32479         Avoid redefining 'struct random_data' on OSF/1 5.1.
32480         * lib/stdlib.in.h: Include <random.h> if it exists.
32481         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
32482         HAVE_RANDOM_H. Include <random.h> when testing whether
32483         'struct random_data' exists.
32484         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
32485
32486 2009-01-25  Bruno Haible  <bruno@clisp.org>
32487
32488         Don't install charset.alias on MacOS X >= 10.3.
32489         * lib/localcharset.c (DARWIN7): New macro.
32490         (get_charset_aliases): Hardcode the result for Darwin7.
32491         * modules/localcharset (install-exec-local): Don't install
32492         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
32493
32494 2009-01-25  Bruno Haible  <bruno@clisp.org>
32495
32496         Don't install charset.alias on mingw and Cygwin.
32497         * modules/localcharset (install-exec-local): Don't install
32498         charset.alias on mingw and Cygwin, if the file does not yet exist.
32499         The result for these platforms is hardcoded in localcharset.c.
32500
32501 2009-01-25  Bruno Haible  <bruno@clisp.org>
32502
32503         Make it possible again to use AC_GNU_SOURCE together with gnulib.
32504         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
32505         before requiring AC_USE_SYSTEM_EXTENSIONS.
32506
32507 2009-01-25  Jim Meyering  <meyering@redhat.com>
32508
32509         c-strtod: avoid warnings
32510         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
32511         "assignment discards qualifiers from pointer target type" warnings.
32512
32513 2009-01-24  Bruno Haible  <bruno@clisp.org>
32514
32515         Add support for non-UTF-8 locales on MacOS X.
32516         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
32517         canonical encodings. For Darwin 7 and newer, don't map traditional
32518         encodings to UTF-8.
32519         Reported by Vincent Lefevre <vincent@vinc17.org>
32520         at <http://savannah.gnu.org/bugs/?25235>.
32521
32522 2009-01-24  Bruno Haible  <bruno@clisp.org>
32523
32524         * doc/gnulib.texi (Obsolete modules): New section.
32525         Reported by Mike Frysinger <vapier@gentoo.org>.
32526
32527 2009-01-24  Bruno Haible  <bruno@clisp.org>
32528
32529         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
32530         (%.dvi): New rule.
32531
32532 2009-01-24  Bruno Haible  <bruno@clisp.org>
32533
32534         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
32535         Reported by Eric Blake.
32536
32537 2009-01-24  Bruno Haible  <bruno@clisp.org>
32538
32539         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
32540         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
32541         Reported by Gary V. Vaughan <gary@gnu.org>.
32542
32543 2009-01-24  Bruno Haible  <bruno@clisp.org>
32544
32545         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
32546
32547 2009-01-23  Bruno Haible  <bruno@clisp.org>
32548
32549         Make c-strtod, c-strtold usable in libraries.
32550         * lib/c-strtod.c: Include string.h instead of xalloc.h.
32551         (C_STRTOD): Call strdup instead of xstrdup.
32552         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
32553         * modules/c-strtold (Depends-on): Likewise.
32554         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
32555         * NEWS: Mention the change.
32556         Reported by Michael Gold <mgold@ncf.ca>.
32557
32558 2009-01-23  Jim Meyering  <meyering@redhat.com>
32559
32560         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
32561         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
32562         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
32563
32564 2009-01-23  Simon Josefsson  <simon@josefsson.org>
32565
32566         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
32567         GNU CoreUtils.
32568         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
32569         * modules/version-etc (Description): Update.
32570
32571 2009-01-22  Bruno Haible  <bruno@clisp.org>
32572
32573         Cache the C locale object.
32574         * lib/c-strtod.c (c_locale_cache): New variable.
32575         (c_locale): New function.
32576         (C_STRTOD): Use it, and don't call freelocale.
32577         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
32578         Suggested by Paolo Bonzini.
32579
32580 2009-01-21  Bruno Haible  <bruno@clisp.org>
32581
32582         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
32583         conditions other than overflow.
32584
32585 2009-01-21  Bruno Haible  <bruno@clisp.org>
32586
32587         * lib/c-strtod.c: Include errno.h.
32588         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
32589         value from STRTOD_L and STRTOD.
32590
32591 2009-01-21  Bruno Haible  <bruno@clisp.org>
32592         and Jim Meyering  <meyering@redhat.com>
32593
32594         nanosleep: skip configure test (fail it) for apple universal builds
32595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
32596         universal builds, assume that nanosleep does not work.
32597         * modules/nanosleep (Depends-on): Add multiarch.
32598
32599         mktime: skip configure test (fail it) for apple universal builds
32600         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
32601         universal builds, assume that mktime does not work.
32602         * modules/mktime (Depends-on): Add multiarch.
32603
32604 2009-01-21  Eric Blake  <ebb9@byu.net>
32605
32606         multiarch: avoid expand-before-require warning
32607         * modules/multiarch (configure.ac): Require, rather than expand,
32608         gl_MULTIARCH.
32609         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
32610         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
32611         enforce that all clients require it.  Partial reversion of
32612         2008-12-29 patch.
32613
32614         error: avoid expand-before-require warning
32615         * modules/errno (configure.ac): Require, rather than expand,
32616         gl_HEADER_ERRNO_H.
32617         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
32618         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
32619         enforce that all clients require it.
32620
32621         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
32622         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
32623         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
32624         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
32625
32626 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
32627
32628         Revert:
32629         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32630
32631         regex: do not depend on obsolete modules.
32632         * modules/regex: Remove memcmp and memmove.
32633
32634 2009-01-20  Bruno Haible  <bruno@clisp.org>
32635
32636         Make the 'link' module link on Windows NT 4.
32637         * lib/link.c (_WIN32_WINNT): Don't define.
32638         (CreateHardLinkFuncType): New type.
32639         (CreateHardLinkFunc, initialized): New variables.
32640         (initialize): New function.
32641         (link): Invoke CreateHardLink indirectly through the function pointer.
32642
32643 2009-01-20  Bruno Haible  <bruno@clisp.org>
32644
32645         Fix compilation failure on mingw.
32646         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32647
32648 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32649
32650         * doc/c-strtod.texi: Mention a couple of restrictions.
32651
32652 2009-01-20  Jim Meyering  <meyering@redhat.com>
32653
32654         gettimeofday: move more declarations out of functions
32655         * lib/gettimeofday.c: Move extern declarations of tzset and
32656         gmtime out of containing functions.  Prompted by Bruno Haible.
32657
32658 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32659
32660         regex: do not depend on obsolete modules.
32661         * modules/regex: Remove memcmp and memmove.
32662
32663 2009-01-19  Bruno Haible  <bruno@clisp.org>
32664
32665         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32666         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32667         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32668         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32669         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32670
32671 2009-01-19  Bruno Haible  <bruno@clisp.org>
32672
32673         * tests/test-link.c: Include <errno.h>.
32674         (main): Exit with code 77 when a hard link cannot be created due to
32675         the file system.
32676         * tests/test-link.sh: Skip test when a hard link cannot be created due
32677         to the file system.
32678         Suggested by Eric Blake.
32679
32680 2009-01-19  Martin Lambers  <marlam@marlam.de>
32681
32682         * modules/link-tests: New file.
32683         * tests/test-link.sh: New file.
32684         * tests/test-link.c: New file.
32685
32686 2009-01-19  Eric Blake  <ebb9@byu.net>
32687
32688         doc: mention another function added in cygwin 1.7.0
32689         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32690         Another new function in cygwin 1.7.
32691
32692 2009-01-19  Bruno Haible  <bruno@clisp.org>
32693
32694         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32695         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32696         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32697         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32698         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32699         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32700         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32701         * m4/md4.m4 (gl_MD4): Likewise.
32702         * m4/md5.m4 (gl_MD5): Likewise.
32703         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32704         * m4/sha1.m4 (gl_SHA1): Likewise.
32705         * m4/sha256.m4 (gl_SHA256): Likewise.
32706         * m4/sha512.m4 (gl_SHA512): Likewise.
32707
32708 2009-01-19  Bruno Haible  <bruno@clisp.org>
32709
32710         * modules/uniname/uniname-tests (Depends-on): Add progname.
32711         * tests/uniname/test-uninames.c: Include progname.h.
32712         (main): Call set_program_name.
32713
32714         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32715         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32716         (main): Call set_program_name.
32717
32718         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32719         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32720         (main): Call set_program_name.
32721
32722         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32723         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32724         (main): Call set_program_name.
32725
32726         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32727         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32728         (main): Call set_program_name.
32729
32730         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32731         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32732         (main): Call set_program_name.
32733
32734         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32735         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
32736         (main): Call set_program_name.
32737
32738         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
32739         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
32740         (main): Call set_program_name.
32741
32742         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
32743         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
32744         (main): Call set_program_name.
32745
32746 2009-01-19  Eric Blake  <ebb9@byu.net>
32747
32748         test-unistd: test previous patch
32749         * tests/test-unistd.c: Test *_FILENO macros.
32750
32751         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
32752         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32753         Guarantee a definition.
32754         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
32755         * modules/unistd-safer (Depends-on): Add dependency on unistd.
32756         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
32757         * lib/dup-safer.c (STDERR_FILENO): Likewise.
32758         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32759         Likewise.
32760         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
32761         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
32762         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32763         Likewise.
32764         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
32765         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
32766         (STDERR_FILENO): Likewise.
32767         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
32768         (STDERR_FILENO): Likewise.
32769         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
32770         (STDERR_FILENO): Likewise.
32771         Reported by Elbert Pol.
32772
32773 2009-01-19  Eric Blake  <ebb9@byu.net>
32774
32775         doc: mention more functions added in cygwin 1.7.0
32776         * doc/posix-functions/abort.texi (abort): Update wording related
32777         to cygwin.
32778         * doc/posix-functions/daylight.texi (daylight): Likewise.
32779         * doc/posix-functions/optarg.texi (optarg): Likewise.
32780         * doc/posix-functions/optarg.texi (opterr): Likewise.
32781         * doc/posix-functions/optarg.texi (optind): Likewise.
32782         * doc/posix-functions/optarg.texi (optopt): Likewise.
32783         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
32784         worked in 1.5.x, and was withdrawn in 1.7.
32785         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32786         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
32787         cygwin versions.
32788         * doc/posix-functions/perror.texi (perror): Likewise.
32789         * doc/posix-functions/printf.texi (printf): Likewise.
32790         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
32791         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
32792         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32793         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32794         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32795         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
32796         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32797         Likewise.
32798         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32799         Likewise.
32800         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
32801         this function.
32802         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
32803         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
32804         Likewise.
32805         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
32806         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
32807         * doc/posix-functions/confstr.texi (confstr): Likewise.
32808         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
32809         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
32810         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
32811         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
32812         * doc/posix-functions/fputws.texi (fputws): Likewise.
32813         * doc/posix-functions/fwide.texi (fwide): Likewise.
32814         * doc/posix-functions/getwc.texi (getwc): Likewise.
32815         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
32816         * doc/posix-functions/putwc.texi (putwc): Likewise.
32817         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32818         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
32819         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
32820         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32821         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
32822         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
32823         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
32824         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
32825         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
32826         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
32827         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
32828
32829 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32830
32831         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
32832         * lib/ioctl.c: Include <sys/ioctl.h>.
32833
32834 2009-01-19  Simon Josefsson  <simon@josefsson.org>
32835
32836         * modules/getdate-tests (Depends-on): Add progname.
32837         * tests/test-getdate.c: Use progname module, to avoid link errors
32838         on non-glibc systems.
32839
32840 2009-01-18  Simon Josefsson  <simon@josefsson.org>
32841
32842         * modules/filenamecat-tests (Depends-on): Add progname.
32843         * modules/fstrcmp-tests (Depends-on): Likewise.
32844
32845         * tests/test-filenamecat.c: Use progname module, to avoid link
32846         errors on non-glibc systems.
32847         * tests/test-fstrcmp.c: Likewise.
32848
32849 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32850
32851         gettimeofday: avoid warning: nested extern declaration of 'localtime'
32852         * lib/gettimeofday.c: Move extern declaration out of function.
32853
32854 2009-01-18  Bruno Haible  <bruno@clisp.org>
32855
32856         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
32857         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
32858         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
32859
32860 2009-01-18  Bruno Haible  <bruno@clisp.org>
32861
32862         * lib/strftime.c (MEMPCPY): Remove unused macro.
32863         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
32864
32865 2009-01-18  Martin Lambers  <marlam@marlam.de>
32866
32867         New module 'link'.
32868         * lib/unistd.in.h (link): New declaration.
32869         * lib/link.c: New file.
32870         * m4/link.m4: New file.
32871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
32872         HAVE_LINK.
32873         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
32874         * modules/link: New file.
32875         * doc/posix-functions/link.texi: Mention the new module.
32876
32877 2009-01-18  Bruno Haible  <bruno@clisp.org>
32878
32879         * tests/test-avltree_list.c (main): Call set_program_name.
32880         * tests/test-avltree_oset.c (main): Likewise.
32881         * tests/test-obstack-printf.c: Include progname.h.
32882         (main): Call set_program_name.
32883         * tests/test-quotearg.c: Include progname.h.
32884         (main): Call set_program_name.
32885         * tests/test-xmemdup0.c: Include progname.h.
32886         (main): Call set_program_name.
32887
32888 2009-01-18  Bruno Haible  <bruno@clisp.org>
32889
32890         New module 'alphasort'.
32891         * lib/dirent.in.h (alphasort): New declaration.
32892         * lib/alphasort.c: New file, from glibc with modifications.
32893         * m4/alphasort.m4: New file.
32894         * modules/alphasort: New file.
32895         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
32896         HAVE_ALPHASORT.
32897         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
32898         HAVE_ALPHASORT.
32899         * doc/posix-functions/alphasort.texi: Mention the new module and the
32900         portability problems.
32901
32902 2009-01-18  Bruno Haible  <bruno@clisp.org>
32903
32904         New module 'scandir'.
32905         * lib/dirent.in.h (scandir): New declaration.
32906         * lib/scandir.c: New file, from glibc with modifications.
32907         * m4/scandir.m4: New file.
32908         * modules/scandir: New file.
32909         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
32910         HAVE_SCANDIR.
32911         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
32912         HAVE_SCANDIR.
32913         * doc/posix-functions/scandir.texi: Mention the new module and the
32914         portability problems.
32915
32916 2009-01-17  Bruno Haible  <bruno@clisp.org>
32917
32918         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
32919         Update documentation.
32920         (func_remove_suffix): Escape all dots in the suffix. Update
32921         documentation.
32922         (func_filter_filelist): Update documentation.
32923         Reported by Ralf Wildenhues.
32924
32925 2009-01-17  Bruno Haible  <bruno@clisp.org>
32926
32927         * modules/dprintf-posix-tests: New file.
32928         * tests/test-dprintf-posix.sh: New file.
32929         * tests/test-dprintf-posix.c: New file.
32930
32931         New modules 'dprintf', 'dprintf-posix'.
32932         * lib/stdio.in.h (dprintf): New declaration.
32933         * lib/dprintf.c: New file.
32934         * m4/dprintf.m4: New file.
32935         * m4/dprintf-posix.m4: New file.
32936         * modules/dprintf: New file.
32937         * modules/dprintf-posix: New file.
32938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
32939         HAVE_DPRINTF, REPLACE_DPRINTF.
32940         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
32941         HAVE_DPRINTF, REPLACE_DPRINTF.
32942         * doc/posix-functions/dprintf.texi: Mention the new modules.
32943
32944 2009-01-17  Bruno Haible  <bruno@clisp.org>
32945
32946         * modules/vdprintf-posix-tests: New file.
32947         * tests/test-vdprintf-posix.sh: New file.
32948         * tests/test-vdprintf-posix.c: New file.
32949
32950         New modules 'vdprintf', 'vdprintf-posix'.
32951         * lib/stdio.in.h (vdprintf): New declaration.
32952         * lib/vdprintf.c: New file.
32953         * m4/vdprintf.m4: New file.
32954         * m4/vdprintf-posix.m4: New file.
32955         * modules/vdprintf: New file.
32956         * modules/vdprintf-posix: New file.
32957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
32958         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32959         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
32960         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32961         * doc/posix-functions/vdprintf.texi: Mention the new modules.
32962
32963 2009-01-17  Bruno Haible  <bruno@clisp.org>
32964
32965         Fix replacement of fopen on mingw.
32966         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
32967         mingw.
32968
32969 2009-01-17  Bruno Haible  <bruno@clisp.org>
32970
32971         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
32972         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
32973
32974 2009-01-17  Bruno Haible  <bruno@clisp.org>
32975
32976         Avoid test-fflush2.sh failure on mingw.
32977         * tests/test-fflush2.c: Include binary-io.h.
32978         (main): Put standard input into binary mode.
32979         * modules/fflush-tests (Depends-on): Add binary-io.
32980
32981 2009-01-17  Bruno Haible  <bruno@clisp.org>
32982
32983         * lib/wchar.in.h: In another particular situation, include only the
32984         system's <wchar.h> file.
32985         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32986         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32987         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32988
32989 2009-01-17  Bruno Haible  <bruno@clisp.org>
32990
32991         Support for stripping executables in --enable-relocatable.
32992         * build-aux/install-reloc: Expect one more argument, or an environment
32993         variable RELOC_STRIP_PROG. If set, strip the destination program and
32994         its wrapper.
32995         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32996         RELOC_STRIP_PROG.
32997         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32998         to set RELOCATABLE_STRIP.
32999         * NEWS: Mention the new Makefile requirement.
33000
33001 2009-01-17  Bruno Haible  <bruno@clisp.org>
33002
33003         * build-aux/install-reloc: Remove debugging information left over by
33004         C compiler on MacOS X.
33005
33006 2009-01-17  Bruno Haible  <bruno@clisp.org>
33007
33008         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33009         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33010         _NSGetExecutablePath.
33011
33012 2009-01-16  Jim Meyering  <meyering@redhat.com>
33013
33014         strerror: avoid warnings about discarding "const"
33015         * lib/strerror.c (rpl_strerror): Instead of returning a const
33016         string from each and every "case", use a variable, and add a single
33017         cast after the switch.
33018
33019 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33020
33021         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33022
33023 2009-01-16  Bruno Haible  <bruno@clisp.org>
33024
33025         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33026         array initializer syntax that also works in C++ mode.
33027         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33028
33029 2009-01-16  Jim Meyering  <meyering@redhat.com>
33030
33031         poll: suppress a warning
33032         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33033         to ignore "...unsigned expression < 0 is always false" warnings.
33034
33035 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33036
33037         poll: remove declarations of unused variables
33038         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33039         sockbuf and optlen.
33040
33041 2009-01-15  Bruno Haible  <bruno@clisp.org>
33042
33043         Make fflush-after-ungetc POSIX compliant on BSD systems.
33044         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33045         (clear_ungetc_buffer): Implement also for other systems.
33046         (rpl_fflush): On glibc systems, invoke
33047         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33048         clear_ungetc_buffer after fetching the stream's position, not before.
33049
33050 2009-01-15  Bruno Haible  <bruno@clisp.org>
33051
33052         Make fflush-after-ungetc POSIX compliant on glibc systems.
33053         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33054         after ungetc.
33055         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33056         (rpl_fflush): On glibc systems, simply call the system's fflush
33057         function after clearing the ungetc buffer.
33058         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33059         Instead, lseek only to the end of file, then use the system's fseeko
33060         for the rest. On glibc systems, reset the EOF indicator bit.
33061
33062 2009-01-15  Jim Meyering  <meyering@redhat.com>
33063
33064         openmp.m4: revert quote-adding change, for portability to older autoconf
33065         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33066         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33067         Simon Josefsson noticed the problem when using autoconf-2.61.
33068
33069 2009-01-15  Bruno Haible  <bruno@clisp.org>
33070
33071         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33072         * tests/test-fflush2.c (ASSERT): Always fail.
33073         (main): Add two tests for fflush() after ungetc(), taking into account
33074         the Austin Group's clarification.
33075         Suggested by Eric Blake.
33076
33077 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33078
33079         mktime.m4: remove K&R-style function prototypes
33080         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33081         for the Sun C++ compiler.
33082
33083 2009-01-14  Bruno Haible  <bruno@clisp.org>
33084
33085         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33086         while including <wchar.h>.
33087         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33088         the system's <wchar.h> file.
33089         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33090
33091 2009-01-14  Bruno Haible  <bruno@clisp.org>
33092
33093         * m4/csharp.m4: Don't mention gettext on the serial number line.
33094         * m4/csharpexec.m4: Likewise.
33095         * m4/eaccess.m4: Likewise.
33096         * m4/javaexec.m4: Likewise.
33097         * m4/sig_atomic_t.m4: Likewise.
33098         * m4/tmpdir.m4: Likewise.
33099         * m4/intldir.m4: Bump gettext version.
33100         * m4/lib-ld.m4: Likewise.
33101
33102 2009-01-14  Bruno Haible  <bruno@clisp.org>
33103
33104         * lib/progname.c (set_program_name): Add more comments.
33105         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33106
33107 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33108
33109         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33110         were sys/stat.h does not define it.
33111
33112 2009-01-14  Jim Meyering  <meyering@redhat.com>
33113
33114         many *.m4 files: improve m4 quoting
33115         99% of this change was performed by running the following commands:
33116         git ls-files | grep '\.m4$' | xargs perl -pi \
33117           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33118           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33119           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33120           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33121         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33122         The remainder were to add Copyright dates, increment serial numbers,
33123         undo some changes in comments, exclude m4/intl.m4, and add quotes
33124         around the "1" in ",1" where the unusual spacing prohibited the
33125         above regexps from doing the job.  For more details, see
33126         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33127         * m4/acl.m4: Modified.
33128         * m4/afs.m4: Likewise.
33129         * m4/alloca.m4: Likewise.
33130         * m4/argp.m4: Likewise.
33131         * m4/argz.m4: Likewise.
33132         * m4/atexit.m4: Likewise.
33133         * m4/bison-i18n.m4: Likewise.
33134         * m4/bison.m4: Likewise.
33135         * m4/byteswap.m4: Likewise.
33136         * m4/c-stack.m4: Likewise.
33137         * m4/c-strtod.m4: Likewise.
33138         * m4/calloc.m4: Likewise.
33139         * m4/canonicalize-lgpl.m4: Likewise.
33140         * m4/chown.m4: Likewise.
33141         * m4/clock_time.m4: Likewise.
33142         * m4/codeset.m4: Likewise.
33143         * m4/copy-file.m4: Likewise.
33144         * m4/csharp.m4: Likewise.
33145         * m4/csharpcomp.m4: Likewise.
33146         * m4/csharpexec.m4: Likewise.
33147         * m4/d-ino.m4: Likewise.
33148         * m4/d-type.m4: Likewise.
33149         * m4/dirfd.m4: Likewise.
33150         * m4/double-slash-root.m4: Likewise.
33151         * m4/eaccess.m4: Likewise.
33152         * m4/eealloc.m4: Likewise.
33153         * m4/environ.m4: Likewise.
33154         * m4/errno_h.m4: Likewise.
33155         * m4/euidaccess.m4: Likewise.
33156         * m4/execute.m4: Likewise.
33157         * m4/fatal-signal.m4: Likewise.
33158         * m4/fchdir.m4: Likewise.
33159         * m4/fcntl_h.m4: Likewise.
33160         * m4/fileblocks.m4: Likewise.
33161         * m4/filenamecat.m4: Likewise.
33162         * m4/findprog.m4: Likewise.
33163         * m4/flexmember.m4: Likewise.
33164         * m4/fnmatch.m4: Likewise.
33165         * m4/fopen.m4: Likewise.
33166         * m4/fpending.m4: Likewise.
33167         * m4/fprintf-posix.m4: Likewise.
33168         * m4/free.m4: Likewise.
33169         * m4/frexp.m4: Likewise.
33170         * m4/frexpl.m4: Likewise.
33171         * m4/fsusage.m4: Likewise.
33172         * m4/ftruncate.m4: Likewise.
33173         * m4/gc-camellia.m4: Likewise.
33174         * m4/gc-random.m4: Likewise.
33175         * m4/gc.m4: Likewise.
33176         * m4/getaddrinfo.m4: Likewise.
33177         * m4/getcwd-abort-bug.m4: Likewise.
33178         * m4/getcwd-path-max.m4: Likewise.
33179         * m4/getdate.m4: Likewise.
33180         * m4/getdomainname.m4: Likewise.
33181         * m4/getgroups.m4: Likewise.
33182         * m4/gethostname.m4: Likewise.
33183         * m4/gethrxtime.m4: Likewise.
33184         * m4/getline.m4: Likewise.
33185         * m4/getloadavg.m4: Likewise.
33186         * m4/getndelim2.m4: Likewise.
33187         * m4/getpass.m4: Likewise.
33188         * m4/gettext.m4: Likewise.
33189         * m4/gettime.m4: Likewise.
33190         * m4/gettimeofday.m4: Likewise.
33191         * m4/gnulib-common.m4: Likewise.
33192         * m4/group-member.m4: Likewise.
33193         * m4/host-os.m4: Likewise.
33194         * m4/iconv.m4: Likewise.
33195         * m4/iconv_open.m4: Likewise.
33196         * m4/inet_ntop.m4: Likewise.
33197         * m4/inet_pton.m4: Likewise.
33198         * m4/inline.m4: Likewise.
33199         * m4/intldir.m4: Likewise.
33200         * m4/intlmacosx.m4: Likewise.
33201         * m4/intmax.m4: Likewise.
33202         * m4/intmax_t.m4: Likewise.
33203         * m4/inttypes.m4: Likewise.
33204         * m4/inttypes_h.m4: Likewise.
33205         * m4/inttypes-pri.m4: Likewise.
33206         * m4/isapipe.m4: Likewise.
33207         * m4/isnand.m4: Likewise.
33208         * m4/isnanf.m4: Likewise.
33209         * m4/isnanl.m4: Likewise.
33210         * m4/javacomp.m4: Likewise.
33211         * m4/javaexec.m4: Likewise.
33212         * m4/jm-winsz1.m4: Likewise.
33213         * m4/jm-winsz2.m4: Likewise.
33214         * m4/lchown.m4: Likewise.
33215         * m4/lcmessage.m4: Likewise.
33216         * m4/ldexpl.m4: Likewise.
33217         * m4/lib-ld.m4: Likewise.
33218         * m4/lib-link.m4: Likewise.
33219         * m4/libsigsegv.m4: Likewise.
33220         * m4/link-follow.m4: Likewise.
33221         * m4/localcharset.m4: Likewise.
33222         * m4/locale-fr.m4: Likewise.
33223         * m4/locale-ja.m4: Likewise.
33224         * m4/locale-tr.m4: Likewise.
33225         * m4/locale-zh.m4: Likewise.
33226         * m4/lock.m4: Likewise.
33227         * m4/longlong.m4: Likewise.
33228         * m4/ls-mntd-fs.m4: Likewise.
33229         * m4/lstat.m4: Likewise.
33230         * m4/malloc.m4: Likewise.
33231         * m4/mathl.m4: Likewise.
33232         * m4/mbrtowc.m4: Likewise.
33233         * m4/mbstate_t.m4: Likewise.
33234         * m4/mbswidth.m4: Likewise.
33235         * m4/memchr.m4: Likewise.
33236         * m4/memcmp.m4: Likewise.
33237         * m4/memcpy.m4: Likewise.
33238         * m4/memmem.m4: Likewise.
33239         * m4/memmove.m4: Likewise.
33240         * m4/mempcpy.m4: Likewise.
33241         * m4/memrchr.m4: Likewise.
33242         * m4/memset.m4: Likewise.
33243         * m4/minmax.m4: Likewise.
33244         * m4/mkdir-slash.m4: Likewise.
33245         * m4/mkdtemp.m4: Likewise.
33246         * m4/mktime.m4: Likewise.
33247         * m4/mmap-anon.m4: Likewise.
33248         * m4/mountlist.m4: Likewise.
33249         * m4/nanosleep.m4: Likewise.
33250         * m4/nls.m4: Likewise.
33251         * m4/nocrash.m4: Likewise.
33252         * m4/open.m4: Likewise.
33253         * m4/openat.m4: Likewise.
33254         * m4/openmp.m4: Likewise.
33255         * m4/pathmax.m4: Likewise.
33256         * m4/perl.m4: Likewise.
33257         * m4/physmem.m4: Likewise.
33258         * m4/pipe.m4: Likewise.
33259         * m4/po.m4: Likewise.
33260         * m4/poll.m4: Likewise.
33261         * m4/posixtm.m4: Likewise.
33262         * m4/posixver.m4: Likewise.
33263         * m4/printf-frexp.m4: Likewise.
33264         * m4/printf-frexpl.m4: Likewise.
33265         * m4/printf-posix.m4: Likewise.
33266         * m4/printf-posix-rpl.m4: Likewise.
33267         * m4/printf.m4: Likewise.
33268         * m4/progtest.m4: Likewise.
33269         * m4/putenv.m4: Likewise.
33270         * m4/readline.m4: Likewise.
33271         * m4/readlink.m4: Likewise.
33272         * m4/readutmp.m4: Likewise.
33273         * m4/realloc.m4: Likewise.
33274         * m4/regex.m4: Likewise.
33275         * m4/relocatable.m4: Likewise.
33276         * m4/relocatable-lib.m4: Likewise.
33277         * m4/rename-dest-slash.m4: Likewise.
33278         * m4/rename.m4: Likewise.
33279         * m4/rmdir-errno.m4: Likewise.
33280         * m4/rmdir.m4: Likewise.
33281         * m4/roundf.m4: Likewise.
33282         * m4/roundl.m4: Likewise.
33283         * m4/rpmatch.m4: Likewise.
33284         * m4/save-cwd.m4: Likewise.
33285         * m4/selinux-selinux-h.m4: Likewise.
33286         * m4/setenv.m4: Likewise.
33287         * m4/settime.m4: Likewise.
33288         * m4/sig2str.m4: Likewise.
33289         * m4/sig_atomic_t.m4: Likewise.
33290         * m4/signalblocking.m4: Likewise.
33291         * m4/signbit.m4: Likewise.
33292         * m4/sigpipe.m4: Likewise.
33293         * m4/sockets.m4: Likewise.
33294         * m4/sockpfaf.m4: Likewise.
33295         * m4/st_dm_mode.m4: Likewise.
33296         * m4/stat-time.m4: Likewise.
33297         * m4/stdbool.m4: Likewise.
33298         * m4/stdint.m4: Likewise.
33299         * m4/stdint_h.m4: Likewise.
33300         * m4/stpcpy.m4: Likewise.
33301         * m4/stpncpy.m4: Likewise.
33302         * m4/strcase.m4: Likewise.
33303         * m4/strchrnul.m4: Likewise.
33304         * m4/strcspn.m4: Likewise.
33305         * m4/strdup.m4: Likewise.
33306         * m4/strftime.m4: Likewise.
33307         * m4/strndup.m4: Likewise.
33308         * m4/strnlen.m4: Likewise.
33309         * m4/strpbrk.m4: Likewise.
33310         * m4/strptime.m4: Likewise.
33311         * m4/strsep.m4: Likewise.
33312         * m4/strtod.m4: Likewise.
33313         * m4/strtoimax.m4: Likewise.
33314         * m4/strtok_r.m4: Likewise.
33315         * m4/strtol.m4: Likewise.
33316         * m4/strtoll.m4: Likewise.
33317         * m4/strtoul.m4: Likewise.
33318         * m4/strtoull.m4: Likewise.
33319         * m4/strtoumax.m4: Likewise.
33320         * m4/strverscmp.m4: Likewise.
33321         * m4/threadlib.m4: Likewise.
33322         * m4/timegm.m4: Likewise.
33323         * m4/tm_gmtoff.m4: Likewise.
33324         * m4/tmpdir.m4: Likewise.
33325         * m4/tmpfile.m4: Likewise.
33326         * m4/tzset.m4: Likewise.
33327         * m4/uintmax_t.m4: Likewise.
33328         * m4/unlinkdir.m4: Likewise.
33329         * m4/unlocked-io.m4: Likewise.
33330         * m4/uptime.m4: Likewise.
33331         * m4/userspec.m4: Likewise.
33332         * m4/utimbuf.m4: Likewise.
33333         * m4/utime.m4: Likewise.
33334         * m4/utimes-null.m4: Likewise.
33335         * m4/utimes.m4: Likewise.
33336         * m4/vararrays.m4: Likewise.
33337         * m4/vasnprintf.m4: Likewise.
33338         * m4/vfprintf-posix.m4: Likewise.
33339         * m4/vprintf-posix.m4: Likewise.
33340         * m4/wait-process.m4: Likewise.
33341         * m4/wchar_t.m4: Likewise.
33342         * m4/wint_t.m4: Likewise.
33343         * m4/write-any-file.m4: Likewise.
33344         * m4/yield.m4: Likewise.
33345
33346 2009-01-13  Bruno Haible  <bruno@clisp.org>
33347
33348         Avoid test-copy-file.sh failures when ACL support insufficient.
33349         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33350         TESTS_ENVIRONMENT.
33351         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33352         Reported by Jim Meyering.
33353
33354 2009-01-13  Bruno Haible  <bruno@clisp.org>
33355
33356         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33357         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33358         * modules/unistdio/u8-printf-parse (Files): Likewise.
33359         * modules/unistdio/u32-printf-parse (Files): Likewise.
33360         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33361
33362 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33363
33364         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33365         and m4/inttypes_h.m4 too.
33366
33367 2009-01-12  Eric Blake  <ebb9@byu.net>
33368
33369         tests: IRIX 6.2 cc can't compile -0.0 into .data
33370         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33371         rather than at compile-time.
33372         * tests/test-floorl.c (minus_zero): Likewise.
33373         * tests/test-frexpl.c (minus_zero): Likewise.
33374         * tests/test-isnan.c (minus_zerol): Likewise.
33375         * tests/test-isnanl.h (minus_zero): Likewise.
33376         * tests/test-ldexpl.c (minus_zero): Likewise.
33377         * tests/test-roundl.c (minus_zero): Likewise.
33378         * tests/test-signbit.c (minus_zerol): Likewise.
33379         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33380         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33381         * tests/test-truncl.c (minus_zero): Likewise.
33382         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33383         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33384         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33385
33386 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33387
33388         regex: fix glibc bug 9697
33389         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33390         handling.
33391
33392 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33393
33394         regex: fix glibc bug 697
33395         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33396         being NULL also if there are no backreferences.
33397
33398 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33399
33400         regex: merge glibc changes
33401         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33402         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33403         re_string_skip_chars, re_string_reconstruct): Likewise.
33404         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33405
33406 2009-01-07  Jim Meyering  <meyering@redhat.com>
33407
33408         poll: filter through cppi
33409         * lib/poll.c: Indent cpp directives to reflect nesting.
33410
33411 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33412
33413         poll: don't return uninitialized
33414         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33415
33416 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33417
33418         avoid compile failure on AIX 6.1
33419         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33420         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33421
33422 2009-01-04  Jim Meyering  <meyering@redhat.com>
33423
33424         remove duplicate inclusion of <stdio.h>
33425         * tests/test-fprintf-posix.c: Likewise.
33426         * tests/test-printf-posix.c: Likewise.
33427         * tests/test-snprintf-posix.c: Likewise.
33428         * tests/test-sprintf-posix.c: Likewise.
33429         * tests/test-vasprintf-posix.c: Likewise.
33430         * tests/test-vfprintf-posix.c: Likewise.
33431         * tests/test-vprintf-posix.c: Likewise.
33432         * tests/test-vsnprintf-posix.c: Likewise.
33433         * tests/test-vsprintf-posix.c: Likewise.
33434
33435 2009-01-03  Jim Meyering  <meyering@redhat.com>
33436
33437         gnulib-tool: fix sed-based filtering
33438         * gnulib-tool (func_filter_filelist): Remove extra backslash
33439         in sed_fff_filter definition.
33440
33441 2009-01-02  Jim Meyering  <meyering@redhat.com>
33442
33443         strftime: avoid compilation failure on Solaris 2.6
33444         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33445         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33446         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33447         be available.  Reported by Tom G. Christensen.  Details in
33448         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33449
33450 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33451             Bruno Haible  <bruno@clisp.org>
33452
33453         Speed up gnulib-tool by doing more string processing through shell
33454         built-ins.
33455         * gnulib-tool (fast_func_append): New variable.
33456         (func_remove_prefix, func_remove_suffix): New functions.
33457         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33458         (func_filter_filelist): New function.
33459         (func_get_dependencies): Use func_remove_suffix instead of sed.
33460         (func_get_automake_snippet): Use func_filter_filelist instead of a
33461         subshell and sed invocation.
33462
33463 2009-01-01  Bruno Haible  <bruno@clisp.org>
33464
33465         Fix a security bug.
33466         * gnulib-tool (func_import, import, update): Don't allow the characters
33467         '"', '$', '`', '\' in macro arguments that become part of commands that
33468         are evaluated.
33469
33470 2009-01-01  Bruno Haible  <bruno@clisp.org>
33471
33472         * gnulib-tool (func_reset_sigpipe): Add more comments.
33473
33474 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33475
33476         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
33477         func_emit_tests_Makefile_am, func_import): Abort loops early if we
33478         already know the answer.
33479
33480 2009-01-01  Jim Meyering  <meyering@redhat.com>
33481
33482         * lib/version-etc.c (version_etc_va): Update copyright year.
33483
33484 2008-12-30  Bruno Haible  <bruno@clisp.org>
33485
33486         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
33487         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
33488         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
33489
33490 2008-12-29  Eric Blake  <ebb9@byu.net>
33491
33492         multiarch: avoid autoconf AC_REQUIRE bug
33493         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
33494         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
33495         2.63 and older.
33496         Reported by Bruno Haible, and analyzed in
33497         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
33498
33499 2008-12-29  Bruno Haible  <bruno@clisp.org>
33500
33501         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
33502         files in subdirectories correctly.
33503         Reported by Ralf Wildenhues.
33504
33505 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33506
33507         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
33508         rather than 'join FILE -', for Solaris join.
33509
33510 2008-12-29  Bruno Haible  <bruno@clisp.org>
33511
33512         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
33513         quoting.
33514         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33515         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
33516         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
33517         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
33518         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
33519         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33520         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33521         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
33522         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33523         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
33524         * m4/nls.m4 (AM_NLS): Likewise.
33525         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
33526         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
33527         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33528         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
33529         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
33530         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
33531         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
33532         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
33533         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
33534         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33535         * m4/xsize.m4 (gl_XSIZE): Likewise.
33536         Suggested by Jim Meyering.
33537
33538 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33539
33540         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
33541         * lib/parse-duration.c: use a switch instead of cascading if's.
33542
33543 2008-12-29  Eric Blake  <ebb9@byu.net>
33544
33545         wchar.h: supply WEOF on Irix 5.3
33546         * lib/wchar.in.h (wint_t): Also supply WEOF.
33547         * lib/wctype.in.h (wint_t): Likewise.
33548         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
33549         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
33550         Reported by Tom G. Christensen.
33551
33552 2008-12-26  Bruno Haible  <bruno@clisp.org>
33553
33554         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
33555         i486, i586, i686.
33556
33557 2008-12-26  Bruno Haible  <bruno@clisp.org>
33558
33559         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
33560
33561 2008-12-26  Bruno Haible  <bruno@clisp.org>
33562
33563         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
33564         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
33565         not __STDC_CONSTANT_MACROS.
33566         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33567
33568 2008-12-25  Bruno Haible  <bruno@clisp.org>
33569
33570         Add support for universal builds to vasnprintf.
33571         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
33572         universal builds, guess no.
33573         * modules/vasnprintf-posix (Depends-on): Add multiarch.
33574         * modules/vasprintf-posix (Depends-on): Likewise.
33575         * modules/fprintf-posix (Depends-on): Likewise.
33576         * modules/vfprintf-posix (Depends-on): Likewise.
33577         * modules/snprintf-posix (Depends-on): Likewise.
33578         * modules/vsnprintf-posix (Depends-on): Likewise.
33579         * modules/sprintf-posix (Depends-on): Likewise.
33580         * modules/vsprintf-posix (Depends-on): Likewise.
33581         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33582         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33583         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33584         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33585         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33586         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33587         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33588
33589         Add support for universal builds to <inttypes.h>.
33590         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
33591         _SCNu64_PREFIX): In Apple
33592         universal builds, define directly, using _LP64.
33593         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
33594         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
33595         * modules/inttypes (Depends-on): Add multiarch.
33596         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33597
33598         Add support for universal builds to <stdint.h>.
33599         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
33600         universal builds, define directly, using _LP64.
33601         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
33602         Apple universal builds, don't test for the size and suffix of ptrdiff_t
33603         and size_t.
33604         * modules/stdint (Depends-on): Add multiarch.
33605         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33606
33607         New module 'multiarch'.
33608         * modules/multiarch: New file.
33609         * m4/multiarch.m4: New file.
33610
33611 2008-12-25  Bruno Haible  <bruno@clisp.org>
33612
33613         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
33614
33615 2008-12-25  Bruno Haible  <bruno@clisp.org>
33616
33617         * modules/btowc (License): Relicense under LGPLv2+.
33618         * modules/mbsinit (License): Likewise.
33619         * modules/mbrtowc (License): Likewise.
33620         * modules/wcrtomb (License): Likewise.
33621         * modules/streq (License): Likewise.
33622         Reported by David Lutterkort <lutter@redhat.com>.
33623
33624 2008-12-23  Bruno Haible  <bruno@clisp.org>
33625
33626         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
33627
33628 2008-12-23  Bruno Haible  <bruno@clisp.org>
33629
33630         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
33631         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
33632         GETADDRINFO_LIB, not in LIBS.
33633         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33634         * modules/canon-host (Link): Likewise.
33635         * NEWS: Mention the change.
33636         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33637         GETADDRINFO_LIB.
33638
33639 2008-12-22  Bruno Haible  <bruno@clisp.org>
33640
33641         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33642         * doc/posix-functions/iswalpha_l.texi: Likewise.
33643         * doc/posix-functions/iswblank_l.texi: Likewise.
33644         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33645         * doc/posix-functions/iswctype_l.texi: Likewise.
33646         * doc/posix-functions/iswdigit_l.texi: Likewise.
33647         * doc/posix-functions/iswgraph_l.texi: Likewise.
33648         * doc/posix-functions/iswlower_l.texi: Likewise.
33649         * doc/posix-functions/iswprint_l.texi: Likewise.
33650         * doc/posix-functions/iswpunct_l.texi: Likewise.
33651         * doc/posix-functions/iswspace_l.texi: Likewise.
33652         * doc/posix-functions/iswupper_l.texi: Likewise.
33653         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33654         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33655         * doc/posix-functions/open_wmemstream.texi: Likewise.
33656         * doc/posix-functions/swscanf.texi: Likewise.
33657         * doc/posix-functions/towctrans_l.texi: Likewise.
33658         * doc/posix-functions/towlower.texi: Likewise.
33659         * doc/posix-functions/towlower_l.texi: Likewise.
33660         * doc/posix-functions/towupper.texi: Likewise.
33661         * doc/posix-functions/towupper_l.texi: Likewise.
33662         * doc/posix-functions/vfwprintf.texi: Likewise.
33663         * doc/posix-functions/vfwscanf.texi: Likewise.
33664         * doc/posix-functions/vswscanf.texi: Likewise.
33665         * doc/posix-functions/vwprintf.texi: Likewise.
33666         * doc/posix-functions/vwscanf.texi: Likewise.
33667         * doc/posix-functions/wcpcpy.texi: Likewise.
33668         * doc/posix-functions/wcpncpy.texi: Likewise.
33669         * doc/posix-functions/wcscasecmp.texi: Likewise.
33670         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33671         * doc/posix-functions/wcscoll_l.texi: Likewise.
33672         * doc/posix-functions/wcsdup.texi: Likewise.
33673         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33674         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33675         * doc/posix-functions/wcsnlen.texi: Likewise.
33676         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33677         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33678         * doc/posix-functions/wctrans_l.texi: Likewise.
33679         * doc/posix-functions/wctype_l.texi: Likewise.
33680         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33681         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33682         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33683         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33684         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33685         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33686         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33687         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33688         * doc/glibc-functions/wcschrnul.texi: Likewise.
33689         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33690         * doc/glibc-functions/wcstod_l.texi: Likewise.
33691         * doc/glibc-functions/wcstof_l.texi: Likewise.
33692         * doc/glibc-functions/wcstol_l.texi: Likewise.
33693         * doc/glibc-functions/wcstold_l.texi: Likewise.
33694         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33695         * doc/glibc-functions/wcstoq.texi: Likewise.
33696         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33697         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33698         * doc/glibc-functions/wcstouq.texi: Likewise.
33699         * doc/glibc-functions/wmempcpy.texi: Likewise.
33700
33701 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33702             Eric Blake  <ebb9@byu.net>
33703             Paolo Bonzini  <bonzini@gnu.org>
33704             Bruno Haible  <bruno@clisp.org>
33705
33706         Make c-stack work on Haiku.
33707         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33708         (c_stack_action): Use SA_ONSTACK flag.
33709
33710 2008-12-22  Bruno Haible  <bruno@clisp.org>
33711
33712         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33713
33714 2008-12-22  Bruno Haible  <bruno@clisp.org>
33715
33716         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33717         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33718         being overridden.
33719         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33720         New macros.
33721         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33722         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33723         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33724         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33725
33726 2008-12-22  Bruno Haible  <bruno@clisp.org>
33727
33728         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33729         from test code.
33730
33731 2008-12-22  Eric Blake  <ebb9@byu.net>
33732
33733         Avoid gcc warnings on cygwin.
33734         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33735         Avoid unused variable.
33736         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
33737         Likewise.
33738
33739 2008-12-22  Bruno Haible  <bruno@clisp.org>
33740
33741         Remove HAVE_MBRTOWC conditionals.
33742         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
33743         (mbscasecmp): Assume mbrtowc function.
33744         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
33745         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
33746         * lib/mbschr.c: Include mbuiter.h unconditionally.
33747         (mbschr): Assume mbrtowc function.
33748         * lib/mbscspn.c: Include mbuiter.h unconditionally.
33749         (mbscspn): Assume mbrtowc function.
33750         * lib/mbslen.c: Include mbuiter.h unconditionally.
33751         (mbslen): Assume mbrtowc function.
33752         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
33753         (mbsncasecmp): Assume mbrtowc function.
33754         * lib/mbsnlen.c: Include mbiter.h unconditionally.
33755         (mbsnlen): Assume mbrtowc function.
33756         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
33757         (mbspbrk): Assume mbrtowc function.
33758         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
33759         (mbspcasecmp): Assume mbrtowc function.
33760         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
33761         (mbsrchr): Assume mbrtowc function.
33762         * lib/mbssep.c: Include mbuiter.h unconditionally.
33763         (mbssep): Assume mbrtowc function.
33764         * lib/mbsspn.c: Include mbuiter.h unconditionally.
33765         (mbsspn): Assume mbrtowc function.
33766         * lib/mbsstr.c: Include mbuiter.h unconditionally.
33767         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
33768         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
33769         (mbstok_r): Assume mbrtowc function.
33770         * lib/propername.c: Include mbuiter.h unconditionally.
33771         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
33772         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
33773         (trim2): Assume mbrtowc function.
33774         * lib/mbswidth.c (mbsinit): Remove fallback definition.
33775         (mbsnwidth): Assume mbrtowc function.
33776         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
33777         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
33778         fallback definitions.
33779         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
33780
33781 2008-12-22  Bruno Haible  <bruno@clisp.org>
33782
33783         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
33784
33785 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
33786
33787         * modules/regex: Request emulations for the mb*/wc* functions we need.
33788         * m4/regex.m4: Don't look for those functions here.
33789         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
33790
33791 2008-12-22  Bruno Haible  <bruno@clisp.org>
33792
33793         * modules/fnmatch (Depends-on): Remove duplicated dependency.
33794
33795 2008-12-21  Bruno Haible  <bruno@clisp.org>
33796
33797         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
33798         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
33799         (Include): Remove conditionalization.
33800         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
33801         (Include): Remove conditionalization.
33802         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
33803         (Include): Remove conditionalization.
33804         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
33805         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33806         * NEWS: Mention the change.
33807         Reported by Alan Hourihane <alanh@fairlite.co.uk>
33808         via Sergey Poznyakoff <gray@gnu.org.ua>.
33809
33810 2008-12-21  Bruno Haible  <bruno@clisp.org>
33811
33812         * MODULES.html.sh (Extended multibyte and wide character utilities
33813         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
33814         wcrtomb, wcsrtombs.
33815         (Support for systems lacking POSIX:2008): Add accept, bind, close,
33816         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
33817         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
33818         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
33819
33820 2008-12-21  Bruno Haible  <bruno@clisp.org>
33821
33822         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
33823
33824 2008-12-21  Bruno Haible  <bruno@clisp.org>
33825
33826         * modules/wcsnrtombs-tests: New file.
33827         * tests/test-wcsnrtombs1.sh: New file.
33828         * tests/test-wcsnrtombs2.sh: New file.
33829         * tests/test-wcsnrtombs3.sh: New file.
33830         * tests/test-wcsnrtombs4.sh: New file.
33831         * tests/test-wcsnrtombs.c: New file.
33832
33833         New module 'wcsnrtombs'.
33834         * lib/wchar.in.h (wcsnrtombs): New declaration.
33835         * lib/wcsnrtombs.c: New file.
33836         * lib/wcsrtombs-state.c: New file.
33837         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
33838         (internal_state): Remove variable.
33839         * m4/wcsnrtombs.m4: New file.
33840         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
33841         compilation units.
33842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
33843         HAVE_WCSNRTOMBS.
33844         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
33845         HAVE_WCSNRTOMBS.
33846         * modules/wcsnrtombs: New file.
33847         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
33848         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
33849
33850 2008-12-21  Bruno Haible  <bruno@clisp.org>
33851
33852         * modules/wcsrtombs-tests: New file.
33853         * tests/test-wcsrtombs1.sh: New file.
33854         * tests/test-wcsrtombs2.sh: New file.
33855         * tests/test-wcsrtombs3.sh: New file.
33856         * tests/test-wcsrtombs4.sh: New file.
33857         * tests/test-wcsrtombs.c: New file.
33858
33859         New module 'wcsrtombs'.
33860         * lib/wchar.in.h (wcsrtombs): New declaration.
33861         * lib/wcsrtombs.c: New file.
33862         * m4/wcsrtombs.m4: New file.
33863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
33864         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33865         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
33866         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33867         * modules/wcsrtombs: New file.
33868         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
33869         bugs.
33870
33871 2008-12-21  Bruno Haible  <bruno@clisp.org>
33872
33873         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
33874         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
33875         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
33876         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
33877         if not correct.
33878         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
33879         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
33880         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33881         m4/locale-zh.m4, m4/codeset.m4.
33882         * doc/posix-functions/wcrtomb.texi: Document the bug.
33883
33884 2008-12-21  Bruno Haible  <bruno@clisp.org>
33885
33886         Work around a btowc() bug on IRIX 6.5.
33887         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
33888         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
33889         REPLACE_WTOBC if not.
33890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
33891         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
33892         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
33893
33894 2008-12-21  Bruno Haible  <bruno@clisp.org>
33895
33896         * modules/wcrtomb-tests: New file.
33897         * tests/test-wcrtomb.sh: New file.
33898         * tests/test-wcrtomb.c: New file.
33899
33900         New module 'wcrtomb'.
33901         * lib/wchar.in.h (wcrtomb): New declaration.
33902         * lib/wcrtomb.c: New file.
33903         * m4/wcrtomb.m4: New file.
33904         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
33905         HAVE_WCRTOMB.
33906         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
33907         HAVE_WCRTOMB.
33908         * modules/wcrtomb: New file.
33909         * doc/posix-functions/wcrtomb.texi: Mention the new module.
33910
33911 2008-12-21  Bruno Haible  <bruno@clisp.org>
33912
33913         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
33914         * modules/mbsrtowcs (Files): Likewise.
33915         * modules/wctob (Files): Likewise.
33916         * modules/c-strcase-tests (Files): Likewise.
33917         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33918         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33919         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33920         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33921         * modules/vasnprintf-posix-tests (Files): Likewise.
33922
33923 2008-12-21  William Pursell  <bill.pursell@gmail.com>
33924
33925         gitlog-to-changelog: pass all command-line arguments to git-log
33926         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
33927         it is sometimes convenient to filter the commits in various ways.
33928         gitlog-to-changelog only allows --since to specify a start date,
33929         but git-log itself supports many other filtering mechanisms.
33930         At the moment, I want to filter by branch name.  Rather than
33931         adding a --branch option to gitlog-to-changelog, it seems more
33932         flexible to simply pass all options directly to git-log and let
33933         git do the work.  Notice that this effectively makes --since a
33934         redundant option for gitlog-to-changelog, but removing it would
33935         require current usage to change since calls would then require
33936         an additional '--'.
33937
33938 2008-12-21  Bruno Haible  <bruno@clisp.org>
33939
33940         * modules/mbsnrtowcs-tests: New file.
33941         * tests/test-mbsnrtowcs1.sh: New file.
33942         * tests/test-mbsnrtowcs2.sh: New file.
33943         * tests/test-mbsnrtowcs3.sh: New file.
33944         * tests/test-mbsnrtowcs4.sh: New file.
33945         * tests/test-mbsnrtowcs.c: New file.
33946
33947         New module 'mbsnrtowcs'.
33948         * lib/wchar.in.h (mbsnrtowcs): New declaration.
33949         * lib/mbsnrtowcs.c: New file.
33950         * lib/mbsrtowcs-state.c: New file.
33951         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
33952         (internal_state): Remove variable.
33953         * m4/mbsnrtowcs.m4: New file.
33954         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
33955         compilation units.
33956         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
33957         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33958         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
33959         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33960         * modules/mbsnrtowcs: New file.
33961         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
33962         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
33963         portability problem.
33964
33965 2008-12-21  Bruno Haible  <bruno@clisp.org>
33966
33967         Work around mbsrtowcs bug.
33968         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
33969         (gl_FUNC_MBSRTOWCS): Invoke it.
33970         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33971         m4/locale-zh.m4.
33972         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
33973
33974 2008-12-21  Bruno Haible  <bruno@clisp.org>
33975
33976         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
33977
33978 2008-12-21  Bruno Haible  <bruno@clisp.org>
33979
33980         Update doc for AIX.
33981         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
33982         16-bit wchar_t type.
33983         * doc/posix-functions/btowc.texi: Likewise.
33984         * doc/posix-functions/fgetwc.texi: Likewise.
33985         * doc/posix-functions/fgetws.texi: Likewise.
33986         * doc/posix-functions/fputwc.texi: Likewise.
33987         * doc/posix-functions/fputws.texi: Likewise.
33988         * doc/posix-functions/fwide.texi: Likewise.
33989         * doc/posix-functions/fwprintf.texi: Likewise.
33990         * doc/posix-functions/fwscanf.texi: Likewise.
33991         * doc/posix-functions/getwchar.texi: Likewise.
33992         * doc/posix-functions/getwc.texi: Likewise.
33993         * doc/posix-functions/iswalnum.texi: Likewise.
33994         * doc/posix-functions/iswalpha.texi: Likewise.
33995         * doc/posix-functions/iswblank.texi: Likewise.
33996         * doc/posix-functions/iswcntrl.texi: Likewise.
33997         * doc/posix-functions/iswctype.texi: Likewise.
33998         * doc/posix-functions/iswdigit.texi: Likewise.
33999         * doc/posix-functions/iswgraph.texi: Likewise.
34000         * doc/posix-functions/iswlower.texi: Likewise.
34001         * doc/posix-functions/iswprint.texi: Likewise.
34002         * doc/posix-functions/iswpunct.texi: Likewise.
34003         * doc/posix-functions/iswspace.texi: Likewise.
34004         * doc/posix-functions/iswupper.texi: Likewise.
34005         * doc/posix-functions/iswxdigit.texi: Likewise.
34006         * doc/posix-functions/mbrtowc.texi: Likewise.
34007         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34008         * doc/posix-functions/mbstowcs.texi: Likewise.
34009         * doc/posix-functions/mbtowc.texi: Likewise.
34010         * doc/posix-functions/putwchar.texi: Likewise.
34011         * doc/posix-functions/putwc.texi: Likewise.
34012         * doc/posix-functions/swprintf.texi: Likewise.
34013         * doc/posix-functions/tolower.texi: Likewise.
34014         * doc/posix-functions/toupper.texi: Likewise.
34015         * doc/posix-functions/towctrans.texi: Likewise.
34016         * doc/posix-functions/ungetwc.texi: Likewise.
34017         * doc/posix-functions/vswprintf.texi: Likewise.
34018         * doc/posix-functions/wcrtomb.texi: Likewise.
34019         * doc/posix-functions/wcscat.texi: Likewise.
34020         * doc/posix-functions/wcschr.texi: Likewise.
34021         * doc/posix-functions/wcscmp.texi: Likewise.
34022         * doc/posix-functions/wcscoll.texi: Likewise.
34023         * doc/posix-functions/wcscpy.texi: Likewise.
34024         * doc/posix-functions/wcscspn.texi: Likewise.
34025         * doc/posix-functions/wcsftime.texi: Likewise.
34026         * doc/posix-functions/wcslen.texi: Likewise.
34027         * doc/posix-functions/wcsncat.texi: Likewise.
34028         * doc/posix-functions/wcsncmp.texi: Likewise.
34029         * doc/posix-functions/wcsncpy.texi: Likewise.
34030         * doc/posix-functions/wcspbrk.texi: Likewise.
34031         * doc/posix-functions/wcsrchr.texi: Likewise.
34032         * doc/posix-functions/wcsrtombs.texi: Likewise.
34033         * doc/posix-functions/wcsspn.texi: Likewise.
34034         * doc/posix-functions/wcsstr.texi: Likewise.
34035         * doc/posix-functions/wcstod.texi: Likewise.
34036         * doc/posix-functions/wcstof.texi: Likewise.
34037         * doc/posix-functions/wcstoimax.texi: Likewise.
34038         * doc/posix-functions/wcstok.texi: Likewise.
34039         * doc/posix-functions/wcstold.texi: Likewise.
34040         * doc/posix-functions/wcstoll.texi: Likewise.
34041         * doc/posix-functions/wcstol.texi: Likewise.
34042         * doc/posix-functions/wcstombs.texi: Likewise.
34043         * doc/posix-functions/wcstoull.texi: Likewise.
34044         * doc/posix-functions/wcstoul.texi: Likewise.
34045         * doc/posix-functions/wcstoumax.texi: Likewise.
34046         * doc/posix-functions/wcswidth.texi: Likewise.
34047         * doc/posix-functions/wcsxfrm.texi: Likewise.
34048         * doc/posix-functions/wctob.texi: Likewise.
34049         * doc/posix-functions/wctomb.texi: Likewise.
34050         * doc/posix-functions/wctrans.texi: Likewise.
34051         * doc/posix-functions/wctype.texi: Likewise.
34052         * doc/posix-functions/wcwidth.texi: Likewise.
34053         * doc/posix-functions/wmemchr.texi: Likewise.
34054         * doc/posix-functions/wmemcmp.texi: Likewise.
34055         * doc/posix-functions/wmemcpy.texi: Likewise.
34056         * doc/posix-functions/wmemmove.texi: Likewise.
34057         * doc/posix-functions/wmemset.texi: Likewise.
34058         * doc/posix-functions/wprintf.texi: Likewise.
34059         * doc/posix-functions/wscanf.texi: Likewise.
34060
34061 2008-12-21  Bruno Haible  <bruno@clisp.org>
34062
34063         Update doc for HP-UX 11.11.
34064         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34065         in HP-UX version 11.00, not in all versions of HP-UX 11.
34066         * doc/posix-functions/fwide.texi: Likewise.
34067         * doc/posix-functions/fwprintf.texi: Likewise.
34068         * doc/posix-functions/fwscanf.texi: Likewise.
34069         * doc/posix-functions/inet_ntop.texi: Likewise.
34070         * doc/posix-functions/inet_pton.texi: Likewise.
34071         * doc/posix-functions/mbrlen.texi: Likewise.
34072         * doc/posix-functions/mbrtowc.texi: Likewise.
34073         * doc/posix-functions/mbsinit.texi: Likewise.
34074         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34075         * doc/posix-functions/swprintf.texi: Likewise.
34076         * doc/posix-functions/swscanf.texi: Likewise.
34077         * doc/posix-functions/towctrans.texi: Likewise.
34078         * doc/posix-functions/vfwprintf.texi: Likewise.
34079         * doc/posix-functions/vswprintf.texi: Likewise.
34080         * doc/posix-functions/vwprintf.texi: Likewise.
34081         * doc/posix-functions/wcrtomb.texi: Likewise.
34082         * doc/posix-functions/wcsrtombs.texi: Likewise.
34083         * doc/posix-functions/wcsstr.texi: Likewise.
34084         * doc/posix-functions/wctob.texi: Likewise.
34085         * doc/posix-functions/wctrans.texi: Likewise.
34086         * doc/posix-functions/wmemchr.texi: Likewise.
34087         * doc/posix-functions/wmemcmp.texi: Likewise.
34088         * doc/posix-functions/wmemcpy.texi: Likewise.
34089         * doc/posix-functions/wmemmove.texi: Likewise.
34090         * doc/posix-functions/wmemset.texi: Likewise.
34091         * doc/posix-functions/wprintf.texi: Likewise.
34092         * doc/posix-functions/wscanf.texi: Likewise.
34093
34094 2008-12-21  Bruno Haible  <bruno@clisp.org>
34095
34096         Work around a portability problem.
34097         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34098         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34099
34100 2008-12-20  Bruno Haible  <bruno@clisp.org>
34101
34102         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34103         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34104         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34105         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34106         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34107
34108         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34109         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34110         set.
34111         (GNULIB_defined_mbstate_t): New macro.
34112         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34113         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34114         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34115         reuses the system's mbrtowc function but works around the bugs.
34116         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34117         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34118         macros.
34119         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34120         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34121         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34122         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34123         REPLACE_MBSINIT if mbsinit needs to be overridden.
34124         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34125         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34126         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34127         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34128         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34129         m4/locale-zh.m4.
34130         (Depends): Add mbsinit.
34131         * modules/mbsinit (Depends): Add mbrtowc.
34132         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34133
34134 2008-12-20  Bruno Haible  <bruno@clisp.org>
34135
34136         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34137         so that there are no conversion errors on AIX.
34138         * tests/test-mbsrtowcs.c (main): LIkewise.
34139
34140 2008-12-20  Bruno Haible  <bruno@clisp.org>
34141
34142         Work around wctob bug on Solaris <= 9.
34143         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34144         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34146         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34147         * modules/wctob (Files): Add m4/locale-fr.m4.
34148         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34149
34150 2008-12-20  Bruno Haible  <bruno@clisp.org>
34151
34152         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34153         /dev/null.
34154         * tests/test-select-in.sh: Likewise.
34155         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34156
34157 2008-12-20  Bruno Haible  <bruno@clisp.org>
34158
34159         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34160         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34161         Cygwin 1.5.x.
34162
34163 2008-12-20  Bruno Haible  <bruno@clisp.org>
34164
34165         Ensure mbstate_t is defined on HP-UX 11.11.
34166         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34167         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34168         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34169         AC_USE_SYSTEM_EXTENSIONS.
34170         * modules/fnmatch (Depends-on): Add extensions.
34171         * modules/mbrlen (Depends-on): Likewise.
34172         * modules/mbrtowc (Depends-on): Likewise.
34173         * modules/mbsinit (Depends-on): Likewise.
34174         * modules/mbsrtowcs (Depends-on): Likewise.
34175         * modules/mbswidth (Depends-on): Likewise.
34176         * modules/quotearg (Depends-on): Likewise.
34177         * modules/strftime (Depends-on): Likewise.
34178
34179 2008-12-20  Bruno Haible  <bruno@clisp.org>
34180
34181         Ensure wctob is declared on IRIX 6.5.
34182         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34183         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34184         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34185         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34186         of HAVE_WCTOB.
34187         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34188         HAVE_WCTOB.
34189         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34190
34191 2008-12-19  Bruno Haible  <bruno@clisp.org>
34192
34193         * modules/mbsrtowcs-tests: New file.
34194         * tests/test-mbsrtowcs1.sh: New file.
34195         * tests/test-mbsrtowcs2.sh: New file.
34196         * tests/test-mbsrtowcs3.sh: New file.
34197         * tests/test-mbsrtowcs4.sh: New file.
34198         * tests/test-mbsrtowcs.c: New file.
34199
34200         New module 'mbsrtowcs'.
34201         * lib/wchar.in.h (mbsrtowcs): New declaration.
34202         * lib/mbsrtowcs.c: New file.
34203         * m4/mbsrtowcs.m4: New file.
34204         * modules/mbsrtowcs: New file.
34205         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34206         HAVE_MBSRTOWCS.
34207         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34208         HAVE_MBSRTOWCS.
34209         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34210
34211 2008-12-19  Bruno Haible  <bruno@clisp.org>
34212
34213         New module 'mbrlen'.
34214         * lib/wchar.in.h (mbrlen): New declaration.
34215         * lib/mbrlen.c: New file.
34216         * m4/mbrlen.m4: New file.
34217         * modules/mbrlen: New file.
34218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34219         HAVE_MBRLEN.
34220         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34221         HAVE_MBRLEN.
34222         * doc/posix-functions/mbrlen.texi: Document the new module.
34223
34224 2008-12-19  Bruno Haible  <bruno@clisp.org>
34225
34226         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34227         * modules/mbrtowc (Depends-on): Add verify.
34228         Suggested by Paul Eggert.
34229
34230 2008-12-18  Bruno Haible  <bruno@clisp.org>
34231
34232         * modules/mbsinit-tests: New file.
34233         * tests/test-mbsinit.sh: New file.
34234         * tests/test-mbsinit.c: New file.
34235
34236 2008-12-18  Bruno Haible  <bruno@clisp.org>
34237
34238         * modules/mbrtowc-tests: New file.
34239         * tests/test-mbrtowc1.sh: New file.
34240         * tests/test-mbrtowc2.sh: New file.
34241         * tests/test-mbrtowc3.sh: New file.
34242         * tests/test-mbrtowc4.sh: New file.
34243         * tests/test-mbrtowc.c: New file.
34244
34245         New module 'mbrtowc'.
34246         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34247         mbsinit and mbrtowc.
34248         (mbrtowc): New declaration.
34249         * lib/mbrtowc.c: New file.
34250         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34251         * modules/mbrtowc: New file.
34252         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34253         HAVE_MBRTOWC.
34254         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34255         HAVE_MBRTOWC.
34256         * doc/posix-functions/mbrtowc.texi: Document the new module.
34257
34258 2008-12-18  Bruno Haible  <bruno@clisp.org>
34259
34260         New module 'wctob'.
34261         * lib/wchar.in.h (wctob): New declaration.
34262         * lib/wctob.c: New file.
34263         * m4/wctob.m4: New file.
34264         * modules/wctob: New file.
34265         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34266         HAVE_WCTOB.
34267         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34268         * doc/posix-functions/wctob.texi: Document the new module.
34269
34270 2008-12-18  Bruno Haible  <bruno@clisp.org>
34271
34272         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34273         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34274
34275 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34276
34277         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34278         G. Christensen" <tgc@jupiterrise.com>.
34279
34280         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34281         G. Christensen" <tgc@jupiterrise.com>.
34282
34283         * lib/flock.c: Need to include string.h.  Reported by "Tom
34284         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34285         <ebb9@byu.net>.
34286
34287 2008-12-18  Bruno Haible  <bruno@clisp.org>
34288
34289         * m4/locale-ja.m4: New file, from GNU gettext.
34290
34291 2008-12-17  Bruno Haible  <bruno@clisp.org>
34292
34293         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34294         Suggested by Eric Blake.
34295
34296 2008-12-17  Bruno Haible  <bruno@clisp.org>
34297
34298         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34299
34300 2008-12-17  Bruno Haible  <bruno@clisp.org>
34301
34302         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34303         * modules/mbsinit (Depends-on): Add verify.
34304         Suggested by Paul Eggert.
34305
34306 2008-12-17  Bruno Haible  <bruno@clisp.org>
34307
34308         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34309         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34310         gl_FUNC_MBRTOWC.
34311         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34312         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34313         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34314         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34315         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34316         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34317         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34318         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34319         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34320         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34321         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34322         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34323         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34324         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34325         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34326         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34327         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34328         * modules/trim (configure.ac): Likewise.
34329
34330 2008-12-17  Bruno Haible  <bruno@clisp.org>
34331
34332         * modules/btowc-tests: New file.
34333         * tests/test-btowc1.sh: New file.
34334         * tests/test-btowc2.sh: New file.
34335         * tests/test-btowc.c: New file.
34336
34337         New module 'btowc'.
34338         * lib/wchar.in.h (btowc): New declaration.
34339         * lib/btowc.c: New file.
34340         * m4/btowc.m4: New file.
34341         * modules/btowc: New file.
34342         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34343         HAVE_BTOWC.
34344         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34345         * doc/posix-functions/btowc.texi: Document the new module.
34346
34347 2008-12-17  Bruno Haible  <bruno@clisp.org>
34348
34349         New module 'mbsinit'.
34350         * lib/wchar.in.h (mbsinit): New declaration.
34351         * lib/mbsinit.c: New file.
34352         * m4/mbsinit.m4: New file.
34353         * modules/mbsinit: New file.
34354         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34355         HAVE_MBSINIT.
34356         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34357         HAVE_MBSINIT.
34358         * doc/posix-functions/mbsinit.texi: Document the new module.
34359
34360 2008-12-16  Bruno Haible  <bruno@clisp.org>
34361
34362         * lib/unistd.in.h: Add comment.
34363         * tests/test-environ.c: Don't include <stdlib.h>.
34364
34365 2008-12-16  Bruno Haible  <bruno@clisp.org>
34366
34367         * lib/parse-duration.h (parse_duration): Document return value
34368         convention.
34369         * lib/parse-duration.c: Include specification header first. Add
34370         comments.
34371         (_): Remove macro.
34372         (parse_year_month_day, parse_hour_minute_second): Move side effects
34373         outside of strchr call.
34374         (parse_non_iso8601): Move side effects outside of isspace call.
34375         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34376         call.
34377
34378 2008-12-16  Bruno Haible  <bruno@clisp.org>
34379
34380         * tests/test-parse-duration.sh: Produce no output when the test
34381         succeeds.
34382
34383 2008-12-16  Bruno Haible  <bruno@clisp.org>
34384
34385         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34386         expressions.
34387
34388 2008-12-15  Bruno Haible  <bruno@clisp.org>
34389
34390         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34391         * doc/glibc-functions/flistxattr.texi: Likewise.
34392         * doc/glibc-functions/fopencookie.texi: Likewise.
34393         * doc/glibc-functions/fremovexattr.texi: Likewise.
34394         * doc/glibc-functions/fsetxattr.texi: Likewise.
34395         * doc/glibc-functions/getxattr.texi: Likewise.
34396         * doc/glibc-functions/lgetxattr.texi: Likewise.
34397         * doc/glibc-functions/listxattr.texi: Likewise.
34398         * doc/glibc-functions/llistxattr.texi: Likewise.
34399         * doc/glibc-functions/lremovexattr.texi: Likewise.
34400         * doc/glibc-functions/lsetxattr.texi: Likewise.
34401         * doc/glibc-functions/removexattr.texi: Likewise.
34402         * doc/glibc-functions/setxattr.texi: Likewise.
34403         * doc/posix-functions/open_memstream.texi: Likewise.
34404
34405 2008-12-15  Eric Blake  <ebb9@byu.net>
34406
34407         Update doc for cygwin 1.7.
34408         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34409         functions.
34410         * doc/posix-functions/fchmodat.texi: Likewise.
34411         * doc/posix-functions/fchownat.texi: Likewise.
34412         * doc/posix-functions/fdopendir.texi: Likewise.
34413         * doc/posix-functions/fmemopen.texi: Likewise.
34414         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34415         * doc/posix-functions/fstatat.texi: Likewise.
34416         * doc/posix-functions/futimens.texi: Likewise.
34417         * doc/posix-functions/gai_strerror.texi: Likewise.
34418         * doc/posix-functions/getaddrinfo.texi: Likewise.
34419         * doc/posix-functions/getnameinfo.texi: Likewise.
34420         * doc/posix-functions/if_freenameindex.texi: Likewise.
34421         * doc/posix-functions/if_indextoname.texi: Likewise.
34422         * doc/posix-functions/if_nameindex.texi: Likewise.
34423         * doc/posix-functions/if_nametoindex.texi: Likewise.
34424         * doc/posix-functions/insque.texi: Likewise.
34425         * doc/posix-functions/linkat.texi: Likewise.
34426         * doc/posix-functions/llrint.texi: Likewise.
34427         * doc/posix-functions/llrintf.texi: Likewise.
34428         * doc/posix-functions/llrintl.texi: Likewise.
34429         * doc/posix-functions/lockf.texi: Likewise.
34430         * doc/posix-functions/lrintl.texi: Likewise.
34431         * doc/posix-functions/mkdirat.texi: Likewise.
34432         * doc/posix-functions/mkfifoat.texi: Likewise.
34433         * doc/posix-functions/mknodat.texi: Likewise.
34434         * doc/posix-functions/mq_close.texi: Likewise.
34435         * doc/posix-functions/mq_getattr.texi: Likewise.
34436         * doc/posix-functions/mq_notify.texi: Likewise.
34437         * doc/posix-functions/mq_open.texi: Likewise.
34438         * doc/posix-functions/mq_receive.texi: Likewise.
34439         * doc/posix-functions/mq_send.texi: Likewise.
34440         * doc/posix-functions/mq_setattr.texi: Likewise.
34441         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34442         * doc/posix-functions/mq_timedsend.texi: Likewise.
34443         * doc/posix-functions/mq_unlink.texi: Likewise.
34444         * doc/posix-functions/open_memstream.texi: Likewise.
34445         * doc/posix-functions/openat.texi: Likewise.
34446         * doc/posix-functions/posix_fadvise.texi: Likewise.
34447         * doc/posix-functions/posix_fallocate.texi: Likewise.
34448         * doc/posix-functions/posix_madvise.texi: Likewise.
34449         * doc/posix-functions/posix_memalign.texi: Likewise.
34450         * doc/posix-functions/posix_openpt.texi: Likewise.
34451         * doc/posix-functions/readlinkat.texi: Likewise.
34452         * doc/posix-functions/remque.texi: Likewise.
34453         * doc/posix-functions/renameat.texi: Likewise.
34454         * doc/posix-functions/rintl.texi: Likewise.
34455         * doc/posix-functions/sem_unlink.texi: Likewise.
34456         * doc/posix-functions/shm_open.texi: Likewise.
34457         * doc/posix-functions/shm_unlink.texi: Likewise.
34458         * doc/posix-functions/signgam.texi: Likewise.
34459         * doc/posix-functions/sigset.texi: Likewise.
34460         * doc/posix-functions/stpcpy.texi: Likewise.
34461         * doc/posix-functions/stpncpy.texi: Likewise.
34462         * doc/posix-functions/strerror.texi: Likewise.
34463         * doc/posix-functions/strtod.texi: Likewise.
34464         * doc/posix-functions/symlinkat.texi: Likewise.
34465         * doc/posix-functions/unlinkat.texi: Likewise.
34466         * doc/posix-functions/utimensat.texi: Likewise.
34467         * doc/glibc-functions/bindresvport.texi: Likewise.
34468         * doc/glibc-functions/dn_expand.texi: Likewise.
34469         * doc/glibc-functions/exp10.texi: Likewise.
34470         * doc/glibc-functions/exp10f.texi: Likewise.
34471         * doc/glibc-functions/fgetxattr.texi: Likewise.
34472         * doc/glibc-functions/flistxattr.texi: Likewise.
34473         * doc/glibc-functions/fopencookie.texi: Likewise.
34474         * doc/glibc-functions/freeifaddrs.texi: Likewise.
34475         * doc/glibc-functions/fremovexattr.texi: Likewise.
34476         * doc/glibc-functions/fsetxattr.texi: Likewise.
34477         * doc/glibc-functions/getifaddrs.texi: Likewise.
34478         * doc/glibc-functions/getxattr.texi: Likewise.
34479         * doc/glibc-functions/lgetxattr.texi: Likewise.
34480         * doc/glibc-functions/listxattr.texi: Likewise.
34481         * doc/glibc-functions/llistxattr.texi: Likewise.
34482         * doc/glibc-functions/lremovexattr.texi: Likewise.
34483         * doc/glibc-functions/lsetxattr.texi: Likewise.
34484         * doc/glibc-functions/pow10.texi: Likewise.
34485         * doc/glibc-functions/pow10f.texi: Likewise.
34486         * doc/glibc-functions/rcmd_af.texi: Likewise.
34487         * doc/glibc-functions/removexattr.texi: Likewise.
34488         * doc/glibc-functions/res_init.texi: Likewise.
34489         * doc/glibc-functions/res_mkquery.texi: Likewise.
34490         * doc/glibc-functions/res_query.texi: Likewise.
34491         * doc/glibc-functions/res_querydomain.texi: Likewise.
34492         * doc/glibc-functions/res_send.texi: Likewise.
34493         * doc/glibc-functions/rresvport_af.texi: Likewise.
34494         * doc/glibc-functions/setxattr.texi: Likewise.
34495         * doc/glibc-functions/strcasestr.texi: Likewise.
34496
34497 2008-12-15  Bruno Haible  <bruno@clisp.org>
34498
34499         Fix compilation error on OSF/1 4.0.
34500         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
34501         <sys/time.h>, simply delegate to the system header.
34502         Reported by Daniel Richard G. <oss@teragram.com>.
34503
34504 2008-12-15  Bruno Haible  <bruno@clisp.org>
34505
34506         * doc/posix-functions/openat.texi: Mention the 'openat' module.
34507         * doc/posix-functions/fchmodat.texi: Likewise.
34508         * doc/posix-functions/fchownat.texi: Likewise.
34509         * doc/posix-functions/fdopendir.texi: Likewise.
34510         * doc/posix-functions/fstatat.texi: Likewise.
34511         * doc/posix-functions/mkdirat.texi: Likewise.
34512         * doc/posix-functions/unlinkat.texi: Likewise.
34513
34514 2008-12-14  Bruno Haible  <bruno@clisp.org>
34515
34516         Update doc for POSIX:2008.
34517         * doc/posix-functions/faccessat.texi: New file.
34518         * doc/posix-functions/fchmodat.texi: New file.
34519         * doc/posix-functions/fchownat.texi: New file.
34520         * doc/posix-functions/fdopendir.texi: New file.
34521         * doc/posix-functions/fstatat.texi: New file.
34522         * doc/posix-functions/futimens.texi: New file.
34523         * doc/posix-functions/linkat.texi: New file.
34524         * doc/posix-functions/mkdirat.texi: New file.
34525         * doc/posix-functions/mkfifoat.texi: New file.
34526         * doc/posix-functions/mknodat.texi: New file.
34527         * doc/posix-functions/open_wmemstream.texi: New file.
34528         * doc/posix-functions/openat.texi: New file.
34529         * doc/posix-functions/psiginfo.texi: New file.
34530         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
34531         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
34532         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
34533         * doc/posix-functions/readlinkat.texi: New file.
34534         * doc/posix-functions/renameat.texi: New file.
34535         * doc/posix-functions/strerror_l.texi: New file.
34536         * doc/posix-functions/symlinkat.texi: New file.
34537         * doc/posix-functions/unlinkat.texi: New file.
34538         * doc/posix-functions/utimensat.texi: New file.
34539         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34540
34541 2008-12-14  Bruno Haible  <bruno@clisp.org>
34542
34543         Update doc for POSIX:2008.
34544         * doc/posix-functions/alphasort.texi: Renamed from
34545         doc/glibc-functions/alphasort.texi.
34546         * doc/posix-functions/dirfd.texi: Renamed from
34547         doc/glibc-functions/dirfd.texi.
34548         * doc/posix-functions/dprintf.texi: Renamed from
34549         doc/glibc-functions/dprintf.texi.
34550         * doc/posix-functions/duplocale.texi: Renamed from
34551         doc/glibc-functions/duplocale.texi.
34552         * doc/posix-functions/fexecve.texi: Renamed from
34553         doc/glibc-functions/fexecve.texi.
34554         * doc/posix-functions/fmemopen.texi: Renamed from
34555         doc/glibc-functions/fmemopen.texi.
34556         * doc/posix-functions/freelocale.texi: Renamed from
34557         doc/glibc-functions/freelocale.texi.
34558         * doc/posix-functions/getdate_err.texi: Renamed from
34559         doc/glibc-functions/getdate_err.texi.
34560         * doc/posix-functions/isalnum_l.texi: Renamed from
34561         doc/glibc-functions/isalnum_l.texi.
34562         * doc/posix-functions/isalpha_l.texi: Renamed from
34563         doc/glibc-functions/isalpha_l.texi.
34564         * doc/posix-functions/isblank_l.texi: Renamed from
34565         doc/glibc-functions/isblank_l.texi.
34566         * doc/posix-functions/iscntrl_l.texi: Renamed from
34567         doc/glibc-functions/iscntrl_l.texi.
34568         * doc/posix-functions/isdigit_l.texi: Renamed from
34569         doc/glibc-functions/isdigit_l.texi.
34570         * doc/posix-functions/isgraph_l.texi: Renamed from
34571         doc/glibc-functions/isgraph_l.texi.
34572         * doc/posix-functions/islower_l.texi: Renamed from
34573         doc/glibc-functions/islower_l.texi.
34574         * doc/posix-functions/isprint_l.texi: Renamed from
34575         doc/glibc-functions/isprint_l.texi.
34576         * doc/posix-functions/ispunct_l.texi: Renamed from
34577         doc/glibc-functions/ispunct_l.texi.
34578         * doc/posix-functions/isspace_l.texi: Renamed from
34579         doc/glibc-functions/isspace_l.texi.
34580         * doc/posix-functions/isupper_l.texi: Renamed from
34581         doc/glibc-functions/isupper_l.texi.
34582         * doc/posix-functions/iswalnum_l.texi: Renamed from
34583         doc/glibc-functions/iswalnum_l.texi.
34584         * doc/posix-functions/iswalpha_l.texi: Renamed from
34585         doc/glibc-functions/iswalpha_l.texi.
34586         * doc/posix-functions/iswblank_l.texi: Renamed from
34587         doc/glibc-functions/iswblank_l.texi.
34588         * doc/posix-functions/iswcntrl_l.texi: Renamed from
34589         doc/glibc-functions/iswcntrl_l.texi.
34590         * doc/posix-functions/iswctype_l.texi: Renamed from
34591         doc/glibc-functions/iswctype_l.texi.
34592         * doc/posix-functions/iswdigit_l.texi: Renamed from
34593         doc/glibc-functions/iswdigit_l.texi.
34594         * doc/posix-functions/iswgraph_l.texi: Renamed from
34595         doc/glibc-functions/iswgraph_l.texi.
34596         * doc/posix-functions/iswlower_l.texi: Renamed from
34597         doc/glibc-functions/iswlower_l.texi.
34598         * doc/posix-functions/iswprint_l.texi: Renamed from
34599         doc/glibc-functions/iswprint_l.texi.
34600         * doc/posix-functions/iswpunct_l.texi: Renamed from
34601         doc/glibc-functions/iswpunct_l.texi.
34602         * doc/posix-functions/iswspace_l.texi: Renamed from
34603         doc/glibc-functions/iswspace_l.texi.
34604         * doc/posix-functions/iswupper_l.texi: Renamed from
34605         doc/glibc-functions/iswupper_l.texi.
34606         * doc/posix-functions/iswxdigit_l.texi: Renamed from
34607         doc/glibc-functions/iswxdigit_l.texi.
34608         * doc/posix-functions/isxdigit_l.texi: Renamed from
34609         doc/glibc-functions/isxdigit_l.texi.
34610         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
34611         doc/glibc-functions/mbsnrtowcs.texi.
34612         * doc/posix-functions/mkdtemp.texi: Renamed from
34613         doc/glibc-functions/mkdtemp.texi.
34614         * doc/posix-functions/newlocale.texi: Renamed from
34615         doc/glibc-functions/newlocale.texi.
34616         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
34617         doc/glibc-functions/nl_langinfo_l.texi.
34618         * doc/posix-functions/open_memstream.texi: Renamed from
34619         doc/glibc-functions/open_memstream.texi.
34620         * doc/posix-functions/opterr.texi: Renamed from
34621         doc/glibc-functions/opterr.texi.
34622         * doc/posix-functions/optind.texi: Renamed from
34623         doc/glibc-functions/optind.texi.
34624         * doc/posix-functions/optopt.texi: Renamed from
34625         doc/glibc-functions/optopt.texi.
34626         * doc/posix-functions/psignal.texi: Renamed from
34627         doc/glibc-functions/psignal.texi.
34628         * doc/posix-functions/scandir.texi: Renamed from
34629         doc/glibc-functions/scandir.texi.
34630         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
34631         doc/glibc-functions/sched_get_priority_min.texi.
34632         * doc/posix-functions/signgam.texi: Renamed from
34633         doc/glibc-functions/signgam.texi.
34634         * doc/posix-functions/stpcpy.texi: Renamed from
34635         doc/glibc-functions/stpcpy.texi.
34636         * doc/posix-functions/stpncpy.texi: Renamed from
34637         doc/glibc-functions/stpncpy.texi.
34638         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34639         doc/glibc-functions/strcasecmp_l.texi.
34640         * doc/posix-functions/strcoll_l.texi: Renamed from
34641         doc/glibc-functions/strcoll_l.texi.
34642         * doc/posix-functions/strfmon_l.texi: Renamed from
34643         doc/glibc-functions/strfmon_l.texi.
34644         * doc/posix-functions/strftime_l.texi: Renamed from
34645         doc/glibc-functions/strftime_l.texi.
34646         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34647         doc/glibc-functions/strncasecmp_l.texi.
34648         * doc/posix-functions/strndup.texi: Renamed from
34649         doc/glibc-functions/strndup.texi.
34650         * doc/posix-functions/strnlen.texi: Renamed from
34651         doc/glibc-functions/strnlen.texi.
34652         * doc/posix-functions/strsignal.texi: Renamed from
34653         doc/glibc-functions/strsignal.texi.
34654         * doc/posix-functions/strxfrm_l.texi: Renamed from
34655         doc/glibc-functions/strxfrm_l.texi.
34656         * doc/posix-functions/timer_gettime.texi: Renamed from
34657         doc/glibc-functions/timer_gettime.texi.
34658         * doc/posix-functions/tolower_l.texi: Renamed from
34659         doc/glibc-functions/tolower_l.texi.
34660         * doc/posix-functions/toupper_l.texi: Renamed from
34661         doc/glibc-functions/toupper_l.texi.
34662         * doc/posix-functions/towctrans_l.texi: Renamed from
34663         doc/glibc-functions/towctrans_l.texi.
34664         * doc/posix-functions/towlower_l.texi: Renamed from
34665         doc/glibc-functions/towlower_l.texi.
34666         * doc/posix-functions/towupper_l.texi: Renamed from
34667         doc/glibc-functions/towupper_l.texi.
34668         * doc/posix-functions/uselocale.texi: Renamed from
34669         doc/glibc-functions/uselocale.texi.
34670         * doc/posix-functions/vdprintf.texi: Renamed from
34671         doc/glibc-functions/vdprintf.texi.
34672         * doc/posix-functions/wcpcpy.texi:
34673         Renamed from doc/glibc-functions/wcpcpy.texi.
34674         * doc/posix-functions/wcpncpy.texi: Renamed from
34675         doc/glibc-functions/wcpncpy.texi.
34676         * doc/posix-functions/wcscasecmp.texi: Renamed from
34677         doc/glibc-functions/wcscasecmp.texi.
34678         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34679         doc/glibc-functions/wcscasecmp_l.texi.
34680         * doc/posix-functions/wcscoll_l.texi: Renamed from
34681         doc/glibc-functions/wcscoll_l.texi.
34682         * doc/posix-functions/wcsdup.texi: Renamed from
34683         doc/glibc-functions/wcsdup.texi.
34684         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34685         doc/glibc-functions/wcsncasecmp.texi.
34686         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34687         doc/glibc-functions/wcsncasecmp_l.texi.
34688         * doc/posix-functions/wcsnlen.texi: Renamed from
34689         doc/glibc-functions/wcsnlen.texi.
34690         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34691         doc/glibc-functions/wcsnrtombs.texi.
34692         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34693         doc/glibc-functions/wcsxfrm_l.texi.
34694         * doc/posix-functions/wctrans_l.texi: Renamed from
34695         doc/glibc-functions/wctrans_l.texi.
34696         * doc/posix-functions/wctype_l.texi: Renamed from
34697         doc/glibc-functions/wctype_l.texi.
34698         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34699         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34700         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34701         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34702         these subsections.
34703         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34704         Remove sections.
34705
34706 2008-12-14  Bruno Haible  <bruno@clisp.org>
34707
34708         Update doc for POSIX:2008.
34709         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34710
34711 2008-12-14  Bruno Haible  <bruno@clisp.org>
34712
34713         Update doc for POSIX:2008.
34714         * doc/pastposix-functions/bcmp.texi: Renamed from
34715         doc/posix-functions/bcmp.texi.
34716         * doc/pastposix-functions/bcopy.texi: Renamed from
34717         doc/posix-functions/bcopy.texi.
34718         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34719         doc/posix-functions/bsd_signal.texi.
34720         * doc/pastposix-functions/bzero.texi: Renamed from
34721         doc/posix-functions/bzero.texi.
34722         * doc/pastposix-functions/ecvt.texi: Renamed from
34723         doc/posix-functions/ecvt.texi.
34724         * doc/pastposix-functions/fcvt.texi: Renamed from
34725         doc/posix-functions/fcvt.texi.
34726         * doc/pastposix-functions/ftime.texi: Renamed from
34727         doc/posix-functions/ftime.texi.
34728         * doc/pastposix-functions/gcvt.texi: Renamed from
34729         doc/posix-functions/gcvt.texi.
34730         * doc/pastposix-functions/getcontext.texi: Renamed from
34731         doc/posix-functions/getcontext.texi.
34732         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34733         doc/posix-functions/gethostbyaddr.texi.
34734         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34735         doc/posix-functions/gethostbyname.texi.
34736         * doc/pastposix-functions/getwd.texi: Renamed from
34737         doc/posix-functions/getwd.texi.
34738         * doc/pastposix-functions/h_errno.texi: Renamed from
34739         doc/posix-functions/h_errno.texi.
34740         * doc/pastposix-functions/index.texi: Renamed from
34741         doc/posix-functions/index.texi.
34742         * doc/pastposix-functions/makecontext.texi: Renamed from
34743         doc/posix-functions/makecontext.texi.
34744         * doc/pastposix-functions/mktemp.texi: Renamed from
34745         doc/posix-functions/mktemp.texi.
34746         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
34747         doc/posix-functions/pthread_attr_getstackaddr.texi.
34748         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
34749         doc/posix-functions/pthread_attr_setstackaddr.texi.
34750         * doc/pastposix-functions/rindex.texi: Renamed from
34751         doc/posix-functions/rindex.texi.
34752         * doc/pastposix-functions/scalb.texi: Renamed from
34753         doc/posix-functions/scalb.texi.
34754         * doc/pastposix-functions/setcontext.texi: Renamed from
34755         doc/posix-functions/setcontext.texi.
34756         * doc/pastposix-functions/swapcontext.texi: Renamed from
34757         doc/posix-functions/swapcontext.texi.
34758         * doc/pastposix-functions/ualarm.texi: Renamed from
34759         doc/posix-functions/ualarm.texi.
34760         * doc/pastposix-functions/usleep.texi: Renamed from
34761         doc/posix-functions/usleep.texi.
34762         * doc/pastposix-functions/vfork.texi: Renamed from
34763         doc/posix-functions/vfork.texi.
34764         * doc/pastposix-functions/wcswcs.texi: Renamed from
34765         doc/posix-functions/wcswcs.texi.
34766         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
34767         (Function Substitutes): Update.
34768
34769 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34770
34771         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
34772         m4/strerror.m4.
34773
34774 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34775             Bruno Haible  <bruno@clisp.org>
34776
34777         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
34778
34779 2008-12-13  Bruno Haible  <bruno@clisp.org>
34780
34781         * modules/strtoull (Depends-on): Remove unistd.
34782
34783 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34784
34785         * modules/strtoull (Depends-on): Add stdlib.
34786
34787 2008-12-11  Simon Josefsson  <simon@josefsson.org>
34788
34789         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
34790
34791 2008-12-10  Jim Meyering  <meyering@redhat.com>
34792
34793         gl_ASSERT: don't say assertions are disabled when they're not
34794         * m4/assert.m4 (gl_ASSERT): Do not make configure report
34795         "checking whether to enable assertions... no", when they are in
34796         fact enabled.  This is solely a bug in the output of configure.
34797         In spite of saying "no", NDEBUG was not defined in that case.
34798         Also, as noted by Eric Blake, leave assertions enabled upon
34799         --enable-assert=INVALID.
34800
34801 2008-12-10  Bruno Haible  <bruno@clisp.org>
34802
34803         Change MODULES.html to refer to POSIX:2008 where possible.
34804         * MODULES.html.sh (POSIX2008_URL): New variable.
34805         (posix_headers): Remove sys/timeb, ucontext.
34806         (posix2001_headers): New variable.
34807         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
34808         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
34809         index, makecontext, mktemp, pthread_attr_getstackaddr,
34810         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
34811         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
34812         (posix2001_functions): New variable.
34813         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
34814         otherwise.
34815
34816 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34817
34818         add missing include to parse-duration.c
34819         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
34820         * modules/parse-duration (Depends-on): Add xalloc.
34821
34822         fix sed script reading maint.mk
34823         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
34824         (syntax-check-rules): Use it.
34825
34826 2008-12-09  Bruno Haible  <bruno@clisp.org>
34827
34828         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
34829         MacOS X 10.4/PowerPC.
34830         Reported by Simon Josefsson.
34831
34832 2008-12-08  Jim Meyering  <meyering@redhat.com>
34833
34834         work around mingw's lack of some S_IF definitions
34835         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
34836         Reported by Simon Josefsson.
34837
34838 2008-12-08  Bruno Haible  <bruno@clisp.org>
34839
34840         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
34841         applied to variables. Needed on MacOS X 10.4/PowerPC.
34842         Reported by Simon Josefsson.
34843
34844 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
34845         and Eric Blake  <ebb9@byu.net>
34846
34847         assert: honor --enable-assert
34848         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
34849         order to honor --enable-assert, rather than treating it as a
34850         synonym for --disable-assert.
34851
34852 2008-12-08  Jim Meyering  <meyering@redhat.com>
34853
34854         * lib/posixtm.c: Remove now-useless declaration of mktime.
34855
34856         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
34857
34858 2008-12-07  Bruno Haible  <bruno@clisp.org>
34859
34860         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
34861         test_once): Mark functions as static.
34862         * tests/test-tls.c (test_tls): Likewise.
34863
34864 2008-12-07  Bruno Haible  <bruno@clisp.org>
34865
34866         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
34867         iconv_register_autodetect.
34868
34869 2008-12-07  Jim Meyering  <meyering@redhat.com>
34870
34871         posixtm.c: avoid a warning
34872         * lib/posixtm.c (posixtime): Don't initialize tm0.
34873         It's no longer needed to placate gcc4's -Wuninitialized,
34874         and the attempt to placate would elicit a new warning.
34875
34876         unicodeio.c: mark unused parameters
34877         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34878         (fallback_failure_callback): Likewise.
34879
34880 2008-12-07  Bruno Haible  <bruno@clisp.org>
34881
34882         * gnulib-tool (func_create_testdir): When building the tests
34883         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
34884         Reported by Simon Josefsson.
34885
34886 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34887
34888         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
34889
34890 2008-12-06  Bruno Haible  <bruno@clisp.org>
34891
34892         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
34893         Suggested by Eric Blake.
34894
34895 2008-12-06  Bruno Haible  <bruno@clisp.org>
34896
34897         Fix a c-stack test failure on MacOS X.
34898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
34899         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
34900         handler for SIGBUS as well.
34901         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
34902         install a signal handler for SIGBUS as well.
34903         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
34904
34905 2008-12-06  Bruno Haible  <bruno@clisp.org>
34906
34907         Advocacy documentation.
34908         * doc/gnulib-intro.texi (Benefits): New section.
34909         * doc/gnulib.texi: Update.
34910
34911 2008-12-06  Bruno Haible  <bruno@clisp.org>
34912
34913         Document the 'manywarnings' module.
34914         * doc/manywarnings.texi: New file.
34915         * doc/gnulib.texi: Include it.
34916
34917 2008-12-05  Eric Blake  <ebb9@byu.net>
34918
34919         tests: silence some gcc warnings
34920         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
34921         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
34922         type mismatches.
34923
34924 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34925             Bruno Haible  <bruno@clisp.org>
34926
34927         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
34928
34929 2008-11-29  Jim Meyering  <meyering@redhat.com>
34930
34931         unicodeio.c: mark unused parameters
34932         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34933         (fallback_failure_callback): Likewise.
34934
34935         fts: fix a thinko
34936         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
34937         (set_stat_type): Return S_IF*-valued "type" directly.
34938         Prompted by James Youngman's spotting a related bug.
34939         Confirmed by further testing through find.
34940
34941         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
34942         * lib/fts.c (D_TYPE): Define.
34943         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
34944         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
34945         (s_ifmt_shift_bits): New function.
34946         (set_stat_type): New function.
34947         (fts_build): When not calling fts_stat, call set_stat_type
34948         to propagate dirent.d_type info to fts_read caller.
34949         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
34950         fts_statp->st_mode type information may be valid.
34951
34952 2008-11-28  Simon Josefsson  <simon@josefsson.org>
34953
34954         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
34955         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
34956         <sds@gnu.org>.
34957
34958 2008-11-20  Bruno Haible  <bruno@clisp.org>
34959
34960         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
34961         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
34962         INCLUDE_NEXT.
34963         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
34964         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
34965         * modules/math (Makefile.am): Substitute
34966         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
34967         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34968
34969 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34970             Bruno Haible  <bruno@clisp.org>
34971
34972         * lib/stdint.in.h: Define all type macros so that their expansion is
34973         a single typedef'ed token. Fixes a compilation failure in Boost which
34974         does "using ::int8_t;".
34975
34976 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34977
34978         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
34979         gl_MANYWARN_ALL_GCC.
34980         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
34981         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
34982         * modules/manywarnings: New file.
34983         * MODULES.html.sh: Mention manywarnings module.
34984
34985 2008-11-18  Bruno Haible  <bruno@clisp.org>
34986
34987         * doc/gnulib-tool.texi (Unit tests): New section.
34988
34989 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34990
34991         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34992         paths like 'lib/po/foo.po'.
34993
34994 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34995
34996         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34997         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34998
34999 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35000
35001         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35002         parameter works.
35003
35004 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35005
35006         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35007
35008 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35009
35010         * modules/parse-duration-tests: New file.
35011         * tests/test-parse-duration.sh: New file.
35012         * tests/test-parse-duration.c: New file.
35013
35014         New module 'parse-duration'.
35015         * lib/parse-duration.h: New file.
35016         * lib/parse-duration.c: New file.
35017         * modules/parse-duration: New file.
35018
35019 2008-11-17  Bruno Haible  <bruno@clisp.org>
35020
35021         * tests/test-select-out.sh: Comment out the first pipe test.
35022         Reported by Simon Josefsson.
35023
35024 2008-11-17  Bruno Haible  <bruno@clisp.org>
35025
35026         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35027         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35028         gl_HOSTENT.
35029
35030 2008-11-17  Bruno Haible  <bruno@clisp.org>
35031
35032         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35033         -lnetwork and -lnet. Needed for Haiku and BeOS.
35034
35035 2008-11-16  Bruno Haible  <bruno@clisp.org>
35036
35037         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35038
35039 2008-11-16  Bruno Haible  <bruno@clisp.org>
35040
35041         Avoid test failure on Haiku.
35042         * tests/test-fsync.c: Include <errno.h>.
35043         (main): Don't require that fsync (0) fails.
35044
35045 2008-11-15  Bruno Haible  <bruno@clisp.org>
35046
35047         New module 'hostent'.
35048         * modules/hostent: New file.
35049         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35050
35051 2008-11-15  Bruno Haible  <bruno@clisp.org>
35052
35053         New module 'servent'.
35054         * modules/servent: New file.
35055         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35056
35057 2008-11-15  Bruno Haible  <bruno@clisp.org>
35058
35059         Avoid generating same test program with two different rules.
35060         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35061         test-frexp to test-frexp-nolibm.
35062         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35063         test-frexpl to test-frexpl-nolibm.
35064
35065 2008-11-15  Bruno Haible  <bruno@clisp.org>
35066
35067         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35068         $(FREXPL_LIBM).
35069
35070 2008-11-15  Bruno Haible  <bruno@clisp.org>
35071
35072         * lib/netdb.in.h: Activate the definitions also when the system's
35073         <netdb.h> has 'struct addrinfo'.
35074         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35075         EAI_OVERFLOW or AI_NUMERICSERV.
35076         * doc/posix-headers/netdb.texi: Document the problem.
35077
35078 2008-11-15  Bruno Haible  <bruno@clisp.org>
35079
35080         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35081
35082         Make the 'sched' module work on platforms where <sched.h> exists but
35083         is incomplete (such as Haiku).
35084         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35085         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35086         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35087         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35088         HAVE_STRUCT_SCHED_PARAM.
35089         * modules/sched (Depends-on): Add include_next.
35090         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35091         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35092         * doc/posix-headers/sched.texi: Document the issue.
35093
35094 2008-11-13  Jim Meyering  <meyering@redhat.com>
35095
35096         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35097         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35098         test would fail due to the difference in the Report bugs to ...
35099         line.  The expected address is empty, "<>", while the actual
35100         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35101
35102 2008-11-12  Bruno Haible  <bruno@clisp.org>
35103
35104         lstat: don't compile lstat.c on systems lacking lstat
35105         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35106         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35107         Reported by Daniel P. Berrange via Jim Meyering.
35108
35109 2008-11-12  Jim Meyering  <meyering@redhat.com>
35110
35111         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35112
35113 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35114
35115         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35116         instead.
35117
35118 2008-11-12  Bruno Haible  <bruno@clisp.org>
35119
35120         * lib/unicodeio.c: Include unistr.h.
35121         (utf8_wctomb): Remove function.
35122         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35123
35124 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35125
35126         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35127         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35128         <bruno@clisp.org>.
35129         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35130
35131 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35132
35133         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35134         * doc/gnulib.texi: Add section for warnings.
35135
35136 2008-11-11  Bruno Haible  <bruno@clisp.org>
35137
35138         * lib/sockets.h: Add a comment.
35139
35140 2008-11-11  Karl Berry  <karl@gnu.org>
35141
35142         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35143
35144 2008-11-11  Eric Blake  <ebb9@byu.net>
35145
35146         fdl.texi: avoid git symlinks
35147         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35148
35149 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35150
35151         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35152
35153 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35154
35155         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35156         (gl_WARN_ADD): Substitute $2 if literal.
35157
35158 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35159
35160         * m4/warning.m4: Remove.
35161
35162 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35163
35164         * m4/warnings.m4: Almost complete rewrite. :-)
35165
35166 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35167
35168         * modules/warnings: New module.
35169         * m4/warnings.m4: New file.
35170         * MODULES.html.sh: Mention warnings module.
35171         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35172         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35173
35174 2008-11-10  Eric Blake  <ebb9@byu.net>
35175
35176         fdl.texi: make a symlink to the latest version
35177         * doc/standards.texi: Revert today's earlier change.
35178         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35179         * doc/fdl.texi: ...and replace this with a symlink to the newer
35180         fdl-1.3.texi.
35181
35182 2008-11-10  Bruno Haible  <bruno@clisp.org>
35183
35184         * tests/test-select-fd.c (main): Accept the result file name as fourth
35185         argument.
35186         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35187         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35188
35189 2008-11-10  Bruno Haible  <bruno@clisp.org>
35190
35191         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35192         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35193         as autoconf-substituted macros.
35194         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35195         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35196         gl_NETDB_H_DEFAULTS. Set these variables.
35197         * modules/netdb (Makefile.am): Substitute these variables.
35198
35199 2008-11-10  Eric Blake  <ebb9@byu.net>
35200
35201         standards.texi: include correct file for FDL 1.3
35202         * doc/standards.texi (GNU Free Documentation License): Change
35203         include file to pull in FDL 1.3, not 1.2.
35204
35205         fdl.texi: revert accidental change to license
35206         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35207
35208 2008-11-10  Bruno Haible  <bruno@clisp.org>
35209
35210         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35211         cross-compiling guesses also when the native compile gives no result.
35212
35213 2008-11-10  Bruno Haible  <bruno@clisp.org>
35214
35215         * lib/spawni.c (__spawni): Force variable into the stack.
35216
35217 2008-11-10  Bruno Haible  <bruno@clisp.org>
35218
35219         Add support for Haiku.
35220         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35221         glibc and BeOS, but also on Haiku.
35222         * lib/fpurge.c (fpurge): Likewise.
35223         * lib/freadable.c (freadable): Likewise.
35224         * lib/freadahead.c (freadahead): Likewise.
35225         * lib/freading.c (freading): Likewise.
35226         * lib/freadptr.c (freadptr): Likewise.
35227         * lib/freadseek.c (freadptrinc): Likewise.
35228         * lib/fseeko.c (rpl_fseeko): Likewise.
35229         * lib/fseterr.c (fseterr): Likewise.
35230         * lib/fwritable.c (fwritable): Likewise.
35231         * lib/fwriting.c (fwriting): Likewise.
35232         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35233
35234 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35235
35236         * lib/config.charset: Treat Haiku like BeOS.
35237
35238 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35239
35240         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35241         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35242
35243 2008-11-08  Bruno Haible  <bruno@clisp.org>
35244
35245         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35246         AC_CACHE_CHECK.
35247
35248 2008-11-08  Bruno Haible  <bruno@clisp.org>
35249
35250         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35251
35252 2008-11-08  Bruno Haible  <bruno@clisp.org>
35253
35254         * tests/test-select-fd.c: New file.
35255         * tests/test-select-in.sh: New file.
35256         * tests/test-select-out.sh: New file.
35257         * tests/test-select-stdin.c: New file.
35258         * modules/select-tests (Files): Add the new files.
35259         (Depends-on): Add gettimeofday.
35260         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35261         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35262         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35263
35264 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35265             Bruno Haible  <bruno@clisp.org>
35266
35267         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35268
35269 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35270
35271         * build-aux/pmccabe2html: Added support for C++ source files.
35272
35273 2008-11-05  Ben Pfaff  <blp@gnu.org>
35274
35275         Fix lib/close.c build on Windows.
35276         * modules/close (Files): Add lib/w32sock.h.
35277
35278 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35279
35280         Accept Bison's NEWS format.
35281         * build-aux/announce-gen (print_news_deltas): Tweak
35282         $re_prefix.
35283
35284 2008-11-04  Bruno Haible  <bruno@clisp.org>
35285
35286         * modules/random_r (Maintainer): Add glibc.
35287
35288 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35289
35290         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35291         by karl@freefriends.org (Karl Berry).
35292         * doc/alloca.texi: Likewise.
35293         * doc/c-ctype.texi: Likewise.
35294         * doc/c-strcase.texi: Likewise.
35295         * doc/c-strcaseeq.texi: Likewise.
35296         * doc/c-strcasestr.texi: Likewise.
35297         * doc/c-strstr.texi: Likewise.
35298         * doc/c-strtod.texi: Likewise.
35299         * doc/c-strtold.texi: Likewise.
35300         * doc/ctime.texi: Likewise.
35301         * doc/error.texi: Likewise.
35302         * doc/fdl.texi: Likewise.
35303         * doc/gcd.texi: Likewise.
35304         * doc/getdate.texi: Likewise.
35305         * doc/gnulib-intro.texi: Likewise.
35306         * doc/gnulib-tool.texi: Likewise.
35307         * doc/gnulib.texi: Likewise.
35308         * doc/inet_ntoa.texi: Likewise.
35309         * doc/maintain.texi: Likewise.
35310         * doc/make-stds.texi: Likewise.
35311         * doc/quote.texi: Likewise.
35312         * doc/regexprops-generic.texi: Likewise.
35313         * doc/standards.texi: Likewise.
35314         * doc/verify.texi: Likewise.
35315         * doc/visibility.texi: Likewise.
35316         * doc/gnulib.texi (GNU Free Documentation License): Include
35317         fdl-1.3.texi instead of fdl.texi.
35318
35319 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35320
35321         * doc/fdl-1.3.texi: New file, from
35322         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35323         * modules/fdl-1.3: Add.
35324         * MODULES.html.sh: Add fdl-1.3.
35325
35326 2008-11-03  Bruno Haible  <bruno@clisp.org>
35327
35328         Make determination of absolute name of header file work with AIX xlc.
35329         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35330         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35331         preprocessing.
35332         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35333         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35334
35335 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35336
35337         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35338         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35339         <ludo@gnu.org>.
35340
35341 2008-11-02  Bruno Haible  <bruno@clisp.org>
35342
35343         Mark 'strpbrk' obsolete.
35344         * modules/strpbrk (Status, Notice): New sections.
35345         * modules/strtok_r (Depends-on): Add strpbrk.
35346
35347 2008-11-02  Bruno Haible  <bruno@clisp.org>
35348
35349         Mark 'strdup' obsolete.
35350         * modules/strdup (Status, Notice): New sections.
35351         * modules/findprog (Depends-on): Add strdup.
35352         * modules/getaddrinfo (Depends-on): Likewise.
35353         * modules/localename (Depends-on): Likewise.
35354         * modules/relocatable-lib (Depends-on): Likewise.
35355         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35356         * modules/relocatable-prog (Depends-on): Likewise.
35357         * modules/trim (Depends-on): Likewise.
35358         * modules/unictype/gen-ctype (Depends-on): Likewise.
35359         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35360
35361 2008-11-02  Bruno Haible  <bruno@clisp.org>
35362
35363         Mark 'strcspn' obsolete.
35364         * modules/strcspn (Status, Notice): New sections.
35365
35366 2008-11-02  Bruno Haible  <bruno@clisp.org>
35367
35368         Mark 'rmdir' obsolete.
35369         * modules/rmdir (Status, Notice): New sections.
35370         * modules/clean-temp (Depends-on): Add rmdir.
35371         * modules/openat (Depends-on): Likewise.
35372
35373 2008-11-02  Bruno Haible  <bruno@clisp.org>
35374
35375         Mark 'raise' obsolete.
35376         * modules/raise (Status, Notice): New sections.
35377         (Include): Specify <signal.h>.
35378         * modules/stdio (Depends-on): Add raise.
35379         * modules/write (Depends-on): Likewise.
35380
35381 2008-11-02  Bruno Haible  <bruno@clisp.org>
35382
35383         Mark 'memset' obsolete.
35384         * modules/memset (Status, Notice): New sections.
35385
35386 2008-11-02  Bruno Haible  <bruno@clisp.org>
35387
35388         Mark 'memmove' obsolete.
35389         * modules/memmove (Status, Notice): New sections.
35390         * modules/argp (Depends-on): Add memmove.
35391         * modules/argz (Depends-on): Likewise.
35392         * modules/canonicalize (Depends-on): Likewise.
35393         * modules/canonicalize-lgpl (Depends-on): Likewise.
35394         * modules/fts (Depends-on): Likewise.
35395         * modules/getcwd (Depends-on): Likewise.
35396         * modules/human (Depends-on): Likewise.
35397         * modules/regex (Depends-on): Likewise.
35398         * modules/striconveh (Depends-on): Likewise.
35399         * modules/trim (Depends-on): Likewise.
35400         * modules/unistr/u8-move (Depends-on): Likewise.
35401         * modules/unistr/u16-move (Depends-on): Likewise.
35402         * modules/unistr/u32-move (Depends-on): Likewise.
35403
35404 2008-11-02  Bruno Haible  <bruno@clisp.org>
35405
35406         Mark 'memcpy' obsolete.
35407         * modules/memcpy (Status, Notice): New sections.
35408
35409 2008-11-02  Bruno Haible  <bruno@clisp.org>
35410
35411         Mark 'memcmp' obsolete.
35412         * modules/memcmp (Status, Notice): New sections.
35413         * modules/argmatch (Depends-on): Add memchr.
35414         * modules/backupfile (Depends-on): Likewise.
35415         * modules/c-strcasestr (Depends-on): Likewise.
35416         * modules/crypto/des (Depends-on): Likewise.
35417         * modules/csharpcomp (Depends-on): Likewise.
35418         * modules/fnmatch (Depends-on): Likewise.
35419         * modules/git-merge-changelog (Depends-on): Likewise.
35420         * modules/isnand (Depends-on): Likewise.
35421         * modules/isnand-nolibm (Depends-on): Likewise.
35422         * modules/isnanf (Depends-on): Likewise.
35423         * modules/isnanf-nolibm (Depends-on): Likewise.
35424         * modules/isnanl (Depends-on): Likewise.
35425         * modules/isnanl-nolibm (Depends-on): Likewise.
35426         * modules/mbchar (Depends-on): Likewise.
35427         * modules/memcoll (Depends-on): Likewise.
35428         * modules/quotearg (Depends-on): Likewise.
35429         * modules/regex (Depends-on): Likewise.
35430         * modules/relocatable-prog (Depends-on): Likewise.
35431         * modules/same (Depends-on): Likewise.
35432         * modules/signbit (Depends-on): Likewise.
35433         * modules/strcasestr-simple (Depends-on): Likewise.
35434         * modules/unictype/gen-ctype (Depends-on): Likewise.
35435         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35436         * modules/uniname/uniname (Depends-on): Likewise.
35437         * modules/unistr/u8-cmp (Depends-on): Likewise.
35438
35439 2008-11-02  Bruno Haible  <bruno@clisp.org>
35440
35441         Mark 'memchr' obsolete.
35442         * modules/memchr (Status, Notice): New sections.
35443         * modules/argp (Depends-on): Add memchr.
35444         * modules/base64 (Depends-on): Likewise.
35445         * modules/c-strcasestr (Depends-on): Likewise.
35446         * modules/chdir-long (Depends-on): Likewise.
35447         * modules/fnmatch (Depends-on): Likewise.
35448         * modules/getsubopt (Depends-on): Likewise.
35449         * modules/git-merge-changelog (Depends-on): Likewise.
35450         * modules/glob (Depends-on): Likewise.
35451         * modules/strcasestr-simple (Depends-on): Likewise.
35452         * modules/strnlen (Depends-on): Likewise.
35453
35454 2008-11-02  Bruno Haible  <bruno@clisp.org>
35455
35456         Mark 'atexit' obsolete.
35457         * modules/atexit (Status, Notice): New sections.
35458         * modules/chdir-long (Depends-on): Add atexit.
35459         * modules/wait-process (Depends-on): Likewise.
35460
35461 2008-11-02  Bruno Haible  <bruno@clisp.org>
35462
35463         * gnulib-tool: New option --with-obsolete.
35464         (func_usage): Document it.
35465         (func_modules_transitive_closure): Drop obsolete dependencies if
35466         incobsolete is not true.
35467         (func_import): Read and save the incobsolete variable to the cache.
35468
35469 2008-11-02  Bruno Haible  <bruno@clisp.org>
35470
35471         * modules/TEMPLATE-EXTENDED: New field 'Status'.
35472         * gnulib-tool: New option --extract-status.
35473         (func_usage): Document it.
35474         (sed_extract_prog): Recognize it.
35475         (func_get_status): New function.
35476
35477 2008-10-30  Simon Josefsson  <simon@josefsson.org>
35478
35479         * modules/sockets (License): Change from LGPL to LGPLv2+.
35480
35481 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35482
35483         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
35484
35485 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35486
35487         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35488         Mention times and sys_times.
35489         * modules/sys_times, modules/sys_times-tests: New modules.
35490         * modules/times, modules/times-tests: Likewise
35491         * m4/sys_times_h.m4: New file.
35492         * lib/sys_times.in.h: Likewise
35493         * lib/times.c: Likewise.
35494         * tests/test-sys_times.c: Likewise.
35495         * tests/test-times.c: Likewise.
35496         * doc/posix-headers/sys_times.texi: Update.
35497         * doc/posix-functions/times.texi: Update.
35498
35499 2008-10-28  Jim Meyering  <meyering@redhat.com>
35500
35501         * modules/tempname (Depends-on): Add lstat.
35502
35503         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
35504
35505 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35506
35507         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
35508         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
35509         using idiom used elsewhere in gnulib.
35510
35511 2008-10-27  Jim Meyering  <meyering@redhat.com>
35512
35513         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
35514
35515 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35516
35517         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
35518         TESTS_ENVIRONMENT, for shell scripts that needs to call built
35519         programs.
35520         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35521
35522 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35523
35524         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
35525
35526 2008-10-27  Bruno Haible  <bruno@clisp.org>
35527
35528         * tests/test-lstat.c: Include <stdio.h>.
35529
35530 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35531
35532         * modules/lstat-tests: New module.
35533         * tests/test-lstat.c: New file.
35534
35535 2008-10-26  Jim Meyering  <meyering@redhat.com>
35536
35537         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
35538
35539 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35540             Bruno Haible  <bruno@clisp.org>
35541
35542         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
35543         * modules/configmake (Include): Add a note that the include must come
35544         after all system headers.
35545         * lib/javaversion.c: Include configmake.h after all other includes.
35546
35547 2008-10-26  Bruno Haible  <bruno@clisp.org>
35548
35549         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
35550         HAVE_STRUCT_RANDOM_DATA to 1.
35551         (gl_STDLIB_H): Simplify.
35552
35553 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35554
35555         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
35556         substitute HAVE_STRUCT_RANDOM_DATA.
35557         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
35558         random_data.
35559         * modules/stdlib (Makefile.am): Substitute
35560         HAVE_STRUCT_RANDOM_DATA.
35561
35562 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35563
35564         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
35565         * doc/gnulib-intro.texi (Copyright): Likewise.
35566
35567 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35568
35569         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
35570         findings.
35571
35572 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
35573             Bruno Haible  <bruno@clisp.org>
35574
35575         * lib/unistd.in.h: Include <winsock2.h>.
35576         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
35577         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
35578         Provide dummy declarations.
35579         (gethostname): Override.
35580         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
35581         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
35582         gl_PREREQ_SYS_H_WINSOCK2.
35583         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
35584         * doc/posix-functions/gethostname.texi: More details.
35585
35586 2008-10-25  Bruno Haible  <bruno@clisp.org>
35587
35588         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35589         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
35590         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
35591
35592         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
35593         here ...
35594         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
35595         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
35596         gl_UNISTD_H_DEFAULTS.
35597
35598 2008-10-25  Eric Blake  <ebb9@byu.net>
35599
35600         signbit: avoid spurious compiler failure
35601         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
35602         declarations inside function.
35603
35604 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35605             Bruno Haible  <bruno@clisp.org>
35606
35607         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
35608         * modules/random_r (Depends-on): Add stdint.
35609
35610 2008-10-24  Bruno Haible  <bruno@clisp.org>
35611
35612         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
35613         Eggert.
35614         * modules/strerror (License): Likewise.
35615
35616 2008-10-24  Jim Meyering  <meyering@redhat.com>
35617
35618         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
35619         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
35620
35621 2008-10-24  Eric Blake  <ebb9@byu.net>
35622
35623         getgroups: fix compilation when getgroups is available
35624         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
35625         but with <config.h> override of getgroups disabled.
35626
35627 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35628
35629         * doc/gnulib.texi (Header files): Add note about C++ problems.
35630         Explained by Bruno Haible <bruno@clisp.org>.
35631
35632 2008-10-23  Bruno Haible  <bruno@clisp.org>
35633
35634         Define a dummy SA_NODEFER macro on Interix.
35635         * lib/signal.in.h (SA_NODEFER): Define fallback.
35636         Reported by Aleksey Cheusov <cheusov@tut.by> via
35637         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35638
35639 2008-10-23  Bruno Haible  <bruno@clisp.org>
35640
35641         * modules/freadahead (License): Change to LGPLv2+.
35642         Suggested by Simon Josefsson.
35643
35644 2008-10-23  Jim Meyering  <meyering@redhat.com>
35645
35646         random_r: new module
35647         * modules/random_r: New file.
35648         * m4/random_r.m4: New file.
35649         * lib/random_r.c: New file, from glibc.
35650         * modules/random_r-tests: New file.
35651         * tests/test-random_r.c: New file.
35652         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35653          Declare.
35654         (RAND_MAX): Define.
35655         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35656         * modules/stdlib: Substitute them, too.
35657         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35658         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35659         * doc/glibc-functions/random_r.texi: Likewise.
35660         * doc/glibc-functions/setstate_r.texi: Likewise.
35661         * doc/glibc-functions/srandom_r.texi: Likewise.
35662         * config/srclist.txt: Mention it.
35663
35664 2008-10-23  David Lutterkort  <lutter@redhat.com>
35665
35666         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35667         link requirement
35668
35669 2008-10-23  Jim Meyering  <meyering@redhat.com>
35670
35671         selinux-h: mark parameters of stub functions as intentionally unused
35672         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35673         * lib/se-context.in.h: Likewise.
35674
35675 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35676
35677         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35678
35679 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35680
35681         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35682
35683 2008-10-22  Eric Blake  <ebb9@byu.net>
35684
35685         glthread/thread: avoid compiler warning
35686         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35687         Add unreachable abort to silence compiler.
35688
35689 2008-10-22  Eric Blake  <ebb9@byu.net>
35690
35691         netdb: also supply struct addrinfo for cygwin 1.5.x
35692         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35693         older cygwin.
35694         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35695         cygwin.
35696         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35697
35698 2008-10-22  Bruno Haible  <bruno@clisp.org>
35699
35700         * users.txt: Update entry about pspp.
35701
35702 2008-10-21  Bruno Haible  <bruno@clisp.org>
35703
35704         Simplification.
35705         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35706         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35707
35708         Simplification.
35709         * lib/ioctl.c (ioctl): Don't undefine.
35710         * lib/socket.c (socket): Don't undefine.
35711
35712         Remove unused module indicator macros.
35713         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35714         GNULIB_$1 as a C macro.
35715
35716         * doc/posix-functions/close.texi: Undo last change.
35717         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35718         Windows platforms.
35719
35720 2008-10-21  Bruno Haible  <bruno@clisp.org>
35721
35722         Add gethostname() declaration to <unistd.h>.
35723         * lib/unistd.in.h (gethostname): New declaration.
35724         * lib/gethostname.c: Include <unistd.h>.
35725         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35726         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35728         and HAVE_GETHOSTNAME.
35729         * modules/gethostname (Depends-on): Add unistd.
35730         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35731         (Include): Specify <unistd.h>.
35732         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35733         HAVE_GETHOSTNAME.
35734         * tests/test-gethostname.c: Include <unistd.h> first.
35735
35736 2008-10-21  Bruno Haible  <bruno@clisp.org>
35737
35738         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
35739         * modules/select-tests (Depends-on): Likewise.
35740         Reported by Simon Josefsson.
35741
35742 2008-10-21  Simon Josefsson  <simon@josefsson.org>
35743
35744         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
35745         * lib/accept.c: New file, based on winsock.c.
35746         * lib/bind.c: New file, based on winsock.c.
35747         * lib/connect.c: New file, based on winsock.c.
35748         * lib/getpeername.c: New file, based on winsock.c.
35749         * lib/getsockname.c: New file, based on winsock.c.
35750         * lib/getsockopt.c: New file, based on winsock.c.
35751         * lib/ioctl.c: New file, based on winsock.c.
35752         * lib/listen.c: New file, based on winsock.c.
35753         * lib/recv.c: New file, based on winsock.c.
35754         * lib/recvfrom.c: New file, based on winsock.c.
35755         * lib/send.c: New file, based on winsock.c.
35756         * lib/sendto.c: New file, based on winsock.c.
35757         * lib/setsockopt.c: New file, based on winsock.c.
35758         * lib/shutdown.c: New file, based on winsock.c.
35759         * lib/socket.c: New file, based on winsock.c.
35760         * lib/w32sock.h: New file, based on winsock.c.
35761         * lib/winsock.c: Remove file.
35762         * modules/accept: Likewise.
35763         * modules/bind: Likewise.
35764         * modules/connect: Likewise.
35765         * modules/getpeername: Likewise.
35766         * modules/getsockname: Likewise.
35767         * modules/getsockopt: Likewise.
35768         * modules/ioctl: Likewise.
35769         * modules/listen: Likewise.
35770         * modules/recv: Likewise.
35771         * modules/recvfrom: Likewise.
35772         * modules/send: Likewise.
35773         * modules/sendto: Likewise.
35774         * modules/setsockopt: Likewise.
35775         * modules/shutdown: Likewise.
35776         * modules/socket: Use socket.c instead of winsock.c.
35777         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
35778         * doc/posix-functions/accept.texi: Doc fix.
35779         * doc/posix-functions/bind.texi: Doc fix.
35780         * doc/posix-functions/close.texi: Doc fix.
35781         * doc/posix-functions/connect.texi: Doc fix.
35782         * doc/posix-functions/getpeername.texi: Doc fix.
35783         * doc/posix-functions/getsockname.texi: Doc fix.
35784         * doc/posix-functions/getsockopt.texi: Doc fix.
35785         * doc/posix-functions/ioctl.texi: Doc fix.
35786         * doc/posix-functions/listen.texi: Doc fix.
35787         * doc/posix-functions/recv.texi: Doc fix.
35788         * doc/posix-functions/recvfrom.texi: Doc fix.
35789         * doc/posix-functions/send.texi: Doc fix.
35790         * doc/posix-functions/sendto.texi: Doc fix.
35791         * doc/posix-functions/setsockopt.texi: Doc fix.
35792         * doc/posix-functions/shutdown.texi: Doc fix.
35793         * doc/posix-functions/socket.texi: Doc fix.
35794
35795 2008-10-20  Bruno Haible  <bruno@clisp.org>
35796
35797         Take into account the role of SIGABRT_COMPAT on Windows 2008.
35798         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
35799         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
35800         as an alias for SIGABRT.
35801         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
35802         (sigaction): Map it to SIGABRT.
35803         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
35804
35805 2008-10-20  Bruno Haible  <bruno@clisp.org>
35806
35807         * lib/fts.c: Don't include lstat.h.
35808         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
35809
35810         Move the lstat() declaration to <sys/stat.h>.
35811         * lib/lstat.h: Remove file.
35812         * lib/sys_stat.in.h: Add special invocation convention.
35813         (lstat): New declaration.
35814         * lib/lstat.c (orig_lstat): New function.
35815         (rpl_lstat): Use orig_lstat instead of lstat.
35816         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
35817         AC_C_INLINE. Set REPLACE_LSTAT.
35818         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
35819         and REPLACE_LSTAT.
35820         * modules/lstat (Files): Remove lib/lstat.h.
35821         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35822         (Include): Specify <sys/stat.h> instead of lstat.h.
35823         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
35824         REPLACE_LSTAT.
35825         * NEWS: Mention the change.
35826
35827 2008-10-20  Bruno Haible  <bruno@clisp.org>
35828
35829         * modules/posix_spawn-tests: New file.
35830         * tests/test-posix_spawn3.c: New file.
35831
35832 2008-10-20  Bruno Haible  <bruno@clisp.org>
35833
35834         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
35835         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35836         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
35837         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35838         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
35839
35840 2008-10-20  Bruno Haible  <bruno@clisp.org>
35841
35842         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
35843         of posix_spawn on AIX 5.3.
35844
35845 2008-10-20  Bruno Haible  <bruno@clisp.org>
35846
35847         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
35848
35849 2008-10-20  Bruno Haible  <bruno@clisp.org>
35850
35851         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
35852         of AC_LANG_PROGRAM.
35853
35854 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35855
35856         * lib/netdb.in.h: Don't define GNU specific constants until they
35857         are supported or needed.  Reported by Bruno Haible
35858         <bruno@clisp.org>.
35859
35860 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35861
35862         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
35863
35864 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35865
35866         * lib/getaddrinfo.h: Remove file.
35867         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
35868         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
35869         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
35870         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
35871         * modules/netdb: Substitute GNULIB_GETADDRINFO.
35872         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
35873         * tests/test-getaddrinfo.c: Likewise.
35874         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
35875         * NEWS: Mention change.
35876
35877 2008-10-19  Bruno Haible  <bruno@clisp.org>
35878
35879         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
35880
35881 2008-10-19  Bruno Haible  <bruno@clisp.org>
35882
35883         * lib/wait-process.c: Include simply <sys/wait.h>.
35884         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
35885         WIFSTOPPED): Remove fallback definitions.
35886         * modules/wait-process (Depends-on): Add sys_wait.
35887
35888         New module 'sys_wait'.
35889         * modules/sys_wait: New file.
35890         * lib/sys_wait.in.h: New file, partially copied from
35891         lib/wait-process.c.
35892         * m4/sys_wait_h.m4: New file.
35893         * doc/posix-headers/sys_wait.texi: Mention the new module.
35894
35895 2008-10-19  Bruno Haible  <bruno@clisp.org>
35896
35897         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
35898
35899 2008-10-19  Bruno Haible  <bruno@clisp.org>
35900
35901         Assume that waitpid() fills an 'int' status, not a 'union wait'.
35902         * lib/wait-process.c (WAIT_T): Remove type.
35903         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
35904         (wait_subprocess): Update.
35905
35906 2008-10-19  Bruno Haible  <bruno@clisp.org>
35907
35908         New module 'atoll'.
35909         * modules/atoll: New file.
35910         * lib/stdlib.in.h (atoll): New declaration.
35911         * lib/atoll.c: New file, from glibc with modifications.
35912         * m4/atoll.m4: New file.
35913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
35914         HAVE_ATOLL.
35915         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
35916         * doc/posix-functions/atoll.texi: Mention the new module.
35917
35918 2008-10-19  Bruno Haible  <bruno@clisp.org>
35919
35920         Add strtoull() declaration to <stdlib.h>.
35921         * lib/stdlib.in.h (strtoull): New declaration.
35922         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35923         Set HAVE_STRTOULL.
35924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
35925         HAVE_STRTOULL.
35926         * modules/strtoull (Depends-on): Add stdlib.
35927         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35928         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
35929         HAVE_STRTOULL.
35930
35931 2008-10-19  Bruno Haible  <bruno@clisp.org>
35932
35933         Add strtoll() declaration to <stdlib.h>.
35934         * lib/stdlib.in.h (strtoll): New declaration.
35935         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35936         Set HAVE_STRTOLL.
35937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
35938         HAVE_STRTOLL.
35939         * modules/strtoll (Depends-on): Add stdlib.
35940         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35941         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
35942
35943 2008-10-19  Bruno Haible  <bruno@clisp.org>
35944
35945         * modules/bcopy (Depends-on): Add strings.
35946         (Include): Specify <strings.h>.
35947
35948 2008-10-19  Bruno Haible  <bruno@clisp.org>
35949
35950         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
35951
35952 2008-10-19  Bruno Haible  <bruno@clisp.org>
35953
35954         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
35955         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
35956         mingw.
35957
35958 2008-10-19  Bruno Haible  <bruno@clisp.org>
35959
35960         * lib/atanl.c: Don't include isnanl.h.
35961         * lib/cosl.c: Likewise.
35962         * lib/ldexpl.c: Likewise.
35963         * lib/logl.c: Likewise.
35964         * lib/sinl.c: Likewise.
35965         * lib/sqrtl.c: Likewise.
35966         * lib/tanl.c: Likewise.
35967
35968         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
35969         * lib/isnanf.h: Remove file.
35970         * lib/isnand.h: Remove file.
35971         * lib/isnanl.h: Remove file.
35972         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
35973         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
35974         macros.
35975         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
35976         HAVE_ISNANF, don't define it as a C macro.
35977         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
35978         HAVE_ISNAND, don't define it as a C macro.
35979         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
35980         HAVE_ISNANL, don't define it as a C macro.
35981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
35982         HAVE_ISNAN[FDL].
35983         * modules/isnanf (Files): Remove lib/isnanf.h.
35984         (Depends-on): Add math.
35985         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35986         (Include): Specify <math.h> instead of isnanf.h.
35987         * modules/isnand (Files): Remove lib/isnand.h.
35988         (Depends-on): Add math.
35989         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35990         (Include): Specify <math.h> instead of isnand.h.
35991         * modules/isnanl (Files): Remove lib/isnanl.h.
35992         (Depends-on): Add math.
35993         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35994         (Include): Specify <math.h> instead of isnanl.h.
35995         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35996         HAVE_ISNAN[FDL].
35997         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35998         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35999         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36000         * NEWS: Mention the change.
36001
36002 2008-10-18  Bruno Haible  <bruno@clisp.org>
36003
36004         Add getusershell(), setusershell(), endusershell() declarations to
36005         <unistd.h>.
36006         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36007         declarations.
36008         * lib/getusershell.c: Include unistd.h.
36009         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36010         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36011         HAVE_GETUSERSHELL.
36012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36013         and HAVE_GETUSERSHELL.
36014         * modules/getusershell (Depends-on): Add unistd, extensions.
36015         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36016         (Include): Specify <unistd.h>.
36017         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36018         HAVE_GETUSERSHELL.
36019
36020 2008-10-18  Bruno Haible  <bruno@clisp.org>
36021
36022         Add a getloadavg() declaration to <stdlib.h>.
36023         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36024         getloadavg declaration.
36025         (getloadavg): New declaration.
36026         * lib/getloadavg.c: Include <stdlib.h> first.
36027         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36028         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36029         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36031         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36032         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36033         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36034         (Include): Specify <stdlib.h>.
36035         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36036         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36037
36038 2008-10-18  Bruno Haible  <bruno@clisp.org>
36039
36040         * lib/dirchownmod.c: Don't include lchmod.h.
36041
36042         Move the lchmod() declaration to <sys/stat.h>.
36043         * lib/lchmod.h: Remove file.
36044         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36045         (lchmod): New declaration, moved here from lib/lchown.h.
36046         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36047         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36048         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36049         and HAVE_LCHMOD.
36050         * modules/lchmod (Files): Remove lib/lchmod.h.
36051         (Depends-on): Add sys_stat, extensions.
36052         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36053         (Include): Specify <sys/stat.h> instead of lchmod.h.
36054         * modules/sys_stat (Depends-on): Add link-warning.
36055         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36056         definition of GL_LINK_WARNING.
36057         * NEWS: Mention the change.
36058
36059 2008-10-18  Bruno Haible  <bruno@clisp.org>
36060
36061         * lib/fchdir.c: Don't include dirfd.h.
36062         * lib/fts.c: Likewise.
36063         * lib/getcwd.c: Likewise.
36064         * lib/glob.c: Likewise.
36065
36066         Move the dirfd() declaration to <dirent.h>.
36067         * lib/dirfd.h: Remove file.
36068         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36069         (dirfd): New declaration.
36070         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36071         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36072         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36073         HAVE_DECL_DIRFD.
36074         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36075         HAVE_DECL_DIRFD.
36076         * modules/dirfd (Files): Remove lib/dirfd.h.
36077         (Depends-on): Add dirent, extensions.
36078         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36079         (Include): Specify <dirent.h> instead of dirfd.h.
36080         * modules/dirent (Depends-on): Add link-warning.
36081         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36082         definition of GL_LINK_WARNING.
36083         * NEWS: Mention the change.
36084
36085 2008-10-18  Bruno Haible  <bruno@clisp.org>
36086
36087         Move the euidaccess() declaration to <unistd.h>.
36088         * lib/euidaccess.h: Remove file.
36089         * lib/unistd.in.h (euidaccess): New declaration.
36090         * lib/euidaccess.c: Don't include euidaccess.h.
36091         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36092         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36094         and HAVE_EUIDACCESS.
36095         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36096         (Depends-on): Add unistd.
36097         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36098         (Include): Specify <unistd.h> instead of euidaccess.h.
36099         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36100         HAVE_EUIDACCESS.
36101         * NEWS: Mention the change.
36102
36103 2008-10-18  Bruno Haible  <bruno@clisp.org>
36104
36105         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36106
36107         Move the getdomainname() declaration to <unistd.h>.
36108         * lib/getdomainname.h: Remove file.
36109         * lib/unistd.in.h (getdomainname): New declaration.
36110         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36111         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36112         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36113         HAVE_GETDOMAINNAME.
36114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36115         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36116         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36117         (Depends-on): Add unistd, extensions.
36118         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36119         (Includes): Specify <unistd.h> instead of getdomainname.h.
36120         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36121         HAVE_GETDOMAINNAME.
36122         * NEWS: Mention the change.
36123
36124 2008-10-18  Bruno Haible  <bruno@clisp.org>
36125
36126         * modules/dirent: New file.
36127         * m4/dirent_h.m4: New file.
36128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36129         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36130         * modules/fchdir (Files): Remove lib/dirent.in.h.
36131         (Depends-on): Add dirent.
36132         (Makefile.am): Move rules to modules/dirent.
36133         * doc/posix-headers/dirent.texi: Mention the new module.
36134
36135 2008-10-18  Bruno Haible  <bruno@clisp.org>
36136
36137         Avoid -Wunused-parameter warnings in public gnulib header files.
36138         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36139         macro.
36140         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36141
36142 2008-10-18  Bruno Haible  <bruno@clisp.org>
36143
36144         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36145         * doc/glibc-functions/error.texi: Mention the module 'error'.
36146         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36147         * doc/glibc-functions/getdomainname.texi: Mention the module
36148         'getdomainname'.
36149         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36150         * doc/glibc-functions/getpagesize.texi: Mention the module
36151         'getpagesize'.
36152         * doc/glibc-functions/getusershell.texi: Mention the module
36153         'getusershell'.
36154         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36155         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36156         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36157         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36158         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36159         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36160         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36161         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36162         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36163         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36164         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36165         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36166         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36167         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36168
36169 2008-10-17  Bruno Haible  <bruno@clisp.org>
36170
36171         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36172         HP-UX and IRIX, use -0.0L.
36173         * tests/test-ceill.c (minus_zero): Likewise.
36174         * tests/test-floorl.c (minus_zero): Likewise.
36175         * tests/test-frexpl.c (minus_zero): Likewise.
36176         * tests/test-isnan.c (minus_zerol): Likewise.
36177         * tests/test-isnanl.h (minus_zero): Likewise.
36178         * tests/test-ldexpl.c (minus_zero): Likewise.
36179         * tests/test-roundl.c (minus_zero): Likewise.
36180         * tests/test-signbit.c (minus_zerol): Likewise.
36181         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36182         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36183         * tests/test-truncl.c (minus_zero): Likewise.
36184         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36185         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36186         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36187         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36188
36189 2008-10-17  Bruno Haible  <bruno@clisp.org>
36190
36191         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36192         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36193         that it gets activated only for gcc >= 3.0.
36194         * lib/dirent.in.h: Likewise.
36195         * lib/errno.in.h: Likewise.
36196         * lib/fcntl.in.h: Likewise.
36197         * lib/float.in.h: Likewise.
36198         * lib/iconv.in.h: Likewise.
36199         * lib/inttypes.in.h: Likewise.
36200         * lib/locale.in.h: Likewise.
36201         * lib/math.in.h: Likewise.
36202         * lib/netdb.in.h: Likewise.
36203         * lib/netinet_in.in.h: Likewise.
36204         * lib/search.in.h: Likewise.
36205         * lib/signal.in.h: Likewise.
36206         * lib/spawn.in.h: Likewise.
36207         * lib/stdarg.in.h: Likewise.
36208         * lib/stdint.in.h: Likewise.
36209         * lib/stdio.in.h: Likewise.
36210         * lib/stdlib.in.h: Likewise.
36211         * lib/string.in.h: Likewise.
36212         * lib/strings.in.h: Likewise.
36213         * lib/sys_file.in.h: Likewise.
36214         * lib/sys_ioctl.in.h: Likewise.
36215         * lib/sys_select.in.h: Likewise.
36216         * lib/sys_socket.in.h: Likewise.
36217         * lib/sys_stat.in.h: Likewise.
36218         * lib/sys_time.in.h: Likewise.
36219         * lib/sysexits.in.h: Likewise.
36220         * lib/time.in.h: Likewise.
36221         * lib/unistd.in.h: Likewise.
36222         * lib/wchar.in.h: Likewise.
36223         * lib/wctype.in.h: Likewise.
36224         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36225
36226 2008-10-17  Jim Meyering  <meyering@redhat.com>
36227
36228         ignore-value: don't depend on inline module
36229         * modules/ignore-value (Depends-on): Remove 'inline'.
36230         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36231         Suggestion from Bruno Haible.
36232
36233 2008-10-17  Bruno Haible  <bruno@clisp.org>
36234
36235         New implementation of condition variables for Win32.
36236         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36237         (gl_linked_waitqueue_t): New type.
36238         (gl_cond_t): Use it.
36239         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36240         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36241         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36242         (glthread_cond_init_func, glthread_cond_wait_func,
36243         glthread_cond_timedwait_func, glthread_cond_signal_func,
36244         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36245         Reimplemented on the basis of gl_linked_waitqueue_t.
36246         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36247         gl_waitqueue_t.
36248         (gl_rwlock_t): Update.
36249         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36250
36251 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36252
36253         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36254         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36255
36256 2008-10-17  Jim Meyering  <meyering@redhat.com>
36257
36258         ignore-value: new module
36259         * modules/ignore-value: New file.
36260         * lib/ignore-value.h: New file.
36261         * MODULES.html.sh (Compiler warning management): New section,
36262         just for this module.  More to come.
36263
36264 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36265
36266         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36267         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36268         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36269
36270 2008-10-16  Jim Meyering  <meyering@redhat.com>
36271
36272         openat-die.c: avoid 'no previous prototype' warning
36273         * lib/openat-die.c: Include "openat.h".
36274         Reported by Reuben Thomas <rrt@sc3d.org>.
36275
36276 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36277
36278         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36279         * lib/netdb.in.h: Fix typo.
36280         Reported by Bruno Haible  <bruno@clisp.org>
36281
36282         * lib/netdb.in.h: Include sys/socket.h for platforms without
36283         netdb.h, to get structures like hostent on MinGW.
36284         * modules/netdb (Depends-on): Add sys_socket.
36285
36286 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36287
36288         * modules/netdb, modules/netdb-tests: New file.
36289         * m4/netdb_h.m4: New file.
36290         * lib/netdb.in.h: Add, currently just an empty file pending
36291         definitions.
36292         * tests/test-netdb.c: New file.
36293         * doc/posix-headers/netdb.texi: Mention that we replace it if
36294         needed.
36295         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36296         netdb.
36297
36298 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36299
36300         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36301         with code.
36302
36303 2008-10-13  Bruno Haible  <bruno@clisp.org>
36304
36305         * lib/glthread/cond.c (glthread_cond_wait_func,
36306         glthread_cond_timedwait_func): Add a comment.
36307
36308 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36309
36310         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36311         * tests/test-select.c: Likewise,
36312
36313 2008-10-13  Bruno Haible  <bruno@clisp.org>
36314
36315         * lib/glthread/cond.c (glthread_cond_wait_func,
36316         glthread_cond_timedwait_func): Fix variable name.
36317         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36318
36319 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36320
36321         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36322         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36323         struct sockaddr.sa_len.
36324         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36325
36326 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36327
36328         * build-aux/pmccabe2html: Add css and css_url parameters.
36329
36330 2008-10-12  Bruno Haible  <bruno@clisp.org>
36331
36332         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36333         calling aclx_get.
36334         Reported by Rainer Tammer <tammer@tammer.net>.
36335
36336 2008-10-12  Bruno Haible  <bruno@clisp.org>
36337
36338         Use msvcrt aware primitives for creation/termination of Win32 threads.
36339         * lib/glthread/thread.c: Include <process.h>.
36340         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36341         (wrapper_func): Update signature.
36342         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36343
36344 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36345             Bruno Haible  <bruno@clisp.org>
36346
36347         Provide a Win32 implementation of the 'cond' module.
36348         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36349         * lib/glthread/cond.c (glthread_cond_init_func,
36350         glthread_cond_wait_func, glthread_cond_timedwait_func,
36351         glthread_cond_signal_func, glthread_cond_broadcast_func,
36352         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36353         * modules/cond (Dependencies): Add gettimeofday.
36354
36355 2008-10-11  Bruno Haible  <bruno@clisp.org>
36356
36357         Make sleep work on older versions of mingw.
36358         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36359         only whether it exists.
36360         * doc/posix-functions/sleep.texi: Mention the problem with older
36361         versions of mingw.
36362
36363 2008-10-11  Bruno Haible  <bruno@clisp.org>
36364
36365         New module 'shutdown'.
36366         * modules/shutdown: New file.
36367         * lib/sys_socket.in.h (shutdown): New declaration.
36368         * lib/winsock.c (shutdown): New function.
36369         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36370         GNULIB_SHUTDOWN.
36371         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36372         * doc/posix-functions/shutdown.texi: Document the new module.
36373
36374 2008-10-11  Jim Meyering  <meyering@redhat.com>
36375
36376         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36377
36378 2008-10-11  Bruno Haible  <bruno@clisp.org>
36379
36380         New module 'fclose'.
36381         * modules/fclose: New file.
36382         * lib/stdio.in.h (fclose): New declaration.
36383         * lib/fclose.c: New file.
36384         * m4/fclose.m4: New file.
36385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36386         REPLACE_FCLOSE.
36387         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36388         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36389         REPLACE_FCLOSE.
36390         * modules/close (Depends-on): fclose.
36391         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36392
36393 2008-10-11  Bruno Haible  <bruno@clisp.org>
36394
36395         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36396         set errno and don't call _close.
36397
36398 2008-10-10  Bruno Haible  <bruno@clisp.org>
36399
36400         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36401         ACL, not afterwards. Fixes test failure on Cygwin.
36402
36403 2008-10-09  Ben Pfaff  <blp@gnu.org>
36404
36405         * build-aux/announce-gen: Fix gnulib version related part of usage
36406         message.  Die with a useful error message if no tarballs are
36407         found.
36408
36409 2008-10-10  Jim Meyering  <meyering@redhat.com>
36410
36411         bootstrap: use git's --depth=N option only if it's supported
36412         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36413         recognize the --depth option.  Reported by Pádraig Brady.
36414
36415 2008-10-09  Bruno Haible  <bruno@clisp.org>
36416
36417         New module 'ioctl'.
36418         * modules/ioctl: New file.
36419         * lib/sys_socket.in.h (ioctl): Remove declaration.
36420         * lib/winsock.c: Include <sys/ioctl.h>.
36421         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36422         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36423         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36424         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36425         * doc/posix-functions/ioctl.texi: Mention the new module.
36426
36427 2008-10-09  Bruno Haible  <bruno@clisp.org>
36428
36429         New module 'sys_ioctl'.
36430         * lib/sys_ioctl.in.h: New file.
36431         * m4/sys_ioctl_h.m4: New file.
36432         * modules/sys_ioctl: New file.
36433         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36434
36435 2008-10-09  Bruno Haible  <bruno@clisp.org>
36436
36437         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36438         * lib/winsock.c: Include <stdarg.h>.
36439         (rpl_ioctl): Change to second argument 'int' and then varargs.
36440
36441 2008-10-09  Bruno Haible  <bruno@clisp.org>
36442
36443         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36444         when the sys_socket module is present and the system has <winsock2.h>.
36445
36446 2008-10-09  Bruno Haible  <bruno@clisp.org>
36447
36448         * doc/posix-functions/close.texi: Mention module 'close' instead of
36449         module 'sys_socket'.
36450
36451 2008-10-09  Bruno Haible  <bruno@clisp.org>
36452
36453         * doc/glibc-headers/sys_ioctl.texi: New file.
36454         * doc/gnulib.texi: Include it.
36455
36456 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36457             Bruno Haible  <bruno@clisp.org>
36458
36459         Combine the two replacements of 'close'.
36460         * lib/sys_socket.in.h (close): Define to a reminder to include
36461         <unistd.h>.
36462         (_gl_close_fd_maybe_socket): New declaration.
36463         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
36464         * lib/winsock.c (close): Remove undefinition.
36465         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
36466         needed for the gnulib module 'close'.
36467         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
36468         define to an error symbol or to a warning, if suitable.
36469         * lib/close.c: Include <sys/socket.h>.
36470         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
36471         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
36472         UNISTD_H_HAVE_WINSOCK2_H.
36473         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
36474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36475         UNISTD_H_HAVE_WINSOCK2_H.
36476         * modules/sys_socket (Files): Add m4/unistd_h.m4.
36477         (configure.ac): Set a module indicator.
36478         (Makefile.am): Substitute GNULIB_CLOSE.
36479         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
36480         * modules/poll-tests (Depends-on): Add close.
36481         * modules/select-tests (Depends-on): Likewise.
36482
36483 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36484             Bruno Haible  <bruno@clisp.org>
36485
36486         New module 'close'.
36487         * modules/close: New file.
36488         * lib/unistd.in.h (close): Move declaration out of the
36489         FCHDIR_REPLACEMENT scope.
36490         (_gl_unregister_fd): New declaration.
36491         * lib/close.c: New file.
36492         * lib/fchdir.c (rpl_close): Remove function.
36493         * m4/close.m4: New file.
36494         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36495         close.
36496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
36497         REPLACE_CLOSE.
36498         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
36499         REPLACE_CLOSE.
36500         * modules/fchdir (Depends-on): Add close.
36501
36502 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36503             Bruno Haible  <bruno@clisp.org>
36504
36505         * lib/fcntl.in.h (open): Simplify conditionals.
36506         (_gl_register_fd): New declaration.
36507         * lib/fchdir.c (rpl_open): Remove function.
36508         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
36509         also.
36510         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
36511         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36512         open.
36513
36514 2008-10-09  Jim Meyering  <meyering@redhat.com>
36515
36516         GNUmakefile: use the more name-space-friendly "_version"
36517         * top/GNUmakefile (_dummy): Update.
36518         (_version): Rename from "version".
36519
36520 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36521             Bruno Haible  <bruno@clisp.org>
36522
36523         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
36524         rpl_close.
36525         (_gl_register_fd): New function, extracted from rpl_open.
36526         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
36527         (rpl_open, rpl_opendir): Use _gl_register_fd.
36528
36529 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36530
36531         Fix organization of 'open' replacement.
36532         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
36533         (gl_FUNC_OPEN): Use it.
36534         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
36535
36536 2008-10-08  Bruno Haible  <bruno@clisp.org>
36537
36538         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
36539
36540 2008-10-08  Simon Josefsson  <simon@josefsson.org>
36541
36542         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
36543         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
36544         listen).
36545
36546 2008-10-08  Eric Blake  <ebb9@byu.net>
36547
36548         GNUmakefile: add 'make version' target
36549         * top/GNUmakefile (_curr-ver): Split version update rules...
36550         (version): ...into a target.
36551
36552 2008-10-07  Bruno Haible  <bruno@clisp.org>
36553
36554         Use a more portable replacement expression for -0.0L.
36555         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
36556         instead of -0.0L. Fix m4 quotation.
36557
36558         * tests/test-signbit.c: Include <float.h>.
36559         (minus_zero): New variable.
36560         (test_signbitl): Use minus_zero instead of -zero.
36561         * modules/signbit-tests (Depends-on): Add float.
36562
36563         * tests/test-ceill.c: Include <float.h>.
36564         (zero): Remove variable.
36565         (minus_zero): New variable.
36566         (main): Use minus_zero instead of -zero.
36567         * modules/ceill-tests (Depends-on): Add float.
36568
36569         * tests/test-floorl.c: Include <float.h>.
36570         (zero): Remove variable.
36571         (minus_zero): New variable.
36572         (main): Use minus_zero instead of -zero.
36573         * modules/floorl-tests (Depends-on): Add float.
36574
36575         * tests/test-roundl.c: Include <float.h>.
36576         (zero): Remove variable.
36577         (minus_zero): New variable.
36578         (main): Use minus_zero instead of -zero.
36579         * modules/roundl-tests (Depends-on): Add float.
36580
36581         * tests/test-truncl.c: Include <float.h>.
36582         (zero): Remove variable.
36583         (minus_zero): New variable.
36584         (main): Use minus_zero instead of -zero.
36585         * modules/truncl-tests (Depends-on): Add float.
36586
36587         * tests/test-frexpl.c (zero): Remove variable.
36588         (minus_zero): New variable.
36589         (main): Use minus_zero instead of -zero.
36590         * modules/frexpl-tests (Depends-on): Add float.
36591
36592         * tests/test-isnan.c (zerol): Remove variable.
36593         (minus_zerol): New variable.
36594         (test_long_double): Use minus_zerol instead of -zerol.
36595         * modules/isnan-tests (Depends-on): Add float.
36596
36597         * tests/test-isnanl.h (zero): Remove variable.
36598         (minus_zero): New variable.
36599         (main): Use minus_zero instead of -zero.
36600         * modules/isnanl-nolibm-tests (Depends-on): Add float.
36601         * modules/isnanl-tests (Depends-on): Add float.
36602
36603         * tests/test-ldexpl.c (zero): Remove variable.
36604         (minus_zero): New variable.
36605         (main): Use minus_zero instead of -zero.
36606         * modules/ldexpl-tests (Depends-on): Add float.
36607
36608         * tests/test-snprintf-posix.h (zerol): Remove variable.
36609         (minus_zerol): New variable.
36610         (test_function): Use minus_zerol instead of -zerol.
36611         * modules/snprintf-posix-tests (Depends-on): Add float.
36612         * modules/vsnprintf-posix-tests (Depends-on): Add float.
36613
36614         * tests/test-sprintf-posix.h (zerol): Remove variable.
36615         (minus_zerol): New variable.
36616         (test_function): Use minus_zerol instead of -zerol.
36617         * modules/sprintf-posix-tests (Depends-on): Add float.
36618         * modules/vsprintf-posix-tests (Depends-on): Add float.
36619
36620         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
36621         (minus_zerol): New variable.
36622         (test_function): Use minus_zerol instead of -zerol.
36623         * modules/vasnprintf-posix-tests (Depends-on): Add float.
36624
36625         * tests/test-vasprintf-posix.c (zerol): Remove variable.
36626         (minus_zerol): New variable.
36627         (test_function): Use minus_zerol instead of -zerol.
36628         * modules/vasprintf-posix-tests (Depends-on): Add float.
36629
36630 2008-10-07  Simon Josefsson  <simon@josefsson.org>
36631
36632         * MODULES.html.sh (Support for building documentation): Mention
36633         pmccabe2html.  Sort entries.
36634
36635         Add pmccabe2html module, from gnupdf.
36636         * build-aux/pmccabe.css: New file.
36637         * build-aux/pmccabe2html: New file.
36638         * m4/pmccabe2html.m4: New file.
36639         * modules/pmccabe2html: New file.
36640
36641 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36642
36643         flock: new module
36644         * MODULES.html.sh: Add to list of modules.
36645         * lib/flock.c: flock implementation for Windows and Unix systems
36646         which have fcntl.
36647         * doc/glibc-functions/flock.texi: Update documentation.
36648         * lib/sys_file.in.h: <sys/file.h> header file.
36649         * m4/flock.m4: M4 macros.
36650         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36651         * modules/flock: flock module.
36652         * modules/flock-tests: flock tests module.
36653         * modules/sys_file: sys/file.h module.
36654         * tests/test-flock.c: test suite for flock.
36655
36656 2008-10-06  Jim Meyering  <meyering@redhat.com>
36657
36658         bootstrap: check for LT_INIT more portably still ;-)
36659         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36660         Spotted by Bruno Haible.
36661
36662 2008-10-06  Eric Blake  <ebb9@byu.net>
36663
36664         test-signbit: avoid tripping Irix cc bug on -0.0L
36665         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36666         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36667         entire testsuite consistent and avoids an Irix 6.2 bug.
36668
36669 2008-10-05  Bruno Haible  <bruno@clisp.org>
36670             Jim Meyering  <jim@meyering.net>
36671
36672         Add an option for ignoring EPIPE during close_stdout.
36673         * lib/closeout.h: Include <stdbool.h>.
36674         (close_stdout_set_ignore_EPIPE): New declaration.
36675         * lib/closeout.c: Include <stdbool.h>.
36676         (ignore_EPIPE): New variable.
36677         (close_stdout_set_ignore_EPIPE): New function.
36678         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36679         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36680         failure.
36681         * modules/closeout (Depends-on): Add stdbool.
36682
36683 2008-10-05  Bruno Haible  <bruno@clisp.org>
36684
36685         * modules/accept: New file.
36686         * modules/bind: New file.
36687         * modules/connect: New file.
36688         * modules/getpeername: New file.
36689         * modules/getsockname: New file.
36690         * modules/getsockopt: New file.
36691         * modules/listen: New file.
36692         * modules/recv: New file.
36693         * modules/recvfrom: New file.
36694         * modules/send: New file.
36695         * modules/sendto: New file.
36696         * modules/setsockopt: New file.
36697         * modules/socket: New file.
36698         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36699         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36700         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36701         the particular module is requested. Add a link warning when the
36702         particular module is not requested.
36703         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36704         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36705         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36706         the particular module is requested.
36707         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36708         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36709         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36710         * modules/sys_socket (Depends-on): Add link-warning.
36711         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36712         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36713         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36714         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36715         GL_LINK_WARNING.
36716         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36717         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36718         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36719         * doc/posix-functions/getpeername.texi: Mention the new module
36720         'getpeername'.
36721         * doc/posix-functions/getsockname.texi: Mention the new module
36722         'getsockname'.
36723         * doc/posix-functions/getsockopt.texi: Mention the new module
36724         'getsockopt'.
36725         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36726         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36727         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36728         * doc/posix-functions/send.texi: Mention the new module 'send'.
36729         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36730         * doc/posix-functions/setsockopt.texi: Mention the new module
36731         'setsockopt'.
36732         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36733         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36734         listen, connect, accept.
36735         * modules/select-tests (Depends-on): Likewise.
36736
36737 2008-10-05  Bruno Haible  <bruno@clisp.org>
36738
36739         * lib/winsock.c (strerror): Remove unused #undef.
36740         (rpl_close): Remove unused local variable.
36741
36742         * modules/sys_socket (Depends-on); Add errno.
36743
36744 2008-10-05  Bruno Haible  <bruno@clisp.org>
36745
36746         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
36747         (select): Add a link warning when the 'select' module is not used.
36748         * modules/sys_select (Depends-on): Add link-warning.
36749         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
36750         Suggested by Paolo Bonzini.
36751
36752 2008-10-05  Jim Meyering  <meyering@redhat.com>
36753
36754         bootstrap: check for LT_INIT more portably
36755         * build-aux/bootstrap: Avoid using grep -E, since it's not
36756         portable enough.  Suggestion from Bruno Haible.
36757
36758 2008-10-05  Bruno Haible  <bruno@clisp.org>
36759
36760         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
36761         as being fixed by gnulib.
36762
36763 2008-10-05  Bruno Haible  <bruno@clisp.org>
36764
36765         * modules/select-tests: New file, mostly copied from
36766         modules/sys_select-tests.
36767         * tests/test-select.c: New file, mostly copied from
36768         tests/test-sys_select.c.
36769         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
36770         * modules/sys_select-tests (Depends-on): Remove all dependencies.
36771         (Makefile.am): Remove test_sys_select_LDADD.
36772
36773         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
36774         to an undefined symbol, for an error message.
36775         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
36776         (gl_SYS_SELECT_H_DEFAULTS): New macro.
36777         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
36778         winsock-select.c here.
36779         * modules/sys_select (Files): Remove lib/winsock-select.c.
36780         (Depends-on): Remove alloca.
36781         (Makefile.am): Substitute GNULIB_SELECT.
36782         * modules/select: New file.
36783         * doc/posix-functions/select.texi: Update.
36784
36785 2008-10-05  Bruno Haible  <bruno@clisp.org>
36786
36787         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
36788         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
36789         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
36790         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
36791         getdtablesize.
36792         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36793         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36794
36795 2008-10-05  Bruno Haible  <bruno@clisp.org>
36796
36797         * modules/getdtablesize-tests: New file.
36798         * tests/test-getdtablesize.c: New file.
36799
36800         New module 'getdtablesize'.
36801         * lib/unistd.in.h (getdtablesize): New declaration.
36802         * lib/getdtablesize.c: New file.
36803         * m4/getdtablesize.m4: New file.
36804         * modules/getdtablesize: New file.
36805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36806         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
36807         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
36808         HAVE_GETDTABLESIZE.
36809         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
36810
36811 2008-10-05  Bruno Haible  <bruno@clisp.org>
36812
36813         * modules/sched (Makefile.am): Fix typo.
36814         Reported by Simon Josefsson.
36815
36816 2008-10-05  Jim Meyering  <meyering@redhat.com>
36817
36818         bootstrap: check for LT_INIT, too
36819         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
36820         are deprecated.  Suggestion from Ralf Wildenhues.
36821
36822 2008-10-05  Bruno Haible  <bruno@clisp.org>
36823
36824         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
36825         overriding them by ours.
36826         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
36827
36828 2008-10-05  Jim Meyering  <meyering@redhat.com>
36829
36830         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
36831         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
36832         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
36833
36834 2008-10-04  Bruno Haible  <bruno@clisp.org>
36835
36836         * modules/dup2 (License): Change to LGPLv2+.
36837         * modules/sleep (License): Likewise.
36838         * modules/perror (License): Likewise.
36839         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
36840         Blake.
36841         * modules/signal (License): Likewise.
36842         * modules/sigprocmask (License): Likewise.
36843         * modules/raise (License): Change to LGPLv2+, with approval by Jim
36844         Meyering.
36845
36846 2008-10-04  Bruno Haible  <bruno@clisp.org>
36847
36848         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
36849         Reported by Rainer Tammer <tammer@tammer.net>.
36850
36851 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
36852             Bruno Haible  <bruno@clisp.org>
36853
36854         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
36855         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
36856         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
36857
36858 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
36859
36860         filevercmp: new module
36861         * lib/filevercmp.h: New function filevercmp comparing version strings.
36862         * lib/filevercmp.c: Implementation of filevercmp function.
36863         * modules/filevercmp: Module metadata.
36864         * tests/test-filevercmp.c: Unit test for new module.
36865         * modules/filevercmp-tests: Unit test metadata.
36866         * MODULES.html.sh: Add filevercmp module.
36867
36868 2008-10-03  Bruno Haible  <bruno@clisp.org>
36869
36870         * lib/c-ctype.h: Add comment.
36871         Reported by Jim Meyering.
36872
36873 2008-10-02  Bruno Haible  <bruno@clisp.org>
36874
36875         * modules/posix_spawn-internal (Depends-on): Add 'open'.
36876
36877 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36878
36879         * build-aux/bootstrap: Allow renaming bootstrap, and change the
36880         name of bootstrap.conf accordingly.
36881
36882 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36883
36884         * build-aux/bootstrap: Install git-merge-changelog configuration
36885         items into .gitconfig if needed.
36886
36887 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36888
36889         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
36890         git repository, and initialize/update it accordingly.
36891
36892 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
36893
36894         * modules/fsync-tests: New file.
36895         * tests/test-fsync.c: New file.
36896
36897         New module 'fsync'.
36898         * lib/fsync.c: New file.
36899         * m4/fsync.m4: New file.
36900         * modules/fsync: New file.
36901         * lib/unistd.in.h (fsync): New declaration.
36902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
36903         GNULIB_FSYNC and HAVE_FSYNC.
36904         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
36905         * MODULES.html.sh (posix_functions): Add fsync.
36906         * doc/posix-functions/fsync.texi: Mention the new module.
36907
36908 2008-10-02  Jim Meyering  <meyering@redhat.com>
36909
36910         fts.c: sync with similar code from coreutils' remove.c
36911         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
36912         Guard also with "#if defined __linux__", since for now at least,
36913         this code is Linux-kernel-specific.
36914
36915 2008-10-02  Jim Meyering  <meyering@redhat.com>
36916
36917         fts: bug fixes
36918         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
36919         Include <sys/vfs.h>, not <sys/statfs.h>.
36920
36921         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
36922         Include <sys/vfs.h>, not <sys/statfs.h>.
36923
36924 2008-10-01  Bruno Haible  <bruno@clisp.org>
36925
36926         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
36927         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
36928         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
36929         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
36930         * doc/posix-functions/posix_spawnp.texi: Likewise.
36931         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
36932         whether posix_spawn actually works.
36933         * m4/pipe.m4 (gl_PIPE): Likewise.
36934         * modules/execute (Files): Add m4/posix_spawn.m4.
36935         * modules/pipe (Files): Add m4/posix_spawn.m4.
36936         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
36937
36938 2008-10-01  Jim Meyering  <meyering@redhat.com>
36939
36940         remove trailing spaces
36941         * NEWS: Likewise.
36942         * lib/poll.c (poll): Likewise.
36943         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
36944         * lib/winsock.c (rpl_close): Likewise.
36945         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
36946         * modules/yield: Likewise.
36947         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
36948         * tests/test-sys_select.c (connect_to_socket): Likewise.
36949
36950         fts.c: adjust a new interface to be more generally useful
36951         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
36952         (fts_build): Adjust caller.
36953
36954 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36955
36956         * modules/cond-tests: New file.
36957         * tests/test-cond.c: New file.
36958
36959 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36960             Bruno Haible  <bruno@clisp.org>
36961
36962         * modules/cond (Dependencies): Add errno, time.
36963         * lib/glthread/cond.h: Include <time.h>.
36964         (gl_cond_define, gl_cond_define_initialized): Use the same definition
36965         across platforms.
36966
36967 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36968             Bruno Haible  <bruno@clisp.org>
36969
36970         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
36971
36972 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36973             Bruno Haible  <bruno@clisp.org>
36974
36975         * modules/tls-tests (Depends-on): Add thread, yield.
36976         (configure.ac): Remove all checks.
36977         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
36978         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36979         gl_thread_self): Remove definitions. Include glthread/thread.h and
36980         glthread/yield.h instead.
36981         (test_tls): Pass an additional NULL argument to gl_thread_join.
36982
36983 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36984             Bruno Haible  <bruno@clisp.org>
36985
36986         * modules/lock-tests (Depends-on): Add thread, yield.
36987         (configure.ac): Remove all checks.
36988         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36989         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36990         gl_thread_self): Remove definitions. Include glthread/thread.h and
36991         glthread/yield.h instead.
36992         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36993         additional NULL argument to gl_thread_join.
36994
36995 2008-09-30  Bruno Haible  <bruno@clisp.org>
36996
36997         Fix the Win32 implementation of the 'thread' module.
36998         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36999         pointer type.
37000         (gl_thread_self): Invoke gl_thread_self_func.
37001         (gl_thread_self_func): New declaration.
37002         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37003         (do_init_self_key, init_self_key): New functions.
37004         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37005         Remove some fields.
37006         (running_threads, running_lock): Remove variables.
37007         (get_current_thread_handle): New function.
37008         (gl_thread_self_func, wrapper_func, glthread_create_func,
37009         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37010         simplified.
37011
37012 2008-09-30  Bruno Haible  <bruno@clisp.org>
37013
37014         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37015         files.
37016
37017 2008-09-30  Jim Meyering  <meyering@redhat.com>
37018
37019         fts.m4: correct the test for statfs.f_type
37020         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37021         when checking for statfs.f_type.
37022
37023 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37024
37025         tests: avoid some compiler warnings
37026         * tests/test-memchr.c (main): Pass NULL indirectly.
37027         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37028
37029 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37030
37031         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37032         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37033         exactly specified dayshifts.
37034         (dayshift): New rule.
37035         (rel): Add dayshift.
37036         (relative_time_table) [tomorrow, yesterday, today, now]:
37037         Use tDAY_SHIFT in place of tDAY_UNIT.
37038         * tests/test-getdate.c: Add tests for now-disallowed countable
37039         dayshifts, e.g., "4 yesterday ago".
37040
37041 2008-09-29  Bruno Haible  <bruno@clisp.org>
37042
37043         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37044         * tests/test-posix_spawn1.in.sh: Renamed from
37045         tests/test-posix_spawn.in.sh.
37046         * tests/test-posix_spawn2.c: New file.
37047         * tests/test-posix_spawn2.in.sh: New file.
37048         * modules/posix_spawnp-tests (Files): Update.
37049         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37050
37051 2008-09-29  Bruno Haible  <bruno@clisp.org>
37052
37053         Propagate effects of putenv/setenv/unsetenv to child processes.
37054         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37055         * lib/pipe.c (create_pipe): Likewise.
37056
37057 2008-09-29  Bruno Haible  <bruno@clisp.org>
37058
37059         Enable use of shell scripts as executables in mingw.
37060         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37061         run the program as a shell script.
37062         * lib/pipe.c (create_pipe): Likewise.
37063         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37064         resulting array.
37065
37066 2008-09-29  Eric Blake  <ebb9@byu.net>
37067
37068         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37069
37070 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37071
37072         * doc/posix-functions/accept.texi: Update mingw problems.
37073         * doc/posix-functions/bind.texi: Update mingw problems.
37074         * doc/posix-functions/close.texi: Update mingw problems.
37075         * doc/posix-functions/connect.texi: Update mingw problems.
37076         * doc/posix-functions/getpeername.texi: Update mingw problems.
37077         * doc/posix-functions/getsockname.texi: Update mingw problems.
37078         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37079         * doc/posix-functions/ioctl.texi: Update mingw problems.
37080         * doc/posix-functions/listen.texi: Update mingw problems.
37081         * doc/posix-functions/recv.texi: Update mingw problems.
37082         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37083         * doc/posix-functions/select.texi: Update mingw problems.
37084         * doc/posix-functions/send.texi: Update mingw problems.
37085         * doc/posix-functions/sendto.texi: Update mingw problems.
37086         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37087         * doc/posix-functions/socket.texi: Update mingw problems.
37088
37089 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37090             Bruno Haible  <bruno@clisp.org>
37091
37092         * lib/sys_select.in.h: Include sys/time.h.
37093         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37094         * modules/sys_select: Depend on sys_time.
37095         * tests/test-sys_select.c: Test that sys/select.h defines struct
37096         timeval fully.
37097
37098 2008-09-29  Bruno Haible  <bruno@clisp.org>
37099
37100         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37101         * lib/sys_select.in.h: Likewise.
37102
37103 2008-09-29  Bruno Haible  <bruno@clisp.org>
37104
37105         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37106
37107 2008-09-29  Bruno Haible  <bruno@clisp.org>
37108
37109         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37110         Set LIBSOCKET instead of augmenting LIBS.
37111         * modules/sockets (Link): New section.
37112         * modules/sockets-tests (test_sockets_LDADD): New variable.
37113         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37114         * modules/poll-tests (test_poll_LDADD): New variable.
37115         * NEWS: Document the change.
37116
37117 2008-09-29  Bruno Haible  <bruno@clisp.org>
37118
37119         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37120         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37121         ARPA_INET_H directly.
37122         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37123
37124 2008-09-28  Bruno Haible  <bruno@clisp.org>
37125
37126         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37127         from gl_HEADER_SYS_SOCKET.
37128         (gl_HEADER_SYS_SOCKET): Invoke it.
37129         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37130
37131 2008-09-28  Bruno Haible  <bruno@clisp.org>
37132
37133         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37134         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37135         Needed on OSF/1 4.0.
37136
37137 2008-09-28  Bruno Haible  <bruno@clisp.org>
37138
37139         Override open more carefully.
37140         * lib/open.c (orig_open): New function.
37141         (rpl_open): Use orig_open instead of open.
37142         * lib/fcntl.in.h: Add special invocation convention.
37143         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37144         (gl_FUNC_OPEN): Invoke it.
37145
37146         Override freopen more carefully.
37147         * lib/freopen.c (orig_freopen): New function.
37148         (rpl_freopen): Use orig_freopen instead of freopen.
37149         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37150         (gl_FUNC_FREOPEN): Invoke it.
37151
37152         Override fopen more carefully.
37153         * lib/fopen.c (orig_fopen): New function.
37154         (rpl_fopen): Use orig_fopen instead of fopen.
37155         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37156         (gl_FUNC_FOPEN): Invoke it.
37157         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37158
37159 2008-09-28  Bruno Haible  <bruno@clisp.org>
37160
37161         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37162         SIGPIPE.
37163
37164 2008-09-28  Bruno Haible  <bruno@clisp.org>
37165
37166         * tests/test-sigaction.c (handler, main): Disable the check whether
37167         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37168         glibc systems with LinuxThreads.
37169
37170 2008-09-28  Bruno Haible  <bruno@clisp.org>
37171
37172         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37173
37174         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37175         with AIX xlc.
37176         * lib/fcntl.in.h (open): Likewise.
37177         Reported by Rainer Tammer <tammer@tammer.net>.
37178
37179 2008-09-28  Bruno Haible  <bruno@clisp.org>
37180
37181         * modules/posix_spawnp-tests: New file.
37182         * tests/test-posix_spawn.c: New file.
37183         * tests/test-posix_spawn.in.sh: New file.
37184
37185         New module 'posix_spawnp'.
37186         * modules/posix_spawnp: New file.
37187         * lib/spawnp.c: New file, from GNU libc with modifications.
37188         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37189
37190         New module 'posix_spawn'.
37191         * modules/posix_spawn: New file.
37192         * lib/spawn.c: New file, from GNU libc with modifications.
37193         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37194
37195         New module 'posix_spawnattr_destroy'.
37196         * modules/posix_spawnattr_destroy: New file.
37197         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37198         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37199         module.
37200
37201         New module 'posix_spawnattr_setsigmask'.
37202         * modules/posix_spawnattr_setsigmask: New file.
37203         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37204         modifications.
37205         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37206         new module.
37207
37208         New module 'posix_spawnattr_getsigmask'.
37209         * modules/posix_spawnattr_getsigmask: New file.
37210         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37211         modifications.
37212         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37213         new module.
37214
37215         New module 'posix_spawnattr_setsigdefault'.
37216         * modules/posix_spawnattr_setsigdefault: New file.
37217         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37218         modifications.
37219         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37220         new module.
37221
37222         New module 'posix_spawnattr_getsigdefault'.
37223         * modules/posix_spawnattr_getsigdefault: New file.
37224         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37225         modifications.
37226         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37227         new module.
37228
37229         New module 'posix_spawnattr_setschedpolicy'.
37230         * modules/posix_spawnattr_setschedpolicy: New file.
37231         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37232         modifications.
37233         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37234         new module.
37235
37236         New module 'posix_spawnattr_getschedpolicy'.
37237         * modules/posix_spawnattr_getschedpolicy: New file.
37238         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37239         modifications.
37240         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37241         new module.
37242
37243         New module 'posix_spawnattr_setschedparam'.
37244         * modules/posix_spawnattr_setschedparam: New file.
37245         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37246         modifications.
37247         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37248         new module.
37249
37250         New module 'posix_spawnattr_getschedparam'.
37251         * modules/posix_spawnattr_getschedparam: New file.
37252         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37253         modifications.
37254         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37255         new module.
37256
37257         New module 'posix_spawnattr_setpgroup'.
37258         * modules/posix_spawnattr_setpgroup: New file.
37259         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37260         modifications.
37261         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37262         module.
37263
37264         New module 'posix_spawnattr_getpgroup'.
37265         * modules/posix_spawnattr_getpgroup: New file.
37266         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37267         modifications.
37268         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37269         module.
37270
37271         New module 'posix_spawnattr_setflags'.
37272         * modules/posix_spawnattr_setflags: New file.
37273         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37274         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37275         module.
37276
37277         New module 'posix_spawnattr_getflags'.
37278         * modules/posix_spawnattr_getflags: New file.
37279         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37280         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37281         module.
37282
37283         New module 'posix_spawnattr_init'.
37284         * modules/posix_spawnattr_init: New file.
37285         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37286         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37287         module.
37288
37289         New module 'posix_spawn_file_actions_destroy'.
37290         * modules/posix_spawn_file_actions_destroy: New file.
37291         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37292         modifications.
37293         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37294         the new module.
37295
37296         New module 'posix_spawn_file_actions_addopen'.
37297         * modules/posix_spawn_file_actions_addopen: New file.
37298         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37299         modifications.
37300         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37301         the new module.
37302
37303         New module 'posix_spawn_file_actions_adddup2'.
37304         * modules/posix_spawn_file_actions_adddup2: New file.
37305         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37306         modifications.
37307         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37308         the new module.
37309
37310         New module 'posix_spawn_file_actions_addclose'.
37311         * modules/posix_spawn_file_actions_addclose: New file.
37312         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37313         modifications.
37314         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37315         the new module.
37316
37317         New module 'posix_spawn_file_actions_init'.
37318         * modules/posix_spawn_file_actions_init: New file.
37319         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37320         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37321         new module.
37322
37323         New module 'posix_spawn-internal'.
37324         * modules/posix_spawn-internal: New file.
37325         * lib/spawn_int.h: New file, from GNU libc with modifications.
37326         * lib/spawni.c: New file, from GNU libc with modifications.
37327         * m4/posix_spawn.m4: New file.
37328
37329         New module 'spawn'.
37330         * modules/spawn: New file.
37331         * lib/spawn.in.h: New file, from GNU libc with modifications.
37332         * m4/spawn_h.m4: New file.
37333         * doc/posix-headers/spawn.texi: Mention the new module.
37334
37335 2008-09-28  Bruno Haible  <bruno@clisp.org>
37336
37337         * modules/sched-tests: New file.
37338         * tests/test-sched.c: New file.
37339
37340         New module 'sched'.
37341         * modules/sched: New file.
37342         * lib/sched.in.h: New file.
37343         * m4/sched_h.m4: New file.
37344         * doc/posix-headers/sched.texi: Mention the new module.
37345
37346 2008-09-27  Eric Blake  <ebb9@byu.net>
37347
37348         Fix previous patch, and tweak references to $0.
37349         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37350         (func_version, func_gnulib_dir): Don't call this program
37351         gnulib-tool.
37352         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37353         with using $0 in function.
37354         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37355         (func_fatal_error): Reuse the name the user invoked us with.
37356
37357 2008-09-27  Bruno Haible  <bruno@clisp.org>
37358
37359         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37360         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37361         (gl_ICONV_H): Not here.
37362         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37363         instead of assigning ICONV_H directly.
37364
37365         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37367         WCHAR_H directly.
37368
37369 2008-09-27  Bruno Haible  <bruno@clisp.org>
37370
37371         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37372         * modules/arpa_inet (Depends-on): Add link-warning.
37373         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37374         * modules/unistd (Makefile.am): Likewise.
37375
37376 2008-09-26  Bruno Haible  <bruno@clisp.org>
37377
37378         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37379         variables.
37380         (func_version): Essentially copied from gnulib-tool.
37381         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37382         func_readlink): Copied from gnulib-tool.
37383
37384 2008-09-26  Bruno Haible  <bruno@clisp.org>
37385
37386         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37387         invoking git-version-gen.
37388
37389 2008-09-26  Bruno Haible  <bruno@clisp.org>
37390
37391         * posix-modules: Update to directory names changed on 2008-01-19.
37392         Remove commas in output before splitting into words. No more need to
37393         avoid 'ftruncate' since 2007-02-19.
37394
37395 2008-09-26  Bruno Haible  <bruno@clisp.org>
37396
37397         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37398
37399 2008-09-26  Bruno Haible  <bruno@clisp.org>
37400
37401         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37402         * modules/fwriteerror (Depends-on): Add errno.
37403
37404 2008-09-26  Bruno Haible  <bruno@clisp.org>
37405
37406         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37407         * tests/test-vc-list-files-cvs.sh: Likewise.
37408
37409 2008-09-26  Bruno Haible  <bruno@clisp.org>
37410
37411         * doc/posix-headers/sys_resource.texi: Reorder items.
37412
37413 2008-09-26  Jim Meyering  <meyering@redhat.com>
37414
37415         fts: tweak inode comparison function
37416         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37417         inode numbers, as documented.
37418
37419         fts: sort dirent entries on inode number before traversing
37420         This avoids a quadratic, seek-related performance penalty when
37421         operating on a directory containing many entries (measurable at 10k;
37422         3.5 hours at 2 million entries with a cold cache) on certain types
37423         of file systems, including ext3 and ext4, but not tmpfs.
37424         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37425         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37426         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37427         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37428         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37429         (fts_build): Set the stat.st_ino member from D_INO.
37430         If it is likely to be useful, sort dirent entries on inode number.
37431
37432         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37433         and the struct statfs.f_type member.
37434         * modules/fts (Depends-on): Add d-ino.
37435
37436 2008-09-26  Bruno Haible  <bruno@clisp.org>
37437
37438         * modules/sigpipe-die (Depends-on): Add sigpipe.
37439
37440         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37441         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37442         and GNULIB_STDIO_H_SIGPIPE are set.
37443         * lib/stdio-write.c: New file.
37444         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37445         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37446         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37447         REPLACE_STDIO_WRITE_FUNCS.
37448         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37449         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37450         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37451         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37452         * modules/stdio (Files): Add lib/stdio-write.c.
37453         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37454         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37455         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37456         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37457         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37458         REPLACE_FPRINTF_POSIX.
37459         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37460         REPLACE_PRINTF_POSIX.
37461         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37462         REPLACE_VFPRINTF_POSIX.
37463         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
37464         REPLACE_VPRINTF_POSIX.
37465         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
37466         SIGPIPE issue.
37467         * doc/posix-functions/fputc.texi: Likewise.
37468         * doc/posix-functions/fputs.texi: Likewise.
37469         * doc/posix-functions/fwrite.texi: Likewise.
37470         * doc/posix-functions/printf.texi: Likewise.
37471         * doc/posix-functions/putc.texi: Likewise.
37472         * doc/posix-functions/putchar.texi: Likewise.
37473         * doc/posix-functions/puts.texi: Likewise.
37474         * doc/posix-functions/vfprintf.texi: Likewise.
37475         * doc/posix-functions/vprintf.texi: Likewise.
37476
37477         * modules/safe-write (Depends-on): Add write.
37478
37479         * modules/sigpipe-tests: New file.
37480         * tests/test-sigpipe.c: New file.
37481         * tests/test-sigpipe.sh: New file.
37482
37483         * modules/write: New file.
37484         * lib/unistd.in.h: Include <sys/types.h>.
37485         (write): New declaration.
37486         * lib/write.c: New file.
37487         * m4/write.m4: New file.
37488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37489         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
37490         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
37491         GNULIB_WRITE, REPLACE_WRITE.
37492         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
37493         and the SIGPIPE issue.
37494
37495         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
37496         (raise): New declaration.
37497         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
37498         (ext_signal): New function.
37499         (rpl_raise): New function.
37500         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
37501         GNULIB_SIGNAL_H_SIGPIPE.
37502         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
37503         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
37504
37505         * modules/sigpipe: New file.
37506         * m4/sigpipe.m4: New file.
37507
37508 2008-09-25  Derek Price  <derek@ximbiot.com>
37509             Bruno Haible  <bruno@clisp.org>
37510
37511         * gnulib-tool (func_import): Report all license incompatibilities, not
37512         just the first one.
37513
37514 2008-09-25  Bruno Haible  <bruno@clisp.org>
37515
37516         * gnulib-tool (func_import): When computing the edits, consider not
37517         only the Makefile.ams that exist but also those that will be generated.
37518
37519 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37520
37521         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
37522         fixes gnulib-tool --test warning about duplicate dependency.
37523
37524 2008-09-25  Bruno Haible  <bruno@clisp.org>
37525
37526         * gnulib-tool: Don't ask the user to perform edits in the generated
37527         Makefile.ams.
37528         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
37529         apply to the Makefile.am being generated.
37530         (func_emit_tests_Makefile_am): Execute edits that apply to the
37531         Makefile.am being generated.
37532         (func_import): Setup list of Makefile.am edits before emitting the
37533         Makefile.ams, not at the end.
37534         (func_create_testdir): Update.
37535         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37536
37537 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37538
37539         * gnulib-tool (func_import): Store the --tests-base option in the
37540         comment in gnulib-cache.m4.
37541
37542 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
37543
37544         * NEWS: Document increased portability that sys_select now provides.
37545
37546         * lib/sys_select.in.h: Install select wrapper.
37547         * lib/sys_socket.in.h: Use more descriptive name when there is no
37548         select wrapper.
37549         * lib/winsock-select.c: New.
37550         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
37551         Require gl_HEADER_SYS_SOCKET.
37552         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
37553         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
37554         * tests/test-sys_select.c: Add functional tests.
37555
37556 2008-09-24  Eric Blake  <ebb9@byu.net>
37557
37558         open, fopen: close fd leak in last patch
37559         * lib/open.c (rpl_open): Close fd before returning error.
37560         * lib/fopen.c (rpl_fopen): Close fd before returning error.
37561         * doc/posix-functions/open.texi (open): Document that Irix also
37562         has the bug.
37563         * doc/posix-functions/fopen.texi (fopen): Likewise.
37564         Reported by Paolo Bonzini.
37565
37566 2008-09-24  Bruno Haible  <bruno@clisp.org>
37567
37568         Ensure that a filename ending in a slash cannot be used to access a
37569         non-directory.
37570         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
37571         to check whether it's really a directory.
37572         * lib/fopen.c: Include fcntl.h, unistd.h.
37573         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
37574         and fdopen().
37575         * modules/fopen (Depends-on): Add unistd.
37576         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
37577         * tests/test-fopen.c (main): Likewise.
37578         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
37579         * doc/posix-functions/fopen.texi: Likewise.
37580         Reported by Eric Blake.
37581
37582 2008-09-23  Eric Blake  <ebb9@byu.net>
37583
37584         c-stack: avoid compiler optimizations when provoking overflow
37585         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
37586         recursion harder to optimize, to ensure a stack overflow occurs.
37587         * tests/test-c-stack.c (recurse): Likewise.
37588         Borrowed from libsigsegv.
37589
37590         c-stack: work around Irix sigaltstack bug
37591         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
37592         whether sigaltstack uses wrong end of stack_t (copied in part from
37593         libsigsegv).
37594         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
37595         Irix bug, without requiring an over-allocation.
37596         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
37597         bug.
37598
37599         fopen: document mingw bug on directories
37600         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
37601         not allowing a stream visiting a directory, even though reading
37602         from such a stream is not portable.
37603
37604 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37605
37606         * lib/poll.c: Rewrite.
37607         * modules/poll: Depend on alloca.
37608
37609 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37610
37611         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
37612         instead define prototypes for a full set of wrappers.  Ensure
37613         that Cygwin does not use the compatibility code, which is only
37614         for MinGW.
37615         * lib/winsock.c: New.
37616         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
37617         * modules/sys_socket: Add lib/winsock.c.
37618
37619         * modules/poll-tests: Add errno and perror.
37620         * tests/test-poll.c: Use ioctl, not ioctlsocket.
37621
37622 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37623
37624         * tests/test-poll.c: Downgrade minimum needed Winsock version.
37625
37626 2008-09-23  Bruno Haible  <bruno@clisp.org>
37627
37628         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
37629         * doc/glibc-functions/*: Likewise.
37630
37631 2008-09-23  Simon Josefsson  <simon@josefsson.org>
37632
37633         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37634         success.
37635
37636 2008-09-22  Eric Blake  <ebb9@byu.net>
37637             Bruno Haible  <bruno@clisp.org>
37638
37639         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37640         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37641         supply %A but mishandle pseudo-NaN.
37642         Reported by Simon Josefsson.
37643
37644 2008-09-21  Bruno Haible  <bruno@clisp.org>
37645
37646         * tests/test-lock.c (main): Tweak skip message.
37647         * tests/test-tls.c (main): Likewise.
37648
37649 2008-09-21  Bruno Haible  <bruno@clisp.org>
37650
37651         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37652         whether 'struct sigaction' has sa_sigaction here...
37653         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37654         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37655
37656 2008-09-21  Bruno Haible  <bruno@clisp.org>
37657
37658         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37659         section.
37660         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37661         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37662         the new section.
37663         (Support for obsolete systems lacking POSIX:2001): New section.
37664         (String handling <string.h>): Move strdup to the new section.
37665         Suggested by Simon Josefsson and Paolo Bonzini.
37666
37667 2008-09-21  Bruno Haible  <bruno@clisp.org>
37668
37669         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37670         exponents in %e and %g results on 'long double'. Needed for mingw's
37671         improved *printf functions.
37672         * tests/test-vasprintf-posix.c (test_function): Likewise.
37673         * tests/test-snprintf-posix.h (test_function): Likewise.
37674         * tests/test-sprintf-posix.h (test_function): Likewise.
37675         Reported by Eric Blake.
37676
37677 2008-09-21  Bruno Haible  <bruno@clisp.org>
37678
37679         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37680         * tests/test-sprintf-posix.h (test_function): Likewise.
37681
37682 2008-09-21  Bruno Haible  <bruno@clisp.org>
37683
37684         * modules/getpass (Depends-on): Add strdup-posix.
37685
37686         New module 'strdup-posix'.
37687         * modules/strdup-posix: New file.
37688         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37689         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37691         REPLACE_STRDUP.
37692         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37693         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37694         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37695         strdup-posix.
37696
37697         * modules/strdup (Depends-on): Remove malloc-posix.
37698
37699 2008-09-20  Bruno Haible  <bruno@clisp.org>
37700
37701         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37702         Wildenhues.
37703
37704 2008-09-20  Bruno Haible  <bruno@clisp.org>
37705
37706         Ensure that wint_t gets defined on IRIX 5.3.
37707         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37708         * lib/wctype.in.h (wint_t): Likewise.
37709         (__wctype_wint_t): Remove type.
37710         (isw*): Use wint_t instead of __wctype_wint_t.
37711         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37712         * modules/wchar (Files): Add m4/wint_t.m4.
37713         (Makefile.am): Substitute HAVE_WINT_T.
37714         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37715         * tests/test-wctype.c: Check that wint_t is defined.
37716         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37717         * doc/posix-headers/wctype.texi: Likewise.
37718         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37719
37720 2008-09-18  Bruno Haible  <bruno@clisp.org>
37721
37722         * gnulib-tool (func_exit): Update comment.
37723
37724 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37725
37726         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37727         assumes strdup exists and does not depend on strdup to return
37728         ENOMEM on out of memory conditions.
37729
37730 2008-09-18  Bruno Haible  <bruno@clisp.org>
37731
37732         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
37733         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37734         digits for the exponent.
37735
37736 2008-09-18  Jim Meyering  <meyering@redhat.com>
37737             Bruno Haible  <bruno@clisp.org>
37738
37739         * lib/vasnprintf.c (decimal_point_char): Define also if
37740         NEED_PRINTF_INFINITE_LONG_DOUBLE.
37741
37742 2008-09-16  Bruno Haible  <bruno@clisp.org>
37743         and Eric Blake  <ebb9@byu.net>
37744
37745         vasnprintf: support Irix 5.3
37746         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
37747         that mishandle long double infinity.
37748         Reported by Tom G. Christensen.
37749
37750 2008-09-16  Bruno Haible  <bruno@clisp.org>
37751
37752         * doc/glibc-functions/scandir.texi: Mention the function is missing on
37753         Solaris 9.
37754         * doc/glibc-functions/alphasort.texi: Likewise.
37755         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
37756
37757 2008-09-16  Jim Meyering  <meyering@redhat.com>
37758
37759         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
37760         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
37761         a umask modification leak out of a subshell.  Otherwise, the
37762         opensolaris /bin/sh would be accepted and thus cause unwarranted
37763         failures in the coreutils test suite.
37764
37765 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
37766
37767         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
37768         to succeed.
37769
37770 2008-09-16  Jim Meyering  <meyering@redhat.com>
37771
37772         avoid spurious test failure when library is built without ACL support
37773         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
37774         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
37775         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
37776         * tests/test-copy-acl.sh: Likewise.
37777
37778 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37779
37780         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
37781         based on character occurrence counts.
37782
37783 2008-09-15  Eric Blake  <ebb9@byu.net>
37784
37785         tests: avoid some compiler warnings
37786         * tests/test-memchr.c (main): Pass NULL indirectly.
37787         * tests/test-closein.c (main): Avoid unused variable.
37788
37789 2008-09-15  Bruno Haible  <bruno@clisp.org>
37790
37791         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
37792         are missing on OpenBSD 4.0 individually.
37793         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37794
37795 2008-09-15  Bruno Haible  <bruno@clisp.org>
37796
37797         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
37798         * doc/posix-functions/strerror.texi: Mention also Cygwin.
37799         * doc/posix-functions/perror.texi: Likewise.
37800         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
37801         is missing.
37802         Reported by Eric Blake.
37803
37804         * lib/errno.in.h: Use replacement values >= 2000.
37805         Reported by Eric Blake.
37806
37807 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37808
37809         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
37810         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
37811         limit.
37812         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
37813         compareseq was aborted.
37814
37815 2008-09-14  Bruno Haible  <bruno@clisp.org>
37816
37817         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
37818         yvec_edit_count.
37819         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
37820         (fstrcmp_bounded): Simplify result computation accordingly.
37821
37822 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37823
37824         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
37825         (fstrcmp): Define in terms of fstrcmp_bounded.
37826         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
37827         lower_bound argument.
37828         Return quickly if the result is certainly < lower_bound.
37829         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
37830
37831 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37832
37833         * lib/diffseq.h (EARLY_ABORT): New macro.
37834         (compareseq): Change return type to bool. Return true when EARLY_ABORT
37835         evaluates to true.
37836
37837 2008-09-14  Bruno Haible  <bruno@clisp.org>
37838
37839         * modules/perror-tests: New file.
37840         * tests/test-perror.sh: New file.
37841         * tests/test-perror.c: New file.
37842
37843         New module 'perror'.
37844         * lib/stdio.in.h (perror): New declaration.
37845         * lib/perror.c: New file.
37846         * m4/perror.m4: New file.
37847         * modules/perror: New file.
37848         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
37849         * doc/posix-functions/perror.texi: Mention the perror module.
37850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
37851         REPLACE_PERROR.
37852         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
37853         REPLACE_PERROR.
37854
37855 2008-09-14  Bruno Haible  <bruno@clisp.org>
37856
37857         * modules/stdio (Makefile.am): Reorder to match the order in
37858         lib/stdio.in.h.
37859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37860
37861 2008-09-13  Bruno Haible  <bruno@clisp.org>
37862
37863         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
37864
37865 2008-09-13  Bruno Haible  <bruno@clisp.org>
37866
37867         Extend strerror to cover the added errno values.
37868         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
37869         (rpl_strerror): Provide error messages for the added errno values and
37870         for the WSA* values.
37871         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
37872         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
37873         strerror.
37874         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
37875         * modules/strerror (Depends-on): Add errno.
37876         * doc/posix-functions/strerror.texi: Document the change.
37877         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
37878         and EOVERFLOW.
37879
37880 2008-09-13  Bruno Haible  <bruno@clisp.org>
37881
37882         * modules/EOVERFLOW: Remove file.
37883         * m4/eoverflow.m4: Remove file.
37884         * modules/EOVERFLOW-tests: Remove file.
37885         * tests/test-EOVERFLOW.c: Remove file.
37886         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
37887         * modules/ftell (Depends-on): Likewise.
37888         * modules/getdelim (Depends-on): Likewise.
37889         * modules/getugroups (Depends-on): Likewise.
37890         * modules/poll (Depends-on): Likewise.
37891         * modules/snprintf (Depends-on): Likewise.
37892         * modules/sprintf-posix (Depends-on): Likewise.
37893         * modules/vasnprintf (Depends-on): Likewise.
37894         * modules/vasprintf (Depends-on): Likewise.
37895         * modules/vfprintf-posix (Depends-on): Likewise.
37896         * modules/vsnprintf (Depends-on): Likewise.
37897         * modules/vsprintf-posix (Depends-on): Likewise.
37898         * modules/xvasprintf (Depends-on): Likewise.
37899         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37900         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
37901         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
37902         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
37903         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37904         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
37905         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
37906         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
37907         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37908         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
37909         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
37910         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
37911         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37912         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
37913         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
37914         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
37915         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37916         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
37917         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
37918         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
37919         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37920         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
37921         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
37922         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
37923         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
37924         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37925         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
37926         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
37927         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
37928         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
37929         * MODULES.html.sh: Remove EOVERFLOW.
37930         * NEWS: Mention the change.
37931
37932 2008-09-13  Bruno Haible  <bruno@clisp.org>
37933
37934         * modules/errno-tests: New file.
37935         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
37936
37937         * lib/errno.in.h: New file.
37938         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
37939         * modules/errno: New file.
37940         * doc/posix-headers/errno.texi: Update documentation.
37941         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
37942
37943 2008-09-13  Bruno Haible  <bruno@clisp.org>
37944
37945         * tests/test-poll.c: Use #if for native Windows, rather than testing
37946         __MSVCRT__.
37947
37948 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37949             Bruno Haible  <bruno@clisp.org>
37950
37951         * lib/glob.c: Don't include <pwd.h> on native Windows.
37952         (WINDOWS32): New macro.
37953         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
37954
37955 2008-09-13  Bruno Haible  <bruno@clisp.org>
37956
37957         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
37958         (ETIMEDOUT): Remove macro.
37959         (glthread_cond_timedwait_multithreaded): New declaration.
37960         (glthread_cond_timedwait): Use it.
37961         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
37962         (glthread_cond_timedwait_multithreaded): New function.
37963
37964 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37965
37966         * modules/poll-tests: Do not check for io.h.
37967         * tests/test-poll.c: Check for __MSVCRT__ instead.
37968
37969 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37970
37971         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
37972         * modules/poll-tests: Add inet_pton, stdbool, sockets.
37973         * tests/test-poll.c: Use them.  Use _pipe on Windows.
37974
37975 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37976
37977         * modules/poll-tests: New.
37978         * tests/test-poll.c: New.
37979
37980 2008-09-12  Eric Blake  <ebb9@byu.net>
37981
37982         frexp: test for NetBSD failure on -0.0
37983         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37984         not all, bugs from NetBSD 3.0 have been fixed.
37985         * doc/posix-functions/frexp.texi (frexp): Document bug.
37986         Reported by Thomas Klausner.
37987
37988         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37989         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37990         literal -0.0.
37991         Reported by Jonathan C. Patschke <jp@centtech.com>.
37992
37993 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37994
37995         * lib/glthread/cond.h: Use dummy implementation also if
37996         USE_WIN32_THREADS.
37997
37998 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37999
38000         * modules/fnmatch-posix (License): Change to LGPLv2+.
38001         * modules/fnmatch-gnu (License): Likewise.
38002
38003 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38004
38005         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38006
38007 2008-09-11  Jim Meyering  <meyering@redhat.com>
38008
38009         * users.txt: Add gtk-vnc.
38010
38011 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38012
38013         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38014         rotate amounts.
38015
38016         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38017         required for 16-bit and 8-bit rotates.
38018         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38019         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38020         UINT8_MAX instead of hard-coded constants.
38021         Suggested by Paul Eggert.
38022
38023 2008-09-07  Bruno Haible  <bruno@clisp.org>
38024
38025         * tests/test-striconveh.c (main): Check behaviour when converting from
38026         UTF-7.
38027
38028         Make striconveh work better with stateful encodings.
38029         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38030         that iconv does not increment the inptr when returning -1/EINVAL.
38031
38032 2008-09-07  Bruno Haible  <bruno@clisp.org>
38033
38034         * build-aux/config.rpath: Update according to libtool-2.2.6.
38035         * build-aux/config.libpath: Likewise.
38036
38037 2008-09-06  Bruno Haible  <bruno@clisp.org>
38038
38039         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38040         * lib/freadptr.c (freadptr): Likewise.
38041         * lib/freadseek.c (freadptrinc): Likewise.
38042         Reported by Simon Josefsson.
38043
38044 2008-09-06  Bruno Haible  <bruno@clisp.org>
38045
38046         * modules/freadptr (License): Change to LGPLv2+.
38047         * modules/freadseek (License): Likewise.
38048         Suggested by Eric Blake.
38049
38050         * modules/memchr2 (License): Change to LGPLv2+.
38051         Approved by Eric Blake.
38052
38053 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38054             Bruno Haible  <bruno@clisp.org>
38055
38056         Make gnulib-tool work with native 'sed' on AIX.
38057         * gnulib-tool (sed_noop): New variable.
38058         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38059         func_add_or_update, func_create_testdir): Use it to initialize sed
38060         script variables.
38061         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38062
38063 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38064             Bruno Haible  <bruno@clisp.org>
38065
38066         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38067         also works after #include directives.
38068
38069 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38070
38071         getdate.y: reject an out-of-range timezone value
38072         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38073         the range [-24...+24].  When specified with only one or two digits,
38074         * tests/test-getdate.c: Tests for the fix.
38075         * doc/getdate.texi: Document this change.
38076
38077 2008-09-03  Bruno Haible  <bruno@clisp.org>
38078
38079         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38080
38081 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38082
38083         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38084         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38085         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38086         Blake <ebb9@byu.net>.
38087
38088         * tests/test-bitrotate.c: Add more test vectors.
38089
38090 2008-09-02  Eric Blake  <ebb9@byu.net>
38091
38092         vasnprintf-posix: handle large precision via %.*d
38093         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38094         when handling it ourselves.
38095         * tests/test-vasnprintf-posix.c (test_function): Add test.
38096         * tests/test-snprintf-posix.h (test_function): Likewise.
38097         * tests/test-sprintf-posix.h (test_function): Likewise.
38098         * tests/test-vasprintf-posix.c (test_function): Likewise.
38099         Reported by Alain Guibert.
38100
38101 2008-09-01  Eric Blake  <ebb9@byu.net>
38102
38103         c-stack: make configure-time check more robust
38104         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38105         successful sigaction call.
38106         Reported by Tom G. Christensen.
38107
38108 2008-09-01  Bruno Haible  <bruno@clisp.org>
38109
38110         New module 'findprog-lgpl'.
38111         * modules/findprog-lgpl: New file.
38112         * lib/findprog-lgpl.c: New file.
38113         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38114         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38115         to decide whether to use strdup or xstrdup, concatenated_filename or
38116         xconcatenated_filename.
38117
38118 2008-09-01  Bruno Haible  <bruno@clisp.org>
38119
38120         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38121         'xconcat-filename' (GPL).
38122         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38123         (License): Change to LGPLv2+.
38124         * modules/xconcat-filename: New file.
38125         * lib/concat-filename.h (concatenated_filename): Change specification.
38126         (xconcatenated_filename): New declaration.
38127         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38128         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38129         memory situations.
38130         * lib/xconcat-filename.c: New file.
38131         * NEWS: Mention the change.
38132         * lib/findprog.c: Include concat-filename.h, not filename.h.
38133         (find_in_path): Use xconcatenated_filename instead of
38134         concatenated_filename.
38135         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38136         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38137         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38138         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38139         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38140         instead of concatenated_filename.
38141         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38142         (execute_java_class): Use xconcatenated_filename instead of
38143         concatenated_filename.
38144         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38145         * modules/javacomp (Depends-on): Likewise.
38146         * modules/javaexec (Depends-on): Likewise.
38147
38148 2008-09-01  Bruno Haible  <bruno@clisp.org>
38149
38150         Split module 'filename' into 'filename' and 'concat-filename'.
38151         * modules/filename: Keep only lib/filename.h.
38152         (License): Change to LGPLv2+.
38153         * modules/concat-filename: New file, extracted from modules/filename.
38154         * lib/filename.h (concatenated_filename): Remove declaration.
38155         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38156         * lib/concat-filename.c: Include concat-filename.h.
38157         * NEWS: Mention the change.
38158
38159 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38160
38161         * lib/bitrotate.h (rotl8, rotr8): Add.
38162
38163         * modules/bitrotate (configure.ac): Need
38164         AC_REQUIRE([AC_C_INLINE]).
38165         (Description): Mention stdint.h.  Reported by Bruno Haible
38166         <bruno@clisp.org>.
38167
38168         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38169         Paolo Bonzini <bonzini@gnu.org>.
38170
38171 2008-08-31  Bruno Haible  <bruno@clisp.org>
38172
38173         Assume Solaris specific bi-arch conventions on Solaris systems.
38174         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38175         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38176         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38177         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38178         like acl_libdirstem.
38179         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38180         acl_libdirstem.
38181         * NEWS: Mention the change.
38182         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38183
38184 2008-08-31  Jim Meyering  <meyering@redhat.com>
38185
38186         * lib/strftime.h: Add comments describing the two added arguments.
38187
38188         remove duplicate #include directives
38189         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38190         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38191
38192 2008-08-31  Bruno Haible  <bruno@clisp.org>
38193
38194         New module 'sigpipe-die'.
38195         * modules/sigpipe-die: New file.
38196         * lib/sigpipe-die.h: New file.
38197         * lib/sigpipe-die.c: New file.
38198         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38199
38200 2008-08-31  Bruno Haible  <bruno@clisp.org>
38201
38202         Don't override previously installed signal handlers.
38203         * lib/fatal-signal.c (saved_sigactions): New variable.
38204         (uninstall_handlers): Reset the signal to the saved handler, not
38205         to SIG_DFL (except when ignored).
38206         (install_handlers): Save the previous handlers.
38207
38208 2008-08-30  Bruno Haible  <bruno@clisp.org>
38209
38210         * gnulib-tool (func_reset_sigpipe): New function.
38211         (func_get_automake_snippet, func_modules_transitive_closure,
38212         func_import): Invoke it before a join command that reads from stdin,
38213         to avoid "echo: write error: Broken pipe" error messages on stderr.
38214         Reported by Sam Steingold <sds@gnu.org>.
38215
38216 2008-08-30  Bruno Haible  <bruno@clisp.org>
38217
38218         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38219         Code copied from m4/open.m4.
38220         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38221         access and the filename ends in a slash. Code copied from lib/open.c.
38222         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38223         * tests/test-fopen.c (main): Check against bug with trailing slash.
38224
38225 2008-08-29  Bruno Haible  <bruno@clisp.org>
38226
38227         Avoid some "gcc -pedantic" warnings.
38228         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38229         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38230         * lib/dirent.in.h: Likewise.
38231         * lib/fcntl.in.h: Likewise.
38232         * lib/float.in.h: Likewise.
38233         * lib/iconv.in.h: Likewise.
38234         * lib/inttypes.in.h: Likewise.
38235         * lib/locale.in.h: Likewise.
38236         * lib/math.in.h: Likewise.
38237         * lib/netinet_in.in.h: Likewise.
38238         * lib/search.in.h: Likewise.
38239         * lib/signal.in.h: Likewise.
38240         * lib/stdarg.in.h: Likewise.
38241         * lib/stdint.in.h: Likewise.
38242         * lib/stdio.in.h: Likewise.
38243         * lib/stdlib.in.h: Likewise.
38244         * lib/string.in.h: Likewise.
38245         * lib/strings.in.h: Likewise.
38246         * lib/sys_select.in.h: Likewise.
38247         * lib/sys_socket.in.h: Likewise.
38248         * lib/sys_stat.in.h: Likewise.
38249         * lib/sys_time.in.h: Likewise.
38250         * lib/sysexits.in.h: Likewise.
38251         * lib/time.in.h: Likewise.
38252         * lib/unistd.in.h: Likewise.
38253         * lib/wchar.in.h: Likewise.
38254         * lib/wctype.in.h: Likewise.
38255         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38256         * modules/fchdir (Makefile.am): Likewise.
38257         * modules/fcntl (Makefile.am): Likewise.
38258         * modules/float (Makefile.am): Likewise.
38259         * modules/iconv_open (Makefile.am): Likewise.
38260         * modules/inttypes (Makefile.am): Likewise.
38261         * modules/locale (Makefile.am): Likewise.
38262         * modules/math (Makefile.am): Likewise.
38263         * modules/netinet_in (Makefile.am): Likewise.
38264         * modules/search (Makefile.am): Likewise.
38265         * modules/signal (Makefile.am): Likewise.
38266         * modules/stdarg (Makefile.am): Likewise.
38267         * modules/stdint (Makefile.am): Likewise.
38268         * modules/stdio (Makefile.am): Likewise.
38269         * modules/stdlib (Makefile.am): Likewise.
38270         * modules/string (Makefile.am): Likewise.
38271         * modules/strings (Makefile.am): Likewise.
38272         * modules/sys_select (Makefile.am): Likewise.
38273         * modules/sys_socket (Makefile.am): Likewise.
38274         * modules/sys_stat (Makefile.am): Likewise.
38275         * modules/sys_time (Makefile.am): Likewise.
38276         * modules/sysexits (Makefile.am): Likewise.
38277         * modules/time (Makefile.am): Likewise.
38278         * modules/unistd (Makefile.am): Likewise.
38279         * modules/wchar (Makefile.am): Likewise.
38280         * modules/wctype (Makefile.am): Likewise.
38281         Reported by Reuben Thomas <rrt@sc3d.org>.
38282
38283 2008-08-29  Bruno Haible  <bruno@clisp.org>
38284
38285         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38286         any more.
38287
38288 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38289
38290         * MODULES.html.sh (Misc): Add bitrotate.
38291
38292         * modules/bitrotate: New file.
38293
38294         * lib/bitrotate.h: New file.
38295
38296         * modules/bitrotate-tests: New file.
38297
38298         * tests/test-bitrotate.c: New file.
38299
38300         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38301         on the bitrotate module.
38302
38303         * lib/arctwo.c: Use new bitrotate module.
38304
38305 2008-08-29  Jim Meyering  <meyering@redhat.com>
38306
38307         bootstrap: merge changes from coreutils
38308         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38309         of copied files.  Remove a kludge, now that this is fixed.
38310         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38311         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38312         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38313
38314 2008-08-29  Bruno Haible  <bruno@clisp.org>
38315
38316         * MODULES.html.sh: Remove --cvs-urls option.
38317
38318 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38319
38320         maint.mk: adjust to file name change
38321         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38322
38323 2008-08-28  Jim Meyering  <meyering@redhat.com>
38324
38325         * modules/getndelim2 (License): Relicense to LGPLv2+.
38326         Approved by Richard Stallman for the version of 1995, and by
38327         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38328
38329 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38330
38331         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38332         dummy if one is not available.  Do not touch them if
38333         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38334         (getc_maybe_unlocked): New.
38335         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38336
38337 2008-08-26  Eric Blake  <ebb9@byu.net>
38338
38339         doc/INSTALL: resync from autoconf
38340         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38341         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38342         moving...
38343         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38344         * INSTALL: Regenerate.
38345         * INSTALL.ISO: New file.
38346         * INSTALL.UTF-8: Likewise.
38347
38348 2008-08-26  Jim Meyering  <meyering@redhat.com>
38349
38350         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38351         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38352         these definitions conditional, so that they may be overridden, too.
38353
38354 2008-08-26  Bruno Haible  <bruno@clisp.org>
38355
38356         Generate INSTALL file variants with prettier quotes.
38357         * doc/Makefile (INSTALL_PRELUDE): New macro.
38358         (INSTALL): Use it.
38359         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38360
38361 2008-08-26  Bruno Haible  <bruno@clisp.org>
38362
38363         Run makeinfo in an English locale.
38364         * doc/Makefile (MAKEINFO): New variable.
38365
38366 2008-08-26  Bruno Haible  <bruno@clisp.org>
38367
38368         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38369         Suggested by Eric Blake.
38370
38371 2008-08-25  Bruno Haible  <bruno@clisp.org>
38372
38373         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38374
38375 2008-08-25  Eric Blake  <ebb9@byu.net>
38376
38377         c-stack: test that stack overflow can be caught
38378         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38379         that platform allows handling stack overflow; at least OS/2 EMX
38380         has sigaltstack, but crashes before transferring control to
38381         handler on stack overflow.
38382         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38383         check for HAVE_STACK_OVERFLOW_HANDLING.
38384         Reported by Elbert Pol.
38385
38386 2008-08-25  Bruno Haible  <bruno@clisp.org>
38387
38388         * doc/posix-functions/strftime.texi: Fix description of strftime
38389         module.
38390
38391 2008-08-24  Bruno Haible  <bruno@clisp.org>
38392
38393         * tests/uniwidth/test-uc_width2.c: New file.
38394         * tests/uniwidth/test-uc_width2.sh: New file.
38395         * modules/uniwidth/width-tests (Files): Add the new files.
38396         (TESTS): Add uniwidth/test-uc_width2.sh.
38397         (TESTS_ENVIRONMENT): New variable.
38398         (check_PROGRAMS): Add test-uc_width2.
38399         (test_uc_width2_SOURCES): New variable.
38400
38401         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38402         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38403         not 0x00AB.
38404         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38405
38406 2008-08-22  Eric Blake  <ebb9@byu.net>
38407
38408         test-lock, test-tls: mention why a test is skipped
38409         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38410         skipped.
38411         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38412
38413         count-one-bits: relax license
38414         * modules/count-one-bits (License): Relicense to LGPLv2+.
38415         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38416
38417 2008-08-22  Andreas Schwab  <schwab@suse.de>
38418
38419         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38420         Remove spurious space in assignment.
38421
38422 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38423
38424         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38425         Paul Eggert <eggert@CS.UCLA.EDU>.
38426
38427 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38428
38429         * modules/gettext: Add m4/threadlib.m4.
38430
38431 2008-08-19  Eric Blake  <ebb9@byu.net>
38432
38433         test-c-stack: fix compilation failure on FreeBSD 5.0
38434         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38435         headers before <sys/resource.h>.
38436         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38437         the bug.
38438         Reported by Nelson H. F. Beebe.
38439
38440         strverscmp: migrate from "strverscmp.h" to <string.h>
38441         * modules/string (Makefile.am): Add new hooks.
38442         * modules/strverscmp (Files): Remove strverscmp.h.
38443         (Depends-on): Add string.
38444         (configure.ac): Add indicator.
38445         (Include): Mention new header.
38446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38447         defaults.
38448         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38449         results.
38450         * lib/strverscmp.h: Delete.
38451         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38452         * tests/test-strverscmp.c (includes): Adjust client.
38453         * lib/check-version.c (includes): Likewise.
38454         * NEWS: Document the change.
38455
38456         strverscmp: add unit test
38457         * modules/strverscmp-tests: New file.
38458         * tests/test-strverscmp.c: Likewise.
38459
38460 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38461
38462         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
38463         regarding Windows crypto stuff, from Mono.
38464
38465 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
38466
38467         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
38468         if present, for intel RND.  Return error on failures.
38469
38470 2008-08-18  Ben Pfaff  <blp@gnu.org>
38471
38472         gitlog-to-changelog: give better diagnostic for failed pipe-open
38473         * build-aux/gitlog-to-changelog: Improve error message: suggest
38474         that the version of Git may be too old.
38475
38476 2008-08-18  Simon Josefsson  <simon@josefsson.org>
38477
38478         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
38479         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
38480
38481 2008-08-18  Bruno Haible  <bruno@clisp.org>
38482
38483         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
38484         pthread_in_use().
38485
38486 2008-08-18  Bruno Haible  <bruno@clisp.org>
38487
38488         * lib/glthread/threadlib.c: Include <pthread.h>.
38489
38490 2008-08-18  Bruno Haible  <bruno@clisp.org>
38491
38492         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
38493         glthread_recursive_lock_* macros.
38494         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
38495         Fix syntax error.
38496
38497 2008-08-18  Bruno Haible  <bruno@clisp.org>
38498
38499         * lib/glthread/thread.c: Avoid forcing a context switch right after
38500         thread creation.
38501
38502 2008-08-17  Bruno Haible  <bruno@clisp.org>
38503
38504         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
38505         * lib/glthread/thread.h: Provide Win32 specific implementation.
38506         * modules/thread (Files): Add lib/glthread/thread.c.
38507         (Depends-on): Add lock.
38508         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
38509
38510 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38511
38512         New module 'yield'.
38513         * modules/yield: New file.
38514         * lib/glthread/yield.h: New file.
38515         * m4/yield.m4: New file.
38516         * MODULES.html.sh (Multithreading): Add yield.
38517
38518 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38519
38520         New module 'thread'.
38521         * modules/thread: New file.
38522         * lib/glthread/thread.h: New file.
38523         * m4/thread.m4: New file.
38524         * MODULES.html.sh (Multithreading): Add thread.
38525
38526 2008-08-17  Bruno Haible  <bruno@clisp.org>
38527
38528         * lib/glthread/lock.h: Include <stdlib.h> always.
38529         * lib/glthread/tls.h: Likewise.
38530         * lib/glthread/cond.h: Likewise.
38531
38532 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38533
38534         New module 'cond'.
38535         * modules/cond: New file.
38536         * lib/glthread/cond.h: New file.
38537         * lib/glthread/cond.c: New file.
38538         * m4/cond.m4: New file.
38539         * MODULES.html.sh (Multithreading): Add cond.
38540
38541 2008-08-16  Eric Blake  <ebb9@byu.net>
38542
38543         c-stack: fix regression on Irix 5.3 from 2008-06-21
38544         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
38545         sa_sigaction...
38546         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
38547         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
38548         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
38549         * modules/signal (Makefile.am): Use the value.
38550         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
38551         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
38552         * doc/posix-headers/signal.texi (signal.h): Document this
38553         portability issue.
38554         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
38555         Reported by Tom G. Christensen.
38556
38557 2008-08-17  Bruno Haible  <bruno@clisp.org>
38558
38559         New module 'threadlib'.
38560         * modules/threadlib: New file.
38561         * lib/glthread/threadlib.c: New file, extracted from
38562         lib/glthread/lock.c.
38563         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
38564         functions.
38565         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
38566         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
38567         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
38568         macros.
38569         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
38570         (gl_DISABLE_THREADS): Remove macro.
38571         * modules/lock (Files): Remove build-aux/config.rpath.
38572         (Depends-on): Remove havelib. Add threadlib.
38573         (configure.ac-early): Remove section.
38574         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
38575         * modules/tls (Depends-on): Remove lock. Add threadlib.
38576         (Link): New section, copied from threadlib.
38577         * MODULES.html.sh (Multithreading): Add threadlib.
38578
38579 2008-08-14  Bruno Haible  <bruno@clisp.org>
38580
38581         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
38582         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
38583         glthread_rwlock_unlock, glthread_rwlock_destroy,
38584         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
38585         glthread_recursive_lock_destroy): Define as macros always.
38586         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
38587         glthread_lock_lock.
38588         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
38589         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
38590         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
38591         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
38592         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
38593         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
38594         (glthread_recursive_lock_lock_func): Renamed from
38595         glthread_recursive_lock_lock.
38596         (glthread_recursive_lock_unlock_func): Renamed from
38597         glthread_recursive_lock_unlock.
38598         (glthread_recursive_lock_destroy_func): Renamed from
38599         glthread_recursive_lock_destroy.
38600
38601 2008-08-14  Bruno Haible  <bruno@clisp.org>
38602
38603         * lib/glthread/lock.h: Renamed from lib/lock.h.
38604         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
38605         * lib/glthread/tls.h: Renamed from lib/tls.h.
38606         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
38607         * lib/fstrcmp.c: Update includes.
38608         * lib/strsignal.c: Update includes.
38609         * modules/lock (Files, Makefile.am): Update.
38610         (Include): Change to "glthread/lock.h".
38611         * modules/tls (Files, Makefile.am): Update.
38612         (Include): Change to "glthread/tls.h".
38613         * tests/test-lock.c: Update includes.
38614         * tests/test-tls.c: Update includes.
38615         * NEWS: Mention the renamed header files.
38616
38617 2008-08-11  Jim Meyering  <meyering@redhat.com>
38618
38619         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
38620
38621 2008-08-11  Eric Blake  <ebb9@byu.net>
38622
38623         test-c-stack: avoid C99-ism
38624         * tests/test-c-stack.c (main): Fix whitespace, move declaration
38625         before statement.
38626         Reported by Alain Guibert.
38627
38628 2008-08-10  Jim Meyering  <meyering@redhat.com>
38629
38630         ensure that return value of uinttostr et al are not ignored
38631         * lib/inttostr.h (__GNUC_PREREQ): Define.
38632         (__attribute_warn_unused_result__): Define.
38633         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38634
38635 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38636
38637         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38638         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38639
38640 2008-08-07  Jim Meyering  <meyering@redhat.com>
38641
38642         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38643
38644         * modules/mkstemp (License): Relicense under LGPLv2+.
38645         * modules/tempname (License): Likewise.
38646
38647 2008-08-06  Bruno Haible  <bruno@clisp.org>
38648
38649         * lib/poll.c (poll): Further micro-optimization.
38650
38651 2008-08-06  Jim Meyering  <meyering@redhat.com>
38652
38653         inet_pton.c: use locale-independent tolower
38654         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38655         (inet_pton6): Use c_tolower rather than tolower.
38656         * modules/inet_pton (Depends-on): Add c-ctype.
38657
38658 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38659
38660         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38661         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38662
38663 2008-08-06  Jim Meyering  <meyering@redhat.com>
38664
38665         * modules/inet_pton (License): Relicense under LGPLv2+.
38666
38667 2008-08-03  Bruno Haible  <bruno@clisp.org>
38668
38669         Additional non-aborting API for lock and tls.
38670         * lib/lock.h: Include <errno.h>.
38671         (glthread_lock_init): New macro/function.
38672         (gl_lock_init): Define as wrapper around glthread_lock_init.
38673         (glthread_lock_lock): New macro/function.
38674         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38675         (glthread_lock_unlock): New macro/function.
38676         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38677         (glthread_lock_destroy): New macro/function.
38678         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38679         (glthread_rwlock_init): New macro/function.
38680         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38681         (glthread_rwlock_rdlock): New macro/function.
38682         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38683         (glthread_rwlock_wrlock): New macro/function.
38684         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38685         (glthread_rwlock_unlock): New macro/function.
38686         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38687         (glthread_rwlock_destroy): New macro/function.
38688         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38689         (glthread_recursive_lock_init): New macro/function.
38690         (gl_recursive_lock_init): Define as wrapper around
38691         glthread_recursive_lock_init.
38692         (glthread_recursive_lock_lock): New macro/function.
38693         (gl_recursive_lock_lock): Define as wrapper around
38694         glthread_recursive_lock_lock.
38695         (glthread_recursive_lock_unlock): New macro/function.
38696         (gl_recursive_lock_unlock): Define as wrapper around
38697         glthread_recursive_lock_unlock.
38698         (glthread_recursive_lock_destroy): New macro/function.
38699         (gl_recursive_lock_destroy): Define as wrapper around
38700         glthread_recursive_lock_destroy.
38701         (glthread_once): New macro/function.
38702         (gl_once): Define as wrapper around glthread_once.
38703         Update function declarations.
38704         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38705         glthread_rwlock_init. Return error code.
38706         (glthread_rwlock_rdlock_multithreaded): Renamed from
38707         glthread_rwlock_rdlock. Return error code.
38708         (glthread_rwlock_wrlock_multithreaded): Renamed from
38709         glthread_rwlock_wrlock. Return error code.
38710         (glthread_rwlock_unlock_multithreaded): Renamed from
38711         glthread_rwlock_unlock. Return error code.
38712         (glthread_rwlock_destroy_multithreaded): Renamed from
38713         glthread_rwlock_destroy. Return error code.
38714         (glthread_recursive_lock_init_multithreaded): Renamed from
38715         glthread_recursive_lock_init. Return error code.
38716         (glthread_recursive_lock_lock_multithreaded): Renamed from
38717         glthread_recursive_lock_lock. Return error code.
38718         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38719         glthread_recursive_lock_unlock. Return error code.
38720         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38721         glthread_recursive_lock_destroy. Return error code.
38722         (glthread_once_call): Make static.
38723         (glthread_once_multithreaded): Renamed from glthread_once.
38724         * lib/tls.h: Include <errno.h>.
38725         (glthread_tls_key_init): New macro/function.
38726         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38727         (glthread_tls_set): New macro/function.
38728         (gl_tls_set): Define as wrapper around glthread_tls_set.
38729         (glthread_tls_key_destroy): New macro/function.
38730         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38731         Update function declarations.
38732         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38733         glthread_tls_get.
38734         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38735
38736 2008-08-04  Eric Blake  <ebb9@byu.net>
38737
38738         gnumakefile: use space, not TAB, outside of targets
38739         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
38740
38741 2008-08-02  Jim Meyering  <meyering@redhat.com>
38742
38743         getdate.y: avoid locale-dependent date parsing failure
38744         In Turkish locales, getdate would fail to recognize keywords
38745         containing a lowercase "i".  The solution is not to rely on
38746         locale-sensitive case-conversion.
38747         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
38748         (lookup_word): Use c_toupper in place of toupper.
38749         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
38750         Reported by Vefa Bicakci <bicave@superonline.com> in
38751         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
38752         * modules/getdate (Depends-on): Add c-ctype.
38753
38754 2008-08-02  Bruno Haible  <bruno@clisp.org>
38755
38756         * gnulib-tool (func_import): When updating or creating a .gitignore
38757         file, prepend each added line with a slash, and ignore leading slashes
38758         from the existing lines.
38759         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38760
38761 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38762
38763         Portability fix for GNU make 3.79.1.
38764         * top/GNUmakefile: Avoid 'else COND', which older GNU make
38765         versions do not understand.
38766
38767 2008-08-01  Bruno Haible  <bruno@clisp.org>
38768
38769         Work around bug of HP-UX 10.20 cc with -0.0 literal.
38770         * tests/test-isnanf.h (zero): New variable.
38771         (main): Avoid literal -0.0f.
38772         * tests/test-isnand.h (zero): New variable.
38773         (main): Avoid literal -0.0.
38774         * tests/test-isnanl.h (zero): New variable.
38775         (main): Avoid literal -0.0L.
38776         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
38777         (test_float, test_double, test_long_double): Avoid literals -0.0f,
38778         -0.0, -0.0L.
38779         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
38780         (test_signbitd): Avoid literal -0.0.
38781         (test_signbitl): Avoid literal -0.0L.
38782         * tests/test-ceilf1.c (zero): New variable.
38783         (main): Avoid literal -0.0f.
38784         * tests/test-ceill.c (zero): New variable.
38785         (main): Avoid literal -0.0L.
38786         * tests/test-floorf1.c (zero): New variable.
38787         (main): Avoid literal -0.0f.
38788         * tests/test-floorl.c (zero): New variable.
38789         (main): Avoid literal -0.0L.
38790         * tests/test-roundf1.c (zero): New variable.
38791         (main): Avoid literal -0.0f.
38792         * tests/test-round1.c (zero): New variable.
38793         (main): Avoid literal -0.0.
38794         * tests/test-roundl.c (zero): New variable.
38795         (main): Avoid literal -0.0L.
38796         * tests/test-truncf1.c (zero): New variable.
38797         (main): Avoid literal -0.0f.
38798         * tests/test-trunc1.c (zero): New variable.
38799         (main): Avoid literal -0.0.
38800         * tests/test-truncl.c (zero): New variable.
38801         (main): Avoid literal -0.0L.
38802         * tests/test-frexp.c (zero): New variable.
38803         (main): Avoid literal -0.0.
38804         * tests/test-frexpl.c (zero): New variable.
38805         (main): Avoid literal -0.0L.
38806         * tests/test-ldexpl.c (zero): New variable.
38807         (main): Avoid literal -0.0L.
38808         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38809         (zerod, zerol): New variables.
38810         (test_function): Avoid literals -0.0, -0.0L.
38811         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38812         (zerod, zerol): New variables.
38813         (test_function): Avoid literals -0.0, -0.0L.
38814         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38815         (zerod, zerol): New variables.
38816         (test_function): Avoid literals -0.0, -0.0L.
38817         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38818         (zerod, zerol): New variables.
38819         (test_function): Avoid literals -0.0, -0.0L.
38820         * tests/test-strtod.c (zero): New variable.
38821         (main): Avoid literal -0.0.
38822         Reported by Jonathan C. Patschke <jp@centtech.com>.
38823
38824 2008-07-31  Jim Meyering  <meyering@redhat.com>
38825
38826         sha256.h: correct definition of SHA224_DIGEST_SIZE
38827         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
38828         Reported by Paulie Pena IV <paulie4@gmail.com>.
38829         Define as 224 / 8, rather than as a literal.
38830         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
38831         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
38832         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
38833
38834 2008-07-31  Bruno Haible  <bruno@clisp.org>
38835
38836         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
38837         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
38838         Reported by Jonathan Patschke <jp@centtech.com>.
38839
38840 2008-07-31  Bruno Haible  <bruno@clisp.org>
38841
38842         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
38843         Reported by Paolo Bonzini <bonzini@gnu.org>.
38844
38845 2008-07-30  Eric Blake  <ebb9@byu.net>
38846
38847         test-strtod: allow compilation without -lm
38848         * tests/test-strtod.c (main): Avoid link dependence on fabs.
38849         Reported by Dennis Clarke <blastwave@gmail.com>.
38850
38851 2008-07-28  Jim Meyering  <meyering@redhat.com>
38852
38853         bootstrap: work also when there are no .po files in po/
38854         * build-aux/bootstrap (update_po_files): Complete the change
38855         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
38856
38857 2008-07-27  Jim Meyering  <meyering@redhat.com>
38858
38859         * users.txt: Add zile.
38860
38861 2008-07-26  Ben Pfaff  <blp@gnu.org>
38862
38863         Add missing dependencies on new m4/exponent[fdl].m4 files.
38864         * modules/isnanf-nolibm: Add m4/exponentf.m4.
38865         * modules/isnand-nolibm: Add m4/exponentd.m4.
38866         * modules/isnanl-nolibm: Add m4/exponentl.m4.
38867         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
38868         m4/isnan[fdl].m4, because the macros actually used moved.
38869         Reported by Jim Meyering.
38870
38871 2008-07-14  Ben Pfaff  <blp@gnu.org>
38872
38873         Add isinf module.
38874         * lib/isinf.c: New file.
38875         * lib/math.in.h: Define isinf macro if we have decided to replace
38876         it.
38877         * m4/isinf.m4: New file.
38878         * m4/math_h.m4: Initialize and substitute variables for isinf
38879         module.
38880         * modules/isinf: New file.
38881         * modules/isinf-tests: New file.
38882         * modules/math: Add substitutions for new module.
38883         * tests/test-isinf.c: New file.
38884         * doc/posix-functions/isinf.texi: Mention new module.
38885         * MODULES.html.sh: Mention new module.
38886
38887 2008-07-14  Ben Pfaff  <blp@gnu.org>
38888
38889         Factor out some macros for use by additional modules.
38890         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
38891         exponentf.m4.
38892         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
38893         exponentd.m4.
38894         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
38895         file exponentl.m4.
38896         * m4/exponentf.m4: New file.
38897         * m4/exponentd.m4: New file.
38898         * m4/exponentl.m4: New file.
38899         * modules/isnanf: Use new file m4/exponentf.m4.
38900         * modules/isnand: Use new file m4/exponentd.m4.
38901         * modules/isnanl: Use new file m4/exponentl.m4.
38902
38903 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
38904
38905         mktime.c: normalize tp->tm_isdst value to -1/0/1.
38906         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
38907         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
38908         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
38909
38910         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
38911         readlink on platforms without PATH_MAX.
38912
38913 2008-07-21  Eric Blake  <ebb9@byu.net>
38914
38915         Warn, not fail, on stale version.
38916         * top/GNUmakefile (_curr-ver): Tone down previous patch.
38917
38918         Don't allow installation with stale devel version number.
38919         * top/GNUmakefile (_is-install-target): New macro.
38920         (_curr-ver): Forbid installation with stale version number.
38921
38922 2008-07-20  Bruno Haible  <bruno@clisp.org>
38923
38924         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
38925         TESTS_ENVIRONMENT.
38926         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
38927
38928 2008-07-20  Bruno Haible  <bruno@clisp.org>
38929
38930         * lib/c-stack.h (c_stack_action): Add documentation.
38931         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
38932
38933 2008-07-20  Bruno Haible  <bruno@clisp.org>
38934
38935         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
38936         * modules/readlink (License): Likewise.
38937
38938 2008-07-17  Eric Blake  <ebb9@byu.net>
38939
38940         * modules/c-stack (Link): Fix typo.
38941
38942         Make c-stack use libsigsegv, when available.
38943         * modules/c-stack (Depends-on): Add libsigsegv.
38944         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
38945         needed.
38946         * lib/c-stack.c (SIGSTKSZ): Define fallback.
38947         (segv_handler, overflow_handler, c_stack_action)
38948         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
38949         implementation when libsigsegv is available, but only when using
38950         the library is necessary.
38951         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
38952         comment, explaining why XSI check fails on Linux.
38953         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
38954         * tests/test-c-stack2.sh: Tweak skip message.
38955         * NEWS: Document new link-time requirements.
38956
38957 2008-07-16  Eric Blake  <ebb9@byu.net>
38958
38959         c-stack: Expose false positives when not using libsigsegv.
38960         * modules/c-stack-tests (Files): Expand test.
38961         * tests/test-c-stack.c (main): Add means to conditionally trigger
38962         non-overflow SIGSEGV.
38963         * tests/test-c-stack2.sh: New file.
38964
38965 2008-07-14  Bruno Haible  <bruno@clisp.org>
38966
38967         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
38968         Reported by Eric Blake.
38969
38970 2008-07-14  Sam Steingold  <sds@gnu.org>
38971             Bruno Haible  <bruno@clisp.org>
38972
38973         New module libsigsegv.
38974         * modules/libsigsegv: New file.
38975         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
38976         modifications.
38977         * MODULES.html.sh (Signal handling): New section.
38978
38979 2008-07-14  Bruno Haible  <bruno@clisp.org>
38980
38981         * modules/unictype/ctype-* (Description): Add the word "function".
38982         Improves the resulting doc in MODULES.html.
38983
38984 2008-07-12  Ben Pfaff  <blp@gnu.org>
38985
38986         Add longlong module.
38987         * modules/longlong: New file.
38988
38989 2008-07-12  Bruno Haible  <bruno@clisp.org>
38990
38991         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38992         to empty.
38993
38994 2008-07-10  Ben Pfaff  <blp@gnu.org>
38995
38996         Add isnan module.
38997         * doc/posix-functions/isnan.texi: Mention new module.
38998         * lib/math.in.h: Define isnan macro if we have decided to replace
38999         it.
39000         * m4/isnan.m4: New file.
39001         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39002         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39003         also.
39004         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39005         redundancy.
39006         * m4/math_h.m4: Initialize and substitute variables for isnan
39007         module.
39008         * modules/isnan: New file.
39009         * modules/isnan-tests: New file.
39010         * modules/math: Add substitutions for new module.
39011         * tests/test-isnan.c: New file.
39012         * MODULES.html.sh: Mention new module.
39013
39014 2008-07-10  Ben Pfaff  <blp@gnu.org>
39015
39016         Add isnanf module.
39017         * lib/isnanf.m4: New file.
39018         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39019         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39020         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39021         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39022         * modules/isnanf: New file.
39023         * modules/isnanf-tests: New file.
39024         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39025         files.
39026         * tests/test-isnanf-nolibm.c: factored most of its contents into
39027         new file tests/test-isnanf.h.
39028         * tests/test-isnanf.h: New file.
39029         * tests/test-isnanf.c: New file.
39030         * MODULES.html.sh: Mention new module.
39031         * doc/glibc-functions/isnanf.texi: Mention new module.
39032
39033 2008-07-10  Ben Pfaff  <blp@gnu.org>
39034
39035         Add isnand module.
39036         * lib/isnand.h: New file.
39037         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39038         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39039         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39040         functionality also.
39041         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39042         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39043         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39044         * modules/isnand: New file.
39045         * modules/isnand-tests: New file.
39046         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39047         files.
39048         * tests/test-isnand-nolibm.c: factored most of its contents into
39049         new file tests/test-isnand.h.
39050         * tests/test-isnand.h: New file.
39051         * tests/test-isnand.c: New file.
39052         * MODULES.html.sh: Mention new module.
39053
39054 2008-07-10  Ben Pfaff  <blp@gnu.org>
39055
39056         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39057         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39058         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39059         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39060         * modules/isnanf-nolibm: Update references to renamed files.
39061         * modules/isnand-nolibm: Likewise.
39062         * modules/isnanf-nolibm-tests: Likewise.
39063         * modules/isnand-nolibm-tests: Likewise.
39064         * lib/frexp.c: Likewise.
39065         * lib/isfinite.c: Likewise.
39066         * lib/signbitd.c: Likewise.
39067         * lib/signbitf.c: Likewise.
39068         * lib/vasnprintf.c: Likewise.
39069         * tests/test-ceilf1.c: Likewise.
39070         * tests/test-ceilf2.c: Likewise.
39071         * tests/test-floorf1.c: Likewise.
39072         * tests/test-floorf2.c: Likewise.
39073         * tests/test-frexp.c: Likewise.
39074         * tests/test-round1.c: Likewise.
39075         * tests/test-round2.c: Likewise.
39076         * tests/test-roundf1.c: Likewise.
39077         * tests/test-strtod.c: Likewise.
39078         * tests/test-trunc1.c: Likewise.
39079         * tests/test-trunc2.c: Likewise.
39080         * tests/test-truncf1.c: Likewise.
39081         * tests/test-truncf2.c: Likewise.
39082         * NEWS: Mention the renamed header files.
39083
39084 2008-07-11  Jim Meyering  <meyering@redhat.com>
39085
39086         vc-list-files: make the last-resort awk code more portable
39087         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39088         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39089         does not support it.
39090
39091 2008-07-10  Eric Blake  <ebb9@byu.net>
39092
39093         Work with tar's bootstrap.
39094         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39095         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39096         an m4 comment.
39097
39098 2008-07-09  Jim Meyering  <meyering@redhat.com>
39099
39100         posix-shell.m4: fix typo that made this test malfunction
39101         * m4/posix-shell.m4: Remove capitalization in variable name.
39102
39103 2008-07-08  Bruno Haible  <bruno@clisp.org>
39104
39105         * m4/onceonly.m4: Update comments.
39106         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39107
39108 2008-07-04  Jim Meyering  <meyering@redhat.com>
39109
39110         * users.txt: Add vc-dwim.
39111         (bison, coreutils): Use the gitweb URL.
39112
39113 2008-07-03  Jim Meyering  <meyering@redhat.com>
39114
39115         * users.txt: Add libffcall.  From Sam Steingold.
39116
39117 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39118
39119         getdate.y: do not ignore TZ with relative day, month or year offset
39120         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39121         relative-date-handling, since otherwise, the latter would clobber the
39122         sole output (an updated Start value) of the tz-handling block.
39123         * tests/test-getdate.c: Tests for the fix
39124
39125 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39126
39127         Recognize 'foo_LIBRARIES += libgnu.a'.
39128         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39129         makefile snippet has already specified an installation location,
39130         also using '+='.
39131
39132 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39133
39134         getdate.y: factor out common actions
39135         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39136         Use them in place of open-coded actions.
39137
39138 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39139
39140         Add self-test for getdate module.
39141         * modules/getdate-tests: New file.
39142         * tests/test-getdate.c: New file.
39143
39144 2008-06-29  Bruno Haible  <bruno@clisp.org>
39145
39146         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39147         .gitignore.
39148         Reported by Sylvain Beucler <beuc@beuc.net>.
39149
39150 2008-06-29  Bruno Haible  <bruno@clisp.org>
39151
39152         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39153         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39154
39155 2008-06-29  Bruno Haible  <bruno@clisp.org>
39156
39157         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39158         EXTRA_DIST.
39159         Reported by Sylvain Beucler <beuc@beuc.net>.
39160
39161 2008-06-26  Jim Meyering  <meyering@redhat.com>
39162
39163         make several modules depend on the "open" module
39164         This provides slightly increased consistency when opening-for-write
39165         the name of a non-directory spelled with a trailing slash.
39166         * modules/chdir-safer: Likewise.
39167         * modules/chown: Likewise.
39168         * modules/clean-temp: Likewise.
39169         * modules/copy-file: Likewise.
39170         * modules/fchdir: Likewise.
39171         * modules/fcntl-safer: Likewise.
39172         * modules/pipe: Likewise.
39173         * modules/utime: Likewise.
39174         Prompted by Eric Blake and Bruno Haible.
39175
39176 2008-06-24  Andreas Schwab  <schwab@suse.de>
39177
39178         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39179         literals can be used as initializers for global variables.
39180
39181 2008-06-23  Eric Blake  <ebb9@byu.net>
39182
39183         Make gnulib-cache.m4 easier to diff.
39184         * gnulib-tool (func_import): Allow newlines when reading cached
39185         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39186
39187 2008-06-23  Bruno Haible  <bruno@clisp.org>
39188
39189         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39190         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39191         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39192         m4/signalblocking.m4.
39193         (gl_PREREQ_SIGACTION): Don't invoke it.
39194         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39195         gl_PREREQ_SIG_HANDLER_H.
39196         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39197         Don't check for sigaction here.
39198
39199 2008-06-23  Bruno Haible  <bruno@clisp.org>
39200
39201         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39202         (install_handlers): Don't set the SA_RESETHAND flag.
39203
39204 2008-06-23  Bruno Haible  <bruno@clisp.org>
39205
39206         * m4/sigaction.m4: Comment fixes.
39207         * lib/signal.in.h: Likewise.
39208
39209 2008-06-23  Eric Blake  <ebb9@byu.net>
39210
39211         Fix typo.
39212         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39213
39214         Avoid SA_ namespace.
39215         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39216         Reported by Ralf Wildenhues.
39217
39218         Avoid test failure due to SA_RESTORER.
39219         * tests/test-sigaction.c (SA_MASK): New macro.
39220         (main): Avoid failing due to extension flags being set.
39221         Reported by Jim Meyering.
39222
39223         Revert use of sig-handler.h in sigprocmask.c.
39224         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39225         it requires the existence of struct sigaction.
39226         * lib/sigprocmask.c (handler_t): Restore typedef.
39227         (rpl_signal, old_handlers): Use local type.
39228
39229 2008-06-22  Bruno Haible  <bruno@clisp.org>
39230
39231         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39232         conditionally.
39233         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39234
39235 2008-06-22  Bruno Haible  <bruno@clisp.org>
39236
39237         * doc/posix-functions/siginterrupt.texi: Move note.
39238
39239         * lib/signal.in.h (SA_RESTART): New macro.
39240         * lib/sigaction.c: Update comment.
39241
39242         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39243
39244         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39245         (gl_PREREQ_SIGPROCMASK): Invoke it.
39246         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39247
39248         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39249
39250         * lib/sigprocmask.c: Update a comment.
39251
39252 2008-06-21  Eric Blake  <ebb9@byu.net>
39253
39254         Use sigaction module rather than signal().
39255         * modules/c-stack (Depends-on): Add sigaction.
39256         * modules/fatal-signal (Depends-on): Likewise.
39257         * modules/nanosleep (Depends-on): Likewise.
39258         * modules/sigprocmask (Files): Add sig-handler.h.
39259         * modules/sigaction (Files): Likewise.
39260         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39261         Eggert.
39262         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39263         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39264         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39265         (init_fatal_signals): Likewise.
39266         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39267         (siginterrupt): Delete fallback.
39268         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39269         instead.
39270         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39271         siginterrupt.
39272
39273         New module sigaction, for mingw.
39274         * modules/sigaction: New module...
39275         * modules/sigaction-tests: ...and its test.
39276         * m4/sigaction.m4: New file.
39277         * lib/sigaction.c: Likewise.
39278         * tests/test-sigaction.c: Likewise.
39279         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39280         * modules/signal (Makefile.am): Likewise.
39281         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39282         needed.
39283         * doc/posix-headers/signal.texi (signal.h): Mention provided
39284         types.
39285         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39286         that sigaction is preferable.
39287         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39288         module.
39289         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39290         sigaction.
39291
39292         Improve robustness of sigprocmask by overriding signal.
39293         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39294         is in use.
39295         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39296         (SIGKILL, SIGSTOP): Provide fallbacks.
39297         (rpl_signal): Implement.
39298         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39299         signal can be called inside handlers.
39300
39301         Fix nanosleep module on mingw.
39302         * modules/nanosleep (Depends-on): Add sys_select.
39303         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39304
39305         Fix licensing of sigprocmask.
39306         * modules/raise (License): Relicense as LGPL.
39307
39308 2008-06-21  Bruno Haible  <bruno@clisp.org>
39309
39310         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39311         result if it contains question marks.
39312         Reported by Michael Geng <linux@michaelgeng.de>.
39313
39314 2008-06-19  Bruno Haible  <bruno@clisp.org>
39315
39316         Fix CVS-ism.
39317         * doc/gnulib.texi: Include updated-stamp.texi.
39318         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39319         (updated-stamp.texi): New rule.
39320         (gnulib.info): Depend on it.
39321         * doc/.gitignore: Add updated-stamp.texi.
39322         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39323
39324 2008-06-19  Bruno Haible  <bruno@clisp.org>
39325
39326         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39327         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39328
39329 2008-06-19  Eric Blake  <ebb9@byu.net>
39330
39331         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39332         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39333         Reported by Stepan Kasal.
39334
39335 2008-06-18  Bruno Haible  <bruno@clisp.org>
39336
39337         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39338         Reported by Eric Blake.
39339
39340 2008-06-18  Eric Blake  <ebb9@byu.net>
39341
39342         Work around cygwin 1.5.25 strsignal bug.
39343         * tests/test-strsignal.c: Allow for const char *.
39344         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39345
39346 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39347
39348         * users.txt: Update URL to article and add author/date
39349         information.
39350
39351 2008-06-17  Bruno Haible  <bruno@clisp.org>
39352
39353         New macro gl_DISABLE_THREADS.
39354         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39355         if the user did not pass --enable-threads or --disable-threads option.
39356         (gl_DISABLE_THREADS): New macro.
39357         Reported by Eric Blake <ebb9@byu.net>.
39358
39359 2008-06-17  Bruno Haible  <bruno@clisp.org>
39360
39361         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39362         when the macro ignores it.
39363         Based on a patch by Eric Blake <ebb9@byu.net>.
39364
39365 2008-06-17  Bruno Haible  <bruno@clisp.org>
39366
39367         * modules/tls (License): Change to LGPLv2+.
39368         Reported by Eric Blake.
39369
39370 2008-06-17  Eric Blake  <ebb9@byu.net>
39371
39372         Simplify c-stack prerequisites.
39373         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39375         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39376         check.
39377         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39378         <sys/resource.h>.
39379
39380         Move c-stack test into testsuite.
39381         * modules/c-stack-tests: New file.
39382         * lib/c-stack.c [DEBUG]: Move test program...
39383         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39384         fail test if sigaltstack is lacking.
39385         * tests/test-c-stack.sh: New driver file.
39386
39387 2008-06-16  Eric Blake  <ebb9@byu.net>
39388
39389         Use raise module consistently.
39390         * modules/fatal-signal (Depends-on): Add raise.
39391         * modules/sigprocmask (Depends-on): Likewise.
39392         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39393         * lib/sigprocmask.c (sigprocmask): Likewise.
39394         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39395         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39396
39397         Fix compliance bug in sigpending.
39398         * lib/sigprocmask.c (sigpending): Return pending array via
39399         parameter, not return value.
39400
39401 2008-06-14  Eric Blake  <ebb9@byu.net>
39402
39403         Improve obstack-printf test code.
39404         * tests/test-obstack-printf.c (test_function): Fix comment, and
39405         simplify usage of obstack_* in macros.  Add a test for coverage.
39406         Reported by Bruno Haible.
39407
39408 2008-06-14  Bruno Haible  <bruno@clisp.org>
39409
39410         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39411         array size as a constant, not as a const variable.
39412         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39413         AC_USE_SYSTEM_EXTENSIONS.
39414         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39415         Test whether the obstack_printf function actually exists.
39416         * modules/obstack-printf (Depends-on): Add extensions.
39417         (Include): Remove obstack.h.
39418         * modules/obstack-printf-posix (Depends-on): Add extensions.
39419         (Include): Remove obstack.h.
39420
39421 2008-06-13  Eric Blake  <ebb9@byu.net>
39422
39423         Add obstack-printf and obstack-printf-posix modules.
39424         * modules/obstack-printf: New file.
39425         * modules/obstack-printf-posix: Likewise.
39426         * MODULES.html.sh (Misc): Mention them.
39427         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39428         Likewise.
39429         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39430         Likewise.
39431         * modules/stdio (Makefile.am): Accomodate new modules.
39432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39433         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39434         Declare.
39435         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39436         functions.
39437         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39438         (gl_REPLACE_OBSTACK_PRINTF): New macros
39439         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39440         * tests/test-obstack-printf.c: New file.
39441         * modules/obstack-printf-tests: Likewise.
39442         * modules/obstack-printf-posix-tests: Likewise.
39443
39444 2008-06-11  Bruno Haible  <bruno@clisp.org>
39445
39446         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39447         * lib/open.c: Include errno.h.
39448         (open): Fail when attempting to write to a file that has a trailing
39449         slash.
39450         * tests/test-open.c (main): Test against trailing slash bug.
39451         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39452
39453 2008-06-10  Bruno Haible  <bruno@clisp.org>
39454
39455         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39456         for $? to work inside the trap command, with various /bin/sh-s.
39457         * tests/test-vc-list-files-cvs.sh: Likewise.
39458
39459 2008-06-10  Bruno Haible  <bruno@clisp.org>
39460
39461         * lib/acl-internal.h: Don't include gettext.h here.
39462         * lib/set-mode-acl.c: Include gettext.h here.
39463         * lib/copy-acl.c: Likewise.
39464
39465 2008-06-10  Bruno Haible  <bruno@clisp.org>
39466
39467         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
39468         * lib/wait-process.c (wait_subprocess): Likewise.
39469         * lib/execute.h (execute): Add termsigp argument.
39470         * lib/execute.c (execute): Likewise.
39471         * lib/csharpcomp.c (compile_csharp_using_pnet,
39472         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
39473         * lib/csharpexec.c (execute_csharp_using_pnet,
39474         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
39475         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
39476         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
39477         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
39478         is_jikes_present): Update.
39479         * lib/javaexec.c (execute_java_class): Update.
39480         * lib/javaversion.c (execute_and_read_line): Update.
39481         * NEWS: Document the changes.
39482         Reported by Eric Blake.
39483
39484 2008-06-10  Eric Blake  <ebb9@byu.net>
39485
39486         Add missing include.
39487         * tests/test-strstr.c (includes): Add <signal.h>.
39488         * tests/test-strcasestr.c (includes): Likewise.
39489         * tests/test-memmem.c (includes): Likewise.
39490
39491 2008-06-10  Bruno Haible  <bruno@clisp.org>
39492
39493         * lib/wait-process.c (wait_subprocess): Add an assertion.
39494
39495 2008-06-10  Bruno Haible  <bruno@clisp.org>
39496
39497         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
39498
39499 2008-06-10  Bruno Haible  <bruno@clisp.org>
39500
39501         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
39502         using alarm().
39503         * tests/test-strcasestr.c (main): Likewise.
39504         * tests/test-strstr.c (main): Likewise.
39505
39506 2008-06-09  Bruno Haible  <bruno@clisp.org>
39507
39508         Work around the Solaris 10 ACE ACLs ABI change.
39509         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
39510         declare if ACL_NO_TRIVIAL is present.
39511         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
39512         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
39513         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
39514         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
39515         define if ACL_NO_TRIVIAL is present.
39516         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
39517         and use the current ABI.
39518         (file_has_acl): Use same #if condition as elsewhere.
39519         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39520         in use, and use the current ABI.
39521         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
39522         Reported by Jim Meyering.
39523
39524 2008-06-09  Eric Blake  <ebb9@byu.net>
39525
39526         Work around environments that (stupidly) ignore SIGALRM.
39527         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39528         before using alarm().
39529         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39530         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39531         Reported by Ian Beckwith <ianb@erislabs.net>.
39532
39533         Produce autobuild blurb earlier in log.
39534         * modules/autobuild (configure.ac-early): Move AB_INIT here.
39535
39536 2008-06-09  Jim Meyering  <meyering@redhat.com>
39537         and OndÅ™ej Vašík  <ovasik@redhat.com>
39538
39539         utimens.c: correct kernel bug work-around
39540         OndÅ™ej Vašík found that the invalid return value of 280 indicates
39541         failure, not success, and the kernel bug we're trying to work
39542         around affects not just the utimensat call, but also the fallback
39543         futimens call.
39544         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
39545         not success.
39546         [HAVE_FUTIMENS]: Use the same work-around, here.
39547
39548 2008-06-09  Jim Meyering  <meyering@redhat.com>
39549
39550         add more guards around definition of ACE_-related code
39551         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
39552         ALLOW and ACE_OWNER are also defined.
39553
39554 2008-06-08  Bruno Haible  <bruno@clisp.org>
39555
39556         * lib/acl-internal.h: Add me as co-author.
39557         * lib/file-has-acl.c: Likewise.
39558         * lib/set-mode-acl.c: Likewise.
39559         * lib/copy-acl.c: Likewise.
39560
39561 2008-06-08  Bruno Haible  <bruno@clisp.org>
39562
39563         Add support for AIX ACLs.
39564         * lib/acl-internal.h (acl_nontrivial): New declaration.
39565         * lib/file-has-acl.c (acl_nontrivial): New function.
39566         (file_has_acl): Add implementation using AIX 4 ACL API.
39567         * lib/set-mode-acl.c (qset_acl): Likewise.
39568         * lib/copy-acl.c (qcopy_acl): Likewise.
39569
39570 2008-06-08  Bruno Haible  <bruno@clisp.org>
39571
39572         Add support for HP-UX ACLs.
39573         * lib/acl-internal.h (acl_nontrivial): New declaration.
39574         * lib/file-has-acl.c (acl_nontrivial): New function.
39575         (file_has_acl): Add implementation using HP-UX 11 ACL API.
39576         * lib/set-mode-acl.c (qset_acl): Likewise.
39577         * lib/copy-acl.c (qcopy_acl): Likewise.
39578
39579 2008-06-08  Bruno Haible  <bruno@clisp.org>
39580
39581         Add support for Cygwin ACLs.
39582         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
39583         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
39584         the chmod_or_fchmod call.
39585         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
39586
39587 2008-06-08  Bruno Haible  <bruno@clisp.org>
39588
39589         Fix bug with setuid modes in Solaris 10+ code.
39590         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
39591         succeeded, when the mode contains some special bits.
39592
39593 2008-06-08  Bruno Haible  <bruno@clisp.org>
39594
39595         Add support for Solaris 7..10 ACLs.
39596         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
39597         declarations.
39598         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
39599         functions.
39600         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
39601         * lib/set-mode-acl.c (qset_acl): Likewise.
39602         * lib/copy-acl.c (qcopy_acl): Likewise.
39603
39604 2008-06-08  Bruno Haible  <bruno@clisp.org>
39605
39606         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
39607         declaration.
39608         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
39609         (acl_access_nontrivial): Remove MacOS X case.
39610         (file_has_acl): Use acl_extended_nontrivial.
39611         * lib/copy-acl.c (qcopy_acl): Likewise.
39612
39613 2008-06-08  Bruno Haible  <bruno@clisp.org>
39614
39615         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
39616
39617 2008-06-08  Jim Meyering  <meyering@redhat.com>
39618
39619         * modules/acl (Maintainer): Add Bruno Haible.
39620
39621 2008-06-07  Bruno Haible  <bruno@clisp.org>
39622
39623         Improve support for Tru64 ACLs.
39624         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
39625         ACL on OSF/1.
39626
39627 2008-06-07  Bruno Haible  <bruno@clisp.org>
39628
39629         Add support for MacOS X ACLs.
39630         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
39631         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
39632         * lib/set-mode-acl.c (qset_acl): Likewise.
39633         * lib/copy-acl.c (qcopy_acl): Likewise.
39634
39635 2008-06-07  Bruno Haible  <bruno@clisp.org>
39636
39637         Fix memory leak introduced on 2008-05-22.
39638         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39639         use.
39640
39641 2008-06-07  Bruno Haible  <bruno@clisp.org>
39642
39643         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39644         to construct an empty ACL.
39645
39646 2008-06-07  Bruno Haible  <bruno@clisp.org>
39647
39648         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39649         precisely.
39650         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39651
39652 2008-06-07  Bruno Haible  <bruno@clisp.org>
39653
39654         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39655         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39656
39657 2008-06-07  Bruno Haible  <bruno@clisp.org>
39658
39659         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39660         regardless of POSIX.
39661         * doc/posix-functions/_longjmp.texi: Likewise.
39662         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39663         SystemV platform in this case.
39664
39665 2008-06-06  Eric Blake  <ebb9@byu.net>
39666
39667         Document abort() bugs.
39668         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39669
39670         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39671         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39672         sigsetjmp.
39673         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39674         siglongjmp, but only as a macro.
39675         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39676         is obsolete.
39677         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39678
39679         Tweak documentation to cover cygwin argz bugs.
39680         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39681         argz bug fix; no code change needed since no cygwin releases
39682         occurred between the last fix and the bug being tested.
39683         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39684         module and recently fixed cygwin bugs.
39685         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39686         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39687         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39688         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39689         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39690         Likewise.
39691         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39692         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39693         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39694         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39695         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39696         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39697         Likewise.
39698
39699         Avoid gcc warning on cygwin.
39700         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39701         !ACL_NO_TRIVIAL]: Avoid unused variable.
39702
39703 2008-06-05  Eric Blake  <ebb9@byu.net>
39704
39705         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39706         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39707         git-version-gen fails to come up with a version.
39708         Reported by Simon Josefsson.
39709
39710 2008-06-05  Jim Meyering  <meyering@redhat.com>
39711             Paul Eggert  <eggert@cs.ucla.edu>
39712
39713         utimens.c: work around a probable Linux kernel bug
39714         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39715         appears to be a kernel bug that causes utimensat to return 280
39716         instead of 0, indicating success.
39717
39718 2008-06-04  Bruno Haible  <bruno@clisp.org>
39719
39720         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39721         2008-06-01 commit.
39722
39723 2008-06-04  Bruno Haible  <bruno@clisp.org>
39724
39725         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39726         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39727         (file_has_acl): Use it. Save errno afterwards.
39728         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39729
39730 2008-06-03  Bruno Haible  <bruno@clisp.org>
39731
39732         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39733         draft code. Simplify #ifs.
39734         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39735         Put Solaris code after POSIX-draft code. Fix comments regarding
39736         Solaris 10, HP-UX. Mention Cygwin.
39737         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
39738
39739 2008-06-03  Eric Blake  <ebb9@byu.net>
39740
39741         Provide fallback for older kernels.
39742         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
39743         Provide runtime fallback if kernel lacks support.
39744         Reported by Mike Frysinger.
39745
39746 2008-06-02  Bruno Haible  <bruno@clisp.org>
39747
39748         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
39749         it exists.
39750
39751 2008-06-02  Bruno Haible  <bruno@clisp.org>
39752
39753         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
39754         * lib/copy-acl.c (qcopy_acl): Update comment.
39755
39756 2008-06-02  Bruno Haible  <bruno@clisp.org>
39757
39758         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
39759         like ACL APIs.
39760
39761 2008-06-02  Bruno Haible  <bruno@clisp.org>
39762
39763         * tests/test-file-has-acl.sh: Use different code for Cygwin.
39764         * tests/test-set-mode-acl.sh: Likewise.
39765         * tests/test-copy-acl.sh: Likewise.
39766         * tests/test-copy-file.sh: Likewise.
39767
39768 2008-06-02  Bruno Haible  <bruno@clisp.org>
39769
39770         * tests/test-file-has-acl.sh: Remove unused code.
39771
39772 2008-06-01  Bruno Haible  <bruno@clisp.org>
39773
39774         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
39775         (copy_acl): Just a wrapper around qcopy_acl that emits the error
39776         messages.
39777         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
39778
39779 2008-06-01  Bruno Haible  <bruno@clisp.org>
39780
39781         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
39782         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
39783         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
39784         APIs.
39785         * modules/acl-tests (configure.ac): Remove tests now contained in
39786         m4/acl.m4.
39787
39788 2008-06-02  Jim Meyering  <meyering@redhat.com>
39789
39790         announce-gen: use a better key-server host name
39791         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
39792         it may be more consistently reliable.  Suggested by Werner Koch
39793         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
39794
39795 2008-06-01  Bruno Haible  <bruno@clisp.org>
39796
39797         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
39798         Reported by Voroskoi Andras <voroskoi@gmail.com>.
39799
39800 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
39801
39802         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
39803
39804 2008-06-01  Bruno Haible  <bruno@clisp.org>
39805
39806         New ACL tests.
39807         * tests/test-file-has-acl.sh: New file.
39808         * tests/test-file-has-acl.c: New file.
39809         * tests/test-set-mode-acl.sh: New file.
39810         * tests/test-set-mode-acl.c: New file.
39811         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
39812         * tests/test-copy-acl.c: New file.
39813         * modules/acl-tests: New file, based on modules/copy-file-tests.
39814         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
39815         (Depends-on): Add acl-tests.
39816         (configure.ac): Remove checks.
39817         (Makefile.am): Don't create test-sameacls program here any more.
39818
39819 2008-06-01  Bruno Haible  <bruno@clisp.org>
39820
39821         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
39822         * tests/test-sameacls.c: Include progname.h.
39823         (main): Invoke set_program_name. Portability fixes for MacOS X,
39824         Solaris, HP-UX.
39825
39826 2008-06-01  Bruno Haible  <bruno@clisp.org>
39827
39828         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
39829         function.
39830         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
39831
39832 2008-06-01  Bruno Haible  <bruno@clisp.org>
39833
39834         * modules/rpmatch (Depends-on): Add strdup.
39835
39836 2008-06-01  Bruno Haible  <bruno@clisp.org>
39837
39838         * lib/pipe.c: Include unistd-safer.h.
39839         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
39840         * modules/pipe (Depends-on): Add unistd-safer.
39841
39842 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39843
39844         * modules/autobuild (configure.ac): Call AB_INIT.
39845
39846 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39847
39848         * tests/test-getaddrinfo.c: Don't print debug messages by default.
39849         Suggested by Bruno Haible <bruno@clisp.org>.
39850
39851 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39852
39853         * tests/test-base64.c: Cast size_t to unsigned long when invoking
39854         printf.  Use %lu instead of %d.  Reported by Bruno Haible
39855         <bruno@clisp.org>.
39856
39857 2008-05-29  Eric Blake  <ebb9@byu.net>
39858
39859         Prefer new POSIX 200x interfaces over futimesat.
39860         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
39861         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
39862         when available.
39863         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
39864
39865 2008-05-28  Bruno Haible  <bruno@clisp.org>
39866
39867         * modules/stpcpy (License): Change to LGPLv2+.
39868         Requested by David Lutterkort <dlutter@redhat.com>.
39869
39870 2008-05-27  Bruno Haible  <bruno@clisp.org>
39871
39872         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
39873         current mingw.
39874         Reported by Jose E. Marchesi <jemarch@gnu.org>.
39875
39876 2008-05-27  Bruno Haible  <bruno@clisp.org>
39877
39878         * modules/iconv_open (Link): New section, from module 'iconv'.
39879         * modules/striconv (Link): Likewise.
39880         * modules/striconveh (Link): Likewise.
39881         * modules/xstriconv (Link): Likewise.
39882         * modules/unicodeio (Link): Likewise.
39883         * modules/propername (Link): Likewise.
39884         Reported by Jim Meyering.
39885
39886 2008-05-26  Jim Meyering  <meyering@redhat.com>
39887
39888         sha256: do not artificially restrict buffer length to be < 2^32
39889         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
39890         uint32_t to size_t.
39891         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
39892         to match.
39893
39894         avoid unaligned access errors, e.g., on sparc
39895         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
39896         direct access through a possibly-unaligned uint64* pointer.
39897         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
39898         direct access through a possibly-unaligned uint32* pointer.
39899         Prompted by this patch from Tom "spot" Callaway:
39900         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
39901
39902         sha512.c: fix typo in comment
39903         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
39904
39905 2008-05-25  Bruno Haible  <bruno@clisp.org>
39906
39907         * lib/set-mode-acl.c: Renamed from lib/acl.c.
39908         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
39909         (Makefile.am): Update lib_SOURCES.
39910
39911 2008-05-25  Bruno Haible  <bruno@clisp.org>
39912
39913         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
39914
39915 2008-05-25  Jim Meyering  <meyering@redhat.com>
39916
39917         useless-if-before-free: freed expr may have white-space differences
39918         * build-aux/useless-if-before-free: Recognize cases in which the
39919         freed expression differs from the tested one in embedded white
39920         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
39921         $1 was used, so we can't make any regexp shy.  Improved tests now
39922         detect this.
39923
39924         useless-if-before-free: accept white space in the expression.
39925         * build-aux/useless-if-before-free: For now, any white space
39926         in the expression must be identical in the free argument.
39927
39928         useless-if-before-free: efficiency tweak
39929         * build-aux/useless-if-before-free: Make the expression-matching
39930         regexp "shy".
39931         Make the *outer* regexp shy, not the expr-matching one.
39932
39933         update code-in-comment to accept cast of free arg
39934         * build-aux/useless-if-before-free: Update regexp.
39935
39936 2008-05-25  Bruno Haible  <bruno@clisp.org>
39937
39938         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
39939         * modules/copy-file-tests (Files, Makefile.am): Update.
39940         * tests/test-copy-file.c (func_test_copy): Update.
39941
39942 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
39943
39944         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
39945
39946 2008-05-23  Bruno Haible  <bruno@clisp.org>
39947
39948         Improve support for ACLs on OSF/1.
39949         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
39950         Remove fallback for unknown flavors of ACLs.
39951
39952 2008-05-22  Bruno Haible  <bruno@clisp.org>
39953
39954         Add support for ACLs on OSF/1.
39955         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
39956         replacements.
39957         (acl_free_text): New macro fallback.
39958         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
39959         acl_free.
39960         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
39961         acl_free_text function. Require AC_C_INLINE.
39962
39963 2008-05-22  Bruno Haible  <bruno@clisp.org>
39964
39965         Make copy_acl work on MacOS X 10.5.
39966         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
39967         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
39968         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
39969         If MODE_INSIDE_ACL, don't assume that every system has the same text
39970         representation for ACLs as FreeBSD.
39971         * lib/copy-acl.c (copy_acl): Add support for platforms with
39972         !MODE_INSIDE_ACL.
39973         * lib/file-has-acl.c (file_has_acl): Likewise.
39974         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
39975         FreeBSD, MacOS X, or IRIX, respectively.
39976
39977 2008-05-22  Bruno Haible  <bruno@clisp.org>
39978
39979         * lib/acl.h: Don't include <sys/acl.h>.
39980         (GETACLCNT): Move fallback to lib/acl-internal.h.
39981         * lib/acl-internal.h: Include <sys/acl.h> here.
39982         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39983
39984 2008-05-22  Bruno Haible  <bruno@clisp.org>
39985
39986         Split off copy_acl function to separate file.
39987         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39988         * lib/acl.c (copy_acl): Moved function to separate file.
39989         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39990         * modules/acl (Files): Add lib/copy-acl.c.
39991         (Makefiles.am): Augment lib_SOURCES.
39992
39993 2008-05-22  Bruno Haible  <bruno@clisp.org>
39994
39995         * modules/copy-file-tests: New file.
39996         * tests/test-copy-file.sh: New file.
39997         * tests/test-copy-file.c: New file.
39998         * tests/test-copy-file-sameacls.c: New file.
39999
40000 2008-05-22  Eric Blake  <ebb9@byu.net>
40001
40002         Avoid gcc warning.
40003         * tests/test-memcmp.c (main): Pass NULL indirectly.
40004
40005 2008-05-21  Bruno Haible  <bruno@clisp.org>
40006
40007         Add reference doc about ACLs.
40008         * doc/acl-resources.txt: New file.
40009         * doc/acl-cygwin.txt: New file.
40010
40011 2008-05-21  Bruno Haible  <bruno@clisp.org>
40012
40013         Avoid one more warning from gcc.
40014         * lib/vasnprintf.c (IF_LINT): Update comments.
40015         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40016
40017 2008-05-21  Jim Meyering  <meyering@redhat.com>
40018
40019         avoid a warning from gcc
40020         * lib/vasnprintf.c (IF_LINT): Define.
40021         (scale10_round_decimal_long_double):
40022         Use it to avoid a "may be used uninitialized" warning.
40023         (scale10_round_decimal_double): Likewise.
40024
40025 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40026
40027         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40028         declared.
40029
40030 2008-05-20  Bruno Haible  <bruno@clisp.org>
40031
40032         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40033         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40034
40035 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40036
40037         * modules/memcmp-tests: New file.
40038         * tests/test-memcmp.c: New file.
40039
40040 2008-05-19  Bruno Haible  <bruno@clisp.org>
40041
40042         * modules/propername (Notice, configure.ac): Put quoted "..." into
40043         --keyword option.
40044         * lib/propername.h: Update comments accordingly.
40045         Reported by Eric Blake.
40046
40047 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40048
40049         * modules/getpass-gnu (Depends-on): Add fseeko.
40050
40051 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40052
40053         * modules/base64-tests: New file.
40054
40055 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40056
40057         * lib/base64.c (base64_decode_ctx): If a decode context structure
40058         was passed in use it to ignore newlines.  If a context structure
40059         was _not_ passed in, continue to treat newlines as garbage (this
40060         is the historical behavior).  Formerly base64_decode.
40061         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40062         takes a decode context structure.
40063         * lib/base64.h (base64_decode): Macro for four-argument calls.
40064         (base64_decode_alloc): Likewise.
40065         * lib/base64.c (base64_decode_ctx): If a decode context structure
40066         was passed in use it to ignore newlines.  If a context structure
40067         was _not_ passed in, continue to treat newlines as garbage (this
40068         is the historical behavior).  Formerly base64_decode.
40069         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40070         takes a decode context structure.
40071         * lib/base64.h (base64_decode): Macro for four-argument calls.
40072         (base64_decode_alloc): Likewise.
40073
40074 2008-05-19  Jim Meyering  <meyering@redhat.com>
40075
40076         avoid a warning from gcc
40077         * lib/trim.c (IF_LINT): Define.
40078         (trim2): Use it to avoid a "may be used uninitialized" warning.
40079
40080         Fix doc typo.
40081         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40082
40083 2008-05-19  Bruno Haible  <bruno@clisp.org>
40084
40085         * doc/glibc-functions/getpass.texi: Document limits of other
40086         implementations.
40087
40088 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40089             Bruno Haible <bruno@clisp.org>
40090
40091         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40092
40093 2008-05-18  Bruno Haible  <bruno@clisp.org>
40094
40095         * modules/propername: New file, from GNU gettext.
40096         * lib/propername.h: New file, from GNU gettext.
40097         * lib/propername.c: New file, from GNU gettext.
40098         * MODULES.html.sh (Internationalization functions): Add propername.
40099
40100 2008-05-16  Jim Meyering  <meyering@redhat.com>
40101             Bruno Haible  <bruno@clisp.org>
40102
40103         Avoid some warnings from "gcc -Wshadow".
40104         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40105
40106 2008-05-15  Eric Blake  <ebb9@byu.net>
40107
40108         Extend previous patch to cygwin 1.7.0.
40109         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40110         fast implementation in cygwin >= 1.7.0.
40111         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40112         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40113
40114 2008-05-15  Bruno Haible  <bruno@clisp.org>
40115
40116         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40117         implementation in glibc >= 2.9.
40118         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40119         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40120
40121 2008-05-15  Bruno Haible  <bruno@clisp.org>
40122
40123         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40124         (Unicode string functions): Add unilbrk/*.
40125         Reported by Karl Berry.
40126
40127 2008-05-15  Eric Blake  <ebb9@byu.net>
40128
40129         Fix violation of <stdbool.h> replacement in regex.
40130         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40131         * lib/regexec.c (re_search_internal): Likewise.
40132         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40133
40134 2008-05-15  Jim Meyering  <meyering@redhat.com>
40135
40136         avoid distracting test output when git or cvs is not found
40137         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40138         * tests/test-vc-list-files-git.sh: Likewise.
40139
40140 2008-05-15  Eric Blake  <ebb9@byu.net>
40141
40142         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40143         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40144         glibc version.
40145         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40146         * doc/posix-functions/strstr.texi (strstr): Likewise.
40147         * lib/str-two-way.h (MAX): Sychronize with glibc.
40148
40149 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40150
40151         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40152         opr.ctx_type.
40153         (calc_first): Initialize constraint field.
40154         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40155         Fix grammar.
40156         (duplicate_node): Merge constraint field for all node types.
40157         (calc_eclosure_iter): Look at constraint field for all node types.
40158         * lib/regex_internal.c (create_cd_newstate): Don't look at
40159         opr.ctx_type.
40160
40161 2008-05-14  Bruno Haible  <bruno@clisp.org>
40162
40163         Help GCC to do better code generation.
40164         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40165         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40166         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40167         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40168         Declare with attribute 'malloc' if supported.
40169
40170 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40171
40172         use "echo STR|wc -c" rather than unportable "expr length STR"
40173         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40174         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40175
40176 2008-05-14  Jim Meyering  <meyering@redhat.com>
40177
40178         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40179         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40180         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40181         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40182         via Collin Lasse.
40183
40184 2008-05-14  Eric Blake  <ebb9@byu.net>
40185
40186         Avoid quadratic growth in gl_LIBSOURCES.
40187         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40188         Suggested by Bruno Haible.
40189
40190         Test xmemdup0.
40191         * modules/xmemdup0-tests: New file.
40192         * tests/test-xmemdup0.c: Likewise.
40193
40194 2008-05-13  Eric Blake  <ebb9@byu.net>
40195
40196         Split xmemdup0 into its own module.
40197         * modules/xmemdup0: New file.
40198         * lib/xmemdup0.h: Likewise.
40199         * lib/xmemdup0.c: Likewise.
40200         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40201         * lib/xalloc.h (xmemdup0): Remove.
40202         * lib/xmalloc.c (xmemdup0): Likewise.
40203
40204 2008-05-13  Eric Blake  <ebb9@byu.net>
40205             Bruno Haible  <bruno@clisp.org>
40206
40207         Reduce number of forks required during autoconf.
40208         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40209         and gl_LIBSOURCES_DIR.
40210         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40211         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40212         m4_syscmd per file.
40213         <m4_foreach_w>: Move...
40214         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40215
40216 2008-05-13  Eric Blake  <ebb9@byu.net>
40217
40218         * gnulib-tool: Fix various comment typos.
40219
40220 2008-05-12  Bruno Haible  <bruno@clisp.org>
40221
40222         Tailor the linebreaking algorithm.
40223         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40224
40225 2008-05-12  Bruno Haible  <bruno@clisp.org>
40226
40227         Update to Unicode 5.0.0.
40228         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40229         LBP_JV, LBP_JT. Redistribute values.
40230         (unilbrk_table): Change size.
40231         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40232         Unicode TR#14 rev. 22.
40233         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40234         LBP_JV, LBP_JT. Redistribute values.
40235         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40236         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40237         Update.
40238         * lib/unilbrk/lbrkprop1.h: Regenerated.
40239         * lib/unilbrk/lbrkprop2.h: Regenerated.
40240         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40241         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40242         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40243         Likewise.
40244         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40245         Likewise.
40246         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40247         result.
40248         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40249         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40250         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40251         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40252         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40253         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40254
40255 2008-05-11  Bruno Haible  <bruno@clisp.org>
40256
40257         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40258
40259 2008-05-11  Bruno Haible  <bruno@clisp.org>
40260
40261         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40262         * modules/unilbrk/gen-lbrk: New file.
40263
40264 2008-05-11  Bruno Haible  <bruno@clisp.org>
40265
40266         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40267         * m4/sha512.m4 (gl_SHA512): Likewise.
40268
40269 2008-05-11  Jim Meyering  <meyering@redhat.com>
40270
40271         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40272         * modules/crypto/sha256: New file.
40273         * modules/crypto/sha512: Likewise.
40274         * lib/sha256.c: Likewise.
40275         * lib/sha256.h: Likewise.
40276         * lib/sha512.c: Likewise.
40277         * lib/sha512.h: Likewise.
40278         * lib/u64.h: Likewise.
40279         * m4/sha256.m4: Likewise.
40280         * m4/sha512.m4: Likewise.
40281         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40282
40283 2008-05-10  Bruno Haible  <bruno@clisp.org>
40284
40285         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40286         (Input/Output <stdio.h>): Add xprintf.
40287         (Signal handling <signal.h>): Add strsignal.
40288         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40289         (Core language properties): Add func.
40290         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40291         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40292         strings.
40293         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40294         (Input/output): New section.
40295         (File system functions): Add openat-die, stat-macros.
40296         (Networking functions): Add sockets.
40297         (Unicode string functions): Add unictype/*.
40298         (Support for building libraries and executables): Add gperf.
40299         (Support for building documentation): Add agpl-3.0.
40300         (Misc): Add nocrash.
40301
40302 2008-05-10  Bruno Haible  <bruno@clisp.org>
40303
40304         * modules/unictype/gen-ctype: New file.
40305
40306 2008-05-10  Jim Meyering  <meyering@redhat.com>
40307
40308         Make chdir-safer.c more efficient on a system with no symlinks.
40309         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40310         also if ELOOP is zero.  Suggested by Bruno Haible.
40311
40312         Make chdir-safer.c slightly safer.
40313         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40314         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40315
40316         Avoid compile failure on systems without ELOOP (like mingw).
40317         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40318         Reported by Bruno Haible.
40319
40320 2008-05-10  Bruno Haible  <bruno@clisp.org>
40321
40322         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40323         (is_utf8_encoding): Use a case-insensitive comparison.
40324         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40325         streq.
40326
40327 2008-05-10  Bruno Haible  <bruno@clisp.org>
40328
40329         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40330         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40331         * lib/unilbrk/ulc-common.h (iconv_string_length,
40332         iconv_string_keeping_offsets): Remove declarations.
40333         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40334         Don't include <iconv.h>, streq.h, xsize.h.
40335         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40336         conversion.
40337         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40338         <iconv.h>, streq.h, xsize.h.
40339         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40340         conversion.
40341         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40342         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40343         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40344         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40345
40346 2008-05-10  Bruno Haible  <bruno@clisp.org>
40347
40348         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40349         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40350
40351         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40352         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40353
40354         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40355         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40356
40357         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40358         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40359
40360         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40361         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40362
40363         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40364         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40365
40366         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40367         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40368
40369         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40370         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40371
40372 2008-05-10  Bruno Haible  <bruno@clisp.org>
40373
40374         Split up 'linebreak' module.
40375         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40376         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40377         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40378         modifications.
40379         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40380         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40381         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40382         lib/linebreak.c.
40383         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40384         lib/linebreak.c.
40385         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40386         lib/linebreak.c.
40387         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40388         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40389         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40390         lib/linebreak.c.
40391         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40392         lib/linebreak.c.
40393         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40394         lib/linebreak.c.
40395         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40396         lib/linebreak.c.
40397         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40398         lib/linebreak.c.
40399         * modules/unilbrk/base: New file.
40400         * modules/unilbrk/tables: New file.
40401         * modules/unilbrk/u8-possible-linebreaks: New file.
40402         * modules/unilbrk/u16-possible-linebreaks: New file.
40403         * modules/unilbrk/u32-possible-linebreaks: New file.
40404         * modules/unilbrk/ulc-common: New file.
40405         * modules/unilbrk/ulc-possible-linebreaks: New file.
40406         * modules/unilbrk/u8-width-linebreaks: New file.
40407         * modules/unilbrk/u16-width-linebreaks: New file.
40408         * modules/unilbrk/u32-width-linebreaks: New file.
40409         * modules/unilbrk/ulc-width-linebreaks: New file.
40410         * lib/linebreak.h: Remove file.
40411         * lib/linebreak.c: Remove file.
40412         * m4/linebreak.m4: Remove file.
40413         * modules/linebreak: Remove file.
40414         * NEWS: Mention the changes.
40415
40416 2008-05-09  Eric Blake  <ebb9@byu.net>
40417
40418         Add xmemdup0.
40419         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40420         implementation.
40421         * lib/xmalloc.c (xmemdup0): New C implementation.
40422
40423 2008-05-08  Bruno Haible  <bruno@clisp.org>
40424
40425         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40426
40427 2008-05-07  Eric Blake  <ebb9@byu.net>
40428
40429         Support cross-compilation of <wctype.h>.
40430         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40431         AC_CACHE_CHECK.
40432
40433 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40434
40435         * build-aux/vc-list-files: Add support for bzr.
40436
40437 2008-05-03  Jim Meyering  <meyering@redhat.com>
40438
40439         avoid failed assertion with tight malloc
40440         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40441
40442 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40443
40444         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40445         are needed from arpa/inet.h.
40446         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40447         Reported by Bruno Haible.
40448
40449 2008-05-02  Jim Meyering  <meyering@redhat.com>
40450
40451         avoid compilation error on FreeBSD 6
40452         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40453
40454 2008-05-01  Jim Meyering  <meyering@redhat.com>
40455
40456         useless-if-before-free: correct --help's exit status description
40457         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40458         for one or more matches, etc.  Reported by Bruno Haible.
40459
40460         vc-list-files: make the stand-alone gnulib test work
40461         * modules/vc-list-files-tests (configure.ac):
40462         Define and AC_SUBST abs_aux_dir.
40463         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
40464         $(abs_top_srcdir) to each script and having each of them
40465         duplicate the work of setting PATH, set PATH here, using
40466         the new variable, abs_aux_dir instead.
40467         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
40468         * tests/test-vc-list-files-git.sh: Likewise.
40469         Reported by Bruno Haible.
40470
40471 2008-05-01  Bruno Haible  <bruno@clisp.org>
40472
40473         * lib/getndelim2.c (getndelim2): Fix newsize computation during
40474         reallocation. Rename 'done' to 'found_delimiter'.
40475
40476 2008-05-01  Jim Meyering  <meyering@redhat.com>
40477
40478         vc-list-files: accommodate /bin/sh like the one from Solaris 10
40479         * build-aux/vc-list-files: Use `...`, not $(...).
40480
40481 2008-04-30  Jim Meyering  <meyering@redhat.com>
40482
40483         add tests for vc-list-files
40484         * modules/vc-list-files-tests: New module.
40485         * tests/test-vc-list-files-cvs.sh: New file.
40486         * tests/test-vc-list-files-git.sh: New file.
40487
40488         avoid a warning from gcc
40489         * lib/getndelim2.c (IF_LINT): Define.
40490         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
40491
40492         vc-list-files: work properly with build-aux/cvsu, too
40493         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
40494         to all cvs-based clauses.
40495
40496         vc-list-files: work properly in the CVS+awk case, too
40497         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
40498
40499         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
40500         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
40501         take more than one file argument, so .  Add quotes, just in case $dir
40502         ever contains a shell meta-character.  Prompted by Soren Hansen in
40503         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
40504
40505 2008-04-29  Eric Blake  <ebb9@byu.net>
40506
40507         Optimize getndelim2 to use block operations when possible.
40508         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
40509         freadseek, and memchr2.
40510         * lib/getndelim2.c (getndelim2): Use them for block reads.
40511
40512 2008-04-29  Bruno Haible  <bruno@clisp.org>
40513
40514         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
40515         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40516         * modules/inet_ntop (Depends-on): Add extensions.
40517         * modules/inet_pton (Depends-on): Likewise.
40518         Reported by Simon Josefsson.
40519
40520 2008-04-29  Jim Meyering  <meyering@redhat.com>
40521
40522         When the is more than one match in a block, match all of them.
40523         * build-aux/useless-if-before-free: Iterate through each block
40524         until there are no more matches.
40525
40526         Fix broken useless-if-before-free script.
40527         * build-aux/useless-if-before-free: Fix typo: missing "?" after
40528         the expression to match cast of argument to free-like function.
40529
40530 2008-04-29  Eric Blake  <ebb9@byu.net>
40531
40532         Use new header.
40533         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
40534
40535 2008-04-29  Jim Meyering  <meyering@redhat.com>
40536
40537         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
40538         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
40539         by gnulib to exist and to declare e.g., inet_ntop.
40540         Don't include "inet_ntop.h", now removed.
40541
40542         * m4/arpa_inet_h.m4: Remove trailing blanks.
40543
40544 2008-04-29  Eric Blake  <ebb9@byu.net>
40545
40546         Silence valgrind on safe reads beyond potential array bounds.
40547         * lib/rawmemchr.valgrind: New file.
40548         * lib/strchrnul.valgrind: Likewise.
40549         * modules/rawmemchr (Files): Distribute new file.
40550         * modules/strchrnul (Files): Likewise.
40551         Suggested by Bruno Haible.
40552
40553 2008-04-29  Bruno Haible  <bruno@clisp.org>
40554
40555         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
40556         (inet_ntop, inet_pton): Change portability warning's wording.
40557         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
40558         Invoke gl_CHECK_NEXT_HEADERS.
40559         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
40560         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
40561         set ARPA_INET_H.
40562         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40563         * modules/arpa_inet (Description): No longer only for systems that
40564         lack it.
40565         (Depends-on): Add include_next.
40566         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
40567         HAVE_ARPA_INET_H.
40568
40569 2008-04-29  Jim Meyering  <meyering@redhat.com>
40570
40571         * modules/mkdir (License): Re-license as LGPLv2+.
40572
40573 2008-04-29  Bruno Haible  <bruno@clisp.org>
40574
40575         * modules/rawmemchr (Maintainer): Set to Eric.
40576         * modules/strchrnul (Maintainer): Likewise.
40577
40578 2008-04-29  Simon Josefsson  <simon@josefsson.org>
40579
40580         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
40581         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
40582
40583         * modules/arpa_inet (arpa/inet.h): Use them.
40584
40585 2008-04-28  Eric Blake  <ebb9@byu.net>
40586
40587         Test getndelim2.
40588         * modules/getndelim2-tests: New file.
40589         * tests/test-getndelim2.c: Likewise.
40590         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
40591         stream.
40592         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
40593
40594         * MODULES.html.sh: Document new module.
40595
40596 2008-04-20  Bruno Haible  <bruno@clisp.org>
40597
40598         * lib/c-stack.c (die): Use raise.
40599         * modules/c-stack (Depends-on): Add raise.
40600
40601 2008-04-28  Bruno Haible  <bruno@clisp.org>
40602
40603         Expect rpmatch to be declared.
40604         * lib/yesno.c (rpmatch): Remove declaration.
40605
40606         Declare rpmatch.
40607         * lib/stdlib.in.h (rpmatch): New declaration.
40608         * lib/rpmatch.c: Include <stdlib.h> first.
40609         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
40610         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
40611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
40612         HAVE_RPMATCH.
40613         * modules/rpmatch (Depends-on): Add stdlib, extensions.
40614         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40615         (Include): Set to <stdlib.h>.
40616         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
40617         HAVE_RPMATCH.
40618         * NEWS: Document the change.
40619
40620 2008-04-28  Bruno Haible  <bruno@clisp.org>
40621
40622         Change rpmatch to use nl_langinfo when appropriate.
40623         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
40624         (N_): New macro.
40625         (localized_pattern): New function/macro.
40626         (try): Remove match, nomatch arguments. Copy the pattern into safe
40627         memory before caching it.
40628         (rpmatch): Use localized_pattern. Add translator comments.
40629         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
40630         Suggested by Eric Blake.
40631         * modules/rpmatch (Depends-on): Add stdbool.
40632
40633 2008-04-28  Eric Blake  <ebb9@byu.net>
40634
40635         Add rawmemchr module, matching glibc.
40636         * modules/string (Makefile.am): New indicator.
40637         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40638         * lib/string.in.h (rawmemchr): Declare when appropriate.
40639         * modules/rawmemchr: New file.
40640         * m4/rawmemchr.m4: Likewise.
40641         * lib/rawmemchr.c: Likewise.
40642         * modules/rawmemchr-tests: Likewise.
40643         * tests/test-rawmemchr.c: Likewise.
40644         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40645         module.
40646         * modules/strchrnul (Depends-on): Add rawmemchr.
40647         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40648
40649         Whitespace cleanup.
40650         * tests/test-strchrnul.c: Reindent.
40651         * lib/strchrnul.c: Likewise.
40652
40653         Optimize and test strchrnul.
40654         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40655         * modules/strchrnul-tests: New file.
40656         * tests/test-strchrnul.c: Likewise.
40657
40658         Remove intprops dependency.
40659         * modules/memchr (Depends-on): Remove intprops.
40660         * modules/memrchr (Depends-on): Likewise.
40661         * modules/memchr2 (Depends-on): Likewise.
40662         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40663         * lib/memrchr.c (__memrchr): Likewise.
40664         * lib/memrchr2.c (memchr2): Likewise.
40665         Reported by Simon Josefsson.
40666
40667 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40668
40669         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40670         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40671
40672 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40673
40674         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40675
40676         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40677
40678         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40679
40680         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40681         declarations.
40682         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40683
40684         * m4/inet_pton.m4: Don't check for header files.
40685
40686         * m4/inet_ntop.m4: Don't check for header files.
40687
40688 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40689
40690         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40691         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40692         trigger for cygwin).
40693         Reported by Bruno Haible  <bruno@clisp.org>.
40694
40695 2008-04-28  Bruno Haible  <bruno@clisp.org>
40696
40697         * doc/posix-functions/strdup.texi: Mention mingw problem.
40698
40699 2008-04-27  Bruno Haible  <bruno@clisp.org>
40700
40701         * modules/stat-time-tests (Depends-on): Add sleep.
40702         * tests/test-stat-time.c (force_unlink): New function.
40703         (cleanup): Use it.
40704         (test_mtime): Remove the ctime related tests.
40705         (test_ctime): New function, containing the ctime related tests.
40706         (main): Call test_ctime, except on native Windows platforms.
40707
40708 2008-04-27  Bruno Haible  <bruno@clisp.org>
40709
40710         * lib/rpmatch.c (rpmatch): Add some comments.
40711         Reported by James Youngman <jay@gnu.org>.
40712
40713 2008-04-27  Bruno Haible  <bruno@clisp.org>
40714
40715         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40716         quiet NaNs.
40717
40718 2008-04-27  Bruno Haible  <bruno@clisp.org>
40719
40720         Make test-yesno.sh work on mingw.
40721         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40722         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40723         (main): Set stdin to binary mode.
40724         * modules/yesno-tests (Depends-on): Add binary-io.
40725
40726 2008-04-27  Bruno Haible  <bruno@clisp.org>
40727
40728         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40729         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40730         argument that lie outside the IEEE 854 domain.
40731         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40732         (gl_ISFINITE): Use it.
40733         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40734
40735 2008-04-27  Bruno Haible  <bruno@clisp.org>
40736
40737         Allow local renaming in config.h.
40738         * lib/memrchr.c (memrchr): Don't undefine outside libc.
40739
40740 2008-04-27  Bruno Haible  <bruno@clisp.org>
40741
40742         * lib/memchr.c (__memchr): Change type of 'i'.
40743         * lib/memchr2.c (memchr2): Likewise.
40744
40745 2008-04-26  Eric Blake  <ebb9@byu.net>
40746         and Bruno Haible  <bruno@clisp.org>
40747
40748         Optimize and test memrchr.
40749         * modules/memrchr (Depends-on): Add intprops.
40750         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
40751         * modules/memrchr-tests: New file.
40752         * tests/test-memrchr.c: New file.
40753
40754 2008-04-26  Bruno Haible  <bruno@clisp.org>
40755
40756         Add tentative support for DragonFly BSD.
40757         * lib/stdio-impl.h: Add macros for DragonFly BSD.
40758         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
40759         fp.
40760         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40761         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
40762         * lib/fpurge.c (fpurge): Likewise.
40763         * lib/freadable.c (freaadable): Likewise.
40764         * lib/freadahead.c (freadahead): Likewise.
40765         * lib/freading.c (freading): Likewise.
40766         * lib/freadptr.c (freadptr): Likewise.
40767         * lib/freadseek.c (freadptrinc): Likewise.
40768         * lib/fseeko.c (fseeko): Likewise.
40769         * lib/fseterr.c (fseterr): Likewise.
40770         * lib/fwritable.c (fwritable): Likewise.
40771         * lib/fwriting.c (fwriting): Likewise.
40772
40773 2008-04-26  Bruno Haible  <bruno@clisp.org>
40774
40775         * lib/stdio-impl.h: New file.
40776         * lib/fbufmode.c: Include stdio-impl.h.
40777         (fbufmode): Use fp_, remove redundant #defines.
40778         * lib/fflush.c: Include stdio-impl.h.
40779         (clear_ungetc_buffer): Remove redundant #defines.
40780         * lib/fpurge.c: Include stdio-impl.h.
40781         (fpurge): Remove redundant #defines.
40782         * lib/freadable.c: Include stdio-impl.h.
40783         (freadable): Remove redundant #defines.
40784         * lib/freadahead.c: Include stdio-impl.h.
40785         (freadahead): Remove redundant #defines.
40786         * lib/freading.c: Include stdio-impl.h.
40787         (freading): Remove redundant #defines.
40788         * lib/freadptr.c: Include stdio-impl.h.
40789         (freadptr): Remove redundant #defines.
40790         * lib/freadseek.c: Include stdio-impl.h.
40791         (freadptrinc): Remove redundant #defines.
40792         * lib/fseeko.c: Include stdio-impl.h.
40793         (rpl_fseeko): Remove redundant #defines.
40794         * lib/fseterr.c: Include stdio-impl.h.
40795         (fseterr): Remove redundant #defines.
40796         * lib/fwritable.c: Include stdio-impl.h.
40797         (fwritable: Remove redundant #defines.
40798         * lib/fwriting.c: Include stdio-impl.h.
40799         (fwriting): Remove redundant #defines.
40800         * modules/fbufmode (Files): Add lib/stdio-impl.h.
40801         * modules/fflush (Files): Likewise.
40802         * modules/fpurge (Files): Likewise.
40803         * modules/freadable (Files): Likewise.
40804         * modules/freadahead (Files): Likewise.
40805         * modules/freading (Files): Likewise.
40806         * modules/freadptr (Files): Likewise.
40807         * modules/freadseek (Files): Likewise.
40808         * modules/fseeko (Files): Likewise.
40809         * modules/fseterr (Files): Likewise.
40810         * modules/fwritable (Files): Likewise.
40811         * modules/fwriting (Files): Likewise.
40812
40813 2008-04-26  Bruno Haible  <bruno@clisp.org>
40814
40815         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40816         restore_seek_optimization, update_fpos_cache): New functions, extracted
40817         from rpl_fflush.
40818         (rpl_fflush): Use them.
40819         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
40820         (gl_REPLACE_FFLUSH): Use it.
40821
40822 2008-04-26  Bruno Haible  <bruno@clisp.org>
40823
40824         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
40825         on Solaris.
40826         * tests/test-xstrtoimax.sh: Likewise.
40827         * tests/test-xstrtoumax.sh: Likewise.
40828         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40829
40830 2008-04-26  Bruno Haible  <bruno@clisp.org>
40831
40832         * modules/memchr-tests: New file.
40833         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
40834
40835 2008-04-26  Eric Blake  <ebb9@byu.net>
40836             Bruno Haible  <bruno@clisp.org>
40837
40838         * lib/memchr.c: Include intprops.h.
40839         (__memchr): Optimize parallel detection of matching bytes. Rename local
40840         variables. Add explanatory comments.
40841
40842 2008-04-26  Bruno Haible  <bruno@clisp.org>
40843
40844         Fix module 'memchr', broken since 2000-10-28.
40845         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
40846
40847 2008-04-26  Bruno Haible  <bruno@clisp.org>
40848
40849         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
40850         comments.
40851
40852 2008-04-25  Eric Blake  <ebb9@byu.net>
40853
40854         Use native fstatat on cygwin 1.7.0.
40855         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
40856         first.
40857
40858 2008-04-23  Eric Blake  <ebb9@byu.net>
40859
40860         Improve memchr2 performance.
40861         * lib/memchr2.c (memchr2): Further optimize parallel detection of
40862         NUL bytes.
40863         * modules/memchr2 (Depends-on): Use intprops.h.
40864
40865 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40866
40867         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
40868         an inline function instead of a CPP macro.  Patch by Ben Pfaff
40869         <blp@cs.stanford.edu>.
40870
40871 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40872
40873         * lib/arpa_inet.in.h: New file.
40874
40875         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
40876         (Makefile.am): Sed in substitute header file.
40877
40878         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
40879         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
40880
40881         * modules/inet_ntop (configure.ac): Use
40882         gl_ARPA_INET_MODULE_INDICATOR.
40883
40884         * modules/inet_pton (configure.ac): Use
40885         gl_ARPA_INET_MODULE_INDICATOR.
40886
40887 2008-04-22  Jim Meyering  <meyering@redhat.com>
40888
40889         * modules/verify (License): Re-license as LGPLv2+.
40890
40891 2008-04-22  Simon Josefsson  <simon@josefsson.org>
40892
40893         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
40894         parameter to void* as per POSIX standard (MinGW uses char*).
40895
40896 2008-04-21  Bruno Haible  <bruno@clisp.org>
40897
40898         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40899         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
40900         Define to replacements if REPLACE_ISWCNTRL is 1.
40901         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
40902         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
40903         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
40904         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
40905         what it fixes.
40906         * doc/posix-functions/iswalpha.texi: Likewise.
40907         * doc/posix-functions/iswblank.texi: Likewise.
40908         * doc/posix-functions/iswcntrl.texi: Likewise.
40909         * doc/posix-functions/iswdigit.texi: Likewise.
40910         * doc/posix-functions/iswgraph.texi: Likewise.
40911         * doc/posix-functions/iswlower.texi: Likewise.
40912         * doc/posix-functions/iswprint.texi: Likewise.
40913         * doc/posix-functions/iswpunct.texi: Likewise.
40914         * doc/posix-functions/iswspace.texi: Likewise.
40915         * doc/posix-functions/iswupper.texi: Likewise.
40916         * doc/posix-functions/iswxdigit.texi: Likewise.
40917         Reported by Alain Guibert.
40918
40919 2008-04-21  Bruno Haible  <bruno@clisp.org>
40920
40921         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
40922         Patch by Alain Guibert.
40923
40924 2008-04-21  Bruno Haible  <bruno@clisp.org>
40925
40926         Fix test failures on mingw.
40927         * tests/test-xstrtol.c (print_no_progname): New function.
40928         (main): Install it in error_print_progname hook.
40929         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
40930         * tests/test-xstrtoimax.sh: Likewise.
40931         * tests/test-xstrtoumax.sh: Likewise.
40932
40933 2008-04-21  Bruno Haible  <bruno@clisp.org>
40934
40935         Fix test failure on mingw.
40936         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
40937
40938 2008-04-21  Bruno Haible  <bruno@clisp.org>
40939
40940         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
40941         Actually assign a value.
40942
40943 2008-04-20  Bruno Haible  <bruno@clisp.org>
40944
40945         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
40946         take 2.
40947         * lib/canonicalize.c (canonicalize_file_name): Elide if the
40948         'canonicalize-lgpl' module is also used.
40949         * lib/canonicalize-lgpl.c: Undo last change.
40950         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
40951
40952 2008-04-20  Bruno Haible  <bruno@clisp.org>
40953
40954         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
40955         config.h. Provide _mkdir based fallback for mingw.
40956         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
40957         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
40958         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
40959         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
40960         rather than defining mkdir in config.h.
40961         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
40962         (gl_SYS_STAT_H_DEFAULTS): New macro.
40963         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
40964         HAVE_IO_H any more.
40965         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
40966         HAVE_DECL_MKDIR and HAVE_IO_H.
40967
40968 2008-04-20  Bruno Haible  <bruno@clisp.org>
40969
40970         * lib/isapipe.c: Port to native Windows platforms.
40971
40972 2008-04-20  Bruno Haible  <bruno@clisp.org>
40973
40974         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
40975
40976 2008-04-21  Eric Blake  <ebb9@byu.net>
40977
40978         Work around preprocessors that don't handle UINTMAX_MAX.
40979         * lib/memchr2.c (memchr2): Avoid embedded #if.
40980         Reported by Alain Guibert, fix suggested by Bruno Haible.
40981
40982 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40983
40984         * doc/posix-functions/strftime.texi (strftime): Explain better
40985         Windows incompatibility.  Suggested by Micah Cowan
40986         <micah@cowan.name>.
40987
40988 2008-04-20  Bruno Haible  <bruno@clisp.org>
40989
40990         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40991         unistr/u8-mblen.
40992
40993 2008-04-20  Bruno Haible  <bruno@clisp.org>
40994
40995         Fix test failure on platforms with non-GNU iconv.
40996         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40997         (U_TO_U8): Use it, rather than u16_to_u8.
40998         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40999         units at the end of the input string.
41000         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41001
41002 2008-04-20  Bruno Haible  <bruno@clisp.org>
41003
41004         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41005         when the resulting length is 0.
41006         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41007
41008 2008-04-20  Bruno Haible  <bruno@clisp.org>
41009
41010         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41011         works.
41012         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41013
41014 2008-04-20  Bruno Haible  <bruno@clisp.org>
41015
41016         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41017         * modules/tsearch-tests (configure.ac): Test for initstate function.
41018
41019 2008-04-20  Bruno Haible  <bruno@clisp.org>
41020
41021         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41022         for nlink_t if missing.
41023         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41024
41025 2008-04-19  Bruno Haible  <bruno@clisp.org>
41026
41027         Work around snprintf bug on Linux libc5.
41028         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41029         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41030         gl_SNPRINTF_SIZE1.
41031         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41032         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41033         that test failed.
41034         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41035         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41036         * modules/snprintf (Files): Add m4/printf.m4.
41037         * modules/vsnprintf (Files): Likewise.
41038         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41039         * doc/posix-functions/vsnprintf.texi: Likewise.
41040
41041 2008-04-19  Bruno Haible  <bruno@clisp.org>
41042
41043         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41044         from 0.0058 to less than 10^-7.
41045
41046 2008-04-19  Bruno Haible  <bruno@clisp.org>
41047
41048         Fix rounding when a precision is given.
41049         * lib/vasnprintf.c (is_borderline): New function.
41050         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41051         9...9x.
41052         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41053         %e, %g.
41054         * tests/test-vasprintf-posix.c (test_function): Likewise.
41055         * tests/test-snprintf-posix.h (test_function): Likewise.
41056         * tests/test-sprintf-posix.h (test_function): Likewise.
41057         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41058         * tests/test-printf-posix.h (test_function): Likewise.
41059         * tests/test-printf-posix.output: Update.
41060         Reported by John Darrington <john@darrington.wattle.id.au> via
41061         Ben Pfaff <blp@cs.stanford.edu>.
41062
41063 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41064
41065         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41066         Suggested by Bruno Haible <bruno@clisp.org>.
41067
41068 2008-04-17  Bruno Haible  <bruno@clisp.org>
41069
41070         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41071         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41072         implementation.
41073         Patch by Bruce Merry <bmerry@gmail.com>.
41074
41075 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41076
41077         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41078         doesn't work under Windows.
41079
41080 2008-04-16  Bruno Haible  <bruno@clisp.org>
41081
41082         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41083         New macros.
41084         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41085         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41086         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41087         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41088         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41089         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41090         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41091         macros.
41092         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41093         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41094         Northern Sotho, Uighur.
41095
41096 2008-04-16  Bruno Haible  <bruno@clisp.org>
41097
41098         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41099         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41100         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41101         Reported by Daniel Bergström <daniel@octocode.com>.
41102
41103 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41104             Bruno Haible  <bruno@clisp.org>
41105
41106         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41107         function.
41108         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41109         New functions, mostly extracted from gl_locale_name_default.
41110         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41111
41112 2008-04-16  Eric Blake  <ebb9@byu.net>
41113
41114         Adjust strtod detection to catch glibc 2.7 bug.
41115         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41116         Reported by John Gatewood Ham.
41117
41118 2008-04-16  Bruno Haible  <bruno@clisp.org>
41119
41120         Add tentative support for Linux libc5.
41121         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41122         * lib/fpurge.c (fpurge): Likewise.
41123         * lib/freadable.c (freadable): Likewise.
41124         * lib/freadahead.c (freadahead): Likewise.
41125         * lib/freading.c (freading): Likewise.
41126         * lib/freadptr.c (freadptr): Likewise.
41127         * lib/freadseek.c (freadptrinc): Likewise.
41128         * lib/fseeko.c (rpl_fseeko): Likewise.
41129         * lib/fseterr.c (fseterr): Likewise.
41130         * lib/fwritable.c (fwritable): Likewise.
41131         * lib/fwriting.c (fwriting): Likewise.
41132         Reported by Alain Guibert <alguibert+bts@free.fr>.
41133
41134 2008-04-15  Bruno Haible  <bruno@clisp.org>
41135
41136         * modules/mathl (configure.ac): Define module indicator.
41137
41138 2008-04-15  Bruno Haible  <bruno@clisp.org>
41139
41140         * lib/logl.c (logl): Remove unused variables.
41141
41142 2008-04-15  Bruno Haible  <bruno@clisp.org>
41143
41144         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41145         fails.
41146
41147 2008-04-15  Bruno Haible  <bruno@clisp.org>
41148
41149         * lib/trim.c (trim2): Fix argument of isspace() macro.
41150
41151 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41152
41153         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41154         to 0.
41155         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41156
41157 2008-04-14  Bruno Haible  <bruno@clisp.org>
41158
41159         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41160         AC_LANG_PROGRAM argument.
41161         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41162         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41164         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41165         * m4/math_h.m4 (gl_MATH_H): Likewise.
41166         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41167         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41168         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41169         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41170         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41171         * m4/regex.m4 (gl_REGEX): Likewise.
41172         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41173         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41174         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41175         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41176         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41177         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41178         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41179         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41180
41181 2008-04-14  Jim Meyering  <meyering@redhat.com>
41182
41183         test-strtod: fix typos: s/abs/fabs/
41184         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41185
41186 2008-04-13  Bruno Haible  <bruno@clisp.org>
41187
41188         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41189         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41190         module is also used and while not building the reloc-wrapper.
41191
41192 2008-04-13  Bruno Haible  <bruno@clisp.org>
41193
41194         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41195
41196 2008-04-13  Bruno Haible  <bruno@clisp.org>
41197
41198         Fix AIX compilation failure introduced on 2008-04-02.
41199         * tests/test-frexp.c (exp): Undefine before redefining.
41200         * tests/test-frexpl.c (exp): Likewise.
41201
41202 2008-04-13  Bruno Haible  <bruno@clisp.org>
41203
41204         Work around a HP-UX stdio bug.
41205         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41206         * tests/test-ftello.c (main): Likewise.
41207         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41208         * doc/posix-functions/ftello.texi: Likewise.
41209
41210 2008-04-13  Bruno Haible  <bruno@clisp.org>
41211
41212         Make test-signbit pass on HP-UX/hppa.
41213         * tests/test-signbit.c (minus_zerol): New variable.
41214         (test_signbitl): Use it.
41215
41216 2008-04-13  Bruno Haible  <bruno@clisp.org>
41217
41218         Make truncl work on OSF/1 4.0.
41219         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41220         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41221         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41223         HAVE_DECL_TRUNCL.
41224         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41225         HAVE_DECL_TRUNCL.
41226         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41227
41228 2008-04-13  Bruno Haible  <bruno@clisp.org>
41229
41230         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41231
41232 2008-04-13  Bruno Haible  <bruno@clisp.org>
41233
41234         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41235         expression, so as to avoid HP-UX 11 cc compiler bug.
41236
41237 2008-04-13  Bruno Haible  <bruno@clisp.org>
41238
41239         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41240
41241 2008-04-13  Bruno Haible  <bruno@clisp.org>
41242
41243         * lib/git-merge-changelog.c: Remove empty declaration outside of
41244         functions.
41245
41246 2008-04-13  Bruno Haible  <bruno@clisp.org>
41247
41248         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41249
41250 2008-04-13  Bruno Haible  <bruno@clisp.org>
41251
41252         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41253         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41254         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41255         also if it exists but lacks definitions of the SHUT_* macros.
41256         * modules/sys_socket (Description): Update.
41257         Reported by Elbert Pol <e.pol@chello.nl>.
41258
41259 2008-04-13  Bruno Haible  <bruno@clisp.org>
41260
41261         * lib/localcharset.c (OS2): Don't redefine if already defined.
41262         Reported by Elbert Pol <e.pol@chello.nl>.
41263
41264 2008-04-13  Bruno Haible  <bruno@clisp.org>
41265
41266         * lib/binary-io.h [__EMX__]: Include <io.h>.
41267         Reported by Elbert Pol <e.pol@chello.nl>.
41268
41269 2008-04-12  Bruno Haible  <bruno@clisp.org>
41270
41271         * lib/fpucw.h: Enable the definitions also for x86_64.
41272         Needed for NetBSD/x86_64.
41273         Reported by Thomas Klausner <tk@giga.or.at>.
41274
41275 2008-04-12  Bruno Haible  <bruno@clisp.org>
41276
41277         * tests/test-strtod.c: Include isnand.h.
41278         (main): Use isnand instead of isnan.
41279         Reported by Jim Meyering.
41280
41281 2008-04-12  Bruno Haible  <bruno@clisp.org>
41282
41283         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41284         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41285
41286 2008-04-12  Jim Meyering  <meyering@redhat.com>
41287
41288         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41289
41290 2008-04-12  Bruno Haible  <bruno@clisp.org>
41291
41292         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41293         Reported by Elbert Pol <e.pol@chello.nl>.
41294
41295 2008-04-12  Eric Blake  <ebb9@byu.net>
41296
41297         Work around Solaris 10 math.h bug.
41298         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41299         (gl_MATH_H_DEFAULTS): Set up default.
41300         * modules/math (Makefile.am): Replace new indicators.
41301         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41302         * tests/test-math.c (main): Test this.
41303         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41304         * doc/posix-headers/math.texi (math.h): Mention bug.
41305         Reported by Nelson H. F. Beebe and Jim Meyering.
41306
41307 2008-04-11  Bruno Haible  <bruno@clisp.org>
41308
41309         Adapt to future versions of Apple GCC.
41310         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41311         Reported by Peter O'Gorman <peter@pogma.com>.
41312
41313 2008-04-11  Bruno Haible  <bruno@clisp.org>
41314
41315         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41316
41317 2008-04-11  Bruno Haible  <bruno@clisp.org>
41318
41319         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41320
41321         * modules/getaddrinfo-tests (Makefile.am): Define
41322         test_getaddrinfo_LDADD.
41323
41324 2008-04-11  Bruno Haible  <bruno@clisp.org>
41325
41326         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41327         (init): Fix syntax error.
41328         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41329         is declared.
41330
41331 2008-04-11  Bruno Haible  <bruno@clisp.org>
41332
41333         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41334         * modules/glob (Depends-on): Add stdbool.
41335
41336 2008-04-11  Bruno Haible  <bruno@clisp.org>
41337
41338         * lib/trim.c: Include <string.h>.
41339
41340 2008-04-11  Eric Blake  <ebb9@byu.net>
41341
41342         Avoid compile failure on OS/2.
41343         * lib/regex_internal.h (internal_function): Disable optimization
41344         on OS/2 (__EMX__), where it caused compiler error.
41345         Reported by Elbert Pol.
41346
41347 2008-04-11  Bruno Haible  <bruno@clisp.org>
41348
41349         Flush the standard error stream before aborting. Needed on mingw.
41350         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41351         * tests/test-array_list.c (ASSERT): Likewise.
41352         * tests/test-array_oset.c (ASSERT): Likewise.
41353         * tests/test-avltree_list.c (ASSERT): Likewise.
41354         * tests/test-avltree_oset.c (ASSERT): Likewise.
41355         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41356         * tests/test-binary-io.c (ASSERT): Likewise.
41357         * tests/test-byteswap.c (ASSERT): Likewise.
41358         * tests/test-c-ctype.c (ASSERT): Likewise.
41359         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41360         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41361         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41362         * tests/test-c-strstr.c (ASSERT): Likewise.
41363         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41364         * tests/test-canonicalize.c (ASSERT): Likewise.
41365         * tests/test-carray_list.c (ASSERT): Likewise.
41366         * tests/test-ceilf1.c (ASSERT): Likewise.
41367         * tests/test-ceilf2.c (ASSERT): Likewise.
41368         * tests/test-ceill.c (ASSERT): Likewise.
41369         * tests/test-count-one-bits.c (ASSERT): Likewise.
41370         * tests/test-fbufmode.c (ASSERT): Likewise.
41371         * tests/test-fflush2.c (ASSERT): Likewise.
41372         * tests/test-floorf1.c (ASSERT): Likewise.
41373         * tests/test-floorf2.c (ASSERT): Likewise.
41374         * tests/test-floorl.c (ASSERT): Likewise.
41375         * tests/test-fopen.c (ASSERT): Likewise.
41376         * tests/test-fpending.c (ASSERT): Likewise.
41377         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41378         * tests/test-fpurge.c (ASSERT): Likewise.
41379         * tests/test-freadable.c (ASSERT): Likewise.
41380         * tests/test-freadahead.c (ASSERT): Likewise.
41381         * tests/test-freading.c (ASSERT): Likewise.
41382         * tests/test-freadptr.c (ASSERT): Likewise.
41383         * tests/test-freadptr2.c (ASSERT): Likewise.
41384         * tests/test-freadseek.c (ASSERT): Likewise.
41385         * tests/test-freopen.c (ASSERT): Likewise.
41386         * tests/test-frexp.c (ASSERT): Likewise.
41387         * tests/test-frexpl.c (ASSERT): Likewise.
41388         * tests/test-fseek.c (ASSERT): Likewise.
41389         * tests/test-fseeko.c (ASSERT): Likewise.
41390         * tests/test-fstrcmp.c (ASSERT): Likewise.
41391         * tests/test-ftell.c (ASSERT): Likewise.
41392         * tests/test-ftello.c (ASSERT): Likewise.
41393         * tests/test-func.c (ASSERT): Likewise.
41394         * tests/test-fwritable.c (ASSERT): Likewise.
41395         * tests/test-fwriting.c (ASSERT): Likewise.
41396         * tests/test-getdelim.c (ASSERT): Likewise.
41397         * tests/test-getline.c (ASSERT): Likewise.
41398         * tests/test-i-ring.c (ASSERT): Likewise.
41399         * tests/test-iconv-utf.c (ASSERT): Likewise.
41400         * tests/test-iconv.c (ASSERT): Likewise.
41401         * tests/test-isfinite.c (ASSERT): Likewise.
41402         * tests/test-isnand.c (ASSERT): Likewise.
41403         * tests/test-isnanf.c (ASSERT): Likewise.
41404         * tests/test-isnanl.h (ASSERT): Likewise.
41405         * tests/test-ldexpl.c (ASSERT): Likewise.
41406         * tests/test-linked_list.c (ASSERT): Likewise.
41407         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41408         * tests/test-localename.c (ASSERT): Likewise.
41409         * tests/test-lseek.c (ASSERT): Likewise.
41410         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41411         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41412         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41413         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41414         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41415         * tests/test-mbschr.c (ASSERT): Likewise.
41416         * tests/test-mbscspn.c (ASSERT): Likewise.
41417         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41418         * tests/test-mbspbrk.c (ASSERT): Likewise.
41419         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41420         * tests/test-mbsrchr.c (ASSERT): Likewise.
41421         * tests/test-mbsspn.c (ASSERT): Likewise.
41422         * tests/test-mbsstr1.c (ASSERT): Likewise.
41423         * tests/test-mbsstr2.c (ASSERT): Likewise.
41424         * tests/test-mbsstr3.c (ASSERT): Likewise.
41425         * tests/test-memchr2.c (ASSERT): Likewise.
41426         * tests/test-memmem.c (ASSERT): Likewise.
41427         * tests/test-open.c (ASSERT): Likewise.
41428         * tests/test-printf-frexp.c (ASSERT): Likewise.
41429         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41430         * tests/test-printf-posix.c (ASSERT): Likewise.
41431         * tests/test-quotearg.c (ASSERT): Likewise.
41432         * tests/test-rbtree_list.c (ASSERT): Likewise.
41433         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41434         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41435         * tests/test-round1.c (ASSERT): Likewise.
41436         * tests/test-roundf1.c (ASSERT): Likewise.
41437         * tests/test-roundl.c (ASSERT): Likewise.
41438         * tests/test-signbit.c (ASSERT): Likewise.
41439         * tests/test-sleep.c (ASSERT): Likewise.
41440         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41441         * tests/test-snprintf.c (ASSERT): Likewise.
41442         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41443         * tests/test-stat-time.c (ASSERT): Likewise.
41444         * tests/test-strcasestr.c (ASSERT): Likewise.
41445         * tests/test-strerror.c (ASSERT): Likewise.
41446         * tests/test-striconv.c (ASSERT): Likewise.
41447         * tests/test-striconveh.c (ASSERT): Likewise.
41448         * tests/test-striconveha.c (ASSERT): Likewise.
41449         * tests/test-strsignal.c (ASSERT): Likewise.
41450         * tests/test-strstr.c (ASSERT): Likewise.
41451         * tests/test-strtod.c (ASSERT): Likewise.
41452         * tests/test-trunc1.c (ASSERT): Likewise.
41453         * tests/test-trunc2.c (ASSERT): Likewise.
41454         * tests/test-truncf1.c (ASSERT): Likewise.
41455         * tests/test-truncf2.c (ASSERT): Likewise.
41456         * tests/test-truncl.c (ASSERT): Likewise.
41457         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41458         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41459         * tests/test-vasnprintf.c (ASSERT): Likewise.
41460         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41461         * tests/test-vasprintf.c (ASSERT): Likewise.
41462         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
41463         * tests/test-vprintf-posix.c (ASSERT): Likewise.
41464         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
41465         * tests/test-vsnprintf.c (ASSERT): Likewise.
41466         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
41467         * tests/test-wcwidth.c (ASSERT): Likewise.
41468         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
41469         * tests/test-xprintf-posix.c (ASSERT): Likewise.
41470         * tests/test-xvasprintf.c (ASSERT): Likewise.
41471         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
41472         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
41473         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
41474         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
41475         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
41476         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
41477         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
41478         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
41479         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
41480         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
41481         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
41482         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
41483         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
41484         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
41485         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
41486         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
41487         * tests/unictype/test-block_list.c (ASSERT): Likewise.
41488         * tests/unictype/test-block_of.c (ASSERT): Likewise.
41489         * tests/unictype/test-block_test.c (ASSERT): Likewise.
41490         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
41491         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
41492         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
41493         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
41494         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
41495         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
41496         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
41497         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
41498         * tests/unictype/test-combining.c (ASSERT): Likewise.
41499         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
41500         * tests/unictype/test-digit.c (ASSERT): Likewise.
41501         * tests/unictype/test-mirror.c (ASSERT): Likewise.
41502         * tests/unictype/test-numeric.c (ASSERT): Likewise.
41503         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
41504         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
41505         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
41506         * tests/unictype/test-scripts.c (ASSERT): Likewise.
41507         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
41508         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
41509         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
41510         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
41511         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
41512         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
41513         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
41514         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
41515         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
41516         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
41517         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
41518         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
41519         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41520         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41521         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
41522         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
41523         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
41524         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
41525         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
41526         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
41527         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
41528         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
41529         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
41530         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
41531         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
41532         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
41533         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
41534         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
41535         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
41536         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
41537         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
41538         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
41539         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
41540         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
41541         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
41542         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
41543         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
41544         Reported by Eric Blake.
41545
41546 2008-04-11  Bruno Haible  <bruno@clisp.org>
41547
41548         * lib/wchar.in.h: Tweak comment.
41549
41550 2008-04-11  Bruno Haible  <bruno@clisp.org>
41551
41552         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
41553         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
41554         gl_COMMON.
41555         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
41556
41557 2008-04-11  Bruno Haible  <bruno@clisp.org>
41558
41559         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
41560
41561 2008-04-11  Simon Josefsson  <simon@josefsson.org>
41562
41563         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
41564         of attempting to use non-existing /dev/*random.  Based on patch
41565         from Adam Strzelecki <ono@java.pl> in
41566         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
41567
41568 2008-04-08  Bruno Haible  <bruno@clisp.org>
41569
41570         Add tentative support for emx+gcc.
41571         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
41572         * lib/fpurge.c (fpurge): Likewise.
41573         * lib/freadable.c (freadable): Likewise.
41574         * lib/freadahead.c (freadahead): Likewise.
41575         * lib/freading.c (freading): Likewise.
41576         * lib/freadptr.c (freadptr): Likewise.
41577         * lib/freadseek.c (freadptrinc): Likewise.
41578         * lib/fseeko.c (rpl_fseeko): Likewise.
41579         * lib/fseterr.c (fseterr): Likewise.
41580         * lib/fwritable.c (fwritable): Likewise.
41581         * lib/fwriting.c (fwriting): Likewise.
41582         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
41583
41584 2008-04-09  Eric Blake  <ebb9@byu.net>
41585
41586         Avoid some autoconf warnings.
41587         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
41588         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
41589         * m4/afs.m4 (gl_AFS): Likewise.
41590         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
41591         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
41592         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41593         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
41594         (gl_INTEGER_TYPE_SUFFIX): Likewise.
41595         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
41596         (AC_CHECK_DECLS_ONCE): Likewise.
41597         Rename file...
41598         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
41599         gnulib-tool requires autoconf 2.59 or better.
41600         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
41601
41602 2008-04-08  Eric Blake  <ebb9@byu.net>
41603
41604         Use 'git describe --match' if present (added in git 1.5.5).
41605         * build-aux/git-version-gen: Limit result to tags that match 'v*'
41606         if possible.
41607
41608 2008-04-08  Bruno Haible  <bruno@clisp.org>
41609
41610         Add tentative support for OpenServer.
41611         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
41612         _ptr, _cnt.
41613         * lib/fpurge.c (fpurge): Likewise.
41614         * lib/freadable.c (freadable): Likewise.
41615         * lib/freadahead.c (freadahead): Likewise.
41616         * lib/freading.c (freading): Likewise.
41617         * lib/freadptr.c (freadptr): Likewise.
41618         * lib/freadseek.c (freadptrinc): Likewise.
41619         * lib/fseeko.c (rpl_fseeko): Likewise.
41620         * lib/fseterr.c (fseterr): Likewise.
41621         * lib/fwritable.c (fwritable): Likewise.
41622         * lib/fwriting.c (fwriting): Likewise.
41623         Reported by Roger Cornelius <rac@tenzing.org> and
41624         Brian K. White <brian@aljex.com>.
41625
41626 2008-04-06  Jim Meyering  <meyering@redhat.com>
41627
41628         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
41629
41630 2008-04-06  Bruno Haible  <bruno@clisp.org>
41631
41632         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41633         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41634         * tests/test-printf-posix.sh: Likewise.
41635         * tests/test-vfprintf-posix.sh: Likewise.
41636         * tests/test-vprintf-posix.sh: Likewise.
41637         * tests/test-xprintf-posix.sh: Likewise.
41638
41639 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41640
41641         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41642         hide error from 'ls', needed on OS/2.
41643         Report by Elbert Pol <elbert.pol@gmail.com>.
41644
41645 2008-04-04  Eric Blake  <ebb9@byu.net>
41646
41647         Make test-fseeko.c failures meaningful.
41648         * tests/test-fseeko.c: Print line number on failure.
41649         * tests/test-fseek.c: Likewise.
41650         Reported by Nelson H. F. Beebe.
41651
41652         Improve strtod bug detection check.
41653         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41654         required for Solaris 10.
41655         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41656
41657 2008-04-04  Bruno Haible  <bruno@clisp.org>
41658
41659         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41660         by m4/setenv.m4.
41661
41662 2008-04-03  Eric Blake  <ebb9@byu.net>
41663
41664         Ensure sane .version contents.
41665         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41666         version string.
41667         * build-aux/git-version-gen: Improve documentation.
41668
41669         Make GNU make output nicer.
41670         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41671         MAKECMDGOALS to enforce message for all command line targets.  Set
41672         srcdir for use in maint.mk.
41673
41674         Another maintainer tweak.
41675         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41676         a target that regenerates version.
41677
41678 2008-04-03  Jim Meyering  <meyering@redhat.com>
41679
41680         vc-list-files: don't cause coreutils "make po-check" failure
41681         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41682
41683 2008-04-03  Eric Blake  <ebb9@byu.net>
41684
41685         Allow VPATH usage of vc-list-files.
41686         * build-aux/vc-list-files (scriptversion): Add timestamp.
41687         (options): Add --help, --version, -C.
41688         (CVS): Support installed cvsu.
41689
41690 2008-04-02  Bruno Haible  <bruno@clisp.org>
41691
41692         Avoid some "statement with no effect" warnings from gcc.
41693         * tests/test-wctype.c (main): Explicitly ignore unused values.
41694         Reported by Jim Meyering.
41695
41696 2008-04-02  Jim Meyering  <meyering@redhat.com>
41697
41698         Avoid some warnings from "gcc -Wshadow".
41699         * tests/test-frexp.c (exp): Define to a different identifier.
41700         * tests/test-frexpl.c (exp): Likewise.
41701
41702 2008-04-03  Jim Meyering  <meyering@redhat.com>
41703
41704         bootstrap: remove dangling *.[ch] symlinks from lib
41705         * build-aux/bootstrap [dangling symlink removal]: Move find's
41706         -depth option to precede all others, to avoid a warning.
41707         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41708
41709 2008-04-02  Bruno Haible  <bruno@clisp.org>
41710
41711         Avoid some warnings from "gcc -Wshadow".
41712         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41713         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41714         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41715         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41716         Reported by Jim Meyering.
41717
41718 2008-04-01  Bruno Haible  <bruno@clisp.org>
41719
41720         Fix test to work on IRIX 6.5 with cc.
41721         * tests/test-math.c (numeric_equal): New function.
41722         (main): Use it.
41723
41724 2008-04-01  Bruno Haible  <bruno@clisp.org>
41725
41726         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41727
41728 2008-04-01  Bruno Haible  <bruno@clisp.org>
41729
41730         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41731         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41732         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41733         (Depends-on): Remove math.
41734
41735         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
41736         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41737         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
41738         (Depends-on): Remove math.
41739
41740         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
41741         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41742         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
41743         (Depends-on): Remove math.
41744         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
41745         (Depends-on): Remove math.
41746
41747         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
41748         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41749         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
41750         (Depends-on): Remove math.
41751         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
41752         (Depends-on): Remove math.
41753
41754         * tests/test-round1.c: Include nan.h.
41755         (main): Use NaNd instead of NAN.
41756         * modules/round-tests (Files): Add tests/nan.h.
41757
41758         * tests/test-trunc1.c: Include nan.h.
41759         (main): Use NaNd instead of NAN.
41760         * modules/trunc-tests (Files): Add tests/nan.h.
41761
41762         * tests/test-roundf1.c: Include nan.h.
41763         (main): Use NaNf instead of NAN.
41764         * modules/roundf-tests (Files): Add tests/nan.h.
41765
41766         * tests/test-truncf1.c: Include nan.h.
41767         (main): Use NaNf instead of NAN.
41768         * modules/truncf-tests (Files): Add tests/nan.h.
41769
41770         * tests/test-ceilf1.c: Include nan.h.
41771         (main): Use NaNf instead of NAN.
41772         * modules/ceilf-tests (Files): Add tests/nan.h.
41773
41774         * tests/test-floorf1.c: Include nan.h.
41775         (main): Use NaNf instead of NAN.
41776         * modules/floorf-tests (Files): Add tests/nan.h.
41777
41778         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
41779         (main): Use NaNf instead of NAN.
41780         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
41781
41782         * tests/test-isnand.c: Include nan.h instead of <math.h>.
41783         (main): Use NaNd instead of NAN.
41784         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
41785
41786         * tests/test-frexp.c: Include nan.h.
41787         (main): Use NaNd instead of NAN.
41788         * modules/frexp-tests (Files): Add tests/nan.h.
41789
41790         * lib/isnan.c: Don't include <math.h>.
41791         (FUNC): Don't use NAN macro.
41792         * modules/isnand-nolibm (Depends-on): Remove math.
41793         * modules/isnanf-nolibm (Depends-on): Remove math.
41794         * modules/isnanl (Depends-on): Remove math.
41795         * modules/isnanl-nolibm (Depends-on): Remove math.
41796
41797         * tests/nan.h: New file.
41798
41799 2008-04-01  Eric Blake  <ebb9@byu.net>
41800
41801         Fix typos.
41802         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
41803         values to be the right type.
41804
41805         For now, cater to gnulib strtod inaccuracies.
41806         * tests/test-strtod.c (main): Allow 1-ulp error on expected
41807         fractional results.  While not as nice from a QoI perspective, it
41808         is a quicker patch than correctly implementing decimal to binary
41809         rounding.
41810
41811 2008-03-31  Eric Blake  <ebb9@byu.net>
41812
41813         Guarantee a definition of NAN.
41814         * lib/math.in.h (NAN): Define if missing.
41815         * tests/test-math.c (main): Test it.
41816         * doc/posix-headers/math.texi (math.h): Document this.
41817         * lib/isnan.c (rpl_isnand): Use it.
41818         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
41819         * tests/test-floorf1.c (NaN): Likewise.
41820         * tests/test-frexp.c (NaN): Likewise.
41821         * tests/test-isnand.c (NaN): Likewise.
41822         * tests/test-isnanf.c (NaN): Likewise.
41823         * tests/test-round1.c (NaN): Likewise.
41824         * tests/test-roundf1.c (NaN): Likewise.
41825         * tests/test-snprintf-posix.h (NaN): Likewise.
41826         * tests/test-sprintf-posix.h (NaN): Likewise.
41827         * tests/test-trunc1.c (NaN): Likewise.
41828         * tests/test-truncf1.c (NaN): Likewise.
41829         * tests/test-vasnprintf-posix.c (NaN): Likewise.
41830         * tests/test-vasprintf-posix.c (NaN): Likewise.
41831         * modules/isnand-nolibm (Depends-on): Add math.
41832         * modules/isnanf-nolibm (Depends-on): Likewise.
41833         * modules/isnanl (Depends-on): Likewise.
41834         * modules/isnanl-nolibm (Depends-on): Likewise.
41835         * modules/snprintf-posix-tests (Depends-on): Likewise.
41836         * modules/sprintf-posix-tests (Depends-on): Likewise.
41837         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
41838         * modules/vsprintf-posix-tests (Depends-on): Likewise.
41839         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
41840         * modules/vasprintf-posix-tests (Depends-on): Likewise.
41841
41842 2008-03-31  Bruno Haible  <bruno@clisp.org>
41843
41844         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
41845         * doc/posix-functions/strtod.texi: Likewise.
41846
41847 2008-03-31  Bruno Haible  <bruno@clisp.org>
41848
41849         * tests/test-strtod.c (main): Don't use C99 syntax.
41850
41851 2008-03-31  Bruno Haible  <bruno@clisp.org>
41852
41853         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
41854         Reported by Eric Blake.
41855
41856 2008-03-31  Jim Meyering  <meyering@redhat.com>
41857
41858         Don't compare actual signbit return values.
41859         * tests/test-strtod.c (main): Rather, compare only their
41860         zero/non-zero nature.
41861
41862 2008-03-31  Eric Blake  <ebb9@byu.net>
41863
41864         More strtod documentation.
41865         * doc/posix-functions/strtod.texi (strtod): Interpret more test
41866         failures as distinct bugs.
41867
41868 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41869
41870         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
41871         Problem reported by Erik Benada in
41872         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
41873
41874 2008-03-30  Bruno Haible  <bruno@clisp.org>
41875
41876         * tests/test-strtod.c: Add comments about which assertion fails on which
41877         platform.
41878         * doc/posix-functions/strtod.texi: Add info about many more platforms.
41879
41880 2008-03-30  Eric Blake  <ebb9@byu.net>
41881
41882         Test signbit behavior on zeros.
41883         * tests/test-signbit.c (test_signbitf): Add tests for zero.
41884         (test_signbitd, test_signbitl): Likewise.
41885
41886         More strtod touchups.
41887         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
41888         sign of negative underflow, for now.  Use .5, not .1.
41889         * doc/posix-functions/strtod.texi (strtod): Mention these
41890         limitations.
41891         Reported by Jim Meyering.
41892
41893 2008-03-30  Bruno Haible  <bruno@clisp.org>
41894
41895         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
41896         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
41897
41898 2008-03-30  Bruno Haible  <bruno@clisp.org>
41899
41900         Avoid failure when attempting to return empty iconv results on some
41901         platforms.
41902         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
41903         allocation, don't report ENOMEM when the resulting string is empty.
41904
41905 2008-03-30  Bruno Haible  <bruno@clisp.org>
41906
41907         Fix buffer overrun.
41908         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
41909         Don't consider the width for tmp_length. Check count against tmp_length
41910         before doing the padding. Ensure enough allocation during padding.
41911
41912 2008-03-30  Eric Blake  <ebb9@byu.net>
41913
41914         strtod touchups.
41915         * lib/strtod.c (strtod): Avoid compiler warnings.
41916         Reported by Jim Meyering.
41917
41918 2008-03-30  Bruno Haible  <bruno@clisp.org>
41919
41920         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
41921         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
41922         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
41923         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
41924         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
41925         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
41926         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
41927         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
41928
41929         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
41930         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
41931         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
41932         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
41933         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
41934         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
41935         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
41936         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
41937
41938         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
41939         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
41940         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
41941         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
41942         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
41943         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
41944         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
41945         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
41946
41947         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
41948         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
41949
41950         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
41951         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
41952
41953         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
41954         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
41955
41956         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
41957         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
41958         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
41959
41960         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
41961         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
41962         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
41963
41964         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
41965         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
41966         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
41967
41968         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
41969         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
41970         * modules/vasprintf (Depends-on): Add EOVERFLOW.
41971
41972         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
41973         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
41974         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
41975         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
41976         (Depends-on): Add EOVERFLOW.
41977         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
41978         (Depends-on): Add EOVERFLOW.
41979         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41980         (Depends-on): Add EOVERFLOW.
41981         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41982         (Depends-on): Add EOVERFLOW.
41983         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41984         (Depends-on): Add EOVERFLOW.
41985         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41986         (Depends-on): Add EOVERFLOW.
41987         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41988         (Depends-on): Add EOVERFLOW.
41989         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41990         (Depends-on): Add EOVERFLOW.
41991
41992         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41993         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41994         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41995
41996         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41998         * modules/snprintf (Depends-on): Add EOVERFLOW.
41999
42000         * lib/poll.c (EOVERFLOW): Remove fallback.
42001         * modules/poll (Depends-on): Add EOVERFLOW.
42002
42003         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42004         * modules/getugroups (Depends-on): Add EOVERFLOW.
42005
42006         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42007         * modules/getdelim (Depends-on): Add EOVERFLOW.
42008
42009         * lib/ftell.c (EOVERFLOW): Remove fallback.
42010         * modules/ftell (Depends-on): Add EOVERFLOW.
42011
42012         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42013         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42014         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42015
42016         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42017
42018         * modules/EOVERFLOW-tests: New file.
42019         * tests/test-EOVERFLOW.c: New file.
42020
42021         * modules/EOVERFLOW: New file.
42022         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42023
42024 2008-03-30  Bruno Haible  <bruno@clisp.org>
42025
42026         Fix bug introduced on 2007-06-10.
42027         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42028         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42029
42030 2008-03-30  Bruno Haible  <bruno@clisp.org>
42031
42032         Improve freadseek's efficiency after ungetc.
42033         * lib/freadseek.c: Include freadahead.h.
42034         (freadptrinc): New function, extracted from freadseek.
42035         (freadseek): Use it in a loop. Use freadahead to determine the number
42036         of loop iterations.
42037         * modules/freadseek (Depends-on): Add freadahead.
42038         (configure.ac): Require AC_C_INLINE.
42039
42040 2008-03-30  Bruno Haible  <bruno@clisp.org>
42041
42042         * lib/freadseek.c (freadseek): Don't ignore the return value of
42043         freadptr.
42044
42045 2008-03-29  Eric Blake  <ebb9@byu.net>
42046
42047         Add hex float support.
42048         * modules/strtod (Depends-on): Add c-ctype.
42049         (Link): Mention POW_LIB.
42050         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42051         whitespace between 'e' and exponent.
42052         * tests/test-strtod.c (main): Enable hex float tests.
42053         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42054         now provides.
42055
42056         Document various strtod bugs, with some fixes.
42057         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42058         "-0x", "inf", "nan", and hex constants.
42059         * doc/posix-functions/atof.texi (atof): Likewise.
42060         * modules/stdlib (Makefile.am): Support strtod.
42061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42062         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42063         detect additional strtod bugs.
42064         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42065         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42066         bool where appropriate.  Parse 'inf' and 'nan'.
42067         * tests/test-strtod.c: New file.
42068         * modules/strtod (Depends-on): Add stdbool, stdlib.
42069         (configure.ac): Turn on module indicator.
42070         * modules/strtod-tests: New module.
42071
42072 2008-03-29  Eric Blake  <ebb9@byu.net>
42073
42074         Fix ftell on mingw.
42075         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42076         * modules/ftell-tests (Depends-on): Add binary-io.
42077         * modules/ftello-tests (Depends-on): Likewise.
42078         * tests/test-ftell.c (main): Enhance test to cover behavior after
42079         ungetc.  Enforce binary mode.
42080         * tests/test-ftello.c (main): Likewise.
42081
42082         Pass test-freadseek on cygwin.
42083         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42084         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42085         ungetc buffer.
42086
42087         * tests/test-fflush2.c (main): Fix typo.
42088
42089 2008-03-29  Bruno Haible  <bruno@clisp.org>
42090
42091         * tests/test-fflush2.c (main): Temporarily disable the contents of
42092         this test.
42093         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42094         Reported by Eric Blake.
42095
42096 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42097
42098         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42099         (GC_SHA224_DIGEST_SIZE): Add.
42100
42101         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42102         (gc_hash_digest_length): Likewise.
42103         (gc_hash_buffer): Likewise.
42104
42105 2008-03-25  Bruno Haible  <bruno@clisp.org>
42106
42107         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42108         detail which gettext release to use.
42109         Reported by Simon Josefsson.
42110
42111 2008-03-26  Jim Meyering  <meyering@redhat.com>
42112
42113         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42114         * modules/gnumakefile (clean-GNUmakefile): Also, use
42115         test ... && ... || : syntax rather than if-then ... fi.
42116
42117         gnumakefile: Don't double-quote-expand $(VPATH) value.
42118         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42119
42120 2008-03-24  Eric Blake  <ebb9@byu.net>
42121
42122         Alter GNUmakefile to install into top directory.
42123         * modules/maintainer-makefile: Split, and add dependency...
42124         * modules/gnumakefile: to this new module.
42125         * build-aux/GNUmakefile: Move...
42126         * top/GNUmakefile: ...here.
42127         * build-aux/maint.mk: Move...
42128         * top/maint.mk: ...here.
42129         * MODULES.html.sh (Support for maintaining...): Document new
42130         module.
42131
42132 2008-03-23  Bruno Haible  <bruno@clisp.org>
42133
42134         * gnulib-tool: New options --vc-files, --no-vc-files.
42135         (func_usage): Document them.
42136         (vc_files): New variable.
42137         (func_import): Consider vc_files.
42138         (func_create_testdir): Set vc_files to empty.
42139         Suggested by Jim Meyering and Karl Berry.
42140
42141 2008-03-23  Bruno Haible  <bruno@clisp.org>
42142
42143         Fix regex compilation error on HP-UX 11.
42144         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42145         * modules/regex (Files): Add m4/mbstate_t.m4.
42146         Reported by Ton Voon <ton.voon@altinity.com>.
42147
42148 2008-03-23  Bruno Haible  <bruno@clisp.org>
42149
42150         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42151
42152 2008-03-23  Eric Blake  <ebb9@byu.net>
42153             Bruno Haible  <bruno@clisp.org>
42154
42155         Install files from top/ in the destination directory.
42156         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42157         augmentation also for the files from top/.
42158         (func_import, func_create_testdir): Rewrite file names:
42159         top/filename -> filename.
42160
42161 2008-03-23  Bruno Haible  <bruno@clisp.org>
42162
42163         Tweak "gnulib --version" output.
42164         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42165
42166 2008-03-23  Bruno Haible  <bruno@clisp.org>
42167
42168         Tweak "gnulib --version" output.
42169         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42170         rather than contents of ChangeLog, when possible.
42171
42172 2008-03-21  Eric Blake  <ebb9@byu.net>
42173
42174         More --version tweaks.
42175         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42176         date of last ChangeLog entry.
42177
42178 2008-03-21  Jim Meyering  <meyering@redhat.com>
42179
42180         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42181
42182 2008-03-20  Eric Blake  <ebb9@byu.net>
42183
42184         VPATH fix.
42185         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42186
42187 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42188
42189         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42190         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42191
42192 2008-03-20  Eric Blake  <ebb9@byu.net>
42193
42194         Sync GNUmakefile with coreutils.
42195         * build-aux/GNUmakefile (have-Makefile): Rename...
42196         (_have-Makefile): ...to this, for namespace consideration.
42197         (GNUmakefile.cfg): Include, if present.
42198         (_autoreconf): Define a default.
42199         (_is-dist-target): New rule for rebuilds to pick up intra-release
42200         version.
42201         (maint-cfg.mk): Rename...
42202         (cfg.mk): ...to this.
42203
42204 2008-03-18  Jim Meyering  <meyering@redhat.com>
42205
42206         New script and module: mktempd
42207         * MODULES.html.sh (maint+release support): Add mktempd.
42208         * build-aux/mktempd: New file.
42209         * modules/mktempd: New file.
42210
42211 2008-03-15  Jim Meyering  <meyering@redhat.com>
42212
42213         Undo last change.
42214         * lib/sha1.c, lib/md5.c: 63 != ~63.
42215         Reported by Andreas Schwab.
42216
42217         sha1.c, md5.c: Hoist a redundant expression.
42218         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42219         "ctx->buflen" only once, before calling *_process_block.
42220         * lib/md5.c (md5_process_bytes): Likewise.
42221
42222 2008-03-14  Eric Blake  <ebb9@byu.net>
42223
42224         Bump copyright year in files generated by gnulib-tool.
42225         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42226         gnulib-tool, rather than hard-coding it.
42227
42228         Fix 'gnulib-tool --version' output to work with git.
42229         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42230         (startup): ...here.
42231         (func_version): Use it to invoke git-version-gen, rather than
42232         relying on CVS keyword expansion.  Modernize wording.
42233         (cvsdatestamp, last_checkin_date, version): Kill unused
42234         variables.
42235
42236 2008-03-12  Jim Meyering  <meyering@redhat.com>
42237
42238         Recognize optional cast of the argument to free.
42239         * build-aux/useless-if-before-free: Update regexps.
42240
42241         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42242
42243 2008-03-11  Bruno Haible  <bruno@clisp.org>
42244
42245         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42246         by a single package.
42247         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42248         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42249         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42250         Reported by Sam Steingold <sds@gnu.org>.
42251
42252 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42253
42254         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42255         repositories.
42256
42257 2008-03-11  Bruno Haible  <bruno@clisp.org>
42258
42259         Avoid conflicts between local macro definitions.
42260         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42261         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42262
42263 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42264             Bruno Haible  <bruno@clisp.org>
42265
42266         Make va_copy work with some version of xlc on AIX 5.1.
42267         * lib/stdarg.in.h: New file.
42268         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42269         On AIX, use a <stdarg.h> file substitute.
42270         * modules/stdarg (Files): Add lib/stdarg.in.h.
42271         (Depends-on): Add include_next.
42272         (Makefile.am): Build a stdarg.h substitute if requested.
42273         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42274
42275 2008-03-10  Bruno Haible  <bruno@clisp.org>
42276
42277         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42278         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42279         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42280
42281 2008-03-10  Bruno Haible  <bruno@clisp.org>
42282
42283         * modules/stdlib (Depends-on): Add include_next, remove
42284         absolute-header.
42285
42286 2008-03-09  Bruno Haible  <bruno@clisp.org>
42287
42288         * lib/freadahead.h (freadahead): Document more precisely.
42289         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42290         the sum of both buffer sizes.
42291         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42292         * NEWS: Document the change.
42293
42294 2008-03-09  Bruno Haible  <bruno@clisp.org>
42295
42296         Extend freadptr to return also the buffer size.
42297         * lib/freadptr.h (freadptr): Add sizep argument.
42298         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42299         (freadptr): Add sizep argument. Determine buffer size like freadahead
42300         does.
42301         * tests/test-freadptr.c: Don't include freadahead.h.
42302         (main): Adapt for new calling convention of freadptr.
42303         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42304         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42305         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42306         tests/test-freadptr2.sh.
42307         (Depends): Remove freadahead.
42308         (TESTS): Add test-freadptr2.sh.
42309         (check_PROGRAMS): Add test-freadptr2.
42310
42311 2008-03-09  Bruno Haible  <bruno@clisp.org>
42312
42313         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42314         Report and solution by Simon Josefsson.
42315
42316 2008-03-06  Bruno Haible  <bruno@clisp.org>
42317
42318         Make fflush after ungetc work on BSD platforms.
42319         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42320         * tests/test-fflush2.c: New file.
42321         * tests/test-fflush2.sh: New file.
42322         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42323         tests/test-fflush2.c.
42324         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42325         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42326
42327 2008-03-06  Eric Blake  <ebb9@byu.net>
42328
42329         Likewise for ftello.
42330         * modules/ftello (Dependencies): Add extensions.
42331         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42332
42333 2008-03-06  Bruno Haible  <bruno@clisp.org>
42334
42335         * modules/fseeko (Dependencies): Add extensions.
42336         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42337         Needed on glibc systems.
42338
42339 2008-03-06  Bruno Haible  <bruno@clisp.org>
42340
42341         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42342         email address.
42343         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42344
42345 2008-03-06  Bruno Haible  <bruno@clisp.org>
42346
42347         * users.txt: Add libgnupdf.
42348
42349 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42350
42351         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42352         (Header File Substitutes, Function Substitutes,
42353         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42354         (Build robot for gnulib): Fix typo.
42355
42356 2008-03-06  Bruno Haible  <bruno@clisp.org>
42357
42358         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42359         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42360
42361 2008-03-06  Bruno Haible  <bruno@clisp.org>
42362
42363         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42364         * doc/gnulib.texi: Include it.
42365
42366 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42367
42368         * modules/func (License): Change license to unlimited; there was
42369         no LGPL parts in the module anyway.
42370
42371 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42372
42373         * modules/__func__: Renamed to modules/func.
42374         * modules/__func__-tests: Renamed to modules/func-tests.
42375         * tests/test-__func__.c: Renamed to tests/test-func.c.
42376         * m4/__func__.m4: Renamed to m4/func.m4.
42377         * doc/gnulib.texi (__func__): Section renamed to func.
42378         Suggested by Eric Blake <ebb9@byu.net>.
42379
42380 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42381
42382         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42383         about __func__.  Make example self-contained.  Suggested by Eric
42384         Blake <ebb9@byu.net>.
42385
42386         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42387         Suggested by Eric Blake <ebb9@byu.net>.
42388
42389 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42390
42391         * modules/__func__: New file.
42392         * modules/__func__-tests: New file.
42393         * tests/test-__func__.c: New file.
42394         * m4/__func__.m4: New file.
42395         * doc/gnulib.texi (__func__): Document __func__ module.
42396
42397 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42398
42399         * modules/byteswap (License): Re-license as LGPLv2+.
42400
42401 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42402
42403         * doc/Makefile: Add pdf target.
42404
42405 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42406
42407         * modules/inline (License): Use 'unlimited', since there are only
42408         *.m4 files in this module.
42409
42410 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42411             Bruno Haible  <bruno@clisp.org>
42412
42413         Add support for HP C 7.1 on OpenVMS 8.3.
42414         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42415
42416 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42417
42418         Update VMS specifics.
42419         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42420
42421 2008-03-02  Jim Meyering  <meyering@redhat.com>
42422
42423         Remove the last dependency on the "free" module.
42424         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42425         Reported by Bob Proulx.
42426
42427         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42428
42429         Remove useless "if" tests before free.  Deprecate "free" module.
42430         * doc/posix-functions/free.texi: Mention that this
42431         module is no longer useful.
42432         * modules/free (Notice): Say this module is obsolete.
42433         * modules/readutmp (Depends-on): Remove free.
42434         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42435         * lib/putenv.c (putenv): Likewise.
42436         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42437         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42438         * tests/test-c-strcasestr.c (main): Likewise.
42439         * tests/test-c-strstr.c (main): Likewise.
42440         * tests/test-mbscasestr1.c (main): Likewise.
42441         * tests/test-mbscasestr2.c (main): Likewise.
42442         * tests/test-mbsstr1.c (main): Likewise.
42443         * tests/test-mbsstr2.c (main): Likewise.
42444         * tests/test-memmem.c (main): Likewise.
42445         * tests/test-strcasestr.c (main): Likewise.
42446         * tests/test-striconv.c (main): Likewise.
42447         * tests/test-striconveh.c (main): Likewise.
42448         * tests/test-striconveha.c (main): Likewise.
42449         * tests/test-strstr.c (main): Likewise.
42450
42451         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42452
42453         bootstrap: sync from coreutils again
42454         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42455
42456 2008-03-01  Jim Meyering  <meyering@redhat.com>
42457
42458         bootstrap: sync from coreutils
42459         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42460         also when the target doesn't exist.
42461
42462 2008-03-01  Eric Blake  <ebb9@byu.net>
42463
42464         Fix bugs in last patch.
42465         * lib/memchr2.c (memchr2): Fix typo.
42466         * tests/test-memchr2.c: Test previous bug, and don't use GNU
42467         extension.
42468         Reported by Bruce Korb.
42469
42470         New module 'memchr2'.
42471         * modules/memchr2: New file.
42472         * modules/memchr2-tests: Likewise.
42473         * lib/memchr2.h: Likewise.
42474         * lib/memchr2.c: Likewise, based on memchr.c.
42475         * tests/test-memchr2.c: New test.
42476         * MODULES.html.sh (String handling): Add memchr2.
42477
42478 2008-02-29  Bruno Haible  <bruno@clisp.org>
42479
42480         * modules/freadseek-tests: New file.
42481         * tests/test-freadseek.sh: New file.
42482         * tests/test-freadseek.c: New file.
42483
42484         New module 'freadseek'.
42485         * modules/freadseek: New file.
42486         * lib/freadseek.h: New file.
42487         * lib/freadseek.c: New file.
42488         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
42489
42490 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42491
42492         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
42493         wydawca.
42494
42495         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
42496         program_invocation_name and program_invocation_short_name are
42497         present.
42498
42499 2008-02-28  Bruno Haible  <bruno@clisp.org>
42500
42501         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
42502         * tests/test-freadptr.sh: Also test non-seekable stdin.
42503
42504 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
42505
42506         * build-aux/bootstrap (source_base, m4_base)
42507         (doc_base, tests_base): New variables.
42508         (gnulib_tool_options): Do not hardcode base directories, use
42509         the above variables instead.
42510
42511 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
42512
42513         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
42514
42515 2008-02-28  Bruno Haible  <bruno@clisp.org>
42516
42517         * modules/freadptr-tests: New file.
42518         * tests/test-freadptr.sh: New file.
42519         * tests/test-freadptr.c: New file.
42520
42521         New module 'freadptr'.
42522         * modules/freadptr: New file.
42523         * lib/freadptr.h: New file.
42524         * lib/freadptr.c: New file.
42525         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
42526
42527 2008-02-26  Karl Berry  <karl@freefriends.org>
42528
42529         Sync from Libtool:
42530         * libltdl/argz.c (argz_add, argz_count): New functions.
42531         * libltdl/argz.in.h: Declare them.
42532         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
42533
42534 2008-02-22  Bruno Haible  <bruno@clisp.org>
42535
42536         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
42537         is a pointer type.  Needed for HP-UX 10.
42538         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
42539         * doc/posix-functions/gmtime_r.texi: Likewise.
42540         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42541
42542 2008-02-24  Bruno Haible  <bruno@clisp.org>
42543
42544         * modules/environ-tests: New file.
42545         * tests/test-environ.c: New file.
42546
42547         New module 'environ'.
42548         * modules/environ: New file.
42549         * lib/unistd.in.h (environ): New declaration.
42550         * m4/environ.m4: New file.
42551         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
42552         after use.
42553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
42554         HAVE_DECL_ENVIRON.
42555         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
42556         HAVE_DECL_ENVIRON.
42557         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
42558         wrong claim that 'environ' is missing on some systems.
42559         * modules/execute (Depends-on): Add environ.
42560         * lib/execute.c (environ): Remove fallback declaration.
42561         * modules/pipe (Depends-on): Add environ.
42562         * lib/pipe.c (environ): Remove fallback declaration.
42563         * modules/setenv (Depends-on): Add environ.
42564         * lib/setenv.c (environ): Remove fallback declaration.
42565         * modules/unsetenv (Depends-on): Add environ.
42566         * lib/unsetenv.c (environ): Remove fallback declaration.
42567         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
42568         m4/environ.m4.
42569         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
42570         (gl_PREREQ_UNSETENV): Likewise.
42571
42572 2008-02-24  Bruno Haible  <bruno@clisp.org>
42573
42574         * doc/posix-functions/environ.texi: Document the MacOS X problem.
42575
42576 2008-02-20  Bob Proulx  <bob@proulx.com>
42577
42578         Enable use of older two part flavor 'git describe'.
42579         * build-aux/git-version-gen: If using the older two part flavor of
42580         git version then recreate the third part now present in the
42581         newer three part flavor of git describe.
42582
42583 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
42584
42585         * lib/fts.c (fts_build): Typo correction to comment.
42586
42587 2008-02-17  Bruno Haible  <bruno@clisp.org>
42588
42589         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
42590         generating no-op conflicts.
42591
42592 2008-02-17  Bruno Haible  <bruno@clisp.org>
42593
42594         Speed up by 10%.
42595         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
42596         result_entries, rather than an index-based loop.
42597
42598 2008-02-17  Bruno Haible  <bruno@clisp.org>
42599
42600         Speed up by 25%.
42601         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
42602         'hashcode_cached'.
42603         (entry_create): New function.
42604         (entry_hashcode): Use the cached hashcode if possible.
42605         (read_changelog_file, try_split_merged_entry): Use entry_create.
42606
42607 2008-02-17  Bruno Haible  <bruno@clisp.org>
42608
42609         Speed up from O(n^2) to O(n) for long ChangeLog files.
42610         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
42611         (read_changelog_file): Change implementation of entries_reversed list
42612         to rbtreehash.
42613         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
42614
42615 2008-02-17  Bruno Haible  <bruno@clisp.org>
42616
42617         New option --split-merged-entry.
42618         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
42619         (find_paragraph_end, try_split_merged_entry): New functions.
42620         (long_options): Add option --split-merged-entry.
42621         (usage): Document option --split-merged-entry.
42622         (main): Implement option --split-merged-entry.
42623         Reported by Eric Blake.
42624
42625 2008-02-17  Bruno Haible  <bruno@clisp.org>
42626
42627         * lib/git-merge-changelog.c: Include c-strstr.h.
42628         (main): Support the "git pull --rebase" situation.
42629         * modules/git-merge-changelog (Depends-on): Add c-strstr.
42630         Reported by Eric Blake.
42631
42632 2008-02-16  Eric Blake  <ebb9@byu.net>
42633
42634         Avoid doubling \ in common case of "c-maybe" quoting style.
42635         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42636         eliding outer quotes.
42637         * lib/quotearg.h: Document this.
42638         * tests/test-quotearg.c (result_strings, inputs, results_g)
42639         (flag_results, locale_results): Test it by adding a new string to
42640         each test group.
42641         (compare_strings): Test new string.
42642
42643 2008-02-13  Eric Blake  <ebb9@byu.net>
42644
42645         Avoid trigraph quoting in default output.
42646         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42647         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42648         unless explicitly requested.
42649         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42650
42651 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42652
42653         Don't rely on signed integer overflowing to negative value.
42654         * lib/getugroups.c (getugroups): Include <limits.h>.
42655         Instead, compare against INT_MAX, and increment only if the test passes.
42656
42657 2008-02-13  Jim Meyering  <meyering@redhat.com>
42658         and Eric Blake  <ebb9@byu.net>
42659
42660         Avoid shadowing warning and compile errors on Linux.
42661         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42662         forwarding macros on Linux.
42663         (dcgettext): Define a stub, for Linux.
42664         (results_g, main): Avoid warnings.
42665
42666 2008-02-12  Eric Blake  <ebb9@byu.net>
42667
42668         Silence warning in last patch.
42669         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42670
42671         Quotearg part 4: add tests, fix c-maybe colon quoting.
42672         * lib/quotearg.h: Improve documentation.
42673         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42674         escapes when adding outer quotes.  When quoting trigraphs, use
42675         valid C notation.  When quoting NUL, omit extra characters if next
42676         character is not digit.  Alter prototype.
42677         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42678         callers.
42679         * modules/quotearg-tests: New module.
42680         * tests/test-quotearg.c: New test.
42681
42682 2008-02-07  Eric Blake  <ebb9@byu.net>
42683
42684         Quotearg part 3: add flag to control outer quote elision.
42685         * lib/quotearg.h (c_maybe_quoting_style): New style.
42686         (enum quoting_flags): Better documentation of flags.
42687         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42688         c-maybe style.
42689         (quotearg_buffer_restyled): Handle new flag to elide outer
42690         quotes.
42691
42692         Quotearg part 2: add flag that can control NUL elision.
42693         * lib/quotearg.h (set_quoting_flags): New prototype.
42694         * lib/quotearg.c (struct quoting_options): Add flag field.
42695         (set_quoting_flags): New function.
42696         (quotearg_buffer_restyled): Add flags parameter.
42697         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42698         (quotearg_n_options): Set the flag, since length cannot be
42699         returned.
42700         (quoting_options_from_style): Default flags correctly.
42701
42702         Quotearg part 1: more wrappers, restore quotearg_char state.
42703         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42704         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42705         (quotearg_colon_mem): New wrappers.
42706         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42707         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42708         functions.
42709         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42710         (quotearg_colon_mem): New functions.
42711
42712 2008-02-11  Bruno Haible  <bruno@clisp.org>
42713
42714         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42715         library in the current directory: it does not work with parallel make.
42716         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42717
42718 2008-02-11  Bruno Haible  <bruno@clisp.org>
42719
42720         * .gitattributes: New file.
42721
42722 2008-02-11  Jim Meyering  <meyering@redhat.com>
42723
42724         useless-if-before-free: Fix reversed exit values.
42725         * build-aux/useless-if-before-free: Use correct values
42726         for EXIT_MATCH and EXIT_NO_MATCH.
42727
42728         * build-aux/useless-if-before-free: Close stdout carefully.
42729
42730 2008-02-10  Bruno Haible  <bruno@clisp.org>
42731
42732         New module 'git-merge-changelog'.
42733         * modules/git-merge-changelog: New file.
42734         * lib/git-merge-changelog.c: New file.
42735
42736 2008-02-10  Jim Meyering  <meyering@redhat.com>
42737
42738         useless-if-before-free: New option: --list (-l).
42739
42740         useless-if-before-free: Don't exit immediately upon open failure.
42741         * build-aux/useless-if-before-free: Exit 2 for errors.
42742         Upon failure to open a file, don't exit immediately.
42743         Rather, just warn and continue with any remaining files.
42744
42745 2008-02-10  Bruno Haible  <bruno@clisp.org>
42746
42747         New abstract list operation 'node_set_value'.
42748         * lib/gl_list.h (gl_list_node_set_value): New function.
42749         (struct gl_list_implementation): New field node_set_value.
42750         * lib/gl_list.c (gl_list_node_set_value): New function.
42751         * lib/gl_array_list.c (gl_array_node_set_value): New function.
42752         (gl_array_list_implementation): Update.
42753         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
42754         (gl_carray_list_implementation): Update.
42755         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
42756         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42757         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42758         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
42759         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42760         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42761         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42762         Update.
42763         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42764         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
42765         (gl_sublist_list_implementation): Update.
42766
42767 2008-02-10  Bruno Haible  <bruno@clisp.org>
42768
42769         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
42770         Needed when ELEMENT is #defined to 'some_type *'.
42771
42772 2008-02-10  Jim Meyering  <meyering@redhat.com>
42773
42774         New script and module: useless-if-before-free
42775         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
42776         * build-aux/useless-if-before-free: New file.
42777         * modules/useless-if-before-free: New file.
42778
42779         * build-aux/gitlog-to-changelog: Use committer date, not author date.
42780
42781         xstrtol_error: Fix typo.
42782         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
42783         s/exit_failure/exit_status/.
42784
42785 2008-02-09  Jim Meyering  <meyering@redhat.com>
42786
42787         New script and module: gitlog-to-changelog
42788         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
42789         * modules/gitlog-to-changelog: New file.
42790         * build-aux/gitlog-to-changelog: New file.
42791
42792 2008-02-08  Jim Meyering  <meyering@redhat.com>
42793
42794         Avoid two "parameter unused" warnings.
42795         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
42796         Mark "st" as used.
42797
42798         Use "git COMMAND", not "git-COMMAND".
42799         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
42800         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
42801         * build-aux/git-version-gen: Use "git status", not "git-status".
42802
42803 2008-02-07  Bruno Haible  <bruno@clisp.org>
42804
42805         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
42806         Avoids a crash on Windows Vista.
42807         Reported by Adam Strzelecki <ono@java.pl> via
42808         Simon Josefsson <simon@josefsson.org>.
42809
42810 2008-02-06  Bruno Haible  <bruno@clisp.org>
42811
42812         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
42813         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
42814         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
42815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
42816         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42817         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42818         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
42819         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
42820         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42821         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42822         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42823         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42824         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42825         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42826         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42827         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
42828         left-adjust flag.
42829         * tests/test-snprintf-posix.h (test_function): Likewise.
42830         * tests/test-sprintf-posix.h (test_function): Likewise.
42831         * tests/test-vasprintf-posix.c (test_function): Likewise.
42832         * doc/posix-functions/fprintf.texi: Update.
42833         * doc/posix-functions/printf.texi: Update.
42834         * doc/posix-functions/snprintf.texi: Update.
42835         * doc/posix-functions/sprintf.texi: Update.
42836         * doc/posix-functions/vfprintf.texi: Update.
42837         * doc/posix-functions/vprintf.texi: Update.
42838         * doc/posix-functions/vsnprintf.texi: Update.
42839         * doc/posix-functions/vsprintf.texi: Update.
42840         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42841
42842 2008-02-06  Bruno Haible  <bruno@clisp.org>
42843
42844         Fix bug introduced on 2008-01-26.
42845         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
42846
42847 2008-02-06  Bruno Haible  <bruno@clisp.org>
42848
42849         Fix bug introduced on 2007-06-10.
42850         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
42851         !NEED_PRINTF_FLAG_ZERO.
42852
42853 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
42854
42855         getloadavg: use libperfstat on AIX5
42856         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
42857
42858 2008-02-03  Bruno Haible  <bruno@clisp.org>
42859
42860         * lib/diffseq.h: Add comments about required #includes.
42861         Reported by Michael Biggs <gnulib@doubleplum.net>.
42862
42863 2008-02-01  Bruno Haible  <bruno@clisp.org>
42864
42865         * users.txt: Add gnuit.
42866
42867 2008-01-31  Bruno Haible  <bruno@clisp.org>
42868
42869         * lib/md4.c (set_uint32): Mark as inline.
42870         * lib/md5.c (set_uint32): Likewise.
42871         * lib/sha1.c (set_uint32): Likewise.
42872         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
42873         * m4/md5.m4 (gl_MD5): Likewise.
42874         * m4/sha1.m4 (gl_SHA1): Likewise.
42875
42876 2008-01-31  Jim Meyering  <meyering@redhat.com>
42877
42878         Use "sizeof VAR", rather than a literal "4".
42879         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
42880         * lib/md4.c (md4_read_ctx): Likewise.
42881         * lib/sha1.c (sha1_read_ctx): Likewise.
42882
42883 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42884
42885         * tests/test-sha1.c: New file, based on test-md5.c.
42886
42887         * modules/crypto/sha1-tests: New file.
42888
42889 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42890
42891         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
42892
42893 2008-01-31  Jim Meyering  <meyering@redhat.com>
42894
42895         Prefer "sizeof v" over the equivalent "4".
42896         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
42897         * lib/md5.c (set_uint32): Likewise.
42898         * lib/sha1.c (set_uint32): Likewise.
42899
42900 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42901
42902         * lib/sha1.c (set_uint32): Mark function as static.
42903
42904 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42905
42906         md2: clarify comments to say that alignment is not required.
42907         * lib/md2.h: Remove warning about alignment in comment.
42908         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
42909         never been required.
42910
42911 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42912
42913         md4: adapt alignment constraint fix from sha1.
42914         * lib/md4.c (set_uint32): New function, from sha1.c
42915         (md4_read_ctx): Use it.
42916         (md4_finish_ctx): Doc fix.
42917         * lib/md4.h: Doc fix.
42918
42919 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42920
42921         md5: adapt alignment constraint fix from sha1.
42922         * lib/md5.c (set_uint32): New function, from sha1.c
42923         (md5_read_ctx): Use it.
42924         (md5_finish_ctx): Doc fix.
42925         * lib/md5.h: Doc fix.
42926
42927 2008-01-30  Peter Palfrader  <weasel@debian.org>
42928
42929         sha1: remove the result buffer alignment constraint
42930         * lib/sha1.c (set_uint32): New function.
42931         (sha1_read_ctx): Rewrite to remove the result buffer alignment
42932         constraint.
42933         (sha1_finish_ctx): Remove comment warning about alignment constraint.
42934         * lib/sha1.h: Likewise.
42935
42936 2008-01-30  Andreas Schwab  <schwab@suse.de>
42937             Bruno Haible  <bruno@clisp.org>
42938
42939         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
42940         correct definition of LDBL_MIN_EXP.
42941
42942 2008-01-30  Karl Berry  <karl@gnu.org>
42943
42944         * config/srclist-update: try to preserve x bit on updates.
42945         * config/srclistvars.sh: update for karl.
42946
42947 2008-01-29  Jim Meyering  <meyering@redhat.com>
42948
42949         vasnprintf.c: Avoid warning about unused label
42950         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
42951         "overflow" label definition and associated code with the
42952         same cpp condition that guards the sole use of that label.
42953
42954 2008-01-26  Bruno Haible  <bruno@clisp.org>
42955
42956         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
42957         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
42958         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
42959         * lib/isnanl-nolibm.h (isnanl): Likewise.
42960         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42961
42962 2008-01-26  Bruno Haible  <bruno@clisp.org>
42963
42964         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
42965         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
42966
42967 2008-01-26  Bruno Haible  <bruno@clisp.org>
42968
42969         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
42970         GCC >= 4.0 built-in.
42971         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
42972
42973 2008-01-26  Bruno Haible  <bruno@clisp.org>
42974
42975         Rename isnan, applicable to 'double' only, to isnand.
42976         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
42977         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
42978         (configure.ac): Update.
42979         (Include): Replace "isnan.h" with "isnand.h".
42980         * m4/isnand.m4: Renamed from m4/isnan.m4.
42981         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
42982         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42983         instead of isnan.c.
42984         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42985         instead of HAVE_ISNAN_IN_LIBC.
42986         (isnand): Renamed from isnan.
42987         * lib/isnand.c: New file.
42988         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42989         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42990         (Makefile.am): Update.
42991         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42992         Include isnand.h instead of isnan.h.
42993         (main): Test isnand instead of isnan.
42994         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42995         isnan-nolibm.
42996         * modules/frexp (Depends-on): Likewise.
42997         * modules/frexp-tests (Depends-on): Likewise.
42998         * modules/frexp-nolibm (Depends-on): Likewise.
42999         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43000         * modules/isfinite (Depends-on): Likewise.
43001         * modules/round-tests (Depends-on): Likewise.
43002         * modules/signbit (Depends-on): Likewise.
43003         * modules/signbit-tests (Depends-on): Likewise.
43004         * modules/snprintf-posix (Depends-on): Likewise.
43005         * modules/sprintf-posix (Depends-on): Likewise.
43006         * modules/trunc-tests (Depends-on): Likewise.
43007         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43008         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43009         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43010         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43011         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43012         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43013         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43014         * modules/vasnprintf-posix (Depends-on): Likewise.
43015         * modules/vasprintf-posix (Depends-on): Likewise.
43016         * modules/vfprintf-posix (Depends-on): Likewise.
43017         * modules/vsnprintf-posix (Depends-on): Likewise.
43018         * modules/vsprintf-posix (Depends-on): Likewise.
43019         * lib/frexp.c: Include isnand.h instead of isnan.h.
43020         (ISNAN): Set to isnand instead of isnan.
43021         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43022         (gl_isfinited): Use isnand instead of isnan.
43023         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43024         (gl_signbitd): Use isnand instead of isnan.
43025         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43026         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43027         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43028         (main): Use isnand instead of isnan.
43029         * tests/test-round1.c: Include isnand.h.
43030         (main): Use isnand instead of isnan.
43031         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43032         (ISNAN): Set to isnand instead of isnan.
43033         * tests/test-trunc1.c: Include isnand.h.
43034         (main): Use isnand instead of isnan.
43035         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43036         (equal): Use isnand instead of isnan.
43037         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43038         isnand-nolibm.
43039         * NEWS: Mention the change.
43040
43041 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43042             Bruno Haible  <bruno@clisp.org>
43043
43044         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43045         the GCC builtins for signbits are present and set
43046         REPLACE_SIGNBIT_USING_GCC if so.
43047         * lib/math.in.h (signbit): Define using GCC builtins if
43048         REPLACE_SIGNBIT_USING_GCC is set.
43049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43050         REPLACE_SIGNBIT_USING_GCC.
43051         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43052
43053 2008-01-25  Jim Meyering  <meyering@redhat.com>
43054
43055         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43056         * lib/poll.c: Include <config.h>, not "config.h".
43057         * tests/test-getaddrinfo.c: Likewise.
43058
43059 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43060
43061         * modules/sockets-tests: New file.
43062
43063 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43064
43065         * modules/sockets: New module, can be used to call WSA_Startup and
43066         WSA_Cleanup when needed.
43067
43068         * lib/sockets.h, lib/sockets.c: New files.
43069
43070         * m4/sockets.m4: New file.
43071
43072         * tests/test-sockets.c: New file.
43073
43074 2008-01-19  Bruno Haible  <bruno@clisp.org>
43075
43076         * doc/posix-headers: Renamed from doc/headers.
43077         * doc/posix-functions: Renamed from doc/functions.
43078         * doc/gnulib.texi: Update.
43079
43080 2008-01-19  Bruno Haible  <bruno@clisp.org>
43081
43082         * doc/glibc-functions/strcasestr.texi: Include contents of
43083         doc/functions/strcasestr.texi, fixing the list of platforms.
43084         * doc/functions/strcasestr.texi: Remove file.
43085
43086 2008-01-19  Bruno Haible  <bruno@clisp.org>
43087
43088         * doc/glibc-functions/memmem.texi: Include contents of
43089         doc/functions/memmem.texi.
43090         * doc/functions/memmem.texi: Remove file.
43091
43092 2008-01-18  Bruno Haible  <bruno@clisp.org>
43093
43094         * doc/glibc-functions/*.texi: New files.
43095         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43096         to use the new files.
43097
43098 2008-01-17  Bruno Haible  <bruno@clisp.org>
43099
43100         * tests/test-gethostname.c (main): Fix printf statement.
43101
43102 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43103
43104         * modules/gethostname-tests: New file.
43105
43106         * tests/test-gethostname.c: New file.
43107
43108 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43109
43110         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43111         used by the UNAME case.  Reported by Bruno Haible
43112         <bruno@clisp.org>.
43113
43114 2008-01-17  Eric Blake  <ebb9@byu.net>
43115
43116         Convert c-strcasestr to be more efficient.
43117         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43118         (Depends-on): Add c-strcase, remove malloca, strnlen.
43119         * tests/test-c-strcasestr.c (main): Enhance test.
43120         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43121
43122 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43123
43124         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43125         Use it in creating po/Makevars.
43126
43127 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43128
43129         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43130         Applications that requires it should initialize libgcrypt
43131         manually.
43132
43133 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43134
43135         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43136
43137 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43138
43139         Fix problem with getdate on mingw32 reported by Simon Josefsson
43140         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43141         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43142         tzname", when deciding whether to declare tzname.
43143         * lib/strftime.c (tzname): Likewise.
43144
43145 2008-01-15  Bruno Haible  <bruno@clisp.org>
43146
43147         Work around a MacOS X 10.5 bug in frexpl().
43148         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43149         * doc/functions/frexpl.texi: Document the bug.
43150         Reported by Elias Pipping <pipping@gentoo.org>.
43151
43152 2008-01-14  Eric Blake  <ebb9@byu.net>
43153
43154         Touch up previous patch.
43155         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43156         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43157
43158         Convert strcasestr module to use Two-Way algorithm.
43159         * modules/strcasestr-simple: New module, based on the old
43160         strcasestr, but with Two-Way rather than KMP.
43161         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43162         * lib/string.in.h (rpl_strcasestr): Declare.
43163         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43164         performance.
43165         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43166         * modules/string (Makefile.am): Support strcasestr.
43167         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43168         * modules/strcasestr-tests (Depends-on): Check for alarm.
43169         * tests/test-strcasestr.c: Augment test.
43170         * lib/str-two-way.h: Clean up stray macro.
43171         * NEWS: Document new module.
43172         * MODULES.html.sh (string handling): Likewise.
43173         * doc/functions/strcasestr.texi: New file.
43174         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43175         here, since it is not a POSIX function.
43176
43177 2008-01-14  Colin Watson  <cjwatson@debian.org>
43178             Bruno Haible  <bruno@clisp.org>
43179
43180         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43181         works fine; if not, set REPLACE_STRSIGNAL.
43182         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43184         REPLACE_STRSIGNAL.
43185         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43186         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43187         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43188
43189 2008-01-14  Bruno Haible  <bruno@clisp.org>
43190
43191         * modules/strsignal (Include): Change to <string.h>.
43192
43193 2008-01-14  Colin Watson  <cjwatson@debian.org>
43194
43195         * modules/argp (Notice): Add a notice recommending to change
43196         XGETTEXT_OPTIONS.
43197         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43198
43199 2008-01-13  Colin Watson  <cjwatson@debian.org>
43200
43201         * modules/strsignal-tests: New file.
43202         * tests/test-strsignal.c: New file.
43203
43204         * lib/strsignal.c: New file, from glibc with modifications.
43205         * lib/siglist.h: New file, from glibc with modifications.
43206         * lib/string.in.h (strsignal): New declaration.
43207         * m4/strsignal.m4: New file.
43208         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43209         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43210         * modules/strsignal: New file.
43211         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43212         HAVE_DECL_STRSIGNAL.
43213
43214 2008-01-13  Bruno Haible  <bruno@clisp.org>
43215
43216         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43217         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43218         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43219         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43220
43221 2008-01-13  Bruno Haible  <bruno@clisp.org>
43222
43223         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43224         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43225         * lib/argp.h (__attribute__): Likewise.
43226         * lib/c-stack.c (__attribute__): Likewise.
43227         * lib/error.h (__attribute__): Likewise.
43228         * lib/fts.c (__attribute__): Likewise.
43229         * lib/openat.h (__attribute__): Likewise.
43230         * lib/stdio.in.h (__attribute__): Likewise.
43231         * lib/string.in.h (__attribute__): Likewise.
43232         * lib/utimens.c (__attribute__): Likewise.
43233         * lib/vasnprintf.h (__attribute__): Likewise.
43234         * lib/xalloc.h (__attribute__): Likewise.
43235         * lib/xprintf.h (__attribute__): Likewise.
43236         * lib/xstrtol.h (__attribute__): Likewise.
43237         * lib/xvasprintf.h (__attribute__): Likewise.
43238
43239 2008-01-12  Bruno Haible  <bruno@clisp.org>
43240
43241         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43242         * doc/glibc-headers/a.out.texi: New file.
43243         * doc/glibc-headers/aliases.texi: New file.
43244         * doc/glibc-headers/alloca.texi: New file.
43245         * doc/glibc-headers/ar.texi: New file.
43246         * doc/glibc-headers/argp.texi: New file.
43247         * doc/glibc-headers/argz.texi: New file.
43248         * doc/glibc-headers/byteswap.texi: New file.
43249         * doc/glibc-headers/crypt.texi: New file.
43250         * doc/glibc-headers/endian.texi: New file.
43251         * doc/glibc-headers/envz.texi: New file.
43252         * doc/glibc-headers/err.texi: New file.
43253         * doc/glibc-headers/error.texi: New file.
43254         * doc/glibc-headers/execinfo.texi: New file.
43255         * doc/glibc-headers/fpu_control.texi: New file.
43256         * doc/glibc-headers/fstab.texi: New file.
43257         * doc/glibc-headers/fts.texi: New file.
43258         * doc/glibc-headers/getopt.texi: New file.
43259         * doc/glibc-headers/ieee754.texi: New file.
43260         * doc/glibc-headers/ifaddrs.texi: New file.
43261         * doc/glibc-headers/libintl.texi: New file.
43262         * doc/glibc-headers/mcheck.texi: New file.
43263         * doc/glibc-headers/mntent.texi: New file.
43264         * doc/glibc-headers/obstack.texi: New file.
43265         * doc/glibc-headers/paths.texi: New file.
43266         * doc/glibc-headers/printf.texi: New file.
43267         * doc/glibc-headers/pty.texi: New file.
43268         * doc/glibc-headers/resolv.texi: New file.
43269         * doc/glibc-headers/shadow.texi: New file.
43270         * doc/glibc-headers/sysexits.texi: New file.
43271         * doc/glibc-headers/ttyent.texi: New file.
43272
43273 2008-01-12  Jim Meyering  <meyering@redhat.com>
43274
43275         announce-gen: emit Gnulib's git-based version string.
43276         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43277         New option --gnulib-version=V, where V is expected to be
43278         the output of running git describe in the gnulib directory.
43279         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43280         not useful, and plan to stop publishing an xdelta file with each
43281         coreutils release.
43282
43283         * build-aux/announce-gen: Also check for lzma-compressed files.
43284
43285 2008-01-11  Bruno Haible  <bruno@clisp.org>
43286
43287         * tests/test-memmem.c (main): Increase maximum allowed time.
43288         * tests/test-strstr.c (main): Likewise.
43289
43290 2008-01-11  Bruno Haible  <bruno@clisp.org>
43291
43292         * doc/functions/memmem.texi: Add more precisions about platforms.
43293         * doc/functions/strstr.texi: Likewise.
43294
43295 2008-01-10  Eric Blake  <ebb9@byu.net>
43296
43297         * m4/strstr.m4: Delete cruft from copy-n-paste.
43298         Reported by Bruno Haible.
43299
43300 2008-01-10  Bruno Haible  <bruno@clisp.org>
43301
43302         Make c-strstr rely on strstr.
43303         * lib/c-strstr.c: Don't include str-kmp.h.
43304         (c_strstr): Define in terms of strstr.
43305         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43306         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43307
43308 2008-01-10  Bruno Haible  <bruno@clisp.org>
43309
43310         * doc/gnulib.texi (String Functions in C Locale): New section.
43311         * doc/c-ctype.texi: New file.
43312         * doc/c-strcase.texi: New file.
43313         * doc/c-strcaseeq.texi: New file.
43314         * doc/c-strcasestr.texi: New file.
43315         * doc/c-strstr.texi: New file.
43316         * doc/c-strtod.texi: New file.
43317         * doc/c-strtold.texi: New file.
43318
43319 2008-01-10  Eric Blake  <ebb9@byu.net>
43320
43321         * lib/relocatable.h: Fix a comment.
43322
43323 2008-01-10  Eric Blake  <ebb9@byu.net>
43324
43325         Share two-way algorithm.
43326         * lib/str-two-way.h: New file, merged from...
43327         * lib/memmem.c: ...here...
43328         * lib/strstr.c: ...and here.
43329         * modules/memmem (Files): Use it.
43330         * modules/strstr (Files): Likewise.
43331
43332         Avoid quadratic strstr implementations.
43333         * lib/strstr.c: New file.
43334         * m4/strstr.m4: Likewise.
43335         * modules/strstr: Likewise.
43336         * modules/strstr-tests: Likewise.
43337         * tests/test-strstr.c: Likewise.
43338         * lib/string.in.h (rpl_strstr): Declare.
43339         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43340         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43341         * modules/string (Makefile.am): Likewise.
43342         * MODULES.html.sh (string handling): Mention new module.
43343         * doc/functions/strstr.texi (strstr): Document the bug.
43344
43345 2008-01-10  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/relocatable.h (relocate): State whether result is freshly
43348         allocated or not.
43349         * lib/relocatable.c (relocate): Return a freshly allocated string
43350         instead of a pointer to a privately held string.
43351         Reported by Sylvain Beucler <beuc@gnu.org>.
43352
43353 2008-01-10  Colin Watson  <cjwatson@debian.org>
43354
43355         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43356         s/S_ISNLK/S_ISLNK/.
43357
43358 2008-01-09  Bruno Haible  <bruno@clisp.org>
43359
43360         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43361         and other files.
43362         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43363         if it's only a guess.
43364         * modules/memmem: Simplify by depending on memmem-simple.
43365
43366 2008-01-09  Bruno Haible  <bruno@clisp.org>
43367
43368         Work around OpenBSD 4.0 tdelete() bug.
43369         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43370         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43371         macros and don't redefine the enum values.
43372         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43373         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43374         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43375
43376 2008-01-09  Bruno Haible  <bruno@clisp.org>
43377
43378         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43379         (main): Don't perform the tests if setlocale did not install a UTF-8
43380         locale. Needed on OpenBSD 4.0.
43381         * modules/wcwidth-tests (Depends-on): Add localcharset.
43382
43383 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43384
43385         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43386         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43387         * NEWS: announce this.
43388         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43389
43390 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43391         and Eric Blake  <ebb9@byu.net>
43392
43393         Add memmem-simple module.
43394         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43395         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43396         * modules/memmem-simple: New file.
43397         * modules/memmem (Description): Tweak.
43398         * MODULES.html.sh (string handling): Mention new module.
43399         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43400         addressed by memmem-simple.
43401         * NEWS: Document the difference.
43402
43403 2008-01-09  Eric Blake  <ebb9@byu.net>
43404
43405         Give gcc some memmem optimization hints.
43406         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43407         (strcasestr): Declare as pure.
43408         * modules/memmem (Maintainer): Claim my implementation.
43409
43410 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43411
43412         Support AIX 6.1 and higher.
43413         * build-aux/config.libpath: Likewise.
43414         * build-aux/config.rpath: Likewise.
43415
43416 2008-01-08  Jim Meyering  <meyering@redhat.com>
43417             Bruno Haible  <bruno@clisp.org>
43418
43419         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43420         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43421         Reported by Peter Fales in
43422         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43423
43424 2008-01-08  Bruno Haible  <bruno@clisp.org>
43425
43426         * modules/unictype/category-of (Depends-on): Add
43427         unictype/category-none.
43428         * modules/unictype/category-and-tests (Depends-on): Add
43429         unictype/category-{L,N,Lu,Nd}.
43430         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43431         * modules/unictype/category-or-tests (Depends-on): Add
43432         unictype/category-{L,N}.
43433         * modules/unictype/category-name-tests (Depends-on): Add
43434         unictype/category-{Z,Nl}.
43435         Reported by Simon Josefsson.
43436
43437 2008-01-08  Bruno Haible  <bruno@clisp.org>
43438
43439         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43440         convention better.
43441         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43442         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43443         Reported by Peter Miller <millerp@canb.auug.org.au>.
43444
43445 2008-01-08  Eric Blake  <ebb9@byu.net>
43446
43447         Rewrite memmem to guarantee linear complexity without malloc.
43448         * lib/memmem.c (memmem): Use Two-Way rather than
43449         Knuth-Morris-Pratt, to allow O(1) space usage.
43450         (critical_factorization, two_way_short_needle)
43451         (two_way_long_needle): New functions.
43452         (knuth_morris_pratt): Delete.
43453         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43454         Add stdint.
43455         * tests/test-memmem.c (main): Add tests for periodic needle and
43456         sublinear performance.
43457         * doc/functions/memmem.texi (memmem): Document other deficiencies
43458         in cygwin and older glibc.
43459
43460 2008-01-08  Bruno Haible  <bruno@clisp.org>
43461
43462         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
43463         augmentation.
43464
43465 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
43466
43467         Add a configure time option: --disable-acl.
43468         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
43469         AC_ARG_ENABLE(acl).
43470
43471 2008-01-06  Simon Josefsson  <simon@josefsson.org>
43472
43473         * tests/test-localename.c: Don't include obsolete "setenv.h".
43474
43475         * modules/localename-tests (Depends-on): Need unsetenv.
43476
43477 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43478
43479         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
43480
43481 2008-01-06  Colin Watson  <cjwatson@debian.org>
43482
43483         * users.txt: Add man-db.
43484
43485 2008-01-07  Bruno Haible  <bruno@clisp.org>
43486
43487         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
43488         previous section name.
43489
43490 2008-01-07  Bruno Haible  <bruno@clisp.org>
43491
43492         * lib/progname.c (set_program_name): Don't strip off a leading
43493         "lt-" prefix outside a .libs directory.
43494         Suggested by Paul Eggert.
43495
43496 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
43497             Bruno Haible  <bruno@clisp.org>
43498
43499         Improve memory cleanup in 'relocatable' module.
43500         * lib/relocatable.h (compute_curr_prefix): Change return type to
43501         'char *'.
43502         * lib/relocatable.c (compute_curr_prefix): Change return type to
43503         'char *'. Free curr_installdir after use.
43504         (relocate): Free curr_prefix_better after use.
43505         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
43506
43507 2008-01-01  Bruno Haible  <bruno@clisp.org>
43508
43509         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
43510         failure on older glibc systems.
43511         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43512
43513 2008-01-05  Eric Blake  <ebb9@byu.net>
43514
43515         Avoid quadratic system memmem.
43516         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
43517         Reported by Ralf Wildenhues.
43518
43519         Fix memmem test for mingw.
43520         * modules/memmem-tests (configure.ac): Check for alarm.
43521         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
43522         it.
43523         * doc/functions/memmem.texi: New file.
43524         * doc/gnulib.texi (Function Substitutes): Add memmem.
43525         Reported by Bruno Haible.
43526
43527 2008-01-04  Bruno Haible  <bruno@clisp.org>
43528
43529         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
43530         Require gl_HEADER_STRINGS_H_DEFAULTS, not
43531         gl_HEADER_STRING_H_DEFAULTS.
43532
43533 2008-01-04  Eric Blake  <ebb9@byu.net>
43534
43535         Shorten duration of memmem test.
43536         * tests/test-memmem.c (main): Use alarm to declare failure if test
43537         is taking too long.
43538         Reported by Ralf Wildenhues.
43539
43540 2007-12-21  Simon Josefsson  <simon@josefsson.org>
43541
43542         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
43543         string, needed by strerror.
43544
43545 2008-01-03  Colin Watson  <cjwatson@debian.org>
43546             Bruno Haible  <bruno@clisp.org>
43547
43548         * doc/gnulib-tool.texi (Localization): New section.
43549
43550 2008-01-02  Bruno Haible  <bruno@clisp.org>
43551
43552         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
43553         variables to 'unsigned char *' type.
43554         Reported by Paul Eggert.
43555
43556 2008-01-02  Jim Meyering  <jim@meyering.net>
43557
43558         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
43559
43560 2007-12-31  Jim Meyering  <jim@meyering.net>
43561
43562         Avoid use of private FTS type name.
43563         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
43564
43565 2007-12-30  Karl Berry  <karl@gnu.org>
43566
43567         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
43568         work around defect in Texinfo and/or the standalone Info browser.
43569
43570 2007-12-30  Bruno Haible  <bruno@clisp.org>
43571
43572         Unify 5 copies of the KMP code.
43573         * lib/str-kmp.h: New file.
43574         * lib/c-strcasestr.c: Include str-kmp.h.
43575         (knuth_morris_pratt): Remove function.
43576         (c_strcasestr): Update.
43577         * lib/c-strstr.c: Include str-kmp.h.
43578         (knuth_morris_pratt): Remove function.
43579         (c_strcasestr): Update.
43580         * lib/mbscasestr.c: Include str-kmp.h.
43581         (knuth_morris_pratt_unibyte): Remove function.
43582         * lib/mbsstr.c: Include str-kmp.h.
43583         (knuth_morris_pratt_unibyte): Remove function.
43584         * lib/strcasestr.c: Include str-kmp.h.
43585         (knuth_morris_pratt): Remove function.
43586         (strcasestr): Update.
43587         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
43588         * modules/c-strstr (Files): Likewise.
43589         * modules/mbscasestr (Files): Likewise.
43590         * modules/mbsstr (Files): Likewise.
43591         * modules/strcasestr (Files): Likewise.
43592         Suggested by Paul Eggert.
43593
43594 2007-12-30  Bruno Haible  <bruno@clisp.org>
43595
43596         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
43597         defined.
43598
43599 2007-12-30  Bruno Haible  <bruno@clisp.org>
43600
43601         * lib/xmalloca.h: Include xalloc.h.
43602         (xnmalloca): New macro.
43603
43604 2007-12-30  Bruno Haible  <bruno@clisp.org>
43605
43606         * lib/malloca.h (nmalloca): New macro.
43607         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
43608         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
43609         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
43610         knuth_morris_pratt_multibyte): Likewise.
43611         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
43612         knuth_morris_pratt_multibyte): Likewise.
43613         * lib/memmem.c (knuth_morris_pratt): Likewise.
43614         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
43615
43616 2007-12-25  Bruno Haible  <bruno@clisp.org>
43617
43618         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
43619         * lib/glob.c: Don't include openat.h.
43620         (link_exists2_p): Add back the code that deals with the
43621         !GLOB_ALTDIRFUNC case.
43622         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
43623         let it do the filename concatenation.
43624         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
43625         * modules/glob (Depends-on): Remove openat.
43626
43627 2007-12-31  Bruno Haible  <bruno@clisp.org>
43628
43629         * modules/dirfd (License): Change to LGPLv2+.
43630         Approved by Jim Meyering.
43631
43632 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43633
43634         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43635         when multiplying M by sizeof (size_t).
43636
43637 2007-12-10  Martin Lambers  <marlam@marlam.de>
43638
43639         Override getpagesize on mingw.
43640         * lib/getpagesize.c: New file.
43641         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43642         * modules/getpagesize (Files): Add lib/getpagesize.c.
43643         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43645         REPLACE_GETPAGESIZE.
43646         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43647
43648 2007-12-25  Bruno Haible  <bruno@clisp.org>
43649
43650         * modules/localcharset (Notice): New field.
43651         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43652         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43653
43654 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43655             Bruno Haible  <bruno@clisp.org>
43656
43657         Avoid using the syntax symbol() in formatted documentation.
43658         * MODULES.html.sh (func_module): When replacing symbol() with a
43659         hyperlink, remove the parentheses. Show an error if some remain.
43660         Recognize and render the '...' syntax.
43661         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43662         Rework. Add paragraph about GCC's inlining.
43663         * doc/alloca.texi: Likewise.
43664         * doc/error.texi: Remove parentheses from symbol reference.
43665         * doc/gnulib-intro.texi: Likewise.
43666         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43667         * modules/fnmatch (Description): Reword to say "the ... function".
43668         * modules/full-read (Description): Likewise.
43669         * modules/full-write (Description): Likewise.
43670         * modules/safe-read (Description): Likewise.
43671         * modules/safe-write (Description): Likewise.
43672         * modules/strchrnul (Description): Likewise.
43673         * modules/trim (Description): Likewise.
43674         * modules/error (Description): Remove parentheses from symbol
43675         references.
43676         * modules/verror (Description): Likewise.
43677         Reported by Karl Berry.
43678
43679 2007-12-25  Bruno Haible  <bruno@clisp.org>
43680
43681         Fixup after 2007-10-16 commit.
43682         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43683
43684 2007-12-24  Bruno Haible  <bruno@clisp.org>
43685
43686         Make --enable-relocatable work with DESTDIR.
43687         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43688         to compute installdir from destprog.
43689         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43690         also set the RELOC_DESTDIR variable.
43691         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43692
43693 2007-12-24  Bruno Haible  <bruno@clisp.org>
43694
43695         Fix link error due to xalloc_die().
43696         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43697         of xreadlink.
43698         * lib/relocwrapper.c: Update comments.
43699         * build-aux/install-reloc: Remove xreadlink.c from file list.
43700         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43701         xreadlink.c.
43702         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43703
43704 2007-12-24  Bruno Haible  <bruno@clisp.org>
43705
43706         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43707         * lib/setenv.h: Remove file.
43708         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43709         lib/setenv.h.
43710         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43711         (Depends-on): Add stdlib.
43712         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43713         gl_FUNC_UNSETENV.
43714         (Include): Replace setenv.h with <stdlib.h>.
43715         * modules/unsetenv: New file.
43716         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43717         * lib/unsetenv.c: Include <stdlib.h> first.
43718         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43719         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43720         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43721         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43722         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43723         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43725         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43726         * doc/functions/unsetenv.texi: Update.
43727         * modules/xsetenv (Depends-on): Add unsetenv.
43728         * modules/getdate (Depends-on): Likewise.
43729         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43730         * lib/xsetenv.c: Don't include setenv.h.
43731         * lib/getdate.y: Likewise.
43732         * lib/relocwrapper.c: Likewise.
43733         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43734         (Depends-on): Add stdlib.
43735         * NEWS: Mention the changes.
43736         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43737
43738 2007-12-23  Bruno Haible  <bruno@clisp.org>
43739
43740         * lib/memmem.c (memmem): Use lowercase variable names. Tab
43741         indentation.
43742
43743 2007-12-23  Bruno Haible  <bruno@clisp.org>
43744
43745         * lib/c-strcasestr.c: Add more comments.
43746         * lib/c-strstr.c: Likewise.
43747         * lib/mbscasestr.c: Likewise.
43748         * lib/mbsstr.c: Likewise.
43749         * lib/strcasestr.c: Likewise.
43750         * lib/memmem.c: Likewise.
43751
43752 2007-12-23  Bruno Haible  <bruno@clisp.org>
43753
43754         * tests/test-memmem.c: Include <string.h> first.
43755
43756 2007-12-22  Bruno Haible  <bruno@clisp.org>
43757
43758         * gnulib-tool (func_create_testdir): Change $auxdir while generating
43759         the contents of $testsbase.
43760         Reported by Ralf Wildenhues.
43761
43762 2007-12-22  Bruno Haible  <bruno@clisp.org>
43763
43764         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
43765         two variables local_ldadd_before, local_ldadd_last.
43766
43767 2007-12-20  Eric Blake  <ebb9@byu.net>
43768
43769         Work around circular library issue when cross-compiling.
43770         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
43771         that progname.o does not need to pull in rpl_memcmp.
43772
43773 2007-12-19  Eric Blake  <ebb9@byu.net>
43774
43775         Fix memmem to avoid O(n^2) worst-case complexity.
43776         * lib/memmem.c (knuth_morris_pratt): New function.
43777         (memmem): Use it if first few naive iterations fail.
43778         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
43779         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
43780         * modules/memchr (License): Likewise.
43781         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
43782         malloca.
43783         * tests/test-memmem.c: Rewrite, borrowing ideas from
43784         test-mbsstr1.c; the old version wouldn't even compile!
43785         * modules/memmem-tests: New file.
43786         * lib/string.in.h (rpl_memmem): Add declaration.
43787         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
43788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
43789         REPLACE_MEMMEM.
43790
43791 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43792
43793         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
43794         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
43795         before any system include files, and undef after them all.  This
43796         should fix a problem on VMS reported by John E. Malmberg in
43797         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
43798
43799 2007-12-17  Eric Blake  <ebb9@byu.net>
43800
43801         Revert addition of verify, for BSD/OS.
43802         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
43803         can't handle large files, for the sake of obsolete platforms.
43804         * modules/fseeko (Depends-on): Remove verify.
43805         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
43806         * doc/functions/ftello.texi (ftello): Likewise.
43807         * doc/functions/fgetpos.texi (fgetpos): Likewise.
43808         Reported by Larry Jones.
43809
43810 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
43811
43812         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
43813         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
43814
43815 2007-12-17  Jim Meyering  <meyering@redhat.com>
43816
43817         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
43818         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
43819         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
43820         * modules/getcwd (Depends-on): Add openat.
43821         Reported by Petr Salinger.
43822
43823 2007-12-17  Bruno Haible  <bruno@clisp.org>
43824
43825         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
43826         avoid a segmentation fault of the configure test on x86_64 systems.
43827
43828 2007-12-15  Jim Meyering  <meyering@redhat.com>
43829
43830         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
43831
43832 2007-12-13  Eric Blake  <ebb9@byu.net>
43833
43834         Another fseek test.
43835         * tests/test-fseek.c (main): Also test ungetc handling.
43836         * tests/test-fseeko.c (main): Likewise.
43837         * modules/fseeko (Depends-on): Add verify.
43838         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
43839         large.
43840         Reported by Larry Jones.
43841
43842         Fix fseeko on mingw.
43843         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
43844         seek.
43845
43846         Beef up fseek tests.
43847         * tests/test-fseek.c (main): Also test eof handling.
43848         * tests/test-fseeko.c (main): Likewise.
43849         Reported by Larry Jones.
43850
43851 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
43852
43853         Fix fseeko on BSD-based platforms.
43854         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
43855         successful seek.
43856
43857 2007-12-12  Eric Blake  <ebb9@byu.net>
43858
43859         Allow circular dependency of separate libtests.a
43860         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
43861         when use_libtests.
43862
43863 2007-12-11  Eric Blake  <ebb9@byu.net>
43864
43865         Fix bug with -0.0L in previous patch.
43866         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
43867         * tests/test-isnan.c (main): Also test on zeroes.
43868         * tests/test-isnanf.c (main): Likewise.
43869         * tests/test-isnanl.h (main): Likewise.
43870
43871         Detect pseudo-denormals on x86 even when cross-compiling.
43872         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
43873         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
43874         invalid bit patterns that happen to satisfy ==.
43875
43876         Avoid link failures with separate libtests.a.
43877         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
43878         last, to satisfy circular dependencies.
43879
43880 2007-12-11  Eric Blake  <ebb9@byu.net>
43881         and Bruno Haible  <bruno@clisp.org>
43882
43883         Fix OpenBSD 4.0 <float.h> handling of long double.
43884         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
43885         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
43886         * doc/headers/float.texi (float.h): Document OpenBSD bug.
43887
43888 2007-12-11  Jim Meyering  <meyering@redhat.com>
43889
43890         * users.txt: Add libvirt.
43891
43892         Support versions of autoconf prior to 2.59c.
43893         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
43894         if it is not already defined.
43895
43896 2007-12-09  Bruno Haible  <bruno@clisp.org>
43897
43898         Let 'gnulib-tool --import' collect sources needed for the tests in
43899         tests/ rather than in lib/.
43900         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
43901         argument. If true, add rules to generate libtests.a, and put libtests.a
43902         into $(LDADD). Consider source files in subdirectories and set
43903         uses_subdirs.
43904         (func_emit_initmacro_start, func_emit_initmacro_end,
43905         func_emit_initmacro_done): Pass all arguments explicitly.
43906         (func_import): Determine two module lists main_modules,
43907         testsrelated_modules. Determine use_libtests. Determine two variables
43908         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
43909         instead of just sed_transform_lib_file. Determine two variables
43910         main_files and testsrelated_files. Compute 'files' as the union of
43911         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
43912         func_add_or_update. In the generated gnulib-comp.m4, collect the
43913         object files for tests/ in different variables than those for lib/.
43914         Substitute LIBTESTS_LIBDEPS.
43915         (func_create_testdir): Combine the uses_subdirs results from
43916         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
43917
43918 2007-12-09  Bruno Haible  <bruno@clisp.org>
43919
43920         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
43921         the build-aux directory.
43922
43923 2007-12-09  Bruno Haible  <bruno@clisp.org>
43924
43925         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
43926         introduced on 2006-09-09.
43927
43928 2007-12-07  Jim Meyering  <meyering@redhat.com>
43929
43930         Let these macros work also with autoconf-2.59.
43931         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
43932         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
43933         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43934
43935 2007-12-06  Jim Meyering  <meyering@redhat.com>
43936
43937         Avoid a configure-time syntax error in gl_FUNC_ACL.
43938         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
43939         function in each branch, before testing the cache variable.
43940
43941 2007-12-04  Eric Blake  <ebb9@byu.net>
43942
43943         Make scripts executable.
43944         * build-aux/config.guess: Add execute permissions.
43945         * build-aux/config.sub: Likewise.
43946         * build-aux/gendocs.sh: Likewise.
43947
43948         Fix frexp on mingw.
43949         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
43950         cross-compiling.
43951         * doc/functions/frexp.texi (frexp): Document the bug.
43952
43953         Make cygwin fseeko check more reliable.
43954         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
43955         version numbers, rather than unrelated feature check.
43956         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
43957         * doc/functions/ftello.texi (ftello): Likewise.
43958         Reported by Bruno Haible.
43959
43960         * m4/strerror.m4: Bump version number.
43961
43962 2007-12-03  Bruno Haible  <bruno@clisp.org>
43963
43964         * doc/functions/mprotect.texi: Mention the mingw problem.
43965
43966 2007-12-03  Eric Blake  <ebb9@byu.net>
43967
43968         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
43969         REPLACE_STRERROR is initialized before this macro.
43970
43971 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43972
43973         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
43974         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
43975         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
43976         put -lsec in even for programs other than 'ls'.  This fixes a problem
43977         for gettext reported by Bruno Haible in
43978         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
43979         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
43980         Add support for Solaris 10.  This isn't efficient, but should get the
43981         job done for now.
43982
43983 2007-12-03  James Youngman  <jay@gnu.org>
43984
43985         * doc/regexprops-generic.texi: change "an close-group" to "a
43986         close-group" and "illegal" to "not allowed".
43987
43988 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43989
43990         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43991         pr_byname.h. Needed for the rare case when the maintainer has done
43992         "make maintainer-clean" in the source directory and then attempts a
43993         build outside the source directory.
43994         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43995         scripts_byname.h.
43996
43997 2007-12-02  Martin Lambers <marlam@marlam.de>
43998             Bruno Haible  <bruno@clisp.org>
43999
44000         * lib/getpagesize.h: Remove file.
44001         * lib/unistd.in.h: Include declaration of getpagesize here.
44002         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44003         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44004         HAVE_SYS_PARAM_H.
44005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44006         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44007         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44008         (Depends-on): Add unistd.
44009         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44010         (Include): Use <unistd.h> instead of getpagesize.h.
44011         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44012         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44013         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44014         gl_GETPAGESIZE invocation, already handled by module dependency.
44015         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44016
44017 2007-12-02  Bruno Haible  <bruno@clisp.org>
44018
44019         * modules/strings-tests: New file.
44020         * tests/test-strings.c: New file.
44021
44022         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44023         * lib/strings.in.h: New file.
44024         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44025         * m4/strings_h.m4: New file.
44026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44027         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44028         * modules/strings: New file.
44029         * modules/string (Makefile.am): Update.
44030         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44031         Reported by Karl Berry.
44032
44033 2007-12-01  Eric Blake  <ebb9@byu.net>
44034
44035         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44036         accomodate fix in cygwin 1.5.25.
44037
44038 2007-12-01  Jim Meyering  <meyering@redhat.com>
44039
44040         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44041         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44042         that would inhibit utf8-optimization of a regexp containing line-
44043         or buffer-anchors, e.g., `^', `$'.
44044
44045 2007-11-30  Bruno Haible  <bruno@clisp.org>
44046
44047         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44048         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44049         glthread_recursive_lock_init.
44050         * lib/lock.c (glthread_recursive_lock_init)
44051         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44052         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44053
44054 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44055
44056         New function qset_acl, like set_acl but with syscall semantics.
44057         * lib/acl.h (qset_acl): New decl.
44058         * lib/acl.c (qset_acl): New function.
44059         (set_acl): Use new function.  Use more-consistent diagnostics.
44060
44061 2007-11-28  Jim Meyering  <meyering@redhat.com>
44062
44063         * modules/physmem (License): Change from GPL to LGPLv2+.
44064
44065 2007-11-26  Bruno Haible  <bruno@clisp.org>
44066
44067         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44068         'long double' type has excess precision.
44069         Reported by Jim Meyering in
44070         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44071
44072 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44073
44074         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44075         Sync from <http://gnu.org/licenses>.
44076         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44077         with license text from same location.
44078         * doc/maintain.texi, doc/standards.texi:  Sync from
44079         <http://savannah.gnu.org/projects/gnustandards>.
44080
44081 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44082         and Jim Meyering  <meyering@redhat.com>
44083
44084         Adjust getdate' grammar to accept a slightly more regular language.
44085         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44086         Before, the former was rejected.
44087         * lib/getdate.y (digits_to_date_time): New function, factored
44088         out of ...
44089         (number): ...here.  Just call digits_to_date_time.
44090         (hybrid): New non-terminal to handle an <unsigned number,
44091         signed relative offset> sequence consistently.
44092
44093 2007-11-18  Jim Meyering  <meyering@redhat.com>
44094
44095         Pull my changes from coreutils:
44096         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44097         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44098         use of $gnulib_tool_option_extras, so that it's separated from the
44099         preceding argument.
44100
44101         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44102         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44103         parent destination directories before copying a file into place.
44104
44105 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44106
44107         bootstrap: work also with 4-argument variant of AC_INIT
44108         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44109
44110 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44111
44112         Port test-getaddrinfo to Solaris.
44113         Problem reported by Bruno Haible in
44114         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44115         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44116         explanation of setting 'hints'.
44117         Don't reject an implementation merely because it returns EAI_SERVICE.
44118         (EAI_SERVICE): Define to 0 if not defined.
44119
44120 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44121
44122         The license of gnu-make and posix-shell is now "GPLed build tool".
44123         * modules/gnu-make (License): Likewise.
44124         * modules/posix-shell (License): Likewise.
44125
44126         New module posix-shell, for determining a POSIX shell
44127         or perhaps something that is close enough to a POSIX shell.
44128         * m4/posix-shell.m4: New file.
44129         * modules/posix-shell: New file.
44130
44131         * MODULES.html.sh: Mention new module.
44132
44133         New module gnu-make, for determining whether we're using GNU Make.
44134         * m4/gnu-make.m4: New file.
44135         * modules/gnu-make: New file.
44136         * MODULES.html.sh: Mention new module.
44137
44138 2007-11-14  Jim Meyering  <meyering@redhat.com>
44139
44140         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44141         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44142         use this macro to create a function _definition_.
44143         Remove useless "#undef ARGMATCH_DIE".
44144
44145 2007-11-14  Bruno Haible  <bruno@clisp.org>
44146
44147         * lib/config.charset: Update for OpenBSD 4.1.
44148         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44149
44150 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44151
44152         Document 64-bit #if problems in stdint.texi.
44153         * doc/headers/stdint.texi (stdint.h): Mention problems with
44154         64-bit-#if, and how to work around them.
44155
44156         Don't insist on 'long long int' support in the preprocessor.  It
44157         breaks too many things.  For example, PRIdMAX still uses a 'long
44158         long int' format with the latest Sun compiler, even though
44159         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44160         preprocessor problem.  This causes the latest coreutils to dump
44161         core on Solaris 10 sparc with the Sun C compiler.
44162         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44163         the troublesome expressions at configure-time, not at #if-time.
44164         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44165         preprocessor.
44166         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44167         compile-time C checks, done at 'configure'-time.
44168         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44169         * modules/inttypes (Makefile): Substitute the new symbols that
44170         gl_INTTYPES_H now generates.
44171         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44172
44173 2007-11-12  Bruno Haible  <bruno@clisp.org>
44174
44175         Tests for Unicode character classification functions.
44176
44177         * modules/unictype/bidicategory-byname-tests: New file.
44178         * modules/unictype/bidicategory-name-tests: New file.
44179         * modules/unictype/bidicategory-of-tests: New file.
44180         * modules/unictype/bidicategory-test-tests: New file.
44181         * modules/unictype/block-list-tests: New file.
44182         * modules/unictype/block-of-tests: New file.
44183         * modules/unictype/block-test-tests: New file.
44184         * modules/unictype/category-C-tests: New file.
44185         * modules/unictype/category-Cc-tests: New file.
44186         * modules/unictype/category-Cf-tests: New file.
44187         * modules/unictype/category-Cn-tests: New file.
44188         * modules/unictype/category-Co-tests: New file.
44189         * modules/unictype/category-Cs-tests: New file.
44190         * modules/unictype/category-L-tests: New file.
44191         * modules/unictype/category-Ll-tests: New file.
44192         * modules/unictype/category-Lm-tests: New file.
44193         * modules/unictype/category-Lo-tests: New file.
44194         * modules/unictype/category-Lt-tests: New file.
44195         * modules/unictype/category-Lu-tests: New file.
44196         * modules/unictype/category-M-tests: New file.
44197         * modules/unictype/category-Mc-tests: New file.
44198         * modules/unictype/category-Me-tests: New file.
44199         * modules/unictype/category-Mn-tests: New file.
44200         * modules/unictype/category-N-tests: New file.
44201         * modules/unictype/category-Nd-tests: New file.
44202         * modules/unictype/category-Nl-tests: New file.
44203         * modules/unictype/category-No-tests: New file.
44204         * modules/unictype/category-P-tests: New file.
44205         * modules/unictype/category-Pc-tests: New file.
44206         * modules/unictype/category-Pd-tests: New file.
44207         * modules/unictype/category-Pe-tests: New file.
44208         * modules/unictype/category-Pf-tests: New file.
44209         * modules/unictype/category-Pi-tests: New file.
44210         * modules/unictype/category-Po-tests: New file.
44211         * modules/unictype/category-Ps-tests: New file.
44212         * modules/unictype/category-S-tests: New file.
44213         * modules/unictype/category-Sc-tests: New file.
44214         * modules/unictype/category-Sk-tests: New file.
44215         * modules/unictype/category-Sm-tests: New file.
44216         * modules/unictype/category-So-tests: New file.
44217         * modules/unictype/category-Z-tests: New file.
44218         * modules/unictype/category-Zl-tests: New file.
44219         * modules/unictype/category-Zp-tests: New file.
44220         * modules/unictype/category-Zs-tests: New file.
44221         * modules/unictype/category-and-not-tests: New file.
44222         * modules/unictype/category-and-tests: New file.
44223         * modules/unictype/category-byname-tests: New file.
44224         * modules/unictype/category-name-tests: New file.
44225         * modules/unictype/category-none-tests: New file.
44226         * modules/unictype/category-of-tests: New file.
44227         * modules/unictype/category-or-tests: New file.
44228         * modules/unictype/category-test-withtable-tests: New file.
44229         * modules/unictype/combining-class-tests: New file.
44230         * modules/unictype/ctype-alnum-tests: New file.
44231         * modules/unictype/ctype-alpha-tests: New file.
44232         * modules/unictype/ctype-blank-tests: New file.
44233         * modules/unictype/ctype-cntrl-tests: New file.
44234         * modules/unictype/ctype-digit-tests: New file.
44235         * modules/unictype/ctype-graph-tests: New file.
44236         * modules/unictype/ctype-lower-tests: New file.
44237         * modules/unictype/ctype-print-tests: New file.
44238         * modules/unictype/ctype-punct-tests: New file.
44239         * modules/unictype/ctype-space-tests: New file.
44240         * modules/unictype/ctype-upper-tests: New file.
44241         * modules/unictype/ctype-xdigit-tests: New file.
44242         * modules/unictype/decimal-digit-tests: New file.
44243         * modules/unictype/digit-tests: New file.
44244         * modules/unictype/mirror-tests: New file.
44245         * modules/unictype/numeric-tests: New file.
44246         * modules/unictype/property-alphabetic-tests: New file.
44247         * modules/unictype/property-ascii-hex-digit-tests: New file.
44248         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44249         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44250         * modules/unictype/property-bidi-block-separator-tests: New file.
44251         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44252         * modules/unictype/property-bidi-common-separator-tests: New file.
44253         * modules/unictype/property-bidi-control-tests: New file.
44254         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44255         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44256         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44257         * modules/unictype/property-bidi-european-digit-tests: New file.
44258         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44259         * modules/unictype/property-bidi-left-to-right-tests: New file.
44260         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44261         * modules/unictype/property-bidi-other-neutral-tests: New file.
44262         * modules/unictype/property-bidi-pdf-tests: New file.
44263         * modules/unictype/property-bidi-segment-separator-tests: New file.
44264         * modules/unictype/property-bidi-whitespace-tests: New file.
44265         * modules/unictype/property-byname-tests: New file.
44266         * modules/unictype/property-combining-tests: New file.
44267         * modules/unictype/property-composite-tests: New file.
44268         * modules/unictype/property-currency-symbol-tests: New file.
44269         * modules/unictype/property-dash-tests: New file.
44270         * modules/unictype/property-decimal-digit-tests: New file.
44271         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44272         * modules/unictype/property-deprecated-tests: New file.
44273         * modules/unictype/property-diacritic-tests: New file.
44274         * modules/unictype/property-extender-tests: New file.
44275         * modules/unictype/property-format-control-tests: New file.
44276         * modules/unictype/property-grapheme-base-tests: New file.
44277         * modules/unictype/property-grapheme-extend-tests: New file.
44278         * modules/unictype/property-grapheme-link-tests: New file.
44279         * modules/unictype/property-hex-digit-tests: New file.
44280         * modules/unictype/property-hyphen-tests: New file.
44281         * modules/unictype/property-id-continue-tests: New file.
44282         * modules/unictype/property-id-start-tests: New file.
44283         * modules/unictype/property-ideographic-tests: New file.
44284         * modules/unictype/property-ids-binary-operator-tests: New file.
44285         * modules/unictype/property-ids-trinary-operator-tests: New file.
44286         * modules/unictype/property-ignorable-control-tests: New file.
44287         * modules/unictype/property-iso-control-tests: New file.
44288         * modules/unictype/property-join-control-tests: New file.
44289         * modules/unictype/property-left-of-pair-tests: New file.
44290         * modules/unictype/property-line-separator-tests: New file.
44291         * modules/unictype/property-logical-order-exception-tests: New file.
44292         * modules/unictype/property-lowercase-tests: New file.
44293         * modules/unictype/property-math-tests: New file.
44294         * modules/unictype/property-non-break-tests: New file.
44295         * modules/unictype/property-not-a-character-tests: New file.
44296         * modules/unictype/property-numeric-tests: New file.
44297         * modules/unictype/property-other-alphabetic-tests: New file.
44298         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44299         * modules/unictype/property-other-grapheme-extend-tests: New file.
44300         * modules/unictype/property-other-id-continue-tests: New file.
44301         * modules/unictype/property-other-id-start-tests: New file.
44302         * modules/unictype/property-other-lowercase-tests: New file.
44303         * modules/unictype/property-other-math-tests: New file.
44304         * modules/unictype/property-other-uppercase-tests: New file.
44305         * modules/unictype/property-paired-punctuation-tests: New file.
44306         * modules/unictype/property-paragraph-separator-tests: New file.
44307         * modules/unictype/property-pattern-syntax-tests: New file.
44308         * modules/unictype/property-pattern-white-space-tests: New file.
44309         * modules/unictype/property-private-use-tests: New file.
44310         * modules/unictype/property-punctuation-tests: New file.
44311         * modules/unictype/property-quotation-mark-tests: New file.
44312         * modules/unictype/property-radical-tests: New file.
44313         * modules/unictype/property-sentence-terminal-tests: New file.
44314         * modules/unictype/property-soft-dotted-tests: New file.
44315         * modules/unictype/property-space-tests: New file.
44316         * modules/unictype/property-terminal-punctuation-tests: New file.
44317         * modules/unictype/property-test-tests: New file.
44318         * modules/unictype/property-titlecase-tests: New file.
44319         * modules/unictype/property-unassigned-code-value-tests: New file.
44320         * modules/unictype/property-unified-ideograph-tests: New file.
44321         * modules/unictype/property-uppercase-tests: New file.
44322         * modules/unictype/property-variation-selector-tests: New file.
44323         * modules/unictype/property-white-space-tests: New file.
44324         * modules/unictype/property-xid-continue-tests: New file.
44325         * modules/unictype/property-xid-start-tests: New file.
44326         * modules/unictype/property-zero-width-tests: New file.
44327         * modules/unictype/scripts-tests: New file.
44328         * modules/unictype/syntax-c-ident-tests: New file.
44329         * modules/unictype/syntax-c-whitespace-tests: New file.
44330         * modules/unictype/syntax-java-ident-tests: New file.
44331         * modules/unictype/syntax-java-whitespace-tests: New file.
44332         * tests/unictype/test-bidi_byname.c: New file.
44333         * tests/unictype/test-bidi_name.c: New file.
44334         * tests/unictype/test-bidi_of.c: New file.
44335         * tests/unictype/test-bidi_test.c: New file.
44336         * tests/unictype/test-block_list.c: New file.
44337         * tests/unictype/test-block_of.c: New file.
44338         * tests/unictype/test-block_test.c: New file.
44339         * tests/unictype/test-categ_and.c: New file.
44340         * tests/unictype/test-categ_and_not.c: New file.
44341         * tests/unictype/test-categ_byname.c: New file.
44342         * tests/unictype/test-categ_name.c: New file.
44343         * tests/unictype/test-categ_none.c: New file.
44344         * tests/unictype/test-categ_of.c: New file.
44345         * tests/unictype/test-categ_or.c: New file.
44346         * tests/unictype/test-categ_test_withtable.c: New file.
44347         * tests/unictype/test-combining.c: New file.
44348         * tests/unictype/test-decdigit.c: New file.
44349         * tests/unictype/test-digit.c: New file.
44350         * tests/unictype/test-mirror.c: New file.
44351         * tests/unictype/test-numeric.c: New file.
44352         * tests/unictype/test-pr_byname.c: New file.
44353         * tests/unictype/test-pr_test.c: New file.
44354         * tests/unictype/test-predicate-part1.h: New file.
44355         * tests/unictype/test-predicate-part2.h: New file.
44356         * tests/unictype/test-scripts.c: New file.
44357         * tests/unictype/test-sy_c_ident.c: New file.
44358         * tests/unictype/test-sy_java_ident.c: New file.
44359
44360         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44361         for Unicode 5.0.0.
44362         * tests/unictype/test-categ_Cc.c: Likewise.
44363         * tests/unictype/test-categ_Cf.c: Likewise.
44364         * tests/unictype/test-categ_Cn.c: Likewise.
44365         * tests/unictype/test-categ_Co.c: Likewise.
44366         * tests/unictype/test-categ_Cs.c: Likewise.
44367         * tests/unictype/test-categ_L.c: Likewise.
44368         * tests/unictype/test-categ_Ll.c: Likewise.
44369         * tests/unictype/test-categ_Lm.c: Likewise.
44370         * tests/unictype/test-categ_Lo.c: Likewise.
44371         * tests/unictype/test-categ_Lt.c: Likewise.
44372         * tests/unictype/test-categ_Lu.c: Likewise.
44373         * tests/unictype/test-categ_M.c: Likewise.
44374         * tests/unictype/test-categ_Mc.c: Likewise.
44375         * tests/unictype/test-categ_Me.c: Likewise.
44376         * tests/unictype/test-categ_Mn.c: Likewise.
44377         * tests/unictype/test-categ_N.c: Likewise.
44378         * tests/unictype/test-categ_Nd.c: Likewise.
44379         * tests/unictype/test-categ_Nl.c: Likewise.
44380         * tests/unictype/test-categ_No.c: Likewise.
44381         * tests/unictype/test-categ_P.c: Likewise.
44382         * tests/unictype/test-categ_Pc.c: Likewise.
44383         * tests/unictype/test-categ_Pd.c: Likewise.
44384         * tests/unictype/test-categ_Pe.c: Likewise.
44385         * tests/unictype/test-categ_Pf.c: Likewise.
44386         * tests/unictype/test-categ_Pi.c: Likewise.
44387         * tests/unictype/test-categ_Po.c: Likewise.
44388         * tests/unictype/test-categ_Ps.c: Likewise.
44389         * tests/unictype/test-categ_S.c: Likewise.
44390         * tests/unictype/test-categ_Sc.c: Likewise.
44391         * tests/unictype/test-categ_Sk.c: Likewise.
44392         * tests/unictype/test-categ_Sm.c: Likewise.
44393         * tests/unictype/test-categ_So.c: Likewise.
44394         * tests/unictype/test-categ_Z.c: Likewise.
44395         * tests/unictype/test-categ_Zl.c: Likewise.
44396         * tests/unictype/test-categ_Zp.c: Likewise.
44397         * tests/unictype/test-categ_Zs.c: Likewise.
44398         * tests/unictype/test-ctype_alnum.c: Likewise.
44399         * tests/unictype/test-ctype_alpha.c: Likewise.
44400         * tests/unictype/test-ctype_blank.c: Likewise.
44401         * tests/unictype/test-ctype_cntrl.c: Likewise.
44402         * tests/unictype/test-ctype_digit.c: Likewise.
44403         * tests/unictype/test-ctype_graph.c: Likewise.
44404         * tests/unictype/test-ctype_lower.c: Likewise.
44405         * tests/unictype/test-ctype_print.c: Likewise.
44406         * tests/unictype/test-ctype_punct.c: Likewise.
44407         * tests/unictype/test-ctype_space.c: Likewise.
44408         * tests/unictype/test-ctype_upper.c: Likewise.
44409         * tests/unictype/test-ctype_xdigit.c: Likewise.
44410         * tests/unictype/test-decdigit.h: Likewise.
44411         * tests/unictype/test-digit.h: Likewise.
44412         * tests/unictype/test-numeric.h: Likewise.
44413         * tests/unictype/test-pr_alphabetic.c: Likewise.
44414         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44415         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44416         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44417         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44418         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44419         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44420         * tests/unictype/test-pr_bidi_control.c: Likewise.
44421         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44422         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44423         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44424         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44425         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44426         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44427         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44428         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44429         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44430         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44431         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44432         * tests/unictype/test-pr_combining.c: Likewise.
44433         * tests/unictype/test-pr_composite.c: Likewise.
44434         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44435         * tests/unictype/test-pr_dash.c: Likewise.
44436         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44437         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44438         * tests/unictype/test-pr_deprecated.c: Likewise.
44439         * tests/unictype/test-pr_diacritic.c: Likewise.
44440         * tests/unictype/test-pr_extender.c: Likewise.
44441         * tests/unictype/test-pr_format_control.c: Likewise.
44442         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44443         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44444         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44445         * tests/unictype/test-pr_hex_digit.c: Likewise.
44446         * tests/unictype/test-pr_hyphen.c: Likewise.
44447         * tests/unictype/test-pr_id_continue.c: Likewise.
44448         * tests/unictype/test-pr_id_start.c: Likewise.
44449         * tests/unictype/test-pr_ideographic.c: Likewise.
44450         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44451         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44452         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44453         * tests/unictype/test-pr_iso_control.c: Likewise.
44454         * tests/unictype/test-pr_join_control.c: Likewise.
44455         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44456         * tests/unictype/test-pr_line_separator.c: Likewise.
44457         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44458         * tests/unictype/test-pr_lowercase.c: Likewise.
44459         * tests/unictype/test-pr_math.c: Likewise.
44460         * tests/unictype/test-pr_non_break.c: Likewise.
44461         * tests/unictype/test-pr_not_a_character.c: Likewise.
44462         * tests/unictype/test-pr_numeric.c: Likewise.
44463         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44464         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
44465         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
44466         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44467         * tests/unictype/test-pr_other_id_start.c: Likewise.
44468         * tests/unictype/test-pr_other_lowercase.c: Likewise.
44469         * tests/unictype/test-pr_other_math.c: Likewise.
44470         * tests/unictype/test-pr_other_uppercase.c: Likewise.
44471         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
44472         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
44473         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
44474         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
44475         * tests/unictype/test-pr_private_use.c: Likewise.
44476         * tests/unictype/test-pr_punctuation.c: Likewise.
44477         * tests/unictype/test-pr_quotation_mark.c: Likewise.
44478         * tests/unictype/test-pr_radical.c: Likewise.
44479         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44480         * tests/unictype/test-pr_soft_dotted.c: Likewise.
44481         * tests/unictype/test-pr_space.c: Likewise.
44482         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44483         * tests/unictype/test-pr_titlecase.c: Likewise.
44484         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44485         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44486         * tests/unictype/test-pr_uppercase.c: Likewise.
44487         * tests/unictype/test-pr_variation_selector.c: Likewise.
44488         * tests/unictype/test-pr_white_space.c: Likewise.
44489         * tests/unictype/test-pr_xid_continue.c: Likewise.
44490         * tests/unictype/test-pr_xid_start.c: Likewise.
44491         * tests/unictype/test-pr_zero_width.c: Likewise.
44492         * tests/unictype/test-sy_c_whitespace.c: Likewise.
44493         * tests/unictype/test-sy_java_whitespace.c: Likewise.
44494
44495 2007-11-12  Bruno Haible  <bruno@clisp.org>
44496
44497         Unicode character classification functions.
44498         * lib/unictype.h: New file.
44499         * modules/unictype/base: New file.
44500         * modules/unictype/category-L: New file.
44501         * modules/unictype/category-Lu: New file.
44502         * modules/unictype/category-Ll: New file.
44503         * modules/unictype/category-Lt: New file.
44504         * modules/unictype/category-Lm: New file.
44505         * modules/unictype/category-Lo: New file.
44506         * modules/unictype/category-M: New file.
44507         * modules/unictype/category-Mn: New file.
44508         * modules/unictype/category-Mc: New file.
44509         * modules/unictype/category-Me: New file.
44510         * modules/unictype/category-N: New file.
44511         * modules/unictype/category-Nd: New file.
44512         * modules/unictype/category-Nl: New file.
44513         * modules/unictype/category-No: New file.
44514         * modules/unictype/category-P: New file.
44515         * modules/unictype/category-Pc: New file.
44516         * modules/unictype/category-Pd: New file.
44517         * modules/unictype/category-Ps: New file.
44518         * modules/unictype/category-Pe: New file.
44519         * modules/unictype/category-Pi: New file.
44520         * modules/unictype/category-Pf: New file.
44521         * modules/unictype/category-Po: New file.
44522         * modules/unictype/category-S: New file.
44523         * modules/unictype/category-Sm: New file.
44524         * modules/unictype/category-Sc: New file.
44525         * modules/unictype/category-Sk: New file.
44526         * modules/unictype/category-So: New file.
44527         * modules/unictype/category-Z: New file.
44528         * modules/unictype/category-Zs: New file.
44529         * modules/unictype/category-Zl: New file.
44530         * modules/unictype/category-Zp: New file.
44531         * modules/unictype/category-C: New file.
44532         * modules/unictype/category-Cc: New file.
44533         * modules/unictype/category-Cf: New file.
44534         * modules/unictype/category-Cs: New file.
44535         * modules/unictype/category-Co: New file.
44536         * modules/unictype/category-Cn: New file.
44537         * modules/unictype/category-or: New file.
44538         * modules/unictype/category-of: New file.
44539         * modules/unictype/category-test: New file.
44540         * modules/unictype/category-test-withtable: New file.
44541         * modules/unictype/category-byname: New file.
44542         * modules/unictype/category-none: New file.
44543         * modules/unictype/category-and: New file.
44544         * modules/unictype/category-and-not: New file.
44545         * modules/unictype/category-name: New file.
44546         * modules/unictype/combining-class: New file.
44547         * modules/unictype/category-all: New file.
44548         * modules/unictype/bidicategory-all: New file.
44549         * modules/unictype/bidicategory-byname: New file.
44550         * modules/unictype/bidicategory-name: New file.
44551         * modules/unictype/bidicategory-of: New file.
44552         * modules/unictype/bidicategory-test: New file.
44553         * modules/unictype/decimal-digit: New file.
44554         * modules/unictype/digit: New file.
44555         * modules/unictype/numeric: New file.
44556         * modules/unictype/mirror: New file.
44557         * modules/unictype/property-white-space: New file.
44558         * modules/unictype/property-alphabetic: New file.
44559         * modules/unictype/property-other-alphabetic: New file.
44560         * modules/unictype/property-not-a-character: New file.
44561         * modules/unictype/property-default-ignorable-code-point: New file.
44562         * modules/unictype/property-other-default-ignorable-code-point: New
44563         file.
44564         * modules/unictype/property-deprecated: New file.
44565         * modules/unictype/property-logical-order-exception: New file.
44566         * modules/unictype/property-variation-selector: New file.
44567         * modules/unictype/property-private-use: New file.
44568         * modules/unictype/property-unassigned-code-value: New file.
44569         * modules/unictype/property-uppercase: New file.
44570         * modules/unictype/property-other-uppercase: New file.
44571         * modules/unictype/property-lowercase: New file.
44572         * modules/unictype/property-other-lowercase: New file.
44573         * modules/unictype/property-titlecase: New file.
44574         * modules/unictype/property-soft-dotted: New file.
44575         * modules/unictype/property-id-start: New file.
44576         * modules/unictype/property-other-id-start: New file.
44577         * modules/unictype/property-id-continue: New file.
44578         * modules/unictype/property-other-id-continue: New file.
44579         * modules/unictype/property-xid-start: New file.
44580         * modules/unictype/property-xid-continue: New file.
44581         * modules/unictype/property-pattern-white-space: New file.
44582         * modules/unictype/property-pattern-syntax: New file.
44583         * modules/unictype/property-join-control: New file.
44584         * modules/unictype/property-grapheme-base: New file.
44585         * modules/unictype/property-grapheme-extend: New file.
44586         * modules/unictype/property-other-grapheme-extend: New file.
44587         * modules/unictype/property-grapheme-link: New file.
44588         * modules/unictype/property-bidi-control: New file.
44589         * modules/unictype/property-bidi-left-to-right: New file.
44590         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
44591         * modules/unictype/property-bidi-arabic-right-to-left: New file.
44592         * modules/unictype/property-bidi-european-digit: New file.
44593         * modules/unictype/property-bidi-eur-num-separator: New file.
44594         * modules/unictype/property-bidi-eur-num-terminator: New file.
44595         * modules/unictype/property-bidi-arabic-digit: New file.
44596         * modules/unictype/property-bidi-common-separator: New file.
44597         * modules/unictype/property-bidi-block-separator: New file.
44598         * modules/unictype/property-bidi-segment-separator: New file.
44599         * modules/unictype/property-bidi-whitespace: New file.
44600         * modules/unictype/property-bidi-non-spacing-mark: New file.
44601         * modules/unictype/property-bidi-boundary-neutral: New file.
44602         * modules/unictype/property-bidi-pdf: New file.
44603         * modules/unictype/property-bidi-embedding-or-override: New file.
44604         * modules/unictype/property-bidi-other-neutral: New file.
44605         * modules/unictype/property-hex-digit: New file.
44606         * modules/unictype/property-ascii-hex-digit: New file.
44607         * modules/unictype/property-ideographic: New file.
44608         * modules/unictype/property-unified-ideograph: New file.
44609         * modules/unictype/property-radical: New file.
44610         * modules/unictype/property-ids-binary-operator: New file.
44611         * modules/unictype/property-ids-trinary-operator: New file.
44612         * modules/unictype/property-zero-width: New file.
44613         * modules/unictype/property-space: New file.
44614         * modules/unictype/property-non-break: New file.
44615         * modules/unictype/property-iso-control: New file.
44616         * modules/unictype/property-format-control: New file.
44617         * modules/unictype/property-dash: New file.
44618         * modules/unictype/property-hyphen: New file.
44619         * modules/unictype/property-punctuation: New file.
44620         * modules/unictype/property-line-separator: New file.
44621         * modules/unictype/property-paragraph-separator: New file.
44622         * modules/unictype/property-quotation-mark: New file.
44623         * modules/unictype/property-sentence-terminal: New file.
44624         * modules/unictype/property-terminal-punctuation: New file.
44625         * modules/unictype/property-currency-symbol: New file.
44626         * modules/unictype/property-math: New file.
44627         * modules/unictype/property-other-math: New file.
44628         * modules/unictype/property-paired-punctuation: New file.
44629         * modules/unictype/property-left-of-pair: New file.
44630         * modules/unictype/property-combining: New file.
44631         * modules/unictype/property-composite: New file.
44632         * modules/unictype/property-decimal-digit: New file.
44633         * modules/unictype/property-numeric: New file.
44634         * modules/unictype/property-diacritic: New file.
44635         * modules/unictype/property-extender: New file.
44636         * modules/unictype/property-ignorable-control: New file.
44637         * modules/unictype/property-test: New file.
44638         * modules/unictype/property-byname: New file.
44639         * modules/unictype/property-all: New file.
44640         * modules/unictype/scripts: New file.
44641         * modules/unictype/scripts-all: New file.
44642         * modules/unictype/block-of: New file.
44643         * modules/unictype/block-test: New file.
44644         * modules/unictype/block-list: New file.
44645         * modules/unictype/block-all: New file.
44646         * modules/unictype/syntax-c-whitespace: New file.
44647         * modules/unictype/syntax-java-whitespace: New file.
44648         * modules/unictype/syntax-c-ident: New file.
44649         * modules/unictype/syntax-java-ident: New file.
44650         * modules/unictype/ctype-alnum: New file.
44651         * modules/unictype/ctype-alpha: New file.
44652         * modules/unictype/ctype-cntrl: New file.
44653         * modules/unictype/ctype-digit: New file.
44654         * modules/unictype/ctype-graph: New file.
44655         * modules/unictype/ctype-lower: New file.
44656         * modules/unictype/ctype-print: New file.
44657         * modules/unictype/ctype-punct: New file.
44658         * modules/unictype/ctype-space: New file.
44659         * modules/unictype/ctype-upper: New file.
44660         * modules/unictype/ctype-xdigit: New file.
44661         * modules/unictype/ctype-blank: New file.
44662         * lib/unictype/bidi_byname.c: New file.
44663         * lib/unictype/bidi_name.c: New file.
44664         * lib/unictype/bidi_of.c: New file.
44665         * lib/unictype/bidi_test.c: New file.
44666         * lib/unictype/bitmap.h: New file.
44667         * lib/unictype/block_test.c: New file.
44668         * lib/unictype/blocks.c: New file.
44669         * lib/unictype/categ_C.c: New file.
44670         * lib/unictype/categ_Cc.c: New file.
44671         * lib/unictype/categ_Cf.c: New file.
44672         * lib/unictype/categ_Cn.c: New file.
44673         * lib/unictype/categ_Co.c: New file.
44674         * lib/unictype/categ_Cs.c: New file.
44675         * lib/unictype/categ_L.c: New file.
44676         * lib/unictype/categ_Ll.c: New file.
44677         * lib/unictype/categ_Lm.c: New file.
44678         * lib/unictype/categ_Lo.c: New file.
44679         * lib/unictype/categ_Lt.c: New file.
44680         * lib/unictype/categ_Lu.c: New file.
44681         * lib/unictype/categ_M.c: New file.
44682         * lib/unictype/categ_Mc.c: New file.
44683         * lib/unictype/categ_Me.c: New file.
44684         * lib/unictype/categ_Mn.c: New file.
44685         * lib/unictype/categ_N.c: New file.
44686         * lib/unictype/categ_Nd.c: New file.
44687         * lib/unictype/categ_Nl.c: New file.
44688         * lib/unictype/categ_No.c: New file.
44689         * lib/unictype/categ_P.c: New file.
44690         * lib/unictype/categ_Pc.c: New file.
44691         * lib/unictype/categ_Pd.c: New file.
44692         * lib/unictype/categ_Pe.c: New file.
44693         * lib/unictype/categ_Pf.c: New file.
44694         * lib/unictype/categ_Pi.c: New file.
44695         * lib/unictype/categ_Po.c: New file.
44696         * lib/unictype/categ_Ps.c: New file.
44697         * lib/unictype/categ_S.c: New file.
44698         * lib/unictype/categ_Sc.c: New file.
44699         * lib/unictype/categ_Sk.c: New file.
44700         * lib/unictype/categ_Sm.c: New file.
44701         * lib/unictype/categ_So.c: New file.
44702         * lib/unictype/categ_Z.c: New file.
44703         * lib/unictype/categ_Zl.c: New file.
44704         * lib/unictype/categ_Zp.c: New file.
44705         * lib/unictype/categ_Zs.c: New file.
44706         * lib/unictype/categ_and.c: New file.
44707         * lib/unictype/categ_and_not.c: New file.
44708         * lib/unictype/categ_byname.c: New file.
44709         * lib/unictype/categ_name.c: New file.
44710         * lib/unictype/categ_none.c: New file.
44711         * lib/unictype/categ_of.c: New file.
44712         * lib/unictype/categ_or.c: New file.
44713         * lib/unictype/categ_test.c: New file.
44714         * lib/unictype/combining.c: New file.
44715         * lib/unictype/ctype_alnum.c: New file.
44716         * lib/unictype/ctype_alpha.c: New file.
44717         * lib/unictype/ctype_blank.c: New file.
44718         * lib/unictype/ctype_cntrl.c: New file.
44719         * lib/unictype/ctype_digit.c: New file.
44720         * lib/unictype/ctype_graph.c: New file.
44721         * lib/unictype/ctype_lower.c: New file.
44722         * lib/unictype/ctype_print.c: New file.
44723         * lib/unictype/ctype_punct.c: New file.
44724         * lib/unictype/ctype_space.c: New file.
44725         * lib/unictype/ctype_upper.c: New file.
44726         * lib/unictype/ctype_xdigit.c: New file.
44727         * lib/unictype/decdigit.c: New file.
44728         * lib/unictype/digit.c: New file.
44729         * lib/unictype/identsyntaxmap.h: New file.
44730         * lib/unictype/mirror.c: New file.
44731         * lib/unictype/numeric.c: New file.
44732         * lib/unictype/pr_alphabetic.c: New file.
44733         * lib/unictype/pr_ascii_hex_digit.c: New file.
44734         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44735         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
44736         * lib/unictype/pr_bidi_block_separator.c: New file.
44737         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
44738         * lib/unictype/pr_bidi_common_separator.c: New file.
44739         * lib/unictype/pr_bidi_control.c: New file.
44740         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
44741         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
44742         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
44743         * lib/unictype/pr_bidi_european_digit.c: New file.
44744         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
44745         * lib/unictype/pr_bidi_left_to_right.c: New file.
44746         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
44747         * lib/unictype/pr_bidi_other_neutral.c: New file.
44748         * lib/unictype/pr_bidi_pdf.c: New file.
44749         * lib/unictype/pr_bidi_segment_separator.c: New file.
44750         * lib/unictype/pr_bidi_whitespace.c: New file.
44751         * lib/unictype/pr_byname.c: New file.
44752         * lib/unictype/pr_byname.gperf: New file.
44753         * lib/unictype/pr_combining.c: New file.
44754         * lib/unictype/pr_composite.c: New file.
44755         * lib/unictype/pr_currency_symbol.c: New file.
44756         * lib/unictype/pr_dash.c: New file.
44757         * lib/unictype/pr_decimal_digit.c: New file.
44758         * lib/unictype/pr_default_ignorable_code_point.c: New file.
44759         * lib/unictype/pr_deprecated.c: New file.
44760         * lib/unictype/pr_diacritic.c: New file.
44761         * lib/unictype/pr_extender.c: New file.
44762         * lib/unictype/pr_format_control.c: New file.
44763         * lib/unictype/pr_grapheme_base.c: New file.
44764         * lib/unictype/pr_grapheme_extend.c: New file.
44765         * lib/unictype/pr_grapheme_link.c: New file.
44766         * lib/unictype/pr_hex_digit.c: New file.
44767         * lib/unictype/pr_hyphen.c: New file.
44768         * lib/unictype/pr_id_continue.c: New file.
44769         * lib/unictype/pr_id_start.c: New file.
44770         * lib/unictype/pr_ideographic.c: New file.
44771         * lib/unictype/pr_ids_binary_operator.c: New file.
44772         * lib/unictype/pr_ids_trinary_operator.c: New file.
44773         * lib/unictype/pr_ignorable_control.c: New file.
44774         * lib/unictype/pr_iso_control.c: New file.
44775         * lib/unictype/pr_join_control.c: New file.
44776         * lib/unictype/pr_left_of_pair.c: New file.
44777         * lib/unictype/pr_line_separator.c: New file.
44778         * lib/unictype/pr_logical_order_exception.c: New file.
44779         * lib/unictype/pr_lowercase.c: New file.
44780         * lib/unictype/pr_math.c: New file.
44781         * lib/unictype/pr_non_break.c: New file.
44782         * lib/unictype/pr_not_a_character.c: New file.
44783         * lib/unictype/pr_numeric.c: New file.
44784         * lib/unictype/pr_other_alphabetic.c: New file.
44785         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
44786         * lib/unictype/pr_other_grapheme_extend.c: New file.
44787         * lib/unictype/pr_other_id_continue.c: New file.
44788         * lib/unictype/pr_other_id_start.c: New file.
44789         * lib/unictype/pr_other_lowercase.c: New file.
44790         * lib/unictype/pr_other_math.c: New file.
44791         * lib/unictype/pr_other_uppercase.c: New file.
44792         * lib/unictype/pr_paired_punctuation.c: New file.
44793         * lib/unictype/pr_paragraph_separator.c: New file.
44794         * lib/unictype/pr_pattern_syntax.c: New file.
44795         * lib/unictype/pr_pattern_white_space.c: New file.
44796         * lib/unictype/pr_private_use.c: New file.
44797         * lib/unictype/pr_punctuation.c: New file.
44798         * lib/unictype/pr_quotation_mark.c: New file.
44799         * lib/unictype/pr_radical.c: New file.
44800         * lib/unictype/pr_sentence_terminal.c: New file.
44801         * lib/unictype/pr_soft_dotted.c: New file.
44802         * lib/unictype/pr_space.c: New file.
44803         * lib/unictype/pr_terminal_punctuation.c: New file.
44804         * lib/unictype/pr_test.c: New file.
44805         * lib/unictype/pr_titlecase.c: New file.
44806         * lib/unictype/pr_unassigned_code_value.c: New file.
44807         * lib/unictype/pr_unified_ideograph.c: New file.
44808         * lib/unictype/pr_uppercase.c: New file.
44809         * lib/unictype/pr_variation_selector.c: New file.
44810         * lib/unictype/pr_white_space.c: New file.
44811         * lib/unictype/pr_xid_continue.c: New file.
44812         * lib/unictype/pr_xid_start.c: New file.
44813         * lib/unictype/pr_zero_width.c: New file.
44814         * lib/unictype/scripts.c: New file.
44815         * lib/unictype/sy_c_ident.c: New file.
44816         * lib/unictype/sy_c_whitespace.c: New file.
44817         * lib/unictype/sy_java_ident.c: New file.
44818         * lib/unictype/sy_java_whitespace.c: New file.
44819
44820         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
44821         Unicode 5.0.0.
44822         * lib/unictype/blocks.h: Likewise.
44823         * lib/unictype/categ_C.h: Likewise.
44824         * lib/unictype/categ_Cc.h: Likewise.
44825         * lib/unictype/categ_Cf.h: Likewise.
44826         * lib/unictype/categ_Cn.h: Likewise.
44827         * lib/unictype/categ_Co.h: Likewise.
44828         * lib/unictype/categ_Cs.h: Likewise.
44829         * lib/unictype/categ_L.h: Likewise.
44830         * lib/unictype/categ_Ll.h: Likewise.
44831         * lib/unictype/categ_Lm.h: Likewise.
44832         * lib/unictype/categ_Lo.h: Likewise.
44833         * lib/unictype/categ_Lt.h: Likewise.
44834         * lib/unictype/categ_Lu.h: Likewise.
44835         * lib/unictype/categ_M.h: Likewise.
44836         * lib/unictype/categ_Mc.h: Likewise.
44837         * lib/unictype/categ_Me.h: Likewise.
44838         * lib/unictype/categ_Mn.h: Likewise.
44839         * lib/unictype/categ_N.h: Likewise.
44840         * lib/unictype/categ_Nd.h: Likewise.
44841         * lib/unictype/categ_Nl.h: Likewise.
44842         * lib/unictype/categ_No.h: Likewise.
44843         * lib/unictype/categ_P.h: Likewise.
44844         * lib/unictype/categ_Pc.h: Likewise.
44845         * lib/unictype/categ_Pd.h: Likewise.
44846         * lib/unictype/categ_Pe.h: Likewise.
44847         * lib/unictype/categ_Pf.h: Likewise.
44848         * lib/unictype/categ_Pi.h: Likewise.
44849         * lib/unictype/categ_Po.h: Likewise.
44850         * lib/unictype/categ_Ps.h: Likewise.
44851         * lib/unictype/categ_S.h: Likewise.
44852         * lib/unictype/categ_Sc.h: Likewise.
44853         * lib/unictype/categ_Sk.h: Likewise.
44854         * lib/unictype/categ_Sm.h: Likewise.
44855         * lib/unictype/categ_So.h: Likewise.
44856         * lib/unictype/categ_Z.h: Likewise.
44857         * lib/unictype/categ_Zl.h: Likewise.
44858         * lib/unictype/categ_Zp.h: Likewise.
44859         * lib/unictype/categ_Zs.h: Likewise.
44860         * lib/unictype/categ_of.h: Likewise.
44861         * lib/unictype/combining.h: Likewise.
44862         * lib/unictype/ctype_alnum.h: Likewise.
44863         * lib/unictype/ctype_alpha.h: Likewise.
44864         * lib/unictype/ctype_blank.h: Likewise.
44865         * lib/unictype/ctype_cntrl.h: Likewise.
44866         * lib/unictype/ctype_digit.h: Likewise.
44867         * lib/unictype/ctype_graph.h: Likewise.
44868         * lib/unictype/ctype_lower.h: Likewise.
44869         * lib/unictype/ctype_print.h: Likewise.
44870         * lib/unictype/ctype_punct.h: Likewise.
44871         * lib/unictype/ctype_space.h: Likewise.
44872         * lib/unictype/ctype_upper.h: Likewise.
44873         * lib/unictype/ctype_xdigit.h: Likewise.
44874         * lib/unictype/decdigit.h: Likewise.
44875         * lib/unictype/digit.h: Likewise.
44876         * lib/unictype/mirror.h: Likewise.
44877         * lib/unictype/numeric.h: Likewise.
44878         * lib/unictype/pr_alphabetic.h: Likewise.
44879         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44880         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44881         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44882         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44883         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44884         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44885         * lib/unictype/pr_bidi_control.h: Likewise.
44886         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44887         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44888         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44889         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44890         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44891         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44892         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44893         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44894         * lib/unictype/pr_bidi_pdf.h: Likewise.
44895         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44896         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44897         * lib/unictype/pr_combining.h: Likewise.
44898         * lib/unictype/pr_composite.h: Likewise.
44899         * lib/unictype/pr_currency_symbol.h: Likewise.
44900         * lib/unictype/pr_dash.h: Likewise.
44901         * lib/unictype/pr_decimal_digit.h: Likewise.
44902         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44903         * lib/unictype/pr_deprecated.h: Likewise.
44904         * lib/unictype/pr_diacritic.h: Likewise.
44905         * lib/unictype/pr_extender.h: Likewise.
44906         * lib/unictype/pr_format_control.h: Likewise.
44907         * lib/unictype/pr_grapheme_base.h: Likewise.
44908         * lib/unictype/pr_grapheme_extend.h: Likewise.
44909         * lib/unictype/pr_grapheme_link.h: Likewise.
44910         * lib/unictype/pr_hex_digit.h: Likewise.
44911         * lib/unictype/pr_hyphen.h: Likewise.
44912         * lib/unictype/pr_id_continue.h: Likewise.
44913         * lib/unictype/pr_id_start.h: Likewise.
44914         * lib/unictype/pr_ideographic.h: Likewise.
44915         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44916         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44917         * lib/unictype/pr_ignorable_control.h: Likewise.
44918         * lib/unictype/pr_iso_control.h: Likewise.
44919         * lib/unictype/pr_join_control.h: Likewise.
44920         * lib/unictype/pr_left_of_pair.h: Likewise.
44921         * lib/unictype/pr_line_separator.h: Likewise.
44922         * lib/unictype/pr_logical_order_exception.h: Likewise.
44923         * lib/unictype/pr_lowercase.h: Likewise.
44924         * lib/unictype/pr_math.h: Likewise.
44925         * lib/unictype/pr_non_break.h: Likewise.
44926         * lib/unictype/pr_not_a_character.h: Likewise.
44927         * lib/unictype/pr_numeric.h: Likewise.
44928         * lib/unictype/pr_other_alphabetic.h: Likewise.
44929         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44930         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44931         * lib/unictype/pr_other_id_continue.h: Likewise.
44932         * lib/unictype/pr_other_id_start.h: Likewise.
44933         * lib/unictype/pr_other_lowercase.h: Likewise.
44934         * lib/unictype/pr_other_math.h: Likewise.
44935         * lib/unictype/pr_other_uppercase.h: Likewise.
44936         * lib/unictype/pr_paired_punctuation.h: Likewise.
44937         * lib/unictype/pr_paragraph_separator.h: Likewise.
44938         * lib/unictype/pr_pattern_syntax.h: Likewise.
44939         * lib/unictype/pr_pattern_white_space.h: Likewise.
44940         * lib/unictype/pr_private_use.h: Likewise.
44941         * lib/unictype/pr_punctuation.h: Likewise.
44942         * lib/unictype/pr_quotation_mark.h: Likewise.
44943         * lib/unictype/pr_radical.h: Likewise.
44944         * lib/unictype/pr_sentence_terminal.h: Likewise.
44945         * lib/unictype/pr_soft_dotted.h: Likewise.
44946         * lib/unictype/pr_space.h: Likewise.
44947         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44948         * lib/unictype/pr_titlecase.h: Likewise.
44949         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44950         * lib/unictype/pr_unified_ideograph.h: Likewise.
44951         * lib/unictype/pr_uppercase.h: Likewise.
44952         * lib/unictype/pr_variation_selector.h: Likewise.
44953         * lib/unictype/pr_white_space.h: Likewise.
44954         * lib/unictype/pr_xid_continue.h: Likewise.
44955         * lib/unictype/pr_xid_start.h: Likewise.
44956         * lib/unictype/pr_zero_width.h: Likewise.
44957         * lib/unictype/scripts.h: Likewise.
44958         * lib/unictype/scripts_byname.gperf: Likewise.
44959         * lib/unictype/sy_c_ident.h: Likewise.
44960         * lib/unictype/sy_c_whitespace.h: Likewise.
44961         * lib/unictype/sy_java_ident.h: Likewise.
44962         * lib/unictype/sy_java_whitespace.h: Likewise.
44963
44964         * lib/unictype/Makefile: New file.
44965         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
44966         glibc.
44967         * lib/unictype/3level.h: New file, copied from glibc.
44968         * lib/unictype/3levelbit.h: New file.
44969
44970 2007-11-11  Bruno Haible  <bruno@clisp.org>
44971
44972         * modules/gperf: New file.
44973         * modules/iconv_open (Depends-on): Add it.
44974         (Makefile.am): Remove the GPERF definition.
44975
44976 2007-11-11  Bruno Haible  <bruno@clisp.org>
44977
44978         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
44979         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
44980
44981 2007-11-11  Bruno Haible  <bruno@clisp.org>
44982
44983         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44984         (usage): Remove function.
44985
44986 2007-11-11  Bruno Haible  <bruno@clisp.org>
44987
44988         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44989         gl_FUNC_CEILF_LIBS.
44990         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44991         gl_FUNC_CEIL_LIBS.
44992         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44993         gl_FUNC_CEILL_LIBS.
44994         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44995         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44996         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44997
44998 2007-11-11  Bruno Haible  <bruno@clisp.org>
44999
45000         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45001         roundf were declared but do not exist on functions.
45002         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45003         roundl were declared but do not exist on functions.
45004         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45005         HAVE_FLOORL_AND_CEILL, respectively.
45006         Needed for Sun C on Solaris 10.
45007
45008 2007-11-11  Bruno Haible  <bruno@clisp.org>
45009
45010         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45011         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45012         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45013         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45014         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45015         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45016         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45017         HAVE_DECL_ROUNDF.
45018         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45019         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45021         of HAVE_DECL_ROUND*.
45022         * modules/math (Makefile.am): Update.
45023
45024 2007-11-10  Bruno Haible  <bruno@clisp.org>
45025
45026         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45027         ptrdiff_t as m4/intl.m4.
45028
45029 2007-11-10  Jim Meyering  <meyering@redhat.com>
45030
45031         Avoid link failure for the argmatch test.
45032         * tests/test-argmatch.c (usage): Define function to avoid a link
45033         failure: argmatch_die requires a usage function.
45034
45035 2007-11-09  Bruno Haible  <bruno@clisp.org>
45036
45037         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45038         * doc/functions/vsnprintf.texi: Likewise.
45039         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45040         with a size argument < 2.
45041
45042 2007-11-09  Bruno Haible  <bruno@clisp.org>
45043
45044         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45045         buffer. Fixes an inefficiency introduced on 2007-11-03.
45046
45047 2007-11-09  Bruno Haible  <bruno@clisp.org>
45048
45049         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45050         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45051
45052 2007-11-08  Jim Meyering  <meyering@redhat.com>
45053
45054         Change cache variable name prefix "jm_" to "gl_" everywhere.
45055         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45056         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45057         * m4/uptime.m4: s/gl_/jm_/
45058
45059 2007-11-07  Bruno Haible  <bruno@clisp.org>
45060
45061         Update to GNU gettext 0.17.
45062         * m4/intl.m4: Update to GNU gettext 0.17.
45063         * m4/po.m4: Likewise.
45064         * modules/gettext (Files): Remove m4/ulonglong.m4.
45065         (configure.ac): Require gettext infrastructure from version 0.17.
45066
45067 2007-11-06  Bruno Haible  <bruno@clisp.org>
45068
45069         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45070         symbolic values are not defined in a public header.
45071         * lib/freadable.c (freadable) [QNX]: Likewise.
45072         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45073         * lib/freading.c (freading) [QNX]: Likewise.
45074         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45075         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45076         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45077         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45078         Reported by Alain Magloire.
45079
45080         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45081
45082 2007-11-05  Bruno Haible  <bruno@clisp.org>
45083
45084         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45085         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45086         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45087         Reported by Eric Blake.
45088
45089 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45090             Bruno Haible  <bruno@clisp.org>
45091
45092         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45093         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45094         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45095         (malloc): Undefine also before including <stdlib.h>.
45096         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45097         Needed on OSF/1 4.0.
45098
45099 2007-11-05  Jim Meyering  <meyering@redhat.com>
45100
45101         git-version-gen: sync from coreutils.
45102         * build-aux/git-version-gen: Add comments.
45103         Change the first '-' to '.' in the snapshot version string,
45104         e.g., 6.9-377-08144 -> 6.9.377-08144
45105         Remove first parameter.
45106         Don't declare a version "-dirty" merely because a time
45107         stamp has changed.
45108
45109 2007-11-04  Bruno Haible  <bruno@clisp.org>
45110
45111         * lib/lock.h: Protect all macro definitions containing an 'if'
45112         statement through a "do { ... } while (0)".
45113         * lib/tls.h: Likewise.
45114
45115 2007-11-04  Bruno Haible  <bruno@clisp.org>
45116
45117         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45118
45119 2007-11-04  Bruno Haible  <bruno@clisp.org>
45120
45121         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45122         * modules/fprintf-posix (Depends-on): Add nocrash.
45123         * modules/snprintf-posix (Depends-on): Likewise.
45124         * modules/sprintf-posix (Depends-on): Likewise.
45125         * modules/vasnprintf-posix (Depends-on): Likewise.
45126         * modules/vasprintf-posix (Depends-on): Likewise.
45127         * modules/vfprintf-posix (Depends-on): Likewise.
45128         * modules/vsnprintf-posix (Depends-on): Likewise.
45129         * modules/vsprintf-posix (Depends-on): Likewise.
45130         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45131         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45132         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45133         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45134         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45135         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45136         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45137
45138 2007-11-04  Bruno Haible  <bruno@clisp.org>
45139
45140         * modules/nocrash: New file.
45141         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45142         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45143
45144 2007-11-04  Bruno Haible  <bruno@clisp.org>
45145
45146         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45147         precision handling.
45148         * tests/test-vasprintf-posix.c (test_function): Likewise.
45149         * tests/test-snprintf-posix.h (test_function): Likewise.
45150         * tests/test-sprintf-posix.h (test_function): Likewise.
45151
45152         Fix *printf behaviour for large precisions on mingw and BeOS.
45153         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45154         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45155         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45156         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45157         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45158         gl_PRINTF_PRECISION and test its result. Invoke
45159         gl_PREREQ_VASNPRINTF_PRECISION.
45160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45164         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45165         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45166         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45167         * doc/functions/fprintf.texi: Update.
45168         * doc/functions/printf.texi: Update.
45169         * doc/functions/snprintf.texi: Update.
45170         * doc/functions/sprintf.texi: Update.
45171         * doc/functions/vfprintf.texi: Update.
45172         * doc/functions/vprintf.texi: Update.
45173         * doc/functions/vsnprintf.texi: Update.
45174         * doc/functions/vsprintf.texi: Update.
45175
45176 2007-11-04  Bruno Haible  <bruno@clisp.org>
45177
45178         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45179
45180 2007-11-04  Bruno Haible  <bruno@clisp.org>
45181
45182         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45183         Reported by Sylvain Beucler <beuc@gnu.org>.
45184
45185 2007-11-03  Bruno Haible  <bruno@clisp.org>
45186
45187         * tests/test-fprintf-posix2.sh: New file.
45188         * tests/test-fprintf-posix2.c: New file.
45189         * modules/fprintf-posix-tests (Files): Add them.
45190         (TESTS): Add test-fprintf-posix2.sh.
45191         (configure.ac): Check for getrlimit and setrlimit.
45192         (check_PROGRAMS): Add test-fprintf-posix2.
45193
45194         * tests/test-printf-posix2.sh: New file.
45195         * tests/test-printf-posix2.c: New file.
45196         * modules/printf-posix-tests (Files): Add them.
45197         (TESTS): Add test-printf-posix2.sh.
45198         (configure.ac): Check for getrlimit and setrlimit.
45199         (check_PROGRAMS): Add test-printf-posix2.
45200
45201         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45202         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45203         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45204         (decode_double): New function, copied from decode_long_double.
45205         (scale10_round_decimal_decoded): New function, extracted from
45206         scale10_round_decimal_long_double.
45207         (scale10_round_decimal_long_double): Use it.
45208         (scale10_round_decimal_double): New function.
45209         (floorlog10): New function.
45210         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45212         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45213         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45214         gl_PRINTF_ENOMEM and test its result. Invoke
45215         gl_PREREQ_VASNPRINTF_ENOMEM.
45216         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45217         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45218         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45219         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45220         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45221         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45222         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45223         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45224         * modules/snprintf-posix (Depends-on): Likewise.
45225         * modules/sprintf-posix (Depends-on): Likewise.
45226         * modules/vasnprintf-posix (Depends-on): Likewise.
45227         * modules/vasprintf-posix (Depends-on): Likewise.
45228         * modules/vfprintf-posix (Depends-on): Likewise.
45229         * modules/vsnprintf-posix (Depends-on): Likewise.
45230         * modules/vsprintf-posix (Depends-on): Likewise.
45231         * doc/functions/fprintf.texi: Update.
45232         * doc/functions/printf.texi: Update.
45233         * doc/functions/snprintf.texi: Update.
45234         * doc/functions/sprintf.texi: Update.
45235         * doc/functions/vfprintf.texi: Update.
45236         * doc/functions/vprintf.texi: Update.
45237         * doc/functions/vsnprintf.texi: Update.
45238         * doc/functions/vsprintf.texi: Update.
45239
45240 2007-11-03  Bruno Haible  <bruno@clisp.org>
45241
45242         * modules/frexp-nolibm-tests: New file.
45243
45244         * modules/frexp-nolibm: New file.
45245         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45246
45247 2007-11-03  Bruno Haible  <bruno@clisp.org>
45248
45249         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45250         value is C99 compliant.
45251         Needed for OSF/1 5.1.
45252
45253 2007-11-03  Bruno Haible  <bruno@clisp.org>
45254
45255         Fix out-of-memory handling of vasnprintf.
45256         * lib/printf-parse.c: Include <errno.h>.
45257         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45258         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45259         is already set.
45260
45261 2007-11-02  Eric Blake  <ebb9@byu.net>
45262
45263         Fix tests on cygwin.
45264         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45265
45266 2007-11-01  Bruno Haible  <bruno@clisp.org>
45267
45268         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45269         warning.
45270         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45271         needed for POSIX compatibility.
45272
45273 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45274
45275         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45276         for compatibility with GNU.
45277
45278 2007-11-01  Bruno Haible  <bruno@clisp.org>
45279
45280         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45281         (putenv): Renamed from rpl_putenv. Change argument type from
45282         'const char *' to 'char *'.
45283         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45284         of defining putenv in config.h, just set REPLACE_PUTENV.
45285         * modules/putenv (Depends-on): Add stdlib.
45286         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45287         (Include): Use <stdlib.h>.
45288         * lib/stdlib.in.h (putenv): New declaration.
45289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45290         REPLACE_PUTENV.
45291         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45292         REPLACE_PUTENV.
45293         Needed for MacOS X 10.5.0.
45294         Reported by Peter O'Gorman <peter@pogma.com>.
45295
45296 2007-11-01  Jim Meyering  <meyering@redhat.com>
45297
45298         Treat an empty date string exactly like "0".
45299         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45300         if the remaining date string (to be parsed) is empty, use "0".
45301         Reported by Mischa Molhoek and discussed in this thread:
45302         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45303
45304 2007-10-31  Bruno Haible  <bruno@clisp.org>
45305
45306         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45307         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45308         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45309         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45310         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45311         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45312
45313 2007-10-31  Bruno Haible  <bruno@clisp.org>
45314
45315         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45316         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45317         (AC_TYPE_LONG_LONG_INT): Use it.
45318         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45319         it as well.
45320         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45321         to m4/longlong.m4.
45322         * modules/stdint (Files): Remove m4/ulonglong.m4.
45323         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45324         m4/ulonglong.m4.
45325         * modules/strtoumax (Files): Likewise.
45326
45327 2007-10-30  Bruno Haible  <bruno@clisp.org>
45328
45329         * modules/xvasprintf-posix: New file.
45330         Suggested by Eric Blake.
45331
45332 2007-10-30  Bruno Haible  <bruno@clisp.org>
45333
45334         * modules/xprintf-posix-tests: New file.
45335         * tests/test-xprintf-posix.sh: New file.
45336         * tests/test-xprintf-posix.c: New file.
45337         * tests/test-xfprintf-posix.c: New file.
45338
45339         * modules/xprintf-posix: New file.
45340
45341 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45342
45343         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45344         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45345         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45346
45347 2007-10-29  Bruno Haible  <bruno@clisp.org>
45348
45349         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45350         contain the special marker '_cv_'.
45351         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45352         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45353         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45354         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45355         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45356         Reported by Ralf Wildenhues.
45357
45358 2007-10-29  Bruno Haible  <bruno@clisp.org>
45359
45360         * gnulib-tool (func_import): When --lgpl is not specified, set
45361         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45362         GPLv3.
45363         Reported by Simon Josefsson.
45364
45365 2007-10-28  Bruno Haible  <bruno@clisp.org>
45366
45367         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45368         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45369         HAVE_DECL_ISFINITE.
45370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45371         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45372         HAVE_DECL_ISFINITE.
45373
45374 2007-10-28  Bruno Haible  <bruno@clisp.org>
45375
45376         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45377         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45378
45379 2007-10-28  Bruno Haible  <bruno@clisp.org>
45380
45381         Fix link errors with Sun C 5.0 on Solaris 10.
45382         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45383         function is declared but not present in the compiler's libm.
45384         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45385         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45386         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45387         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45388         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45389         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45390         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45392         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45393         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45394         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45395         HAVE_DECL_FLOORL.
45396
45397 2007-10-28  Bruno Haible  <bruno@clisp.org>
45398
45399         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45400         gl_FUNC_FLOORL. Cache the result.
45401         (gl_FUNC_FLOORL): Use it.
45402         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45403         gl_FUNC_CEILL. Cache the result.
45404         (gl_FUNC_CEILL): Use it.
45405
45406         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45407         gl_FUNC_FLOOR. Cache the result.
45408         (gl_FUNC_FLOOR): Use it.
45409         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45410         gl_FUNC_CEIL. Cache the result.
45411         (gl_FUNC_CEIL): Use it.
45412
45413         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45414         gl_FUNC_FLOORF. Cache the result.
45415         (gl_FUNC_FLOORF): Use it.
45416         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45417         gl_FUNC_CEILF. Cache the result.
45418         (gl_FUNC_CEILF): Use it.
45419
45420 2007-10-28  Bruno Haible  <bruno@clisp.org>
45421
45422         * gnulib-tool: Allow specifying the LGPL version number through
45423         --lgpl=2 or --lgpl=3.
45424         (func_usage): Document --lgpl with argument.
45425         Handle --lgpl=... arguments.
45426         (func_import): Recognize also gl_LGPL calls with an argument. When
45427         --lgpl=2 is used and the module's license is just LGPL, report an
45428         error. Set sed_transform_lib_file according to the lgpl variable. In
45429         the generated files, use --lgpl or gl_LGPL invocations with argument,
45430         if necessary.
45431         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45432         an LGPv2+ license.
45433         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45434         gl_LGPL macro.
45435
45436 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45437             Bruno Haible  <bruno@clisp.org>
45438
45439         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45440         (u16_uctomb_aux): Likewise.
45441         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45442         !HAVE_INLINE.
45443         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45444
45445 2007-10-28  Bruno Haible  <bruno@clisp.org>
45446
45447         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45448         Invoke AM_GETTEXT_OPTION if it exists.
45449         * modules/vasprintf: Likewise.
45450         * modules/verror: Likewise.
45451         * modules/xprintf: Likewise.
45452         * modules/xvasprintf: Likewise.
45453
45454 2007-10-27  Ben Pfaff  <blp@gnu.org>
45455
45456         * lib/math.in.h: Define isfinite macro and prototypes for
45457         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45458         implementations.
45459         * m4/math_h.m4: New substitutions for isfinite module.
45460         * lib/isfinite.c: New file.
45461         * m4/isfinite.m4: New file.
45462         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
45463         * modules/isfinite: New file.
45464         * modules/isfinite-tests: New file.
45465         * tests/tests-isfinite.c: New file.
45466         * doc/functions/isfinite.texi: Mention isfinite module.
45467         * MODULES.html.sh: Mention new module.
45468
45469 2007-10-27  Ben Pfaff  <blp@gnu.org>
45470
45471         Ralf Wildenhues reported that Tru64 4.0D declares the round
45472         functions but does not have definitions.
45473         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
45474         cannot be found in any library, set the output variable to
45475         "missing" instead of "".
45476         * m4/round.m4: Also use our substitute if we cannot find round in
45477         any library, even if it is declared.
45478         * m4/roundf.m4: Likewise for roundf.
45479         * m4/roundl.m4: Likewise for roundl.
45480         * lib/math.in.h: Undefine roundf, round, roundl before defining
45481         their replacements, to allow for hypothetical systems where these
45482         may be defined as macros but not available in libraries.
45483
45484 2007-10-27  Bruno Haible  <bruno@clisp.org>
45485
45486         * doc/gnulib.texi: Invoke @firstparagraphindent.
45487         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
45488         changes in gnulib.
45489         (Source changes): New section.
45490
45491 2007-10-26  Bruno Haible  <bruno@clisp.org>
45492
45493         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
45494         borrowed from autoconf.
45495
45496 2007-10-26  Bruno Haible  <bruno@clisp.org>
45497
45498         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
45499         strerror returned the empty string. Needed on HP-UX 11.00.
45500
45501 2007-10-24  Micah Cowan  <micah@cowan.name>
45502
45503         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
45504         * build-aux/bootstrap: Remove support for now-unnecessary option,
45505         --cvs-user, and envvars CVS_USER, CVS_RSH.
45506
45507 2007-10-24  Jim Meyering  <meyering@redhat.com>
45508
45509         Avoid diagnostics from sha1sum when there is no cached checksum.
45510         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
45511         if the po.s1 file hasn't been created yet.
45512
45513         * build-aux/bootstrap: Sync from coreutils:
45514         2007-10-24  Jim Meyering  <meyering@redhat.com>
45515         Get gnulib from the git repository, not from an obsolete cvs one.
45516         * build-aux/bootstrap: Suggestion from Micah Cowan.
45517         2007-10-04  Jim Meyering  <jim@meyering.net>
45518         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
45519         (update_po_files): Work also when there are no .po files in po/.
45520
45521 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45522
45523         * README: Append ".git" to git and cg examples.
45524         Problem reported by Benoit Sigoure.
45525
45526 2007-10-23  Micah Cowan  <micah@cowan.name>
45527
45528         * users.txt: Add wget.
45529
45530 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45531
45532         Fix linking of some unistdio tests on FreeBSD.
45533         * modules/unistdio/u16-vsnprintf-tests
45534         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
45535         * modules/unistdio/u16-vsprintf-tests
45536         (test_u16_vsnprintf1_LDADD): Likewise.
45537         * modules/unistdio/u32-vsnprintf-tests
45538         (test_u32_vsnprintf1_LDADD): Likewise.
45539         * modules/unistdio/u32-vsprintf-tests
45540         (test_u32_vsprintf1_LDADD): Likewise.
45541         * modules/unistdio/u8-vsnprintf-tests
45542         (test_u8_vsnprintf1_LDADD): Likewise.
45543         * modules/unistdio/u8-vsprintf-tests
45544         (test_u8_vsprintf1_LDADD): Likewise.
45545         * modules/unistdio/ulc-vsnprintf-tests
45546         (test_ulc_vsnprintf1_LDADD): Likewise.
45547         * modules/unistdio/ulc-vsprintf-tests
45548         (test_ulc_vsprintf1_LDADD): Likewise.
45549
45550         Fix linking of some uniconv tests on FreeBSD.
45551         * modules/uniconv/u16-conv-from-enc-tests
45552         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
45553         * modules/uniconv/u16-conv-to-enc-tests
45554         (test_u16_conv_to_enc_LDADD): Likewise.
45555         * modules/uniconv/u16-strconv-from-enc-tests
45556         (test_u16_strconv_from_enc_LDADD): Likewise.
45557         * modules/uniconv/u16-strconv-to-enc-tests
45558         (test_u16_strconv_to_enc_LDADD): Likewise.
45559         * modules/uniconv/u32-conv-from-enc-tests
45560         (test_u32_conv_from_enc_LDADD): Likewise.
45561         * modules/uniconv/u32-conv-to-enc-tests
45562         (test_u32_conv_to_enc_LDADD): Likewise.
45563         * modules/uniconv/u32-strconv-from-enc-tests
45564         (test_u32_strconv_from_enc_LDADD): Likewise.
45565         * modules/uniconv/u32-strconv-to-enc-tests
45566         (test_u32_strconv_to_enc_LDADD): Likewise.
45567         * modules/uniconv/u8-conv-from-enc-tests
45568         (test_u8_conv_from_enc_LDADD): Likewise.
45569         * modules/uniconv/u8-conv-to-enc-tests
45570         (test_u8_conv_to_enc_LDADD): Likewise.
45571         * modules/uniconv/u8-strconv-from-enc-tests
45572         (test_u8_strconv_from_enc_LDADD): Likewise.
45573         * modules/uniconv/u8-strconv-to-enc-tests
45574         (test_u8_strconv_to_enc_LDADD): Likewise.
45575
45576 2007-10-22  Bruno Haible  <bruno@clisp.org>
45577
45578         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
45579         size.
45580
45581 2007-10-22  Eric Blake  <ebb9@byu.net>
45582
45583         Tweak x*printf documentation.
45584         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
45585         variable name and comments.
45586         Suggested by Bruno Haible.
45587
45588 2007-10-22  Bruno Haible  <bruno@clisp.org>
45589
45590         * lib/acl.c (copy_acl): Fix file name in comment.
45591
45592 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45593
45594         Fix Tru64 problem with stdbool.h.
45595         * lib/stdbool.in.h (false, true):
45596         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
45597         Don't declare as an enum in this situation; it runs afoul of Tru64.
45598         Problem reported by Steven M. Schweda in
45599         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
45600
45601 2007-10-22  Eric Blake  <ebb9@byu.net>
45602
45603         Also wrap vf?printf.
45604         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
45605         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
45606         (xvprintf, xvfprintf): New functions.
45607
45608 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45609
45610         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
45611         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
45612
45613         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
45614         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
45615
45616 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45617
45618         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
45619         by Bruno Haible.
45620
45621 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45622
45623         * lib/getloadavg.c
45624         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
45625         Undef `sys' after including sys/table.h, for Tru64 4.0D.
45626
45627         * tests/test-i-ring.c: Work for C89.
45628
45629 2007-10-22  Bruno Haible  <bruno@clisp.org>
45630
45631         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
45632         -1u, in preprocessor expression, so that we don't test for the bug
45633         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45634         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45635
45636 2007-10-22  Eric Blake  <ebb9@byu.net>
45637
45638         * tests/test-yesno.sh: Silence stderr during test.
45639
45640 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45641
45642         * modules/crypto/gc-camellia: New file.
45643
45644         * m4/gc-camellia.m4: New file.
45645
45646         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45647
45648         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45649
45650 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45651
45652         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45653         --help to stdout.  Reported by sms@antinode.org (Steven
45654         M. Schweda).
45655
45656 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45657
45658         * users.txt: Fix link to libksba.
45659
45660 2007-10-21  Ben Pfaff  <blp@gnu.org>
45661
45662         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45663         round.c roundf implementation that depends on floorf and ceilf to
45664         be tested unconditionally.
45665
45666 2007-10-21  Ben Pfaff  <blp@gnu.org>
45667
45668         * m4/check-libm-func.m4: Removed.
45669         * m4/check-math-lib.m4: New file.
45670         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45671         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45672         definition and lack of AC_LIBOBJ([roundf]).
45673         * m4/roundl.m4: Ditto, and similarly for roundl.
45674         * modules/round: Reference new m4 file.
45675         * modules/roundf: Ditto.
45676         * modules/roundl: Ditto.
45677         * tests/test-round2.c (main): Use ROUND instead of round.
45678         Bug report from Bruno Haible.
45679
45680 2007-10-21  Bruno Haible  <bruno@clisp.org>
45681
45682         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45683         context.
45684
45685 2007-10-21  Bruno Haible  <bruno@clisp.org>
45686
45687         * tests/test-wcwidth.c (main): Allow negative result for some control
45688         characters.
45689
45690         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45691         Needed on OSF/1 5.1.
45692
45693 2007-10-21  Bruno Haible  <bruno@clisp.org>
45694
45695         * tests/test-floorf1.c: Include isnanf.h.
45696         (main): Use isnanf() instead of isnan().
45697         * tests/test-ceilf1.c: Include isnanf.h.
45698         (main): Use isnanf() instead of isnan().
45699         * tests/test-truncf1.c: Include isnanf.h.
45700         (main): Use isnanf() instead of isnan().
45701         * tests/test-roundf1.c: Include isnanf.h.
45702         (main): Use isnanf() instead of isnan().
45703
45704 2007-10-21  Eric Blake  <ebb9@byu.net>
45705
45706         * users.txt: Update URL for m4.
45707
45708 2007-10-21  Bruno Haible  <bruno@clisp.org>
45709
45710         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45711
45712 2007-10-21  Bruno Haible  <bruno@clisp.org>
45713
45714         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45715         Git's management files if the CVS files are not present.
45716
45717 2007-10-20  Bruno Haible  <bruno@clisp.org>
45718
45719         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45720         gcc-3.4.x.
45721
45722 2007-10-20  Ben Pfaff  <blp@gnu.org>
45723
45724         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45725         implementations.
45726         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45727         * lib/round.c: New file.
45728         * lib/roundf.c: New file.
45729         * lib/roundl.c: New file.
45730         * m4/round.m4: New file.
45731         * m4/roundf.m4: New file.
45732         * m4/roundl.m4: New file.
45733         * m4/check-libm-func-m4: New file.
45734         * modules/math: Replace round, roundf, roundl related @VARS@ in
45735         math.in.h.
45736         * modules/round: New file.
45737         * modules/round-tests: New file.
45738         * modules/roundf: New file.
45739         * modules/roundf-tests: New file.
45740         * modules/roundl: New file.
45741         * modules/roundl-tests: New file.
45742         * tests/test-round1.c: New file.
45743         * tests/test-round2.c: New file.
45744         * tests/test-roundf1.c: New file.
45745         * tests/test-roundf2.c: New file.
45746         * tests/test-roundl.c: New file.
45747         * doc/functions/round.texi: Mention round module.
45748         * doc/functions/roundf.texi: Mention roundf module.
45749         * doc/functions/roundl.texi: Mention roundl module.
45750         * MODULES.html.sh: Mention new modules.
45751         Thanks to Bruno Haible for suggestions.
45752
45753 2007-10-20  Jim Meyering  <meyering@redhat.com>
45754
45755         * lib/xprintf.c: Include <config.h> unconditionally.
45756
45757         Change xprintf's license to GPL.
45758         * modules/xprintf (License): s/LGPL/GPL/, since this module
45759         depends on modules (exit and exitfail) which are GPL.
45760         Suggestion from Bruno Haible.
45761
45762         xprintf fixes.
45763         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
45764         Use a clearer diagnostic.
45765         Patch from Bruno Haible.
45766
45767 2007-10-20  Bruno Haible  <bruno@clisp.org>
45768
45769         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
45770         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
45771         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45772
45773 2007-10-20  Bruno Haible  <bruno@clisp.org>
45774
45775         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
45776         precision in the comparison result > x - 1 or similar.
45777         * tests/test-ceilf2.c (correct_result_p): Likewise.
45778         * tests/test-truncf2.c (correct_result_p): Likewise.
45779         * tests/test-trunc2.c (correct_result_p): Likewise.
45780         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45781
45782 2007-10-20  Bruno Haible  <bruno@clisp.org>
45783
45784         * modules/ceil: New file.
45785         * m4/ceil.m4: New file.
45786         * doc/functions/ceil.texi: Mention the 'ceil' module.
45787
45788 2007-10-20  Bruno Haible  <bruno@clisp.org>
45789
45790         * modules/floor: New file.
45791         * m4/floor.m4: New file.
45792         * doc/functions/floor.texi: Mention the 'floor' module.
45793
45794 2007-10-20  Bruno Haible  <bruno@clisp.org>
45795
45796         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
45797         of %a.
45798         * modules/floorf-tests (Depends-on): Likewise.
45799         * modules/truncf-tests (Depends-on): Likewise.
45800         * modules/trunc-tests (Depends-on): Likewise.
45801         Reported by Ben Pfaff.
45802
45803 2007-10-19  Jim Meyering  <meyering@redhat.com>
45804
45805         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
45806         Don't bother testing specific errno values.  Just test ferror.
45807
45808         New module: xprintf
45809         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
45810
45811 2007-10-19  Bruno Haible  <bruno@clisp.org>
45812
45813         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
45814         syntax.
45815         * modules/javaexec (Makefile.am): Likewise.
45816         * modules/relocatable-prog (Makefile.am): Likewise.
45817         Suggested by Jim Meyering.
45818
45819 2007-10-18  Bruno Haible  <bruno@clisp.org>
45820
45821         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
45822         Reported by Jim Meyering.
45823
45824 2007-10-18  Eric Blake  <ebb9@byu.net>
45825
45826         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
45827
45828 2007-10-18  Bruno Haible  <bruno@clisp.org>
45829
45830         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
45831         the format string into writable memory. Needed in Fortify conditions.
45832
45833 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
45834             Bruno Haible  <bruno@clisp.org>
45835
45836         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
45837         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
45838         * modules/trim (Depends-on): Add mbchar.
45839         (configure.ac): Add gl_FUNC_MBRTOWC.
45840         (Makefile.am): Augment lib_SOURCES.
45841
45842 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45843
45844         Modify glob.c to use fstatat and dirfd, to simplify it.
45845         Suggested by Eric Blake.
45846         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
45847         Don't include <stdbool.h>; not used.
45848         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
45849         (link_exists_p): Simplify implementation, since we can now assume
45850         dirfd and fstatat.
45851         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
45852
45853 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45854
45855         * gnulib-tool (func_get_dependencies): Fix sed script to
45856         match only tests.
45857
45858 2007-10-17  Bruno Haible  <bruno@clisp.org>
45859
45860         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
45861         allow locale names without encoding suffix.
45862         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45863         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45864
45865 2007-10-16  Bruno Haible  <bruno@clisp.org>
45866
45867         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
45868         * lib/getgroups.c (getgroups): Likewise.
45869         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
45870
45871 2007-10-16  Bruno Haible  <bruno@clisp.org>
45872
45873         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
45874         * modules/malloc-posix (License): Likewise.
45875         * modules/realloc-posix (License): Likewise.
45876         * modules/calloc-posix (License): Likewise.
45877         * modules/intprops (License): Change from GPL to LGPL, with
45878         Paul Eggert's approval.
45879
45880 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45881
45882         Merge glibc changes into lib/glob.c.
45883
45884         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
45885         2007-10-15 04:59:03 UTC.  Here are the changes:
45886
45887         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
45888
45889         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
45890
45891         * lib/glob.c: Add some branch prediction throughout.
45892
45893         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
45894
45895         [BZ #5103]
45896         * lib/glob.c (glob): Recognize patterns starting \/.
45897
45898         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
45899
45900         [BZ #3996]
45901         * lib/glob.c (attribute_hidden): Define if not defined.
45902         (glob): Unescape dirname, filename or username when needed and not
45903         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
45904         is NULL.  Handle unescaped [ in pattern without closing ].
45905         Don't pass GLOB_CHECK down to recursive glob for directories.
45906         (__glob_pattern_type): New function.
45907         (__glob_pattern_p): Implement using __glob_pattern_type.
45908         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
45909         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
45910         Remove unreachable code.
45911
45912         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
45913
45914         * lib/glob.c (glob_in_dir): Add some comments and asserts to
45915         explain why there are no leaks.
45916
45917         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
45918
45919         [BZ #3253]
45920         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
45921         time, rather allocate increasingly bigger arrays of pointers, if
45922         possible with alloca, if too large with malloc.
45923
45924 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45925
45926         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
45927         Problem reported by H.Merijn Brand in
45928         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
45929         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
45930         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45931
45932 2007-10-15  Bruno Haible  <bruno@clisp.org>
45933
45934         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
45935         with explicit rpl_ prefix.
45936         * lib/fopen.c (fopen): Likewise.
45937         * lib/freopen.c (freopen): Likewise.
45938         * lib/iconv.c (iconv): Likewise.
45939         * lib/iconv_close.c (iconv_close): Likewise.
45940
45941 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45942
45943         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
45944
45945 2007-10-15  Bruno Haible  <bruno@clisp.org>
45946
45947         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
45948         <stddef.h> instead of <stdlib.h> since we only need NULL.
45949         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45950
45951 2007-10-15  Bruno Haible  <bruno@clisp.org>
45952
45953         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
45954         Replace paragraph talking about LIBOBJS.
45955         Reported by Colin Watson <cjwatson@debian.org>.
45956
45957 2007-10-15  Bruno Haible  <bruno@clisp.org>
45958
45959         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
45960         <stdlib.h> before using NULL.
45961
45962 2007-10-15  Simon Josefsson  <simon@josefsson.org>
45963
45964         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
45965         Reported by Albert Chin <china@thewrittenword.com>.
45966
45967 2007-10-14  Bruno Haible  <bruno@clisp.org>
45968
45969         * modules/iconv_open-utf-tests: New file.
45970         * tests/test-iconv-utf.c: New file.
45971
45972         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
45973         * modules/iconv_open-utf: New file.
45974         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
45975         (iconv, iconv_close): New declarations.
45976         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
45977         be defined.
45978         (iconv_open): Add special handling of conversion between UTF-8 and
45979         UTF-{16,32}{BE,LE}.
45980         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
45981         * lib/iconv_close.c: New file.
45982         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45983         gl_FUNC_ICONV_OPEN.
45984         (gl_FUNC_ICONV_OPEN): Use it.
45985         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45986         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45987         and REPLACE_ICONV_UTF.
45988         * modules/iconv_open (Depends-on): Add c-strcase.
45989         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45990         ICONV_CONST.
45991         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45992
45993 2007-10-13  Albert Chin  <china@thewrittenword.com>
45994             Bruno Haible  <bruno@clisp.org>
45995
45996         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45997         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45998
45999 2007-10-13  Bruno Haible  <bruno@clisp.org>
46000
46001         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46002         defined, use the ISO C99 inline semantics.
46003         * lib/argp.h (ARGP_EI): Likewise.
46004
46005 2007-10-13  Bruno Haible  <bruno@clisp.org>
46006
46007         Handle 'inline' change in gcc 4.3.0.
46008         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46009         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46010         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46011         argp_fmtstream_point): Disable 'extern' declaration if the function
46012         definition is going to be provided inline.
46013         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46014         semantics, not the ISO C99 inline semantics.
46015         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46016         'extern' declaration if the function definition is going to be provided
46017         inline.
46018         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46019         the GNU C inline semantics, not the ISO C99 inline semantics. With
46020         GCC 4.2, avoid a warning.
46021
46022 2007-10-13  Bruno Haible  <bruno@clisp.org>
46023
46024         * lib/freading.h (freading): Enable the use of __freading for
46025         glibc >= 2.7.
46026         * lib/freading.c (freading): Likewise.
46027
46028 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46029
46030         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46031         "warning: C99 inline functions are not supported; using GNU89".
46032
46033 2007-10-12  Bruno Haible  <bruno@clisp.org>
46034
46035         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46036         of 2.
46037         * tests/test-ceilf2.c: New file.
46038         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46039
46040         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46041         * modules/ceilf-tests: Update.
46042
46043 2007-10-12  Bruno Haible  <bruno@clisp.org>
46044
46045         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46046         of 2.
46047         * tests/test-floorf2.c: New file.
46048         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46049
46050         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46051         * modules/floorf-tests: Update.
46052
46053 2007-10-12  Bruno Haible  <bruno@clisp.org>
46054
46055         * tests/test-trunc2.c: New file.
46056         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46057
46058         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46059         * modules/trunc-tests: Update.
46060
46061 2007-10-12  Bruno Haible  <bruno@clisp.org>
46062
46063         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46064         of 2.
46065         * tests/test-truncf2.c: New file.
46066         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46067
46068         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46069         * modules/truncf-tests: Update.
46070
46071 2007-10-11  Eric Blake  <ebb9@byu.net>
46072
46073         Don't claim strerror is broken on Interix.
46074         * doc/functions/strerror.texi (strerror): Known broken systems are
46075         now Solaris 8, and not Interix.
46076         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46077         Interix on cross-compile.
46078         Reported by Martin Koeppe in
46079         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46080
46081 2007-10-11  Bruno Haible  <bruno@clisp.org>
46082
46083         * modules/i-ring-tests: New file.
46084         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46085         instead of assert.
46086
46087 2007-10-11  Bruno Haible  <bruno@clisp.org>
46088
46089         * modules/filenamecat-tests: New file.
46090         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46091         * lib/filenamecat.c: Remove test code.
46092
46093 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46094
46095         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46096
46097         * lib/strerror.c: Include <string.h> always, to test interface,
46098         and to remove the need for the dummy.
46099         Include intprops.h to compute width instead of doing it ourselves
46100         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46101         (strerror): Define it to return NULL if there's no system strerror.
46102         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46103         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46104         ancient pre-strerror Unix systems well any more.  Saying "unknown
46105         system error" is enough.
46106         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46107         simpler strerror.c implementation.
46108         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46109         Simplify the tests to reflect the simpler strerror implementation.
46110         * modules/strerror (Depends-on): Add intprops.
46111
46112 2007-10-09  Eric Blake  <ebb9@byu.net>
46113
46114         Silence test-fpending.
46115         * modules/fpending-tests (Files): Add wrapper script.
46116         * tests/test-fpending.sh: New file.
46117
46118 2007-10-09  Bruno Haible  <bruno@clisp.org>
46119
46120         * MODULES.html.sh (func_module): Don't create a hyperlink for
46121         function names like 'printf_frexp'.
46122         (Misc): Add crc, memxor.
46123         (Characteristics of floating types): New section.
46124         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46125         isnanf-nolibm, signbit, trunc, truncf, truncl.
46126         (Enhancements for ISO C 99 functions): New subsection Input/output.
46127         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46128         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46129         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46130         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46131         (Enhancements for POSIX:2001 functions): Add chdir-long.
46132         (File system functions): Add areadlink, chdir-safer, read-file.
46133         Remove cycle-check.
46134         (File system as inode set): New section.
46135         (Date and time): Add gethrxtime.
46136         (Multithreading): Add openmp.
46137         (Internationalization functions): Add localename.
46138         (Unicode string functions): Add unistr/u*-mbsnlen.
46139         (Support for maintaining and releasing projects): Add git-version-gen.
46140         (Lone files): Remove directories.
46141
46142 2007-10-08  Ben Pfaff  <blp@gnu.org>
46143
46144         * lib/xmalloca.h: Fix typo in comment.
46145
46146 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46147
46148         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46149         when avoiding problems with integer overflow.  Use a portable test
46150         instead.
46151
46152 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46153
46154         * modules/dummy (License): Change to LGPLv2+.
46155         * modules/float (License): Likewise
46156         * modules/realloc (License): Likewise
46157         * modules/stdlib (License): Likewise
46158
46159 2007-10-07  Bruno Haible  <bruno@clisp.org>
46160
46161         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46162         * floor.c (TWO_MANT_DIG): Likewise.
46163         * ceil.c (TWO_MANT_DIG): Likewise.
46164         Reported by Ben Pfaff.
46165
46166 2007-10-07  Bruno Haible  <bruno@clisp.org>
46167
46168         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46169         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46170         * lib/frexp.c (FUNC): Likewise.
46171         * lib/printf-frexp.h (printf_frexp): Likewise.
46172         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46173         * lib/printf-frexp.c (FUNC): Likewise.
46174         Suggested by Jim Meyering.
46175
46176 2007-10-07  Jim Meyering  <meyering@redhat.com>
46177
46178         Make xnanosleep's integer overflow test more robust.
46179         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46180         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46181
46182 2007-10-07  Bruno Haible  <bruno@clisp.org>
46183
46184         * NEWS: Mention the license change.
46185
46186         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46187         abbreviations in the modules files.
46188
46189         Change copyright notice from GPLv2+ to GPLv3+.
46190         * README: Change copyright notice.
46191         * MODULES.html.sh: Likewise.
46192         * build-aux/bootstrap.conf: Likewise.
46193         * build-aux/config.libpath: Likewise.
46194         * build-aux/csharpcomp.sh.in: Likewise.
46195         * build-aux/csharpexec.sh.in: Likewise.
46196         * build-aux/install-reloc: Likewise.
46197         * build-aux/javacomp.sh.in: Likewise.
46198         * build-aux/javaexec.sh.in: Likewise.
46199         * build-aux/ldd.sh.in: Likewise.
46200         * build-aux/reloc-ldflags: Likewise.
46201         * build-aux/relocatable.sh.in: Likewise.
46202         * build-aux/x-to-1.in: Likewise.
46203         * check-module: Likewise.
46204         * config/srclistvars.sh: Likewise.
46205         * gnulib-tool: Likewise.
46206         * lib/acl-internal.h: Likewise.
46207         * lib/acl.c: Likewise.
46208         * lib/acl.h: Likewise.
46209         * lib/acl_entries.c: Likewise.
46210         * lib/areadlink-with-size.c: Likewise.
46211         * lib/areadlink.c: Likewise.
46212         * lib/areadlink.h: Likewise.
46213         * lib/argmatch.c: Likewise.
46214         * lib/argmatch.h: Likewise.
46215         * lib/argp-ba.c: Likewise.
46216         * lib/argp-eexst.c: Likewise.
46217         * lib/argp-fmtstream.c: Likewise.
46218         * lib/argp-fmtstream.h: Likewise.
46219         * lib/argp-fs-xinl.c: Likewise.
46220         * lib/argp-help.c: Likewise.
46221         * lib/argp-namefrob.h: Likewise.
46222         * lib/argp-parse.c: Likewise.
46223         * lib/argp-pin.c: Likewise.
46224         * lib/argp-pv.c: Likewise.
46225         * lib/argp-pvh.c: Likewise.
46226         * lib/argp-xinl.c: Likewise.
46227         * lib/argp.h: Likewise.
46228         * lib/at-func.c: Likewise.
46229         * lib/atanl.c: Likewise.
46230         * lib/backupfile.c: Likewise.
46231         * lib/backupfile.h: Likewise.
46232         * lib/basename.c: Likewise.
46233         * lib/binary-io.h: Likewise.
46234         * lib/byteswap.in.h: Likewise.
46235         * lib/c-stack.c: Likewise.
46236         * lib/c-stack.h: Likewise.
46237         * lib/c-strcasestr.c: Likewise.
46238         * lib/c-strcasestr.h: Likewise.
46239         * lib/c-strstr.c: Likewise.
46240         * lib/c-strstr.h: Likewise.
46241         * lib/c-strtod.c: Likewise.
46242         * lib/calloc.c: Likewise.
46243         * lib/canon-host.c: Likewise.
46244         * lib/canon-host.h: Likewise.
46245         * lib/canonicalize-lgpl.c: Likewise.
46246         * lib/canonicalize.c: Likewise.
46247         * lib/canonicalize.h: Likewise.
46248         * lib/ceil.c: Likewise.
46249         * lib/ceilf.c: Likewise.
46250         * lib/ceill.c: Likewise.
46251         * lib/chdir-long.c: Likewise.
46252         * lib/chdir-long.h: Likewise.
46253         * lib/chdir-safer.c: Likewise.
46254         * lib/chdir-safer.h: Likewise.
46255         * lib/chown.c: Likewise.
46256         * lib/classpath.c: Likewise.
46257         * lib/classpath.h: Likewise.
46258         * lib/clean-temp.c: Likewise.
46259         * lib/clean-temp.h: Likewise.
46260         * lib/cloexec.c: Likewise.
46261         * lib/close-stream.c: Likewise.
46262         * lib/closein.c: Likewise.
46263         * lib/closein.h: Likewise.
46264         * lib/closeout.c: Likewise.
46265         * lib/closeout.h: Likewise.
46266         * lib/concat-filename.c: Likewise.
46267         * lib/copy-file.c: Likewise.
46268         * lib/copy-file.h: Likewise.
46269         * lib/count-one-bits.h: Likewise.
46270         * lib/crc.c: Likewise.
46271         * lib/crc.h: Likewise.
46272         * lib/creat-safer.c: Likewise.
46273         * lib/csharpcomp.c: Likewise.
46274         * lib/csharpcomp.h: Likewise.
46275         * lib/csharpexec.c: Likewise.
46276         * lib/csharpexec.h: Likewise.
46277         * lib/cycle-check.c: Likewise.
46278         * lib/cycle-check.h: Likewise.
46279         * lib/diacrit.c: Likewise.
46280         * lib/diacrit.h: Likewise.
46281         * lib/diffseq.h: Likewise.
46282         * lib/dirchownmod.c: Likewise.
46283         * lib/dirent.in.h: Likewise.
46284         * lib/dirfd.c: Likewise.
46285         * lib/dirfd.h: Likewise.
46286         * lib/dirname.c: Likewise.
46287         * lib/dirname.h: Likewise.
46288         * lib/dummy.c: Likewise.
46289         * lib/dup-safer.c: Likewise.
46290         * lib/dup2.c: Likewise.
46291         * lib/eealloc.h: Likewise.
46292         * lib/error.c: Likewise.
46293         * lib/error.h: Likewise.
46294         * lib/euidaccess.c: Likewise.
46295         * lib/exclude.c: Likewise.
46296         * lib/exclude.h: Likewise.
46297         * lib/execute.c: Likewise.
46298         * lib/execute.h: Likewise.
46299         * lib/exitfail.c: Likewise.
46300         * lib/exitfail.h: Likewise.
46301         * lib/expl.c: Likewise.
46302         * lib/fatal-signal.c: Likewise.
46303         * lib/fatal-signal.h: Likewise.
46304         * lib/fbufmode.c: Likewise.
46305         * lib/fbufmode.h: Likewise.
46306         * lib/fchdir.c: Likewise.
46307         * lib/fchmodat.c: Likewise.
46308         * lib/fchownat.c: Likewise.
46309         * lib/fcntl--.h: Likewise.
46310         * lib/fcntl-safer.h: Likewise.
46311         * lib/fcntl.in.h: Likewise.
46312         * lib/fd-safer.c: Likewise.
46313         * lib/fflush.c: Likewise.
46314         * lib/file-has-acl.c: Likewise.
46315         * lib/file-set.c: Likewise.
46316         * lib/file-type.c: Likewise.
46317         * lib/file-type.h: Likewise.
46318         * lib/fileblocks.c: Likewise.
46319         * lib/filemode.c: Likewise.
46320         * lib/filemode.h: Likewise.
46321         * lib/filename.h: Likewise.
46322         * lib/filenamecat.c: Likewise.
46323         * lib/filenamecat.h: Likewise.
46324         * lib/findprog.c: Likewise.
46325         * lib/findprog.h: Likewise.
46326         * lib/float.in.h: Likewise.
46327         * lib/floor.c: Likewise.
46328         * lib/floorf.c: Likewise.
46329         * lib/floorl.c: Likewise.
46330         * lib/fopen-safer.c: Likewise.
46331         * lib/fopen.c: Likewise.
46332         * lib/fpending.c: Likewise.
46333         * lib/fpending.h: Likewise.
46334         * lib/fprintf.c: Likewise.
46335         * lib/fprintftime.h: Likewise.
46336         * lib/fpucw.h: Likewise.
46337         * lib/fpurge.c: Likewise.
46338         * lib/fpurge.h: Likewise.
46339         * lib/freadable.c: Likewise.
46340         * lib/freadable.h: Likewise.
46341         * lib/freadahead.c: Likewise.
46342         * lib/freadahead.h: Likewise.
46343         * lib/freading.c: Likewise.
46344         * lib/freading.h: Likewise.
46345         * lib/free.c: Likewise.
46346         * lib/freopen.c: Likewise.
46347         * lib/frexp.c: Likewise.
46348         * lib/frexpl.c: Likewise.
46349         * lib/fseek.c: Likewise.
46350         * lib/fseterr.c: Likewise.
46351         * lib/fseterr.h: Likewise.
46352         * lib/fstatat.c: Likewise.
46353         * lib/fstrcmp.c: Likewise.
46354         * lib/fstrcmp.h: Likewise.
46355         * lib/fsusage.c: Likewise.
46356         * lib/fsusage.h: Likewise.
46357         * lib/ftell.c: Likewise.
46358         * lib/ftello.c: Likewise.
46359         * lib/fts-cycle.c: Likewise.
46360         * lib/fts.c: Likewise.
46361         * lib/fts_.h: Likewise.
46362         * lib/full-read.c: Likewise.
46363         * lib/full-read.h: Likewise.
46364         * lib/full-write.c: Likewise.
46365         * lib/full-write.h: Likewise.
46366         * lib/fwritable.c: Likewise.
46367         * lib/fwritable.h: Likewise.
46368         * lib/fwriteerror.c: Likewise.
46369         * lib/fwriteerror.h: Likewise.
46370         * lib/fwriting.c: Likewise.
46371         * lib/fwriting.h: Likewise.
46372         * lib/gcd.c: Likewise.
46373         * lib/gcd.h: Likewise.
46374         * lib/getcwd.c: Likewise.
46375         * lib/getdate.h: Likewise.
46376         * lib/getdate.y: Likewise.
46377         * lib/getdomainname.c: Likewise.
46378         * lib/getdomainname.h: Likewise.
46379         * lib/getgroups.c: Likewise.
46380         * lib/gethostname.c: Likewise.
46381         * lib/gethrxtime.c: Likewise.
46382         * lib/gethrxtime.h: Likewise.
46383         * lib/getloadavg.c: Likewise.
46384         * lib/getndelim2.c: Likewise.
46385         * lib/getndelim2.h: Likewise.
46386         * lib/getnline.c: Likewise.
46387         * lib/getnline.h: Likewise.
46388         * lib/getopt.c: Likewise.
46389         * lib/getopt.in.h: Likewise.
46390         * lib/getopt1.c: Likewise.
46391         * lib/getopt_int.h: Likewise.
46392         * lib/getpagesize.h: Likewise.
46393         * lib/getsubopt.c: Likewise.
46394         * lib/gettime.c: Likewise.
46395         * lib/getugroups.c: Likewise.
46396         * lib/getugroups.h: Likewise.
46397         * lib/getusershell.c: Likewise.
46398         * lib/gl_anyavltree_list1.h: Likewise.
46399         * lib/gl_anyavltree_list2.h: Likewise.
46400         * lib/gl_anyhash_list1.h: Likewise.
46401         * lib/gl_anyhash_list2.h: Likewise.
46402         * lib/gl_anylinked_list1.h: Likewise.
46403         * lib/gl_anylinked_list2.h: Likewise.
46404         * lib/gl_anyrbtree_list1.h: Likewise.
46405         * lib/gl_anyrbtree_list2.h: Likewise.
46406         * lib/gl_anytree_list1.h: Likewise.
46407         * lib/gl_anytree_list2.h: Likewise.
46408         * lib/gl_anytree_oset.h: Likewise.
46409         * lib/gl_anytreehash_list1.h: Likewise.
46410         * lib/gl_anytreehash_list2.h: Likewise.
46411         * lib/gl_array_list.c: Likewise.
46412         * lib/gl_array_list.h: Likewise.
46413         * lib/gl_array_oset.c: Likewise.
46414         * lib/gl_array_oset.h: Likewise.
46415         * lib/gl_avltree_list.c: Likewise.
46416         * lib/gl_avltree_list.h: Likewise.
46417         * lib/gl_avltree_oset.c: Likewise.
46418         * lib/gl_avltree_oset.h: Likewise.
46419         * lib/gl_avltreehash_list.c: Likewise.
46420         * lib/gl_avltreehash_list.h: Likewise.
46421         * lib/gl_carray_list.c: Likewise.
46422         * lib/gl_carray_list.h: Likewise.
46423         * lib/gl_linked_list.c: Likewise.
46424         * lib/gl_linked_list.h: Likewise.
46425         * lib/gl_linkedhash_list.c: Likewise.
46426         * lib/gl_linkedhash_list.h: Likewise.
46427         * lib/gl_list.c: Likewise.
46428         * lib/gl_list.h: Likewise.
46429         * lib/gl_oset.c: Likewise.
46430         * lib/gl_oset.h: Likewise.
46431         * lib/gl_rbtree_list.c: Likewise.
46432         * lib/gl_rbtree_list.h: Likewise.
46433         * lib/gl_rbtree_oset.c: Likewise.
46434         * lib/gl_rbtree_oset.h: Likewise.
46435         * lib/gl_rbtreehash_list.c: Likewise.
46436         * lib/gl_rbtreehash_list.h: Likewise.
46437         * lib/gl_sublist.c: Likewise.
46438         * lib/gl_sublist.h: Likewise.
46439         * lib/group-member.c: Likewise.
46440         * lib/group-member.h: Likewise.
46441         * lib/hard-locale.c: Likewise.
46442         * lib/hard-locale.h: Likewise.
46443         * lib/hash-pjw.c: Likewise.
46444         * lib/hash-pjw.h: Likewise.
46445         * lib/hash-triple.c: Likewise.
46446         * lib/hash.c: Likewise.
46447         * lib/hash.h: Likewise.
46448         * lib/human.c: Likewise.
46449         * lib/human.h: Likewise.
46450         * lib/i-ring.c: Likewise.
46451         * lib/i-ring.h: Likewise.
46452         * lib/idcache.c: Likewise.
46453         * lib/imaxabs.c: Likewise.
46454         * lib/imaxdiv.c: Likewise.
46455         * lib/inet_pton.c: Likewise.
46456         * lib/inet_pton.h: Likewise.
46457         * lib/intprops.h: Likewise.
46458         * lib/inttostr.c: Likewise.
46459         * lib/inttostr.h: Likewise.
46460         * lib/inttypes.in.h: Likewise.
46461         * lib/isapipe.c: Likewise.
46462         * lib/isdir.c: Likewise.
46463         * lib/isnan.c: Likewise.
46464         * lib/isnan.h: Likewise.
46465         * lib/isnanf.c: Likewise.
46466         * lib/isnanf.h: Likewise.
46467         * lib/isnanl-nolibm.h: Likewise.
46468         * lib/isnanl.c: Likewise.
46469         * lib/isnanl.h: Likewise.
46470         * lib/javacomp.c: Likewise.
46471         * lib/javacomp.h: Likewise.
46472         * lib/javaexec.c: Likewise.
46473         * lib/javaexec.h: Likewise.
46474         * lib/javaversion.c: Likewise.
46475         * lib/javaversion.h: Likewise.
46476         * lib/javaversion.java: Likewise.
46477         * lib/lbrkprop.h: Likewise.
46478         * lib/lchmod.h: Likewise.
46479         * lib/lchown.c: Likewise.
46480         * lib/ldexpl.c: Likewise.
46481         * lib/linebreak.c: Likewise.
46482         * lib/linebreak.h: Likewise.
46483         * lib/linebuffer.c: Likewise.
46484         * lib/linebuffer.h: Likewise.
46485         * lib/locale.in.h: Likewise.
46486         * lib/logl.c: Likewise.
46487         * lib/long-options.c: Likewise.
46488         * lib/long-options.h: Likewise.
46489         * lib/lstat.c: Likewise.
46490         * lib/lstat.h: Likewise.
46491         * lib/math.in.h: Likewise.
46492         * lib/mbchar.c: Likewise.
46493         * lib/mbchar.h: Likewise.
46494         * lib/mbfile.h: Likewise.
46495         * lib/mbiter.h: Likewise.
46496         * lib/mbscasecmp.c: Likewise.
46497         * lib/mbscasestr.c: Likewise.
46498         * lib/mbschr.c: Likewise.
46499         * lib/mbscspn.c: Likewise.
46500         * lib/mbslen.c: Likewise.
46501         * lib/mbsncasecmp.c: Likewise.
46502         * lib/mbsnlen.c: Likewise.
46503         * lib/mbspbrk.c: Likewise.
46504         * lib/mbspcasecmp.c: Likewise.
46505         * lib/mbsrchr.c: Likewise.
46506         * lib/mbssep.c: Likewise.
46507         * lib/mbsspn.c: Likewise.
46508         * lib/mbsstr.c: Likewise.
46509         * lib/mbstok_r.c: Likewise.
46510         * lib/mbswidth.c: Likewise.
46511         * lib/mbswidth.h: Likewise.
46512         * lib/mbuiter.h: Likewise.
46513         * lib/memcasecmp.c: Likewise.
46514         * lib/memcasecmp.h: Likewise.
46515         * lib/memchr.c: Likewise.
46516         * lib/memcmp.c: Likewise.
46517         * lib/memcoll.c: Likewise.
46518         * lib/memcoll.h: Likewise.
46519         * lib/memcpy.c: Likewise.
46520         * lib/memrchr.c: Likewise.
46521         * lib/mkancesdirs.c: Likewise.
46522         * lib/mkdir-p.c: Likewise.
46523         * lib/mkdir-p.h: Likewise.
46524         * lib/mkdir.c: Likewise.
46525         * lib/mkdirat.c: Likewise.
46526         * lib/mkdtemp.c: Likewise.
46527         * lib/mkstemp-safer.c: Likewise.
46528         * lib/mkstemp.c: Likewise.
46529         * lib/modechange.c: Likewise.
46530         * lib/modechange.h: Likewise.
46531         * lib/mountlist.c: Likewise.
46532         * lib/mountlist.h: Likewise.
46533         * lib/mpsort.c: Likewise.
46534         * lib/nanosleep.c: Likewise.
46535         * lib/obstack.c: Likewise.
46536         * lib/obstack.h: Likewise.
46537         * lib/open-safer.c: Likewise.
46538         * lib/open.c: Likewise.
46539         * lib/openat-die.c: Likewise.
46540         * lib/openat-priv.h: Likewise.
46541         * lib/openat-proc.c: Likewise.
46542         * lib/openat.c: Likewise.
46543         * lib/openat.h: Likewise.
46544         * lib/pagealign_alloc.c: Likewise.
46545         * lib/pagealign_alloc.h: Likewise.
46546         * lib/physmem.c: Likewise.
46547         * lib/physmem.h: Likewise.
46548         * lib/pipe-safer.c: Likewise.
46549         * lib/pipe.c: Likewise.
46550         * lib/pipe.h: Likewise.
46551         * lib/posixtm.c: Likewise.
46552         * lib/posixtm.h: Likewise.
46553         * lib/posixver.c: Likewise.
46554         * lib/printf-frexp.c: Likewise.
46555         * lib/printf-frexp.h: Likewise.
46556         * lib/printf-frexpl.c: Likewise.
46557         * lib/printf-frexpl.h: Likewise.
46558         * lib/printf.c: Likewise.
46559         * lib/progname.c: Likewise.
46560         * lib/progname.h: Likewise.
46561         * lib/progreloc.c: Likewise.
46562         * lib/putenv.c: Likewise.
46563         * lib/quote.c: Likewise.
46564         * lib/quote.h: Likewise.
46565         * lib/quotearg.c: Likewise.
46566         * lib/quotearg.h: Likewise.
46567         * lib/raise.c: Likewise.
46568         * lib/readline.c: Likewise.
46569         * lib/readline.h: Likewise.
46570         * lib/readlink.c: Likewise.
46571         * lib/readtokens.c: Likewise.
46572         * lib/readtokens.h: Likewise.
46573         * lib/readtokens0.c: Likewise.
46574         * lib/readtokens0.h: Likewise.
46575         * lib/readutmp.c: Likewise.
46576         * lib/readutmp.h: Likewise.
46577         * lib/realloc.c: Likewise.
46578         * lib/relocwrapper.c: Likewise.
46579         * lib/rename-dest-slash.c: Likewise.
46580         * lib/rename.c: Likewise.
46581         * lib/rmdir.c: Likewise.
46582         * lib/rpmatch.c: Likewise.
46583         * lib/safe-read.c: Likewise.
46584         * lib/safe-read.h: Likewise.
46585         * lib/safe-write.c: Likewise.
46586         * lib/safe-write.h: Likewise.
46587         * lib/same-inode.h: Likewise.
46588         * lib/same.c: Likewise.
46589         * lib/same.h: Likewise.
46590         * lib/save-cwd.c: Likewise.
46591         * lib/save-cwd.h: Likewise.
46592         * lib/savedir.c: Likewise.
46593         * lib/savedir.h: Likewise.
46594         * lib/savewd.c: Likewise.
46595         * lib/savewd.h: Likewise.
46596         * lib/search.in.h: Likewise.
46597         * lib/setenv.c: Likewise.
46598         * lib/setenv.h: Likewise.
46599         * lib/settime.c: Likewise.
46600         * lib/sh-quote.c: Likewise.
46601         * lib/sh-quote.h: Likewise.
46602         * lib/sig2str.c: Likewise.
46603         * lib/sig2str.h: Likewise.
46604         * lib/signal.in.h: Likewise.
46605         * lib/signbitd.c: Likewise.
46606         * lib/signbitf.c: Likewise.
46607         * lib/signbitl.c: Likewise.
46608         * lib/sigprocmask.c: Likewise.
46609         * lib/sincosl.c: Likewise.
46610         * lib/sleep.c: Likewise.
46611         * lib/sprintf.c: Likewise.
46612         * lib/sqrtl.c: Likewise.
46613         * lib/stat-time.h: Likewise.
46614         * lib/stdio--.h: Likewise.
46615         * lib/stdio-safer.h: Likewise.
46616         * lib/stdlib--.h: Likewise.
46617         * lib/stdlib-safer.h: Likewise.
46618         * lib/stdlib.in.h: Likewise.
46619         * lib/stpcpy.c: Likewise.
46620         * lib/stpncpy.c: Likewise.
46621         * lib/strchrnul.c: Likewise.
46622         * lib/strcspn.c: Likewise.
46623         * lib/strerror.c: Likewise.
46624         * lib/strftime.c: Likewise.
46625         * lib/strftime.h: Likewise.
46626         * lib/striconveh.c: Likewise.
46627         * lib/striconveh.h: Likewise.
46628         * lib/striconveha.c: Likewise.
46629         * lib/striconveha.h: Likewise.
46630         * lib/stripslash.c: Likewise.
46631         * lib/strnlen1.c: Likewise.
46632         * lib/strnlen1.h: Likewise.
46633         * lib/strtod.c: Likewise.
46634         * lib/strtoimax.c: Likewise.
46635         * lib/strtok_r.c: Likewise.
46636         * lib/strtol.c: Likewise.
46637         * lib/strtoll.c: Likewise.
46638         * lib/strtoul.c: Likewise.
46639         * lib/strtoull.c: Likewise.
46640         * lib/sysexits.in.h: Likewise.
46641         * lib/tempname.c: Likewise.
46642         * lib/tempname.h: Likewise.
46643         * lib/timespec.h: Likewise.
46644         * lib/tls.c: Likewise.
46645         * lib/tls.h: Likewise.
46646         * lib/tmpdir.c: Likewise.
46647         * lib/tmpdir.h: Likewise.
46648         * lib/tmpfile-safer.c: Likewise.
46649         * lib/tmpfile.c: Likewise.
46650         * lib/trigl.c: Likewise.
46651         * lib/trigl.h: Likewise.
46652         * lib/trim.c: Likewise.
46653         * lib/trim.h: Likewise.
46654         * lib/trunc.c: Likewise.
46655         * lib/truncf.c: Likewise.
46656         * lib/truncl.c: Likewise.
46657         * lib/tsearch.c: Likewise.
46658         * lib/unicodeio.c: Likewise.
46659         * lib/unicodeio.h: Likewise.
46660         * lib/unistd--.h: Likewise.
46661         * lib/unistd-safer.h: Likewise.
46662         * lib/unistdio/ulc-fprintf.c: Likewise.
46663         * lib/unistdio/ulc-vfprintf.c: Likewise.
46664         * lib/unlinkdir.c: Likewise.
46665         * lib/unlinkdir.h: Likewise.
46666         * lib/unlocked-io.h: Likewise.
46667         * lib/unsetenv.c: Likewise.
46668         * lib/userspec.c: Likewise.
46669         * lib/utime.c: Likewise.
46670         * lib/utimecmp.c: Likewise.
46671         * lib/utimecmp.h: Likewise.
46672         * lib/utimens.c: Likewise.
46673         * lib/verify.h: Likewise.
46674         * lib/verror.c: Likewise.
46675         * lib/verror.h: Likewise.
46676         * lib/version-etc-fsf.c: Likewise.
46677         * lib/version-etc.c: Likewise.
46678         * lib/version-etc.h: Likewise.
46679         * lib/vfprintf.c: Likewise.
46680         * lib/vprintf.c: Likewise.
46681         * lib/vsprintf.c: Likewise.
46682         * lib/w32spawn.h: Likewise.
46683         * lib/wait-process.c: Likewise.
46684         * lib/wait-process.h: Likewise.
46685         * lib/wcwidth.c: Likewise.
46686         * lib/write-any-file.c: Likewise.
46687         * lib/xalloc-die.c: Likewise.
46688         * lib/xalloc.h: Likewise.
46689         * lib/xasprintf.c: Likewise.
46690         * lib/xgetcwd.c: Likewise.
46691         * lib/xgetcwd.h: Likewise.
46692         * lib/xgetdomainname.c: Likewise.
46693         * lib/xgetdomainname.h: Likewise.
46694         * lib/xgethostname.c: Likewise.
46695         * lib/xmalloc.c: Likewise.
46696         * lib/xmalloca.c: Likewise.
46697         * lib/xmalloca.h: Likewise.
46698         * lib/xmemcoll.c: Likewise.
46699         * lib/xnanosleep.c: Likewise.
46700         * lib/xreadlink.c: Likewise.
46701         * lib/xreadlink.h: Likewise.
46702         * lib/xsetenv.c: Likewise.
46703         * lib/xsetenv.h: Likewise.
46704         * lib/xstriconv.c: Likewise.
46705         * lib/xstriconv.h: Likewise.
46706         * lib/xstrndup.c: Likewise.
46707         * lib/xstrndup.h: Likewise.
46708         * lib/xstrtod.c: Likewise.
46709         * lib/xstrtod.h: Likewise.
46710         * lib/xstrtol-error.c: Likewise.
46711         * lib/xstrtol.c: Likewise.
46712         * lib/xstrtol.h: Likewise.
46713         * lib/xtime.h: Likewise.
46714         * lib/xvasprintf.c: Likewise.
46715         * lib/xvasprintf.h: Likewise.
46716         * lib/yesno.c: Likewise.
46717         * lib/yesno.h: Likewise.
46718         * posix-modules: Likewise.
46719         * tests/test-alloca-opt.c: Likewise.
46720         * tests/test-arcfour.c: Likewise.
46721         * tests/test-arctwo.c: Likewise.
46722         * tests/test-argmatch.c: Likewise.
46723         * tests/test-argp-2.sh: Likewise.
46724         * tests/test-argp.c: Likewise.
46725         * tests/test-arpa_inet.c: Likewise.
46726         * tests/test-array_list.c: Likewise.
46727         * tests/test-array_oset.c: Likewise.
46728         * tests/test-atexit.c: Likewise.
46729         * tests/test-avltree_list.c: Likewise.
46730         * tests/test-avltree_oset.c: Likewise.
46731         * tests/test-avltreehash_list.c: Likewise.
46732         * tests/test-base64.c: Likewise.
46733         * tests/test-binary-io.c: Likewise.
46734         * tests/test-byteswap.c: Likewise.
46735         * tests/test-c-ctype.c: Likewise.
46736         * tests/test-c-strcasecmp.c: Likewise.
46737         * tests/test-c-strcasestr.c: Likewise.
46738         * tests/test-c-strncasecmp.c: Likewise.
46739         * tests/test-c-strstr.c: Likewise.
46740         * tests/test-canonicalize-lgpl.c: Likewise.
46741         * tests/test-canonicalize.c: Likewise.
46742         * tests/test-carray_list.c: Likewise.
46743         * tests/test-ceilf.c: Likewise.
46744         * tests/test-ceill.c: Likewise.
46745         * tests/test-count-one-bits.c: Likewise.
46746         * tests/test-crc.c: Likewise.
46747         * tests/test-dirname.c: Likewise.
46748         * tests/test-fbufmode.c: Likewise.
46749         * tests/test-fcntl.c: Likewise.
46750         * tests/test-fflush.c: Likewise.
46751         * tests/test-floorf.c: Likewise.
46752         * tests/test-floorl.c: Likewise.
46753         * tests/test-fopen.c: Likewise.
46754         * tests/test-fprintf-posix.c: Likewise.
46755         * tests/test-fprintf-posix.h: Likewise.
46756         * tests/test-fpurge.c: Likewise.
46757         * tests/test-freadable.c: Likewise.
46758         * tests/test-freadahead.c: Likewise.
46759         * tests/test-freading.c: Likewise.
46760         * tests/test-freopen.c: Likewise.
46761         * tests/test-frexp.c: Likewise.
46762         * tests/test-frexpl.c: Likewise.
46763         * tests/test-fseek.c: Likewise.
46764         * tests/test-fseeko.c: Likewise.
46765         * tests/test-fseterr.c: Likewise.
46766         * tests/test-fstrcmp.c: Likewise.
46767         * tests/test-ftell.c: Likewise.
46768         * tests/test-ftello.c: Likewise.
46769         * tests/test-fwritable.c: Likewise.
46770         * tests/test-fwriting.c: Likewise.
46771         * tests/test-getaddrinfo.c: Likewise.
46772         * tests/test-getpass.c: Likewise.
46773         * tests/test-gettimeofday.c: Likewise.
46774         * tests/test-hmac-md5.c: Likewise.
46775         * tests/test-hmac-sha1.c: Likewise.
46776         * tests/test-iconv.c: Likewise.
46777         * tests/test-iconvme.c: Likewise.
46778         * tests/test-inttypes.c: Likewise.
46779         * tests/test-isnan.c: Likewise.
46780         * tests/test-isnanf.c: Likewise.
46781         * tests/test-isnanl-nolibm.c: Likewise.
46782         * tests/test-isnanl.c: Likewise.
46783         * tests/test-isnanl.h: Likewise.
46784         * tests/test-ldexpl.c: Likewise.
46785         * tests/test-linked_list.c: Likewise.
46786         * tests/test-linkedhash_list.c: Likewise.
46787         * tests/test-locale.c: Likewise.
46788         * tests/test-localename.c: Likewise.
46789         * tests/test-lock.c: Likewise.
46790         * tests/test-lseek.c: Likewise.
46791         * tests/test-malloca.c: Likewise.
46792         * tests/test-math.c: Likewise.
46793         * tests/test-mbscasecmp.c: Likewise.
46794         * tests/test-mbscasestr1.c: Likewise.
46795         * tests/test-mbscasestr2.c: Likewise.
46796         * tests/test-mbscasestr3.c: Likewise.
46797         * tests/test-mbscasestr4.c: Likewise.
46798         * tests/test-mbschr.c: Likewise.
46799         * tests/test-mbscspn.c: Likewise.
46800         * tests/test-mbsncasecmp.c: Likewise.
46801         * tests/test-mbspbrk.c: Likewise.
46802         * tests/test-mbspcasecmp.c: Likewise.
46803         * tests/test-mbsrchr.c: Likewise.
46804         * tests/test-mbsspn.c: Likewise.
46805         * tests/test-mbsstr1.c: Likewise.
46806         * tests/test-mbsstr2.c: Likewise.
46807         * tests/test-mbsstr3.c: Likewise.
46808         * tests/test-md5.c: Likewise.
46809         * tests/test-memmem.c: Likewise.
46810         * tests/test-netinet_in.c: Likewise.
46811         * tests/test-open.c: Likewise.
46812         * tests/test-printf-frexp.c: Likewise.
46813         * tests/test-printf-frexpl.c: Likewise.
46814         * tests/test-printf-posix.c: Likewise.
46815         * tests/test-printf-posix.h: Likewise.
46816         * tests/test-rbtree_list.c: Likewise.
46817         * tests/test-rbtree_oset.c: Likewise.
46818         * tests/test-rbtreehash_list.c: Likewise.
46819         * tests/test-read-file.c: Likewise.
46820         * tests/test-rijndael.c: Likewise.
46821         * tests/test-search.c: Likewise.
46822         * tests/test-signbit.c: Likewise.
46823         * tests/test-sleep.c: Likewise.
46824         * tests/test-snprintf-posix.c: Likewise.
46825         * tests/test-snprintf-posix.h: Likewise.
46826         * tests/test-snprintf.c: Likewise.
46827         * tests/test-sprintf-posix.c: Likewise.
46828         * tests/test-sprintf-posix.h: Likewise.
46829         * tests/test-stat-time.c: Likewise.
46830         * tests/test-stdbool.c: Likewise.
46831         * tests/test-stdint.c: Likewise.
46832         * tests/test-stdio.c: Likewise.
46833         * tests/test-stdlib.c: Likewise.
46834         * tests/test-stpncpy.c: Likewise.
46835         * tests/test-strcasestr.c: Likewise.
46836         * tests/test-striconv.c: Likewise.
46837         * tests/test-striconveh.c: Likewise.
46838         * tests/test-striconveha.c: Likewise.
46839         * tests/test-string.c: Likewise.
46840         * tests/test-sys_select.c: Likewise.
46841         * tests/test-sys_socket.c: Likewise.
46842         * tests/test-sys_stat.c: Likewise.
46843         * tests/test-sys_time.c: Likewise.
46844         * tests/test-sysexits.c: Likewise.
46845         * tests/test-time.c: Likewise.
46846         * tests/test-tls.c: Likewise.
46847         * tests/test-trunc.c: Likewise.
46848         * tests/test-truncf.c: Likewise.
46849         * tests/test-truncl.c: Likewise.
46850         * tests/test-unistd.c: Likewise.
46851         * tests/test-vasnprintf-posix.c: Likewise.
46852         * tests/test-vasnprintf-posix2.c: Likewise.
46853         * tests/test-vasnprintf.c: Likewise.
46854         * tests/test-vasprintf-posix.c: Likewise.
46855         * tests/test-vasprintf.c: Likewise.
46856         * tests/test-verify.c: Likewise.
46857         * tests/test-vfprintf-posix.c: Likewise.
46858         * tests/test-vprintf-posix.c: Likewise.
46859         * tests/test-vsnprintf-posix.c: Likewise.
46860         * tests/test-vsnprintf.c: Likewise.
46861         * tests/test-vsprintf-posix.c: Likewise.
46862         * tests/test-wchar.c: Likewise.
46863         * tests/test-wctype.c: Likewise.
46864         * tests/test-wcwidth.c: Likewise.
46865         * tests/test-xstrtol.c: Likewise.
46866         * tests/test-xvasprintf.c: Likewise.
46867         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
46868         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
46869         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46870         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46871         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46872         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
46873         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46874         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46875         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46876         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
46877         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46878         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46879         * tests/uniname/test-uninames.c: Likewise.
46880         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
46881         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
46882         * tests/unistdio/test-u16-printf1.h: Likewise.
46883         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
46884         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
46885         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
46886         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
46887         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
46888         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
46889         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
46890         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
46891         * tests/unistdio/test-u32-printf1.h: Likewise.
46892         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
46893         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
46894         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
46895         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
46896         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
46897         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
46898         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
46899         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
46900         * tests/unistdio/test-u8-printf1.h: Likewise.
46901         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
46902         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
46903         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
46904         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
46905         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
46906         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
46907         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
46908         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
46909         * tests/unistdio/test-ulc-printf1.h: Likewise.
46910         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
46911         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
46912         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
46913         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
46914         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
46915         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
46916         * tests/uniwidth/test-u16-strwidth.c: Likewise.
46917         * tests/uniwidth/test-u16-width.c: Likewise.
46918         * tests/uniwidth/test-u32-strwidth.c: Likewise.
46919         * tests/uniwidth/test-u32-width.c: Likewise.
46920         * tests/uniwidth/test-u8-strwidth.c: Likewise.
46921         * tests/uniwidth/test-u8-width.c: Likewise.
46922         * tests/uniwidth/test-uc_width.c: Likewise.
46923         * config/srclist-update: Likewise.
46924         (fixlicense): Update to GPLv3+.
46925
46926         Change copyright notice from LGPLv2.1+ to LGPLv3+.
46927         * tests/test-tsearch.c: Change copyright notice.
46928
46929         Change copyright notice from LGPLv2.0+ to LGPLv3+.
46930         * lib/c-strcaseeq.h: Change copyright notice.
46931         * lib/streq.h: Likewise.
46932         * lib/uniconv.h: Likewise.
46933         * lib/uniconv/u-conv-from-enc.h: Likewise.
46934         * lib/uniconv/u-conv-to-enc.h: Likewise.
46935         * lib/uniconv/u-strconv-from-enc.h: Likewise.
46936         * lib/uniconv/u-strconv-to-enc.h: Likewise.
46937         * lib/uniconv/u16-conv-from-enc.c: Likewise.
46938         * lib/uniconv/u16-conv-to-enc.c: Likewise.
46939         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
46940         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
46941         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
46942         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
46943         * lib/uniconv/u32-conv-from-enc.c: Likewise.
46944         * lib/uniconv/u32-conv-to-enc.c: Likewise.
46945         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
46946         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
46947         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
46948         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
46949         * lib/uniconv/u8-conv-from-enc.c: Likewise.
46950         * lib/uniconv/u8-conv-to-enc.c: Likewise.
46951         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
46952         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
46953         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
46954         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
46955         * lib/uniname.h: Likewise.
46956         * lib/uniname/uniname.c: Likewise.
46957         * lib/unistdio.h: Likewise.
46958         * lib/unistdio/u-asnprintf.h: Likewise.
46959         * lib/unistdio/u-asprintf.h: Likewise.
46960         * lib/unistdio/u-printf-args.c: Likewise.
46961         * lib/unistdio/u-printf-args.h: Likewise.
46962         * lib/unistdio/u-printf-parse.h: Likewise.
46963         * lib/unistdio/u-snprintf.h: Likewise.
46964         * lib/unistdio/u-sprintf.h: Likewise.
46965         * lib/unistdio/u-vasprintf.h: Likewise.
46966         * lib/unistdio/u-vsnprintf.h: Likewise.
46967         * lib/unistdio/u-vsprintf.h: Likewise.
46968         * lib/unistdio/u16-asnprintf.c: Likewise.
46969         * lib/unistdio/u16-asprintf.c: Likewise.
46970         * lib/unistdio/u16-printf-parse.c: Likewise.
46971         * lib/unistdio/u16-snprintf.c: Likewise.
46972         * lib/unistdio/u16-sprintf.c: Likewise.
46973         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
46974         * lib/unistdio/u16-u16-asprintf.c: Likewise.
46975         * lib/unistdio/u16-u16-snprintf.c: Likewise.
46976         * lib/unistdio/u16-u16-sprintf.c: Likewise.
46977         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
46978         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
46979         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
46980         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
46981         * lib/unistdio/u16-vasnprintf.c: Likewise.
46982         * lib/unistdio/u16-vasprintf.c: Likewise.
46983         * lib/unistdio/u16-vsnprintf.c: Likewise.
46984         * lib/unistdio/u16-vsprintf.c: Likewise.
46985         * lib/unistdio/u32-asnprintf.c: Likewise.
46986         * lib/unistdio/u32-asprintf.c: Likewise.
46987         * lib/unistdio/u32-printf-parse.c: Likewise.
46988         * lib/unistdio/u32-snprintf.c: Likewise.
46989         * lib/unistdio/u32-sprintf.c: Likewise.
46990         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46991         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46992         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46993         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46994         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46995         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46996         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46997         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46998         * lib/unistdio/u32-vasnprintf.c: Likewise.
46999         * lib/unistdio/u32-vasprintf.c: Likewise.
47000         * lib/unistdio/u32-vsnprintf.c: Likewise.
47001         * lib/unistdio/u32-vsprintf.c: Likewise.
47002         * lib/unistdio/u8-asnprintf.c: Likewise.
47003         * lib/unistdio/u8-asprintf.c: Likewise.
47004         * lib/unistdio/u8-printf-parse.c: Likewise.
47005         * lib/unistdio/u8-snprintf.c: Likewise.
47006         * lib/unistdio/u8-sprintf.c: Likewise.
47007         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47008         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47009         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47010         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47011         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47012         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47013         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47014         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47015         * lib/unistdio/u8-vasnprintf.c: Likewise.
47016         * lib/unistdio/u8-vasprintf.c: Likewise.
47017         * lib/unistdio/u8-vsnprintf.c: Likewise.
47018         * lib/unistdio/u8-vsprintf.c: Likewise.
47019         * lib/unistdio/ulc-asnprintf.c: Likewise.
47020         * lib/unistdio/ulc-asprintf.c: Likewise.
47021         * lib/unistdio/ulc-printf-parse.c: Likewise.
47022         * lib/unistdio/ulc-snprintf.c: Likewise.
47023         * lib/unistdio/ulc-sprintf.c: Likewise.
47024         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47025         * lib/unistdio/ulc-vasprintf.c: Likewise.
47026         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47027         * lib/unistdio/ulc-vsprintf.c: Likewise.
47028         * lib/unistr.h: Likewise.
47029         * lib/unistr/u-cpy-alloc.h: Likewise.
47030         * lib/unistr/u-cpy.h: Likewise.
47031         * lib/unistr/u-endswith.h: Likewise.
47032         * lib/unistr/u-move.h: Likewise.
47033         * lib/unistr/u-set.h: Likewise.
47034         * lib/unistr/u-startswith.h: Likewise.
47035         * lib/unistr/u-stpcpy.h: Likewise.
47036         * lib/unistr/u-stpncpy.h: Likewise.
47037         * lib/unistr/u-strcat.h: Likewise.
47038         * lib/unistr/u-strcpy.h: Likewise.
47039         * lib/unistr/u-strcspn.h: Likewise.
47040         * lib/unistr/u-strdup.h: Likewise.
47041         * lib/unistr/u-strlen.h: Likewise.
47042         * lib/unistr/u-strncat.h: Likewise.
47043         * lib/unistr/u-strncpy.h: Likewise.
47044         * lib/unistr/u-strnlen.h: Likewise.
47045         * lib/unistr/u-strpbrk.h: Likewise.
47046         * lib/unistr/u-strspn.h: Likewise.
47047         * lib/unistr/u-strstr.h: Likewise.
47048         * lib/unistr/u-strtok.h: Likewise.
47049         * lib/unistr/u16-check.c: Likewise.
47050         * lib/unistr/u16-chr.c: Likewise.
47051         * lib/unistr/u16-cmp.c: Likewise.
47052         * lib/unistr/u16-cpy-alloc.c: Likewise.
47053         * lib/unistr/u16-cpy.c: Likewise.
47054         * lib/unistr/u16-endswith.c: Likewise.
47055         * lib/unistr/u16-mblen.c: Likewise.
47056         * lib/unistr/u16-mbsnlen.c: Likewise.
47057         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47058         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47059         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47060         * lib/unistr/u16-mbtouc.c: Likewise.
47061         * lib/unistr/u16-mbtoucr.c: Likewise.
47062         * lib/unistr/u16-move.c: Likewise.
47063         * lib/unistr/u16-next.c: Likewise.
47064         * lib/unistr/u16-prev.c: Likewise.
47065         * lib/unistr/u16-set.c: Likewise.
47066         * lib/unistr/u16-startswith.c: Likewise.
47067         * lib/unistr/u16-stpcpy.c: Likewise.
47068         * lib/unistr/u16-stpncpy.c: Likewise.
47069         * lib/unistr/u16-strcat.c: Likewise.
47070         * lib/unistr/u16-strchr.c: Likewise.
47071         * lib/unistr/u16-strcmp.c: Likewise.
47072         * lib/unistr/u16-strcpy.c: Likewise.
47073         * lib/unistr/u16-strcspn.c: Likewise.
47074         * lib/unistr/u16-strdup.c: Likewise.
47075         * lib/unistr/u16-strlen.c: Likewise.
47076         * lib/unistr/u16-strmblen.c: Likewise.
47077         * lib/unistr/u16-strmbtouc.c: Likewise.
47078         * lib/unistr/u16-strncat.c: Likewise.
47079         * lib/unistr/u16-strncmp.c: Likewise.
47080         * lib/unistr/u16-strncpy.c: Likewise.
47081         * lib/unistr/u16-strnlen.c: Likewise.
47082         * lib/unistr/u16-strpbrk.c: Likewise.
47083         * lib/unistr/u16-strrchr.c: Likewise.
47084         * lib/unistr/u16-strspn.c: Likewise.
47085         * lib/unistr/u16-strstr.c: Likewise.
47086         * lib/unistr/u16-strtok.c: Likewise.
47087         * lib/unistr/u16-to-u32.c: Likewise.
47088         * lib/unistr/u16-to-u8.c: Likewise.
47089         * lib/unistr/u16-uctomb-aux.c: Likewise.
47090         * lib/unistr/u16-uctomb.c: Likewise.
47091         * lib/unistr/u32-check.c: Likewise.
47092         * lib/unistr/u32-chr.c: Likewise.
47093         * lib/unistr/u32-cmp.c: Likewise.
47094         * lib/unistr/u32-cpy-alloc.c: Likewise.
47095         * lib/unistr/u32-cpy.c: Likewise.
47096         * lib/unistr/u32-endswith.c: Likewise.
47097         * lib/unistr/u32-mblen.c: Likewise.
47098         * lib/unistr/u32-mbsnlen.c: Likewise.
47099         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47100         * lib/unistr/u32-mbtouc.c: Likewise.
47101         * lib/unistr/u32-mbtoucr.c: Likewise.
47102         * lib/unistr/u32-move.c: Likewise.
47103         * lib/unistr/u32-next.c: Likewise.
47104         * lib/unistr/u32-prev.c: Likewise.
47105         * lib/unistr/u32-set.c: Likewise.
47106         * lib/unistr/u32-startswith.c: Likewise.
47107         * lib/unistr/u32-stpcpy.c: Likewise.
47108         * lib/unistr/u32-stpncpy.c: Likewise.
47109         * lib/unistr/u32-strcat.c: Likewise.
47110         * lib/unistr/u32-strchr.c: Likewise.
47111         * lib/unistr/u32-strcmp.c: Likewise.
47112         * lib/unistr/u32-strcpy.c: Likewise.
47113         * lib/unistr/u32-strcspn.c: Likewise.
47114         * lib/unistr/u32-strdup.c: Likewise.
47115         * lib/unistr/u32-strlen.c: Likewise.
47116         * lib/unistr/u32-strmblen.c: Likewise.
47117         * lib/unistr/u32-strmbtouc.c: Likewise.
47118         * lib/unistr/u32-strncat.c: Likewise.
47119         * lib/unistr/u32-strncmp.c: Likewise.
47120         * lib/unistr/u32-strncpy.c: Likewise.
47121         * lib/unistr/u32-strnlen.c: Likewise.
47122         * lib/unistr/u32-strpbrk.c: Likewise.
47123         * lib/unistr/u32-strrchr.c: Likewise.
47124         * lib/unistr/u32-strspn.c: Likewise.
47125         * lib/unistr/u32-strstr.c: Likewise.
47126         * lib/unistr/u32-strtok.c: Likewise.
47127         * lib/unistr/u32-to-u16.c: Likewise.
47128         * lib/unistr/u32-to-u8.c: Likewise.
47129         * lib/unistr/u32-uctomb.c: Likewise.
47130         * lib/unistr/u8-check.c: Likewise.
47131         * lib/unistr/u8-chr.c: Likewise.
47132         * lib/unistr/u8-cmp.c: Likewise.
47133         * lib/unistr/u8-cpy-alloc.c: Likewise.
47134         * lib/unistr/u8-cpy.c: Likewise.
47135         * lib/unistr/u8-endswith.c: Likewise.
47136         * lib/unistr/u8-mblen.c: Likewise.
47137         * lib/unistr/u8-mbsnlen.c: Likewise.
47138         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47139         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47140         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47141         * lib/unistr/u8-mbtouc.c: Likewise.
47142         * lib/unistr/u8-mbtoucr.c: Likewise.
47143         * lib/unistr/u8-move.c: Likewise.
47144         * lib/unistr/u8-next.c: Likewise.
47145         * lib/unistr/u8-prev.c: Likewise.
47146         * lib/unistr/u8-set.c: Likewise.
47147         * lib/unistr/u8-startswith.c: Likewise.
47148         * lib/unistr/u8-stpcpy.c: Likewise.
47149         * lib/unistr/u8-stpncpy.c: Likewise.
47150         * lib/unistr/u8-strcat.c: Likewise.
47151         * lib/unistr/u8-strchr.c: Likewise.
47152         * lib/unistr/u8-strcmp.c: Likewise.
47153         * lib/unistr/u8-strcpy.c: Likewise.
47154         * lib/unistr/u8-strcspn.c: Likewise.
47155         * lib/unistr/u8-strdup.c: Likewise.
47156         * lib/unistr/u8-strlen.c: Likewise.
47157         * lib/unistr/u8-strmblen.c: Likewise.
47158         * lib/unistr/u8-strmbtouc.c: Likewise.
47159         * lib/unistr/u8-strncat.c: Likewise.
47160         * lib/unistr/u8-strncmp.c: Likewise.
47161         * lib/unistr/u8-strncpy.c: Likewise.
47162         * lib/unistr/u8-strnlen.c: Likewise.
47163         * lib/unistr/u8-strpbrk.c: Likewise.
47164         * lib/unistr/u8-strrchr.c: Likewise.
47165         * lib/unistr/u8-strspn.c: Likewise.
47166         * lib/unistr/u8-strstr.c: Likewise.
47167         * lib/unistr/u8-strtok.c: Likewise.
47168         * lib/unistr/u8-to-u16.c: Likewise.
47169         * lib/unistr/u8-to-u32.c: Likewise.
47170         * lib/unistr/u8-uctomb-aux.c: Likewise.
47171         * lib/unistr/u8-uctomb.c: Likewise.
47172         * lib/unitypes.h: Likewise.
47173         * lib/uniwidth.h: Likewise.
47174         * lib/uniwidth/cjk.h: Likewise.
47175         * lib/uniwidth/u16-strwidth.c: Likewise.
47176         * lib/uniwidth/u16-width.c: Likewise.
47177         * lib/uniwidth/u32-strwidth.c: Likewise.
47178         * lib/uniwidth/u32-width.c: Likewise.
47179         * lib/uniwidth/u8-strwidth.c: Likewise.
47180         * lib/uniwidth/u8-width.c: Likewise.
47181         * lib/uniwidth/width.c: Likewise.
47182
47183 2007-10-07  Bruno Haible  <bruno@clisp.org>
47184
47185         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47186         The file is still under LGPL (see modules/inttypes).
47187
47188 2007-10-06  Bruno Haible  <bruno@clisp.org>
47189
47190         * modules/trunc (Dependencies): Add 'extensions'.
47191         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47192         Reported by Ben Pfaff <blp@gnu.org>.
47193
47194 2007-10-06  Bruno Haible  <bruno@clisp.org>
47195
47196         * modules/freopen-tests: New file.
47197         * tests/test-freopen.c: New file.
47198
47199         * modules/fopen-tests: New file.
47200         * tests/test-fopen.c: New file.
47201
47202         * modules/fopen: New file.
47203         * lib/fopen.c: New file.
47204         * m4/fopen.m4: New file.
47205         * modules/freopen: New file.
47206         * lib/freopen.c: New file.
47207         * m4/freopen.m4: New file.
47208         * lib/stdio.in.h (fopen, freopen): New declarations.
47209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47210         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47211         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47212         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47213         * doc/functions/fopen.texi: Mention the 'fopen' module.
47214         * doc/functions/freopen.texi: Mention the 'freopen' module.
47215
47216 2007-10-06  Bruno Haible  <bruno@clisp.org>
47217
47218         * modules/open-tests: New file.
47219         * tests/test-open.c: New file.
47220
47221         * modules/open: New file.
47222         * lib/open.c: New file.
47223         * m4/open.m4: New file.
47224         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47225         lib/open.c does.
47226         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47227         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47228         macros.
47229         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47230         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47231         REPLACE_OPEN.
47232         * doc/functions/open.texi: Mention the 'open' module.
47233
47234 2007-10-04  Bruno Haible  <bruno@clisp.org>
47235
47236         * modules/ceill-tests: New file.
47237         * tests/test-ceill.c: New file.
47238
47239         * modules/ceill: New file.
47240         * lib/ceill.c: Replace entire file.
47241         * m4/ceill.m4: New file.
47242         * lib/math.in.h (ceill): Replace declaration.
47243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47244         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47245         * doc/functions/ceill.texi: Mention the 'ceill' module.
47246         * modules/mathl (Files): Remove lib/ceill.c.
47247         (Depends-on): Add ceill.
47248
47249 2007-10-04  Bruno Haible  <bruno@clisp.org>
47250
47251         * modules/ceilf-tests: New file.
47252         * tests/test-ceilf.c: New file.
47253
47254         * modules/ceilf: New file.
47255         * lib/ceil.c: New file.
47256         * lib/ceilf.c: New file.
47257         * m4/ceilf.m4: New file.
47258         * lib/math.in.h (ceilf): New declaration.
47259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47260         HAVE_DECL_CEILF.
47261         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47262         HAVE_DECL_CEILF.
47263         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47264
47265 2007-10-04  Bruno Haible  <bruno@clisp.org>
47266
47267         * modules/floorl-tests: New file.
47268         * tests/test-floorl.c: New file.
47269
47270         * modules/floorl: New file.
47271         * lib/floorl.c: Replace entire file.
47272         * m4/floorl.m4: New file.
47273         * lib/math.in.h (floorl): Replace declaration.
47274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47275         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47276         * doc/functions/floorl.texi: Mention the 'floorl' module.
47277         * modules/mathl (Files): Remove lib/floorl.c.
47278         (Depends-on): Add floorl.
47279
47280 2007-10-04  Bruno Haible  <bruno@clisp.org>
47281
47282         * modules/floorf-tests: New file.
47283         * tests/test-floorf.c: New file.
47284
47285         * modules/floorf: New file.
47286         * lib/floor.c: New file.
47287         * lib/floorf.c: New file.
47288         * m4/floorf.m4: New file.
47289         * lib/math.in.h (floorf): New declaration.
47290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47291         HAVE_DECL_FLOORF.
47292         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47293         HAVE_DECL_FLOORF.
47294         * doc/functions/floorf.texi: Mention the 'floorf' module.
47295
47296 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47297             Bruno Haible  <bruno@clisp.org>
47298
47299         Advertise for the Git server instead of the CVS server.
47300         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47301         repository instead of the CVS one.
47302         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47303         about all VCS systems generically.
47304         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47305
47306 2007-10-04  Bruno Haible  <bruno@clisp.org>
47307
47308         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47309         means.
47310         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47311
47312 2007-10-04  Bruno Haible  <bruno@clisp.org>
47313
47314         * modules/truncl-tests: New file.
47315         * tests/test-truncl.c: New file.
47316
47317         * modules/truncl: New file.
47318         * lib/truncl.c: New file.
47319         * m4/truncl.m4: New file.
47320         * lib/math.in.h (truncl): New declaration.
47321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47322         HAVE_DECL_TRUNCL.
47323         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47324         HAVE_DECL_TRUNCL.
47325         * doc/functions/truncl.texi: Mention the 'truncl' module.
47326
47327 2007-10-04  Bruno Haible  <bruno@clisp.org>
47328
47329         * modules/truncf-tests: New file.
47330         * tests/test-truncf.c: New file.
47331
47332         * modules/truncf: New file.
47333         * lib/trunc.c: Make paramerizable through USE_* macros.
47334         * lib/truncf.c: New file.
47335         * m4/truncf.m4: New file.
47336         * lib/math.in.h (truncf): New declaration.
47337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47338         HAVE_DECL_TRUNCF.
47339         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47340         HAVE_DECL_TRUNCF.
47341         * doc/functions/truncf.texi: Mention the 'truncf' module.
47342
47343 2007-10-03  Bruno Haible  <bruno@clisp.org>
47344
47345         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47346         augmentation also for tests modules.
47347         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47348         * modules/atexit-tests (Makefile.am): Likewise.
47349         * modules/binary-io-tests (Makefile.am): Likewise.
47350         * modules/c-strcase-tests (Makefile.am): Likewise.
47351         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47352         * modules/canonicalize-tests (Makefile.am): Likewise.
47353         * modules/closein-tests (Makefile.am): Likewise.
47354         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47355         * modules/freadahead-tests (Makefile.am): Likewise.
47356         * modules/fseek-tests (Makefile.am): Likewise.
47357         * modules/fseeko-tests (Makefile.am): Likewise.
47358         * modules/ftell-tests (Makefile.am): Likewise.
47359         * modules/ftello-tests (Makefile.am): Likewise.
47360         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47361         * modules/isnanl-tests (Makefile.am): Likewise.
47362         * modules/lseek-tests (Makefile.am): Likewise.
47363         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47364         * modules/mbscasestr-tests (Makefile.am): Likewise.
47365         * modules/mbschr-tests (Makefile.am): Likewise.
47366         * modules/mbscspn-tests (Makefile.am): Likewise.
47367         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47368         * modules/mbspbrk-tests (Makefile.am): Likewise.
47369         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47370         * modules/mbsrchr-tests (Makefile.am): Likewise.
47371         * modules/mbsspn-tests (Makefile.am): Likewise.
47372         * modules/mbsstr-tests (Makefile.am): Likewise.
47373         * modules/printf-posix-tests (Makefile.am): Likewise.
47374         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47375         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47376         * modules/tsearch-tests (Makefile.am): Likewise.
47377         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47378         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47379         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47380         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47381         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47382         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47383         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47384         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47385         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47386         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47387         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47388         * modules/xstrtol-tests (Makefile.am): Likewise.
47389         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47390         * modules/yesno-tests (Makefile.am): Likewise.
47391
47392 2007-10-03  Bruno Haible  <bruno@clisp.org>
47393
47394         * modules/trunc-tests: New file.
47395         * tests/test-trunc.c: New file.
47396
47397         * modules/trunc: New file.
47398         * lib/trunc.c: New file.
47399         * m4/trunc.m4: New file.
47400         * lib/math.in.h (trunc): New declaration.
47401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47402         HAVE_DECL_TRUNC.
47403         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47404         HAVE_DECL_TRUNC.
47405         * doc/functions/trunc.texi: Mention the 'trunc' module.
47406
47407 2007-10-03  Bruno Haible  <bruno@clisp.org>
47408
47409         * tests/test-fpending.c: New file, mostly copied
47410         from coreutils/lib/t-fpending.c.
47411         * modules/fpending-tests: New file.
47412
47413 2007-10-03  Bruno Haible  <bruno@clisp.org>
47414
47415         Port the stdio extensions to QNX (untested).
47416         * lib/fseterr.c (fseterr): Add support for QNX.
47417         * lib/fbufmode.c (fbufmode): Likewise.
47418         * lib/freadable.c (freadable): Likewise.
47419         * lib/fwritable.c (fwritable): Likewise.
47420         * lib/freading.c (freading): Likewise.
47421         * lib/fwriting.c (fwriting): Likewise.
47422         * lib/freadahead.c (freadahed): Likewise.
47423         * lib/fpurge.c (fpurge): Likewise.
47424         * lib/fseeko.c (rpl_fseeko): Likewise.
47425
47426 2007-10-03  Bruno Haible  <bruno@clisp.org>
47427             Jim Meyering  <jim@meyering.net>
47428             Eric Blake  <ebb9@byu.net>
47429
47430         * doc/relocatable.texi: Use @command instead of @program.
47431
47432 2007-10-02  Jim Meyering  <jim@meyering.net>
47433
47434         Perform one more "_.h" -> ".in.h" substitution.
47435         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47436         instead of unistd_.h here, too.
47437
47438 2007-10-01  Bruno Haible  <bruno@clisp.org>
47439
47440         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47441         Needed for the alloca-opt module.
47442
47443 2007-09-30  Bruno Haible  <bruno@clisp.org>
47444
47445         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47446         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47447         alloca_.h.
47448         * lib/argz.in.h: Renamed from lib/argz_.h.
47449         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47450         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47451         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47452         byteswap_.h.
47453         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47454         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47455         dirent_.h.
47456         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47457         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47458         fcntl_.h.
47459         * lib/float.in.h: Renamed from lib/float_.h.
47460         * modules/float (Files, Makefile.am): Use float.in.h instead of
47461         float_.h.
47462         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
47463         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
47464         fnmatch_.h.
47465         * lib/getopt.in.h: Renamed from lib/getopt_.h.
47466         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
47467         getopt_.h.
47468         * lib/glob.in.h: Renamed from lib/glob_.h.
47469         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
47470         * lib/iconv.in.h: Renamed from lib/iconv_.h.
47471         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
47472         iconv_.h.
47473         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
47474         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
47475         inttypes_.h.
47476         * lib/locale.in.h: Renamed from lib/locale_.h.
47477         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
47478         locale_.h.
47479         * lib/math.in.h: Renamed from lib/math_.h.
47480         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
47481         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
47482         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
47483         of netinet_in_.h. Add dependency.
47484         * lib/poll.in.h: Renamed from lib/poll_.h.
47485         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
47486         * lib/search.in.h: Renamed from lib/search_.h.
47487         * modules/search (Files, Makefile.am): Use search.in.h instead of
47488         search_.h.
47489         * lib/signal.in.h: Renamed from lib/signal_.h.
47490         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
47491         _signal.h.
47492         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
47493         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
47494         stdbool_.h.
47495         * lib/stdint.in.h: Renamed from lib/stdint_.h.
47496         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
47497         stdint_.h.
47498         * lib/stdio.in.h: Renamed from lib/stdio_.h.
47499         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
47500         stdio_.h.
47501         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
47502         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
47503         stdlib_.h.
47504         * lib/string.in.h: Renamed from lib/string_.h.
47505         * modules/string (Files, Makefile.am): Use string.in.h instead of
47506         string_.h.
47507         * doc/gnulib-tool.texi (Initial import): Update.
47508         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
47509         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
47510         of sys_select_.h. Add dependency.
47511         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
47512         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
47513         of sys_socket_.h.
47514         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
47515         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
47516         sys_stat_.h.
47517         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
47518         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
47519         sys_time_.h.
47520         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47521         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
47522         sysexits_.h.
47523         * lib/time.in.h: Renamed from lib/time_.h.
47524         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
47525         * lib/unistd.in.h: Renamed from lib/unistd_.h.
47526         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
47527         unistd_.h.
47528         * lib/wchar.in.h: Renamed from lib/wchar_.h.
47529         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
47530         wchar_.h.
47531         * lib/wctype.in.h: Renamed from lib/wctype_.h.
47532         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
47533         wctype_.h.
47534         * build-aux/bootstrap (slurp): Update.
47535         * lib/.cppi-disable: Update.
47536
47537 2007-09-30  Bruno Haible  <bruno@clisp.org>
47538
47539         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
47540         Needed on BeOS.
47541
47542 2007-09-30  Bruno Haible  <bruno@clisp.org>
47543
47544         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
47545
47546 2007-09-29  Bruno Haible  <bruno@clisp.org>
47547
47548         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
47549
47550 2007-09-29  Bruno Haible  <bruno@clisp.org>
47551
47552         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
47553         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
47554         * build-aux/install-reloc: Compile also areadlink.c.
47555         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
47556
47557 2007-09-29  Bruno Haible  <bruno@clisp.org>
47558
47559         * gnulib-tool (func_emit_initmacro_done): Indentation.
47560
47561 2007-09-29  Bruno Haible  <bruno@clisp.org>
47562
47563         * README: Add CVS checkout update instructions.
47564         Info from Bob Proulx <bob@proulx.com>.
47565
47566 2007-09-28  Eric Blake  <ebb9@byu.net>
47567
47568         Provide move-if-change.
47569         * build-aux/move-if-change: New file, based on best practice
47570         rather than any canonical upstream location.
47571
47572 2007-09-28  Jim Meyering  <jim@meyering.net>
47573
47574         Fix canonicalize loop-detection corner case.
47575         Do not attempt to stat the symlink values stored via seen_triple.
47576         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
47577         on linux-2.6.18, (but not 2.6.22).
47578         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
47579         triple_compare.  The former compares dev,ino,filename, while the latter
47580         would actually stat dirname(filename) when dev and ino were equal.
47581         * lib/hash-triple.c: Install <string.h>.
47582         (STREQ): Define.
47583         (triple_compare_ino_str): New function.
47584         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
47585
47586 2007-09-28  Eric Blake  <ebb9@byu.net>
47587
47588         Enforce that AC_REPLACE_FUNCS files exist.
47589         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
47590         override check for typos.
47591
47592         Fix test-closein on Solaris 10.
47593         * tests/test-closein.c (main): Don't assume stdin can be inherited
47594         closed on all systems.
47595         * tests/test-closein.sh: Likewise.
47596         Reported by Piotr Tarnowski.
47597
47598 2007-09-28  Jim Meyering  <jim@meyering.net>
47599
47600         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
47601
47602 2007-09-27  Jim Meyering  <jim@meyering.net>
47603
47604         canonicalize: Avoid a false-positive cycle failure.
47605         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
47606         Sort.  Remove cycle-check.
47607         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
47608         not cycle-check.h.
47609         (seen_triple): New function.
47610         (canonicalize_filename_mode): Use it instead of cycle-check.
47611         * tests/test-canonicalize.c: Add a test for this bug.
47612         * tests/test-canonicalize.sh: Set up and run the test.
47613
47614         New module, file-set, from coreutils.
47615         * modules/file-set: Define it.
47616         * lib/file-set.c, lib/file-set.h: Implement.
47617
47618         New module, hash-triple, from coreutils.
47619         * modules/hash-triple: Define it.
47620         * lib/hash-triple.c, lib/hash-triple.h: Implement.
47621
47622 2007-09-25  Eric Blake  <ebb9@byu.net>
47623
47624         Fix strerror on Interix.
47625         * lib/string_.h (strerror): Declare replacement.
47626         * doc/functions/strerror.texi (strerror): Document the Interix
47627         shortcoming.
47628         * modules/string (Makefile.am): Support new hooks.
47629         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
47630         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
47631         gl_FUNC_STRERROR_SEPARATE.
47632         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47633         * lib/strerror.c (rpl_strerror): Provide replacement.
47634         * modules/strerror (Depends-on): Add string.
47635         (configure.ac): Detect use of module.
47636         * tests/test-strerror.c: New file.
47637         * modules/strerror-tests: New test module.
47638         * modules/argp (Depends-on): Add strerror.
47639         * modules/error (Depends-on): Likewise.
47640         Reported by Martin Koeppe.
47641
47642 2007-09-24  Bruno Haible  <bruno@clisp.org>
47643
47644         * README: Update git instructions.
47645
47646 2007-09-24  Eric Blake  <ebb9@byu.net>
47647
47648         Revert fpending breakage from 2007-09-08.
47649         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47650         __fpending.c.
47651
47652 2007-09-24  Jim Meyering  <jim@meyering.net>
47653
47654         filenamecat.c: Add a test.
47655         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47656         showing how the function works when DIR is the empty string.
47657
47658 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47659
47660         * tests/test-canonicalize.sh: Turn on executable bit.
47661
47662 2007-09-19  Eric Blake  <ebb9@byu.net>
47663
47664         * README: Update CVS instructions.
47665
47666 2007-09-18  Bruno Haible  <bruno@clisp.org>
47667
47668         * modules/areadlink: New file.
47669         * lib/areadlink.h (areadlink): New declaration.
47670         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47671
47672 2007-09-17  Jim Meyering  <jim@meyering.net>
47673
47674         * lib/savewd.c (ESTALE) [!defined]: Define.
47675         Reported to be required on Interix by Martin Koeppe.
47676
47677 2007-09-17  Bruno Haible  <bruno@clisp.org>
47678
47679         * gnulib-tool (func_version): Use $version.
47680
47681 2007-09-16  Bruno Haible  <bruno@clisp.org>
47682
47683         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47684         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47685         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47686         Reported by Greg Schafer <gschafer@zip.com.au>.
47687
47688 2007-09-15  Bruno Haible  <bruno@clisp.org>
47689
47690         * gnulib-tool (sed): Try a little harder to make bash understand the
47691         alias.
47692         Reported by Bruce Korb <bruce.korb@gmail.com>.
47693
47694 2007-09-13  Eric Blake  <ebb9@byu.net>
47695
47696         * ChangeLog: Remove conflict markers.
47697
47698 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47699
47700         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47701         Reported by Bruno Haible <bruno@clisp.org>.
47702
47703 2007-09-12  Bruno Haible  <bruno@clisp.org>
47704
47705         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47706         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47707         is not defined.
47708
47709 2007-09-12  Eric Blake  <ebb9@byu.net>
47710
47711         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47712         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47713         Autoconf definition.
47714         * modules/euidaccess (Depends-on): Add extensions, for
47715         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47716         * modules/fnmatch (Depends-on): Likewise.
47717         * modules/getaddrinfo (Depends-on): Likewise.
47718         * modules/getdelim (Depends-on): Likewise.
47719         * modules/getline (Depends-on): Likewise.
47720         * modules/getsubopt (Depends-on): Likewise.
47721         * modules/gettext (Depends-on): Likewise.
47722         * modules/group-member (Depends-on): Likewise.
47723         * modules/mbchar (Depends-on): Likewise.
47724         * modules/memmem (Depends-on): Likewise.
47725         * modules/mempcpy (Depends-on): Likewise.
47726         * modules/memrchr (Depends-on): Likewise.
47727         * modules/pagealign_alloc (Depends-on): Likewise.
47728         * modules/readutmp (Depends-on): Likewise.
47729         * modules/stpcpy (Depends-on): Likewise.
47730         * modules/stpncpy (Depends-on): Likewise.
47731         * modules/strchrnul (Depends-on): Likewise.
47732         * modules/strndup (Depends-on): Likewise.
47733         * modules/strsep (Depends-on): Likewise.
47734         * modules/strverscmp (Depends-on): Likewise.
47735         * modules/vasprintf (Depends-on): Likewise.
47736         * modules/wcwidth (Depends-on): Likewise.
47737         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
47738         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
47739         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
47740         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
47741         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47742         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47743         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
47744         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47745         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
47746         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
47747         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47748         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47749         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47750         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47751         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
47752         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47753         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47754         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47755         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47756         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47757         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47758         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47759         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47760         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
47761         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
47762         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47763         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
47764         so that lock.m4 can be used in gettext without extensions module.
47765
47766 2007-09-11  Bruno Haible  <bruno@clisp.org>
47767
47768         * m4/isc-posix.m4: Remove file.
47769         Suggested by Eric Blake.
47770
47771 2007-09-11  Eric Blake  <ebb9@byu.net>
47772
47773         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
47774
47775 2007-09-10  Bruno Haible  <bruno@clisp.org>
47776
47777         * posix-modules: Fix typo in error message.
47778         Reported by Matt <mkraai@beckman.com>.
47779
47780 2007-09-09  Bruno Haible  <bruno@clisp.org>
47781
47782         * doc/functions/getdelim.texi: Update list of platforms lacking the
47783         function.
47784         * doc/functions/getline.texi: Likewise.
47785
47786 2007-09-09  Jim Meyering  <jim@meyering.net>
47787
47788         * lib/hash.c (hash_initialize): Detect calloc failure.
47789         Reported by Bruno Haible.
47790
47791 2007-09-09  Bruno Haible  <bruno@clisp.org>
47792
47793         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
47794         malloc or realloc fails.
47795
47796 2007-09-09  Bruno Haible  <bruno@clisp.org>
47797
47798         * modules/getcwd (Depends-on): Add malloc-posix.
47799         * modules/glob (Depends-on): Likewise.
47800         * modules/putenv (Depends-on): Likewise.
47801         * modules/strdup (Depends-on): Likewise.
47802         * modules/getdelim (Depends-on): Add realloc-posix.
47803         * modules/read-file (Depends-on): Likewise.
47804
47805 2007-09-09  Bruno Haible  <bruno@clisp.org>
47806
47807         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
47808         (gl_FUNC_MALLOC_POSIX): Require it.
47809         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
47810         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
47811         * modules/realloc (Files): Add m4/malloc.m4.
47812         * modules/calloc (Files): Likewise.
47813
47814 2007-09-09  Bruno Haible  <bruno@clisp.org>
47815
47816         * modules/malloc-posix: New file.
47817         * modules/malloc (Depends-on): Add malloc-posix.
47818         * lib/malloc.c: Include errno.h.
47819         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
47820         and a POSIX-compatible malloc into a single function. Set ENOMEM
47821         when returning NULL.
47822         * m4/malloc.m4: New file.
47823         * doc/functions/malloc.texi: Mention the malloc-posix module.
47824         * lib/stdlib_.h (malloc): New declaration.
47825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47826         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
47827         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
47828         and HAVE_MALLOC_POSIX.
47829
47830 2007-09-09  Bruno Haible  <bruno@clisp.org>
47831
47832         * modules/realloc-posix: New file.
47833         * modules/realloc (Depends-on): Add realloc-posix.
47834         * lib/realloc.c: Include errno.h.
47835         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
47836         and a POSIX-compatible realloc into a single function. Set ENOMEM
47837         when returning NULL.
47838         * m4/realloc.m4: New file.
47839         * doc/functions/realloc.texi: Mention the realloc-posix module.
47840         * lib/stdlib_.h (realloc): New declaration.
47841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47842         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
47843         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
47844         and HAVE_REALLOC_POSIX.
47845
47846 2007-09-09  Bruno Haible  <bruno@clisp.org>
47847
47848         * modules/calloc-posix: New file.
47849         * modules/calloc (Depends-on): Add calloc-posix.
47850         * lib/calloc.c: Include errno.h.
47851         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
47852         and a POSIX-compatible calloc into a single function. Set ENOMEM
47853         when returning NULL.
47854         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
47855         * doc/functions/calloc.texi: Mention the calloc-posix module.
47856         * lib/stdlib_.h (calloc): New declaration.
47857         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47858         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
47859         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
47860         and HAVE_CALLOC_POSIX.
47861
47862 2007-09-09  Bruno Haible  <bruno@clisp.org>
47863
47864         Allow for modules to show an arbitrary notice.
47865         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
47866         * gnulib-tool: New option --extract-notice.
47867         (func_usage): Document it.
47868         (sed_extract_prog): Update.
47869         (func_get_notice): New function.
47870         (func_modules_notice): New function.
47871         (func_import, func_create_testdir): Invoke it.
47872         Suggested by Jim Meyering.
47873
47874 2007-09-09  Bruno Haible  <bruno@clisp.org>
47875
47876         * gnulib-tool: New options --verbose, --quiet.
47877         (func_usage): Document them.
47878         (verbose): New variable.
47879         (func_execute_command): New function.
47880         (func_import): Don't show the module list and the file list if
47881         $verbose < 0.
47882         (func_create_testdir): Likewise. Use func_execute_command.
47883         (func_create_megatestdir): Use func_execute_command.
47884
47885 2007-09-08  Bruno Haible  <bruno@clisp.org>
47886
47887         * gnulib-tool (func_import): Prefer rsync over wget when available,
47888         for fetching the PO files.
47889
47890 2007-09-08  Bruno Haible  <bruno@clisp.org>
47891
47892         * posix-modules: New file. Portions copied from gnulib-tool.
47893         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
47894
47895 2007-09-08  Jim Meyering  <jim@meyering.net>
47896
47897         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
47898         * lib/fpending.h: Rename from __fpending.h.
47899         * lib/fpending.c: Rename from __fpending.c.
47900         Include "fpending.h", not "__fpending.h".
47901         * lib/__fpending.h, lib/__fpending.c: Remove files.
47902         * modules/fpending (Files): Reflect new file names.
47903         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
47904
47905 2007-09-08  Bruno Haible  <bruno@clisp.org>
47906
47907         * m4/inttypes-h.m4: Remove stub file.
47908
47909 2007-09-07  Simon Josefsson  <simon@josefsson.org>
47910
47911         * doc/headers/stdint.texi: Discuss #include_next issue.
47912
47913 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47914
47915         * build-aux/bootstrap: Remove obsolete comment about wget --help.
47916
47917 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47918
47919         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
47920         in variable name.
47921
47922 2007-09-03  Jim Meyering  <jim@meyering.net>
47923
47924         New module: git-version-gen.
47925         * modules/git-version-gen: New file.
47926
47927         Import changes from coreutils for bootstrap script.
47928
47929         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
47930
47931         bootstrap: uses rsync to download the .po files
47932         * build-aux/bootstrap (po_download_command_format): New global.
47933         (download_po_files): Use rsync.
47934         (update_po_files): Don't remove .po files after download,
47935         so future rsync runs can take advantage of the copies.
47936
47937         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
47938
47939         Solve the unnecessary-.po-file-regeneration problem once and for all.
47940         * build-aux/bootstrap (download_po_files): New function, renamed from
47941         get_translations.  Now, downloads, but doesn't update LINGUAS.
47942         (update_po_files): New function.
47943
47944         bootstrap: Ignore more.
47945         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
47946         uniwidth to e.g., lib/.gitignore.
47947         (slurp): Handle the sys_stat_.h -> sys mapping, too.
47948
47949         * build-aux/bootstrap: New setting: vc_ignore.
47950         (insert_sorted_if_absent): Create $file if absent.
47951         Adapt to new, possibly empty, list: $vc_ignore.
47952
47953         bootstrap: generate more ignorable names
47954         * build-aux/bootstrap (slurp): When generating ignorable names,
47955         also map .sin to .sed, .gperf to .c, and .y to .c.
47956
47957 2007-09-03  Jim Meyering  <jim@meyering.net>
47958
47959         * build-aux/git-version-gen: New file, from coreutils.  For details, see
47960         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
47961
47962 2007-09-02  Bruno Haible  <bruno@clisp.org>
47963
47964         Fix mis-recognition of 'mcs' on QNX 6.
47965         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
47966         output contains the string "Mono".
47967         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
47968         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
47969
47970 2007-09-01  Bruno Haible  <bruno@clisp.org>
47971
47972         Fix collision between uniwidth/* and linebreak modules.
47973         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
47974         u32_width): Remove declarations.
47975         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
47976         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
47977         streq3, streq2, streq1, streq0): Remove functions.
47978         (STREQ): Remove macro.
47979         (is_cjk_encoding): Remove function.
47980         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
47981         (uc_width, u8_width, u16_width, u32_width): Remove functions.
47982         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47983         * NEWS: Document the change.
47984
47985 2007-09-01  Bruno Haible  <bruno@clisp.org>
47986
47987         * lib/streq.h: Add double-inclusion guard.
47988
47989 2007-09-01  Karl Berry  <karl@gnu.org>
47990
47991         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47992
47993 2007-08-28  Jim Meyering  <jim@meyering.net>
47994
47995         Rename mreadlink_with_size to areadlink_with_size.
47996         * NEWS: Document the change.
47997         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47998         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47999         * lib/mreadlink.h: Rename this to...
48000         * lib/areadlink.h: ...this.
48001         * modules/mreadlink-with-size: Rename this to...
48002         * modules/areadlink-with-size: ...this.
48003         * lib/canonicalize.c: Reflect the renaming.
48004         * modules/canonicalize: Likewise.
48005
48006 2007-08-26  Bruno Haible  <bruno@clisp.org>
48007
48008         * gnulib-tool (func_import): When deciding which files to remove,
48009         consider also dangling symbolic links.
48010         Reported by Eric Blake.
48011
48012 2007-08-26  Bruno Haible  <bruno@clisp.org>
48013
48014         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48015
48016 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48017
48018         * lib/readline.c: Don't include getline.h, the prototype is now
48019         found in stdio.h.
48020
48021 2007-08-23  Jim Meyering  <jim@meyering.net>
48022
48023         Getdelim touchup.
48024         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48025         around the funlockfile call, since funlockfile never sets errno.
48026         Don't set errno upon failed realloc.
48027
48028 2007-08-22  Eric Blake  <ebb9@byu.net>
48029
48030         Getline touchups.
48031         * lib/getdelim.c (getdelim): Revert regression that required *n to
48032         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48033         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48034         getdelim, rather than whether implementation is missing.
48035         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48036         * lib/stdio_.h (getline): Also declare if replacement is
48037         required.
48038         * doc/functions/getdelim.texi: New file.
48039         * doc/functions/getline.texi: Likewise.
48040         * doc/gnulib.texi (Function Substitutes): Add new files.
48041         Reported by Bruno Haible.
48042
48043 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48044
48045         * users.txt: Add Guile.
48046
48047 2007-08-22  Eric Blake  <ebb9@byu.net>
48048
48049         * tests/test-getdelim.c (main): Use remove, not unlink.
48050         * tests/test-getline.c (main): Likewise.
48051
48052         Move getline and getdelim into stdio.h, per POSIX 200x.
48053         * modules/getline (Files): Remove getline.h.
48054         (Depends-on): Add stdio.
48055         (configure.ac): Add module indicator.
48056         * modules/getdelim (Files): Remove getdelim.h.
48057         (Depends-on): Add stdio.
48058         (configure.ac): Add module indicator.
48059         * modules/stdio (Makefile.am): Work with new indicators.
48060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48061         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48062         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48063         * lib/getdelim.h: Delete.
48064         * lib/getline.h: Delete.
48065         * lib/stdio_.h (getdelim, getline): Declare.
48066         * modules/getdelim-tests: New module.
48067         * modules/getline-tests: Likewise.
48068         * tests/test-getdelim.c: New file.
48069         * tests/test-getline.c: Likewise.
48070         * NEWS: Document the change.
48071         * lib/getline.c: Update choice of header.
48072         * lib/csharpcomp.c: Likewise.
48073         * lib/getpass.c: Likewise.
48074         * lib/javacomp.c: Likewise.
48075         * lib/javaversion.c: Likewise.
48076         * lib/yesno.c: Likewise.
48077         * lib/getdelim.c: Likewise.
48078         (getdelim): Set errno on failure, and avoid memory leak.
48079
48080 2007-08-19  Bruno Haible  <bruno@clisp.org>
48081
48082         * modules/closein (Depends-on): Add freadahead.
48083         * lib/closein.c: Include freadahead.h.
48084         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48085         is zero.
48086
48087 2007-08-19  Bruno Haible  <bruno@clisp.org>
48088
48089         * modules/freadahead-tests: New file.
48090         * tests/test-freadahead.sh: New file.
48091         * tests/test-freadahead.c: New file.
48092
48093         * modules/freadahead: New file.
48094         * lib/freadahead.h: New file.
48095         * lib/freadahead.c: New file.
48096         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48097         fbufmode, fpurge, freadable, fwritable.
48098
48099 2007-08-19  Eric Blake  <ebb9@byu.net>
48100
48101         Test yesno in combination with closein.
48102         * lib/yesno.c (yesno): Document use of stdin.
48103         * modules/yesno-tests (Files): New module.
48104         * tests/test-yesno.c (main): New file.
48105         * tests/test-yesno.sh: Likewise.
48106
48107 2007-08-19  Bruno Haible  <bruno@clisp.org>
48108
48109         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48110         * lib/fseeko.c (rpl_fseeko): Likewise.
48111         * lib/fseterr.c (fseterr): Likewise.
48112
48113 2007-08-19  Bruno Haible  <bruno@clisp.org>
48114
48115         * tests/test-lseek.c (main): Disable a test for BeOS.
48116         * doc/functions/lseek.texi: Document the BeOS bug.
48117
48118 2007-08-19  Bruno Haible  <bruno@clisp.org>
48119             Eric Blake  <ebb9@byu.net>
48120
48121         * lib/lseek.c: Include <sys/stat.h>.
48122         (rpl_lseek): Add workaround code also for Unix platforms.
48123         Needed for BeOS.
48124         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48125         * doc/functions/lseek.texi: Document BeOS definiency.
48126
48127 2007-08-18  Bruno Haible  <bruno@clisp.org>
48128
48129         * modules/fstrcmp-tests: New file.
48130         * tests/test-fstrcmp.c: New file.
48131
48132 2007-08-18  Bruno Haible  <bruno@clisp.org>
48133
48134         * modules/fstrcmp: New file, from GNU gettext with modifications.
48135         * lib/fstrcmp.h: New file, from GNU gettext.
48136         * lib/fstrcmp.c: New file, from GNU gettext.
48137         * MODULES.html.sh (String handling): Add fstrcmp.
48138
48139 2007-08-18  Bruno Haible  <bruno@clisp.org>
48140
48141         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48142         'bool'.
48143         (diag, compareseq): Remove const from the ctxt argument.
48144         (USE_HEURISTIC): Undefine at the end.
48145
48146 2007-08-18  Jim Meyering  <jim@meyering.net>
48147
48148         New file: lib/idcache.h
48149         * NEWS: Mention the addition.
48150         * modules/idcache (Files): Add lib/idcache.h
48151         * lib/idcache.c: Include "idcache.h".
48152         Don't include <sys/types.h>.
48153         Add a FIXME comment.
48154         Move file-scoped "static" declarations to the top.
48155         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48156
48157 2007-08-17  Bruno Haible  <bruno@clisp.org>
48158         and Paul Eggert  <eggert@cs.ucla.edu>
48159
48160         * MODULES.html.sh: Add diffseq.
48161         * modules/diffseq: New file.
48162         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48163         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48164
48165 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48166
48167         Import changes from coreutils for bootstrap script.
48168
48169         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48170
48171         * build-aux/bootstrap (slurp): Work even in environments where
48172         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48173         current code does not slurp files whose names start with ".", and
48174         this looks like it might be a troublesome area.
48175
48176         2007-07-11  Jim Meyering  <jim@meyering.net>
48177
48178         If there's a GPL vN copyright comment, require that N == 3.
48179
48180         2007-07-08  Jim Meyering  <jim@meyering.net>
48181
48182         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48183         * build-aux/bootstrap (mam_template): Move definition out of loop.
48184
48185         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48186
48187         * build-aux/bootstrap (symlink_to_dir): Rename function from
48188         symlink_to_gnulib.  Add a directory parameter.  Update all
48189         callers.
48190         (cp_mark_as_generated): Also check for -- and link to -- files in
48191         gl/.
48192
48193         2007-07-08  Jim Meyering  <jim@meyering.net>
48194
48195         Adapt to deeper hierarchy in gnulib.
48196         * build-aux/bootstrap (symlink_to_dir): If the destination
48197         directory doesn't exist, create it. This is required at least for
48198         "lib/uniwidth/cjk.h".
48199
48200         2007-05-15  Jim Meyering  <jim@meyering.net>
48201
48202         * build-aux/bootstrap: Now that generated Makefile.am files
48203         are no longer under version control, they must be created at
48204         bootstrap time.
48205
48206 2007-08-14  Ben Pfaff  <blp@gnu.org>
48207
48208         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48209
48210 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48211
48212         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48213         given the changes below.
48214         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48215         even on hosts that have padding bits beyond the supported 64.
48216
48217 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48218
48219         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48220         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48221         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48222         depends on it.
48223         (xstrtol_error): Remove.
48224         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48225         but with a different signature.
48226         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48227         * lib/xstrtol-error.c: Include exitfail.h.
48228         (xstrtol_fatal): New function, with a different signature from the
48229         old xstrtol_error, so that the caller need not worry about passing
48230         in an exit status, or about storage management of the option argument.
48231         (xstrtol_error): Now a static function.  Redo signature to
48232         implement xstrtol_fatal.  Output the correct number of hyphens in
48233         front of the option so that the caller need not worry about
48234         storage management.
48235         (N_): New macro.
48236         (_): Remove; not used now.
48237         * modules/xstrtol: Depend on getopt.
48238         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48239         of old STRTOL_FATAL_ERROR macro.
48240         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48241         of test program.
48242         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48243         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48244
48245 2007-08-08  Eric Blake  <ebb9@byu.net>
48246
48247         * lib/xstrtol-error.c: Add missing include.
48248
48249         Move xstrtol messages into gnulib domain, when --pobase is used.
48250         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48251         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48252         * modules/xstrtol (Files): Distribute new file.
48253         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48254         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48255         * tests/test-xstrtol.c: ...into new file.
48256         * tests/test-xstrtoul.c: Also test xstrtoul.
48257         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48258         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48259         * tests/test-xstrtol.sh: Drive the tests.
48260         * tests/test-xstrtoimax.sh: Likewise.
48261         * tests/test-xstrtoumax.sh: Likewise.
48262         * modules/xstrtol-tests: New module.
48263         * modules/xstrtoimax-tests: Likewise.
48264         * modules/xstrtoumax-tests: Likewise.
48265
48266 2007-08-08  Jim Meyering  <jim@meyering.net>
48267
48268         New function: mfile_name_concat.
48269         * lib/filenamecat.c (mfile_name_concat): New function, just like
48270         file_name_concat, but return NULL upon failure rather than exiting
48271         with a diagnostic.
48272         * lib/filenamecat.h: Declare it.
48273
48274 2007-08-07  Bruno Haible  <bruno@clisp.org>
48275
48276         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48277         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48278         warning from gcc.
48279         Reported by Eric Blake.
48280
48281 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48282
48283         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48284         * modules/crypto/arcfour (License): Likewise.
48285         * modules/crypto/des-tests (License): Likewise.
48286         * modules/crypto/gc-arctwo-tests (License): Likewise.
48287         * modules/crypto/gc-des-tests (License): Likewise.
48288         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48289         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48290         * modules/crypto/gc-md2-tests (License): Likewise.
48291         * modules/crypto/gc-md4-tests (License): Likewise.
48292         * modules/crypto/gc-md5-tests (License): Likewise.
48293         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48294         * modules/crypto/gc-rijndael-tests (License): Likewise.
48295         * modules/crypto/gc-sha1-tests (License): Likewise.
48296         * modules/crypto/gc-tests (License): Likewise.
48297         * modules/crypto/hmac-md5 (License): Likewise.
48298         * modules/crypto/hmac-sha1 (License): Likewise.
48299         * modules/crypto/md2-tests (License): Likewise.
48300         * modules/crypto/md4-tests (License): Likewise.
48301         * modules/crypto/md5 (License): Likewise.
48302         * modules/crypto/rijndael (License): Likewise.
48303         * modules/crypto/sha1 (License): Likewise.
48304         * modules/memxor (License): Likewise.
48305
48306 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48307         and Bruno Haible  <bruno@clisp.org>
48308
48309         * NEWS: Describe interface changes to human, xstrtol.
48310         * lib/human.h: Include <xstrtol.h>.
48311         (human_options): Return enum strtol_error, not int.  Remove
48312         bool arg; take int * instead.
48313         * lib/human.c: Don't include "gettext.h".
48314         (_): Remove; no longer used.
48315         Don't include <xstrtol.h>, since human.h does it.
48316         (human_options): Adjust to abovementioned interface changes.
48317         Do not report error to stderr; that's now the caller's
48318         responsibility.
48319         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48320         interface change.
48321         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48322         Str, Argument_type_string.  All uses changed.  Put " argument"
48323         in diagnostics to make them clearer.  Change wording of suffix
48324         message for clarity.
48325         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48326         Argument_type_string.
48327         (STRTOL_FATAL_WARN): Remove; no longer used.
48328         * modules/human (Depends-on): Remove gettext-h.
48329
48330 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48331
48332         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48333
48334 2007-07-31  Bruno Haible  <bruno@clisp.org>
48335
48336         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48337         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48338         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48339
48340 2007-07-31  Bruno Haible  <bruno@clisp.org>
48341
48342         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48343         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48344
48345 2007-07-30  Bruno Haible  <bruno@clisp.org>
48346
48347         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48348         * modules/c-ctype (License): Likewise.
48349         * modules/c-strcase (License): Likewise.
48350         * modules/check-version (License): Likewise.
48351         * modules/iconv (License): Likewise.
48352         * modules/iconv_open (License): Likewise.
48353         * modules/read-file (License): Likewise.
48354         * modules/striconv (License): Likewise.
48355         * modules/strverscmp (License): Likewise.
48356         * modules/vasprintf (License): Likewise.
48357         * modules/crypto/des (License): Likewise.
48358         * modules/crypto/gc (License): Likewise.
48359         * modules/crypto/gc-arcfour (License): Likewise.
48360         * modules/crypto/gc-arctwo (License): Likewise.
48361         * modules/crypto/gc-des (License): Likewise.
48362         * modules/crypto/gc-hmac-md5 (License): Likewise.
48363         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48364         * modules/crypto/gc-md2 (License): Likewise.
48365         * modules/crypto/gc-md4 (License): Likewise.
48366         * modules/crypto/gc-md5 (License): Likewise.
48367         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48368         * modules/crypto/gc-random (License): Likewise.
48369         * modules/crypto/gc-rijndael (License): Likewise.
48370         * modules/crypto/gc-sha1 (License): Likewise.
48371         * modules/crypto/md2 (License): Likewise.
48372         * modules/crypto/md4 (License): Likewise.
48373
48374 2007-07-30  Jim Meyering  <jim@meyering.net>
48375
48376         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48377         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48378         it has valid stat data.  This bug would cause du not to count the
48379         sizes of inaccessible directories.
48380         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48381         in <http://bugzilla.redhat.com/250077>.
48382
48383 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48384             Bruno Haible  <bruno@clisp.org>
48385
48386         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48387         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48388         #include_next, gives a diagnostic about it, but reports no error in
48389         the exit code.
48390         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48391
48392 2007-07-24  Ben Pfaff  <blp@gnu.org>
48393
48394         Improve name: "count-one-bits" is better than "popcount".
48395         * MODULES.html.sh: Update name.
48396         * lib/popcount.h: Renamed lib/count-one-bits.h.
48397         (popcount): Renamed count_one_bits.
48398         (popcountl): Renamed count_one_bits_l.
48399         (popcountll): Renamed count_one_bits_ll.
48400         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48401         * modules/popcount: Renamed module/count-one-bits.
48402         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48403         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48404
48405 2007-07-23  Ben Pfaff  <blp@gnu.org>
48406
48407         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48408         better code generation, and add U to large constants to avoid
48409         warnings, in non-GCC case.
48410         Suggested by Bruno Haible.
48411
48412 2007-07-23  Ben Pfaff  <blp@gnu.org>
48413
48414         * lib/popcount.h: Use verify_true instead of if...abort.
48415         * modules/popcount: Depend on verify module.
48416         Suggested by Jim Meyering.
48417
48418 2007-07-23  Bruno Haible  <bruno@clisp.org>
48419
48420         * gnulib-tool (func_import): Create a .cvsignore file also when the
48421         directory is not yet in CVS but the toplevel directory is. When
48422         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48423         Reported by Karl Berry.
48424
48425 2007-07-22  Ben Pfaff  <blp@gnu.org>
48426
48427         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48428         case.
48429         Suggested by Eric Blake.
48430
48431 2007-07-22  Ben Pfaff  <blp@gnu.org>
48432
48433         New module: popcount.
48434         * MODULES.html.sh: Add popcount.
48435         * modules/popcount: New file.
48436         * modules/popcount-tests: New file.
48437         * tests/test-popcount.c: New file.
48438         * lib/popcount.h: New file.
48439         * m4/popcount.m4: New file.
48440
48441 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48442
48443         * build-aux/announce-gen: Update to GPLv3.
48444
48445         * build-aux/config.guess: Update from config.
48446
48447 2007-07-21  Bruno Haible  <bruno@clisp.org>
48448
48449         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48450         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48451
48452 2007-07-20  Jim Meyering  <jim@meyering.net>
48453
48454         * check-module: Diagnose a self-dependency.
48455
48456 2007-07-19  Bruno Haible  <bruno@clisp.org>
48457
48458         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48459         empty.
48460         Reported by Eric Blake.
48461
48462 2007-07-18  Bruno Haible  <bruno@clisp.org>
48463
48464         * gnulib-tool: New options --po-base, --po-domain.
48465         (func_usage): Document them.
48466         (pobase, po_domain): New variables.
48467         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
48468         DEFAULT_TEXT_DOMAIN.
48469         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
48470         (func_import): Consider pobase and po_domain. Create a po/ directory.
48471         (func_create_testdir): Set pobase and po_domain to empty.
48472         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
48473         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
48474
48475 2007-07-18  Bruno Haible  <bruno@clisp.org>
48476
48477         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48478         EXTRA_DIST augmentation for files in build-aux/.
48479
48480 2007-07-16  Bruno Haible  <bruno@clisp.org>
48481
48482         * modules/lseek (License): Use the synonymous term "LGPLv2+".
48483         * modules/getdelim (License): Likewise.
48484
48485 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48486
48487         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
48488         * modules/d-type (License): Likewise.
48489         * modules/extensions (License): Likewise.
48490         * modules/fnmatch (License): Likewise.
48491         * modules/fseeko (License): Likewise.
48492         * modules/getaddrinfo (License): Likewise.
48493         * modules/getline (License): Likewise.
48494         * modules/getlogin_r (License): Likewise.
48495         * modules/getpass (License): Likewise.
48496         * modules/gettimeofday (License): Likewise.
48497         * modules/glob (License): Likewise.
48498         * modules/inet_ntop (License): Likewise.
48499         * modules/malloc (License): Likewise.
48500         * modules/malloca (License): Likewise.
48501         * modules/memmem (License): Likewise.
48502         * modules/mempcpy (License): Likewise.
48503         * modules/memset (License): Likewise.
48504         * modules/minmax (License): Likewise.
48505         * modules/mktime (License): Likewise.
48506         * modules/netinet_in (License): Likewise.
48507         * modules/pathmax (License): Likewise.
48508         * modules/poll (License): Likewise.
48509         * modules/regex (License): Likewise.
48510         * modules/snprintf (License): Likewise.
48511         * modules/stdbool (License): Likewise.
48512         * modules/stdint (License): Likewise.
48513         * modules/stdio (License): Likewise.
48514         * modules/strcase (License): Likewise.
48515         * modules/strcasestr (License): Likewise.
48516         * modules/strdup (License): Likewise.
48517         * modules/string (License): Likewise.
48518         * modules/strndup (License): Likewise.
48519         * modules/strnlen (License): Likewise.
48520         * modules/strpbrk (License): Likewise.
48521         * modules/strptime (License): Likewise.
48522         * modules/strsep (License): Likewise.
48523         * modules/sys_select (License): Likewise.
48524         * modules/sys_socket (License): Likewise.
48525         * modules/sys_stat (License): Likewise.
48526         * modules/sys_time (License): Likewise.
48527         * modules/time (License): Likewise.
48528         * modules/time_r (License): Likewise.
48529         * modules/timegm (License): Likewise.
48530         * modules/unistd (License): Likewise.
48531         * modules/vsnprintf (License): Likewise.
48532         * modules/wctype (License): Likewise.
48533
48534 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48535
48536         * modules/argz (License): LGPLv2+.
48537
48538 2007-07-15  Karl Berry  <karl@gnu.org>
48539
48540         * doc/gnulib.texi: revise node structure per new fdl.texi.
48541
48542 2007-07-14  Bruno Haible  <bruno@clisp.org>
48543
48544         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
48545         the output file.
48546         * lib/uniname/uninames.h: Regenerated.
48547
48548 2007-07-14  Karl Berry  <karl@gnu.org>
48549
48550         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
48551         omitting sectioning and index commands.
48552
48553 2007-07-13  Bruno Haible  <bruno@clisp.org>
48554
48555         New gnulib-tool option --more-symlinks.
48556         * gnulib-tool (func_usage): Document --more-symlinks.
48557         (do_copyrights): New variable.
48558         Recognize option --more-symlinks.
48559         (func_import): Don't add a copyright notice transform to
48560         sed_transform_lib_file if do_copyrights is empty.
48561
48562 2007-07-13  Bruno Haible  <bruno@clisp.org>
48563
48564         * lib/vasnprintf.c (decimal_point_char): Define also if
48565         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
48566         && !NEED_PRINTF_DIRECTIVE_A.
48567         Reported by Clemens Koller <clemens.koller@anagramm.de> via
48568         Gary V. Vaughan <gary@gnu.org>.
48569
48570 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
48571
48572         * lib/inttypes_.h: Undo previous change, since it was fixed
48573         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
48574
48575 2007-07-13  Bruno Haible  <bruno@clisp.org>
48576
48577         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
48578         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
48579
48580 2007-07-13  Jim Meyering  <jim@meyering.net>
48581
48582         df: Don't fail for Tru64's "file-on-file mount".
48583         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
48584         so we fall through and use statfs instead.  Details here:
48585         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
48586         Reported by Albert Chin.
48587
48588 2007-07-13  Bruno Haible  <bruno@clisp.org>
48589
48590         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
48591         * modules/configmake (License): Likewise.
48592         * modules/gettext (License): Likewise.
48593         * modules/gettext-h (License): Likewise.
48594         * modules/include_next (License): Likewise.
48595         * modules/link-warning (License): Likewise.
48596         * modules/localcharset (License): Likewise.
48597         * modules/localename (License): Likewise.
48598         * modules/lock (License): Likewise.
48599         * modules/relocatable-lib-lgpl (License): Likewise.
48600         * modules/size_max (License): Likewise.
48601         * modules/vasnprintf (License): Likewise.
48602         * modules/wchar (License): Likewise.
48603         * modules/xsize (License): Likewise.
48604
48605 2007-07-13  Bruno Haible  <bruno@clisp.org>
48606
48607         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
48608         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
48609
48610 2007-07-12  Bruno Haible  <bruno@clisp.org>
48611
48612         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
48613         in the modules files.
48614
48615 2007-07-11  Karl Berry  <karl@gnu.org>
48616
48617         * MODULES.html.sh (func_module): use
48618          sed -e '\|^'"${includefile}"'$|d'
48619          instead of /.../d, to avoid errors on $includefile's containing /.
48620
48621 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48622
48623         * gnulib-tool (func_import): Avoid duplication of --avoid
48624         statements
48625         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
48626         names to `_' in variable names.
48627
48628 2007-07-10  Eric Blake  <ebb9@byu.net>
48629
48630         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
48631         * NEWS: Document this change.
48632
48633 2007-07-08  Bruno Haible  <bruno@clisp.org>
48634
48635         Update to Unicode 5.0.
48636         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48637         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48638         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48639         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48640         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48641         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48642         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48643         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48644         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48645         U+10A3F, U+1D242..U+1D244.
48646         (nonspacing_table_ind): Update.
48647         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48648         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48649
48650 2007-07-08  Bruno Haible  <bruno@clisp.org>
48651
48652         Update to Unicode 5.0.
48653         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48654         code transform. Extend the name index field of unicode_name_to_code and
48655         unicode_code_to_name from 16 to 24 bits.
48656         * lib/uniname/uniname.c (unicode_character_name,
48657         unicode_name_character): Add the range 0x12xxx to the code transform.
48658         * lib/uniname/uninames.h: Regenerated.
48659         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48660
48661 2007-07-07  Bruno Haible  <bruno@clisp.org>
48662
48663         * modules/wcwidth-tests: New file.
48664         * tests/test-wcwidth.c: New file.
48665
48666         Work around MacOS X wcwidth() bug.
48667         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48668         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48669         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48670         original wcwidth in non-UTF-8 locales.
48671         * modules/wcwidth (Depends-on): Add localcharset, streq,
48672         uniwidth/width.
48673         * doc/functions/wcwidth.texi: Update.
48674
48675 2007-07-07  Bruno Haible  <bruno@clisp.org>
48676
48677         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48678         (wcwidth): New declaration.
48679         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48680         macros.
48681         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48682         here. Prepare for creating <wchar.h> unconditionally.
48683         * modules/wchar (Depends-on): Add link-warning.
48684         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48685         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48686         * lib/wcwidth.h: Remove file.
48687         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48688         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48689         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48690         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48691         (Include): Replace wcwidth.h with <wchar.h>.
48692         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48693         * lib/mbchar.h: Don't include wcwidth.h.
48694         * lib/mbswidth.c: Likewise.
48695         * NEWS: Mention the change.
48696
48697 2007-07-07  Bruno Haible  <bruno@clisp.org>
48698
48699         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48700         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48701         definition with an external declaration.
48702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48703         defined as a function. Remove AC_C_INLINE requirement.
48704         * modules/wcwidth (Files): Add lib/wcwidth.c.
48705         (Makefile.am): Remove redundant statement.
48706
48707 2007-07-07  Bruno Haible  <bruno@clisp.org>
48708
48709         * MODULES.html.sh (Unicode string functions): Add the new modules.
48710
48711         * tests/uniwidth/test-u32-strwidth.c: New file.
48712         * modules/uniwidth/u32-strwidth-tests: New file.
48713
48714         * lib/uniwidth/u32-strwidth.c: New file.
48715         * modules/uniwidth/u32-strwidth: New file.
48716
48717         * tests/uniwidth/test-u16-strwidth.c: New file.
48718         * modules/uniwidth/u16-strwidth-tests: New file.
48719
48720         * lib/uniwidth/u16-strwidth.c: New file.
48721         * modules/uniwidth/u16-strwidth: New file.
48722
48723         * tests/uniwidth/test-u8-strwidth.c: New file.
48724         * modules/uniwidth/u8-strwidth-tests: New file.
48725
48726         * lib/uniwidth/u8-strwidth.c: New file.
48727         * modules/uniwidth/u8-strwidth: New file.
48728
48729         * tests/uniwidth/test-u32-width.c: New file.
48730         * modules/uniwidth/u32-width-tests: New file.
48731
48732         * lib/uniwidth/u32-width.c: New file.
48733         * modules/uniwidth/u32-width: New file.
48734
48735         * tests/uniwidth/test-u16-width.c: New file.
48736         * modules/uniwidth/u16-width-tests: New file.
48737
48738         * lib/uniwidth/u16-width.c: New file.
48739         * modules/uniwidth/u16-width: New file.
48740
48741         * tests/uniwidth/test-u8-width.c: New file.
48742         * modules/uniwidth/u8-width-tests: New file.
48743
48744         * lib/uniwidth/u8-width.c: New file.
48745         * modules/uniwidth/u8-width: New file.
48746
48747         * tests/uniwidth/test-uc_width.c: New file.
48748         * modules/uniwidth/width-tests: New file.
48749
48750         * lib/uniwidth/width.c: New file, from GNU libiconv.
48751         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
48752         * modules/uniwidth/width: New file.
48753
48754         * lib/uniwidth.h: New file, from GNU libiconv.
48755         * modules/uniwidth/base: New file.
48756
48757 2007-07-07  Bruno Haible  <bruno@clisp.org>
48758
48759         * lib/uniname.h: New file, from GNU gettext.
48760         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
48761         * lib/uniname/uninames.h: New file, from GNU gettext.
48762         * lib/uniname/uniname.c: New file, from GNU gettext.
48763         * tests/uniname/test-uninames.sh: New file.
48764         * tests/uniname/test-uninames.c: New file, from GNU gettext.
48765         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
48766         * modules/uniname/base: New file.
48767         * modules/uniname/uniname: New file.
48768         * modules/uniname/uniname-tests: New file.
48769         * MODULES.html.sh (Unicode string functions): Add the new modules.
48770
48771 2007-07-06  Bruno Haible  <bruno@clisp.org>
48772
48773         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
48774
48775 2007-07-06  Bruno Haible  <bruno@clisp.org>
48776
48777         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
48778         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
48779         includes <cygwin/sys_time.h> which includes <sys/select.h> which
48780         include <sys/time.h>.
48781         Reported by Eric Blake.
48782
48783 2007-07-06  Eric Blake  <ebb9@byu.net>
48784
48785         Fix testing canonicalize on cygwin.
48786         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48787         Revert patch from 2007-06-19.
48788         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
48789         canonicalize module is also in use.
48790         * tests/test-canonicalize.c: New file.
48791         * tests/test-canonicalize.sh: Likewise.
48792         * modules/canonicalize-tests: Likewise.
48793
48794 2007-07-06  Jim Meyering  <jim@meyering.net>
48795
48796         * lib/getugroups.c (getugroups): Detect getgrent failure.
48797         Adjust comment to reflect reality: this function may return -1.
48798
48799 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48800
48801         * build-aux/bootstrap (TP_URL,get_translations): Update to use
48802         the new TP address.
48803         (usage): Fix typo
48804         (gnulib_mk): New variable.
48805
48806 2007-07-05  Jim Meyering  <jim@meyering.net>
48807
48808         Don't let endgrent clobber errno, no matter how improbable.
48809         * lib/getugroups.c (getugroups): Save and restore errno around
48810         endgrent call.
48811
48812         Close the group DB even when failing with 2^31 or more members.
48813         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
48814
48815 2007-07-04  Jim Meyering  <jim@meyering.net>
48816
48817         * lib/getugroups.h: New file.
48818         * lib/getugroups.c: Include "getugroups.h".
48819         Remove uses of "register" keyword.
48820         Move local variable, "cp", down into scope where used.
48821         Give "username" parameter the "const" attribute.
48822         * modules/getugroups (Files): Add lib/getugroups.h
48823
48824 2007-07-04  Karl Berry  <karl@gnu.org>
48825
48826         * MODULES.html.sh (func_all_modules): Complete rename of
48827         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
48828
48829 2007-07-02  Bruno Haible  <bruno@clisp.org>
48830
48831         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
48832         mode, when inttypes.h comes from gnulib.
48833         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48834
48835 2007-07-02  Simon Josefsson  <simon@josefsson.org>
48836
48837         * NEWS: Mention lgpl module name change.
48838
48839         * modules/lgpl-2.1: Renamed from lgpl.
48840
48841         * NEWS: Mention gpl module name change.
48842
48843         * modules/gpl-3.0: New file, based on gpl-2.0.
48844
48845         * modules/gpl-2.0: Renamed from gpl.
48846
48847         * modules/gpl: Fix filename, doc/gpl.texi is now found at
48848         doc/gpl-2.0.texi.
48849
48850 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
48851
48852         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
48853         #define __STDC_LIMIT_MACROS temporarily while including
48854         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
48855         Problem reported by Joel E. Denny in
48856         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
48857
48858 2007-07-01  Bruno Haible  <bruno@clisp.org>
48859
48860         * lib/unistdio.h: New file.
48861         * lib/unistdio/u-asnprintf.h: New file.
48862         * lib/unistdio/u-asprintf.h: New file.
48863         * lib/unistdio/u-printf-args.c: New file.
48864         * lib/unistdio/u-printf-args.h: New file.
48865         * lib/unistdio/u-printf-parse.h: New file.
48866         * lib/unistdio/u-snprintf.h: New file.
48867         * lib/unistdio/u-sprintf.h: New file.
48868         * lib/unistdio/u-vasprintf.h: New file.
48869         * lib/unistdio/u-vsnprintf.h: New file.
48870         * lib/unistdio/u-vsprintf.h: New file.
48871         * lib/unistdio/ulc-asnprintf.c: New file.
48872         * lib/unistdio/ulc-asprintf.c: New file.
48873         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
48874         * lib/unistdio/ulc-printf-parse.c: New file.
48875         * lib/unistdio/ulc-snprintf.c: New file.
48876         * lib/unistdio/ulc-sprintf.c: New file.
48877         * lib/unistdio/ulc-vasnprintf.c: New file.
48878         * lib/unistdio/ulc-vasprintf.c: New file.
48879         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
48880         * lib/unistdio/ulc-vsnprintf.c: New file.
48881         * lib/unistdio/ulc-vsprintf.c: New file.
48882         * lib/unistdio/u8-asnprintf.c: New file.
48883         * lib/unistdio/u8-asprintf.c: New file.
48884         * lib/unistdio/u8-printf-parse.c: New file.
48885         * lib/unistdio/u8-snprintf.c: New file.
48886         * lib/unistdio/u8-sprintf.c: New file.
48887         * lib/unistdio/u8-vasnprintf.c: New file.
48888         * lib/unistdio/u8-vasprintf.c: New file.
48889         * lib/unistdio/u8-vsnprintf.c: New file.
48890         * lib/unistdio/u8-vsprintf.c: New file.
48891         * lib/unistdio/u8-u8-asnprintf.c: New file.
48892         * lib/unistdio/u8-u8-asprintf.c: New file.
48893         * lib/unistdio/u8-u8-snprintf.c: New file.
48894         * lib/unistdio/u8-u8-sprintf.c: New file.
48895         * lib/unistdio/u8-u8-vasnprintf.c: New file.
48896         * lib/unistdio/u8-u8-vasprintf.c: New file.
48897         * lib/unistdio/u8-u8-vsnprintf.c: New file.
48898         * lib/unistdio/u8-u8-vsprintf.c: New file.
48899         * lib/unistdio/u16-asnprintf.c: New file.
48900         * lib/unistdio/u16-asprintf.c: New file.
48901         * lib/unistdio/u16-printf-parse.c: New file.
48902         * lib/unistdio/u16-snprintf.c: New file.
48903         * lib/unistdio/u16-sprintf.c: New file.
48904         * lib/unistdio/u16-vasnprintf.c: New file.
48905         * lib/unistdio/u16-vasprintf.c: New file.
48906         * lib/unistdio/u16-vsnprintf.c: New file.
48907         * lib/unistdio/u16-vsprintf.c: New file.
48908         * lib/unistdio/u16-u16-asnprintf.c: New file.
48909         * lib/unistdio/u16-u16-asprintf.c: New file.
48910         * lib/unistdio/u16-u16-snprintf.c: New file.
48911         * lib/unistdio/u16-u16-sprintf.c: New file.
48912         * lib/unistdio/u16-u16-vasnprintf.c: New file.
48913         * lib/unistdio/u16-u16-vasprintf.c: New file.
48914         * lib/unistdio/u16-u16-vsnprintf.c: New file.
48915         * lib/unistdio/u16-u16-vsprintf.c: New file.
48916         * lib/unistdio/u32-asnprintf.c: New file.
48917         * lib/unistdio/u32-asprintf.c: New file.
48918         * lib/unistdio/u32-printf-parse.c: New file.
48919         * lib/unistdio/u32-snprintf.c: New file.
48920         * lib/unistdio/u32-sprintf.c: New file.
48921         * lib/unistdio/u32-vasnprintf.c: New file.
48922         * lib/unistdio/u32-vasprintf.c: New file.
48923         * lib/unistdio/u32-vsnprintf.c: New file.
48924         * lib/unistdio/u32-vsprintf.c: New file.
48925         * lib/unistdio/u32-u32-asnprintf.c: New file.
48926         * lib/unistdio/u32-u32-asprintf.c: New file.
48927         * lib/unistdio/u32-u32-snprintf.c: New file.
48928         * lib/unistdio/u32-u32-sprintf.c: New file.
48929         * lib/unistdio/u32-u32-vasnprintf.c: New file.
48930         * lib/unistdio/u32-u32-vasprintf.c: New file.
48931         * lib/unistdio/u32-u32-vsnprintf.c: New file.
48932         * lib/unistdio/u32-u32-vsprintf.c: New file.
48933         * tests/unistdio/test-ulc-asnprintf1.c: New file.
48934         * tests/unistdio/test-ulc-asnprintf1.h: New file.
48935         * tests/unistdio/test-ulc-printf1.h: New file.
48936         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
48937         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
48938         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
48939         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
48940         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
48941         * tests/unistdio/test-ulc-vasprintf1.c: New file.
48942         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
48943         * tests/unistdio/test-ulc-vsprintf1.c: New file.
48944         * tests/unistdio/test-u8-asnprintf1.c: New file.
48945         * tests/unistdio/test-u8-asnprintf1.h: New file.
48946         * tests/unistdio/test-u8-printf1.h: New file.
48947         * tests/unistdio/test-u8-vasnprintf1.c: New file.
48948         * tests/unistdio/test-u8-vasnprintf2.c: New file.
48949         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
48950         * tests/unistdio/test-u8-vasnprintf3.c: New file.
48951         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
48952         * tests/unistdio/test-u8-vasprintf1.c: New file.
48953         * tests/unistdio/test-u8-vsnprintf1.c: New file.
48954         * tests/unistdio/test-u8-vsprintf1.c: New file.
48955         * tests/unistdio/test-u16-asnprintf1.c: New file.
48956         * tests/unistdio/test-u16-asnprintf1.h: New file.
48957         * tests/unistdio/test-u16-printf1.h: New file.
48958         * tests/unistdio/test-u16-vasnprintf1.c: New file.
48959         * tests/unistdio/test-u16-vasnprintf2.c: New file.
48960         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
48961         * tests/unistdio/test-u16-vasnprintf3.c: New file.
48962         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
48963         * tests/unistdio/test-u16-vasprintf1.c: New file.
48964         * tests/unistdio/test-u16-vsnprintf1.c: New file.
48965         * tests/unistdio/test-u16-vsprintf1.c: New file.
48966         * tests/unistdio/test-u32-asnprintf1.c: New file.
48967         * tests/unistdio/test-u32-asnprintf1.h: New file.
48968         * tests/unistdio/test-u32-printf1.h: New file.
48969         * tests/unistdio/test-u32-vasnprintf1.c: New file.
48970         * tests/unistdio/test-u32-vasnprintf2.c: New file.
48971         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
48972         * tests/unistdio/test-u32-vasnprintf3.c: New file.
48973         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
48974         * tests/unistdio/test-u32-vasprintf1.c: New file.
48975         * tests/unistdio/test-u32-vsnprintf1.c: New file.
48976         * tests/unistdio/test-u32-vsprintf1.c: New file.
48977         * modules/unistdio/base: New file.
48978         * modules/unistdio/u-printf-args: New file.
48979         * modules/unistdio/ulc-asnprintf: New file.
48980         * modules/unistdio/ulc-asprintf: New file.
48981         * modules/unistdio/ulc-fprintf: New file.
48982         * modules/unistdio/ulc-printf-parse: New file.
48983         * modules/unistdio/ulc-snprintf: New file.
48984         * modules/unistdio/ulc-sprintf: New file.
48985         * modules/unistdio/ulc-vasnprintf: New file.
48986         * modules/unistdio/ulc-vasprintf: New file.
48987         * modules/unistdio/ulc-vfprintf: New file.
48988         * modules/unistdio/ulc-vsnprintf: New file.
48989         * modules/unistdio/ulc-vsprintf: New file.
48990         * modules/unistdio/u8-asnprintf: New file.
48991         * modules/unistdio/u8-asprintf: New file.
48992         * modules/unistdio/u8-printf-parse: New file.
48993         * modules/unistdio/u8-snprintf: New file.
48994         * modules/unistdio/u8-sprintf: New file.
48995         * modules/unistdio/u8-vasnprintf: New file.
48996         * modules/unistdio/u8-vasprintf: New file.
48997         * modules/unistdio/u8-vsnprintf: New file.
48998         * modules/unistdio/u8-vsprintf: New file.
48999         * modules/unistdio/u8-u8-asnprintf: New file.
49000         * modules/unistdio/u8-u8-asprintf: New file.
49001         * modules/unistdio/u8-u8-snprintf: New file.
49002         * modules/unistdio/u8-u8-sprintf: New file.
49003         * modules/unistdio/u8-u8-vasnprintf: New file.
49004         * modules/unistdio/u8-u8-vasprintf: New file.
49005         * modules/unistdio/u8-u8-vsnprintf: New file.
49006         * modules/unistdio/u8-u8-vsprintf: New file.
49007         * modules/unistdio/u16-asnprintf: New file.
49008         * modules/unistdio/u16-asprintf: New file.
49009         * modules/unistdio/u16-printf-parse: New file.
49010         * modules/unistdio/u16-snprintf: New file.
49011         * modules/unistdio/u16-sprintf: New file.
49012         * modules/unistdio/u16-vasnprintf: New file.
49013         * modules/unistdio/u16-vasprintf: New file.
49014         * modules/unistdio/u16-vsnprintf: New file.
49015         * modules/unistdio/u16-vsprintf: New file.
49016         * modules/unistdio/u16-u16-asnprintf: New file.
49017         * modules/unistdio/u16-u16-asprintf: New file.
49018         * modules/unistdio/u16-u16-snprintf: New file.
49019         * modules/unistdio/u16-u16-sprintf: New file.
49020         * modules/unistdio/u16-u16-vasnprintf: New file.
49021         * modules/unistdio/u16-u16-vasprintf: New file.
49022         * modules/unistdio/u16-u16-vsnprintf: New file.
49023         * modules/unistdio/u16-u16-vsprintf: New file.
49024         * modules/unistdio/u32-asnprintf: New file.
49025         * modules/unistdio/u32-asprintf: New file.
49026         * modules/unistdio/u32-printf-parse: New file.
49027         * modules/unistdio/u32-snprintf: New file.
49028         * modules/unistdio/u32-sprintf: New file.
49029         * modules/unistdio/u32-vasnprintf: New file.
49030         * modules/unistdio/u32-vasprintf: New file.
49031         * modules/unistdio/u32-vsnprintf: New file.
49032         * modules/unistdio/u32-vsprintf: New file.
49033         * modules/unistdio/u32-u32-asnprintf: New file.
49034         * modules/unistdio/u32-u32-asprintf: New file.
49035         * modules/unistdio/u32-u32-snprintf: New file.
49036         * modules/unistdio/u32-u32-sprintf: New file.
49037         * modules/unistdio/u32-u32-vasnprintf: New file.
49038         * modules/unistdio/u32-u32-vasprintf: New file.
49039         * modules/unistdio/u32-u32-vsnprintf: New file.
49040         * modules/unistdio/u32-u32-vsprintf: New file.
49041         * modules/unistdio/ulc-asnprintf-tests: New file.
49042         * modules/unistdio/ulc-vasnprintf-tests: New file.
49043         * modules/unistdio/ulc-vasprintf-tests: New file.
49044         * modules/unistdio/ulc-vsnprintf-tests: New file.
49045         * modules/unistdio/ulc-vsprintf-tests: New file.
49046         * modules/unistdio/u8-asnprintf-tests: New file.
49047         * modules/unistdio/u8-vasnprintf-tests: New file.
49048         * modules/unistdio/u8-vasprintf-tests: New file.
49049         * modules/unistdio/u8-vsnprintf-tests: New file.
49050         * modules/unistdio/u8-vsprintf-tests: New file.
49051         * modules/unistdio/u16-asnprintf-tests: New file.
49052         * modules/unistdio/u16-vasnprintf-tests: New file.
49053         * modules/unistdio/u16-vasprintf-tests: New file.
49054         * modules/unistdio/u16-vsnprintf-tests: New file.
49055         * modules/unistdio/u16-vsprintf-tests: New file.
49056         * modules/unistdio/u32-asnprintf-tests: New file.
49057         * modules/unistdio/u32-vasnprintf-tests: New file.
49058         * modules/unistdio/u32-vasprintf-tests: New file.
49059         * modules/unistdio/u32-vsnprintf-tests: New file.
49060         * modules/unistdio/u32-vsprintf-tests: New file.
49061         * MODULES.html.sh (Unicode string functions): Add the new modules.
49062
49063 2007-07-01  Bruno Haible  <bruno@clisp.org>
49064
49065         * lib/sprintf.c (sprintf): Limit the available length estimation,
49066         to avoid address wraparound.
49067         * lib/vsprintf.c (vsprintf): Likewise.
49068         * modules/sprintf-posix (Dependencies): Add stdint.
49069         * modules/vsprintf-posix (Dependencies): Likewise.
49070
49071 2007-07-01  Bruno Haible  <bruno@clisp.org>
49072
49073         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49074         Windows PATH as well. Conservative double-quoting. Comments.
49075
49076 2007-07-01  Bruno Haible  <bruno@clisp.org>
49077             Eric Blake  <ebb9@byu.net>
49078             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49079
49080         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49081         empty components in $PATH, denoting '.'.
49082
49083 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49084
49085         * gnulib-tool: Fix indentation.
49086         (func_create_megatestdir): Likewise.
49087         Report by Bruno Haible.
49088
49089 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49090
49091         Sync from Automake.
49092         * build-aux/gnupload: Fix shell portability issues with for loops.
49093         Report by Karl Berry.
49094
49095 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49096
49097         * build-aux/maint.mk (POURL): Use translationproject.org.
49098
49099 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49100             Bruno Haible  <bruno@clisp.org>
49101
49102         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49103         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49104         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49105         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49106         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49107
49108 2007-06-27  Bruno Haible  <bruno@clisp.org>
49109
49110         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49111         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49112
49113 2007-06-26  Karl Berry  <karl@gnu.org>
49114
49115         * MODULES.html.sh: remove xreadlink-with-size.
49116
49117 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49118
49119         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49120         method that I hope also handles the double-include problem noted
49121         by Bruno Haible in
49122         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49123
49124 2007-06-23  Bruno Haible  <bruno@clisp.org>
49125
49126         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49127         Don't let the 'mostlyclean' target fail if the last subdirectory could
49128         not be removed.
49129         Reported by Karl Berry.
49130
49131 2007-06-23  Bruno Haible  <bruno@clisp.org>
49132
49133         * gnulib-tool (echo): Add a speedier workaround for ksh.
49134         * tests/test-echo.sh: Likewise.
49135
49136 2007-06-23  Bruno Haible  <bruno@clisp.org>
49137
49138         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49139         * tests/test-echo.sh: Likewise.
49140
49141 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49142
49143         * gnulib-tool (IFS): Initialize early, so we don't set it to
49144         empty later.
49145         (self_abspathname): Rewrite algorithm to set it, reindent.
49146         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49147         (func_create_megatestdir): Merge some sed scripts.
49148
49149 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49150
49151         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49152         exposed by Sun Studio 11 cc on Solaris 8.
49153
49154 2007-06-22  Bruno Haible  <bruno@clisp.org>
49155
49156         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49157         backslashes.
49158         * tests/test-echo.sh: New file.
49159
49160 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49161
49162         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49163         simplify `sed_replace_build_aux' scripts, they are portable but
49164         echoing them with `echo' is not.
49165         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49166
49167 2007-06-21  Karl Berry  <karl@gnu.org>
49168
49169         * config/srclist.txt: guess we can't handle the licenses via
49170         srclist at the moment.
49171
49172 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49173
49174         * MODULES.html.sh: Add include_next.
49175         * modules/include_next: New file.
49176
49177 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49178
49179         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49180         INCLUDE_NEXT.
49181         (gl_CHECK_NEXT_HEADERS): New macro.
49182         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49183         the obsolescent gl_ABSOLUTE_HEADER.
49184         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49185         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49186         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49187         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49188         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49189         * m4/math_h.m4 (gl_MATH_H): Likewise.
49190         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49191         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49192         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49193         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49194         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49195         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49196         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49197         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49198         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49199         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49200         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49201         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49202         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49203         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49204         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49205         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49206         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49207         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49208         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49209         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49210         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49211         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49212         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49213         * lib/float_.h: Likewise.
49214         * lib/inttypes_.h: Likewise.
49215         * lib/math_.h: Likewise.
49216         * lib/search_.h: Likewise.
49217         * lib/signal_.h: Likewise.
49218         * lib/stdint_.h: Likewise.
49219         * lib/stdio_.h: Likewise.
49220         * lib/stdlib_.h: Likewise.
49221         * lib/string_.h: Likewise.
49222         * lib/sys_stat_.h: Likewise.
49223         * lib/sys_time_.h: Likewise.
49224         * lib/time_.h: Likewise.
49225         * lib/unistd_.h: Likewise.
49226         * lib/wchar_.h: Likewise.
49227         * lib/wctype_.h: Likewise.
49228         * lib/dirent_.h: Likewise.
49229         * lib/iconv_.h: Likewise.
49230         * lib/locale_.h: Likewise.
49231         * lib/netinet_in_.h: Likewise.
49232         * lib/sys_select_.h: Likewise.
49233         * lib/sys_socket_.h: Likewise.
49234         * lib/sysexits_.h: Likewise.
49235         * modules/fcntl (Depends-on): Depend on include_next, not
49236         absolute_header.
49237         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49238         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49239         * modules/fchdir: Likewise.
49240         * modules/float: Likewise.
49241         * modules/iconv_open: Likewise.
49242         * modules/inttypes: Likewise.
49243         * modules/locale: Likewise.
49244         * modules/math: Likewise.
49245         * modules/netinet_in: Likewise.
49246         * modules/search: Likewise.
49247         * modules/signal: Likewise.
49248         * modules/stdint: Likewise.
49249         * modules/stdio: Likewise.
49250         * modules/stdlib: Likewise.
49251         * modules/string: Likewise.
49252         * modules/sys_select: Likewise.
49253         * modules/sys_socket: Likewise.
49254         * modules/sys_stat: Likewise.
49255         * modules/sys_time: Likewise.
49256         * modules/sysexits: Likewise.
49257         * modules/time: Likewise.
49258         * modules/unistd: Likewise.
49259         * modules/wchar: Likewise.
49260         * modules/wctype: Likewise.
49261         * modules/sys_stat: Change maintainer to "all".
49262         * modules/unistd: Likewise.
49263
49264 2007-06-20  Karl Berry  <karl@gnu.org>
49265
49266         * config/srclist.txt: track www changes in license files.
49267
49268 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49269
49270         * build-aux/bootstrap: Remove stray dot.
49271         Make sure build_aux settings are honored when linking
49272         gnulib_extra_files.
49273
49274 2007-06-19  Eric Blake  <ebb9@byu.net>
49275
49276         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49277         Allow compilation on cygwin.
49278
49279 2007-06-19  Jim Meyering  <jim@meyering.net>
49280
49281         xreadlink-with-size: Remove module.  No longer used.
49282         Ex-callers now use xreadlink or mreadlink-with-size.
49283         * modules/xreadlink-with-size: Remove module.
49284         * lib/xreadlink-with-size.c: Remove file.
49285         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49286         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49287         just before the function definition *is* accurate.
49288
49289         Eliminate one way canonicalize_filename_mode could exit.
49290         * lib/canonicalize.c (canonicalize_filename_mode):
49291         Use mreadlink_with_size, not xreadlink_with_size.
49292
49293 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49294
49295         Detect porting problems to FreeBSD/arm, which has time_t wider than
49296         long int.  Original problem reported for GNU diff by Xin Li in
49297         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49298         * modules/getdate (Depends-on): Add intprops, verify.
49299         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49300         is an integer type no wider than long int.
49301
49302 2007-06-18  Jim Meyering  <jim@meyering.net>
49303
49304         New module: mreadlink-with-size.
49305         * MODULES.html.sh: Add mreadlink-with-size.
49306         * modules/mreadlink-with-size: New module
49307         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49308         not xreadlink-with-size.
49309         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49310
49311 2007-06-16  Bruno Haible  <bruno@clisp.org>
49312
49313         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49314         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49315         Reported by Gary V. Vaughan <gary@gnu.org>.
49316
49317 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49318
49319         Revamp lchown so that it lives in unistd.h where it belongs.
49320         * lib/lchown.h: Remove.
49321         * lib/dirchownmod.c: Don't include lib/lchown.h.
49322         * lib/fchownat.c: Likewise.
49323         * lib/openat.c: Likewise.
49324         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49325         does not follow symlinks.
49326         (EOPNOTSUPP): Define if not defined.
49327         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49328         is defined to 0.
49329         (lchown): New decl.
49330         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49331         Do not check for lchown decl.
49332         Set REPLACE_LCHOWN.
49333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49334         REPLACE_LCHOWN.
49335         * modules/chown: Make it clear it follows symlinks.
49336         * modules/lchown: Make it clear it doesn't follow symlinks.
49337         (Files): Remove lib/lchown.h
49338         (Depends-on): Add unistd.
49339         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49340         (Include): Include <unistd.h>, not "lchown.h".
49341         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49342         REPLACE_LCHOWN.
49343
49344 2007-06-15  Jim Meyering  <jim@meyering.net>
49345
49346         Change license (GPL to LGPL) of fsusage and dependents.
49347         * modules/fsusage (License): Change to LGPL.
49348         * modules/full-read (License): Likewise.
49349         * modules/full-write (License): Likewise.
49350         * modules/safe-read (License): Likewise.
49351         * modules/safe-write (License): Likewise.
49352
49353 2007-06-14  Ben Pfaff  <blp@gnu.org>
49354
49355         Missing part of allocsa -> malloca transition.
49356         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49357         gl_MALLOCA.
49358
49359 2007-06-12  Bruno Haible  <bruno@clisp.org>
49360
49361         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49362         to ia64, x86_64, i386.
49363         Reported by Eric Blake.
49364
49365 2007-06-12  Bruno Haible  <bruno@clisp.org>
49366
49367         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49368         cross-compiling to x86_64.
49369
49370 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49371
49372         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49373         glitch reported by Ralf Wildenhues in
49374         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49375
49376         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49377         Vin Shelton.
49378
49379 2007-06-11  Bruno Haible  <bruno@clisp.org>
49380
49381         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49382         replacement string.
49383         Reported by Eric Blake.
49384
49385 2007-06-10  Bruno Haible  <bruno@clisp.org>
49386
49387         Prepare vasnprintf code for use with Unicode strings.
49388         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49389         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49390         TYPE_U32_STRING.
49391         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49392         a_u32_string variants.
49393         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49394         * lib/printf-args.c: Don't include config.h and the specification
49395         header if PRINTF_FETCHARGS is already defined.
49396         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49397         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49398         TYPE_U16_STRING, TYPE_U32_STRING.
49399         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49400         u16_directive, u16_directives, u32_directive, u32_directives): New
49401         types.
49402         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49403         New declarations.
49404         * lib/printf-parse.c: Don't include config.h and the specification
49405         header if PRINTF_PARSE is already defined. Eliminate the set of
49406         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49407         them now. Include c-ctype.h.
49408         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49409         directive and CHAR_T_ONLY_ASCII.
49410         * lib/vasnprintf.c: Don't include config.h and the specification header
49411         if VASNPRINTF is already defined.
49412         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49413         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49414         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49415         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49416         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49417         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49418         code accordingly.
49419         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49420         pad_ourselves also in this case, with the 'c' and 's' directives, and
49421         with a different notion of "width".
49422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49423
49424 2007-06-10  Bruno Haible  <bruno@clisp.org>
49425
49426         * modules/unistr/u32-mbsnlen: New file.
49427         * lib/unistr/u32-mbsnlen.c: New file.
49428
49429         * modules/unistr/u16-mbsnlen: New file.
49430         * lib/unistr/u16-mbsnlen.c: New file.
49431
49432         * modules/unistr/u8-mbsnlen: New file.
49433         * lib/unistr/u8-mbsnlen.c: New file.
49434
49435         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49436         declarations.
49437
49438 2007-06-10  Bruno Haible  <bruno@clisp.org>
49439
49440         * lib/string_.h (mbsnlen): New declaration.
49441         * lib/mbsnlen.c: New file.
49442         * m4/mbsnlen.m4: New file.
49443         * modules/mbsnlen: New file.
49444         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49445         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49446         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49447
49448 2007-06-10  Bruno Haible  <bruno@clisp.org>
49449
49450         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49451
49452 2007-06-10  Bruno Haible  <bruno@clisp.org>
49453
49454         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49455         * lib/mbuiter.h: Likewise.
49456
49457 2007-06-10  Bruno Haible  <bruno@clisp.org>
49458
49459         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49460         declaration.
49461
49462 2007-06-10  Karl Berry  <karl@gnu.org>
49463
49464         * config/srclist.txt: remove gettext entries, Bruno prefers
49465         to update individually.
49466
49467 2007-06-10  Bruno Haible  <bruno@clisp.org>
49468
49469         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
49470         'maxlen'. Ensure only length + width bytes are allocated, not
49471         length + 1 + width.
49472
49473 2007-06-09  Bruno Haible  <bruno@clisp.org>
49474
49475         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
49476         (CHAR_T): Remove macro.
49477         (VASNPRINTF): Update.
49478
49479 2007-06-09  Bruno Haible  <bruno@clisp.org>
49480
49481         * MODULES.html.sh (Unicode string functions): Add the new modules.
49482
49483         * modules/uniconv/u32-conv-to-enc: New file.
49484         * lib/uniconv/u32-conv-to-enc.c: New file.
49485         * modules/uniconv/u32-conv-to-enc-tests: New file.
49486         * tests/uniconv/test-u32-conv-to-enc.c: New file.
49487
49488         * modules/uniconv/u16-conv-to-enc: New file.
49489         * lib/uniconv/u16-conv-to-enc.c: New file.
49490         * lib/uniconv/u-conv-to-enc.h: New file.
49491         * modules/uniconv/u16-conv-to-enc-tests: New file.
49492         * tests/uniconv/test-u16-conv-to-enc.c: New file.
49493
49494         * modules/uniconv/u8-conv-to-enc: New file.
49495         * lib/uniconv/u8-conv-to-enc.c: New file.
49496         * modules/uniconv/u8-conv-to-enc-tests: New file.
49497         * tests/uniconv/test-u8-conv-to-enc.c: New file.
49498
49499         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49500         u32_conv_to_encoding): New declarations.
49501
49502 2007-06-09  Bruno Haible  <bruno@clisp.org>
49503
49504         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
49505
49506 2007-06-09  Bruno Haible  <bruno@clisp.org>
49507
49508         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
49509         * modules/malloca: Renamed from modules/allocsa, updated.
49510         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
49511         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
49512         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
49513         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
49514         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
49515         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
49516         * modules/xmalloca: Renamed from modules/xallocsa, updated.
49517         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
49518         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
49519         * modules/c-strcasestr (Depends-on): Update.
49520         * lib/c-strcasestr.c: Update.
49521         * modules/c-strstr (Depends-on): Update.
49522         * lib/c-strstr.c: Update.
49523         * modules/canonicalize-lgpl (Depends-on): Update.
49524         * lib/canonicalize-lgpl.c: Update.
49525         * modules/clean-temp (Depends-on): Update.
49526         * lib/clean-temp.c: Update.
49527         * modules/csharpcomp (Depends-on): Update.
49528         * lib/csharpcomp.c: Update.
49529         * modules/csharpexec (Depends-on): Update.
49530         * lib/csharpexec.c: Update.
49531         * modules/javacomp (Depends-on): Update.
49532         * lib/javacomp.c: Update.
49533         * modules/javaexec (Depends-on): Update.
49534         * lib/javaexec.c: Update.
49535         * modules/mbscasestr (Depends-on): Update.
49536         * lib/mbscasestr.c: Update.
49537         * modules/mbsstr (Depends-on): Update.
49538         * lib/mbsstr.c: Update.
49539         * modules/setenv (Depends-on): Update.
49540         * lib/setenv.c: Update.
49541         * modules/strcasestr (Depends-on): Update.
49542         * lib/strcasestr.c: Update.
49543         * modules/striconveha (Depends-on): Update.
49544         * lib/striconveha.c: Update.
49545         * modules/relocatable-prog-wrapper (Files): Update.
49546         * lib/relocwrapper.c: Update.
49547         * build-aux/install-reloc: Update.
49548         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
49549
49550 2007-06-08  Bruno Haible  <bruno@clisp.org>
49551
49552         Port to uClibc.
49553         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
49554         * lib/fpurge.c (fpurge): Likewise.
49555         * lib/freading.c (freading): Likewise.
49556         * lib/fseeko.c (rpl_fseeko): Likewise.
49557         * lib/fseterr.c (fseterr): Likewise.
49558         * lib/fwriting.c (fwriting): Likewise.
49559         * tests/test-fflush.c (main): Avoid a failure on uClibc.
49560
49561 2007-06-08  Bruno Haible  <bruno@clisp.org>
49562
49563         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
49564         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
49565         * modules/gettext (Files): Add m4/intlmacosx.m4.
49566
49567 2007-06-07  Bruno Haible  <bruno@clisp.org>
49568
49569         * modules/localename-tests: New file.
49570         * tests/test-localename.c: New file.
49571
49572         New module 'localename'.
49573         * lib/localename.h: New file.
49574         * lib/localename.c: New file, from GNU gettext.
49575         * m4/localename.m4: New file.
49576         * modules/localename: New file.
49577
49578 2007-06-07  Bruno Haible  <bruno@clisp.org>
49579
49580         Work around the lack of <wchar.h> on some builds of uClibc.
49581         * doc/headers/wchar.texi: Update.
49582         * lib/wchar_.h: Include <wchar.h> only if it exists.
49583         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
49584         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
49585         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
49586         doesn't exist.
49587         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
49588         * modules/mbfile (Depends-on): Add wchar.
49589         * modules/mbiter (Depends-on): Likewise.
49590         * modules/mbuiter (Depends-on): Likewise.
49591         Reported by Simon Josefsson.
49592
49593 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49594
49595         Work around problem reported by Steven M. Schweda in
49596         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
49597         Tru64 5.1B with the Compaq compiler environment installed declares
49598         an 'isblank' function but does not define it in the C library.
49599         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
49600         * lib/regex_internal.h (isblank): Likewise.
49601         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
49602         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49603
49604 2007-06-05  Bruno Haible  <bruno@clisp.org>
49605
49606         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
49607         ia64.
49608         * modules/printf-safe: New file.
49609         * modules/fprintf-posix (Depends-on): Add printf-safe.
49610         * modules/printf-posix (Depends-on): Likewise.
49611         * modules/snprintf-posix (Depends-on): Likewise.
49612         * modules/sprintf-posix (Depends-on): Likewise.
49613         * modules/vasnprintf-posix (Depends-on): Likewise.
49614         * modules/vasprintf-posix (Depends-on): Likewise.
49615         * modules/vfprintf-posix (Depends-on): Likewise.
49616         * modules/vprintf-posix (Depends-on): Likewise.
49617         * modules/vsnprintf-posix (Depends-on): Likewise.
49618         * modules/vsprintf-posix (Depends-on): Likewise.
49619         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
49620         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
49621         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
49622         "no" on i386, x86_64, ia64.
49623         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
49624         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49625         on i386, x86_64, ia64.
49626         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
49627         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49628         on i386, x86_64, ia64.
49629         * tests/test-vasnprintf-posix.c: Include float.h.
49630         (LDBL80_WORDS): New macro.
49631         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49632         on i386, x86_64, ia64.
49633         * tests/test-vasprintf-posix.c: Include float.h.
49634         (LDBL80_WORDS): New macro.
49635         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49636         on i386, x86_64, ia64.
49637         * tests/test-snprintf-posix.c: Include float.h.
49638         * tests/test-sprintf-posix.c: Likewise.
49639         * tests/test-vsnprintf-posix.c: Likewise.
49640         * tests/test-vsprintf-posix.c: Likewise.
49641
49642 2007-06-05  Bruno Haible  <bruno@clisp.org>
49643
49644         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49645         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49646         non-IEEE numbers on i386, x86_64, ia64.
49647         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49648         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49649         * tests/test-isnanl.h: Include float.h.
49650         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49651
49652 2007-06-05  Bruno Haible  <bruno@clisp.org>
49653
49654         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49655         also the %a / %A. Handle the %a / %A code before this extra handling.
49656
49657 2007-06-05  Bruno Haible  <bruno@clisp.org>
49658
49659         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49660         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49661
49662 2007-06-05  Bruno Haible  <bruno@clisp.org>
49663
49664         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49665         typo in variable name.
49666
49667 2007-06-05  Eric Blake  <ebb9@byu.net>
49668
49669         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49670         Reported by Simon Josefsson.
49671
49672 2007-06-04  Bruno Haible  <bruno@clisp.org>
49673
49674         Avoid test failures on some PowerPC platforms.
49675         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49676         Define differently for PowerPC.
49677         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49678         Reported by Gary V. Vaughan <gary@gnu.org>.
49679
49680 2007-06-02  Bruno Haible  <bruno@clisp.org>
49681
49682         Fix test-stdint failure on FreeBSD/ia64.
49683         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49684         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49685         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49686         * doc/headers/stdint.texi: Update.
49687
49688 2007-06-01  Bruno Haible  <bruno@clisp.org>
49689
49690         * tests/test-binary-io.c (main): Pass a third argument to open().
49691         Reported by Gary V. Vaughan <gary@gnu.org>.
49692
49693 2007-06-01  Bruno Haible  <bruno@clisp.org>
49694
49695         * doc/functions/frexpl.texi: Update for mingw.
49696
49697 2007-06-01  Bruno Haible  <bruno@clisp.org>
49698
49699         * tests/test-lseek.c (main): Disable test of errno for invalid third
49700         argument.
49701         * doc/functions/lseek.texi: Update.
49702         Reported by Gary V. Vaughan <gary@gnu.org>.
49703
49704 2007-05-28  Bruno Haible  <bruno@clisp.org>
49705
49706         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49707
49708 2007-05-31  Eric Blake  <ebb9@byu.net>
49709
49710         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49711         cross compiling.
49712
49713 2007-05-30  Eric Blake  <ebb9@byu.net>
49714         and Bruno Haible  <bruno@clisp.org>
49715
49716         Work around mingw test failures exposed by m4-1.4.9b.
49717         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49718         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49719         moment.
49720
49721 2007-05-30  Bruno Haible  <bruno@clisp.org>
49722
49723         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49724         assuming that they are closed. Needed on HP-UX 11.
49725
49726 2007-05-29  Bruno Haible  <bruno@clisp.org>
49727
49728         Fix a problem with #include_next.
49729         * lib/dirent_.h: Split the double-inclusion guard.
49730         * lib/fcntl_.h: Likewise.
49731         * lib/float_.h: Likewise.
49732         * lib/iconv_.h: Likewise.
49733         * lib/inttypes_.h: Likewise.
49734         * lib/locale_.h: Likewise.
49735         * lib/math_.h: Likewise.
49736         * lib/netinet_in_.h: Likewise.
49737         * lib/search_.h: Likewise.
49738         * lib/signal_.h: Likewise.
49739         * lib/stdint_.h: Likewise.
49740         * lib/stdio_.h: Likewise.
49741         * lib/stdlib_.h: Likewise.
49742         * lib/string_.h: Likewise.
49743         * lib/sys_select_.h: Likewise.
49744         * lib/sys_socket_.h: Likewise.
49745         * lib/sys_stat_.h: Likewise.
49746         * lib/sys_time_.h: Likewise.
49747         * lib/sysexits_.h: Likewise.
49748         * lib/time_.h: Likewise.
49749         * lib/unistd_.h: Likewise.
49750         * lib/wchar_.h: Likewise.
49751         * lib/wctype_.h: Likewise.
49752
49753 2007-05-29  Bruno Haible  <bruno@clisp.org>
49754
49755         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
49756         for the moment.
49757
49758 2007-05-29  Bruno Haible  <bruno@clisp.org>
49759
49760         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
49761         invocation.
49762         Reported by Eric Blake.
49763
49764 2007-05-29  Bruno Haible  <bruno@clisp.org>
49765
49766         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
49767         compiling case.
49768
49769 2007-05-29  Eric Blake  <ebb9@byu.net>
49770             Bruno Haible  <bruno@clisp.org>
49771
49772         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
49773         cross compiles.
49774
49775 2007-05-28  Eric Blake  <ebb9@byu.net>
49776
49777         * modules/closein-tests (test_closein_LDADD): Support test on
49778         cygwin with libtool.
49779
49780 2007-05-28  Bruno Haible  <bruno@clisp.org>
49781
49782         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
49783         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49784         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49785         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49786         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49787         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49788         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49789         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49790         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49791
49792 2007-05-28  Eric Blake  <ebb9@byu.net>
49793
49794         Unconditionally include <config.h> in unit tests.
49795         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
49796         * tests/test-allocsa.c, tests/test-arcfour.c,
49797         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
49798         tests/test-array_list.c, tests/test-array_oset.c,
49799         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
49800         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
49801         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
49802         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
49803         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
49804         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
49805         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
49806         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
49807         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
49808         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
49809         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
49810         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
49811         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
49812         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
49813         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
49814         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
49815         test-md5.c, test-memmem.c, test-printf-posix.c,
49816         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
49817         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
49818         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
49819         test-strcasestr.c, test-striconv.c, test-striconveh.c,
49820         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
49821         test-vasnprintf-posix2.c, test-vasnprintf.c,
49822         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
49823         test-vfprintf-posix.c, test-vprintf-posix.c,
49824         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
49825         test-xvasprintf.c: Likewise.
49826
49827 2007-05-28  Bruno Haible  <bruno@clisp.org>
49828
49829         * gnulib-tool (func_import): Remember the --with-tests command-line
49830         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
49831         Reported by Eric Blake.
49832
49833 2007-05-28  Bruno Haible  <bruno@clisp.org>
49834
49835         * modules/ftell-tests: New file.
49836         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
49837         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
49838
49839         * lib/ftell.c: New file.
49840         * modules/ftell: New file.
49841         * m4/ftell.m4: New file.
49842         * doc/functions/ftell.texi: Update.
49843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
49844         REPLACE_FTELL.
49845         * lib/stdio_.h (rpl_ftell): New declaration.
49846         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
49847         REPLACE_FTELL.
49848
49849 2007-05-28  Eric Blake  <ebb9@byu.net>
49850
49851         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
49852
49853 2007-05-28  Bruno Haible  <bruno@clisp.org>
49854
49855         * modules/fseek-tests: New file.
49856         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
49857         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
49858
49859         * lib/fseek.c: New file.
49860         * modules/fseek: New file.
49861         * m4/fseek.m4: New file.
49862         * doc/functions/fseek.texi: Update.
49863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
49864         REPLACE_FSEEK.
49865         * lib/stdio_.h (rpl_fseek): New declaration.
49866         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
49867         REPLACE_FSEEK.
49868
49869 2007-05-28  Bruno Haible  <bruno@clisp.org>
49870
49871         * lib/stdio_.h (fflush): More comments.
49872
49873 2007-05-28  Bruno Haible  <bruno@clisp.org>
49874
49875         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
49876         runtime test.
49877
49878 2007-05-28  Eric Blake  <ebb9@byu.net>
49879
49880         Improve lseek module.
49881         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
49882         * lib/unistd_.h (lseek): Scale back link warning message.
49883         * tests/test-lseek.c: Beef up test.
49884         * tests/test-lseek.sh: Exercise more facets of lseek.
49885         Reported by Bruno Haible.
49886
49887 2007-05-28  Bruno Haible  <bruno@clisp.org>
49888
49889         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
49890         to define.
49891
49892 2007-05-27  Bruno Haible  <bruno@clisp.org>
49893
49894         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
49895
49896 2007-05-27  Bruno Haible  <bruno@clisp.org>
49897
49898         * modules/openmp: New file.
49899         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
49900         Noah Misch.
49901
49902 2007-05-26  Bruno Haible  <bruno@clisp.org>
49903
49904         * modules/chdir-long (Depends-on): Add fchdir.
49905         * modules/chdir-safer (Depends-on): Likewise.
49906         * modules/fts (Depends-on): Likewise.
49907         * modules/fts-lgpl (Depends-on): Likewise.
49908         * modules/openat (Depends-on): Likewise.
49909         * modules/savewd (Depends-on): Likewise.
49910
49911 2007-05-24  Eric Blake  <ebb9@byu.net>
49912
49913         Fix lseek on mingw.
49914         * modules/lseek: New module.
49915         * m4/lseek.m4: New file.
49916         * lib/lseek.c: New file.
49917         * modules/lseek-tests: New file.
49918         * tests/test-lseek.c: New file.
49919         * tests/test-lseek.sh: New file.
49920         * MODULES.html.sh: Document lseek module.
49921         * modules/fflush (Depends-on): Add lseek, fseeko.
49922         * modules/fseeko (Depends-on): Likewise.
49923         * modules/ftello (Depends-on): Likewise.
49924         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
49925         broken.
49926         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
49927         broken.
49928         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
49929         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
49930         * lib/ftello.c (rpl_ftello): Likewise.
49931         * tests/test-fseeko.c (main): Test this.
49932         * tests/test-fseeko.sh: Likewise.
49933         * tests/test-ftello.c (main): Likewise.
49934         * tests/test-ftello.sh: Likewise.
49935         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
49936         implies replacing fseek.
49937         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
49938         HAVE_FTELLO.
49939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
49940         * modules/unistd (Makefile.am): Likewise.
49941         * lib/unistd_.h (lseek): Declare a replacement.
49942         * doc/functions/lseek.texi (lseek): Document this fix.
49943         * doc/functions/fseek.texi (fseek): Likewise.
49944         * doc/functions/ftell.texi (ftell): Likewise.
49945
49946 2007-05-24  Bruno Haible  <bruno@clisp.org>
49947
49948         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
49949         in the printed representation of a NaN.
49950         * tests/test-vasprintf-posix.c (test_function): Likewise.
49951         * tests/test-snprintf-posix.h (test_function): Likewise.
49952         * tests/test-sprintf-posix.h (test_function): Likewise.
49953         Reported by Eric Blake.
49954
49955 2007-05-23  Eric Blake  <ebb9@byu.net>
49956
49957         Fix fseeko/ftello on cygwin 1.5.24.
49958         * doc/functions/fseeko.texi (fseeko): Document the fix.
49959         * doc/functions/ftello.texi (ftello): Document the fix.
49960         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
49961         * doc/functions/stdout.text (stdout): New file.
49962         * doc/functions/stderr.text (stderr): New file.
49963         * doc/gnulib.texi (Function Substitutes): Use new files.
49964         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
49965         prior to 1.7.0.
49966         * tests/test-ftello.c (main): Likewise for ftello.
49967         * tests/test-fseeko.sh: New file.
49968         * tests/test-ftello.sh: New file.
49969         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
49970         with seekable stdin.
49971         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
49972         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
49973         (gl_REPLACE_FSEEKO): New macro.
49974         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
49975         * modules/fseeko (Files): Distribute fseeko.c.
49976         * modules/ftello (Files): Distribute ftello.c.
49977         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
49978         mode.
49979         * lib/ftello.c (rpl_ftello): New file.
49980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
49981         fseeko, ftello.
49982         (gl_STDIN_LARGE_OFFSET): New macro.
49983         * modules/stdio (Makefile.am): Perform the replacement.
49984         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49985
49986 2007-05-23  Bruno Haible  <bruno@clisp.org>
49987
49988         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49989         GNULIB_POSIXCHECK is defined.
49990
49991 2007-05-21  Bruno Haible  <bruno@clisp.org>
49992
49993         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49994         Check also the output for NaN arguments. When cross-compiling, guess
49995         no on IRIX.
49996         * lib/vasnprintf.c: Update comments.
49997         * tests/test-vasnprintf-posix.c (strisnan): New function.
49998         (test_function): Use it.
49999         * tests/test-vasprintf-posix.c (strisnan): New function.
50000         (test_function): Use it.
50001         * tests/test-snprintf-posix.h (strisnan): New function.
50002         (test_function): Use it.
50003         * tests/test-sprintf-posix.h (strisnan): New function.
50004         (test_function): Use it.
50005         Reported by Eric Blake.
50006
50007 2007-05-20  Bruno Haible  <bruno@clisp.org>
50008
50009         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50010         numbers that fails on BeOS.
50011         * doc/functions/frexpl.texi: Update.
50012
50013 2007-05-20  Jim Meyering  <jim@meyering.net>
50014
50015         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50016         forced upon us by glibc-2.6.
50017
50018 2007-05-20  Bruno Haible  <bruno@clisp.org>
50019
50020         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50021         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50022         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50023         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50024         NEED_PRINTF_INFINITE.
50025         (is_infinitel): New function.
50026         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50027         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50028         gl_PREREQ_VASNPRINTF_INFINITE.
50029         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50030         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50031         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50032         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50033         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50034         gl_PREREQ_VASNPRINTF_INFINITE.
50035         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50036         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50037         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50038         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50039         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50040         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50041         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50042         * doc/functions/fprintf.texi: Update.
50043         * doc/functions/printf.texi: Update.
50044         * doc/functions/snprintf.texi: Update.
50045         * doc/functions/sprintf.texi: Update.
50046         * doc/functions/vfprintf.texi: Update.
50047         * doc/functions/vprintf.texi: Update.
50048         * doc/functions/vsnprintf.texi: Update.
50049         * doc/functions/vsprintf.texi: Update.
50050
50051 2007-05-20  Bruno Haible  <bruno@clisp.org>
50052
50053         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50054         was not found in libc.
50055         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50056
50057 2007-05-20  Bruno Haible  <bruno@clisp.org>
50058
50059         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50060         printed as "-nan" instead of "nan".
50061         * tests/test-vasprintf-posix.c (test_function): Likewise.
50062         * tests/test-snprintf-posix.h (test_function): Likewise.
50063         * tests/test-sprintf-posix.h (test_function): Likewise.
50064         Needed for HP-UX 11.
50065
50066 2007-05-20  Jim Meyering  <jim@meyering.net>
50067
50068         Fix buggy test for the fchownat-deref bug.
50069         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50070         symlink required for the run-test.  Without it, this test would
50071         always declare that fchownat doesn't work, and client code would
50072         unnecessarily use the replacement function with fixed libc.
50073         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50074         Reported by Greg Schafer.
50075
50076 2007-05-19  Bruno Haible  <bruno@clisp.org>
50077
50078         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50079         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50080         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50081         Needed for IRIX 6.5 and Solaris 2.5.1.
50082
50083 2007-05-19  Bruno Haible  <bruno@clisp.org>
50084
50085         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50086         (test_function): Skip tests involving -0.0 on platforms where
50087         -0.0 = 0.0.
50088         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50089         (test_function): Skip tests involving -0.0 on platforms where
50090         -0.0 = 0.0.
50091         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50092         (test_function): Skip tests involving -0.0 on platforms where
50093         -0.0 = 0.0.
50094         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50095         (test_function): Skip tests involving -0.0 on platforms where
50096         -0.0 = 0.0.
50097         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50098         tests.
50099         * tests/test-printf-posix.h (test_function): Likewise.
50100         * tests/test-printf-posix.output: Remove all -0.0 related results.
50101         Needed for IRIX 6.5.
50102
50103 2007-05-19  Bruno Haible  <bruno@clisp.org>
50104
50105         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50106         printed as "nan0x7fffffff" instead of "nan".
50107         * tests/test-vasprintf-posix.c (test_function): Likewise.
50108         * tests/test-snprintf-posix.h (test_function): Likewise.
50109         * tests/test-sprintf-posix.h (test_function): Likewise.
50110         * tests/test-fprintf-posix.h (NaN): Remove macro.
50111         (test_function): Remove all NaN related tests.
50112         * tests/test-printf-posix.h (NaN): Remove macro.
50113         (test_function): Remove all NaN related tests.
50114         * tests/test-printf-posix.output: Remove all NaN related results.
50115         Needed for IRIX 6.5.
50116
50117 2007-05-19  Bruno Haible  <bruno@clisp.org>
50118
50119         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50120         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50121
50122 2007-05-19  Bruno Haible  <bruno@clisp.org>
50123
50124         * lib/float_.h: New file.
50125         * m4/float_h.m4: New file.
50126         * modules/float: New file.
50127         * modules/isnanl (Dependencies): Add float.
50128         * modules/isnanl-nolibm (Dependencies): Likewise.
50129         * modules/mathl (Dependencies): Likewise.
50130         * modules/printf-frexpl (Dependencies): Likewise.
50131         * modules/signbit (Dependencies): Likewise.
50132         * modules/vasnprintf (Dependencies): Likewise.
50133         * doc/headers/float.texi: Update.
50134
50135 2007-05-19  Jim Meyering  <jim@meyering.net>
50136
50137         * lib/utimens.c (gl_futimens): Rename from futimens,
50138         now that glibc-2.6 declares futimens.
50139         * lib/utimens.h: Likewise.
50140
50141 2007-05-19  Bruno Haible  <bruno@clisp.org>
50142
50143         Avoid test failures on mingw.
50144         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50145         * tests/test-printf-posix.sh: Likewise.
50146         * tests/test-vfprintf-posix.sh: Likewise.
50147         * tests/test-vprintf-posix.sh: Likewise.
50148
50149 2007-05-19  Bruno Haible  <bruno@clisp.org>
50150
50151         Fix *printf result for NaN, Inf, -0.0 on mingw.
50152         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50153         * lib/vasnprintf.c: Include math.h and isnan.h.
50154         (is_infinite_or_zero): New function.
50155         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50156         values in the %f, %F, %e, %E, %g, %G directives.
50157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50158         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50159         gl_PRINTF_INFINITE and test its result. Invoke
50160         gl_PREREQ_VASNPRINTF_INFINITE.
50161         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50162         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50163         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50165         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50167         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50168         * doc/functions/fprintf.texi: Update.
50169         * doc/functions/printf.texi: Update.
50170         * doc/functions/snprintf.texi: Update.
50171         * doc/functions/sprintf.texi: Update.
50172         * doc/functions/vfprintf.texi: Update.
50173         * doc/functions/vprintf.texi: Update.
50174         * doc/functions/vsnprintf.texi: Update.
50175         * doc/functions/vsprintf.texi: Update.
50176
50177 2007-05-19  Bruno Haible  <bruno@clisp.org>
50178
50179         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50180         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50181         Instead of multiplying with 10^k, set extra_zeroes to k.
50182         (scale10_round_long_double): Remove function.
50183
50184 2007-05-18  Bruno Haible  <bruno@clisp.org>
50185
50186         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50187         introduced on 2007-05-06.
50188
50189 2007-05-18  Bruno Haible  <bruno@clisp.org>
50190
50191         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50192         %g directives.
50193         * tests/test-vasprintf-posix.c (test_function): Likewise.
50194         * tests/test-snprintf-posix.h (test_function): Likewise.
50195         * tests/test-sprintf-posix.h (test_function): Likewise.
50196
50197 2007-05-18  Bruno Haible  <bruno@clisp.org>
50198
50199         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50200         (strmatch): New function.
50201         (test_function): Test the %f directive on numbers of various exponents.
50202         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50203         (strmatch): New function.
50204         (test_function): Test the %f directive on numbers of various exponents.
50205         * tests/test-snprintf-posix.h (strmatch): New function.
50206         (test_function): Test the %f directive on numbers of various exponents.
50207         * tests/test-sprintf-posix.h (strmatch): New function.
50208         (test_function): Test the %f directive on numbers of various exponents.
50209         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50210         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50211         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50212         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50213
50214 2007-05-18  Bruno Haible  <bruno@clisp.org>
50215
50216         Add support for 'long double' number output.
50217         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50218         * lib/vasnprintf.c: Include math.h and float+.h.
50219         (mp_limb_t): New type.
50220         (GMP_LIMB_BITS): New macro.
50221         (mp_twolimb_t): New type.
50222         (GMP_TWOLIMB_BITS): New macro.
50223         (mpn_t): New type.
50224         (multiply, divide, convert_to_decimal, decode_long_double,
50225         scale10_round_long_double, scale10_round_decimal_long_double,
50226         floorlog10l): New functions.
50227         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50228         for the %f, %F, %e, %E, %g, %G directives.
50229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50230         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50231         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50232         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50233         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50234         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50235         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50236         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50237         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50239         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50240         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50241         * modules/snprintf-posix (Depends-on): Likewise.
50242         * modules/sprintf-posix (Depends-on): Likewise.
50243         * modules/vasnprintf-posix (Depends-on): Likewise.
50244         * modules/vasprintf-posix (Depends-on): Likewise.
50245         * modules/vfprintf-posix (Depends-on): Likewise.
50246         * modules/vsnprintf-posix (Depends-on): Likewise.
50247         * modules/vsprintf-posix (Depends-on): Likewise.
50248         * modules/vasnprintf (Files): Add lib/float+.h.
50249         * doc/functions/fprintf.texi: Update.
50250         * doc/functions/printf.texi: Update.
50251         * doc/functions/snprintf.texi: Update.
50252         * doc/functions/sprintf.texi: Update.
50253         * doc/functions/vfprintf.texi: Update.
50254         * doc/functions/vprintf.texi: Update.
50255         * doc/functions/vsnprintf.texi: Update.
50256         * doc/functions/vsprintf.texi: Update.
50257
50258 2007-05-18  Bruno Haible  <bruno@clisp.org>
50259
50260         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50261
50262 2007-05-18  Bruno Haible  <bruno@clisp.org>
50263
50264         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50265         for printing 64-bit integers. Needed for mingw.
50266
50267 2007-05-18  Bruno Haible  <bruno@clisp.org>
50268
50269         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50270         gl_FUNC_FREXPL_WORKS.
50271         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50272
50273 2007-05-18  Bruno Haible  <bruno@clisp.org>
50274
50275         * modules/frexpl-nolibm-tests: New file.
50276
50277         * modules/frexpl-nolibm: New file.
50278         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50279
50280 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50281
50282         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50283         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50284         GCC 4.2, which otherwise issues a lot of warnings.
50285         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50286         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50287         Likewise.
50288         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50289         * modules/iconv_open (iconv.h): Likewise.
50290         * modules/locale (locale.h): Likewise.
50291         * modules/netinet_in (netinet/in.h): Likewise.
50292         * modules/sys_select (sys_select.h): Likewise.
50293         * modules/sys_socket (sys/socket.h): Likewise.
50294         * modules/sys_stat (sys/stat.h): Likewise.
50295         * modules/sysexits (sysexits.h): Likewise.
50296         * modules/unistd (unistd.h): Likewise.
50297
50298 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50299
50300         * modules/closein-tests (Makefile.am): Distribute
50301         `test-closein.sh'.
50302
50303 2007-05-17  Bruno Haible  <bruno@clisp.org>
50304
50305         * tests/test-printf-posix.output: Renamed from
50306         tests/test-fprintf-posix.out.
50307         * modules/fprintf-posix-tests: Update.
50308         * modules/printf-posix-tests: Update.
50309         * modules/vfprintf-posix-tests: Update.
50310         * modules/vprintf-posix-tests: Update.
50311         * tests/test-fprintf-posix.sh: Update.
50312         * tests/test-printf-posix.sh: Update.
50313         * tests/test-vfprintf-posix.sh: Update.
50314         * tests/test-vprintf-posix.sh: Update.
50315         Reported by Ralf Wildenhues.
50316
50317 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50318
50319         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50320         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50321         GCC 4.2, which otherwise issues a lot of warnings.
50322         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50323         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50324         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50325         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50326         it should no longer be needed.
50327         * lib/string_.h: Likewise.
50328         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50329         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50330         * modules/inttypes (inttypes.h): Likewise.
50331         * modules/math (math.h): Likewise.
50332         * modules/search (search.h): Likewise.
50333         * modules/signal (signal.h): Likewise.
50334         * modules/stdint (stdint.h): Likewise.
50335         * modules/stdio (stdio.h): Likewise.
50336         * modules/stdlib (stdlib.h): Likewise.
50337         * modules/string (string.h): Likewise.
50338         * modules/sys_time (sys/time.h): Likewise.
50339         * modules/time (time.h): Likewise.
50340         * modules/wchar (wchar.h): Likewise.
50341         * modules/wctype (wtype.h): Likewise.
50342
50343 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50344
50345         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50346
50347 2007-05-13  Bruno Haible  <bruno@clisp.org>
50348
50349         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50350         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50351         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50352         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50353         (gl_PREREQ_STRTOK_R): Don't require it here.
50354
50355 2007-05-13  Bruno Haible  <bruno@clisp.org>
50356
50357         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50358         when used in C++ mode.
50359
50360 2007-05-12  Bruno Haible  <bruno@clisp.org>
50361
50362         * lib/linebuffer.h: Tweak doc.
50363         * lib/linebuffer.c: Likewise.
50364
50365 2007-05-12  James Youngman  <jay@gnu.org>
50366
50367         * lib/linebuffer.c (readlinebuffer_delim): New function,
50368         like readlinebuffer, but use a caller-specified delimiter.
50369         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50370         as the delimiter.
50371         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50372
50373 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50374
50375         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50376         * modules/openat (Files): Remove openat-die.c.
50377         (Depends-on): Add openat-die.
50378         * modules/openat-die: New module.
50379
50380 2007-05-06  Bruno Haible  <bruno@clisp.org>
50381
50382         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50383         Update with info about Cygwin.
50384         * doc/functions/fprintf.texi: Update.
50385         * doc/functions/printf.texi: Update.
50386         * doc/functions/snprintf.texi: Update.
50387         * doc/functions/sprintf.texi: Update.
50388         * doc/functions/vfprintf.texi: Update.
50389         * doc/functions/vprintf.texi: Update.
50390         * doc/functions/vsnprintf.texi: Update.
50391         * doc/functions/vsprintf.texi: Update.
50392         Reported by Eric Blake.
50393
50394 2007-05-06  Bruno Haible  <bruno@clisp.org>
50395
50396         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50397         padding ourselves for the floating-point directives.
50398         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50400         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50401         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50402         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50403         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50404         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50405         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50406         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50407         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50408         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50409         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50410         * tests/test-snprintf-posix.h (test_function): Also check the width
50411         and some flags in the %f directive.
50412         * tests/test-sprintf-posix.h (test_function): Likewise.
50413         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50414         * tests/test-vasprintf-posix.c (test_function): Likewise.
50415         * doc/functions/fprintf.texi: Update.
50416         * doc/functions/printf.texi: Update.
50417         * doc/functions/snprintf.texi: Update.
50418         * doc/functions/sprintf.texi: Update.
50419         * doc/functions/vfprintf.texi: Update.
50420         * doc/functions/vprintf.texi: Update.
50421         * doc/functions/vsnprintf.texi: Update.
50422         * doc/functions/vsprintf.texi: Update.
50423
50424 2007-05-06  Bruno Haible  <bruno@clisp.org>
50425
50426         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50427         pass the ' flag character to sprintf or snprintf.
50428         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50429         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50430         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50431         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50432         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50433         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50434         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50435         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50436         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50437         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50438         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50439         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50440         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50441         flag.
50442         * tests/test-sprintf-posix.h (test_function): Likewise.
50443         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50444         * tests/test-vasprintf-posix.c (test_function): Likewise.
50445         * doc/functions/fprintf.texi: Update.
50446         * doc/functions/printf.texi: Update.
50447         * doc/functions/snprintf.texi: Update.
50448         * doc/functions/sprintf.texi: Update.
50449         * doc/functions/vfprintf.texi: Update.
50450         * doc/functions/vprintf.texi: Update.
50451         * doc/functions/vsnprintf.texi: Update.
50452         * doc/functions/vsprintf.texi: Update.
50453
50454 2007-05-01  Bruno Haible  <bruno@clisp.org>
50455
50456         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50457
50458 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50459
50460         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50461         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50462
50463 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50464
50465         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
50466         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
50467         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
50468
50469 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
50470
50471         * lib/argp-help.c (struct hol_entry): New member `ord'.
50472         (HOL_ENTRY_PTRCMP): Use ord for comparison
50473         (hol_sort): Initialize ord.
50474
50475 2007-05-01  Bruno Haible  <bruno@clisp.org>
50476
50477         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
50478         Reported by Eric Blake.
50479         * doc/gnulib.texi (Function Substitutes): Update.
50480
50481 2007-05-01  Bruno Haible  <bruno@clisp.org>
50482
50483         * doc/functions.texi: Remove file, now redundant through
50484         doc/functions/*.texi.
50485
50486 2007-05-01  Bruno Haible  <bruno@clisp.org>
50487
50488         * modules/argp (Depends-on): Add sleep.
50489
50490 2007-05-01  Bruno Haible  <bruno@clisp.org>
50491
50492         * modules/sleep-tests: New file.
50493         * tests/test-sleep.c: New file.
50494
50495         * modules/sleep: New file.
50496         * lib/sleep.c: New file.
50497         * m4/sleep.m4: New file.
50498         * lib/unistd_.h (sleep): New declaration.
50499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
50500         HAVE_SLEEP.
50501         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
50502         * doc/functions/sleep.texi: Document the sleep module.
50503
50504 2007-05-01  Bruno Haible  <bruno@clisp.org>
50505
50506         * lib/sigprocmask.h: Remove file.
50507         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
50508         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
50509         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
50510         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
50511         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50512         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
50513         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
50514         HAVE_SIGSET_T as a shell variable.
50515         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
50516         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
50517         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
50518         (Depends-on): Add signal. Remove verify.
50519         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50520         (Include): Mention <signal.h> instead of sigprocmask.h.
50521         * NEWS: Mention the change.
50522         * lib/fatal-signal.c: Don't include sigprocmask.h.
50523
50524 2007-05-01  Bruno Haible  <bruno@clisp.org>
50525
50526         * modules/signal: New file.
50527         * lib/signal_.h: New file.
50528         * m4/signal_h.m4: New file.
50529
50530 2007-05-01  Bruno Haible  <bruno@clisp.org>
50531
50532         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
50533         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
50534         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
50535         HAVE_WCTYPE_CTMP_BUG into wctype.h.
50536
50537 2007-05-01  Bruno Haible  <bruno@clisp.org>
50538
50539         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
50540         configure time.
50541         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
50542         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
50543         * modules/sys_stat (Makefile.am): Substitute their values into
50544         sys/stat.h.
50545
50546 2007-05-01  Bruno Haible  <bruno@clisp.org>
50547
50548         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
50549         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
50550         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
50551
50552 2007-05-01  Bruno Haible  <bruno@clisp.org>
50553
50554         * doc/header/assert.texi: Undo last change: don't mention the gnulib
50555         'assert' module here.
50556
50557 2007-05-01  Bruno Haible  <bruno@clisp.org>
50558
50559         * doc/functions/*.texi: New files.
50560         * doc/functions/google-ranking.txt: New file.
50561         * doc/gnulib.texi (Function Substitutes): New chapter.
50562         (ctime, inet_ntoa): Remove sections.
50563         * doc/ctime.texi: Remove file.
50564         * doc/inet_ntoa.texi: Remove file.
50565         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
50566         dependencies.
50567         (%.info): New rule, specifying a --reference-limit.
50568
50569 2007-05-01  Bruno Haible  <bruno@clisp.org>
50570
50571         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
50572
50573 2007-05-01  Bruno Haible  <bruno@clisp.org>
50574
50575         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
50576         the portability of 'mkdir' to mingw systems.
50577
50578 2007-05-01  Bruno Haible  <bruno@clisp.org>
50579
50580         * doc/headers/google-ranking.txt: New file.
50581
50582 2007-04-30  Eric Blake  <ebb9@byu.net>
50583
50584         Prefer fseeko to fseek.
50585         * modules/getpass (Depends-on): Add fseeko.
50586         * lib/getpass.c (getpass): Use fseeko, not fseek.
50587
50588 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
50589
50590         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
50591         assumes the sorting is stable, while most qsort implementations
50592         are not.  Use argument addresses to ensure they never compare as
50593         equal.
50594
50595         * tests/test-argp-2.sh (usage-indent test): Fix output
50596         (func_compare): Restore diff options
50597         * tests/test-argp.c: Restore #include "progname.h"
50598
50599 2007-04-29  Bruno Haible  <bruno@clisp.org>
50600
50601         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
50602         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50603         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
50604         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50605         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
50606         (configure.ac): Define CHECK_SNPRINTF_POSIX.
50607         (TESTS, check_PROGRAMS): Add test-snprintf.
50608         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
50609         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
50610         (TESTS, check_PROGRAMS): Add test-vsnprintf.
50611         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
50612         assertions that fail on HP-UX, OSF/1, or IRIX.
50613         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
50614
50615 2007-04-29  Bruno Haible  <bruno@clisp.org>
50616
50617         * MODULES.html.sh (posix_functions): Remove 'contents'.
50618
50619 2007-04-29  Karl Berry  <karl@gnu.org>
50620
50621         * config/srclist.txt (gendocs_template_min): new entry.
50622
50623 2007-04-29  Bruno Haible  <bruno@clisp.org>
50624
50625         Work around fpurge bug on BSD systems.
50626         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
50627         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
50628         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
50629         fpurge to rpl_fpurge if the system already has this function.
50630         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50631         the case where the system already has this function. Correct invariants
50632         on BSD systems.
50633         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50634         BSD systems.
50635
50636 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50637
50638         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50639         proposed by Sven Verdoolaege.
50640
50641         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50642         options.
50643         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50644         (usage and help tests): Update
50645
50646 2007-04-29  Bruno Haible  <bruno@clisp.org>
50647
50648         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50649         Print more information in case of failure. Disable a test on BeOS.
50650
50651 2007-04-29  Bruno Haible  <bruno@clisp.org>
50652
50653         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50654         This helps debugging on systems on which no gdb is available.
50655
50656 2007-04-29  Bruno Haible  <bruno@clisp.org>
50657
50658         * lib/freading.h: Improve comments.
50659         * lib/fwriting.h: Likewise.
50660         * tests/test-freading.c (main): Don't check freading immediately after
50661         repositioning. Needed for glibc.
50662
50663 2007-04-29  Bruno Haible  <bruno@clisp.org>
50664
50665         * lib/freading.c (freading): Trivial simplification.
50666
50667 2007-04-28  Bruno Haible  <bruno@clisp.org>
50668
50669         * tests/test-fwriting.c (main): Also test the interaction between
50670         fflush and fwriting.
50671         * modules/fwriting-tests (Depends-on): Add fflush.
50672
50673         * tests/test-freading.c (main): Also test the interaction between
50674         fflush and freading.
50675         * modules/freading-tests (Depends-on): Add fflush.
50676
50677 2007-04-28  Bruno Haible  <bruno@clisp.org>
50678
50679         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50680         fseeko and ftello.
50681         Suggested by Eric Blake.
50682
50683 2007-04-28  Jim Meyering  <jim@meyering.net>
50684
50685         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50686         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50687         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50688
50689 2007-04-27  Eric Blake  <ebb9@byu.net>
50690
50691         * doc/headers/assert.texi (assert.h): Document assert module use.
50692
50693 2007-04-27  Bruno Haible  <bruno@clisp.org>
50694
50695         * doc/headers/*.texi: New files.
50696         * doc/gnulib.texi (Header File Substitutes): New chapter.
50697         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50698         dependencies.
50699         (standards.info ,standards.html, standards.dvi): Update dependencies.
50700         (mostlyclean, clean): New targets.
50701
50702 2007-04-27  Bruno Haible  <bruno@clisp.org>
50703
50704         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50705         * modules/sysexits (Files, Makefile.am): Update.
50706
50707         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50708         * modules/sys_socket (Files, Makefile.am): Update.
50709
50710         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50711         * modules/sys_stat (Files, Makefile.am): Update.
50712
50713 2007-04-27  Eric Blake  <ebb9@byu.net>
50714
50715         * lib/freading.h: Improve comments.
50716         * lib/fwriting.h: Likewise.
50717         * lib/fflush.c: Likewise.
50718
50719         Fix closein for mingw.
50720         * modules/closein-tests: Add tests for closein.
50721         * tests/test-closein.c: New file.
50722         * tests/test-closein.sh: Likewise.
50723         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50724         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50725
50726 2007-04-27  Bruno Haible  <bruno@clisp.org>
50727
50728         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50729         version is < 6.
50730         * lib/math_.h [__DECC]: Likewise.
50731         * lib/stdio_.h [__DECC]: Likewise.
50732         * lib/stdlib_.h [__DECC]: Likewise.
50733         * lib/string_.h [__DECC]: Likewise.
50734         * lib/time_.h [__DECC]: Likewise.
50735         * lib/wchar_.h [__DECC]: Likewise.
50736         * lib/wctype_.h [__DECC]: Likewise.
50737
50738 2007-04-27  Bruno Haible  <bruno@clisp.org>
50739
50740         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
50741
50742 2007-04-27  Bruno Haible  <bruno@clisp.org>
50743
50744         * lib/fflush.c: Add comments.
50745         * modules/fpurge-tests (Depends-on): Add fflush.
50746         * modules/freadable-tests (Depends-on): Likewise.
50747         * modules/fwritable-tests (Depends-on): Likewise.
50748
50749 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
50750
50751         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
50752         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
50753         Report by Bruno Haible <bruno@clisp.org>.
50754
50755 2007-04-26  Eric Blake  <ebb9@byu.net>
50756
50757         Fix fflush on mingw.
50758         * modules/fflush (Depends-on): Add freading.
50759         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
50760         but unread data.
50761
50762 2007-04-26  Eric Blake  <ebb9@byu.net>
50763         and Bruno Haible  <bruno@clisp.org>
50764
50765         Implement freading and fwriting.
50766         * lib/freading.c: New file.
50767         * lib/freading.h: Likewise.
50768         * m4/freading.m4: Likewise.
50769         * modules/freading: Likewise.
50770         * modules/freading-tests: Likewise.
50771         * tests/test-freading.c: Likewise.
50772         * lib/fwriting.c: New file.
50773         * lib/fwriting.h: Likewise.
50774         * m4/fwriting.m4: Likewise.
50775         * modules/fwriting: Likewise.
50776         * modules/fwriting-tests: Likewise.
50777         * tests/test-fwriting.c: Likewise.
50778         * MODULES.html.sh (File stream based Input/Output): Mention them.
50779
50780 2007-04-26  Bruno Haible  <bruno@clisp.org>
50781
50782         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
50783         'long' when we assume it.
50784         Suggested by Eric Blake.
50785
50786 2007-04-26  Bruno Haible  <bruno@clisp.org>
50787
50788         Ensure fseeko, ftello are declared on glibc systems.
50789         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
50790         * modules/fseeko (configure.ac-early): Likewise.
50791         * modules/ftello (configure.ac-early): Likewise.
50792         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
50793         AC_FUNC_FSEEKO for this.
50794         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
50795         (gl_CHECK_FSEEKO): Remove macro.
50796
50797 2007-04-26  Bruno Haible  <bruno@clisp.org>
50798
50799         * tests/test-fflush.c (main): Also check the ftell result after
50800         fflush and fseek/fseeko.
50801         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
50802         file descriptor position cache in the stream.
50803         * lib/fseeko.c (rpl_fseeko): Likewise.
50804
50805 2007-04-26  Bruno Haible  <bruno@clisp.org>
50806
50807         * modules/fflush-tests (Depends-on): Add fseeko.
50808
50809 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
50810             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50811
50812         * lib/argz_.h: ensure error_t definition is obtained in same
50813         mechanism system argz.h would have.
50814         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
50815         argz facilities are known bad.  Err on the side of caution if
50816         cross-compiling.
50817
50818 2007-04-25  Eric Blake  <ebb9@byu.net>
50819
50820         * lib/fpurge.c (includes): Use stdlib.h for free.
50821         * tests/test-fflush.c (main): Also test fflush-fseeko.
50822
50823 2007-04-25  Bruno Haible  <bruno@clisp.org>
50824
50825         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
50826         * lib/fseeko.c: New file.
50827         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
50828         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
50829         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
50830         gl_FUNC_FSEEKO.
50831         (gl_FUNC_FSEEKO): Invoke it.
50832         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
50833         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
50834         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
50835
50836 2007-04-25  Bruno Haible  <bruno@clisp.org>
50837
50838         * modules/fflush (Depends-on): Add ftello.
50839
50840 2007-04-25  Bruno Haible  <bruno@clisp.org>
50841
50842         * modules/ftello-tests: New file.
50843         * tests/test-ftello.c: New file.
50844
50845         * modules/ftello: New file.
50846         * m4/ftello.m4: New file.
50847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
50848         HAVE_FTELLO.
50849         * lib/stdio_.h (ftello): New declaration.
50850         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
50851         HAVE_FTELLO.
50852
50853 2007-04-25  Bruno Haible  <bruno@clisp.org>
50854
50855         * modules/fseeko-tests: New file.
50856         * tests/test-fseeko.c: New file.
50857
50858         * modules/fseeko: New file.
50859         * m4/fseeko.m4: New file.
50860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
50861         HAVE_FSEEKO.
50862         * lib/stdio_.h (fseeko): New declaration.
50863         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
50864         HAVE_FSEEKO.
50865
50866 2007-04-25  Bruno Haible  <bruno@clisp.org>
50867
50868         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
50869
50870 2007-04-25  Bruno Haible  <bruno@clisp.org>
50871
50872         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
50873         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
50874         * tests/test-unistd.c: Likewise.
50875         * tests/test-fcntl.c: Likewise.
50876
50877 2007-04-23  Eric Blake  <ebb9@byu.net>
50878
50879         * lib/fflush.c: Fix missing include.
50880         Reported by Bruno Haible.
50881
50882 2007-04-23  Bruno Haible  <bruno@clisp.org>
50883
50884         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
50885         Reported by Eric Blake.
50886
50887 2007-04-23  Bruno Haible  <bruno@clisp.org>
50888
50889         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
50890
50891 2007-04-23  Bruno Haible  <bruno@clisp.org>
50892
50893         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
50894
50895 2007-04-23  Bruno Haible  <bruno@clisp.org>
50896
50897         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
50898         Needed on HP-UX 11.
50899
50900 2007-04-16  Eric Blake  <ebb9@byu.net>
50901
50902         Make fflush rely on fpurge.
50903         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
50904         open coding all variants.
50905         * modules/fflush (Depends-on): Add fpurge and unistd.
50906         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
50907         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
50908
50909         Fix --with-tests compilation on cygwin.
50910         * modules/argmatch-tests (Makefile.am): List gnulib library first
50911         in LDADD.
50912         * modules/argp-tests (Makefile.am): Likewise.
50913         * modules/array-list-tests (Makefile.am): Likewise.
50914         * modules/array-oset-tests (Makefile.am): Likewise.
50915         * modules/avltree-list-tests (Makefile.am): Likewise.
50916         * modules/avltree-oset-tests (Makefile.am): Likewise.
50917         * modules/avltreehash-list-tests (Makefile.am): Likewise.
50918         * modules/carray-list-tests (Makefile.am): Likewise.
50919         * modules/dirname-tests (Makefile.am): Likewise.
50920         * modules/frexp-tests (Makefile.am): Likewise.
50921         * modules/isnanl-tests (Makefile.am): Likewise.
50922         * modules/linked-list-tests (Makefile.am): Likewise.
50923         * modules/linkedhash-list-tests (Makefile.am): Likewise.
50924         * modules/lock-tests (Makefile.am): Likewise.
50925         * modules/rbtree-list-tests (Makefile.am): Likewise.
50926         * modules/rbtree-oset-tests (Makefile.am): Likewise.
50927         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
50928         * modules/tls-tests (Makefile.am): Likewise.
50929         * modules/tsearch-tests (Makefile.am): Likewise.
50930         * modules/xvasprintf-tests (Makefile.am): Likewise.
50931
50932         Fix fpurge for cygwin.
50933         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
50934         value.
50935         * modules/fpurge-tests (Depends-on): Clean up trash.
50936
50937 2007-04-16  Simon Josefsson  <simon@josefsson.org>
50938
50939         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
50940
50941         * m4/autobuild.m4: Re-indent.
50942
50943 2007-04-13  Bruno Haible  <bruno@clisp.org>
50944
50945         * modules/fpurge-tests: New file.
50946         * tests/test-fpurge.c: New file.
50947
50948         * modules/fpurge: New file.
50949         * lib/fpurge.h: New file.
50950         * lib/fpurge.c: New file.
50951         * m4/fpurge.m4: New file.
50952
50953 2007-04-13  Bruno Haible  <bruno@clisp.org>
50954
50955         * modules/fbufmode-tests: New file.
50956         * tests/test-fbufmode.c: New file.
50957
50958         * modules/fbufmode: New file.
50959         * lib/fbufmode.h: New file.
50960         * lib/fbufmode.c: New file.
50961         * m4/fbufmode.m4: New file.
50962
50963 2007-04-13  Bruno Haible  <bruno@clisp.org>
50964
50965         * modules/fwritable-tests: New file.
50966         * tests/test-fwritable.c: New file.
50967
50968         * modules/fwritable: New file.
50969         * lib/fwritable.h: New file.
50970         * lib/fwritable.c: New file.
50971         * m4/fwritable.m4: New file.
50972
50973 2007-04-13  Bruno Haible  <bruno@clisp.org>
50974
50975         * modules/freadable-tests: New file.
50976         * tests/test-freadable.c: New file.
50977
50978         * modules/freadable: New file.
50979         * lib/freadable.h: New file.
50980         * lib/freadable.c: New file.
50981         * m4/freadable.m4: New file.
50982
50983 2007-04-13  Bruno Haible  <bruno@clisp.org>
50984
50985         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50986         MOSTLYCLEANFILES.
50987
50988 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50989
50990         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50991         gzip bootstrap.conf to avoid dragging in i18n machinery.
50992         (gnulib_tool_option): Use it.
50993
50994 2007-04-13  Bruno Haible  <bruno@clisp.org>
50995
50996         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50997         %F directives.
50998         * tests/test-vasprintf-posix.c (test_function): Likewise.
50999         * tests/test-snprintf-posix.h (test_function): Likewise.
51000         * tests/test-sprintf-posix.h (test_function): Likewise.
51001         * tests/test-fprintf-posix.h (test_function): Likewise.
51002         * tests/test-printf-posix.h (test_function): Likewise.
51003         * tests/test-fprintf-posix.out: Likewise.
51004
51005 2007-04-13  Bruno Haible  <bruno@clisp.org>
51006
51007         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51008         * modules/tls-tests (configure.ac): Likewise.
51009         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51010
51011 2007-04-13  Bruno Haible  <bruno@clisp.org>
51012
51013         * lib/tls.c (glthread_tls_get): Fix return type.
51014         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51015
51016 2007-04-12  Eric Blake  <ebb9@byu.net>
51017
51018         * modules/gettime (Depends-on): Remove gettime.
51019         Reported by Dmitry V. Levin.
51020
51021 2007-04-12  Bruno Haible  <bruno@clisp.org>
51022
51023         * modules/fflush (Include): Mention <stdio.h>.
51024         * modules/strtoimax (Include): Mention <inttypes.h>.
51025         * modules/strtoumax (Include): Likewise.
51026
51027 2007-04-12  Eric Blake  <ebb9@byu.net>
51028
51029         * .cvsignore: New file.
51030         * .gitignore: Likewise.
51031
51032 2007-04-12  Bruno Haible  <bruno@clisp.org>
51033
51034         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51035         not before, since $(LDADD) often contains libgnu.a.
51036         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51037         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51038         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51039         Needed on Cygwin.
51040
51041 2007-04-12  Eric Blake  <ebb9@byu.net>
51042
51043         Work around glibc's failure to flush stdin on fclose.
51044         * lib/closein.c (close_stdin): Flush stdin before closing.
51045
51046         Work around glibc's failure to reset seekable stdin on exit.
51047         * modules/closein: New module.
51048         * lib/closein.c: New file.
51049         * lib/closein.h: Likewise.
51050         * m4/closein.m4: Likewise.
51051         * MODULES.html.sh (File stream based Input/Output): Document it.
51052
51053 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51054
51055         * gnulib-tool: Rename generated 'autobuild' script to
51056         'do-autobuild' in --create-megatestdir output.
51057
51058         * doc/gnulib.texi (Build robot for gnulib): Fix.
51059
51060 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51061
51062         * modules/sysexits (Depends-on): Add absolute-header.
51063
51064 2007-04-12  Eric Blake  <ebb9@byu.net>
51065
51066         No need to preserve errno on success.
51067         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51068         Reported by Bruno Haible.
51069
51070 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51071
51072         * MODULES.html.sh (Support for maintaining and releasing
51073         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51074
51075 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51076
51077         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51078
51079 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51080
51081         * modules/autobuild: New module.
51082
51083         * m4/autobuild.m4: New file.
51084
51085 2007-04-11  Bruno Haible  <bruno@clisp.org>
51086
51087         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51088         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51089         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51090         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51091         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51092         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51093         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51094         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51095         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51096         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51097         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51098         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51099         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51100         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51101         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51102         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51103         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51104         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51105         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51106         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51107         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51108         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51110         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51111         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51112         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51113         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51114         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51115         Reported by Eric Blake.
51116
51117 2007-04-11  Bruno Haible  <bruno@clisp.org>
51118
51119         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51120
51121 2007-04-10  Bruno Haible  <bruno@clisp.org>
51122
51123         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51124         for NaN and Infinity. Needed on FreeBSD 6.1.
51125         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51126         regarding results for "%010a" of Infinity and NaN.
51127         * tests/test-vasprintf-posix.c (test_function): Likewise.
51128         * tests/test-snprintf-posix.h (test_function): Likewise.
51129         * tests/test-sprintf-posix.h (test_function): Likewise.
51130         * tests/test-fprintf-posix.h (test_function): Likewise.
51131         * tests/test-printf-posix.h (test_function): Likewise.
51132         * tests/test-fprintf-posix.out: Likewise.
51133
51134 2007-04-10  Bruno Haible  <bruno@clisp.org>
51135
51136         * modules/locale-tests: New file.
51137         * tests/test-locale.c: New file.
51138
51139         * modules/locale: New file.
51140         * lib/locale_.h: New file.
51141         * m4/locale_h.m4: New file.
51142
51143 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51144             Bruno Haible  <bruno@clisp.org>
51145
51146         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51147         be determined, test for availability of the copysignf, copysign,
51148         copysignl functions.
51149         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51150         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51151         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51152
51153 2007-04-09  Eric Blake  <ebb9@byu.net>
51154
51155         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51156         * modules/stdio (Makefile.am): Support fflush.
51157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51158         * modules/fflush: New file.
51159         * lib/fflush.c: Likewise.
51160         * m4/fflush.m4: Likewise.
51161         * modules/fflush-tests: New test.
51162         * tests/test-fflush.c: Likewise.
51163         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51164
51165 2007-04-06  Bruno Haible  <bruno@clisp.org>
51166
51167         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51168         (VASNPRINTF): Use signbit for faster determination whether to print a
51169         minus sign.
51170         * modules/vasnprintf (Files): Remove lib/float+.h.
51171         * modules/fprintf-posix (Depends-on): Add signbit.
51172         * modules/snprintf-posix (Depends-on): Likewise.
51173         * modules/sprintf-posix (Depends-on): Likewise.
51174         * modules/vasnprintf-posix (Depends-on): Likewise.
51175         * modules/vasprintf-posix (Depends-on): Likewise.
51176         * modules/vfprintf-posix (Depends-on): Likewise.
51177         * modules/vsnprintf-posix (Depends-on): Likewise.
51178         * modules/vsprintf-posix (Depends-on): Likewise.
51179
51180 2007-04-06  Bruno Haible  <bruno@clisp.org>
51181
51182         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51183         * tests/test-frexpl.c (main): Likewise.
51184         * tests/test-ldexpl.c (main): Likewise.
51185         * modules/frexp-tests (Depends-on): Add signbit.
51186         * modules/frexpl-tests (Depdends-on): Likewise.
51187         * modules/ldexpl-tests (Depdends-on): Likewise.
51188
51189 2007-04-06  Bruno Haible  <bruno@clisp.org>
51190
51191         * modules/signbit-tests: New file.
51192         * tests/test-signbit.c: New file.
51193
51194         * modules/signbit: New file.
51195         * lib/signbitf.c: New file.
51196         * lib/signbitd.c: New file.
51197         * lib/signbitl.c: New file.
51198         * m4/signbit.m4: New file.
51199         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51200         (signbit): New macro.
51201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51202         REPLACE_SIGNBIT.
51203         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51204         REPLACE_FREXPL into math.h.
51205
51206 2007-04-06  Bruno Haible  <bruno@clisp.org>
51207
51208         * modules/isnanf-nolibm-tests: New file.
51209         * tests/test-isnanf.c: New file.
51210
51211         * modules/isnanf-nolibm: New file.
51212         * lib/isnanf.h: New file.
51213         * lib/isnanf.c: New file.
51214         * lib/isnan.c: Consider the USE_FLOAT macro.
51215         * m4/isnanf.m4: New file.
51216
51217 2007-04-06  Bruno Haible  <bruno@clisp.org>
51218
51219         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51220         (Link): New section.
51221
51222         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51223
51224 2007-04-06  Bruno Haible  <bruno@clisp.org>
51225
51226         Assume the 'long double' type.
51227         * m4/longdouble.m4: Remove file.
51228         * config/srclist.txt: Don't mention longdouble.m4.
51229         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51230         * lib/float+.h: Likewise.
51231         * lib/frexp.c: Likewise.
51232         * lib/printf-args.h: Likewise.
51233         * lib/printf-args.c: Likewise.
51234         * lib/printf-frexp.c: Likewise.
51235         * lib/printf-parse.c: Likewise.
51236         * lib/vasnprintf.c: Likewise.
51237         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51238         * m4/intl.m4: Likewise.
51239         * m4/isnanl.m4: Likewise.
51240         * m4/printf.m4: Likewise.
51241         * m4/printf-frexpl.m4: Likewise.
51242         * m4/vasnprintf.m4: Likewise.
51243         * modules/allocsa (Files): Remove m4/longdouble.m4.
51244         * modules/gettext (Files): Likewise.
51245         * modules/relocatable-prog-wrapper (Files): Likewise.
51246         * modules/vasnprintf (Files): Likewise.
51247         * modules/isnanl (Files): Likewise.
51248         (Include): Simplify.
51249         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51250         (Include): Simplify.
51251         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51252         (Include): Simplify.
51253         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51254         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51255         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51256         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51257         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51258         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51259         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51260         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51261         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51262         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51263         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51264         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51265         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51266         * tests/test-isnanl.c: Likewise.
51267         * tests/test-snprintf-posix.h: Likewise.
51268         * tests/test-sprintf-posix.h: Likewise.
51269         * tests/test-vasnprintf-posix.c: Likewise.
51270         * tests/test-vasnprintf-posix2.c: Likewise.
51271         * tests/test-vasprintf-posix.c: Likewise.
51272
51273 2007-04-06  Bruno Haible  <bruno@clisp.org>
51274
51275         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51276         * lib/math_.h [__DECC]: Include the overridden include file through
51277         #include_next, outside the double-inclusion guard.
51278         * lib/stdio_.h [__DECC]: Likewise.
51279         * lib/stdlib_.h [__DECC]: Likewise.
51280         * lib/string_.h [__DECC]: Likewise.
51281         * lib/time_.h [__DECC]: Likewise.
51282         * lib/wchar_.h [__DECC]: Likewise.
51283         * lib/wctype_.h [__DECC]: Likewise.
51284         * lib/inttypes_.h [__DECC]: Likewise.
51285         Reported by Albert Chin <china@thewrittenword.com> in
51286         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51287
51288 2007-04-04  Eric Blake  <ebb9@byu.net>
51289
51290         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51291         1.5.x.
51292
51293 2007-04-04  Bruno Haible  <bruno@clisp.org>
51294
51295         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51296         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51297
51298 2007-04-04  Bruno Haible  <bruno@clisp.org>
51299
51300         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51301         results for "%010a" of Infinity and NaN.
51302         * tests/test-vasprintf-posix.c (test_function): Likewise.
51303         * tests/test-snprintf-posix.h (test_function): Likewise.
51304         * tests/test-sprintf-posix.h (test_function): Likewise.
51305         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51306         * tests/test-printf-posix.h (test_function): Likewise.
51307         * tests/test-fprintf-posix.out: Update.
51308         Needed for FreeBSD 6.1.
51309
51310 2007-04-04  Bruno Haible  <bruno@clisp.org>
51311
51312         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51313         directly used by the gnulib modules nor by gnulib-tool.
51314
51315 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51316
51317         * DEPENDENCIES: Give overall description of version dependency
51318         desirability.  Use more-typical names for apps.
51319         Add shell, coreutils, diffutils, grep, tar, gzip.
51320
51321 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51322
51323         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51324
51325 2007-04-04  Karl Berry  <karl@gnu.org>
51326
51327         * MODULES.html.sh (func_module): missing '.
51328
51329 2007-04-03  Bruno Haible  <bruno@clisp.org>
51330
51331         * modules/argmatch-tests (Makefile.am): New variable
51332         test_argmatch_LDADD.
51333         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51334         * modules/array-list-tests (Makefile.am): New variable
51335         test_array_list_LDADD.
51336         * modules/array-oset-tests (Makefile.am): New variable
51337         test_array_oset_LDADD.
51338         * modules/avltree-list-tests (Makefile.am): New variable
51339         test_avltree_list_LDADD.
51340         * modules/avltree-oset-tests (Makefile.am): New variable
51341         test_avltree_oset_LDADD.
51342         * modules/avltreehash-list-tests (Makefile.am): New variable
51343         test_avltreehash_list_LDADD.
51344         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51345         test_canonicalize_lgpl_LDADD.
51346         * modules/carray-list-tests (Makefile.am): New variable
51347         test_carray_list_LDADD.
51348         * modules/dirname-tests (Makefile.am): New variable
51349         test_dirname_LDADD.
51350         * modules/linked-list-tests (Makefile.am): New variable
51351         test_linked_list_LDADD.
51352         * modules/linkedhash-list-tests (Makefile.am): New variable
51353         test_linkedhash_list_LDADD.
51354         * modules/rbtree-list-tests (Makefile.am): New variable
51355         test_rbtree_list_LDADD.
51356         * modules/rbtree-oset-tests (Makefile.am): New variable
51357         test_rbtree_oset_LDADD.
51358         * modules/rbtreehash-list-tests (Makefile.am): New variable
51359         test_rbtreehash_list_LDADD.
51360         * modules/xvasprintf-tests (Makefile.am): New variable
51361         test_xvasprintf_LDADD.
51362         Reported by Eric Blake.
51363
51364 2007-04-03  Eric Blake  <ebb9@byu.net>
51365
51366         * DEPENDENCIES: Weaken m4 requirements.
51367
51368 2007-04-03  Bruno Haible  <bruno@clisp.org>
51369
51370         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51371         * modules/isnanl-tests (configure.ac): Likewise.
51372
51373 2007-04-03  Ben Pfaff  <blp@gnu.org>
51374
51375         * modules/iconv_open: Add $(srcdir)/ to source directory
51376         references in Makefile fragments that call gperf, to fix VPATH
51377         builds.
51378
51379 2007-04-03  Bruno Haible  <bruno@clisp.org>
51380
51381         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51382         * lib/ldexpl.c: Undo last change.
51383
51384 2007-04-03  Bruno Haible  <bruno@clisp.org>
51385
51386         * modules/printf-frexpl (Depends-on): Undo last change.
51387         (Files): Add m4/ldexpl.m4.
51388
51389 2007-04-03  Bruno Haible  <bruno@clisp.org>
51390
51391         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51392         * modules/isnanl (Link): New section.
51393
51394         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51395         * modules/frexp (Link): New section.
51396
51397         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51398         * modules/frexpl (Link): New section.
51399
51400         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51401         * modules/ldexpl (Link): New section.
51402
51403 2007-04-03  Bruno Haible  <bruno@clisp.org>
51404
51405         * modules/TEMPLATE-EXTENDED: New file.
51406         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51407
51408 2007-04-03  Bruno Haible  <bruno@clisp.org>
51409
51410         * DEPENDENCIES: New file.
51411         Suggested by Simon Josefsson.
51412
51413 2007-04-03  Bruno Haible  <bruno@clisp.org>
51414
51415         * doc/gnulib.texi: Escape @.
51416
51417 2007-04-03  James Youngman  <jay@gnu.org>
51418         and Paul Eggert  <eggert@cs.ucla.edu>
51419
51420         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51421         birthtime on all systems that have birthtime, not just those which
51422         use st_birthtimensec rather than st_birthtim.  Putting zero in
51423         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51424         that the birth time is not available for files on an NFS mount.
51425
51426 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51427
51428         * modules/memxor: Move back from crypto/, suggested by Bruno.
51429         * modules/crypto/hmac-sha1: Fix memxor dependency.
51430
51431         * modules/crypto/gc: Moved from ../.
51432
51433 2007-04-02  Eric Blake  <ebb9@byu.net>
51434
51435         * lib/ldexpl.c (includes): Avoid libm.
51436
51437         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51438
51439 2007-04-02  Bruno Haible  <bruno@clisp.org>
51440
51441         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51442         on IRIX.
51443
51444 2007-04-02  Bruno Haible  <bruno@clisp.org>
51445
51446         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51447         x86 or x86_64 platforms running MacOS X.
51448         Reported by Ryan Schmidt <@ryandesign.com>.
51449
51450 2007-04-02  Bruno Haible  <bruno@clisp.org>
51451
51452         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51453         i386.
51454
51455 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51456
51457         * modules/crypto/arcfour: Moved from ../.
51458         * modules/crypto/arcfour-tests: Moved from ../.
51459         * modules/crypto/arctwo: Moved from ../.
51460         * modules/crypto/arctwo-tests: Moved from ../.
51461         * modules/crypto/des: Moved from ../.
51462         * modules/crypto/des-tests: Moved from ../.
51463         * modules/crypto/gc-arcfour: Moved from ../.
51464         * modules/crypto/gc-arcfour-tests: Moved from ../.
51465         * modules/crypto/gc-arctwo: Moved from ../.
51466         * modules/crypto/gc-arctwo-tests: Moved from ../.
51467         * modules/crypto/gc-des: Moved from ../.
51468         * modules/crypto/gc-des-tests: Moved from ../.
51469         * modules/crypto/gc-hmac-md5: Moved from ../.
51470         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
51471         * modules/crypto/gc-hmac-sha1: Moved from ../.
51472         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
51473         * modules/crypto/gc-md2: Moved from ../.
51474         * modules/crypto/gc-md2-tests: Moved from ../.
51475         * modules/crypto/gc-md4: Moved from ../.
51476         * modules/crypto/gc-md4-tests: Moved from ../.
51477         * modules/crypto/gc-md5: Moved from ../.
51478         * modules/crypto/gc-md5-tests: Moved from ../.
51479         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
51480         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
51481         * modules/crypto/gc-random: Moved from ../.
51482         * modules/crypto/gc-rijndael: Moved from ../.
51483         * modules/crypto/gc-rijndael-tests: Moved from ../.
51484         * modules/crypto/gc-sha1: Moved from ../.
51485         * modules/crypto/gc-sha1-tests: Moved from ../.
51486         * modules/crypto/gc-tests: Moved from ../.
51487         * modules/crypto/hmac-md5: Moved from ../.
51488         * modules/crypto/hmac-md5-tests: Moved from ../.
51489         * modules/crypto/hmac-sha1: Moved from ../.
51490         * modules/crypto/hmac-sha1-tests: Moved from ../.
51491         * modules/crypto/md2: Moved from ../.
51492         * modules/crypto/md2-tests: Moved from ../.
51493         * modules/crypto/md4: Moved from ../.
51494         * modules/crypto/md4-tests: Moved from ../.
51495         * modules/crypto/md5: Moved from ../.
51496         * modules/crypto/md5-tests: Moved from ../.
51497         * modules/crypto/memxor: Moved from ../.
51498         * modules/crypto/rijndael: Moved from ../.
51499         * modules/crypto/rijndael-tests: Moved from ../.
51500         * modules/crypto/sha1: Moved from ../.
51501
51502 2007-03-30  James Youngman  <jay@gnu.org>
51503
51504         * tests/test-stat-time.c (prepare_test): use chmod() rather than
51505         rename() to change the ctime of a file (because ctime is unaffected
51506         by rename on jfs2 on AIX 5.1).
51507         (main): Start by doing cleanup, in case a previous run failed leaving
51508         test files behind.
51509
51510 2007-03-31  Bruno Haible  <bruno@clisp.org>
51511
51512         Support old proprietary implementations of iconv.
51513         * modules/iconv_open: New file.
51514         * lib/iconv_.h: New file.
51515         * m4/iconv_h.m4: New file.
51516         * lib/iconv_open.c: New file.
51517         * lib/iconv_open-aix.gperf: New file.
51518         * lib/iconv_open-hpux.gperf: New file.
51519         * lib/iconv_open-irix.gperf: New file.
51520         * lib/iconv_open-osf.gperf: New file.
51521         * m4/iconv_open.m4: New file.
51522         * modules/linebreak (Depends-on): Add iconv_open.
51523         * modules/striconv (Depends-on): Likewise.
51524         * modules/striconveh (Depends-on): Likewise.
51525         * modules/unicodeio (Depends-on): Likewise.
51526         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
51527         (iconv_t)(-1).
51528         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
51529         conversion if cd is (iconv_t)(-1).
51530         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
51531         is not possible.
51532
51533 2007-03-31  Bruno Haible  <bruno@clisp.org>
51534
51535         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51536         work on Solaris either. Protect also second use of "autodetect_jp".
51537
51538 2007-03-31  Bruno Haible  <bruno@clisp.org>
51539
51540         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
51541         the function is not present.
51542
51543 2007-03-31  Bruno Haible  <bruno@clisp.org>
51544
51545         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
51546         the function is not present.
51547
51548 2007-03-31  Bruno Haible  <bruno@clisp.org>
51549
51550         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
51551         a bug in HP-UX iconv_open().
51552
51553 2007-03-31  Bruno Haible  <bruno@clisp.org>
51554
51555         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
51556         (Mathematics <math.h>): New section, add fpieee.
51557         (Input/output <stdio.h>): Add fseterr.
51558         (Mathematics <math.h>): New section, add printf-frexp.
51559         (Container data structures): Add sublist.
51560         (Core language properties): Add fpucw, inline.
51561         (Functions for greatest-width integer types <inttypes.h>): Add
51562         imaxabs, imaxdiv, inttypes.
51563         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
51564         isnanl-nolibm, ldexp.
51565         (Mathematics <math.h>): New section, add printf-frexpl.
51566         (Support for systems lacking POSIX:2001): Add fprintf-posix,
51567         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
51568         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
51569         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
51570         (Unicode string functions): Add unistr/u*-mbtoucr.
51571         (Java): Add javacomp-script, javaexec-script.
51572         (C#): Add csharpcomp-script, csharpexec-script.
51573         (Support for building libraries and executables): Add havelib,
51574         relocatable-*.
51575         (Support for maintaining and releasing projects): Renamed from
51576         'Support for maintaining and release projects'. Add announce-gen.
51577
51578 2007-03-31  Bruno Haible  <bruno@clisp.org>
51579
51580         * README: Talk primarily about git.
51581         (git and CVS): Renamed from CVS.
51582         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
51583         gnulib is available through git.
51584         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
51585
51586 2007-03-30  Bruno Haible  <bruno@clisp.org>
51587
51588         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
51589         * lib/poll_.h: Likewise.
51590         * lib/stat_.h: Likewise.
51591         * lib/sys_time_.h: Likewise.
51592         * lib/sysexit_.h: Likewise.
51593         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
51594         * lib/stdbool_.h: Likewise.
51595         * lib/byteswap_.h: Add double-inclusion guard.
51596
51597 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
51598
51599         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
51600
51601 2007-03-30  Karl Berry  <karl@gnu.org>
51602
51603         * config/srclist-update: double space after USA in the license
51604         substitution, since that's how it's usually (?) written.
51605
51606 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51607
51608         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
51609         reported by Bruno Haible.
51610
51611 2007-03-29  Bruno Haible  <bruno@clisp.org>
51612
51613         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
51614         a bug in AIX iconv().
51615
51616 2007-03-29  Bruno Haible  <bruno@clisp.org>
51617
51618         * modules/ldexpl-tests: New file.
51619         * tests/test-ldexpl.c: New file.
51620
51621 2007-03-29  Bruno Haible  <bruno@clisp.org>
51622
51623         * lib/ldexpl.c: Include fpucw.h.
51624         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
51625         multiplication.
51626         * modules/ldexpl (Depends-on): Add fpucw.
51627
51628 2007-03-29  Bruno Haible  <bruno@clisp.org>
51629
51630         * modules/ldexpl: New file.
51631         * m4/ldexpl.m4: New file.
51632         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51633         set.
51634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51635         REPLACE_LDEXPL.
51636         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51637         REPLACE_LDEXPL.
51638         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51639         gl_FUNC_LDEXPL_WORKS.
51640         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51641         * modules/mathl (Files): Remove lib/ldexpl.c.
51642         (Depends-on): Add ldexpl.
51643
51644 2007-03-29  Bruno Haible  <bruno@clisp.org>
51645
51646         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51647
51648 2007-03-29  Bruno Haible  <bruno@clisp.org>
51649
51650         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51651         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51652         and possibly also HP-UX.
51653         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51654         work on AIX, IRIX, HP-UX, OSF/1.
51655         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51656         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51657         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51658         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51659         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51660         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51661
51662 2007-03-29  Bruno Haible  <bruno@clisp.org>
51663
51664         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51665
51666 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51667
51668         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51669         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51670
51671 2007-03-29  Eric Blake  <ebb9@byu.net>
51672
51673         * lib/acl-internal.h: Remove redundant include.
51674         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51675         Cygwin when a file is locked.
51676
51677 2007-03-29  Bruno Haible  <bruno@clisp.org>
51678
51679         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51680         file.
51681         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51682
51683 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51684
51685         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51686         try to remove a parent directory if the child couldn't be removed
51687         (except for the first rmdir, which could fail because the child
51688         doesn't exist).  Problem reported by Jeff Blaine in
51689         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51690
51691 2007-03-28  Bruno Haible  <bruno@clisp.org>
51692
51693         * lib/striconveh.c (utf8conv_carefully): New function.
51694         (mem_cd_iconveh_internal): Invoke it.
51695
51696 2007-03-28  Bruno Haible  <bruno@clisp.org>
51697
51698         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51699         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51700         input.
51701         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51702         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51703         unistr/u8-uctomb.
51704
51705 2007-03-28  Bruno Haible  <bruno@clisp.org>
51706
51707         * modules/unistr/u8-mbtoucr: New file.
51708         * lib/unistr/u8-mbtoucr.c: New file.
51709         * modules/unistr/u16-mbtoucr: New file.
51710         * lib/unistr/u16-mbtoucr.c: New file.
51711         * modules/unistr/u16-mbtoucr: New file.
51712         * lib/unistr/u16-mbtoucr.c: New file.
51713         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51714
51715 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51716             Bruno Haible  <bruno@clisp.org>
51717
51718         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51719         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51720         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51721
51722         * m4/stdio_h.m4: Add stubs for vasprintf too.
51723
51724         * modules/stdio: Support vasprintf in sed command.
51725
51726         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51727         vasprintf.h.  Add stdio module indicator.
51728
51729         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51730         vasprintf.h.
51731
51732         * lib/vasprintf.h: File removed.
51733
51734         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51735         * lib/vasprintf.c: Ditto.
51736         * lib/xvasprintf.c: Ditto.
51737         * tests/test-vasprintf-posix.c: Ditto.
51738         * tests/test-vasprintf.c: Ditto.
51739
51740 2007-03-27  Bruno Haible  <bruno@clisp.org>
51741
51742         Make vasnprintf multithread-safe.
51743         * lib/vasnprintf.c (decimal_point_char): New function.
51744         (VASNPRINTF): Use it.
51745         Suggested by Simon Josefsson.
51746
51747 2007-03-27  Eric Blake  <ebb9@byu.net>
51748
51749         Support sub-second birthtime on cygwin.
51750         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
51751         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
51752         (get_stat_birthtime): Also work with st_birthtim.
51753
51754 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
51755
51756         * lib/stat-time.h (USE_BIRTHTIME): Remove.
51757         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
51758         (get_stat_birthtime_ns): Do not try to use "spare" fields.
51759         (get_stat_birthtime_ns): Simplify compile-time tests.
51760         (get_stat_birthtime): Change the API to look like
51761         get_stat_mtime etc., except return a negative tv_nsec on error.
51762         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
51763         Don't check for "spare" fields.
51764         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
51765         or for struct stat.st_birthtime, as these tests aren't used.
51766         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
51767
51768 2007-03-27  Bruno Haible  <bruno@clisp.org>
51769
51770         * lib/stat-time.h: Include <sys/stat.h>.
51771
51772 2007-03-27  James Youngman  <jay@gnu.org>
51773
51774         * lib/stat-time.h (get_stat_birthtime): New function for
51775           retrieving st_birthtime as provided by UFS2 (hence *BSD).
51776         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
51777           and its variants.
51778         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
51779         * modules/stat-time-test: New file.
51780         * tests/test-stat-time.c: New test, devised by Bruno Haible.
51781
51782 2007-03-26  Bruno Haible  <bruno@clisp.org>
51783
51784         Better support of signalling NaNs.
51785         * lib/atanl.c: Include isnanl.h.
51786         (atanl): Perform test for NaN at the beginning of the function and
51787         through a call to isnanl.
51788         * lib/cosl.c: Include isnanl.h.
51789         (cosl): Perform test for NaN at the beginning of the function and
51790         through a call to isnanl.
51791         * lib/ldexpl.c: Include isnanl.h.
51792         (ldexpl): Perform test for NaN through a call to isnanl.
51793         * lib/logl.c: Include isnanl.h.
51794         (logl): Perform test for NaN at the beginning of the function and
51795         through a call to isnanl.
51796         * lib/sinl.c: Include isnanl.h.
51797         (sinl): Perform test for NaN at the beginning of the function and
51798         through a call to isnanl.
51799         * lib/sqrtl.c: Include isnanl.h.
51800         (sqrtl): Perform test for NaN at the beginning of the function and
51801         through a call to isnanl.
51802         * lib/tanl.c: Include isnanl.h.
51803         (tanl): Perform test for NaN at the beginning of the function and
51804         through a call to isnanl.
51805         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
51806         * modules/mathl (Depends-on): Add isnanl.
51807
51808 2007-03-26  Eric Blake  <ebb9@byu.net>
51809
51810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
51811         regression in logic sense of previous patch.
51812
51813 2007-03-26  Bruno Haible  <bruno@clisp.org>
51814
51815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
51816         unportable shell command "if ! ...".
51817         Reported by Ralf Wildenhues.
51818
51819 2007-03-25  Bruno Haible  <bruno@clisp.org>
51820
51821         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
51822         <sysexits.h> file, and only add EX_CONFIG.
51823         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
51824         absolute file name and whether it is sufficient. Substitute also
51825         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
51826         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
51827         ABSOLUTE_SYSEXITS_H into sysexits.h.
51828
51829 2007-03-25  Bruno Haible  <bruno@clisp.org>
51830
51831         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
51832         hints is NULL.
51833
51834 2007-03-25  Bruno Haible  <bruno@clisp.org>
51835
51836         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
51837         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
51838
51839 2007-03-25  Bruno Haible  <bruno@clisp.org>
51840
51841         * lib/vasnprintf.c: Include langinfo.h.
51842         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
51843         multithread-safe.
51844         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
51845         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
51846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51847         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51850         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51851         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
51852         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51853         Reported by Simon Josefsson.
51854
51855 2007-03-25  Bruno Haible  <bruno@clisp.org>
51856
51857         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
51858         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
51859         * modules/vasnprintf (Depends-on): Add stdint.
51860
51861 2007-03-25  Bruno Haible  <bruno@clisp.org>
51862
51863         * modules/fpieee: New file.
51864         * m4/fpieee.m4: New file.
51865         * modules/isnan-nolibm (Depends-on): Add fpieee.
51866         * modules/isnanl-nolibm (Depends-on): Add fpieee.
51867         * modules/isnanl (Depends-on): Add fpieee.
51868
51869 2007-03-25  Bruno Haible  <bruno@clisp.org>
51870
51871         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
51872
51873 2007-03-25  Bruno Haible  <bruno@clisp.org>
51874
51875         Avoid test failures on IRIX 6.5.
51876         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
51877         (main): Use it.
51878         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
51879         macros.
51880         (main): Use them.
51881
51882 2007-03-25  Bruno Haible  <bruno@clisp.org>
51883
51884         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
51885         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
51886         exists but doesn't work.
51887         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
51888         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
51889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
51890         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
51891         math.h.
51892
51893 2007-03-25  Bruno Haible  <bruno@clisp.org>
51894
51895         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
51896         returns inf. Needed on IRIX 6.5.
51897
51898 2007-03-25  Bruno Haible  <bruno@clisp.org>
51899
51900         * tests/test-frexpl.c: Include isnanl-nolibm.h.
51901         (main): Use isnanl instead of x != x idiom.
51902         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
51903
51904         * tests/test-frexp.c: Include isnan.h.
51905         (main): Use isnan instead of x != x idiom.
51906         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
51907
51908 2007-03-25  Bruno Haible  <bruno@clisp.org>
51909
51910         * tests/test-frexp.c (NaN): New function/macro.
51911         (main): Use it instead of 0.0 / 0.0.
51912         * tests/test-isnan.c (NaN): New function/macro.
51913         (main): Use it instead of 0.0 / 0.0.
51914         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
51915         (test_function): Use it instead of 0.0 / 0.0.
51916         * tests/test-vasprintf-posix.c (NaN): New function/macro.
51917         (test_function): Use it instead of 0.0 / 0.0.
51918         * tests/test-snprintf-posix.h (NaN): New function/macro.
51919         (test_function): Use it instead of 0.0 / 0.0.
51920         * tests/test-sprintf-posix.h (NaN): New function/macro.
51921         (test_function): Use it instead of 0.0 / 0.0.
51922         * tests/test-fprintf-posix.h (NaN): New function/macro.
51923         (test_function): Use it instead of 0.0 / 0.0.
51924         * tests/test-printf-posix.h (NaN): New function/macro.
51925         (test_function): Use it instead of 0.0 / 0.0.
51926
51927         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
51928
51929 2007-03-25  Bruno Haible  <bruno@clisp.org>
51930
51931         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
51932
51933 2007-03-25  Bruno Haible  <bruno@clisp.org>
51934
51935         * lib/regexec.c (merge_state_with_log): Make static.
51936
51937 2007-03-25  Bruno Haible  <bruno@clisp.org>
51938
51939         * lib/trigl.c (kernel_rem_pio2): Make static.
51940
51941 2007-03-25  Bruno Haible  <bruno@clisp.org>
51942
51943         * lib/sincosl.c (sincosl_table): Make static.
51944
51945 2007-03-25  Bruno Haible  <bruno@clisp.org>
51946
51947         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
51948         if the compiler does not support C99.
51949
51950 2007-03-25  Bruno Haible  <bruno@clisp.org>
51951
51952         * modules/time (Makefile.am): Ensure all rule action lines start with a
51953         tab.
51954
51955 2007-03-24  Bruno Haible  <bruno@clisp.org>
51956
51957         * modules/tsearch-tests: New file.
51958         * tests/test-tsearch.sh: New file.
51959         * tests/test-tsearch.c: New file, mostly copied from glibc.
51960
51961         * modules/search-tests: New file.
51962         * tests/test-search.c: New file.
51963
51964         * modules/search: New file.
51965         * lib/search_.h: New file, incorporating lib/tsearch.h.
51966         * m4/search_h.m4: New file.
51967         * lib/tsearch.h: Remove file.
51968         * lib/tsearch.c: Include search.h instead of tsearch.h.
51969         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
51970         HAVE_TSEARCH.
51971         * modules/tsearch (Files): Remove lib/tsearch.h.
51972         (Depends-on): Add search.
51973         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
51974         (Include): Change tsearch.h into search.h.
51975
51976 2007-03-24  Bruno Haible  <bruno@clisp.org>
51977
51978         * modules/fpucw: New file.
51979         * lib/fpucw.h: New file.
51980         * lib/frexp.c: Include fpucw.h.
51981         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51982         (FUNC): Use them.
51983         * lib/printf-frexp.c: Include fpucw.h.
51984         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51985         (FUNC): Use them.
51986         * lib/vasnprintf.c: Include fpucw.h.
51987         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51988         'long double' calculations.
51989         * tests/test-frexpl.c: Include fpucw.h.
51990         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51991         * tests/test-printf-frexpl.c: Include fpucw.h.
51992         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51993         * modules/frexpl (Depends-on): Add fpucw.
51994         * modules/printf-frexpl (Depends-on): Likewise.
51995         * modules/fprintf-posix (Depends-on): Likewise.
51996         * modules/snprintf-posix (Depends-on): Likewise.
51997         * modules/sprintf-posix (Depends-on): Likewise.
51998         * modules/vasnprintf-posix (Depends-on): Likewise.
51999         * modules/vasprintf-posix (Depends-on): Likewise.
52000         * modules/vfprintf-posix (Depends-on): Likewise.
52001         * modules/vsnprintf-posix (Depends-on): Likewise.
52002         * modules/vsprintf-posix (Depends-on): Likewise.
52003         * modules/frexpl-tests (Depends-on): Likewise.
52004         * modules/printf-frexpl-tests (Depends-on): Likewise.
52005
52006 2007-03-24  Bruno Haible  <bruno@clisp.org>
52007
52008         * lib/float+.h: New file.
52009         * lib/isnan.c: Include float+.h.
52010         (SIZE): New macro.
52011         (FUNC): Compare only SIZE bytes of the value.
52012         * lib/vasnprintf.c: Include float+.h.
52013         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52014         SIZEOF_LDBL or SIZEOF_DBL bytes.
52015         * modules/isnan-nolibm (Files): Add lib/float+.h.
52016         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52017         * modules/isnanl (Files): Add lib/float+.h.
52018         * modules/vasnprintf (Files): Add lib/float+.h.
52019
52020 2007-03-24  Bruno Haible  <bruno@clisp.org>
52021
52022         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52023         include isnanl-nolibm.h.
52024
52025 2007-03-24  Bruno Haible  <bruno@clisp.org>
52026
52027         * tests/test-read-file.c (main): Don't produce spurious output for
52028         expected situations. Make the test fail if it encountered unexpected
52029         results.
52030
52031 2007-03-24  Bruno Haible  <bruno@clisp.org>
52032
52033         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52034         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52035
52036 2007-03-24  Bruno Haible  <bruno@clisp.org>
52037
52038         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52039
52040 2007-03-24  Bruno Haible  <bruno@clisp.org>
52041
52042         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52043         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52044
52045         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52046         * modules/utf8-ucs4: Turn into a symbolic link to module
52047         unistr/u8-mbtouc.
52048
52049         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52050         utf8-ucs4-unsafe.
52051         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52052         unistr/u8-mbtouc-unsafe.
52053
52054         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52055         * modules/utf16-ucs4: Turn into a symbolic link to module
52056         unistr/u16-mbtouc.
52057
52058         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52059         utf16-ucs4-unsafe.
52060         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52061         unistr/u16-mbtouc-unsafe.
52062
52063         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52064         * modules/ucs4-utf8: Turn into a symbolic link to module
52065         unistr/u8-ubtomb.
52066
52067         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52068         * modules/ucs4-utf16: Turn into a symbolic link to module
52069         unistr/u16-ubtomb.
52070
52071 2007-03-24  Bruno Haible  <bruno@clisp.org>
52072
52073         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52074         Enable the function only if HAVE_INLINE.
52075         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52076         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52077         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52078         Enable the function only if HAVE_INLINE.
52079         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52080         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52081         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52082         Enable the function only if HAVE_INLINE.
52083         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52084         Enable the function only if HAVE_INLINE.
52085         * modules/utf8-ucs4: Update.
52086         * modules/utf8-ucs4-unsafe: Update.
52087         * modules/utf16-ucs4: Update.
52088         * modules/utf16-ucs4-unsafe: Update.
52089         * modules/ucs4-utf8: Update.
52090         * modules/ucs4-utf16: Update.
52091
52092 2007-03-24  Bruno Haible  <bruno@clisp.org>
52093
52094         * lib/utf8-ucs4.h: Remove file.
52095         * lib/utf8-ucs4-unsafe.h: Remove file.
52096         * lib/utf16-ucs4.h: Remove file.
52097         * lib/utf16-ucs4-unsafe.h: Remove file.
52098         * lib/ucs4-utf8.h: Remove file.
52099         * lib/ucs4-utf16.h: Remove file.
52100         * lib/unistr.h: Include their previous contents.
52101         * m4/utf-ucs4.m4: Remove file.
52102         * m4/ucs4-utf.m4: Remove file.
52103         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52104         (Depends-on): Add unistr/base.
52105         (configure.ac): Remove gl_UTF_UCS4.
52106         (Makefile.am): Update.
52107         (Include): Change to unistr.h.
52108         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52109         (Depends-on): Add unistr/base.
52110         (configure.ac): Remove gl_UTF_UCS4.
52111         (Makefile.am): Update.
52112         (Include): Change to unistr.h.
52113         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52114         (Depends-on): Add unistr/base.
52115         (configure.ac): Remove gl_UTF_UCS4.
52116         (Makefile.am): Update.
52117         (Include): Change to unistr.h.
52118         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52119         (Depends-on): Add unistr/base.
52120         (configure.ac): Remove gl_UTF_UCS4.
52121         (Makefile.am): Update.
52122         (Include): Change to unistr.h.
52123         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52124         (Depends-on): Add unistr/base.
52125         (configure.ac): Remove gl_UCS4_UTF.
52126         (Makefile.am): Update.
52127         (Include): Change to unistr.h.
52128         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52129         (Depends-on): Add unistr/base.
52130         (configure.ac): Remove gl_UCS4_UTF.
52131         (Makefile.am): Update.
52132         (Include): Change to unistr.h.
52133         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52134         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52135         utf8-ucs4-unsafe.h.
52136         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52137         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52138         utf16-ucs4-unsafe.h.
52139         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52140         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52141         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52142         * lib/unistr/u8-strchr.c: Likewise.
52143         * lib/unistr/u8-strrchr.c: Likewise.
52144         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52145         * lib/unistr/u16-strchr.c: Likewise.
52146         * lib/unistr/u16-strrchr.c: Likewise.
52147         * lib/striconveh.c: Update.
52148         * lib/linebreak.c: Update.
52149
52150 2007-03-24  Bruno Haible  <bruno@clisp.org>
52151
52152         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52153         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52154
52155 2007-03-22  Bruno Haible  <bruno@clisp.org>
52156
52157         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52158
52159 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52160
52161         * MODULES.html.sh (File system functions): New module write-any-file.
52162         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52163         * m4/write-any-file.m4: New files.
52164
52165 2007-03-23  Eric Blake  <ebb9@byu.net>
52166
52167         * gnulib-tool: Rearrange space-tab sequences, since some editors
52168         like to eat them.
52169
52170 2007-03-23  Eric Blake  <ebb9@byu.net>
52171
52172         * lib/version-etc.c (version_etc_va): Update license wording to
52173         be more concise.  Recommended by Richard Stallman.
52174
52175 2007-03-22  Bruno Haible  <bruno@clisp.org>
52176
52177         * lib/poll.c (MSG_PEEK): New fallback definition.
52178
52179 2007-03-22  Bruno Haible  <bruno@clisp.org>
52180
52181         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52182         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52183         (main): Update.
52184         Fixes a compilation error on BeOS.
52185
52186 2007-03-22  Bruno Haible  <bruno@clisp.org>
52187
52188         * modules/frexpl-tests: New file.
52189         * tests/test-frexpl.c: New file.
52190
52191         * modules/frexpl: New file.
52192         * m4/frexpl.m4: New file.
52193         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52194         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52196         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52197         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52198         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52199
52200 2007-03-22  Bruno Haible  <bruno@clisp.org>
52201
52202         * lib/frexpl.c: Share code with lib/frexp.c.
52203         * modules/mathl (Files): Add lib/frexp.c.
52204         (Depends-on): Add isnanl-nolibm.
52205
52206 2007-03-22  Bruno Haible  <bruno@clisp.org>
52207
52208         * modules/printf-frexp (Files): Add m4/frexp.m4.
52209         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52210         only if the found frexp function actually works.
52211
52212 2007-03-22  Bruno Haible  <bruno@clisp.org>
52213
52214         * lib/frexp.c: Remove older implementation that uses divisions.
52215
52216 2007-03-21  Bruno Haible  <bruno@clisp.org>
52217
52218         * modules/frexp-tests: New file.
52219         * tests/test-frexp.c: New file.
52220
52221         * modules/frexp: New file.
52222         * lib/frexp.c: New file.
52223         * m4/frexp.m4: New file.
52224         * lib/math_.h (frexp): New declaration.
52225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52226         REPLACE_FREXP.
52227         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52228
52229 2007-03-21  Bruno Haible  <bruno@clisp.org>
52230
52231         * modules/isnanl-tests: New file.
52232         * tests/test-isnanl.c: New file.
52233
52234         * modules/isnanl: New file.
52235         * lib/isnanl.h: New file.
52236         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52237         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52238         gl_FUNC_ISNANL_WORKS.
52239         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52240         New macros.
52241
52242 2007-03-21  Bruno Haible  <bruno@clisp.org>
52243
52244         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52245         lib/isnanl.h.
52246         (Include): Update.
52247         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52248         * lib/vasnprintf.c: Update.
52249         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52250         tests/test-isnanl.h, remove tests/test-isnanl.c.
52251         (Makefile.am): Update.
52252         * tests/test-isnanl-nolibm.c: New file.
52253         * tests/test-isnanl.h: New file.
52254         * tests/test-isnanl.c: Remove file.
52255
52256 2007-03-21  Jim Meyering  <jim@meyering.net>
52257
52258         When trying to open ".", treat ESTALE like EACCES.
52259         * lib/savewd.c (savewd_save): Resort to forking not just upon
52260         failure with EACCES, but also when errno is ESTALE.
52261
52262 2007-03-20  Bruno Haible  <bruno@clisp.org>
52263
52264         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52265         Needed on AIX 5.1. Reported by Matthew Woehlke.
52266
52267 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52268
52269         Suggestions by Bruno Haible:
52270         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52271         our own.
52272         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52273         * modules/acl (Depends-on): Add gettext.
52274
52275 2007-03-19  Bruno Haible  <bruno@clisp.org>
52276
52277         * modules/iconvme: Remove file.
52278         * lib/iconvme.h: Remove file.
52279         * lib/iconvme.c: Remove file.
52280         * m4/iconvme.m4: Remove file.
52281
52282 2007-03-19  Bruno Haible  <bruno@clisp.org>
52283
52284         * doc/relocatable-maint.texi: Break long shell script line.
52285         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52286
52287 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52288
52289         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52290         handle file_has_acl.
52291         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52292         * lib/acl.c: Move header inclusions and related macro defns into
52293         lib/acl-internal.h.
52294         (S_ISLNK): Remove defn, since that's now done for us.
52295         (file_has_acl): Move to lib/file-has-acl.c.
52296         Call acl_trivial if available.  This is the crucial part of the fix.
52297         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52298         shared within the library.  Rewrite a bit, partly to make it compatible
52299         with the GNU coding style.
52300         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52301         Remove unnecessary double-quotes.
52302         Don't test for acl_to_text; the build will catch that.
52303         Replace acl_entries if it doesn't exist and it is needed.
52304         Check for -lsec and acl_trivial (as used on Solaris 10).
52305         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52306         lib/file-has-acl.c.
52307         (Depends-on): Add sys_stat, for S_ISLNK.
52308
52309 2007-03-19  Ben Pfaff  <blp@gnu.org>
52310
52311         * doc/gnulib.texi: Fix typos.
52312         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52313
52314 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52315
52316         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52317         If size is zero here, buf must be zero.
52318
52319 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52320
52321         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52322         <bruno@clisp.org>.
52323
52324 2007-03-18  Bruno Haible  <bruno@clisp.org>
52325
52326         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52327         Suggested by Eric Blake.
52328
52329 2007-03-18  Ben Pfaff  <blp@gnu.org>
52330
52331         * doc/relocatable.texi: Recommend using as prefix a directory
52332         that does not exist and will never be created.  Based on
52333         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52334         and others.
52335
52336 2007-03-17  Bruno Haible  <bruno@clisp.org>
52337
52338         * lib/fchownat.c: Include lchown.h.
52339
52340 2007-03-17  Bruno Haible  <bruno@clisp.org>
52341
52342         Fix endless loop when the given allocated size was > INT_MAX.
52343         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52344         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52345         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52346         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52347         * lib/sprintf.c (sprintf): Likewise.
52348
52349 2007-03-17  Bruno Haible  <bruno@clisp.org>
52350
52351         * tests/test-argp-2.sh (func_compare): Output a context diff.
52352
52353 2007-03-17  Bruno Haible  <bruno@clisp.org>
52354
52355         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52356         locale's decimal-point character.
52357
52358 2007-03-17  Bruno Haible  <bruno@clisp.org>
52359
52360         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52361         before comparing it. Needed because on some platforms (e.g. x86) a
52362         'long double' occupies less bytes than sizeof (long double).
52363
52364 2007-03-17  Bruno Haible  <bruno@clisp.org>
52365
52366         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52367         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52368         * tests/test-getaddrinfo.c (simple): Likewise.
52369         * tests/test-read-file.c (main): Likewise.
52370
52371 2007-03-17  Bruno Haible  <bruno@clisp.org>
52372
52373         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52374
52375 2007-03-17  Bruno Haible  <bruno@clisp.org>
52376
52377         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52378         unused variable.
52379
52380 2007-03-17  Bruno Haible  <bruno@clisp.org>
52381
52382         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52383         * tests/test-c-strncasecmp.c: Likewise.
52384
52385 2007-03-17  Bruno Haible  <bruno@clisp.org>
52386
52387         * modules/stdlib (Depends-on): Add unistd.
52388         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52389         Needed for MacOS X 10.3.
52390
52391 2007-03-17  Bruno Haible  <bruno@clisp.org>
52392
52393         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52394
52395 2007-03-17  Bruno Haible  <bruno@clisp.org>
52396
52397         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52398
52399 2007-03-17  Bruno Haible  <bruno@clisp.org>
52400
52401         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52402         to reflect files copied from gnulib (with or without modifications).
52403         Suggested by Jim Meyering.
52404
52405 2007-03-17  Eric Blake  <ebb9@byu.net>
52406
52407         * NEWS: Document stdlib change from 2007-02-18.
52408
52409 2007-03-17  Jim Meyering  <jim@meyering.net>
52410
52411         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52412         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52413         someone uses a name containing shell meta-characters.
52414         Reported by Alfred M. Szmidt.
52415
52416         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52417
52418 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52419
52420         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52421         and copy gettext configuration files only if configure.ac contains
52422         a use of AM_GNU_GETTEXT_VERSION.
52423
52424 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52425
52426         * build-aux/bootstrap (gnulib_name): New variable.
52427         (gnulib_tool_options): Use it.
52428
52429 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52430
52431         * tests/test-des.c: Use new namespace.
52432
52433 2007-03-15  Bruno Haible  <bruno@clisp.org>
52434
52435         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52436         Reported by James Youngman <jay@gnu.org>.
52437
52438 2007-03-15  Bruno Haible  <bruno@clisp.org>
52439
52440         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52441         declared prototype. Needed with cc on OSF/1 5.1.
52442
52443 2007-03-15  Bruno Haible  <bruno@clisp.org>
52444
52445         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52446         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52447         (struct gl_list_implementation): Add dispose_fn argument to the
52448         'create_empty', 'create' methods.
52449         (struct gl_list_impl_base): Add field 'dispose_fn'.
52450         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52451         argument.
52452         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52453         dispose_fn argument.
52454         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52455         dispose_fn on the dropped values.
52456         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52457         dispose_fn argument.
52458         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52459         dropped values.
52460         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52461         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52462         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
52463         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52464         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
52465         argument.
52466         (gl_tree_list_free): Call dispose_fn on the dropped values.
52467         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
52468         the dropped values.
52469         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52470         Add dispose_fn argument.
52471         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
52472         Call dispose_fn on the dropped values.
52473         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
52474         Add dispose_fn argument.
52475         (gl_sublist_create): Initialize the 'dispose_fn' field.
52476         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
52477         * tests/test-array_list.c (main): Update.
52478         * tests/test-carray_list.c (main): Update.
52479         * tests/test-avltree_list.c (main): Update.
52480         * tests/test-rbtree_list.c (main): Update.
52481         * tests/test-avltreehash_list.c (main): Update.
52482         * tests/test-rbtreehash_list.c (main): Update.
52483         * tests/test-linked_list.c (main): Update.
52484         * tests/test-linkedhash_list.c (main): Update.
52485         * tests/test-array_oset.c (main): Update.
52486
52487 2007-03-15  Bruno Haible  <bruno@clisp.org>
52488
52489         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
52490         (gl_oset_create_empty): Add dispose_fn argument.
52491         (struct gl_oset_implementation): Add dispose_fn argument to
52492         'create_empty' method.
52493         (struct gl_oset_impl_base): Add dispose_fn field.
52494         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
52495         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
52496         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
52497         values.
52498         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
52499         (gl_tree_oset_free): Call dispose_fn on the dropped values.
52500         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52501         dropped value.
52502         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52503         dropped value.
52504         * tests/test-array_oset.c (main): Update.
52505         * tests/test-avltree_oset.c (main): Update.
52506         * tests/test-rbtree_oset.c (main): Update.
52507         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
52508
52509 2007-03-13  Bruno Haible  <bruno@clisp.org>
52510
52511         * tests/test-stdbool.c (i): Update after last patch.
52512
52513 2007-03-12  Bruno Haible  <bruno@clisp.org>
52514
52515         * lib/quotearg.c: Include <wctype.h> early, before the definition of
52516         the iswprint macro. Needed on Solaris 2.5.1.
52517
52518 2007-03-12  Bruno Haible  <bruno@clisp.org>
52519
52520         * tests/test-printf-frexp.c (main): Declare x as volatile.
52521
52522 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52523
52524         * doc/gnulib.texi (Build robot for gnulib): New section.
52525
52526 2007-03-12  Jim Meyering  <jim@meyering.net>
52527
52528         * build-aux/bootstrap: New file.
52529         * build-aux/bootstrap.conf: New file, from coreutils.
52530
52531 2007-03-11  Bruno Haible  <bruno@clisp.org>
52532
52533         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
52534
52535 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52536
52537         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
52538         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
52539         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
52540
52541 2007-03-11  Bruno Haible  <bruno@clisp.org>
52542
52543         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
52544         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
52545
52546 2007-03-11  Bruno Haible  <bruno@clisp.org>
52547
52548         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
52549         formula. Needed for SunPRO C 5.0.
52550
52551 2007-03-11  Bruno Haible  <bruno@clisp.org>
52552
52553         * modules/long-options (Depends-on): Add getopt.
52554
52555 2007-03-11  Bruno Haible  <bruno@clisp.org>
52556
52557         * modules/modechange (Depends-on): Add stdbool.
52558
52559 2007-03-11  Bruno Haible  <bruno@clisp.org>
52560
52561         * modules/i-ring (Depends-on): Add stdbool.
52562
52563 2007-03-11  Bruno Haible  <bruno@clisp.org>
52564
52565         * modules/gc-des (Depends-on): Add stdbool.
52566
52567 2007-03-11  Bruno Haible  <bruno@clisp.org>
52568
52569         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
52570
52571 2007-03-11  Bruno Haible  <bruno@clisp.org>
52572
52573         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
52574
52575 2007-03-11  Bruno Haible  <bruno@clisp.org>
52576
52577         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
52578
52579 2007-03-11  Bruno Haible  <bruno@clisp.org>
52580
52581         * lib/vasnprintf.c (sprintf): Undefine.
52582
52583 2007-03-11  Bruno Haible  <bruno@clisp.org>
52584
52585         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
52586         initializers in SunPRO C and Compaq C compilers.
52587
52588 2007-03-11  Bruno Haible  <bruno@clisp.org>
52589
52590         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
52591         decrementing code ANSI C compliant.
52592
52593 2007-03-11  Bruno Haible  <bruno@clisp.org>
52594
52595         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
52596         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
52597
52598 2007-03-11  Bruno Haible  <bruno@clisp.org>
52599
52600         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
52601         <stdbool.h> substitute doesn't pass.
52602
52603 2007-03-11  Bruno Haible  <bruno@clisp.org>
52604
52605         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
52606
52607 2007-03-11  Bruno Haible  <bruno@clisp.org>
52608
52609         * gnulib-tool (func_create_megatestdir): Create also an autobuild
52610         script, for submission to autobuild.josefsson.org.
52611
52612 2007-03-10  Bruno Haible  <bruno@clisp.org>
52613
52614         * modules/canonicalize-lgpl-tests: New file.
52615         * tests/test-canonicalize-lgpl.sh: New file.
52616         * tests/test-canonicalize-lgpl.c: New file.
52617
52618         * modules/c-strcase-tests: New file.
52619         * tests/test-c-strcase.sh: New file.
52620         * tests/test-c-strcasecmp.c: New file.
52621         * tests/test-c-strncasecmp.c: New file.
52622
52623         * modules/atexit-tests: New file.
52624         * tests/test-atexit.sh: New file.
52625         * tests/test-atexit.c: New file.
52626
52627 2007-03-10  Bruno Haible  <bruno@clisp.org>
52628
52629         * tests/test-binary-io.sh: Use temporary filenames that are not so
52630         likely to clash with those of other tests (in a parallel make).
52631         * tests/test-binary-io.c: Likewise.
52632
52633 2007-03-10  Bruno Haible  <bruno@clisp.org>
52634
52635         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52636         fallback; use #error instead.
52637         Suggested by Simon Josefsson.
52638
52639 2007-03-10  Bruno Haible  <bruno@clisp.org>
52640
52641         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52642         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52643         first and the last.
52644
52645 2007-03-10  Bruno Haible  <bruno@clisp.org>
52646
52647         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52648
52649 2007-03-10  Bruno Haible  <bruno@clisp.org>
52650
52651         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52652         "make distcheck".
52653         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52654         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52655         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52656
52657 2007-03-10  Bruno Haible  <bruno@clisp.org>
52658
52659         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52660         variable.
52661         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52662         variable.
52663
52664 2007-03-09  Eric Blake  <ebb9@byu.net>
52665         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52666
52667         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52668         types are not being provided by gnulib.
52669         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52670         types are supported.
52671
52672 2007-03-10  Bruno Haible  <bruno@clisp.org>
52673
52674         * lib/stdio_.h (__attribute__): New macro.
52675         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52676         vsprintf): Specify __attribute__ __format__ for GCC.
52677         Suggested by Eric Blake.
52678
52679 2007-03-09  Bruno Haible  <bruno@clisp.org>
52680
52681         * modules/printf-posix-tests: New file.
52682         * tests/test-printf-posix.sh: New file.
52683         * tests/test-printf-posix.c: New file.
52684
52685         * modules/printf-posix: New file.
52686         * lib/printf.c: New file.
52687         * m4/printf-posix-rpl.m4: New file.
52688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52689         REPLACE_PRINTF.
52690         * lib/stdio_.h (printf): New declaration.
52691         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52692         ____strfmon____): New macros.
52693         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52694         REPLACE_PRINTF.
52695
52696 2007-03-09  Bruno Haible  <bruno@clisp.org>
52697
52698         * tests/test-vasnprintf-posix2.sh: New file.
52699         * tests/test-vasnprintf-posix2.c: New file.
52700         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52701         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52702         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52703
52704         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52705         a locale dependent decimal point, rather than always '.'.
52706
52707 2007-03-09  Eric Blake  <ebb9@byu.net>
52708
52709         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52710         spite of platforms like Tandem/NSK that define it to -1.
52711
52712 2007-03-08  Bruno Haible  <bruno@clisp.org>
52713
52714         * modules/vprintf-posix-tests: New file.
52715         * tests/test-vprintf-posix.sh: New file.
52716         * tests/test-vprintf-posix.c: New file.
52717         * tests/test-printf-posix.h: New file.
52718
52719         * modules/vprintf-posix: New file.
52720         * lib/vprintf.c: New file.
52721         * m4/vprintf-posix.m4: New file.
52722         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52723         REPLACE_VPRINTF.
52724         * lib/stdio_.h (vprintf): New declaration.
52725         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52726         REPLACE_VPRINTF.
52727
52728 2007-03-08  Bruno Haible  <bruno@clisp.org>
52729
52730         * modules/fprintf-posix-tests: New file.
52731         * tests/test-fprintf-posix.sh: New file.
52732         * tests/test-fprintf-posix.c: New file.
52733
52734         * modules/fprintf-posix: New file.
52735         * lib/fprintf.c: New file.
52736         * m4/fprintf-posix.m4: New file.
52737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
52738         REPLACE_FPRINTF.
52739         * lib/stdio_.h (fprintf): New declaration.
52740         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
52741         REPLACE_FPRINTF.
52742
52743 2007-03-08  Bruno Haible  <bruno@clisp.org>
52744
52745         * modules/vfprintf-posix-tests: New file.
52746         * tests/test-vfprintf-posix.sh: New file.
52747         * tests/test-vfprintf-posix.c: New file.
52748         * tests/test-fprintf-posix.h: New file.
52749         * tests/test-fprintf-posix.out: New file.
52750
52751         * modules/vfprintf-posix: New file.
52752         * lib/vfprintf.c: New file.
52753         * m4/vfprintf-posix.m4: New file.
52754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
52755         REPLACE_VFPRINTF.
52756         * lib/stdio_.h (vfprintf): New declaration.
52757         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
52758         REPLACE_VFPRINTF.
52759
52760 2007-03-08  Bruno Haible  <bruno@clisp.org>
52761
52762         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
52763
52764 2007-03-08  Bruno Haible  <bruno@clisp.org>
52765
52766         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
52767         instead of 'expr' invocations.
52768         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52769         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52770         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52771         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52772         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52773         Suggested by Paul Eggert.
52774
52775 2007-03-08  Bruno Haible  <bruno@clisp.org>
52776
52777         * modules/fseterr-tests: New file.
52778         * tests/test-fseterr.c: New file.
52779
52780         * modules/fseterr: New file.
52781         * lib/fseterr.h: New file.
52782         * lib/fseterr.c: New file.
52783
52784 2007-03-08  Bruno Haible  <bruno@clisp.org>
52785
52786         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
52787         * lib/getopt_.h: Likewise.
52788         * lib/mbswidth.h: Likewise.
52789         * lib/setenv.h: Likewise.
52790         * lib/vasnprintf.h: Likewise.
52791         * lib/vasprintf.h: Likewise.
52792         * lib/verror.h: Likewise.
52793         * lib/xsetenv.h: Likewise.
52794         * lib/xvasprintf.h: Likewise.
52795
52796 2007-03-08  Jim Meyering  <jim@meyering.net>
52797
52798         * users.txt: Add parted.
52799
52800         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
52801
52802 2007-03-07  Bruno Haible  <bruno@clisp.org>
52803
52804         * m4/printf.m4: Make the shell script snippets copy&pastable.
52805
52806 2007-03-02  Bruno Haible  <bruno@clisp.org>
52807
52808         * lib/netinet_in_.h: New file.
52809         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
52810         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
52811         * modules/netinet_in (Files): Add lib/netinet_in_.h.
52812         (Depends-on): Add absolute-header.
52813         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
52814         into netinet/in.h.
52815
52816 2007-03-03  Bruno Haible  <bruno@clisp.org>
52817
52818         * lib/sys_select_.h: New file.
52819         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
52820         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
52821         * modules/sys_select (Files): Add lib/sys_select_.h.
52822         (Depends-on): Add absolute-header.
52823         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
52824         into sys/select.h.
52825
52826 2007-03-02  Bruno Haible  <bruno@clisp.org>
52827
52828         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
52829         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
52830         values.
52831         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
52832         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
52833         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
52834         * modules/sys_socket (Depends-on): Add absolute-header.
52835         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
52836         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
52837         (Include): Remove requirement of inclusion of <sys/types.h>.
52838
52839 2007-03-02  Bruno Haible  <bruno@clisp.org>
52840
52841         * lib/byteswap_.h (bswap_32): Fix formula.
52842
52843 2007-03-06  Bruno Haible  <bruno@clisp.org>
52844
52845         * modules/sprintf-posix-tests: New file.
52846         * tests/test-sprintf-posix.c: New file.
52847
52848         * modules/sprintf-posix: New file.
52849         * lib/sprintf.c: New file.
52850         * m4/sprintf-posix.m4: New file.
52851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
52852         REPLACE_SPRINTF.
52853         * lib/stdio_.h (sprintf): New declaration.
52854         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
52855         REPLACE_SPRINTF.
52856
52857 2007-03-06  Bruno Haible  <bruno@clisp.org>
52858
52859         * modules/vsprintf-posix-tests: New file.
52860         * tests/test-vsprintf-posix.c: New file.
52861         * tests/test-sprintf-posix.h: New file.
52862
52863         * modules/vsprintf-posix: New file.
52864         * lib/vsprintf.c: New file.
52865         * m4/vsprintf-posix.m4: New file.
52866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
52867         REPLACE_VSPRINTF.
52868         * lib/stdio_.h (vsprintf): New declaration.
52869         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
52870         REPLACE_VSPRINTF.
52871
52872 2007-03-06  Bruno Haible  <bruno@clisp.org>
52873
52874         * modules/vsnprintf (Depend-on): Remove minmax.
52875
52876 2007-03-06  Bruno Haible  <bruno@clisp.org>
52877
52878         * modules/snprintf-posix-tests: New file.
52879         * tests/test-snprintf-posix.c: New file.
52880
52881         * modules/snprintf-posix: New file.
52882         * m4/snprintf-posix.m4: New file.
52883         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
52884         gl_FUNC_SNPRINTF.
52885         (gl_FUNC_SNPRINTF): Invoke it.
52886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
52887         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
52888         is set.
52889         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
52890
52891 2007-03-06  Bruno Haible  <bruno@clisp.org>
52892
52893         * modules/vsnprintf-posix-tests: New file.
52894         * tests/test-vsnprintf-posix.c: New file.
52895         * tests/test-snprintf-posix.h: New file.
52896
52897         * modules/vsnprintf-posix: New file.
52898         * m4/vsnprintf-posix.m4: New file.
52899         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
52900         gl_FUNC_VSNPRINTF.
52901         (gl_FUNC_VSNPRINTF): Invoke it.
52902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
52903         * lib/stdio_.h (vsnprintf): Define as a replacement if
52904         REPLACE_VSNPRINTF is set.
52905         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
52906
52907 2007-03-06  Bruno Haible  <bruno@clisp.org>
52908
52909         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
52910         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
52911
52912 2007-03-06  Bruno Haible  <bruno@clisp.org>
52913
52914         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
52915         (asinl): Declare also if HAVE_DECL_ASINL is set.
52916         (atanl): Declare also if HAVE_DECL_ATANL is set.
52917         (ceill): Declare also if HAVE_DECL_CEILL is set.
52918         (cosl): Declare also if HAVE_DECL_COSL is set.
52919         (expl): Declare also if HAVE_DECL_EXPL is set.
52920         (floorl): Declare also if HAVE_DECL_FLOORL is set.
52921         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
52922         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
52923         (logl): Declare also if HAVE_DECL_LOGL is set.
52924         (sinl): Declare also if HAVE_DECL_SINL is set.
52925         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
52926         (tanl): Declare also if HAVE_DECL_TANL is set.
52927         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
52928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
52929         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
52930         declaration of frexpl, ldexpl.
52931         * modules/printf-frexpl (Depends-on): Add math.
52932         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
52933
52934 2007-03-05  Bruno Haible  <bruno@clisp.org>
52935
52936         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
52937         frexpl and ldexpl are declared.
52938         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
52939
52940 2007-03-05  Bruno Haible  <bruno@clisp.org>
52941
52942         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
52943         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
52944
52945 2007-03-05  Bruno Haible  <bruno@clisp.org>
52946
52947         * lib/stdio_.h: Include <stddef.h>.
52948
52949 2007-03-05  Bruno Haible  <bruno@clisp.org>
52950
52951         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
52952
52953 2007-03-05  Bruno Haible  <bruno@clisp.org>
52954
52955         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
52956         NetBSD 4, from Ralf Wildenhues.
52957
52958 2007-03-04  Bruno Haible  <bruno@clisp.org>
52959
52960         * lib/vasprintf.h: Update #if logic for the case when the functions
52961         exist but are overridden.
52962
52963 2007-03-04  Bruno Haible  <bruno@clisp.org>
52964
52965         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
52966         implementations: glibc-2.4 and MacOS X 10.3.
52967         * tests/test-vasnprintf-posix.c (test_function): Test also the case
52968         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
52969         * tests/test-vasprintf-posix.c (test_function): Likewise.
52970
52971 2007-03-04  Bruno Haible  <bruno@clisp.org>
52972
52973         * modules/vasprintf-posix-tests: New file.
52974         * tests/test-vasprintf-posix.c: New file.
52975
52976         * modules/vasprintf-posix: New file.
52977         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
52978         defined.
52979         * m4/vasprintf-posix.m4: New file.
52980         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
52981         gl_FUNC_VASPRINTF.
52982         (gl_FUNC_VASPRINTF): Invoke it.
52983         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52984         here.
52985         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52986
52987 2007-03-04  Bruno Haible  <bruno@clisp.org>
52988
52989         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52990         REPLACE_GETTIMEOFDAY.
52991         * modules/sys_time (Makefile.am): Likewise.
52992         * m4/sys_time_h.m4: Likewise.
52993         * m4/gettimeofday.m4: Likewise.
52994
52995 2007-03-04  Bruno Haible  <bruno@clisp.org>
52996
52997         * modules/vasnprintf-posix-tests: New file.
52998         * tests/test-vasnprintf-posix.c: New file.
52999
53000         * modules/vasnprintf-posix: New file.
53001         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53002         printf-frexpl.h.
53003         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53004         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53005         REPLACE_VASNPRINTF is defined.
53006         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53007         gl_FUNC_VASNPRINTF.
53008         (gl_FUNC_VASNPRINTF): Invoke it.
53009         * m4/vasnprintf-posix.m4: New file.
53010         * m4/printf.m4: New file.
53011
53012 2007-03-04  Bruno Haible  <bruno@clisp.org>
53013
53014         Compile progreloc.c only if --enable-relocatable is specified.
53015         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53016         if --enable-relocatable was specified.
53017         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53018         lib_SOURCES.
53019
53020 2007-03-04  Jim Meyering  <jim@meyering.net>
53021
53022         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53023         Use it consistently, rather than enumerating errno constants.
53024
53025 2007-03-04  Bruno Haible  <bruno@clisp.org>
53026
53027         * modules/xvasprintf-tests: New file.
53028         * tests/test-xvasprintf.c: New file.
53029
53030         * modules/vasprintf-tests: New file.
53031         * tests/test-vasprintf.c: New file.
53032
53033         * modules/vasnprintf-tests: New file.
53034         * tests/test-vasnprintf.c: New file.
53035
53036         * modules/vsnprintf-tests: New file.
53037         * tests/test-vsnprintf.c: New file.
53038
53039         * modules/snprintf-tests: New file.
53040         * tests/test-snprintf.c: New file.
53041
53042 2007-03-04  Bruno Haible  <bruno@clisp.org>
53043
53044         Compile relocatable.c only if --enable-relocatable is specified.
53045         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53046         gl_RELOCATABLE_LIBRARY.
53047         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53048         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53049         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53050         gl_RELOCATABLE_LIBRARY.
53051         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53052         (Makefile.am): Remove lib_SOURCES.
53053         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53054         gl_RELOCATABLE_LIBRARY.
53055         (Makefile.am): Remove lib_SOURCES.
53056         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53057         always.
53058         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53059         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53060
53061 2007-03-04  Bruno Haible  <bruno@clisp.org>
53062
53063         * modules/argmatch-tests: New file.
53064         * tests/test-argmatch.c: New file.
53065
53066         * tests/test-allocsa.c (main): Halve the number of loop runs.
53067
53068         * modules/alloca-opt-tests: New file.
53069         * tests/test-alloca-opt.c: New file.
53070
53071 2007-03-04  Jim Meyering  <jim@meyering.net>
53072
53073         Work around difference between Linux ACLs and Solaris 10 ZFS.
53074         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53075         for EINVAL.
53076
53077 2007-03-03  Bruno Haible  <bruno@clisp.org>
53078
53079         * modules/relocatable-prog (Depends-on): Add back progreloc's
53080         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53081
53082 2007-03-03  Bruno Haible  <bruno@clisp.org>
53083
53084         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53085         * modules/relocatable-lib: New file.
53086
53087 2007-03-03  Bruno Haible  <bruno@clisp.org>
53088
53089         * modules/relocatable-prog: Renamed from modules/relocatable.
53090         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53091
53092 2007-03-03  Bruno Haible  <bruno@clisp.org>
53093
53094         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53095         m4/relocatable-lib.m4.
53096         (Depends-on): Remove 'relocatable'.
53097         (configure.ac): Add gl_RELOCATABLE_NOP.
53098
53099 2007-03-03  Bruno Haible  <bruno@clisp.org>
53100
53101         * modules/relocatable-prog-wrapper: New file.
53102         * modules/relocatable (Depends-on): Add it. Remove all other
53103         dependencies except progname.
53104         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53105
53106         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53107         (gl_FUNC_STRERROR): Nop.
53108         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53109
53110         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53111         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53112
53113         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53114         (gl_FUNC_READLINK): Update.
53115
53116         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53117
53118 2007-03-03  Bruno Haible  <bruno@clisp.org>
53119
53120         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53121         * modules/xreadlink (Depends-on): Add unistd.
53122         * modules/xreadlink-with-size (Depends-on): Likewise.
53123
53124 2007-03-03  Bruno Haible  <bruno@clisp.org>
53125
53126         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53127         extracted from gt_FUNC_SETENV.
53128         (gt_FUNC_SETENV): Remove macro.
53129         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53130         remove gt_FUNC_SETENV.
53131
53132 2007-03-03  Bruno Haible  <bruno@clisp.org>
53133
53134         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53135         ENABLE_RELOCATABLE here.
53136         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53137
53138 2007-03-03  Bruno Haible  <bruno@clisp.org>
53139
53140         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53141         * tests/test-rbtreehash_list.c: Include progname.h.
53142         (main): Call set_program_name.
53143
53144         * modules/rbtree-oset-tests (Depends-on): Add progname.
53145         * tests/test-rbtree_oset.c: Include progname.h.
53146         (main): Call set_program_name.
53147
53148         * modules/rbtree-list-tests (Depends-on): Add progname.
53149         * tests/test-rbtree_list.c: Include progname.h.
53150         (main): Call set_program_name.
53151
53152         * modules/linked-list-tests (Depends-on): Add progname.
53153         * tests/test-linked_list.c: Include progname.h.
53154         (main): Call set_program_name.
53155
53156 2007-03-03  Bruno Haible  <bruno@clisp.org>
53157
53158         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53159         All uses of __restrict changed to _Restrict_.
53160         * lib/glob_.h (__restrict): Remove macro.
53161
53162 2007-03-02  Bruno Haible  <bruno@clisp.org>
53163
53164         * modules/gettext (configure.ac): Require gettext infrastructure
53165         from version 0.16.1.
53166
53167 2007-03-02  Bruno Haible  <bruno@clisp.org>
53168
53169         * modules/linkedhash-list-tests (Depends-on): Add progname.
53170         * tests/test-linkedhash_list.c: Include progname.h.
53171         (main): Call set_program_name.
53172
53173         * modules/carray-list-tests (Depends-on): Add progname.
53174         * tests/test-carray_list.c: Include progname.h.
53175         (main): Call set_program_name.
53176
53177         * modules/avltreehash-list-tests (Depends-on): Add progname.
53178         * tests/test-avltreehash_list.c: Include progname.h.
53179         (main): Call set_program_name.
53180
53181         * modules/avltree-oset-tests (Depends-on): Add progname.
53182         * tests/test-avltree_oset.c: Include progname.h.
53183         (main): Call set_program_name.
53184
53185         * modules/avltree-list-tests (Depends-on): Add progname.
53186         * tests/test-avltree_list.c: Include progname.h.
53187         (main): Call set_program_name.
53188
53189         * modules/array-oset-tests (Depends-on): Add progname.
53190         * tests/test-array_oset.c: Include progname.h.
53191         (main): Call set_program_name.
53192
53193         * modules/array-list-tests (Depends-on): Add progname.
53194         * tests/test-array_list.c: Include progname.h.
53195         (main): Call set_program_name.
53196
53197         * modules/argp-tests (Depends-on): Add progname.
53198         * tests/test-argp.c: Include argp.h first. Include progname.h.
53199         (main): Call set_program_name.
53200
53201 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53202
53203         * doc/gnulib-tool.texi (Initial import): Reword description of
53204         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53205         limited effect even if defined after the first system include.
53206
53207 2007-03-01  Bruno Haible  <bruno@clisp.org>
53208
53209         * build-aux/config.libpath: Update to libtool-1.5.22.
53210         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53211
53212 2007-03-01  Bruno Haible  <bruno@clisp.org>
53213
53214         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53215         foo_CFLAGS.
53216         Reported by Ralf Wildenhues.
53217
53218 2007-03-01  Bruno Haible  <bruno@clisp.org>
53219
53220         * build-aux/install-reloc: Remove object files left over by some
53221         compilers.
53222         Reported by Ralf Wildenhues.
53223
53224 2007-03-01  Bruno Haible  <bruno@clisp.org>
53225
53226         * build-aux/install-reloc: Break long lines.
53227
53228 2007-03-01  Bruno Haible  <bruno@clisp.org>
53229
53230         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53231         Reported by Ralf Wildenhues.
53232
53233 2007-03-01  Bruno Haible  <bruno@clisp.org>
53234
53235         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53236         include ordering constraints.
53237
53238 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53239
53240         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53241         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53242         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53243         as another example.
53244         * lib/time_.h: Fix misspelling.
53245         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53246         Require gl_HEADER_TIME_H_DEFAULTS.
53247         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53248         * m4/time_r.m4 (gl_TIME_R): Likewise.
53249         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53250
53251 2007-03-01  Bruno Haible  <bruno@clisp.org>
53252
53253         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53254         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53255
53256 2007-03-01  Jim Meyering  <jim@meyering.net>
53257
53258         * modules/xreadlink (Maintainer): Add my name.
53259         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53260
53261 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53262             Bruno Haible  <bruno@clisp.org>
53263
53264         * build-aux/install-reloc: Compile also c-ctype.c.
53265         * build-aux/relocatable.sh.in: New file.
53266         * doc/relocatable.texi: New file.
53267         * doc/relocatable-maint.texi: New file.
53268         * doc/gnulib.texi: Include relocatable-maint.texi.
53269         * lib/progreloc.c: Include unistd.h unconditionally.
53270         * lib/relocwrapper.c: Include unistd.h unconditionally.
53271         Include c-ctype.h.
53272         (add_dotbin): Use c_tolower.
53273         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53274         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53275         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53276         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53277         to m4/relocatable-lib.m4.
53278         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53279         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53280         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53281         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53282         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53283         * modules/relocatable: New file.
53284         * modules/relocatable-lib: New file.
53285         * modules/relocatable-script: New file.
53286
53287 2007-02-28  Bruno Haible  <bruno@clisp.org>
53288
53289         Import --enable-relocatable infrastructure.
53290         * build-aux/config.libpath: New file, from GNU gettext.
53291         * build-aux/install-reloc: New file, from GNU gettext.
53292         * build-aux/reloc-ldflags: New file, from GNU gettext.
53293         * lib/relocatable.h: New file, from GNU gettext.
53294         * lib/relocatable.c: New file, from GNU gettext.
53295         * lib/relocwrapper.c: New file, from GNU gettext.
53296         * m4/relocatable.m4: New file, from GNU gettext.
53297
53298 2007-02-28  Bruno Haible  <bruno@clisp.org>
53299
53300         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53301
53302         * modules/xreadlink: New file, from GNU gettext with modifications.
53303         * lib/xreadlink.c: New file, from GNU gettext.
53304         * lib/xreadlink.h: Add comments.
53305         (xreadlink): New declaration.
53306
53307         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53308         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53309         lib/xreadlink-with-size.c.
53310         (configure.ac): Remove gl_XREADLINK invocation.
53311         (Makefile.am): Augment lib_SOURCES.
53312         * m4/xreadlink.m4: Remove file.
53313         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53314         (xreadlink_with_size): Renamed from xreadink.
53315         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53316         * modules/canonicalize (Depends-on): Replace xreadlink with
53317         xreadlink-with-size.
53318         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53319
53320 2007-02-25  Jim Meyering  <jim@meyering.net>
53321
53322         * build-aux/announce-gen: When complaining about excess arguments,
53323         list them.
53324
53325 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53326
53327         * README: Document signed integer overflow situation more
53328         accurately.
53329
53330 2007-02-25  Bruno Haible  <bruno@clisp.org>
53331
53332         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53333         'a' or 'A' conversion.
53334
53335 2007-02-25  Bruno Haible  <bruno@clisp.org>
53336
53337         * modules/filename: Renamed from modules/pathname.
53338         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53339         lib/concatpath.c with lib/concat-filename.c.
53340         (Makefile.am): Update.
53341         (Include): Replace pathname.h with filename.h.
53342         * lib/filename.h: Renamed from lib/pathname.h.
53343         (concatenated_filename): Renamed from concatenated_pathname.
53344         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53345         (concatenated_filename): Renamed from concatenated_pathname.
53346         * lib/findprog.c: Include filename.h instead of pathname.h.
53347         (find_in_path): Update.
53348         * lib/javacomp.c: Include filename.h instead of pathname.h.
53349         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53350         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53351         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53352         is_oldgcj_14_13_usable, is_javac_usable): Update.
53353         * lib/javaexec.c: Include filename.h instead of pathname.h.
53354         (execute_java_class): Update.
53355         * modules/findprog: Update.
53356         * modules/javacomp: Update.
53357         * modules/javaexec: Update.
53358         * MODULES.html.sh (File system functions): Add 'filename', remove
53359         'pathname'.
53360
53361 2007-02-25  Bruno Haible  <bruno@clisp.org>
53362
53363         * modules/printf-frexpl-tests: New file.
53364         * tests/test-printf-frexpl.c: New file.
53365
53366         * modules/printf-frexpl: New file.
53367         * lib/printf-frexpl.h: New file.
53368         * lib/printf-frexpl.c: New file.
53369         * m4/printf-frexpl.m4: New file.
53370
53371 2007-02-25  Bruno Haible  <bruno@clisp.org>
53372
53373         * modules/printf-frexp-tests: New file.
53374         * tests/test-printf-frexp.c: New file.
53375
53376         * modules/printf-frexp: New file.
53377         * lib/printf-frexp.h: New file.
53378         * lib/printf-frexp.c: New file.
53379         * m4/printf-frexp.m4: New file.
53380
53381 2007-02-25  Bruno Haible  <bruno@clisp.org>
53382
53383         Assume automake >= 1.10 for the tests.
53384         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53385         * modules/arctwo-tests: Likewise.
53386         * modules/argp-tests: Likewise.
53387         * modules/avltree-list-tests: Likewise.
53388         * modules/avltree-oset-tests: Likewise.
53389         * modules/avltreehash-list-tests: Likewise.
53390         * modules/carray-list-tests: Likewise.
53391         * modules/crc-tests: Likewise.
53392         * modules/des-tests: Likewise.
53393         * modules/gc-arcfour-tests: Likewise.
53394         * modules/gc-arctwo-tests: Likewise.
53395         * modules/gc-des-tests: Likewise.
53396         * modules/gc-hmac-md5-tests: Likewise.
53397         * modules/gc-hmac-sha1-tests: Likewise.
53398         * modules/gc-md2-tests: Likewise.
53399         * modules/gc-md4-tests: Likewise.
53400         * modules/gc-md5-tests: Likewise.
53401         * modules/gc-pbkdf2-sha1-tests: Likewise.
53402         * modules/gc-rijndael-tests: Likewise.
53403         * modules/gc-sha1-tests: Likewise.
53404         * modules/gc-tests: Likewise.
53405         * modules/getaddrinfo-tests: Likewise.
53406         * modules/hmac-md5-tests: Likewise.
53407         * modules/hmac-sha1-tests: Likewise.
53408         * modules/linked-list-tests: Likewise.
53409         * modules/linkedhash-list-tests: Likewise.
53410         * modules/lock-tests: Likewise.
53411         * modules/md2-tests: Likewise.
53412         * modules/md4-tests: Likewise.
53413         * modules/md5-tests: Likewise.
53414         * modules/rbtree-list-tests: Likewise.
53415         * modules/rbtree-oset-tests: Likewise.
53416         * modules/rbtreehash-list-tests: Likewise.
53417         * modules/read-file-tests: Likewise.
53418         * modules/rijndael-tests: Likewise.
53419         * modules/stdint-tests: Likewise.
53420         * modules/tls-tests: Likewise.
53421
53422 2007-02-24  Bruno Haible  <bruno@clisp.org>
53423
53424         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53425         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53426         function; instead check whether isnan with a double argument links.
53427         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53428         function; instead check whether isnan with a 'long double' argument
53429         links.
53430         Reported by Eric Blake <ebb9@byu.net>.
53431
53432 2007-02-24  Bruno Haible  <bruno@clisp.org>
53433
53434         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53435         defined.
53436         * lib/isnanl.c: Remove all code. Just include isnan.c.
53437         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53438
53439 2007-02-25  Jim Meyering  <jim@meyering.net>
53440
53441         Avoid conflicting types for 'unsetenv' on FreeBSD.
53442         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53443         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53444         in stdlib.h.
53445
53446 2007-02-24  Bruno Haible  <bruno@clisp.org>
53447
53448         * modules/isnanl-nolibm-tests: New file.
53449         * tests/test-isnanl.c: New file.
53450
53451         * modules/isnanl-nolibm: New file.
53452         * lib/isnanl.h: New file.
53453         * lib/isnanl.c: New file.
53454         * m4/isnanl.m4: New file.
53455
53456 2007-02-24  Bruno Haible  <bruno@clisp.org>
53457
53458         * modules/isnan-nolibm-tests: New file.
53459         * tests/test-isnan.c: New file.
53460
53461         * modules/isnan-nolibm: New file.
53462         * lib/isnan.h: New file.
53463         * lib/isnan.c: New file.
53464         * m4/isnan.m4: New file.
53465
53466 2007-02-24  Bruno Haible  <bruno@clisp.org>
53467
53468         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
53469         assume that an exponent fits in 20 bits.
53470
53471 2007-02-24  Jim Meyering  <jim@meyering.net>
53472
53473         * m4/regex.m4: Update the description of the configure-time option,
53474         --without-included-regex, to state accurately what the defaults are,
53475         and perhaps to give people an idea why using this option is risky.
53476
53477 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53478
53479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
53480         loops on small arguments.  This attempts to avoid the problem
53481         Bruno Haible reported for AIX 4.3.2 in
53482         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
53483
53484 2007-02-23  Bruno Haible  <bruno@clisp.org>
53485
53486         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
53487         Needed for help2man.
53488
53489 2007-02-23  Karl Berry  <karl@gnu.org>
53490
53491         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
53492         exists, foo.h should be cvs-ignored, not committed.
53493
53494 2007-02-23  Eric Blake  <ebb9@byu.net>
53495
53496         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
53497         * lib/stat-time.h (includes): Likewise.
53498         * lib/utimecmp.c (includes): Likewise.
53499         * lib/utimens.h (includes): Likewise.
53500         * lib/getdate.y (includes): Also include "timespec.h" for use
53501         internal to the module.
53502         * modules/utimens (Depends-on): Revert yesterday's patch.
53503         * modules/nanosleep (Depends-on): Add missing dependency.
53504
53505 2007-02-22  Bruno Haible  <bruno@clisp.org>
53506
53507         * lib/glob.c: Don't include getlogin_r.h.
53508
53509 2007-02-22  Jim Meyering  <jim@meyering.net>
53510
53511         * modules/utimens (Depends-on): Add timespec, required for
53512         utimens.h's inclusion of timespec.h.
53513
53514 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53515
53516         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
53517         long unreadable paths in GNU/Linux.  Problem reported by Andreas
53518         Schwab in
53519         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53520         I'll try to think of a better way to fix the Solaris problem.
53521
53522         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
53523         like glibc; on Solaris 10, it fails with errno == EINVAL.
53524         POSIX says the behavior is unspecified if the first argument is NULL,
53525         so play it safe and never pass NULL to the system getcwd.
53526
53527 2007-02-21  Jim Meyering  <jim@meyering.net>
53528
53529         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
53530         of gettimeofday.  It would conflict with the one now always
53531         provided via sys_time_.h.  Reported by Matthew Woehlke, as
53532         an IRIX 6.5 build failure.
53533
53534 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53535
53536         Minor fixups to port to Solaris 10 with Sun C 5.8.
53537         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
53538         * modules/getcwd (Depends-on): Add dirfd.
53539         * lib/putenv.c (putenv): #undef it.
53540         (rpl_putenv): New decl.
53541         (malloc, free): Include <stdlib.h> rather than prototyping separately.
53542
53543 2007-02-20  Bruno Haible  <bruno@clisp.org>
53544
53545         * modules/stdio-tests: New file.
53546         * tests/test-stdio.c: New file.
53547
53548         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
53549         (Depends-on): Add stdio.
53550         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53551         (Include): Use <stdio.h> instead of vsnprintf.h.
53552         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53553         HAVE_DECL_VSNPRINTF.
53554         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
53555
53556         * modules/snprintf (Files): Remove lib/snprintf.h.
53557         (Depends-on): Add stdio.
53558         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53559         (Include): Use <stdio.h> instead of snprintf.h.
53560         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53561         HAVE_DECL_SNPRINTF.
53562         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
53563         * lib/getaddrinfo.c: Likewise.
53564
53565         * modules/stdio: New file.
53566         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
53567         * lib/snprintf.h: Remove file.
53568         * lib/vsnprintf.h: Remove file.
53569         * lib/.cppi-disable: Remove snprintf.h.
53570         * m4/stdio_h.m4: New file.
53571         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
53572
53573 2007-02-20  Jim Meyering  <jim@meyering.net>
53574
53575         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
53576         used by e.g., mingw.  From Bruno Haible.
53577
53578 2007-02-19  Bruno Haible  <bruno@clisp.org>
53579
53580         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
53581         warnings.
53582         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53583
53584 2007-02-19  Bruno Haible  <bruno@clisp.org>
53585
53586         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
53587         from mingw users.
53588
53589 2007-02-19  Bruno Haible  <bruno@clisp.org>
53590
53591         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
53592         warnings.
53593         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
53594
53595 2007-02-19  Jim Meyering  <jim@meyering.net>
53596
53597         Don't use FD after a successful "fdopendir (fd)".
53598         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
53599         Reset it by calling dirfd on the just-obtained DIR*.
53600
53601         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
53602         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
53603
53604 2007-02-18  Bruno Haible  <bruno@clisp.org>
53605
53606         * lib/readlink.c: Include <unistd.h>.
53607         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
53608         HAVE_READLINK.
53609         * modules/readlink (Depends-on): Add unistd.
53610         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53611         (Include): Add <unistd.h>.
53612
53613         * lib/getlogin_r.h: Remove file.
53614         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
53615         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
53616         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
53617         HAVE_DECL_GETLOGIN_R.
53618         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
53619         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53620         (Include): Use <unistd.h> instead of getlogin_r.h.
53621
53622         * lib/getcwd.h: Remove file.
53623         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
53624         * lib/xgetcwd.c: Likewise.
53625         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
53626         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
53627         * modules/getcwd (Files): Remove lib/getcwd.h.
53628         (Depends-on): Add unistd.
53629         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53630         (Include): Use <unistd.h> instad of getcwd.h.
53631
53632         * lib/ftruncate.c: Include <unistd.h> first.
53633         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53634         Set HAVE_FTRUNCATE.
53635         * modules/ftruncate (Depends-on): Add unistd.
53636         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53637
53638         * lib/fchdir.c: Include <unistd.h> first.
53639         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53640         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53641         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53642         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53643         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53644
53645         * lib/dup2.c: Include <unistd.h> first.
53646         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53647         HAVE_DUP2.
53648         * modules/dup2 (Depends-on): Add unistd.
53649         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53650
53651         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53652         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53653         REPLACE_CHOWN. Don't define chown as a macro here.
53654         * modules/chown (Depends-on): Add unistd.
53655         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53656
53657         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53658         Add definition for GL_LINK_WARNING.
53659         (chown, dup2): New declarations.
53660         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53661         link warning.
53662         (ftruncate): New declaration.
53663         (getcwd): New declaration, taken from old getcwd.h.
53664         (getlogin_r): New declaration, taken from old getlogin_r.h.
53665         (readlink): New declaration.
53666         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53667         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53668         (gl_PREREQ_UNISTD): Remove macro.
53669         (gl_UNISTD_MODULE_INDICATOR): New macro.
53670         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53671         many new variables. Don't set UNISTD_H.
53672         * modules/unistd (Description): Change.
53673         (Depends-on): Add link-warning.
53674         (configure.ac): Update.
53675         (Makefile.am): Create unistd.h always. Substitute many new variables
53676         into it.
53677
53678 2007-02-18  Bruno Haible  <bruno@clisp.org>
53679
53680         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53681         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53682         HAVE_GETSUBOPT.
53683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53684         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53685         * lib/getsubopt.h: Remove file.
53686         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53687         (Depends-on): Add stdlib.
53688         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53689         (Includes): Use <stdlib.h> instead of getsubopt.h.
53690         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53691         Set HAVE_GETSUBOPT.
53692         * lib/getsubopt.c: Don't include getsubopt.h.
53693
53694 2007-02-18  Bruno Haible  <bruno@clisp.org>
53695
53696         * modules/fchdir (Depends-on): Add dup2.
53697
53698 2007-02-18  Bruno Haible  <bruno@clisp.org>
53699
53700         * lib/stdlib_.h: Handle glibc's special invocation convention
53701         specially.
53702
53703 2007-02-18  Bruno Haible  <bruno@clisp.org>
53704
53705         * modules/stdlib-tests: New file.
53706         * tests/test-stdlib.c: New file.
53707
53708         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53709         (Depends-on): Add stdlib.
53710         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53711         (Includes): Use <stdlib.h> instead of mkstemp.h.
53712         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53713         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53714         * lib/mkstemp.c: Don't include mkstemp.h.
53715         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53716         * lib/stdlib--.h: Don't include mkstemp.h.
53717
53718         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53719         (Depends-on): Add stdlib.
53720         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53721         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53722         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53723         HAVE_MKDTEMP.
53724         * lib/mkdtemp.c: Don't include mkdtemp.h.
53725         * lib/clean-temp.c: Don't include mkdtemp.h.
53726
53727         * modules/exit (Files): Remove lib/exit.h.
53728         (Depends-on): Add stdlib.
53729         (Makefile.am): Remove lib_SOURCES.
53730         (Include): Use <stdlib.h> instead of exit.h.
53731         * lib/argmatch.c: Don't include exit.h.
53732         * lib/execute.c: Likewise.
53733         * lib/pagealign_alloc.c: Likewise.
53734         * lib/pipe.c: Likewise.
53735         * lib/wait-process.c: Likewise.
53736         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
53737         * lib/exitfail.c: Likewise.
53738         * lib/savewd.c: Likewise.
53739         * lib/xsetenv.c: Likewise.
53740
53741         * modules/stdlib: New file.
53742         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
53743         and extra comments about mkstemp().
53744         * lib/exit.h: Remove file.
53745         * lib/mkdtemp.h: Remove file.
53746         * lib/mkstemp.h: Remove file.
53747         * m4/stdlib_h.m4: New file.
53748         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
53749
53750 2007-02-18  Bruno Haible  <bruno@clisp.org>
53751
53752         * modules/math-tests: New file.
53753         * tests/test-math.c: New file.
53754
53755         * modules/math: New file.
53756         * modules/mathl (Files): Remove lib/mathl.h.
53757         (Depends-on): Add math.
53758         (Makefile.am): Don't mention mathl.h.
53759         (Include): Use <math.h> instead of mathl.h.
53760         * lib/math_.h: New file.
53761         * lib/mathl.h: Remove file.
53762         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
53763         mathl.h.
53764         * lib/asinl.c: Likewise.
53765         * lib/atanl.c: Likewise.
53766         * lib/ceill.c: Likewise.
53767         * lib/cosl.c: Likewise.
53768         * lib/expl.c: Likewise.
53769         * lib/floorl.c: Likewise.
53770         * lib/frexpl.c: Likewise.
53771         * lib/ldexpl.c: Likewise.
53772         * lib/logl.c: Likewise.
53773         * lib/sincosl.c: Likewise.
53774         * lib/sinl.c: Likewise.
53775         * lib/sqrtl.c: Likewise.
53776         * lib/tanl.c: Likewise.
53777         * lib/trigl.c: Likewise.
53778         * m4/math_h.m4: New file.
53779         * MODULES.html.sh (Mathematics): Add math.
53780
53781 2007-02-17  Bruno Haible  <bruno@clisp.org>
53782
53783         * modules/wctype-tests: New file.
53784         * tests/test-wctype.c: New file.
53785
53786         * modules/wchar-tests: New file.
53787         * tests/test-wchar.c: New file.
53788
53789         * modules/unistd-tests: New file.
53790         * tests/test-unistd.c: New file.
53791
53792         * modules/time-tests: New file.
53793         * tests/test-time.c: New file.
53794
53795         * modules/sysexits-tests: New file.
53796         * tests/test-sysexits.c: New file.
53797
53798         * modules/sys_time-tests: New file.
53799         * tests/test-sys_time.c: New file.
53800
53801         * modules/sys_stat-tests: New file.
53802         * tests/test-sys_stat.c: New file.
53803
53804         * modules/sys_socket-tests: New file.
53805         * tests/test-sys_socket.c: New file.
53806
53807         * modules/sys_select-tests: New file.
53808         * tests/test-sys_select.c: New file.
53809
53810         * modules/string-tests: New file.
53811         * tests/test-string.c: New file.
53812
53813         * modules/stdbool-tests: New file.
53814         * tests/test-stdbool.c: New file.
53815
53816         * modules/netinet_in-tests: New file.
53817         * tests/test-netinet_in.c: New file.
53818
53819         * modules/inttypes-tests: New file.
53820         * tests/test-inttypes.c: New file.
53821
53822         * modules/fcntl-tests: New file.
53823         * tests/test-fcntl.c: New file.
53824
53825         * modules/byteswap-tests: New file.
53826         * tests/test-byteswap.c: New file.
53827
53828         * modules/arpa_inet-tests: New file.
53829         * tests/test-arpa_inet.c: New file.
53830
53831 2007-02-17  Bruno Haible  <bruno@clisp.org>
53832
53833         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
53834         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
53835         if the corresponding module is not enabled. Emit link warnings if
53836         the function is used nevertheless.
53837         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
53838         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
53839         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
53840         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
53841         * modules/inttypes (Depends-on): Add link-warning.
53842         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53843         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
53844         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
53845         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
53846         * modules/imaxdiv (configure.ac): Likewise.
53847         * modules/strtoimax (configure.ac): Likewise.
53848         * modules/strtoumax (configure.ac): Likewise.
53849
53850 2007-02-17  Bruno Haible  <bruno@clisp.org>
53851
53852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
53853         gl_STRING_MODULE_INDICATOR_DEFAULTS.
53854         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
53855         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
53856
53857 2007-02-17  Bruno Haible  <bruno@clisp.org>
53858
53859         * modules/link-warning: New file.
53860         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
53861         * lib/string_.h (GL_LINK_WARNING): Remove definition.
53862         * modules/string (Depends-on): Add link-warning.
53863         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53864         string.h.
53865         * MODULES.html.sh (Support for building libraries and executables): Add
53866         link-warning.
53867
53868 2007-02-17  Bruno Haible  <bruno@clisp.org>
53869
53870         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
53871         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
53872         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
53873         long lines.
53874
53875 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
53876             Bruno Haible  <bruno@clisp.org>
53877
53878         * modules/tmpfile: New file.
53879         * lib/tmpfile.c: New file.
53880         * m4/tmpfile.m4: New file.
53881         * MODULES.html.sh (func_all_modules): New section "Input/output".
53882
53883 2007-02-15  Bruno Haible  <bruno@clisp.org>
53884
53885         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
53886         (supports_delete_on_close): New function.
53887         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
53888
53889 2007-02-14  Bruno Haible  <bruno@clisp.org>
53890
53891         * modules/mbspcasecmp-tests: New file.
53892         * tests/test-mbspcasecmp.sh: New file.
53893         * tests/test-mbspcasecmp.c: New file.
53894
53895         New module mbspcasecmp.
53896         * modules/mbspcasecmp: New file.
53897         * lib/mbspcasecmp.c: New file.
53898         * lib/string_.h (strncasecmp): Change warning message.
53899         (mbspcasecmp): New declaration.
53900         * m4/mbspcasecmp.m4: New file.
53901         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53902         GNULIB_MBSPCASECMP.
53903         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
53904         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
53905
53906 2007-02-14  Bruno Haible  <bruno@clisp.org>
53907
53908         * modules/mbsncasecmp-tests: New file.
53909         * tests/test-mbsncasecmp.sh: New file.
53910         * tests/test-mbsncasecmp.c: New file.
53911
53912         New module mbsncasecmp.
53913         * modules/mbsncasecmp: New file.
53914         * lib/mbsncasecmp.c: New file.
53915         * lib/string_.h (mbsncasecmp): New declaration.
53916         * m4/mbsncasecmp.m4: New file.
53917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53918         GNULIB_MBSNCASECMP.
53919         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
53920         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
53921
53922 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53923
53924         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
53925         Verify that it doesn't overlap with our flags.
53926         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
53927         do not have the desired effect in multibyte locales; instead, use
53928         mbscasecmp.
53929         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
53930         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
53931         we don't require GNU fnmatch ourselves (if our users require it, they
53932         should do so explicitly).
53933
53934         Fix regex code so it doesn't rely on strcasecmp.
53935         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
53936         Otherwise, include gnulib's langinfo.h.
53937         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
53938         undesirable behavior in non-C locales.  Instead, rely on localecharset.
53939         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
53940         * modules/regex (FILES): Remove m4/codeset.m4.
53941         (Depends-on): Add localcharset.  Remove strcase.
53942
53943 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53944
53945         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
53946         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
53947
53948 2007-02-13  Bruno Haible  <bruno@clisp.org>
53949
53950         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
53951         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53952
53953 2007-02-12  Bruno Haible  <bruno@clisp.org>
53954
53955         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53956         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
53957         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
53958         time warning rather than a link error.
53959
53960 2007-02-12  Bruno Haible  <bruno@clisp.org>
53961
53962         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
53963         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53964         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53965
53966 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53967
53968         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
53969         args, not 2.
53970
53971 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53972
53973         New module 'time', so that apps can include <time.h> as per
53974         POSIX and GNU instead of separate include files like time_r.h
53975         and timegm.h.  This implementation tries out a simpler approach
53976         for replacing decls in standard include files (as compared to
53977         the string module), somewhat as an experiment.
53978
53979         * config/srclist.txt: Comment out mktime.c for now.
53980         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
53981         since it doesn't apply any more.  Use generic wording instead.
53982         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53983         'time'.
53984         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53985         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53986         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53987         Don't include <sys/types.h>; no longer needed since we assume C89.
53988         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53989         * lib/strftime.c: Likewise.
53990         * lib/time_r.c: Likewise.
53991         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53992         * lib/nanosleep.c: Include <time.h> first, to check interface.
53993         * lib/strptime.c: Likewise.
53994         * lib/time_r.c: Likewise.
53995         * lib/timegm.c: Likewise.
53996         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53997         needed.
53998         * lib/timegm.c: Don't include timegm.h; no longer needed.
53999         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54000         time.h now handles any problems in that area.
54001         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54002         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54003         that time.h defines struct timespec.
54004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54005         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54006         handles that.
54007         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54008         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54009         needed.  Set REPLACE_LOCALTIME.
54010         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54011         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54012         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54013         nanosleep; time_h.m4 now does that.  Don't require
54014         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54015         module handles this now.
54016         * modules/getdate (Depends-on): Remove timespec.  Add time.
54017         * modules/nanosleep (Depends-on): Likewise.
54018         * modules/stat-time (Depends-on): Likewise.
54019         * modules/nanosleep (Include): Include time.h, not timespec.h.
54020         * modules/strptime (Files): Remove lib/strptime.h.
54021         (Depends-on): Add extensions, time.
54022         (Include): Include time.h, not strptime.h.
54023         * modules/time_r (Files): Remove lib/time_r.h.
54024         (Depends-on): Add time.
54025         (Include): Include time.h, not time_r.h.
54026         * modules/timegm: Likewise.
54027         * modules/timespec (Description): Now does timespec-related decls
54028         of our own, instead of struct timespec itself.
54029         (Depends-on): Add time; remove extensions.
54030         (Maintainer): Add self.
54031         * modules/utimecmp (Depends-on): Add time; remove timespec.
54032         * modules/utimens (Depends-on): Likewise.
54033         * modules/xnanosleep (Depends-on): Likewise.
54034
54035 2007-02-11  Bruno Haible  <bruno@clisp.org>
54036
54037         * lib/c-strstr.c: Include allocsa.h.
54038         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54039         * lib/c-strcasestr.c: Include allocsa.h.
54040         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54041         * lib/strcasestr.c: Include allocsa.h.
54042         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54043         * lib/mbsstr.c: Include allocsa.h.
54044         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54045         allocsa/freesa instead of malloc/free.
54046         * lib/mbscasestr.c: Include allocsa.h.
54047         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54048         allocsa/freesa instead of malloc/free.
54049         * modules/c-strstr (Depends-on): Add allocsa.
54050         * modules/c-strcasestr (Depends-on): Likewise.
54051         * modules/strcasestr (Depends-on): Likewise.
54052         * modules/mbsstr (Depends-on): Likewise.
54053         * modules/mbscasestr (Depends-on): Likewise.
54054
54055 2007-02-11  Bruno Haible  <bruno@clisp.org>
54056
54057         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54058
54059         * modules/mbsspn-tests: New file.
54060         * tests/test-mbsspn.sh: New file.
54061         * tests/test-mbsspn.c: New file.
54062
54063 2007-02-11  Bruno Haible  <bruno@clisp.org>
54064
54065         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54066
54067         * modules/mbspbrk-tests: New file.
54068         * tests/test-mbspbrk.sh: New file.
54069         * tests/test-mbspbrk.c: New file.
54070
54071 2007-02-11  Bruno Haible  <bruno@clisp.org>
54072
54073         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54074         unneeded cast.
54075
54076         * modules/mbscspn-tests: New file.
54077         * tests/test-mbscspn.sh: New file.
54078         * tests/test-mbscspn.c: New file.
54079
54080 2007-02-11  Bruno Haible  <bruno@clisp.org>
54081
54082         * modules/mbscasecmp-tests: New file.
54083         * tests/test-mbscasecmp.sh: New file.
54084         * tests/test-mbscasecmp.c: New file.
54085
54086 2007-02-11  Bruno Haible  <bruno@clisp.org>
54087
54088         Ensure O(n) worst-case complexity of mbscasestr.
54089         * lib/mbscasestr.c: Include stdbool.h.
54090         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54091         functions.
54092         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54093         the bookkeeping indicates that it's worth it.
54094         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54095
54096         * modules/mbscasestr-tests: New file.
54097         * tests/test-mbscasestr1.c: New file.
54098         * tests/test-mbscasestr2.sh: New file.
54099         * tests/test-mbscasestr2.c: New file.
54100         * tests/test-mbscasestr3.sh: New file.
54101         * tests/test-mbscasestr3.c: New file.
54102         * tests/test-mbscasestr4.sh: New file.
54103         * tests/test-mbscasestr4.c: New file.
54104         * m4/locale-tr.m4: New file.
54105
54106 2007-02-11  Bruno Haible  <bruno@clisp.org>
54107
54108         Ensure O(n) worst-case complexity of mbsstr.
54109         * lib/mbsstr.c: Include stdbool.h.
54110         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54111         functions.
54112         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54113         bookkeeping indicates that it's worth it.
54114         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54115
54116         * modules/mbsstr-tests: New file.
54117         * tests/test-mbsstr1.c: New file.
54118         * tests/test-mbsstr2.sh: New file.
54119         * tests/test-mbsstr2.c: New file.
54120         * tests/test-mbsstr3.sh: New file.
54121         * tests/test-mbsstr3.c: New file.
54122         * m4/locale-fr.m4: New file.
54123
54124 2007-02-11  Bruno Haible  <bruno@clisp.org>
54125
54126         * lib/mbsrchr.c (mbsrchr): Fix bug.
54127
54128         * modules/mbsrchr-tests: New file.
54129         * tests/test-mbsrchr.sh: New file.
54130         * tests/test-mbsrchr.c: New file.
54131
54132 2007-02-11  Bruno Haible  <bruno@clisp.org>
54133
54134         * lib/mbschr.c (mbschr): Fix bug.
54135
54136         * modules/mbschr-tests: New file.
54137         * tests/test-mbschr.sh: New file.
54138         * tests/test-mbschr.c: New file.
54139         * m4/locale-zh.m4: New file.
54140
54141 2007-02-11  Bruno Haible  <bruno@clisp.org>
54142
54143         Support for copying multibyte string iterators.
54144         * lib/mbiter.h: Include <string.h>.
54145         (mbiter_multi_copy): New function.
54146         (mbi_copy): New macro.
54147         * lib/mbuiter.h: Include <string.h>.
54148         (mbuiter_multi_copy): New function.
54149         (mbui_copy): New macro.
54150
54151 2007-02-11  Bruno Haible  <bruno@clisp.org>
54152
54153         New module mbslen.
54154         * modules/mbslen: New file.
54155         * lib/mbslen.c: New file.
54156         * lib/string_.h (mbslen): New declaration.
54157         * m4/mbslen.m4: New file.
54158         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54159         GNULIB_MBSLEN.
54160         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54161         * MODULES.html.sh (Internationalization functions): Add mbslen.
54162
54163 2007-02-11  Bruno Haible  <bruno@clisp.org>
54164
54165         Ensure O(n) worst-case complexity of strcasestr substitute.
54166         * lib/strcasestr.c: Include stdbool.h.
54167         (knuth_morris_pratt): New function.
54168         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54169         bookkeeping indicates that it's worth it.
54170         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54171
54172         * modules/strcasestr-tests: New file.
54173         * tests/test-strcasestr.c: New file.
54174
54175 2007-02-11  Bruno Haible  <bruno@clisp.org>
54176
54177         Ensure O(n) worst-case complexity of c_strcasestr.
54178         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54179         (knuth_morris_pratt): New function.
54180         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54181         the bookkeeping indicates that it's worth it.
54182         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54183
54184         * modules/c-strcasestr-tests: New file.
54185         * tests/test-c-strcasestr.c: New file.
54186
54187 2007-02-11  Bruno Haible  <bruno@clisp.org>
54188
54189         Ensure O(n) worst-case complexity of c_strstr.
54190         * lib/c-strstr.c: Include stdbool.h, string.h.
54191         (knuth_morris_pratt): New function.
54192         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54193         bookkeeping indicates that it's worth it.
54194         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54195
54196         * lib/c-strstr.c: Complete rewrite for maintainability.
54197
54198         * modules/c-strstr-tests: New file.
54199         * tests/test-c-strstr.c: New file.
54200
54201 2007-02-11  Bruno Haible  <bruno@clisp.org>
54202
54203         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54204         5.2.1 and earlier, whereby \055 was treated just like the range
54205         delimiter '-'.
54206         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54207
54208 2007-02-08  Bruno Haible  <bruno@clisp.org>
54209
54210         * modules/regex (Depends-on): Add stdbool.
54211         Reported by Dalibor Topic <robilad@kaffe.org>.
54212
54213 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54214
54215         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54216         Prefer returning from main to exiting from it.
54217         Remove unnecessary parens after sizeof.
54218
54219 2007-02-05  Bruno Haible  <bruno@clisp.org>
54220
54221         New module mbssep.
54222         * modules/mbssep: New file.
54223         * lib/mbssep.c: New file.
54224         * lib/string_.h (strsep): Add a conditional link warning.
54225         (mbssep): New declaration.
54226         * m4/mbssep.m4: New file.
54227         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54228         GNULIB_MBSSEP.
54229         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54230         * MODULES.html.sh (Internationalization functions): Add mbssep.
54231
54232 2007-02-05  Bruno Haible  <bruno@clisp.org>
54233
54234         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54235         Optimize search in case of 1 delimiter.
54236
54237 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54238
54239         * lib/acl.h: Include sys/types.h before sys/acl.h.
54240
54241 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54242
54243         Merge upstream fix for glibc bugzilla #3957:
54244
54245         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54246
54247         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54248         bit for RE_HAT_LISTS_NOT_NEWLINE.
54249         (build_charclass_op): Remove bogus comment.
54250
54251 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54252
54253         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54254
54255 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54256
54257         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54258         * lib/memmem.c [!defined _LIBC]: Include config.h.
54259
54260 2007-02-04  Bruno Haible  <bruno@clisp.org>
54261
54262         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54263         warning message.
54264
54265 2007-02-04  Bruno Haible  <bruno@clisp.org>
54266
54267         New module mbstok_r.
54268         * modules/mbstok_r: New file.
54269         * lib/mbstok_r.c: New file.
54270         * lib/string_.h (strtok_r): Change argument names to match the
54271         comments. Add a conditional link warning.
54272         (mbstok_r): New declaration.
54273         * m4/mbstok_r.m4: New file.
54274         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54275         GNULIB_MBSTOK_R.
54276         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54277         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54278
54279 2007-02-04  Bruno Haible  <bruno@clisp.org>
54280
54281         New module mbsspn.
54282         * modules/mbsspn: New file.
54283         * lib/mbsspn.c: New file.
54284         * lib/string_.h (strspn): Add a conditional link warning.
54285         (mbsspn): New declaration.
54286         * m4/mbsspn.m4: New file.
54287         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54288         GNULIB_MBSSPN.
54289         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54290         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54291
54292 2007-02-04  Bruno Haible  <bruno@clisp.org>
54293
54294         New module mbspbrk.
54295         * modules/mbspbrk: New file.
54296         * lib/mbspbrk.c: New file.
54297         * lib/string_.h (strpbrk): Add a conditional link warning.
54298         (mbspbrk): New declaration.
54299         * m4/mbspbrk.m4: New file.
54300         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54301         GNULIB_MBSPBRK.
54302         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54303         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54304
54305 2007-02-04  Bruno Haible  <bruno@clisp.org>
54306
54307         New module mbscspn.
54308         * modules/mbscspn: New file.
54309         * lib/mbscspn.c: New file.
54310         * lib/string_.h (strcspn): Add a conditional link warning.
54311         (mbscspn): New declaration.
54312         * m4/mbscspn.m4: New file.
54313         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54314         GNULIB_MBSCSPN.
54315         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54316         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54317
54318 2007-02-04  Bruno Haible  <bruno@clisp.org>
54319
54320         New module mbscasestr, reduced goal of strcasestr.
54321         * modules/mbscasestr: New file.
54322         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54323         (mbscasestr): Renamed from strcasestr.
54324         * lib/strcasestr.c: Don't include mbuiter.h.
54325         (strcasestr): Remove support for multibyte locales.
54326         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54327         Change the conditional link warning.
54328         (mbscasestr): New declaration.
54329         * m4/mbscasestr.m4: New file.
54330         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54331         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54332         REPLACE_STRCASESTR.
54333         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54335         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54336         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54337         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54338         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54339         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54340         (Depends-on): Remove mbuiter.
54341         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54342
54343 2007-02-04  Bruno Haible  <bruno@clisp.org>
54344
54345         Simplify handling of strncasecmp.
54346         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54347         the conditional link warning.
54348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54349         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54350         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54351         * modules/strcase (configure.ac): Don't invoke
54352         gl_STRING_MODULE_INDICATOR.
54353         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54354
54355 2007-02-04  Bruno Haible  <bruno@clisp.org>
54356
54357         New module mbscasecmp, reduced goal of strcasecmp.
54358         * modules/mbscasecmp: New file.
54359         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54360         (mbscasecmp): Renamed from strcasecmp.
54361         * lib/strcasecmp.c: Don't include mbuiter.h.
54362         (strcasecmp): Remove support for multibyte locales.
54363         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54364         Change the conditional link warning.
54365         (mbscasecmp): New declaration.
54366         * m4/mbscasecmp.m4: New file.
54367         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54368         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54369         REPLACE_STRCASECMP.
54370         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54372         GNULIB_MBSCASECMP.
54373         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54374         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54375         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54376         (Depends-on): Remove mbuiter.
54377         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54378
54379 2007-02-04  Bruno Haible  <bruno@clisp.org>
54380
54381         New module mbsstr. Remove module strstr.
54382         * modules/mbsstr: New file.
54383         * modules/strstr: Remove file.
54384         * lib/mbsstr.c: Renamed from lib/strstr.c.
54385         (mbsstr): Renamed from strstr.
54386         * lib/string_.h (strstr): Remove declaration. Change the conditional
54387         link warning.
54388         (mbsstr): New declaration.
54389         * m4/mbsstr.m4: New file.
54390         * m4/strstr.m4: Remove file.
54391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54392         REPLACE_STRSTR.
54393         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54394         Don't initialize GNULIB_STRSTR.
54395         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54396         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54397         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54398         (Support for systems lacking ANSI C 89): Remove strstr.
54399
54400 2007-02-04  Bruno Haible  <bruno@clisp.org>
54401
54402         New module mbsrchr.
54403         * modules/mbsrchr: New file.
54404         * lib/mbsrchr.c: New file.
54405         * lib/string_.h (strrchr): Add a conditional link warning.
54406         (mbsrchr): New declaration.
54407         * m4/mbsrchr.m4: New file.
54408         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54409         GNULIB_MBSRCHR.
54410         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54411         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54412
54413 2007-02-04  Bruno Haible  <bruno@clisp.org>
54414
54415         New module mbschr.
54416         * modules/mbschr: New file.
54417         * lib/mbschr.c: New file.
54418         * lib/string_.h (strchr): Add a conditional link warning.
54419         (mbschr): New declaration.
54420         * m4/mbschr.m4: New file.
54421         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54422         GNULIB_MBSCHR.
54423         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54424         * MODULES.html.sh (Internationalization functions): Add mbschr.
54425
54426 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54427
54428         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54429
54430         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54431
54432 2007-02-04  Bruno Haible  <bruno@clisp.org>
54433
54434         New module description section 'configure.ac-early'.
54435         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54436         (func_get_autoconf_early_snippet): New function.
54437         (func_import, func_create_testdir): Use it. Remove special cases for
54438         modules 'extensions' and 'lock'.
54439         * modules/extensions (configure.ac-early): Require
54440         gl_USE_SYSTEM_EXTENSIONS.
54441         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54442
54443 2007-02-04  Bruno Haible  <bruno@clisp.org>
54444
54445         Make use of gcj-4.3's -fsource and -ftarget option.
54446         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54447         and if so try the options -fsource and -ftarget.
54448         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54449         source_version, ftarget_option, target_version arguments.
54450         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54451         (is_envjavac_oldgcj_14_14_usable): Renamed from
54452         is_envjavac_gcj_14_14_usable.
54453         (is_envjavac_oldgcj_14_13_usable): Renamed from
54454         is_envjavac_gcj_14_13_usable.
54455         (is_gcj_present): Update.
54456         (is_gcj_43, is_gcj43_usable): New functions.
54457         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54458         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54459         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54460         try the options -fsource and -ftarget.
54461
54462 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54463
54464         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
54465         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
54466         larger value.
54467
54468 2007-02-03  Jim Meyering  <jim@meyering.net>
54469
54470         Give tools a better chance to allocate space for very large buffers.
54471         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
54472
54473         Make pwd and readlink work also when run with an unreadable parent dir
54474         on systems with openat support.
54475         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
54476         provided getcwd function, even when we have openat support.
54477         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
54478
54479 2007-02-02  Bruno Haible  <bruno@clisp.org>
54480
54481         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54482         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
54483         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
54484         portability problems if one of these functions is only used on specific
54485         platforms.
54486         Reported by Paul Eggert.
54487
54488 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
54489
54490         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
54491         is causing more trouble than it's curing.
54492         * lib/regex_internal.h (__mempcpy): Remove.
54493         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
54494         (and make the code a tad smaller to boot).
54495         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
54496
54497 2007-02-02  Jim Meyering  <jim@meyering.net>
54498
54499         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
54500         section, not in the Makefile.am: one.
54501
54502 2007-02-02  Eric Blake  <ebb9@byu.net>
54503
54504         * lib/strchrnul.c: Always include config.h first.
54505
54506         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
54507         gnulib strstr is not necessary here.
54508
54509 2007-02-02  Simon Josefsson  <simon@josefsson.org>
54510
54511         * m4/socklen.m4: Fix typo.
54512
54513 2007-02-02  Eric Blake  <ebb9@byu.net>
54514
54515         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
54516         * modules/netinet_in (Makefile.am): Likewise.
54517
54518 2007-02-01  Bruno Haible  <bruno@clisp.org>
54519
54520         * lib/string_.h (GL_LINK_WARNING): New macro.
54521         (strcasecmp, strstr, strcasestr): If provided by the system,
54522         conditionally define as a macro that leads to a warning instead of to
54523         an error.
54524         (strncasecmp): Conditionally define as a macro that leads to a warning.
54525
54526 2007-02-01  Karl Berry  <karl@gnu.org>
54527
54528         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
54529
54530 2007-02-01  Bruno Haible  <bruno@clisp.org>
54531
54532         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
54533         renamings.
54534
54535 2007-02-01  Eric Blake  <ebb9@byu.net>
54536
54537         * modules/regex (Depends-on): Revert dependence on mempcpy.
54538         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
54539         module's definition of mempcpy.
54540         Reported by Paul Eggert.
54541
54542 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54543
54544         * lib/string_.h: If the gnulib module XYZ is not present, undefine
54545         the symbol XYZ before redefining it.  This fixes a problem with
54546         programs that don't use XYZ, when compiled on systems that define
54547         XYZ to something else.
54548
54549 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
54550
54551         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
54552         occurs when "mkdir -m foo" creates a setgid directory that is (1)
54553         writeable to group or other and (2) is intended to have a special
54554         mode bit that is set or cleared.  In such a case, the directory
54555         should be neither group- nor other-writeable until the special
54556         mode bits are right.
54557
54558 2007-01-31  Eric Blake  <ebb9@byu.net>
54559
54560         * modules/mountlist (Depends-on): Add strstr.
54561
54562         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
54563         bug.
54564         * modules/string (Makefile.am): Remove redundant replacement.
54565         * modules/regex (Depends-on): Add mempcpy.
54566
54567 2007-01-31  Bruno Haible  <bruno@clisp.org>
54568
54569         New module description field 'Link'.
54570         * gnulib-tool (func_usage): Document --extract-link-directive.
54571         (sed_extract_prog): Recognize 'Link' directive.
54572         (func_get_link_directive): New function.
54573         (func_import): Show summary of link directives.
54574         Handle --extract-link-directive option.
54575         * modules/acl (Link): New section.
54576         * modules/clock-time (Link): New section.
54577         * modules/euidaccess (Link): New section.
54578         * modules/gettext (Link): New section.
54579         * modules/iconv (Link): New section.
54580         * modules/lock (Link): New section.
54581         * modules/nanosleep (Link): New section.
54582         * modules/readline (Link): New section.
54583
54584 2007-01-27  Bruno Haible  <bruno@clisp.org>
54585
54586         Enforce the use of gnulib modules for unportable <string.h> functions.
54587         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54588         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
54589         (gl_HEADER_STRING_H_BODY): Require it.
54590         * lib/string_.h: If the gnulib module XYZ is not present, redefine
54591         the symbol XYZ to one that gives a link error.
54592         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
54593         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
54594         * modules/mempcpy (configure.ac): Likewise.
54595         * modules/memrchr (configure.ac): Likewise.
54596         * modules/stpcpy (configure.ac): Likewise.
54597         * modules/stpncpy (configure.ac): Likewise.
54598         * modules/strcase (configure.ac): Likewise.
54599         * modules/strcasestr (configure.ac): Likewise.
54600         * modules/strchrnul (configure.ac): Likewise.
54601         * modules/strdup (configure.ac): Likewise.
54602         * modules/strndup (configure.ac): Likewise.
54603         * modules/strnlen (configure.ac): Likewise.
54604         * modules/strpbrk (configure.ac): Likewise.
54605         * modules/strsep (configure.ac): Likewise.
54606         * modules/strstr (configure.ac): Likewise.
54607         * modules/strtok_r (configure.ac): Likewise.
54608
54609 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
54610
54611         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
54612
54613 2007-01-30  Jim Meyering  <jim@meyering.net>
54614
54615         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
54616
54617 2007-01-29  Bruno Haible  <bruno@clisp.org>
54618
54619         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
54620         * lib/execute.c: Likewise.
54621         * lib/pipe.c: Likewise.
54622         * lib/printf-args.h: Likewise.
54623         * lib/printf-args.c: Likewise.
54624         * lib/printf-parse.c: Likewise.
54625         * lib/vasnprintf.c: Likewise.
54626
54627 2007-01-29  Eric Blake  <ebb9@byu.net>
54628
54629         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
54630         declaration.
54631
54632 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54633
54634         * lib/strptime.h (strptime): Use 'restrict' for args where
54635         POSIX requires this.
54636         * lib/strptime.c (strptime): Likewise.
54637         Change license notice from LGPL to GPL, since gnulib-tool will
54638         change this as needed.
54639         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54640         defined.
54641         Include "strptime.h" first, to check interface.
54642         Do not #undef _LIBC and _NL_CURRENT.
54643         Do not include <stdlib.h>; no longer needed.
54644         Include "time_r.h" and declare ptime_locale_status
54645         only if _LIBC is not defined.
54646         (__P): Remove unused macro.
54647         (match_string): Bring back glibc version, but use it only if _LIBC
54648         is defined.
54649         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54650         Remove unnecessary assertion and abort() call.
54651         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54652         * m4/strptime.m4: Fix serial number comment.
54653         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54654         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54655         (Depends-on): Add time_r.
54656
54657 2007-01-29  Bruno Haible  <bruno@clisp.org>
54658
54659         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54660         strptime.
54661         * modules/strptime (Depends-on): Add stdbool.
54662         * lib/strptime.h: Include <time.h> always. Add comments.
54663
54664 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54665
54666         * modules/strptime: New file.
54667         * lib/strptime.h: New file.
54668         * lib/strptime.c: New file.
54669         * m4/strptime.m4: New file.
54670
54671 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54672
54673         * MODULES.html.sh: New module mpsort.
54674         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54675
54676         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54677         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54678         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54679         All uses changed.
54680         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54681         All uses changed.
54682         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54683         to _Restrict_.
54684         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54685         the parameter matches the prototype.
54686
54687 2007-01-28  Jim Meyering  <jim@meyering.net>
54688
54689         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54690         sys/time.h here, reverting that part of the previous patch:
54691         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54692
54693 2007-01-28  Bruno Haible  <bruno@clisp.org>
54694
54695         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54696         value of $(SYS_TIME_H).
54697         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54698         remove it conditionally, too. [added by Jim Meyering]
54699         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54700         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54701         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54702         GETTIMEOFDAY_REPLACEMENT to 1.
54703
54704 2007-01-28  Bruno Haible  <bruno@clisp.org>
54705
54706         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54707         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54708         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54709         Set UNISTD_H instead of UNISTD_H2.
54710         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54711
54712 2007-01-28  Bruno Haible  <bruno@clisp.org>
54713
54714         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54715         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54716
54717 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54718
54719         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54720         (func_create_testdir): Ensure C locale for `grep' and `tr'
54721         character ranges.
54722         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54723         ACLOCAL_AMFLAGS parsing state machine.
54724
54725 2007-01-27  Bruno Haible  <bruno@clisp.org>
54726
54727         * modules/unistr/base: Update.
54728
54729 2007-01-27  Bruno Haible  <bruno@clisp.org>
54730
54731         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54732         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54733         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54734         modules/unistr/u32-mbtouc.
54735         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
54736         * lib/unistr.h: Update.
54737         * lib/linebreak.c: Update.
54738         * modules/unistr/u32-mbtouc: Renamed from
54739         modules/unistr/u32-mbtouc-safe.
54740         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
54741         * lib/unistr.h: Update.
54742         * lib/unistr/u32-to-u8.c: Update.
54743         * lib/unistr/u32-to-u16.c: Update.
54744
54745 2007-01-27  Bruno Haible  <bruno@clisp.org>
54746
54747         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
54748         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
54749         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
54750         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
54751         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
54752         * modules/unistr/u16-mbtouc-unsafe: Renamed from
54753         modules/unistr/u16-mbtouc.
54754         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
54755         * lib/unistr.h: Update.
54756         * lib/linebreak.c: Update.
54757         * modules/linebreak: Update.
54758         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
54759         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
54760         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
54761         * modules/unistr/u16-mbtouc: Renamed from
54762         modules/unistr/u16-mbtouc-safe.
54763         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
54764         * lib/unistr.h: Update.
54765         * lib/unistr/u16-to-u8.c: Update.
54766         * modules/unistr/u16-to-u8: Update.
54767         * lib/unistr/u16-to-u32.c: Update.
54768         * modules/unistr/u16-to-u32: Update.
54769
54770 2007-01-27  Bruno Haible  <bruno@clisp.org>
54771
54772         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
54773         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
54774         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
54775         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
54776         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
54777         * modules/unistr/u8-mbtouc-unsafe: Renamed from
54778         modules/unistr/u8-mbtouc.
54779         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
54780         * lib/unistr.h: Update.
54781         * lib/striconveh.c: Update.
54782         * modules/striconveh: Update.
54783         * lib/linebreak.c: Update.
54784         * modules/linebreak: Update.
54785         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
54786         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
54787         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
54788         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
54789         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
54790         * lib/unistr.h: Update.
54791         * lib/striconveh.c: Update.
54792         * modules/striconveh: Update.
54793         * lib/unistr/u8-to-u16.c: Update.
54794         * modules/unistr/u8-to-u16: Update.
54795         * lib/unistr/u8-to-u32.c: Update.
54796         * modules/unistr/u8-to-u32: Update.
54797
54798 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54799
54800         Sync from Libtool.
54801         * lib/argz.c: Do not include strings.h nor memory.h, include
54802         string.h unconditionally.  Patch by Simon Josefsson.
54803
54804 2007-01-27  Bruno Haible  <bruno@clisp.org>
54805
54806         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
54807         from gl_HEADER_STRING_H_BODY.
54808         (gl_HEADER_STRING_H_BODY): Require it.
54809         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
54810         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54811         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54812         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54813         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54814         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
54815         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54816         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54817         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
54818         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54819         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54820         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
54821         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54822         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54823         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54824
54825 2007-01-27  Bruno Haible  <bruno@clisp.org>
54826
54827         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
54828         check_PROGRAMS into noinst_PROGRAMS.
54829         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
54830         check_PROGRAMS in this case.
54831         (func_import): Set for_test to false.
54832         (func_create_testdir): Set for_test to true.
54833
54834 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54835             Bruno Haible  <bruno@clisp.org>
54836
54837         * modules/strcasestr (Files): Remove lib/strcasestr.h.
54838         (Depends-on): Add string.
54839         (Includes): Use <string.h> instead of strcasestr.h.
54840         * modules/string (Makefile.am): Also substitute the value of
54841         REPLACE_STRCASESTR.
54842         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
54843         assume strcasestr is declared in <string.h> not <strings.h>. Also
54844         set REPLACE_STRCASESTR.
54845         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
54846         REPLACE_STRCASESTR.
54847         * lib/strcasestr.h: Remove file.
54848         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
54849         * lib/string_.h (strcasestr): New declaration.
54850
54851 2007-01-27  Bruno Haible  <bruno@clisp.org>
54852
54853         * lib/string_.h: Use 'extern'.
54854
54855 2007-01-27  Jim Meyering  <jim@meyering.net>
54856
54857         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
54858         of set-but-not-used local, "q".
54859
54860         * lib/mempcpy.c: Include <config.h> before <string.h>.
54861         This fixes a compilation error on HP-UX, due to the system's
54862         "restrict"-using mempcpy prototype.
54863
54864 2007-01-26  Bruno Haible  <bruno@clisp.org>
54865
54866         Small optimization.
54867         * lib/javacomp.c: Include c-strstr.h.
54868          (is_envjavac_gcj): Use c_strstr instead of strstr.
54869         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
54870
54871 2007-01-26  Bruno Haible  <bruno@clisp.org>
54872
54873         * MODULES.html.sh (Unicode string functions): Add the new modules.
54874
54875         * modules/uniconv/u32-strconv-to-locale: New file.
54876         * lib/uniconv/u32-strconv-to-locale.c: New file.
54877
54878         * modules/uniconv/u16-strconv-to-locale: New file.
54879         * lib/uniconv/u16-strconv-to-locale.c: New file.
54880
54881         * modules/uniconv/u8-strconv-to-locale: New file.
54882         * lib/uniconv/u8-strconv-to-locale.c: New file.
54883
54884         * modules/uniconv/u32-strconv-from-locale: New file.
54885         * lib/uniconv/u32-strconv-from-locale.c: New file.
54886
54887         * modules/uniconv/u16-strconv-from-locale: New file.
54888         * lib/uniconv/u16-strconv-from-locale.c: New file.
54889
54890         * modules/uniconv/u8-strconv-from-locale: New file.
54891         * lib/uniconv/u8-strconv-from-locale.c: New file.
54892
54893         * modules/uniconv/u32-strconv-to-enc: New file.
54894         * lib/uniconv/u32-strconv-to-enc.c: New file.
54895         * modules/uniconv/u32-strconv-to-enc-tests: New file.
54896         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
54897
54898         * modules/uniconv/u16-strconv-to-enc: New file.
54899         * lib/uniconv/u16-strconv-to-enc.c: New file.
54900         * lib/uniconv/u-strconv-to-enc.h: New file.
54901         * modules/uniconv/u16-strconv-to-enc-tests: New file.
54902         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
54903
54904         * modules/uniconv/u8-strconv-to-enc: New file.
54905         * lib/uniconv/u8-strconv-to-enc.c: New file.
54906         * modules/uniconv/u8-strconv-to-enc-tests: New file.
54907         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
54908
54909         * modules/uniconv/u32-strconv-from-enc: New file.
54910         * lib/uniconv/u32-strconv-from-enc.c: New file.
54911         * modules/uniconv/u32-strconv-from-enc-tests: New file.
54912         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
54913
54914         * modules/uniconv/u16-strconv-from-enc: New file.
54915         * lib/uniconv/u16-strconv-from-enc.c: New file.
54916         * modules/uniconv/u16-strconv-from-enc-tests: New file.
54917         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
54918
54919         * modules/uniconv/u8-strconv-from-enc: New file.
54920         * lib/uniconv/u8-strconv-from-enc.c: New file.
54921         * lib/uniconv/u-strconv-from-enc.h: New file.
54922         * modules/uniconv/u8-strconv-from-enc-tests: New file.
54923         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
54924
54925         * modules/uniconv/u32-conv-from-enc: New file.
54926         * lib/uniconv/u32-conv-from-enc.c: New file.
54927         * modules/uniconv/u32-conv-from-enc-tests: New file.
54928         * tests/uniconv/test-u32-conv-from-enc.c: New file.
54929
54930         * modules/uniconv/u16-conv-from-enc: New file.
54931         * lib/uniconv/u16-conv-from-enc.c: New file.
54932         * lib/uniconv/u-conv-from-enc.h: New file.
54933         * modules/uniconv/u16-conv-from-enc-tests: New file.
54934         * tests/uniconv/test-u16-conv-from-enc.c: New file.
54935
54936         * modules/uniconv/u8-conv-from-enc: New file.
54937         * lib/uniconv/u8-conv-from-enc.c: New file.
54938         * modules/uniconv/u8-conv-from-enc-tests: New file.
54939         * tests/uniconv/test-u8-conv-from-enc.c: New file.
54940
54941         * modules/uniconv/base: New file.
54942         * lib/uniconv.h: New file.
54943
54944 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54945
54946         * doc/gnulib-tool.texi (Initial import): Update to match current
54947         behavior with strdup module.
54948         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
54949         * lib/memmem.h: Remove; all uses removed.  This is now done
54950         by <string.h>.
54951         * lib/mempcpy.h: Likewise.
54952         * lib/memrchr.h: Likewise.
54953         * lib/stpcpy.h: Likewise.
54954         * lib/stpncpy.h: Likewise.
54955         * lib/strcase.h: Likewise.
54956         * lib/strchrnul.h: Likewise.
54957         * lib/strdup.h: Likewise.
54958         * lib/strndup.h: Likewise.
54959         * lib/strnlen.h: Likewise.
54960         * lib/strpbrk.h: Likewise.
54961         * lib/strsep.h: Likewise.
54962         * lib/strstr.h: Likewise.
54963         * lib/strtok_r.h: Likewise.
54964         * lib/string_.h: New file.
54965         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
54966         Rely on <string.h> instead.
54967         * lib/canon-host.c: Likewise.
54968         * lib/chdir-long.c: Likewise.
54969         * lib/concatpath.c: Likewise.
54970         * lib/exclude.c: Likewise.
54971         * lib/fchdir.c: Likewise.
54972         * lib/getaddrinfo.c: Likewise.
54973         * lib/getcwd.c: Likewise.
54974         * lib/getsubopt.c: Likewise.
54975         * lib/glob.c: Likewise.
54976         * lib/hard-locale.c: Likewise.
54977         * lib/iconvme.c: Likewise.
54978         * lib/javacomp.c: Likewise.
54979         * lib/mempcpy.c: Likewise.
54980         * lib/memrchr.c: Likewise.
54981         * lib/regex_internal.h: Likewise.
54982         * lib/stpncpy.c: Likewise.
54983         * lib/strcasecmp.c: Likewise.
54984         * lib/strchrnul.c: Likewise.
54985         * lib/strdup.c: Likewise.
54986         * lib/striconv.c: Likewise.
54987         * lib/striconveh.c: Likewise.
54988         * lib/striconveha.c: Likewise.
54989         * lib/strncasecmp.c: Likewise.
54990         * lib/strndup.c: Likewise.
54991         * lib/strnlen.c: Likewise.
54992         * lib/strsep.c: Likewise.
54993         * lib/strstr.c: Likewise.
54994         * lib/strtok_r.c: Likewise.
54995         * lib/userspec.c: Likewise.
54996         * lib/w32spawn.h: Likewise.
54997         * lib/xstrndup.c: Likewise.
54998         * lib/mountlist.c (strstr): Remove decl.
54999         * m4/string_h.m4: New file.
55000         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55001         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55002         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55003         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55004         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55005         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55006         Set REPLACE_STRCASECMP if necessary.
55007         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55008         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55009         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55010         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55011         HAVE_DECL_STRDUP if necessary.
55012         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55013         since gl_FUNC_STRNDUP does that now.
55014         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55015         Check for decl here...
55016         (gl_PREREQ_STRNLEN): ... not here.
55017         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55018         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55019         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55020         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55021         necessary.
55022         * modules/string: New file.
55023         * modules/memmem (Files): Remove special-purpose include file.
55024         (Depends-on): Add string.
55025         (Include): Include <string.h>, not the removed file.
55026         * modules/mempcpy: Likewise.
55027         * modules/memrchr: Likewise.
55028         * modules/stpcpy: Likewise.
55029         * modules/stpncpy: Likewise.
55030         * modules/strcase: Likewise.
55031         * modules/strchrnul: Likewise.
55032         * modules/strdup: Likewise.
55033         * modules/strndup: Likewise.
55034         * modules/strnlen: Likewise.
55035         * modules/strpbrk: Likewise.
55036         * modules/strsep: Likewise.
55037         * modules/strstr: Likewise.
55038         * modules/strtok_r: Likewise.
55039         * tests/test-dirname.c: Don't include "strdup.h", since
55040         <string.h> now suffices.
55041         * tests/test-memmem.c: Don't include "memmem.h", since
55042         <string.h> now suffices.
55043
55044 2007-01-25  Bruno Haible  <bruno@clisp.org>
55045
55046         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55047         *resultp is 0.
55048
55049         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55050         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55051         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55052         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55053
55054         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55055         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55056         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55057         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55058         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55059         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55060
55061 2007-01-24  Bruno Haible  <bruno@clisp.org>
55062
55063         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55064         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55065         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55066         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55067         gl_FUNC_FTS_CORE.
55068         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55069         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55070         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55071         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55072         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55073         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55074         gl_FUNC_FCHOWNAT.
55075         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55076         gl_FUNC_STRFTIME.
55077         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55078         Reported by Ralf Wildenhues.
55079
55080 2007-01-24  Bruno Haible  <bruno@clisp.org>
55081
55082         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55083         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55084         gl_GETADDRINFO.
55085         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55086         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55087         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55088
55089 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55090
55091         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55092         Don't use 'exit'; just return from 'main'.
55093         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55094
55095         * lib/fnmatch_.h: Readjust white space and comments to match
55096         glibc, to avoid spurious diffs.
55097
55098 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55099
55100         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55101         2004-12-01 change by Jakub Jelinek, since this code won't compile
55102         if !LIBC.  Problem reported by Bob Proulx.
55103
55104 2007-01-23  Bruno Haible  <bruno@clisp.org>
55105
55106         * lib/striconveh.c: Include c-strcaseeq.h.
55107         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55108         * modules/striconveh (Depends-on): Add c-strcaseeq.
55109
55110 2007-01-23  Bruno Haible  <bruno@clisp.org>
55111
55112         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55113
55114         * modules/c-strcaseeq: New file.
55115         * lib/c-strcaseeq.h: New file.
55116
55117         * modules/streq: New file.
55118         * lib/streq.h: New file.
55119
55120 2007-01-23  Bruno Haible  <bruno@clisp.org>
55121
55122         * modules/striconveha-tests: New file.
55123         * tests/test-striconveha.c: New file.
55124
55125         * lib/striconveha.h: Include <stdbool.h>.
55126         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55127         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55128         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55129         (mem_iconveha): New function.
55130         (str_iconveha_notranslit): Renamed from str_iconveha.
55131         (str_iconveha): New function.
55132         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55133         c-strcase.
55134
55135 2007-01-23  Bruno Haible  <bruno@clisp.org>
55136
55137         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55138         encodings without forgiving before trying any encoding with handler.
55139         (str_iconveha): Try all encodings without forgiving before trying any
55140         encoding with handler.
55141
55142 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55143
55144         Import the following changes from libc.
55145
55146         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55147
55148         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55149
55150         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55151
55152         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55153         normal_bracket label.
55154
55155         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55156
55157         [BZ #361]
55158         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55159         to normal_bracket after fetching the next character.
55160
55161 2007-01-22  Bruno Haible  <bruno@clisp.org>
55162
55163         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55164         argument.
55165         * lib/striconveh.c (iconv_carefully_1): New function.
55166         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55167         argument.
55168         (str_cd_iconveh): Update.
55169         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55170         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55171         * tests/test-striconveh.c (MAGIC): New macro.
55172         (new_offsets): New function.
55173         (main): Test call with and without offsets.
55174
55175 2007-01-22  Bruno Haible  <bruno@clisp.org>
55176
55177         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55178         * modules/sys_select (Makefile.am): Likewise.
55179         * modules/sys_socket (Makefile.am): Likewise.
55180         * modules/sys_time (Makefile.am): Likewise.
55181
55182 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55183
55184         * modules/gettimeofday (License): Change from GPL to LGPL, since
55185         gettimeofday is a library function.
55186
55187 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55188
55189         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55190
55191 2007-01-21  Bruno Haible  <bruno@clisp.org>
55192
55193         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55194
55195 2007-01-21  Bruno Haible  <bruno@clisp.org>
55196
55197         * modules/striconveha: New file.
55198         * lib/striconveha.h: New file.
55199         * lib/striconveha.c: New file.
55200         * MODULES.html.sh (Internationalization functions): Add striconveha.
55201         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55202         string.
55203         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55204
55205 2007-01-21  Bruno Haible  <bruno@clisp.org>
55206
55207         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55208         * lib/striconveh.c (str_iconveh): Likewise.
55209
55210 2007-01-21  Bruno Haible  <bruno@clisp.org>
55211
55212         * lib/striconveh.h (mem_iconveh): New declaration.
55213         * lib/striconveh.c (mem_iconveh): New function.
55214         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55215
55216 2007-01-21  Bruno Haible  <bruno@clisp.org>
55217
55218         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55219
55220         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55221         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55222         original result buffer.
55223         (str_cd_iconveh): Update.
55224         * tests/test-striconveh.c (main): Update.
55225
55226         * lib/striconv.h (mem_cd_iconv): Change specification.
55227         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55228         result buffer.
55229         (str_cd_iconv): Update.
55230         * tests/test-striconv.c (main): Update.
55231
55232 2007-01-21  Bruno Haible  <bruno@clisp.org>
55233
55234         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55235
55236 2007-01-20  Jim Meyering  <jim@meyering.net>
55237
55238         * lib/userspec.c (parse_with_separator): If a user or group string
55239         starts with "+", skip the corresponding name-to-ID look-up, since
55240         such a look-up must fail: user and group names may not include "+".
55241
55242 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55243
55244         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55245         since we now assume the sys_time module.
55246         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55247         check for sys/time.h; no longer needed.
55248         * modules/poll (Depends-on): Depend on sys_time.
55249
55250 2007-01-18  Bruno Haible  <bruno@clisp.org>
55251
55252         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55253         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55254
55255         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55256         gettimeofday.
55257
55258         * tests/test-gettimeofday.c: Include <time.h>.
55259         (dummy): Remove variable.
55260
55261         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55262         gl_HEADER_SYS_TIME_H.
55263         (gl_HEADER_SYS_TIME_H): New macro.
55264
55265         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55266         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55267         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55268         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55269         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55270         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55271         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55272         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55273         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55274         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55275         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55276
55277         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55278         last change; it caused a compilation error when cross-compiling to
55279         Cygwin.
55280
55281 2007-01-18  Jim Meyering  <jim@meyering.net>
55282
55283         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55284         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55285         than the race-prone "test -d sys || mkdir sys".
55286         (configure.ac): Use AC_PROG_MKDIR_P.
55287         * modules/sys_select: Likewise.
55288         * modules/sys_socket: Likewise.
55289         * modules/sys_time: Likewise.
55290
55291 2007-01-18  Eric Blake  <ebb9@byu.net>
55292
55293         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55294         replace gettimeofday.
55295         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55296         name, to avoid infinite recursion.
55297
55298 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55299
55300         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55301         module sys_time.
55302         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55303         assume timespec.h defines struct timeval.
55304         * lib/settime.c: Likewise.
55305         * lib/utimens.c: Likewise.
55306         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55307         since we now assume the gettimeofday module.
55308         * lib/tempname.c (__gen_tempname): Likewise.
55309         * lib/gettimeofday.h: Remove.
55310         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55311         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55312         Include <time.h>, for 'time()'.
55313         (localtime_buffer_addr): Also use this workaround if
55314         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55315         to simplify the uses.  All uses changed.
55316         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55317         that #undef is inside {}, and 'const' follows type name consistently.
55318         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55319         (gettimeofday): Do not use the maximum possible value for
55320         tv->tv_usec, since that might break usages other than ls.c.
55321         Instead, we'll leave ls.c alone.  This undoes today's patch
55322         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55323         we've never observed the problem but might as well keep the
55324         canary.
55325         * lib/nanosleep.c: Include timespec.h first, for interface check.
55326         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55327         now assume the sys_time module.
55328         * lib/tempname.c: Likewise.
55329         * lib/timespec.h: Likewise.
55330         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55331         needed.
55332         * lib/strftime.c: Likewise.
55333         * lib/timespec.h: Likewise.
55334         * lib/posixtm.c: Include posixtm.h first, for interface check.
55335         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55336         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55337         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55338         * lib/sys_time_.h: New file.
55339         * lib/timespec.h (struct timespec): Use long int, not long.
55340         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55341         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55342         Remove obsolescent call to AC_HEADER_TIME.
55343         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55344         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55345         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55346         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55347         Likewise.
55348         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55349         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55350         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55351         into the sys_time module.  Check for gettimeofday just once.
55352         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55353         for gettimeofday signature to just check the signature.  Merely
55354         compile it, since linking doesn't test signature.  Improve test for
55355         whether gettimeofday.o is actually needed.
55356         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55357         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55358         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55359         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55360         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55361         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55362         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55363         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55364         than worrying about sys/time.h.
55365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55366         Don't bother worrying about TIME_WITH_SYS_TIME.
55367         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55368         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55369         * m4/sys_time_h.m4: New file.
55370         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55371         Don't include sys/time.h.  Return from main rather than exiting.
55372         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55373         all uses changed.
55374         * modules/gethrxtime (Depends-on): Add sys_time.
55375         * modules/gettime (Depends-on): Likewise.
55376         * modules/gettimeofday (Depends-on): Likewise.
55377         * modules/nanosleep (Depends-on): Likewise.
55378         * modules/settime (Depends-on): Likewise.
55379         * modules/tempname (Depends-on): Likewise.
55380         * modules/utimens (Depends-on): Likewise.
55381         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55382         (Include): Change back to <sys/time.h>.
55383         (Maintainer): Add self.
55384         * modules/sys_time: New file.
55385         * modules/tempname (Depends-on): Add gettimeofday.
55386         * tests/test-gettimeofday.c: Include <sys/time.h>
55387         rather than gettimeofday.h.
55388
55389 2007-01-17  Bruno Haible  <bruno@clisp.org>
55390
55391         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55392         the license default to GPL.
55393         (func_create_testdir): Don't complain if a module is LGPL and its
55394         tests module depends on GPLed modules.
55395
55396 2007-01-17  Bruno Haible  <bruno@clisp.org>
55397
55398         * lib/gettimeofday.c (gettimeofday): Add code for the case
55399         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55400         maximum possible value for tv->tv_usec, rather than the minimum one.
55401
55402 2005-10-08  Martin Lambers  <marlam@marlam.de>
55403 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55404 2007-01-16  Bruno Haible  <bruno@clisp.org>
55405
55406         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55407         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55408         gl_FUNC_GETTIMEOFDAY.
55409         (Include): Add gettimeofday.h.
55410         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55411         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55412         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55413         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55414         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55415         * lib/gettimeofday.h: New file.
55416         * lib/gettimeofday.c: Include <sys/timeb.h>.
55417         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55418         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55419         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55420         fall back on time().
55421
55422         * tests/test-gettimeofday.c: New file.
55423         * modules/gettimeofday-tests: New file.
55424
55425 2007-01-16  Eric Blake  <ebb9@byu.net>
55426
55427         * modules/fnmatch (Depends-on): Depend on wchar.
55428         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55429         * m4/fnmatch.m4: Likewise.
55430         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55431         * m4/mbchar.m4: Likewise.
55432         * modules/mbswidth (Depends-on): Depend on wchar.
55433         * lib/mbswidth.c: Assume <wchar.h>.
55434         * m4/mbswidth.m4: Likewise.
55435         * modules/quotearg (Depends-on): Depend on wchar.
55436         * lib/quotearg.c: Assume <wchar.h>.
55437         * m4/quotearg.m4: Likewise.
55438         * modules/regex (Depends-on): Depend on wchar.
55439         * lib/regex_internal.h: Assume <wchar.h>.
55440         * m4/regex.m4: Likewise.
55441         * modules/stdint (Depends-on): Depend on wchar.
55442         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55443         * m4/stdint.m4: Likewise.
55444         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55445         * modules/strftime (Depends-on): Depend on wchar.
55446         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55447         * modules/strtol (Depends-on): Depend on wchar.
55448         * lib/strtol.c: Assume <wchar.h>.
55449         * modules/wcwidth (Depends-on): Depend on wchar.
55450         * lib/wcwidth.h: Assume <wchar.h>.
55451         * m4/wcwidth.m4: Likewise.
55452
55453 2007-01-16  Bruno Haible  <bruno@clisp.org>
55454
55455         * modules/csharpexec-script: New, created from...
55456         * modules/csharpexec: ... this.
55457
55458 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55459
55460         * modules/javaexec-script: New, created from...
55461         * modules/javaexec: ... this.
55462
55463 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55464
55465         * modules/poll (Dependencies): Add sys_select.
55466
55467 2007-01-15  Jim Meyering  <jim@meyering.net>
55468
55469         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
55470         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
55471         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
55472         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
55473
55474 2007-01-15  Bruno Haible  <bruno@clisp.org>
55475
55476         * modules/striconveh: New file.
55477         * lib/striconveh.h: New file.
55478         * lib/striconveh.c: New file.
55479         * MODULES.html.sh (Internationalization functions): Add striconveh.
55480
55481         * modules/striconveh-tests: New file.
55482         * tests/test-striconveh.c: New file.
55483
55484 2007-01-15  Bruno Haible  <bruno@clisp.org>
55485
55486         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
55487         not from GNU libiconv or GNU libc.
55488
55489 2007-01-15  Bruno Haible  <bruno@clisp.org>
55490
55491         * doc/gnulib-intro.texi (Copyright): Explain the different license
55492         terms for module descriptions, autoconf macros, tests, documentation.
55493
55494 2007-01-14  Bruno Haible  <bruno@clisp.org>
55495
55496         * modules/striconv-tests: New file.
55497         * tests/test-striconv.c: New file.
55498
55499 2007-01-14  Bruno Haible  <bruno@clisp.org>
55500
55501         * modules/iconv-tests: New file.
55502         * tests/test-iconv.c: New file.
55503
55504 2007-01-14  Bruno Haible  <bruno@clisp.org>
55505
55506         * gnulib-tool (func_get_license): For test modules, use the license of
55507         the main module.
55508
55509 2007-01-14  Bruno Haible  <bruno@clisp.org>
55510
55511         * modules/iconv (Include): Clarify that <iconv.h> can only be included
55512         if iconv is found to exist.
55513
55514 2007-01-14  Bruno Haible  <bruno@clisp.org>
55515
55516         * modules/c-ctype-tests: New file.
55517         * tests/test-c-ctype.c: New file.
55518
55519 2007-01-14  Bruno Haible  <bruno@clisp.org>
55520
55521         * modules/binary-io-tests: New file.
55522         * tests/test-binary-io.sh: New file.
55523         * tests/test-binary-io.c: New file.
55524
55525 2007-01-14  Bruno Haible  <bruno@clisp.org>
55526
55527         * modules/array-oset-tests: New file.
55528         * tests/test-array_oset.c: New file.
55529
55530 2007-01-14  Bruno Haible  <bruno@clisp.org>
55531
55532         * modules/array-list-tests: New file.
55533         * tests/test-array_list.c: New file.
55534
55535 2007-01-14  Bruno Haible  <bruno@clisp.org>
55536
55537         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
55538         and make.
55539         Reported by Simon Josefsson in
55540         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
55541
55542 2007-01-14  Bruno Haible  <bruno@clisp.org>
55543
55544         * modules/allocsa-tests: New file.
55545         * tests/test-allocsa.c: New file.
55546
55547 2007-01-14  Bruno Haible  <bruno@clisp.org>
55548
55549         * modules/fchdir (Depends-on): Add absolute-header.
55550         * modules/unistd (Depends-on): Likewise.
55551
55552 2006-12-30  Bruno Haible  <bruno@clisp.org>
55553
55554         * modules/fchdir: New file.
55555         * modules/unistd (Files): Add lib/unistd_.h.
55556         (Makefile.am): Generate unistd.h from unistd_.h.
55557         * lib/fchdir.c: New file.
55558         * lib/dirent_.h: New file.
55559         * lib/unistd_.h: New file.
55560         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
55561         * m4/fchdir.m4: New file.
55562         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
55563         (gl_HEADER_UNISTD): Invoke it.
55564         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
55565         function.
55566         * lib/backupfile.c (opendir, closedir): Undefine.
55567         * lib/chown.c (open, close): Undefine.
55568         * lib/clean-temp.c (open, close): Undefine.
55569         * lib/copy-file.c (open, close): Undefine.
55570         * lib/execute.c (open, close): Undefine.
55571         * lib/fsusage.c (open, close): Undefine.
55572         * lib/gc-gnulib.c (open, close): Undefine.
55573         * lib/getcwd.c (opendir, closedir): Undefine.
55574         * lib/glob.c (opendir, closedir): Undefine.
55575         * lib/javacomp.c (open, close): Undefine.
55576         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
55577         * lib/openat-proc.c (open, close): Undefine.
55578         * lib/pagealign_alloc.c (open, close): Undefine.
55579         * lib/pipe.c (open, close): Undefine.
55580         * lib/progreloc.c (open, close): Undefine.
55581         * lib/savedir.c (opendir, closedir): Undefine.
55582         * lib/utime.c (open, close): Undefine.
55583         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
55584
55585 2007-01-10  Bruno Haible  <bruno@clisp.org>
55586
55587         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
55588
55589 2007-01-12  Eric Blake  <ebb9@byu.net>
55590
55591         Provide a robust <wchar.h>.  Further simplifications are now
55592         possible in other modules, but not included here.
55593         * modules/wchar: New module.
55594         * m4/wchar.m4: New file.
55595         * lib/wchar_.h: Likewise.
55596         * modules/mbchar (Depends-on): Depend on wchar, as the first use
55597         of the new module.
55598         * MODULES.html.sh (Extended multibyte and wide character utilities):
55599         New section.
55600
55601 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
55602
55603         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
55604         to a reasonable default for memory allocation.
55605         (xreadlink): Don't allocate a huge buffer, to work around a buggy
55606         file system that reports garbage st_size values for symlinks.
55607         Problem reported by Liyang Hu.
55608
55609 2007-01-11  Simon Josefsson  <simon@josefsson.org>
55610
55611         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
55612         Emacs .#* auto-save files).
55613
55614 2007-01-11  Bruno Haible  <bruno@clisp.org>
55615
55616         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
55617         directory.
55618
55619 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55620
55621         Use @...@ consistently in lib/wctype_.h.
55622         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
55623         on it being set to 1 or 0.
55624         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
55625         go back to AC_SUBSTing it.
55626         * modules/wctype (Makefile.am): Undo previous change.
55627
55628 2007-01-10  Eric Blake  <ebb9@byu.net>
55629
55630         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
55631         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
55632         * modules/wctype (Makefile.am): Likewise.
55633         Reported by Chris McGuire.
55634
55635 2007-01-10  Jim Meyering  <jim@meyering.net>
55636
55637         fts.c: a small readability/maintainability improvement
55638         * lib/fts.c (fts_read): Make this code slightly more readable and
55639         maintainable by hoisting the "sp->fts_cur = p" assignments to
55640         immediately follow the statements that set P.  Derived from
55641         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55642
55643 2007-01-10  Eric Blake  <ebb9@byu.net>
55644
55645         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55646         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55647         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55648         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55649         Reported by Chris McGuire.
55650
55651 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55652
55653         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55654         in sed script.
55655
55656 2007-01-09  Bruno Haible  <bruno@clisp.org>
55657
55658         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55659         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55660         variables.
55661         (func_module): Use them.
55662
55663 2007-01-09  Bruno Haible  <bruno@clisp.org>
55664
55665         * modules/unistr/base: New file.
55666         * lib/unistr.h: New file.
55667
55668         * modules/unistr/u8-to-u16: New file.
55669         * lib/unistr/u8-to-u16.c: New file.
55670
55671         * modules/unistr/u8-to-u32: New file.
55672         * lib/unistr/u8-to-u32.c: New file.
55673
55674         * modules/unistr/u16-to-u8: New file.
55675         * lib/unistr/u16-to-u8.c: New file.
55676
55677         * modules/unistr/u16-to-u32: New file.
55678         * lib/unistr/u16-to-u32.c: New file.
55679
55680         * modules/unistr/u32-to-u8: New file.
55681         * lib/unistr/u32-to-u8.c: New file.
55682
55683         * modules/unistr/u32-to-u16: New file.
55684         * lib/unistr/u32-to-u16.c: New file.
55685
55686         * modules/unistr/u8-check: New file.
55687         * modules/unistr/u16-check: New file.
55688         * modules/unistr/u32-check: New file.
55689         * lib/unistr/u8-check.c: New file.
55690         * lib/unistr/u16-check.c: New file.
55691         * lib/unistr/u32-check.c: New file.
55692
55693         * modules/unistr/u8-chr: New file.
55694         * modules/unistr/u16-chr: New file.
55695         * modules/unistr/u32-chr: New file.
55696         * lib/unistr/u8-chr.c: New file.
55697         * lib/unistr/u16-chr.c: New file.
55698         * lib/unistr/u32-chr.c: New file.
55699
55700         * modules/unistr/u8-cmp: New file.
55701         * modules/unistr/u16-cmp: New file.
55702         * modules/unistr/u32-cmp: New file.
55703         * lib/unistr/u8-cmp.c: New file.
55704         * lib/unistr/u16-cmp.c: New file.
55705         * lib/unistr/u32-cmp.c: New file.
55706
55707         * modules/unistr/u8-cpy: New file.
55708         * modules/unistr/u16-cpy: New file.
55709         * modules/unistr/u32-cpy: New file.
55710         * lib/unistr/u8-cpy.c: New file.
55711         * lib/unistr/u16-cpy.c: New file.
55712         * lib/unistr/u32-cpy.c: New file.
55713         * lib/unistr/u-cpy.h: New file.
55714
55715         * modules/unistr/u8-cpy-alloc: New file.
55716         * modules/unistr/u16-cpy-alloc: New file.
55717         * modules/unistr/u32-cpy-alloc: New file.
55718         * lib/unistr/u8-cpy-alloc.c: New file.
55719         * lib/unistr/u16-cpy-alloc.c: New file.
55720         * lib/unistr/u32-cpy-alloc.c: New file.
55721         * lib/unistr/u-cpy-alloc.h: New file.
55722
55723         * modules/unistr/u8-endswith: New file.
55724         * modules/unistr/u16-endswith: New file.
55725         * modules/unistr/u32-endswith: New file.
55726         * lib/unistr/u8-endswith.c: New file.
55727         * lib/unistr/u16-endswith.c: New file.
55728         * lib/unistr/u32-endswith.c: New file.
55729         * lib/unistr/u-endswith.h: New file.
55730
55731         * modules/unistr/u8-mblen: New file.
55732         * modules/unistr/u16-mblen: New file.
55733         * modules/unistr/u32-mblen: New file.
55734         * lib/unistr/u8-mblen.c: New file.
55735         * lib/unistr/u16-mblen.c: New file.
55736         * lib/unistr/u32-mblen.c: New file.
55737
55738         * modules/unistr/u8-mbtouc: New file.
55739         * modules/unistr/u16-mbtouc: New file.
55740         * modules/unistr/u32-mbtouc: New file.
55741         * lib/unistr/u8-mbtouc.c: New file.
55742         * lib/unistr/u16-mbtouc.c: New file.
55743         * lib/unistr/u32-mbtouc.c: New file.
55744
55745         * modules/unistr/u8-mbtouc-safe: New file.
55746         * modules/unistr/u16-mbtouc-safe: New file.
55747         * modules/unistr/u32-mbtouc-safe: New file.
55748         * lib/unistr/u8-mbtouc-safe.c: New file.
55749         * lib/unistr/u16-mbtouc-safe.c: New file.
55750         * lib/unistr/u32-mbtouc-safe.c: New file.
55751
55752         * modules/unistr/u8-move: New file.
55753         * modules/unistr/u16-move: New file.
55754         * modules/unistr/u32-move: New file.
55755         * lib/unistr/u8-move.c: New file.
55756         * lib/unistr/u16-move.c: New file.
55757         * lib/unistr/u32-move.c: New file.
55758         * lib/unistr/u-move.h: New file.
55759
55760         * modules/unistr/u8-next: New file.
55761         * modules/unistr/u16-next: New file.
55762         * modules/unistr/u32-next: New file.
55763         * lib/unistr/u8-next.c: New file.
55764         * lib/unistr/u16-next.c: New file.
55765         * lib/unistr/u32-next.c: New file.
55766
55767         * modules/unistr/u8-prev: New file.
55768         * modules/unistr/u16-prev: New file.
55769         * modules/unistr/u32-prev: New file.
55770         * lib/unistr/u8-prev.c: New file.
55771         * lib/unistr/u16-prev.c: New file.
55772         * lib/unistr/u32-prev.c: New file.
55773
55774         * modules/unistr/u8-set: New file.
55775         * modules/unistr/u16-set: New file.
55776         * modules/unistr/u32-set: New file.
55777         * lib/unistr/u8-set.c: New file.
55778         * lib/unistr/u16-set.c: New file.
55779         * lib/unistr/u32-set.c: New file.
55780         * lib/unistr/u-set.h: New file.
55781
55782         * modules/unistr/u8-startswith: New file.
55783         * modules/unistr/u16-startswith: New file.
55784         * modules/unistr/u32-startswith: New file.
55785         * lib/unistr/u8-startswith.c: New file.
55786         * lib/unistr/u16-startswith.c: New file.
55787         * lib/unistr/u32-startswith.c: New file.
55788         * lib/unistr/u-startswith.h: New file.
55789
55790         * modules/unistr/u8-stpcpy: New file.
55791         * modules/unistr/u16-stpcpy: New file.
55792         * modules/unistr/u32-stpcpy: New file.
55793         * lib/unistr/u8-stpcpy.c: New file.
55794         * lib/unistr/u16-stpcpy.c: New file.
55795         * lib/unistr/u32-stpcpy.c: New file.
55796         * lib/unistr/u-stpcpy.h: New file.
55797
55798         * modules/unistr/u8-stpncpy: New file.
55799         * modules/unistr/u16-stpncpy: New file.
55800         * modules/unistr/u32-stpncpy: New file.
55801         * lib/unistr/u8-stpncpy.c: New file.
55802         * lib/unistr/u16-stpncpy.c: New file.
55803         * lib/unistr/u32-stpncpy.c: New file.
55804         * lib/unistr/u-stpncpy.h: New file.
55805
55806         * modules/unistr/u8-strcat: New file.
55807         * modules/unistr/u16-strcat: New file.
55808         * modules/unistr/u32-strcat: New file.
55809         * lib/unistr/u8-strcat.c: New file.
55810         * lib/unistr/u16-strcat.c: New file.
55811         * lib/unistr/u32-strcat.c: New file.
55812         * lib/unistr/u-strcat.h: New file.
55813
55814         * modules/unistr/u8-strchr: New file.
55815         * modules/unistr/u16-strchr: New file.
55816         * modules/unistr/u32-strchr: New file.
55817         * lib/unistr/u8-strchr.c: New file.
55818         * lib/unistr/u16-strchr.c: New file.
55819         * lib/unistr/u32-strchr.c: New file.
55820
55821         * modules/unistr/u8-strcmp: New file.
55822         * modules/unistr/u16-strcmp: New file.
55823         * modules/unistr/u32-strcmp: New file.
55824         * lib/unistr/u8-strcmp.c: New file.
55825         * lib/unistr/u16-strcmp.c: New file.
55826         * lib/unistr/u32-strcmp.c: New file.
55827
55828         * modules/unistr/u8-strcpy: New file.
55829         * modules/unistr/u16-strcpy: New file.
55830         * modules/unistr/u32-strcpy: New file.
55831         * lib/unistr/u8-strcpy.c: New file.
55832         * lib/unistr/u16-strcpy.c: New file.
55833         * lib/unistr/u32-strcpy.c: New file.
55834         * lib/unistr/u-strcpy.h: New file.
55835
55836         * modules/unistr/u8-strcspn: New file.
55837         * modules/unistr/u16-strcspn: New file.
55838         * modules/unistr/u32-strcspn: New file.
55839         * lib/unistr/u8-strcspn.c: New file.
55840         * lib/unistr/u16-strcspn.c: New file.
55841         * lib/unistr/u32-strcspn.c: New file.
55842         * lib/unistr/u-strcspn.h: New file.
55843
55844         * modules/unistr/u8-strdup: New file.
55845         * modules/unistr/u16-strdup: New file.
55846         * modules/unistr/u32-strdup: New file.
55847         * lib/unistr/u8-strdup.c: New file.
55848         * lib/unistr/u16-strdup.c: New file.
55849         * lib/unistr/u32-strdup.c: New file.
55850         * lib/unistr/u-strdup.h: New file.
55851
55852         * modules/unistr/u8-strlen: New file.
55853         * modules/unistr/u16-strlen: New file.
55854         * modules/unistr/u32-strlen: New file.
55855         * lib/unistr/u8-strlen.c: New file.
55856         * lib/unistr/u16-strlen.c: New file.
55857         * lib/unistr/u32-strlen.c: New file.
55858         * lib/unistr/u-strlen.h: New file.
55859
55860         * modules/unistr/u8-strmblen: New file.
55861         * modules/unistr/u16-strmblen: New file.
55862         * modules/unistr/u32-strmblen: New file.
55863         * lib/unistr/u8-strmblen.c: New file.
55864         * lib/unistr/u16-strmblen.c: New file.
55865         * lib/unistr/u32-strmblen.c: New file.
55866
55867         * modules/unistr/u8-strmbtouc: New file.
55868         * modules/unistr/u16-strmbtouc: New file.
55869         * modules/unistr/u32-strmbtouc: New file.
55870         * lib/unistr/u8-strmbtouc.c: New file.
55871         * lib/unistr/u16-strmbtouc.c: New file.
55872         * lib/unistr/u32-strmbtouc.c: New file.
55873
55874         * modules/unistr/u8-strncat: New file.
55875         * modules/unistr/u16-strncat: New file.
55876         * modules/unistr/u32-strncat: New file.
55877         * lib/unistr/u8-strncat.c: New file.
55878         * lib/unistr/u16-strncat.c: New file.
55879         * lib/unistr/u32-strncat.c: New file.
55880         * lib/unistr/u-strncat.h: New file.
55881
55882         * modules/unistr/u8-strncmp: New file.
55883         * modules/unistr/u16-strncmp: New file.
55884         * modules/unistr/u32-strncmp: New file.
55885         * lib/unistr/u8-strncmp.c: New file.
55886         * lib/unistr/u16-strncmp.c: New file.
55887         * lib/unistr/u32-strncmp.c: New file.
55888
55889         * modules/unistr/u8-strncpy: New file.
55890         * modules/unistr/u16-strncpy: New file.
55891         * modules/unistr/u32-strncpy: New file.
55892         * lib/unistr/u8-strncpy.c: New file.
55893         * lib/unistr/u16-strncpy.c: New file.
55894         * lib/unistr/u32-strncpy.c: New file.
55895         * lib/unistr/u-strncpy.h: New file.
55896
55897         * modules/unistr/u8-strnlen: New file.
55898         * modules/unistr/u16-strnlen: New file.
55899         * modules/unistr/u32-strnlen: New file.
55900         * lib/unistr/u8-strnlen.c: New file.
55901         * lib/unistr/u16-strnlen.c: New file.
55902         * lib/unistr/u32-strnlen.c: New file.
55903         * lib/unistr/u-strnlen.h: New file.
55904
55905         * modules/unistr/u8-strpbrk: New file.
55906         * modules/unistr/u16-strpbrk: New file.
55907         * modules/unistr/u32-strpbrk: New file.
55908         * lib/unistr/u8-strpbrk.c: New file.
55909         * lib/unistr/u16-strpbrk.c: New file.
55910         * lib/unistr/u32-strpbrk.c: New file.
55911         * lib/unistr/u-strpbrk.h: New file.
55912
55913         * modules/unistr/u8-strrchr: New file.
55914         * modules/unistr/u16-strrchr: New file.
55915         * modules/unistr/u32-strrchr: New file.
55916         * lib/unistr/u8-strrchr.c: New file.
55917         * lib/unistr/u16-strrchr.c: New file.
55918         * lib/unistr/u32-strrchr.c: New file.
55919
55920         * modules/unistr/u8-strspn: New file.
55921         * modules/unistr/u16-strspn: New file.
55922         * modules/unistr/u32-strspn: New file.
55923         * lib/unistr/u8-strspn.c: New file.
55924         * lib/unistr/u16-strspn.c: New file.
55925         * lib/unistr/u32-strspn.c: New file.
55926         * lib/unistr/u-strspn.h: New file.
55927
55928         * modules/unistr/u8-strstr: New file.
55929         * modules/unistr/u16-strstr: New file.
55930         * modules/unistr/u32-strstr: New file.
55931         * lib/unistr/u8-strstr.c: New file.
55932         * lib/unistr/u16-strstr.c: New file.
55933         * lib/unistr/u32-strstr.c: New file.
55934         * lib/unistr/u-strstr.h: New file.
55935
55936         * modules/unistr/u8-strtok: New file.
55937         * modules/unistr/u16-strtok: New file.
55938         * modules/unistr/u32-strtok: New file.
55939         * lib/unistr/u8-strtok.c: New file.
55940         * lib/unistr/u16-strtok.c: New file.
55941         * lib/unistr/u32-strtok.c: New file.
55942         * lib/unistr/u-strtok.h: New file.
55943
55944         * modules/unistr/u8-uctomb: New file.
55945         * modules/unistr/u16-uctomb: New file.
55946         * modules/unistr/u32-uctomb: New file.
55947         * lib/unistr/u8-uctomb.c: New file.
55948         * lib/unistr/u16-uctomb.c: New file.
55949         * lib/unistr/u32-uctomb.c: New file.
55950
55951         * MODULES.html.sh (Unicode string functions): Add the new modules.
55952
55953 2007-01-08  Bruno Haible  <bruno@clisp.org>
55954
55955         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
55956         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
55957         subdirectories.
55958
55959 2007-01-08  Karl Berry  <karl@gnu.org>
55960
55961         * doc/error.texi: mention that main() fns must set program_name
55962         when progname is used.
55963
55964 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
55965
55966         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
55967         WCTYPE_H is empty, for the benefit of builds from non-distclean
55968         directories.  Problem reported by Eric Blake in
55969         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
55970
55971 2007-01-08  Bruno Haible  <bruno@clisp.org>
55972
55973         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
55974         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
55975         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
55976         PROVIDE_CANONICALIZE_FILENAME_MODE.
55977         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
55978
55979 2007-01-08  Bruno Haible  <bruno@clisp.org>
55980
55981         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
55982         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55983         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55984         * lib/fts.c: Likewise.
55985         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55986
55987 2006-12-25  Bruno Haible  <bruno@clisp.org>
55988
55989         * modules/utf8-ucs4-safe: New file.
55990         * lib/utf8-ucs4-safe.h: New file.
55991         * lib/unistr/utf8-ucs4-safe.c: New file.
55992
55993         * modules/utf16-ucs4-safe: New file.
55994         * lib/utf16-ucs4-safe.h: New file.
55995         * lib/unistr/utf16-ucs4-safe.c: New file.
55996
55997         * MODULES.html.sh (Unicode string functions): Add the new modules.
55998
55999 2007-01-08  Bruno Haible  <bruno@clisp.org>
56000
56001         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56002         (Depends-on): Add unitypes.
56003         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56004         (u8_mbtouc_aux): Move out to separate file.
56005         (u8_mbtouc): Use ucs4_t, uint8_t types.
56006         * lib/unistr/utf8-ucs4.c: New file.
56007
56008         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56009         (Depends-on): Add unitypes.
56010         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56011         (u16_mbtouc_aux): Move out to separate file.
56012         (u16_mbtouc): Use ucs4_t, uint16_t types.
56013         * lib/unistr/utf16-ucs4.c: New file.
56014
56015         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56016         (Depends-on): Add unitypes.
56017         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56018         (u8_uctomb_aux): Move out to separate file.
56019         (u8_uctomb): Use ucs4_t, uint8_t types.
56020         * lib/unistr/ucs4-utf8.c: New file.
56021
56022         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56023         (Depends-on): Add unitypes.
56024         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56025         (u16_uctomb_aux): Move out to separate file.
56026         (u16_uctomb): Use ucs4_t, uint16_t types.
56027         * lib/unistr/ucs4-utf16.c: New file.
56028
56029 2006-12-25  Bruno Haible  <bruno@clisp.org>
56030
56031         * modules/unitypes: New file.
56032         * lib/unitypes.h: New file.
56033         * MODULES.html.sh (func_all_modules): New section "Unicode string
56034         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56035         this section. Add unitypes.
56036
56037 2007-01-08  Bruno Haible  <bruno@clisp.org>
56038
56039         Avoid variable names that conflict with those from libtool.
56040         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56041         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56042         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56043         library_names_spec to acl_library_names_spec, hardcode_* to
56044         acl_hardcode_*.
56045         Reported by Ralf Wildenhues.
56046
56047 2007-01-08  Bruno Haible  <bruno@clisp.org>
56048
56049         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56050         definition.
56051         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56052         definition.
56053         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56054         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56055         definition.
56056         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56057         definition.
56058         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56059         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56060         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56061         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56062         definition.
56063         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56064         definition.
56065         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56066         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56067         GC_USE_<algorithm>.
56068         * lib/gc-libgcrypt.c: Likewise.
56069         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56070         * modules/gc-arctwo (configure.ac): Likewise.
56071         * modules/gc-des (configure.ac): Likewise.
56072         * modules/gc-hmac-md5 (configure.ac): Likewise.
56073         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56074         * modules/gc-md2 (configure.ac): Likewise.
56075         * modules/gc-md4 (configure.ac): Likewise.
56076         * modules/gc-md5 (configure.ac): Likewise.
56077         * modules/gc-random (configure.ac): Likewise.
56078         * modules/gc-rijndael (configure.ac): Likewise.
56079         * modules/gc-sha1 (configure.ac): Likewise.
56080
56081 2007-01-08  Bruno Haible  <bruno@clisp.org>
56082
56083         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56084         macro definition.
56085         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56086         definition.
56087         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56088         definition.
56089         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56090         * modules/fcntl-safer (configure.ac): Likewise.
56091         * modules/fopen-safer (configure.ac): Likewise.
56092         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56093         GNULIB_FWRITEERROR macro definition.
56094
56095 2007-01-08  Bruno Haible  <bruno@clisp.org>
56096
56097         * m4/gnulib-common.m4: New file.
56098         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56099         (func_get_filelist): Add m4/gnulib-common.m4.
56100
56101 2007-01-08  Bruno Haible  <bruno@clisp.org>
56102
56103         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56104         command.
56105
56106 2007-01-08  Jim Meyering  <jim@meyering.net>
56107
56108         Use a more robust test for a "can't happen" condition.
56109         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56110         narrowed the st_size value.  Presuming the "can't happen" condition
56111         is true, that narrowing could conceivably convert an invalid st_size
56112         value into a valid one.  Instead, use a change based on Matthew
56113         Woehlke's original patch.
56114
56115         Slight readability improvement: use an assert-like macro
56116         in place of literal "abort ()" uses.
56117         * lib/fts.c (fts_assert): Define.
56118         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56119         Use this macro instead of a bare 'abort'.
56120
56121 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56122
56123         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56124         simply work around them.
56125         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56126         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56127         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56128         declaring.
56129         Don't bother to define as macros, since the standard doesn't require it.
56130         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56131         longer worry about IRIX 5.3.
56132         (HAVE_WCTYPE_CTMP_BUG): Remove.
56133
56134 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56135
56136         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56137         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56138         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56139         Problems reported by Georg Schwarz for IRIX 5.3.
56140
56141         * gnulib-tool (autoconf_minversion): Take the maximum version number
56142         found, not the minimum.  Problem reported by James Youngman.
56143
56144 2007-01-03  Karl Berry  <karl@gnu.org>
56145
56146         * doc/error.texi: new file, explaining interaction with progname.
56147         * doc/gnulib.texi: include it.  Update copyright.
56148
56149 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56150
56151         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56152         AC_CANONICAL_HOST, to improve autobuild outputs.
56153
56154 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56155             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56156
56157         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56158         sockets, server sockets, and other file descriptors.  Count errors
56159         to compute the return value.  Reorder the code a bit to be easier
56160         to follow.  Don't set event bits that were not requested (except
56161         POLLERR and POLLHUP).
56162
56163 2007-01-01  Bruno Haible  <bruno@clisp.org>
56164
56165         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56166
56167 2007-01-03  Jim Meyering  <jim@meyering.net>
56168
56169         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56170
56171 2007-01-02  Bruno Haible  <bruno@clisp.org>
56172
56173         * modules/settime (Include): Require timespec.h.
56174         * modules/nanosleep (Include): Likewise.
56175
56176 2007-01-01  Bruno Haible  <bruno@clisp.org>
56177
56178         * gnulib-tool (func_emit_copyright_notice): Bump year.
56179         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56180
56181 2007-01-01  Bruno Haible  <bruno@clisp.org>
56182
56183         Improve support for OpenBSD.
56184         * build-aux/config.rpath (libname_spec): Export.
56185         (library_names_spec): New variable. Export.
56186         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56187         library_names_spec from the config.rpath output. Locate shared library
56188         through the name pattern in library_names_spec.
56189
56190 2007-01-01  Eric Blake  <ebb9@byu.net>
56191
56192         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56193
56194 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56195
56196         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56197         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56198         assume the C locale, and avoid an "eval" that could cause trouble.
56199         Problem with SORT reported by Bob Proulx.
56200
56201         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56202         Define.  Trivial patch from Henning Nielsen Lund, originally
56203         sent to bug-grep@gnu.org today.
56204
56205 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56206
56207         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56208         struct stat.  Problem reported by Henning Nielsen Lund.
56209         * lib/acl.c: Include acl.h first, to check interface.  Don't
56210         bother to include sys/types.h and sys/stat.h again.
56211
56212 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56213
56214         Import the following change from libc; problem reported by
56215         Sven Verdoolaege.
56216
56217         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56218
56219         [BZ #1373]
56220         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56221
56222 2006-12-28  Jim Meyering  <jim@meyering.net>
56223
56224         * build-aux/announce-gen: Do not assume that the package
56225         builds any of tar.gz, tar.bz2, and .xdelta files.
56226         Suggestion from Simon Josefsson.
56227
56228 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56229
56230         * modules/announce-gen: New file.
56231
56232 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56233
56234         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56235         handles its gotchas now.
56236         * lib/mbswidth.c: Likewise.
56237         * lib/wcwidth.h: Likewise.
56238         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56239         and iswcntrl; the wctype module does this stuff now.
56240         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56241         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56242         * modules/mbchar (Depends-on): Add wctype.
56243         * modules/mbswidth (Depends-on): Likewise.
56244         * modules/wcwidth (Depends-on): Likewise.
56245
56246 2006-12-27  Eric Blake  <ebb9@byu.net>
56247
56248         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56249         module uses more than what <wctype.h> is required to provide.
56250
56251 2006-12-26  Eric Blake  <ebb9@byu.net>
56252
56253         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56254
56255 2006-12-26  Eric Blake  <ebb9@byu.net>
56256
56257         * modules/absolute-header: New module.
56258         * modules/fcntl (Depends-on): Depend on it.
56259         * modules/inttypes (Depends-on): Likewise.
56260         * modules/stdint (Depends-on): Likewise.
56261         * modules/sys_stat (Depends-on): Likewise.
56262         * modules/wctype (Depends-on): Likewise.
56263         * MODULES.html.sh (Support for building libraries and
56264         executables): Document it.
56265
56266 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56267
56268         * gnulib-tool (SED): Remove, undoing previous change.
56269         The problem was that it broke coreutils on Solaris, because
56270         "sed --posix" leaked into a makefile.
56271         (sed): New alias, if 'alias' and GNU sed.
56272
56273 2006-12-24  Jim Meyering  <jim@meyering.net>
56274
56275         Work around an fchownat bug in glibc-2.4:
56276         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56277         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56278         in spite of the -P option.
56279         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56280         New macros.
56281         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56282         * modules/openat (Files): Add lib/fchownat.c.
56283         * lib/openat.c (fchownat): Don't define here.  Move to...
56284         * lib/fchownat.c: ...this new file.
56285
56286 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56287
56288         Fix bug reported by Bruno Haible in
56289         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56290         where quotearg.c didn't compile on Mac OS X 10.2 because it
56291         lacks <wchar.h> and wint_t.
56292         * lib/wctype_.h (__wctype_wint_t): New type.
56293         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56294         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56295         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56296         Arg is now of type __wctype_wint_t, not wint_t.
56297         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56298         substitute HAVE_WINT_T.
56299         * modules/wctype (Files): Add m4/wint_t.m4.
56300         (wctype.h): Substitute HAVE_WINT_T.
56301
56302 2006-12-23  Bruno Haible  <bruno@clisp.org>
56303
56304         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56305
56306 2006-12-23  Bruno Haible  <bruno@clisp.org>
56307
56308         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56309         S_ISLNK.
56310         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56311         mingw.
56312
56313 2006-12-22  Bruno Haible  <bruno@clisp.org>
56314
56315         * lib/copy-file.c: Include acl.h.
56316         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56317         Close the file descriptors only after being done with copy_acl.
56318         * modules/copy-file (Depends-on): Add acl.
56319
56320 2006-12-22  Bruno Haible  <bruno@clisp.org>
56321
56322         * gnulib-tool (SED): New variable.
56323         Use $SED instead of sed everywhere.
56324
56325 2006-12-22  Bruno Haible  <bruno@clisp.org>
56326
56327         * modules/no-c++: New file.
56328         * m4/no-c++.m4: New file.
56329         * MODULES.html.sh (Support for building libraries and executables):
56330         Add no-c++.
56331
56332 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56333
56334         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56335         Include <limits.h>, and use its INT_MAX to rewrite the
56336         j loop so that it does not overflow 'int'.  Problem reported by
56337         Ralf Wildenhues in
56338         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56339         Play it safe by shifting left by 1 rather than multiplying by 2,
56340         as GCC is less likely to optimize this away when the value
56341         is signed (when it assumes overflow leads to undefined behavior).
56342         Also, don't assume time_t uses two's complement.
56343
56344 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56345
56346         * MODULES.html.sh: New module wctype.
56347         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56348         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56349         <wctype.h>, since the new wctype module should fix this.
56350         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56351         the wctype module should arrange for it.
56352         * lib/regex_internal.h: Likewise.
56353         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56354         since the wctype module should handle this now.
56355         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56356         * modules/fnmatch (Depends-on): Add wctype.
56357         * modules/quotearg (Depends-on): Likewise.
56358         * modules/regex (Depends-on): Likewise.
56359
56360 2006-12-19  Bruno Haible  <bruno@clisp.org>
56361
56362         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56363         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56364
56365 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56366
56367         * modules/savewd (Depends-on): Fix dependency on fcntl.
56368
56369 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56370
56371         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56372         conforms to C99, rather than relying on the user's environment
56373         setting of STDINT_H.
56374
56375 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56376         and Eric Blake  <ebb9@byu.net>
56377
56378         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56379         This is more consistent with the other defines here.
56380         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56381         Port to z/OS.  Problem reported by Paul Gilmartin.
56382         Change local vars to use gl_ prefix rather than ac_.
56383         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56384         with other defines.
56385         * modules/double-slash-root: New module.
56386         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56387         (Depends-on): Add double-slash-root.
56388         * MODULES.html.sh (File system functions): Mention new module.
56389
56390 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56391
56392         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56393         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56394         This is for the benefit of gzip, which doesn't do i18n.
56395
56396 2006-12-12  Jim Meyering  <jim@meyering.net>
56397
56398         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56399         Reported by Andreas Schwab <schwab@suse.de>.
56400
56401 2006-12-12  Bruno Haible  <bruno@clisp.org>
56402
56403         Merge these changes.
56404         2006-09-05  Bruno Haible  <bruno@clisp.org>
56405         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56406         iconv_alloc succeeded.
56407         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56408         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56409         test for " && dest " at the end - dest is always != NULL there. Call
56410         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56411         with 2xNULL arguments, also to flush the state storage. Handle the
56412         IRIX iconv behaviour. Realloc the final result, to throw away unused
56413         memory.
56414
56415 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56416
56417         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56418         and fchmodat unconditionally, since glibc 2.4 has them.
56419         Problem reported by Arkadiusz Miskiewicz.
56420
56421 2006-12-10  Bruno Haible  <bruno@clisp.org>
56422
56423         * gnulib-tool (func_import): Show the include files only for those
56424         modules that are copied and specified.
56425         Reported by Karl Berry.
56426
56427 2006-12-08  Jim Meyering  <jim@meyering.net>
56428
56429         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56430         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56431
56432         * build-aux/announce-gen: Add two new options, both optional:
56433         --bootstrap-tools=TOOL_LIST
56434               a comma-separated list of tools, e.g.,
56435               autoconf,automake,bison,gnulib
56436         --gnulib-snapshot-date=DATE
56437               if gnulib is in the bootstrap tool list,
56438               then report this as the snapshot date.
56439               If not specified, use the current date/time.
56440               If you specify a date here, be sure it's UTC.
56441
56442 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56443
56444         * tests/test-argp-2.sh: Fix test to match actual output.
56445         (func_compare): Fix sed script to be portable.
56446
56447 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56448
56449         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56450         workaround for this case.  It is not autoconfigured now; offhand
56451         it's hard to see how to autoconfigure it.
56452
56453 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56454
56455         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56456         a directory that is about to be chowned.  Such a directory's
56457         initial file permissions should permit the owner only and this
56458         should not be changed until after the chown, since the group and
56459         other bits would be incorrect if they granted permission before
56460         the chown.
56461
56462         Fix porting problem for iswctype reported by Georg Schwarz in:
56463         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
56464         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
56465         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
56466         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
56467         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56468
56469 2006-12-03  Jim Meyering  <jim@meyering.net>
56470
56471         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
56472         p->fts_statp may not yet be defined.
56473         (fts_read): Instead, set it in the caller, once p->fts_statp is
56474         sure to be defined, and corresponds to a top-level directory.
56475         This bug made du -x fail.  Here's the coreutils test case:
56476         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
56477         Reported by Mike Frysinger.
56478
56479 2006-12-01  Jim Meyering  <jim@meyering.net>
56480
56481         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
56482         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
56483         Reported by Simon Josefsson.
56484
56485 2006-11-30  Jim Meyering  <jim@meyering.net>
56486
56487         * m4/warning.m4: Use the all-permissive copyright notice
56488         recommended by RMS (rather than LGPL).
56489         * m4/vararrays.m4: Likewise.
56490         * m4/flexmember.m4: Likewise.
56491
56492 2006-11-29  Bruno Haible  <bruno@clisp.org>
56493
56494         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56495         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
56496         using +=.
56497         Reported by Simon Josefsson <simon@josefsson.org>.
56498
56499 2006-11-28  James Youngman <jay@gnu.org>
56500
56501         * README: Advise users that they might find the bug-gnulib@gnu.org
56502         and autotools-announce@gnu.org mailing lists useful.
56503
56504 2006-11-28  Bruno Haible  <bruno@clisp.org>
56505
56506         * m4/ptrdiff_max.m4: Remove file.
56507
56508 2006-11-21  Bruno Haible  <bruno@clisp.org>
56509
56510         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
56511         _AC_COMPUTE_INT.
56512         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56513         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
56514         _AC_COMPUTE_INT.
56515         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56516         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
56517         _AC_COMPUTE_INT.
56518         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56519
56520 2006-11-28  Jim Meyering  <jim@meyering.net>
56521
56522         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
56523         warning from "gcc -Wshadow" about shadowing the builtin.
56524
56525 2006-11-27  Bruno Haible  <bruno@clisp.org>
56526
56527         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
56528         _AC_COMPUTE_INT.
56529         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56530
56531 2006-11-27  Bruno Haible  <bruno@clisp.org>
56532             Paul Eggert  <eggert@cs.ucla.edu>
56533
56534         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
56535
56536 2006-11-26  Bruno Haible  <bruno@clisp.org>
56537
56538         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56539         noinst_LTLIBRARIES.
56540
56541 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56542             Bruno Haible  <bruno@clisp.org>
56543
56544         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
56545         if compiling with "gcc -ansi".
56546
56547 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56548
56549         Fix some incompatibilities with gcc -ansi -pedantic.
56550         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
56551         if compiling pedantically with GCC, unless it's C99 or later.
56552         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
56553         it mishandles gcc -ansi -pedantic as well.
56554         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
56555         if gcc -pedantic.
56556         * lib/regexec.c (check_node_accept_bytes): Don't use auto
56557         initializers for struct if -pedantic, unless it's C99 or later.
56558
56559 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
56560
56561         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
56562         Don't close an fd more than once. Identical atimes indicate
56563         success, not failure.
56564
56565 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
56566
56567         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
56568
56569 2006-11-23  Jim Meyering  <jim@meyering.net>
56570
56571         * build-aux/announce-gen: New file.  From coreutils.
56572
56573 2006-11-22  Jim Meyering  <jim@meyering.net>
56574
56575         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
56576         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
56577         (fts_read): Use a temporary to narrow the overused st_size member
56578         before using it in a switch statement.  Reported by Matthew Woehlke.
56579
56580         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
56581         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56582
56583 2006-11-20  Bruno Haible  <bruno@clisp.org>
56584
56585         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
56586         changequote instead of pairs of brackets.
56587         Reported by Andreas Schwab <schwab@suse.de>.
56588
56589 2006-11-21  Jim Meyering  <jim@meyering.net>
56590
56591         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
56592         so as to remain compatible with older compilers.
56593         Patch from Michael Deutschmann.
56594
56595 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56596
56597         * MODULES.html.sh (File system functions): Add openat.
56598
56599         * lib/openat.h (rpl_fstatat): New macro, if
56600         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
56601         (fstatat): Define to rpl_fstatat under the same conditions,
56602         unless COMPILING_FSTATAT.
56603         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
56604         seems to have the bug.
56605         * lib/fstatat.c: New file.
56606         * modules/openat (Files): Add it.
56607
56608 2006-11-20  Bruno Haible  <bruno@clisp.org>
56609
56610         * Makefile: New file.
56611
56612 2006-11-20  Jim Meyering  <jim@meyering.net>
56613
56614         The beginnings of syntax-related checks for gnulib.
56615         * lib/Makefile: New file.
56616         * lib/t-idcache: New script.  Ensure that the two halves of
56617         idcache.c stay in sync.
56618
56619         * lib/idcache.c: Adjust comments in user- and group- portions to
56620         be more accurate, and to be consistent with one another.
56621
56622 2006-11-20  Jim Meyering  <jim@meyering.net>
56623
56624         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
56625         continue using the flexible array member (thus, this module performs
56626         half as many malloc calls), with the addition that...
56627         (getgroup, getuser): Consistently record a non-match via an empty
56628         "name" string, and map an empty string match to a NULL return value.
56629         * modules/idcache (Depends-on): Re-add flexmember.
56630
56631         * lib/idcache.c (getuser): Remove all uses of the register keyword.
56632         (getuidbyname, getgroup, getgidbyname): Likewise.
56633
56634         Use cleaner syntax: NULL rather than 0.
56635         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56636
56637 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56638
56639         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56640         It mishandled the case where the group was missing.
56641         Problem reported by Greg Schafer.
56642         * modules/idcache: Likewise.
56643
56644 2006-11-18  Jim Meyering  <jim@meyering.net>
56645
56646         * check-module (%exempt_header): Add exception for some
56647         conditionally-included headers.
56648
56649         * modules/i-ring (Depends-on): Add verify.
56650         (License): Change to LGPL.
56651
56652 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56653
56654         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56655         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56656         and inttostr.h.  Use snprintf rather than uinttostr, so that
56657         LGPLed code doesn't depend on GPLed.
56658
56659 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56660
56661         * modules/inline (License): Change from GPL to LGPL.
56662
56663 2006-11-17  Jim Meyering  <jim@meyering.net>
56664
56665         * modules/d-type (License): Switch to LGPL.
56666
56667 2006-11-15  Bruno Haible  <bruno@clisp.org>
56668
56669         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56670
56671 2006-11-15  Eric Blake  <ebb9@byu.net>
56672
56673         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56674         the module dependency.
56675
56676 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56677             Bruno Haible  <bruno@clisp.org>
56678
56679         * gnulib-tool (func_create_testdir): Add license consistency check.
56680
56681 2006-11-15  Eric Blake  <ebb9@byu.net>
56682
56683         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56684         random "(cached)" in configure output.
56685
56686 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56687
56688         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56689         test for conforming inttypes.h is both announced and cached.
56690
56691         * MODULES.html.sh (seen_modules, seen_files): New variables.
56692         (func_module): Rewrite to use a few less gnulib-tool and sed
56693         invocations.  Avoid a couple of quadratic algorithms for ...
56694         (missed_modules, missed_files): ... these, with ...
56695         (func_append, func_tmpdir): ... these new functions, from
56696         gnulib-tool.  Analogously, install traps for cleanup.
56697
56698         * tests/test-gc.c (main): Remove unused variables.
56699         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56700
56701 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56702
56703         * modules/inttostr (License): Change to LGPL.
56704
56705 2006-11-14  Eric Blake  <ebb9@byu.net>
56706
56707         * modules/tempname (License): Change to LGPL.
56708
56709 2006-11-14  Eric Blake  <ebb9@byu.net>
56710
56711         * doc/functions.texi (Function Portability): *printf functions on
56712         Cygwin now understand all POSIX size specifiers.
56713
56714 2006-11-14  Bruno Haible  <bruno@clisp.org>
56715
56716         * modules/c-ctype (License): Change to LGPL.
56717
56718 2006-11-12  Bruno Haible  <bruno@clisp.org>
56719
56720         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56721         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56722         for GNOME libraries, for which the include files are installed in
56723         subdirectories of $prefix/include.
56724
56725 2006-11-12  Bruno Haible  <bruno@clisp.org>
56726
56727         * m4/lib-link.m4: Require at least autoconf-2.54.
56728         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56729         name to underscores for the --with option.
56730
56731 2006-11-13  Bruno Haible  <bruno@clisp.org>
56732
56733         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56734         the tests directory.
56735         Reported by Ralf Wildenhues.
56736
56737 2006-11-13  Bruno Haible  <bruno@clisp.org>
56738
56739         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
56740         (func_emit_initmacro_end): Undo the override here.
56741         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
56742         Works around the famous automake error in coreutils.
56743
56744 2006-11-13  Eric Blake  <ebb9@byu.net>
56745
56746         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
56747         element, not its node.
56748
56749 2006-11-12  Bruno Haible  <bruno@clisp.org>
56750
56751         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
56752         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
56753
56754 2006-11-12  Bruno Haible  <bruno@clisp.org>
56755
56756         * gnulib-tool: New option --local-symlink.
56757         (func_usage): Document it.
56758         (lsymbolic): New variable.
56759         (func_import, func_create_testdir): If --symlink was not specified,
56760         test whether --local-symlink was specified and the file comes from
56761         the local_gnulib_dir.
56762
56763 2006-11-12  Bruno Haible  <bruno@clisp.org>
56764
56765         * gnulib-tool (func_ln): New function.
56766         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
56767
56768 2006-11-12  Bruno Haible  <bruno@clisp.org>
56769
56770         Finish support for source files in subdirectories.
56771         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
56772         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
56773         AUTOMAKE_OPTIONS.
56774         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
56775
56776 2006-11-12  Bruno Haible  <bruno@clisp.org>
56777
56778         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56779         EXTRA_lib_SOURCES augmentation.
56780         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
56781
56782 2006-11-12  Jim Meyering  <jim@meyering.net>
56783
56784         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
56785         file descriptors.  This also averts a failure on systems with
56786         native openat support when a traversed directory lacks "x" access.
56787         * lib/fts_.h: Include "i-ring.h"
56788         (struct FTS) [fts_fd_ring]: New member.
56789         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
56790         (FCHDIR): Add parentheses.
56791         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
56792         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
56793         When descending, rather than simply closing the previous
56794         fts_cwd_fd value, push that file descriptor onto the ring.
56795         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
56796         (fts_open): Initialize the new fd_ring member.
56797         (fts_close): Clear the ring.
56798         (fts_safe_changedir): When possible, use our new fd_ring to skip
56799         the diropen and fstat and dev/ino comparison that would normally
56800         accompany a virtual `chdir ("..")'.
56801
56802         * modules/fts (Depends-on): Add i-ring.
56803         * modules/i-ring: New module.
56804         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
56805         * m4/i-ring.m4: New file.
56806
56807 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56808
56809         * gnulib-tool (func_create_testdir): Fix replacement of
56810         `build-aux' in configure.ac.  Run autotools in gltests
56811         subdirectory.
56812         (func_create_testdir, func_create_megatestdir, test): There is
56813         no need for '--force' in most autotool invocations in a new
56814         tree.  Actually fail the whole test if any of the tools, or the
56815         configure or make stages fail.
56816
56817         Sync from Automake.
56818         * build-aux/gnupload: Revert last change.  Add pointer to upload
56819         instructions of the GNU Maintenance Instructions.
56820         Suggestion by Karl Berry.
56821
56822 2006-11-10  Jim Meyering  <jim@meyering.net>
56823
56824         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
56825
56826 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56827
56828         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
56829         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
56830         (bind_textdomain_codeset) [! ENABLE_NLS]:
56831         Evaluate all the arguments.  That way, callers get compatible behavior
56832         if the arguments have side effects.  Also, it avoids some GCC
56833         diagnostics in some cases; Joel E. Denny reported problems when Bison
56834         was configured with --enable-gcc-warnigs.
56835
56836 2006-11-10  Jim Meyering  <jim@meyering.net>
56837
56838         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
56839         relevant options in CFLAGS (like -O, -fno-inline) are taken into
56840         account.
56841
56842 2006-11-10  Jim Meyering  <jim@meyering.net>
56843
56844         * modules/inline: New file/module.
56845         * modules/xalloc (Files): Remove m4/inline.m4.
56846         (Depends-on): Add inline, instead.
56847         * modules/oset: Likewise.
56848         * modules/list: Likewise.
56849
56850 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56851
56852         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
56853         Problem reported by Matthew Woehlke.
56854
56855 2006-11-09  Bruno Haible  <bruno@clisp.org>
56856
56857         * lib/tempname.c (gen_tempname): Remove variant that invokes
56858         __gen_tempname.
56859         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
56860         __gen_tempname.
56861
56862 2006-11-08  Bruno Haible  <bruno@clisp.org>
56863
56864         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
56865         to 'yes' instead of 'cross-compiling'.
56866
56867 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
56868
56869         * lib/quotearg.h (quotearg_free): New decl.
56870         * lib/quotearg.c (quotearg_free): New function.
56871         (slot0, nslots, slotvec0, slotvec):
56872         Now file-scope so that quotearg_free can get at them.
56873
56874 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56875
56876         Sync from Automake.
56877         * build-aux/gnupload: Add missing 'gnu' to example URL.
56878         Report by Karl Berry.
56879
56880 2006-11-08  Bruno Haible  <bruno@clisp.org>
56881
56882         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
56883         Suggested by Paul Eggert.
56884
56885 2006-11-08  Jim Meyering  <jim@meyering.net>
56886
56887         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
56888         It's already included if !_LIBC.
56889         (fts_safe_changedir): Add a comment.
56890
56891 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56892
56893         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
56894         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
56895         Matthew Woehlke.
56896
56897         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
56898         definitions up, to avoid colliding with change below.
56899         (static_inline) [HAVE_INLINE]: New macro.
56900         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
56901         Provide extern decls when !HAVE_INLINE.  Do not define unless
56902         static_inline is defined, either by us or by xmalloc.c.  Use
56903         static_inline rather than static inline.
56904         (XCALLOC): Optimize sizeof(T) = 1 case.
56905         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
56906
56907 2006-11-07  Bruno Haible  <bruno@clisp.org>
56908
56909         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
56910         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
56911         AC_C_INLINE.
56912         * modules/xalloc (Files): Add m4/inline.m4.
56913
56914 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56915
56916         * README: Fix typo.
56917         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
56918         (Miscellanous Notes): ...from this.
56919
56920 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56921
56922         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
56923         Mention that offsetof should be used instead of sizeof.
56924         From Bruno Haible.
56925
56926 2006-11-07  Bruno Haible  <bruno@clisp.org>
56927
56928         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
56929
56930 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56931
56932         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56933         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
56934         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56935         (gl_tree_add_before, gl_tree_add_after):
56936         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
56937         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
56938         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56939         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
56940         (gl_linked_add_after, gl_linked_add_at): Likewise.
56941         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
56942         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56943         (gl_tree_add_before, gl_tree_add_after): Likewise.
56944         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
56945         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
56946         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56947
56948 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56949
56950         * lib/gl_oset.h: Use C comment style, not C++ comment style.
56951
56952 2006-11-06  Bruno Haible  <bruno@clisp.org>
56953
56954         * m4/inline.m4: New file.
56955         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
56956         * modules/list (Files): Add m4/inline.m4.
56957         * modules/oset (Files): Likewise.
56958
56959 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56960
56961         * lib/idcache.c: Include <stddef.h>, for offsetof.
56962         (struct userid.name): Change from char * to a flexible array member.
56963         All uses changed.
56964         * modules/idcache (Depends-on): Add flexmember.
56965
56966         * MODULES.html.sh (Core language properties): New module flexmember.
56967         * modules/flexmember, m4/flexmember.m4: New files.
56968
56969         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
56970         inline functions that are identical with the old xnmalloc_inline,
56971         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
56972         that we can avoid some unnecessary integer multiplications and
56973         divisions in the common case where the element size is known at
56974         compile time.
56975         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
56976         needed.
56977         (xnboundedmalloc): Remove.
56978         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
56979         arguments, for consistency with rest of this header.
56980         (xcharalloc): Rewrite using XNMALLOC.
56981         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
56982         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56983         versions have been moved to lib/xalloc.h and renamed to be the
56984         non-*_inline versions.
56985         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56986         and xnrealloc functions, since those functions are now inline and
56987         now call us.
56988         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56989         renaming described above.
56990         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56991         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56992         captures the dependency in AC_C_INLINE.
56993
56994         New module canonicalize-lgpl, proposed by Charles Wilson in
56995         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56996         with a few small changes afterwards.
56997         * MODULES.html.sh (File system functions): New module
56998         canonicalize-lgpl.
56999         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57000         and canonicalize_file_name.
57001         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57002         * modules/canonicalize-lgpl: New files.
57003
57004 2006-11-05  Bruno Haible  <bruno@clisp.org>
57005
57006         * gnulib-tool (func_import, func_create_testdir): Create directories
57007         also for files in subdirectories of lib/.
57008
57009 2006-11-05  Bruno Haible  <bruno@clisp.org>
57010
57011         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57012         ANSI C compliant.
57013
57014 2006-11-03  Bruno Haible  <bruno@clisp.org>
57015
57016         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57017         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57018         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57019         (xnboundedmalloc): New inline function.
57020         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57021         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57022         xmalloc.
57023         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57024         xmalloc.
57025         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57026         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57027         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57028         xmalloc.
57029         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57030         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57031         xmalloc.
57032         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57033         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57034         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57035         xmalloc.
57036         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57037         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57038         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57039         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57040         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57041         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57042         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57043
57044 2006-11-03  Bruno Haible  <bruno@clisp.org>
57045
57046         * lib/c-ctype.h [C++]: Define functions without name mangling.
57047         * lib/fwriteerror.h [C++]: Likewise.
57048         * lib/gcd.h [C++]: Likewise.
57049         * lib/linebreak.h [C++]: Likewise.
57050
57051 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57052
57053         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57054         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57055         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57056         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57057         Check for functions and headers just once.
57058         Check for declaration of canonicalize_file_name.
57059         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57060
57061 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57062
57063         * gnulib-tool (func_import): Fix typo in actioncmd.
57064
57065 2006-11-02  Bruno Haible  <bruno@clisp.org>
57066
57067         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57068         newline sequence in the Makefile.am snippet as a space, like "make"
57069         does.
57070         Reported by Roger Persson <perrog@gmail.com>.
57071
57072 2006-11-01  Bruno Haible  <bruno@clisp.org>
57073
57074         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57075         already declared in <string.h>.
57076         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57077
57078 2006-11-01  Bruno Haible  <bruno@clisp.org>
57079
57080         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57081         * lib/strcase.h: Include <string.h>.
57082         (strcasecmp): Define to rpl_strcasecmp here.
57083
57084 2006-11-01  Bruno Haible  <bruno@clisp.org>
57085
57086         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57087
57088 2006-11-01  Eric Blake  <ebb9@byu.net>
57089
57090         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57091
57092         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57093
57094 2006-10-29  Bruno Haible  <bruno@clisp.org>
57095
57096         Make it compile in C++ mode.
57097         * lib/full-write.c (full_rw): Add a cast.
57098
57099 2006-11-01  Bruno Haible  <bruno@clisp.org>
57100
57101         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57102         be POSIX compliant.
57103         Reported by Roger Persson <perrog@gmail.com>.
57104
57105 2006-11-01  Eric Blake  <ebb9@byu.net>
57106
57107         * lib/getopt_.h: Fix comments.
57108
57109 2006-10-31  Eric Blake  <ebb9@byu.net>
57110
57111         * modules/tmpdir (Depends-on): Add sys_stat.
57112         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57113         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57114         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57115         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57116         tempname.
57117
57118 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57119
57120         Avoid some C++ diagnostics reported by Bruno Haible.
57121         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57122         xmalloc.
57123         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57124         (struct slotvec): Move to top level.
57125         (quotearg_n_options): Rewrite to avoid xmalloc.
57126         * lib/xalloc.h (xcharalloc): New function.
57127         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57128         [defined __cplusplus]: Add function template that provides result
57129         type propagation.  This part of the change is from Bruno Haible.
57130
57131 2006-10-29  Bruno Haible  <bruno@clisp.org>
57132
57133         Make it compile in C++ mode.
57134         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57135         * lib/strnlen1.c (strnlen1): Cast memchr result.
57136         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57137         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57138         (create_temp_dir): Rename local variable 'template'.
57139         (compile_csharp_using_sscli): Add cast.
57140         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57141         * lib/findprog.c (find_in_path): Likewise.
57142         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57143         * lib/wait-process.c (register_slave_subprocess): Likewise.
57144
57145 2006-10-22  Bruno Haible  <bruno@clisp.org>
57146
57147         * modules/tsearch: New file.
57148         * lib/tsearch.h: New file.
57149         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57150         * m4/tsearch.m4: New file.
57151         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57152
57153 2006-10-29  Eric Blake  <ebb9@byu.net>
57154
57155         * lib/arcfour.c: Assume config.h.
57156         * lib/arctwo.c: Likewise.
57157         * lib/base64.c: Likewise.
57158         * lib/check-version.c: Likewise.
57159         * lib/crc.c: Likewise.
57160         * lib/des.c: Likewise.
57161         * lib/gc-gnulib.c: Likewise.
57162         * lib/gc-libgcrypt.c: Likewise.
57163         * lib/gc-pbkdf2-sha1.c: Likewise.
57164         * lib/getaddrinfo.c: Likewise.
57165         * lib/getdelim.c: Likewise.
57166         * lib/getline.c: Likewise.
57167         * lib/hmac-md5.c: Likewise.
57168         * lib/hmac-sha1.c: Likewise.
57169         * lib/iconvme.c: Likewise.
57170         * lib/md2.c: Likewise.
57171         * lib/md4.c: Likewise.
57172         * lib/memxor.c: Likewise.
57173         * lib/read-file.c: Likewise.
57174         * lib/readline.c: Likewise.
57175         * lib/rijndael-alg-fst.c: Likewise.
57176         * lib/rijndael-api-fst.c: Likewise.
57177         * lib/xgetdomainname.c: Likewise.
57178
57179 2006-10-28  Eric Blake  <ebb9@byu.net>
57180
57181         * lib/xstrndup.c: Assume config.h.
57182
57183 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57184
57185         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57186         stat-macros.h is now for our own macros, whereas stat_h is for
57187         macros in the <sys/stat.h> name space.
57188         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57189         (STAT_MACROS_H): Remove.
57190         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57191         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57192         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57193         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57194         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57195         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57196         Move these macros to ...
57197         * lib/stat_.h: here.  Don't include stat-macros.h.
57198         * lib/canonicalize.c: Don't include stat-macros.h.
57199         * lib/chown.c: Likewise.
57200         * lib/euidaccess.c: Likewise.
57201         * lib/file-type.c: Likewise.
57202         * lib/filemode.c: Likewise.
57203         * lib/glob.c: Likewise.
57204         * lib/isapipe.c: Likewise.
57205         * lib/lchown.c: Likewise.
57206         * lib/lstat.c: Likewise.
57207         * lib/mkdir-p.c: Likewise.
57208         * lib/rmdir.c: Likewise.
57209         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57210         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57211         unless mkdir isn't declared, to speed up 'configure'.
57212         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57213         would define all the S_* symbols.
57214         * modules/canonicalize (Depends-on):
57215         Depend on sys_stat, not stat-macros.
57216         * modules/chown: Likewise.
57217         * modules/euidaccess: Likewise.
57218         * modules/filemode: Likewise.
57219         * modules/file-type: Likewise.
57220         * modules/glob: Likewise.
57221         * modules/isapipe: Likewise.
57222         * modules/lchown: Likewise.
57223         * modules/lstat: Likewise.
57224         * modules/mkancesdirs: Likewise.
57225         * modules/rmdir: Likewise.
57226         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57227         * modules/modechange: Likewise.
57228         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57229         (configure.ac): Remove gl_STAT_MACROS.
57230         * modules/sys_stat (Depends-on): Remove stat-macros.
57231
57232 2006-10-27  Bruno Haible  <bruno@clisp.org>
57233
57234         * m4/signed.m4: Remove file.
57235         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57236         invocation.
57237         * modules/vasnprintf (Files): Remove m4/signed.m4.
57238
57239 2006-10-27  Bruno Haible  <bruno@clisp.org>
57240
57241         Update to GNU gettext 0.16.
57242         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57243         m4/inttypes-h.m4, m4/signed.m4.
57244         * m4/gettext.m4: Update to GNU gettext 0.16.
57245         * m4/intl.m4: New file, from GNU gettext.
57246         * m4/intldir.m4: New file, from GNU gettext.
57247         * config/srclist.txt: Update
57248
57249 2006-10-27  Eric Blake  <ebb9@byu.net>
57250
57251         * MODULES.html.sh: Document tempname.
57252         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57253         dependencies.
57254         (Files): Move lib/tempname.c...
57255         * modules/tempname: ...to this new module.
57256         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57257         (gl_PREREQ_TEMPNAME): Move...
57258         * m4/tempname.m4: ...to this new file.
57259         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57260         * modules/sys_stat (Depends-on): Add stat-macros.
57261         * lib/stat_.h (includes): Pick up stat macros.
57262         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57263         if stat macros are broken.
57264         * lib/tempname.c (includes): No need to include "stat-macros.h".
57265         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57266         (direxists, __path_search) [!_LIBC]: Don't compile these in
57267         gnulib; the tmpdir module covers that.
57268         * lib/tempname.h: New file.
57269
57270 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57271
57272         * COPYING: Explain how gnulib-tool converts licence headers.
57273         Almost all wording by Eric Blake.
57274
57275 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57276
57277         * lib/mbchar.h (is_basic_table): Make read-only.
57278         * lib/mbchar.c (is_basic_table): Likewise.
57279         Reported by John Darrington.
57280
57281 2006-10-25  Bruno Haible  <bruno@clisp.org>
57282
57283         * lib/progname.h (set_program_name): Undefine before defining.
57284
57285 2006-10-25  Bruno Haible  <bruno@clisp.org>
57286
57287         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57288         false for non-gcc C++ compilers.
57289         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57290
57291 2006-10-24  Bruno Haible  <bruno@clisp.org>
57292
57293         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57294         iconv implementations like Irix iconv.
57295
57296 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57297
57298         * modules/vararrays: New file.
57299         * m4/vararrays.m4: New file, taken from diffutils.
57300         * MODULES.html.sh: New module vararrays.
57301
57302 2006-10-24  Karl Berry  <karl@gnu.org>
57303
57304         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57305         Don't call GNU Unix.
57306
57307 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57308
57309         * users.txt: Add Libtool.
57310
57311         Sync from Libtool:
57312
57313         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57314
57315         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57316         to gnulib's policy of including config.h unconditionally.
57317
57318 2006-10-24  Bruno Haible  <bruno@clisp.org>
57319
57320         * modules/wcwidth (Files): Add m4/wint_t.m4.
57321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57322         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57323
57324 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57325
57326         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57327         to pacify GCC with some -W flags enabled.  Problem reported by
57328         Bruno Haible.
57329
57330 2006-10-24  Jim Meyering  <jim@meyering.net>
57331
57332         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57333         Reported by Karl Berry.
57334
57335 2006-10-23  Bruno Haible  <bruno@clisp.org>
57336
57337         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57338
57339 2006-10-24  Bruno Haible  <bruno@clisp.org>
57340
57341         * lib/gl_list.h: Use C comment style, not C++ comment style.
57342
57343 2006-10-23  Eric Blake  <ebb9@byu.net>
57344
57345         * lib/getaddrinfo.c (includes): Add missing include.
57346
57347 2006-10-23  Bruno Haible  <bruno@clisp.org>
57348             Paul Eggert  <eggert@cs.ucla.edu>
57349
57350         Ability to rename obstack_free.
57351         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57352         obstack_free.
57353         (obstack_free): Invoke the __obstack_free macro.
57354         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57355
57356 2006-10-23  Bruno Haible  <bruno@clisp.org>
57357             Paul Eggert  <eggert@cs.ucla.edu>
57358
57359         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57360         __argc, __argv from the declaration. (They are defined as macros on
57361         mingw.)
57362
57363 2006-10-22  Bruno Haible  <bruno@clisp.org>
57364
57365         * doc/gnulib-intro.texi: New file.
57366         * doc/gnulib.texi: Include it.
57367
57368 2006-10-21  Bruno Haible  <bruno@clisp.org>
57369
57370         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57371         "Introduction", "Miscellanous Notes", "Particular Modules".
57372
57373 2006-10-21  Bruno Haible  <bruno@clisp.org>
57374
57375         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57376         Change mostlyclean-local rule to avoid sh syntax error from bash
57377         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57378
57379 2006-10-23  Jim Meyering  <jim@meyering.net>
57380
57381         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57382         in place of snprintf.
57383
57384         * modules/inttostr (Files): Add lib/uinttostr.c.
57385         * lib/uinttostr.c (inttostr): New file/function.
57386         * lib/inttostr.h (uinttostr): Declare.
57387         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57388         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57389         Add uinttostr.
57390         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57391
57392 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57393
57394         * lib/canonicalize.c (ELOOP): Define if not already defined.
57395         Problem reported by Bruno Haible in
57396         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57397
57398 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57399
57400         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57401         Problem reported by Perry Smith and Ville Laurikari.
57402
57403         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57404         uses.
57405
57406 2006-10-19  Bruno Haible  <bruno@clisp.org>
57407
57408         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57409         for mingw.
57410
57411 2006-10-19  Bruno Haible  <bruno@clisp.org>
57412
57413         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57414         Needed for mingw.
57415
57416 2006-10-19  Bruno Haible  <bruno@clisp.org>
57417
57418         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57419
57420 2006-10-19  Bruno Haible  <bruno@clisp.org>
57421
57422         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57423         it.
57424
57425 2006-10-19  Bruno Haible  <bruno@clisp.org>
57426
57427         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57428         invocation.
57429
57430 2006-10-19  Bruno Haible  <bruno@clisp.org>
57431
57432         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57433         mountlist by default.
57434
57435 2006-10-16  Bruno Haible  <bruno@clisp.org>
57436
57437         * lib/c-strstr.c: Include c-strstr.h.
57438
57439 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57440
57441         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57442         in a slash.
57443
57444 2006-10-18  Bruno Haible  <bruno@clisp.org>
57445
57446         * lib/lock.h [C++]: Wrap definitions in extern "C".
57447
57448 2006-10-18  Bruno Haible  <bruno@clisp.org>
57449
57450         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57451         gl_LIBOBJS list.
57452
57453 2006-10-18  Bruno Haible  <bruno@clisp.org>
57454
57455         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57456
57457 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57458
57459         * lib/xstrtol.h: Include gettext.h.
57460         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57461         Problem reported by Eric Blake.
57462         * modules/xstrtol (Depends-on): Add gettext-h.
57463
57464 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
57465
57466         * lib/strftime.c (advance): New macro.
57467         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
57468         incomplete type, so you can't add 0 to it.  Problem and patch
57469         reported by Eelco Dolstra for dietlibc.
57470
57471 2006-10-18  Jim Meyering  <jim@meyering.net>
57472
57473         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
57474         type for a local, and rename it: s/up/user_proc/.
57475
57476 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57477
57478         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
57479         READ_UTMP_USER_PROCESS.
57480         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
57481
57482 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57483
57484         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
57485         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
57486
57487 2006-10-17  Eric Blake  <ebb9@byu.net>
57488
57489         * lib/sigprocmask.c (sigprocmask): Fix typo.
57490
57491         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
57492
57493         * modules/clean-temp (Makefile.am): Don't add to make output...
57494         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
57495         config.h.
57496
57497 2006-10-17  Bruno Haible  <bruno@clisp.org>
57498
57499         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
57500         differently if DEFAULT_TEXT_DOMAIN is set.
57501
57502 2006-10-16  Bruno Haible  <bruno@clisp.org>
57503
57504         * lib/clean-temp.c: Include fwriteerror.h.
57505
57506 2006-10-16  Bruno Haible  <bruno@clisp.org>
57507
57508         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
57509
57510 2006-10-16  Bruno Haible  <bruno@clisp.org>
57511
57512         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
57513         * lib/sigprocmask.h: Include <sys/types.h>.
57514         (sigset_t): Use the system's definition if present.
57515
57516 2006-10-17  Eric Blake  <ebb9@byu.net>
57517
57518         * lib/xvasprintf.c (includes): Assume config.h.
57519         * lib/xasprintf.c (includes): Likewise.
57520
57521 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57522
57523         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
57524         at least as wide as intmax_t.
57525
57526 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
57527
57528         (Imported from Automake.)
57529         * build-aux/gnupload: Update to version 1.1 of directive file.
57530
57531 2006-10-16  Eric Blake  <ebb9@byu.net>
57532
57533         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
57534         match Automake 1.10a.
57535
57536 2006-10-14  Bruno Haible  <bruno@clisp.org>
57537
57538         * modules/sigprocmask: New file.
57539         * lib/sigprocmask.h: New file.
57540         * lib/sigprocmask.c: New file.
57541         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
57542         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
57543         request sigprocmask.o.
57544         (gl_PREREQ_SIGPROCMASK): New macro.
57545         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
57546         (Depends-on): Add sigprocmask.
57547         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
57548         gt_SIGNALBLOCKING. Test for 'raise' only once.
57549         * lib/fatal-signal.c: Include sigprocmask.h.
57550         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
57551         unblock_fatal_signals): Define always.
57552         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57553         sigprocmask.
57554
57555 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57556
57557         Sync from Automake.
57558         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
57559         which incorrectly sets the mode of an existing destination
57560         directory.  In some cases the unpatched install-sh could do the
57561         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
57562         system.  We hope this is rare in practice, but it's clearly worth
57563         fixing.  Problem reported by Alex Unleashed in
57564         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
57565         Also, don't bother to check for -m bugs unless we're using -m;
57566         suggested by Stepan Kasal.
57567
57568 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57569
57570         Sync from Automake.
57571         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
57572         `-c' flag, so they appear at the same position as in %FASTDEP%
57573         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
57574         which ignores unknown options only after the first non-option.
57575         Bug report against M4 by Nelson H. F. Beebe.
57576
57577 2006-10-13  Jim Meyering  <jim@meyering.net>
57578
57579         Fix a bug in yesterday's change.
57580         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
57581         p->fts_statp->st_dev would be used uninitialized.
57582         Ensures that we always call fts_stat on the very first entry.
57583         Miklos Szeredi reported that find -xdev stopped working.
57584
57585 2006-10-12  Bruno Haible  <bruno@clisp.org>
57586
57587         * gnulib-tool (func_get_automake_snippet): Append an automatically
57588         computed EXTRA_DIST augmentation.
57589         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
57590         * modules/alloca-opt (Makefile.am): Likewise.
57591         * modules/allocsa (Makefile.am): Likewise.
57592         * modules/arcfour (Makefile.am): Likewise.
57593         * modules/arctwo (Makefile.am): Likewise.
57594         * modules/argmatch (Makefile.am): Likewise.
57595         * modules/argz (Makefile.am): Likewise.
57596         * modules/atexit (Makefile.am): Likewise.
57597         * modules/backupfile (Makefile.am): Likewise.
57598         * modules/byteswap (Makefile.am): Likewise.
57599         * modules/c-strtod (Makefile.am): Likewise.
57600         * modules/c-strtold (Makefile.am): Likewise.
57601         * modules/calloc (Makefile.am): Likewise.
57602         * modules/canon-host (Makefile.am): Likewise.
57603         * modules/canonicalize (Makefile.am): Likewise.
57604         * modules/chdir-long (Makefile.am): Likewise.
57605         * modules/chdir-safer (Makefile.am): Likewise.
57606         * modules/check-version (Makefile.am): Likewise.
57607         * modules/chown (Makefile.am): Likewise.
57608         * modules/cloexec (Makefile.am): Likewise.
57609         * modules/close-stream (Makefile.am): Likewise.
57610         * modules/closeout (Makefile.am): Likewise.
57611         * modules/crc (Makefile.am): Likewise.
57612         * modules/csharpexec (Makefile.am): Likewise.
57613         * modules/cycle-check (Makefile.am): Likewise.
57614         * modules/des (Makefile.am): Likewise.
57615         * modules/dev-ino (Makefile.am): Likewise.
57616         * modules/dirfd (Makefile.am): Likewise.
57617         * modules/dirname (Makefile.am): Likewise.
57618         * modules/dup2 (Makefile.am): Likewise.
57619         * modules/eealloc (Makefile.am): Likewise.
57620         * modules/error (Makefile.am): Likewise.
57621         * modules/euidaccess (Makefile.am): Likewise.
57622         * modules/exclude (Makefile.am): Likewise.
57623         * modules/exitfail (Makefile.am): Likewise.
57624         * modules/fcntl-safer (Makefile.am): Likewise.
57625         * modules/fcntl (Makefile.am): Likewise.
57626         * modules/file-type (Makefile.am): Likewise.
57627         * modules/fileblocks (Makefile.am): Likewise.
57628         * modules/filemode (Makefile.am): Likewise.
57629         * modules/filenamecat (Makefile.am): Likewise.
57630         * modules/fnmatch (Makefile.am): Likewise.
57631         * modules/fopen-safer (Makefile.am): Likewise.
57632         * modules/fpending (Makefile.am): Likewise.
57633         * modules/fprintftime (Makefile.am): Likewise.
57634         * modules/free (Makefile.am): Likewise.
57635         * modules/fsusage (Makefile.am): Likewise.
57636         * modules/ftruncate (Makefile.am): Likewise.
57637         * modules/fts (Makefile.am): Likewise.
57638         * modules/gc-arcfour (Makefile.am): Likewise.
57639         * modules/gc-des (Makefile.am): Likewise.
57640         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57641         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57642         * modules/gc-md4 (Makefile.am): Likewise.
57643         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57644         * modules/gc-sha1 (Makefile.am): Likewise.
57645         * modules/gc (Makefile.am): Likewise.
57646         * modules/getaddrinfo (Makefile.am): Likewise.
57647         * modules/getcwd (Makefile.am): Likewise.
57648         * modules/getdelim (Makefile.am): Likewise.
57649         * modules/getdomainname (Makefile.am): Likewise.
57650         * modules/getgroups (Makefile.am): Likewise.
57651         * modules/gethostname (Makefile.am): Likewise.
57652         * modules/gethrxtime (Makefile.am): Likewise.
57653         * modules/getline (Makefile.am): Likewise.
57654         * modules/getloadavg (Makefile.am): Likewise.
57655         * modules/getlogin_r (Makefile.am): Likewise.
57656         * modules/getndelim2 (Makefile.am): Likewise.
57657         * modules/getopt (Makefile.am): Likewise.
57658         * modules/getpagesize (Makefile.am): Likewise.
57659         * modules/getpass-gnu (Makefile.am): Likewise.
57660         * modules/getpass (Makefile.am): Likewise.
57661         * modules/getsubopt (Makefile.am): Likewise.
57662         * modules/gettime (Makefile.am): Likewise.
57663         * modules/gettimeofday (Makefile.am): Likewise.
57664         * modules/getugroups (Makefile.am): Likewise.
57665         * modules/getusershell (Makefile.am): Likewise.
57666         * modules/glob (Makefile.am): Likewise.
57667         * modules/group-member (Makefile.am): Likewise.
57668         * modules/hard-locale (Makefile.am): Likewise.
57669         * modules/hash (Makefile.am): Likewise.
57670         * modules/hmac-md5 (Makefile.am): Likewise.
57671         * modules/hmac-sha1 (Makefile.am): Likewise.
57672         * modules/human (Makefile.am): Likewise.
57673         * modules/idcache (Makefile.am): Likewise.
57674         * modules/imaxabs (Makefile.am): Likewise.
57675         * modules/imaxdiv (Makefile.am): Likewise.
57676         * modules/inet_ntop (Makefile.am): Likewise.
57677         * modules/inet_pton (Makefile.am): Likewise.
57678         * modules/intprops (Makefile.am): Likewise.
57679         * modules/inttostr (Makefile.am): Likewise.
57680         * modules/inttypes (Makefile.am): Likewise.
57681         * modules/isapipe (Makefile.am): Likewise.
57682         * modules/javaversion (Makefile.am): Likewise.
57683         * modules/lchmod (Makefile.am): Likewise.
57684         * modules/lchown (Makefile.am): Likewise.
57685         * modules/localcharset (Makefile.am): Likewise.
57686         * modules/long-options (Makefile.am): Likewise.
57687         * modules/lstat (Makefile.am): Likewise.
57688         * modules/malloc (Makefile.am): Likewise.
57689         * modules/mathl (Makefile.am): Likewise.
57690         * modules/mbchar (Makefile.am): Likewise.
57691         * modules/md2 (Makefile.am): Likewise.
57692         * modules/md4 (Makefile.am): Likewise.
57693         * modules/md5 (Makefile.am): Likewise.
57694         * modules/memcasecmp (Makefile.am): Likewise.
57695         * modules/memchr (Makefile.am): Likewise.
57696         * modules/memcmp (Makefile.am): Likewise.
57697         * modules/memcoll (Makefile.am): Likewise.
57698         * modules/memcpy (Makefile.am): Likewise.
57699         * modules/memmem (Makefile.am): Likewise.
57700         * modules/memmove (Makefile.am): Likewise.
57701         * modules/mempcpy (Makefile.am): Likewise.
57702         * modules/memrchr (Makefile.am): Likewise.
57703         * modules/memset (Makefile.am): Likewise.
57704         * modules/memxor (Makefile.am): Likewise.
57705         * modules/mkancesdirs (Makefile.am): Likewise.
57706         * modules/mkdir-p (Makefile.am): Likewise.
57707         * modules/mkdir (Makefile.am): Likewise.
57708         * modules/mkdtemp (Makefile.am): Likewise.
57709         * modules/mkstemp (Makefile.am): Likewise.
57710         * modules/mktime (Makefile.am): Likewise.
57711         * modules/modechange (Makefile.am): Likewise.
57712         * modules/mountlist (Makefile.am): Likewise.
57713         * modules/nanosleep (Makefile.am): Likewise.
57714         * modules/obstack (Makefile.am): Likewise.
57715         * modules/openat (Makefile.am): Likewise.
57716         * modules/pagealign_alloc (Makefile.am): Likewise.
57717         * modules/pathmax (Makefile.am): Likewise.
57718         * modules/physmem (Makefile.am): Likewise.
57719         * modules/poll (Makefile.am): Likewise.
57720         * modules/posixtm (Makefile.am): Likewise.
57721         * modules/posixver (Makefile.am): Likewise.
57722         * modules/putenv (Makefile.am): Likewise.
57723         * modules/quote (Makefile.am): Likewise.
57724         * modules/quotearg (Makefile.am): Likewise.
57725         * modules/raise (Makefile.am): Likewise.
57726         * modules/read-file (Makefile.am): Likewise.
57727         * modules/readline (Makefile.am): Likewise.
57728         * modules/readlink (Makefile.am): Likewise.
57729         * modules/readtokens (Makefile.am): Likewise.
57730         * modules/readutmp (Makefile.am): Likewise.
57731         * modules/realloc (Makefile.am): Likewise.
57732         * modules/regex (Makefile.am): Likewise.
57733         * modules/rename-dest-slash (Makefile.am): Likewise.
57734         * modules/rename (Makefile.am): Likewise.
57735         * modules/rijndael (Makefile.am): Likewise.
57736         * modules/rmdir (Makefile.am): Likewise.
57737         * modules/rpmatch (Makefile.am): Likewise.
57738         * modules/safe-read (Makefile.am): Likewise.
57739         * modules/safe-write (Makefile.am): Likewise.
57740         * modules/same-inode (Makefile.am): Likewise.
57741         * modules/same (Makefile.am): Likewise.
57742         * modules/save-cwd (Makefile.am): Likewise.
57743         * modules/savedir (Makefile.am): Likewise.
57744         * modules/setenv (Makefile.am): Likewise.
57745         * modules/settime (Makefile.am): Likewise.
57746         * modules/sha1 (Makefile.am): Likewise.
57747         * modules/sig2str (Makefile.am): Likewise.
57748         * modules/snprintf (Makefile.am): Likewise.
57749         * modules/stat-macros (Makefile.am): Likewise.
57750         * modules/stat-time (Makefile.am): Likewise.
57751         * modules/stdbool (Makefile.am): Likewise.
57752         * modules/stdint (Makefile.am): Likewise.
57753         * modules/stdlib-safer (Makefile.am): Likewise.
57754         * modules/stpcpy (Makefile.am): Likewise.
57755         * modules/stpncpy (Makefile.am): Likewise.
57756         * modules/strcase (Makefile.am): Likewise.
57757         * modules/strcasestr (Makefile.am): Likewise.
57758         * modules/strchrnul (Makefile.am): Likewise.
57759         * modules/strcspn (Makefile.am): Likewise.
57760         * modules/strdup (Makefile.am): Likewise.
57761         * modules/strerror (Makefile.am): Likewise.
57762         * modules/strftime (Makefile.am): Likewise.
57763         * modules/strndup (Makefile.am): Likewise.
57764         * modules/strnlen (Makefile.am): Likewise.
57765         * modules/strpbrk (Makefile.am): Likewise.
57766         * modules/strsep (Makefile.am): Likewise.
57767         * modules/strstr (Makefile.am): Likewise.
57768         * modules/strtod (Makefile.am): Likewise.
57769         * modules/strtoimax (Makefile.am): Likewise.
57770         * modules/strtok_r (Makefile.am): Likewise.
57771         * modules/strtol (Makefile.am): Likewise.
57772         * modules/strtoll (Makefile.am): Likewise.
57773         * modules/strtoul (Makefile.am): Likewise.
57774         * modules/strtoull (Makefile.am): Likewise.
57775         * modules/strtoumax (Makefile.am): Likewise.
57776         * modules/strverscmp (Makefile.am): Likewise.
57777         * modules/sys_socket (Makefile.am): Likewise.
57778         * modules/sys_stat (Makefile.am): Likewise.
57779         * modules/sysexits (Makefile.am): Likewise.
57780         * modules/time_r (Makefile.am): Likewise.
57781         * modules/timegm (Makefile.am): Likewise.
57782         * modules/timespec (Makefile.am): Likewise.
57783         * modules/tmpfile-safer (Makefile.am): Likewise.
57784         * modules/trim (Makefile.am): Likewise.
57785         * modules/unistd-safer (Makefile.am): Likewise.
57786         * modules/unlinkdir (Makefile.am): Likewise.
57787         * modules/unlocked-io (Makefile.am): Likewise.
57788         * modules/userspec (Makefile.am): Likewise.
57789         * modules/utime (Makefile.am): Likewise.
57790         * modules/utimecmp (Makefile.am): Likewise.
57791         * modules/utimens (Makefile.am): Likewise.
57792         * modules/vasnprintf (Makefile.am): Likewise.
57793         * modules/vasprintf (Makefile.am): Likewise.
57794         * modules/vsnprintf (Makefile.am): Likewise.
57795         * modules/xalloc (Makefile.am): Likewise.
57796         * modules/xgetcwd (Makefile.am): Likewise.
57797         * modules/xnanosleep (Makefile.am): Likewise.
57798         * modules/xreadlink (Makefile.am): Likewise.
57799         * modules/xstrtod (Makefile.am): Likewise.
57800         * modules/xstrtol (Makefile.am): Likewise.
57801         * modules/xstrtold (Makefile.am): Likewise.
57802         * modules/yesno (Makefile.am): Likewise.
57803         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
57804
57805 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57806
57807         * modules/error (Makefile.am): Distribute files through
57808         EXTRA_DIST, not lib_SOURCES.
57809
57810 2006-10-12  Eric Blake  <ebb9@byu.net>
57811
57812         * modules/error (Makefile.am): Distribute files in /lib.
57813         * modules/obstack (Makefile.am): Likewise.
57814
57815 2006-10-12  Bruno Haible  <bruno@clisp.org>
57816
57817         * modules/acl (Makefile.am): Distribute all files in lib/ through
57818         EXTRA_DIST.
57819         * modules/arcfour (Makefile.am): Likewise.
57820         * modules/arctwo (Makefile.am): Likewise.
57821         * modules/argmatch (Makefile.am): Likewise.
57822         * modules/argz (Makefile.am): Likewise.
57823         * modules/atexit (Makefile.am): Likewise.
57824         * modules/backupfile (Makefile.am): Likewise.
57825         * modules/c-strtod (Makefile.am): Likewise.
57826         * modules/c-strtold (Makefile.am): Likewise.
57827         * modules/calloc (Makefile.am): Likewise.
57828         * modules/canon-host (Makefile.am): Likewise.
57829         * modules/canonicalize (Makefile.am): Likewise.
57830         * modules/chdir-long (Makefile.am): Likewise.
57831         * modules/chdir-safer (Makefile.am): Likewise.
57832         * modules/check-version (Makefile.am): Likewise.
57833         * modules/chown (Makefile.am): Likewise.
57834         * modules/cloexec (Makefile.am): Likewise.
57835         * modules/close-stream (Makefile.am): Likewise.
57836         * modules/closeout (Makefile.am): Likewise.
57837         * modules/crc (Makefile.am): Likewise.
57838         * modules/cycle-check (Makefile.am): Likewise.
57839         * modules/des (Makefile.am): Likewise.
57840         * modules/dirfd (Makefile.am): Likewise.
57841         * modules/dirname (Makefile.am): Likewise.
57842         * modules/dup2 (Makefile.am): Likewise.
57843         * modules/euidaccess (Makefile.am): Likewise.
57844         * modules/exclude (Makefile.am): Likewise.
57845         * modules/exitfail (Makefile.am): Likewise.
57846         * modules/fcntl-safer (Makefile.am): Likewise.
57847         * modules/file-type (Makefile.am): Likewise.
57848         * modules/fileblocks (Makefile.am): Likewise.
57849         * modules/filemode (Makefile.am): Likewise.
57850         * modules/filenamecat (Makefile.am): Likewise.
57851         * modules/fnmatch (Makefile.am): Likewise.
57852         * modules/fopen-safer (Makefile.am): Likewise.
57853         * modules/fpending (Makefile.am): Likewise.
57854         * modules/fprintftime (Makefile.am): Likewise.
57855         * modules/free (Makefile.am): Likewise.
57856         * modules/fsusage (Makefile.am): Likewise.
57857         * modules/ftruncate (Makefile.am): Likewise.
57858         * modules/fts (Makefile.am): Likewise.
57859         * modules/gc (Makefile.am): Likewise.
57860         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57861         * modules/getaddrinfo (Makefile.am): Likewise.
57862         * modules/getcwd (Makefile.am): Likewise.
57863         * modules/getdelim (Makefile.am): Likewise.
57864         * modules/getdomainname (Makefile.am): Likewise.
57865         * modules/getgroups (Makefile.am): Likewise.
57866         * modules/gethostname (Makefile.am): Likewise.
57867         * modules/gethrxtime (Makefile.am): Likewise.
57868         * modules/getline (Makefile.am): Likewise.
57869         * modules/getloadavg (Makefile.am): Likewise.
57870         * modules/getlogin_r (Makefile.am): Likewise.
57871         * modules/getopt (Makefile.am): Likewise.
57872         * modules/getpass (Makefile.am): Likewise.
57873         * modules/getpass-gnu (Makefile.am): Likewise.
57874         * modules/getsubopt (Makefile.am): Likewise.
57875         * modules/gettime (Makefile.am): Likewise.
57876         * modules/gettimeofday (Makefile.am): Likewise.
57877         * modules/getugroups (Makefile.am): Likewise.
57878         * modules/getusershell (Makefile.am): Likewise.
57879         * modules/glob (Makefile.am): Likewise.
57880         * modules/group-member (Makefile.am): Likewise.
57881         * modules/hard-locale (Makefile.am): Likewise.
57882         * modules/hash (Makefile.am): Likewise.
57883         * modules/hmac-md5 (Makefile.am): Likewise.
57884         * modules/hmac-sha1 (Makefile.am): Likewise.
57885         * modules/human (Makefile.am): Likewise.
57886         * modules/idcache (Makefile.am): Likewise.
57887         * modules/imaxabs (Makefile.am): Likewise.
57888         * modules/imaxdiv (Makefile.am): Likewise.
57889         * modules/inet_ntop (Makefile.am): Likewise.
57890         * modules/inet_pton (Makefile.am): Likewise.
57891         * modules/inttostr (Makefile.am): Likewise.
57892         * modules/isapipe (Makefile.am): Likewise.
57893         * modules/lchown (Makefile.am): Likewise.
57894         * modules/long-options (Makefile.am): Likewise.
57895         * modules/lstat (Makefile.am): Likewise.
57896         * modules/malloc (Makefile.am): Likewise.
57897         * modules/mathl (Makefile.am): Likewise.
57898         * modules/mbchar (Makefile.am): Likewise.
57899         * modules/md2 (Makefile.am): Likewise.
57900         * modules/md4 (Makefile.am): Likewise.
57901         * modules/md5 (Makefile.am): Likewise.
57902         * modules/memcasecmp (Makefile.am): Likewise.
57903         * modules/memchr (Makefile.am): Likewise.
57904         * modules/memcmp (Makefile.am): Likewise.
57905         * modules/memcoll (Makefile.am): Likewise.
57906         * modules/memcpy (Makefile.am): Likewise.
57907         * modules/memmem (Makefile.am): Likewise.
57908         * modules/memmove (Makefile.am): Likewise.
57909         * modules/mempcpy (Makefile.am): Likewise.
57910         * modules/memrchr (Makefile.am): Likewise.
57911         * modules/memset (Makefile.am): Likewise.
57912         * modules/memxor (Makefile.am): Likewise.
57913         * modules/mkancesdirs (Makefile.am): Likewise.
57914         * modules/mkdir (Makefile.am): Likewise.
57915         * modules/mkdir-p (Makefile.am): Likewise.
57916         * modules/mkdtemp (Makefile.am): Likewise.
57917         * modules/mkstemp (Makefile.am): Likewise.
57918         * modules/mktime (Makefile.am): Likewise.
57919         * modules/modechange (Makefile.am): Likewise.
57920         * modules/mountlist (Makefile.am): Likewise.
57921         * modules/nanosleep (Makefile.am): Likewise.
57922         * modules/openat (Makefile.am): Likewise.
57923         * modules/pagealign_alloc (Makefile.am): Likewise.
57924         * modules/physmem (Makefile.am): Likewise.
57925         * modules/poll (Makefile.am): Likewise.
57926         * modules/posixtm (Makefile.am): Likewise.
57927         * modules/posixver (Makefile.am): Likewise.
57928         * modules/putenv (Makefile.am): Likewise.
57929         * modules/quote (Makefile.am): Likewise.
57930         * modules/quotearg (Makefile.am): Likewise.
57931         * modules/raise (Makefile.am): Likewise.
57932         * modules/read-file (Makefile.am): Likewise.
57933         * modules/readline (Makefile.am): Likewise.
57934         * modules/readlink (Makefile.am): Likewise.
57935         * modules/readtokens (Makefile.am): Likewise.
57936         * modules/readutmp (Makefile.am): Likewise.
57937         * modules/realloc (Makefile.am): Likewise.
57938         * modules/regex (Makefile.am): Likewise.
57939         * modules/rename (Makefile.am): Likewise.
57940         * modules/rename-dest-slash (Makefile.am): Likewise.
57941         * modules/rijndael (Makefile.am): Likewise.
57942         * modules/rmdir (Makefile.am): Likewise.
57943         * modules/rpmatch (Makefile.am): Likewise.
57944         * modules/safe-read (Makefile.am): Likewise.
57945         * modules/safe-write (Makefile.am): Likewise.
57946         * modules/same (Makefile.am): Likewise.
57947         * modules/save-cwd (Makefile.am): Likewise.
57948         * modules/savedir (Makefile.am): Likewise.
57949         * modules/setenv (Makefile.am): Likewise.
57950         * modules/settime (Makefile.am): Likewise.
57951         * modules/sha1 (Makefile.am): Likewise.
57952         * modules/sig2str (Makefile.am): Likewise.
57953         * modules/snprintf (Makefile.am): Likewise.
57954         * modules/stdlib-safer (Makefile.am): Likewise.
57955         * modules/stpcpy (Makefile.am): Likewise.
57956         * modules/stpncpy (Makefile.am): Likewise.
57957         * modules/strcase (Makefile.am): Likewise.
57958         * modules/strcasestr (Makefile.am): Likewise.
57959         * modules/strchrnul (Makefile.am): Likewise.
57960         * modules/strcspn (Makefile.am): Likewise.
57961         * modules/strdup (Makefile.am): Likewise.
57962         * modules/strerror (Makefile.am): Likewise.
57963         * modules/strftime (Makefile.am): Likewise.
57964         * modules/strndup (Makefile.am): Likewise.
57965         * modules/strnlen (Makefile.am): Likewise.
57966         * modules/strpbrk (Makefile.am): Likewise.
57967         * modules/strsep (Makefile.am): Likewise.
57968         * modules/strstr (Makefile.am): Likewise.
57969         * modules/strtod (Makefile.am): Likewise.
57970         * modules/strtoimax (Makefile.am): Likewise.
57971         * modules/strtok_r (Makefile.am): Likewise.
57972         * modules/strtol (Makefile.am): Likewise.
57973         * modules/strtoll (Makefile.am): Likewise.
57974         * modules/strtoul (Makefile.am): Likewise.
57975         * modules/strtoull (Makefile.am): Likewise.
57976         * modules/strtoumax (Makefile.am): Likewise.
57977         * modules/strverscmp (Makefile.am): Likewise.
57978         * modules/time_r (Makefile.am): Likewise.
57979         * modules/timegm (Makefile.am): Likewise.
57980         * modules/tmpfile-safer (Makefile.am): Likewise.
57981         * modules/unistd-safer (Makefile.am): Likewise.
57982         * modules/unlinkdir (Makefile.am): Likewise.
57983         * modules/userspec (Makefile.am): Likewise.
57984         * modules/utime (Makefile.am): Likewise.
57985         * modules/utimecmp (Makefile.am): Likewise.
57986         * modules/utimens (Makefile.am): Likewise.
57987         * modules/vasnprintf (Makefile.am): Likewise.
57988         * modules/vasprintf (Makefile.am): Likewise.
57989         * modules/vsnprintf (Makefile.am): Likewise.
57990         * modules/xalloc (Makefile.am): Likewise.
57991         * modules/xgetcwd (Makefile.am): Likewise.
57992         * modules/xnanosleep (Makefile.am): Likewise.
57993         * modules/xreadlink (Makefile.am): Likewise.
57994         * modules/xstrtod (Makefile.am): Likewise.
57995         * modules/xstrtol (Makefile.am): Likewise.
57996         * modules/xstrtold (Makefile.am): Likewise.
57997         * modules/yesno (Makefile.am): Likewise.
57998
57999 2006-10-12  Jim Meyering  <jim@meyering.net>
58000
58001         * m4/getloadavg.m4: Revert the change below.
58002
58003         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58004         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58005         fail with a symlink, which is what coreutils' ./bootstrap now
58006         creates by default.
58007
58008 2006-10-12  Bruno Haible  <bruno@clisp.org>
58009
58010         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58011         mingw.
58012         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58013         MSVC and mingw explicitly.
58014
58015 2006-10-11  Simon Josefsson  <jas@extundo.com>
58016             Bruno Haible  <bruno@clisp.org>
58017
58018         Add support for multiple gnulib-tool invocations in the scope of a
58019         single configure.ac file.
58020         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58021         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58022         with the same contents as the _LIBADD variable.
58023         (func_emit_initmacro_start, func_emit_initmacro_end,
58024         func_emit_initmacro_done): New functions.
58025         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58026         gl_LIBOBJS and gl_LTLIBOBJS.
58027
58028 2006-10-11  Bruno Haible  <bruno@clisp.org>
58029
58030         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58031         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58032         autoreconf. Instead, invoke autopoint explicitly but move back the
58033         *.m4 files from gnulib.
58034
58035 2006-10-11  Bruno Haible  <bruno@clisp.org>
58036
58037         * gnulib-tool (func_usage): Make module names after --create-testdir
58038         optional.
58039         (func_create_testdir): If no module was specified, use nearly all
58040         modules.
58041
58042 2006-10-12  Jim Meyering  <jim@meyering.net>
58043
58044         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58045         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58046         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58047         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58048         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58049         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58050         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58051         (fts_set_stat_required): New function.
58052         (fts_open): Defer the calls to fts_stat, if possible or requested.
58053         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58054         into fts_stat itself.
58055         (fts_read): Perform any required (deferred) fts_stat call.
58056         (fts_build): Likewise, for the directory we're about to open and read.
58057         In the readdir loop, carefully decide whether each entry will require
58058         an eventual call to fts_stat, using dirent.d_type info if available.
58059         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58060         a command line argument into this function.  Update all callers.
58061         Map a return value of FTS_DOT to FTS_D for a command line argument.
58062         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58063         Thanks to Miklos Szeredi for his tenacity and for the initial
58064         bug report about "find" failing on a FUSE-based file system.
58065
58066         * lib/fts.c (fts_open): Use consistent indentation.
58067
58068 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58069
58070         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58071         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58072         reported by Jim Meyering.  All uses of cache variables renamed
58073         to match Autoconf's.
58074         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58075         the other one.
58076
58077         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58078         Fix misspelling in diagnostic.
58079
58080 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58081
58082         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58083         defined.  Problem reported by Matthew Woehlke.
58084
58085         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58086         Add support for Tandem NonStop R series.
58087         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58088         Use new macro.
58089
58090         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58091         (has_trailing_slash): Omit size arg; all callers changed.
58092         Omit 'inline', since it doesn't help performance and we'd
58093         need to configure it.
58094         Don't count //, ///, etc. as having a trailing slash.
58095         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58096         (rpl_rename_dest_slash): On failure, use rename's errno rather
58097         than (in some cases) an incorrect or junk errno.
58098         Simplify code by removing need to compute length; this does
58099         cause it to make two passes instead of one over the file name,
58100         but it's worth it.
58101
58102         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58103         change, since Autoconf's version may no longer be appropriate now
58104         that we are using CVS Autoconf's version.  Add support for Tandem.
58105
58106 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58107             Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58110         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58111         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58112         gl_AC_TYPE_LONG_LONG.
58113
58114         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58115         instead of HAVE_LONG_LONG.
58116         * lib/printf-args.c (printf_fetchargs): Likewise.
58117         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58118         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58119         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58120         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58121         gl_AC_TYPE_LONG_LONG.
58122
58123 2006-10-11  Bruno Haible  <bruno@clisp.org>
58124
58125         * m4/longlong.m4: Add comments.
58126         * m4/ulonglong.m4: Likewise.
58127
58128 2006-10-10  Bruno Haible  <bruno@clisp.org>
58129
58130         Make it possible to #define stpcpy, strdup to aliases.
58131         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58132         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58133
58134 2006-10-10  Bruno Haible  <bruno@clisp.org>
58135
58136         Make it possible to #define gcd to an alias.
58137         * lib/gcd.c: Include config.h.
58138
58139 2006-10-10  Bruno Haible  <bruno@clisp.org>
58140
58141         Make it possible to #define c_isascii to an alias.
58142         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58143         defined. Undefine the macros before defining them, to avoid gcc
58144         warnings.
58145         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58146         define NO_C_CTYPE_MACROS early.
58147
58148 2006-10-10  Bruno Haible  <bruno@clisp.org>
58149
58150         Make it possible to #define set_program_name to an alias.
58151         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58152         ENABLE_RELOCATABLE early.
58153
58154 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58155
58156         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58157         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58158         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58159         More generally, don't assume that 64-bit signed int is available
58160         if unsigned int is, and vice versa.
58161         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58162         unsigned symbols, not on their signed counterparts.
58163         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58164         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58165         (UINT64_C, UINTMAX_C):
58166         Likewise.
58167         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58168         unsigned counterparts.
58169         (Have_long_long, Unsigned): New macros.
58170         (Int): Renamed from INT.
58171         (strtoimax): Use the new macros.
58172         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58173         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58174         * modules/inttypes (inttypes.h): Substitute
58175         HAVE_UNSIGNED_LONG_LONG_INT.
58176         * modules/stdint (stdint.h): Likewise.
58177         (Files): Add m4/ulonglong.m4.
58178
58179 2006-10-10  Bruno Haible  <bruno@clisp.org>
58180
58181         Fix a gcc -Wshadow warning.
58182         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58183         to 'bucket'.
58184         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58185         gl_linked_indexof_from_to): Likewise.
58186         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58187         Likewise.
58188         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58189         Likewise.
58190         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58191         Reported by Eric Blake.
58192
58193 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58194
58195         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58196         for NetBSD.  Problem reported by Bruno Haible.
58197
58198 2006-10-09  Jim Meyering  <jim@meyering.net>
58199
58200         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58201         Patch from Bruno Haible.
58202
58203 2006-10-09  Jim Meyering  <jim@meyering.net>
58204
58205         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58206         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58207         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58208
58209 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58210
58211         Don't include <config.h> twice; this doesn't work in some cases,
58212         e.g., when config.h has "#define intmax_t long long int" and
58213         we include <config.h>, <inttypes.h>, <config.h> in that order.
58214         Problem reported by Matthew Woehlke in:
58215         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58216         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58217         * lib/fts-cycle.c: Don't include config.h.
58218         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58219         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58220         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58221         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58222         inttypes.h.
58223         * lib/xstrtoumax.c: Likewise.
58224         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58225         __strtol and the like, so that this module is more like its siblings.
58226         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58227         Remove; no longer needed now that we assume gnulib inttypes.h.
58228
58229 2006-10-08  Bruno Haible  <bruno@clisp.org>
58230
58231         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58232         option.
58233
58234 2006-10-07  Jim Meyering  <jim@meyering.net>
58235
58236         * modules/inttypes (inttypes.h): Revert what seems to have been
58237         an inadvertent part of today's change: use "|", not "/" in the
58238         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58239
58240 2006-10-07  Bruno Haible  <bruno@clisp.org>
58241
58242         * modules/sublist: New file.
58243
58244 2006-10-07  Bruno Haible  <bruno@clisp.org>
58245
58246         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58247         * modules/argz (argz.h): Likewise.
58248         * modules/arpa_inet (arpa/inet.h): Likewise.
58249         * modules/byteswap (byteswap.h): Likewise.
58250         * modules/configmake (configmake.h): Likewise.
58251         * modules/fcntl (fcntl.h): Likewise.
58252         * modules/fnmatch (fnmatch.h): Likewise.
58253         * modules/getopt (getopt.h): Likewise.
58254         * modules/glob (glob.h): Likewise.
58255         * modules/inttypes (inttypes.h): Likewise.
58256         * modules/netinet_in (netinet/in.h): Likewise.
58257         * modules/poll (poll.h): Likewise.
58258         * modules/stdbool (stdbool.h): Likewise.
58259         * modules/stdint (stdint.h): Likewise.
58260         * modules/sys_select (sys/select.h): Likewise.
58261         * modules/sys_socket (sys/socket.h): Likewise.
58262         * modules/sys_stat (sys/stat.h): Likewise.
58263         * modules/sysexits (sysexits.h): Likewise.
58264         * modules/unistd (unistd.h): Likewise.
58265         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58266         Add a "DO NOT EDIT" comment to the generated file.
58267         (func_import): Likewise for gnulib-comp.m4.
58268
58269 2006-10-07  Bruno Haible  <bruno@clisp.org>
58270
58271         * lib/gl_sublist.h: New file.
58272         * lib/gl_sublist.c: New file.
58273
58274 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58275
58276         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58277         name (relative to the original working directory) and the file
58278         name component (relative to the temporary working directory).  All
58279         callers changed.
58280         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58281         * lib/mkdir-p.c (make_dir_parents): Likewise.
58282         * lib/mkdir-p.h (make_dir_parents): Likewise.
58283
58284 2006-10-06  Eric Blake  <ebb9@byu.net>
58285
58286         Define several macros for use by the clean-temp module.
58287         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58288         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58289         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58290
58291         * lib/clean-temp.h (close_stream_temp): New declaration.
58292         * lib/clean-temp.c (includes): Pull in headers according to what
58293         other modules are in use.
58294         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58295
58296 2006-10-06  Bruno Haible  <bruno@clisp.org>
58297
58298         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58299         instead of fopen, fwriteerror.
58300
58301 2006-10-06  Bruno Haible  <bruno@clisp.org>
58302
58303         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58304         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58305         int.
58306         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58307         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58308         Return an error indicator.
58309         Suggested by Eric Blake.
58310
58311 2006-10-06  Bruno Haible  <bruno@clisp.org>
58312
58313         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58314         Reported by Eric Blake.
58315
58316 2006-10-06  Bruno Haible  <bruno@clisp.org>
58317
58318         * modules/closeout (Description): Mention stderr too.
58319
58320 2006-10-06  Bruno Haible  <bruno@clisp.org>
58321         and Paul Eggert  <eggert@cs.ucla.edu>
58322
58323         * lib/closeout.c (close_stdout): Also close stderr.
58324         * lib/closeout.h: Update comment.
58325
58326 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58327
58328         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58329         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58330         * lib/dirchownmod.c: Include lchown.h.
58331         * lib/lchown.c: Don't include files that lchown.h now includes.
58332         Don't declare chown, since lchown.h now does that.
58333         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58334         (lchown): Define to rpl_chown if lchown is declared but
58335         does not exist.  Declare using a prototype if lchown is not
58336         declared.  Add a copyright notice.
58337         * lib/mkstemp.h: Include <unistd.h>.
58338         * lib/openat.c: Include lchown.h.
58339
58340         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58341         we now test for that separately.
58342         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58343         rather than O_NOFOLLOW, when testing whether it's possible to
58344         avoid a race condition reliably.
58345         * lib/savewd.c (savewd_chdir): Likewise.
58346
58347         Remove macros that are no longer needed now that stdint.h is
58348         reliable.
58349         * lib/fsusage.c (UINTMAX_MAX): Remove.
58350         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58351         * lib/utimecmp.c (SIZE_MAX): Remove.
58352
58353         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58354
58355         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58356         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58357         O_NOATIME works.
58358
58359 2006-10-05  Bruno Haible  <bruno@clisp.org>
58360
58361         * lib/gl_list.h (gl_sortedlist_search_from_to,
58362         gl_sortedlist_indexof_from_to): New declarations.
58363         (gl_list_implementation): New fields sortedlist_search_from_to,
58364         sortedlist_indexof_from_to.
58365         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58366         inline functions.
58367         * lib/gl_list.c (gl_sortedlist_search_from_to,
58368         gl_sortedlist_indexof_from_to): New functions.
58369         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58370         function.
58371         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58372         (gl_array_sortedlist_search_from_to): New function.
58373         (gl_array_list_implementation): Update.
58374         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58375         function.
58376         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58377         (gl_carray_sortedlist_search_from_to): New function.
58378         (gl_carray_list_implementation): Update.
58379         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58380         gl_linked_sortedlist_indexof_from_to): New functions.
58381         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58382         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58383         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58384         gl_tree_sortedlist_indexof_from_to): New functions.
58385         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58386         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58387         Update.
58388         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58389         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58390         Update.
58391
58392 2006-10-05  Bruno Haible  <bruno@clisp.org>
58393
58394         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58395         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58396         (struct gl_list_implementation): Add fields search_from_to,
58397         indexof_from_to. Remove fields search, indexof.
58398         (gl_list_search): Use the search_from_to method.
58399         (gl_list_search_from, gl_list_search_from_to): New functions.
58400         (gl_list_indexof): Use the indexof_from_to method.
58401         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58402         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58403         (gl_list_search_from, gl_list_search_from_to): New functions.
58404         (gl_list_indexof): Use the indexof_from_to method.
58405         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58406         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58407         gl_array_indexof. Add start_index, end_index arguments.
58408         (gl_array_search_from_to): Renamed from gl_array_search. Add
58409         start_index, end_index arguments.
58410         (gl_array_remove, gl_array_list_implementation): Update.
58411         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58412         gl_carray_indexof. Add start_index, end_index arguments.
58413         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58414         start_index, end_index arguments.
58415         (gl_carray_remove, gl_carray_list_implementation): Update.
58416         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58417         gl_linked_search. Add start_index, end_index arguments.
58418         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58419         start_index, end_index arguments.
58420         (gl_linked_remove): Update.
58421         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58422         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58423         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58424         field to 'size_t'.
58425         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58426         gl_tree_search. Add start_index, end_index arguments.
58427         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58428         start_index, end_index arguments.
58429         (gl_tree_remove): Update.
58430         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58431         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58432         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58433         function.
58434         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58435         gl_tree_search. Add start_index, end_index arguments.
58436         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58437         start_index, end_index arguments.
58438         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58439         Update.
58440         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58441
58442 2006-10-05  Bruno Haible  <bruno@clisp.org>
58443
58444         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58445
58446         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58447         fwriteerror_temp): New declarations.
58448         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58449         (descriptors): New variable.
58450         (cleanup): First, close the descriptors.
58451         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58452         fclose_temp, fwriteerror_temp): New functions.
58453
58454 2006-10-04  Jim Meyering  <jim@meyering.net>
58455
58456         * lib/fts.c (fts_open): Tiny comment change.
58457
58458 2006-10-04  Bruno Haible  <bruno@clisp.org>
58459
58460         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58461         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58462         gl_LOCK_BODY.
58463         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
58464         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
58465         gl_LOCK_EARLY_BODY.
58466         (gl_LOCK): Require gl_LOCK_BODY.
58467
58468 2006-10-04  Bruno Haible  <bruno@clisp.org>
58469
58470         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
58471         (gl_oset_search_atleast): New declaration.
58472         (struct gl_oset_implementation): Add field 'search_atleast'.
58473         (gl_oset_search_atleast): New inline function.
58474         * lib/gl_oset.c (gl_oset_search_atleast): New function.
58475         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
58476         (gl_array_oset_implementation): Update.
58477         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
58478         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
58479         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
58480
58481 2006-10-04  Bruno Haible  <bruno@clisp.org>
58482
58483         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
58484
58485 2006-10-03  Bruno Haible  <bruno@clisp.org>
58486
58487         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
58488         from gl_avltreehash_list_implementation.
58489
58490 2006-10-03  Bruno Haible  <bruno@clisp.org>
58491
58492         * lib/gl_oset.c (gl_oset_add): Fix return type.
58493
58494 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
58495
58496         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
58497
58498 2006-10-02  Eric Blake  <ebb9@byu.net>
58499
58500         * modules/strnlen (Depends-on): Add extensions.
58501
58502 2006-10-02  Eric Blake  <ebb9@byu.net>
58503
58504         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
58505         definition in 2.60+.
58506
58507 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
58508
58509         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
58510         checks.
58511
58512 2006-10-02  Bruno Haible  <bruno@clisp.org>
58513
58514         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
58515         to the AUTOMAKE_OPTIONS.
58516         Reported by Jim Meyering.
58517
58518 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58519
58520         Work around bug in Solaris 10 /proc file system:
58521         /proc/self/fd/NNN/.. isn't the parent directory of
58522         the directory whose file descriptor is NNN.  This needs to
58523         be worked around at run time, not compile time, since a
58524         program might be built on Solaris 8, where things work, and
58525         run on Solaris 10.
58526         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
58527         to use the following interface instead:
58528         (OPENAT_BUFFER_SIZE): New macro.
58529         (openat_proc_name): New function.
58530         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
58531         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
58532         Likewise.
58533         * lib/openat-proc.c: New file.
58534         * modules/openat (Files): Add lib/openat-proc.c.
58535         (Depends-on): Add same-inode, stdbool.
58536         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
58537
58538 2006-09-29  Bruno Haible  <bruno@clisp.org>
58539
58540         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
58541         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
58542         argument. Set stdout_closed before testing for ferror, not after.
58543         (fwriteerror, fwriteerror_no_ebadf): New functions.
58544
58545 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58546
58547         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
58548
58549 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
58550
58551         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
58552         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
58553
58554 2006-09-28  Jim Meyering  <jim@meyering.net>
58555
58556         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
58557         Include <unistd.h>.
58558
58559 2006-09-28  Bruno Haible  <bruno@clisp.org>
58560
58561         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
58562         * modules/linkedhash-list (Depends-on): Likewise.
58563         * modules/rbtreehash-list (Depends-on): Likewise.
58564
58565 2006-09-28  Bruno Haible  <bruno@clisp.org>
58566
58567         * lib/strndup.h: Simplify the redefinition of strndup.
58568         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
58569         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
58570
58571 2006-09-28  Bruno Haible  <bruno@clisp.org>
58572
58573         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
58574         * lib/gl_linkedhash_list.c: Likewise.
58575         * lib/gl_rbtreehash_list.c: Likewise.
58576
58577 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58578
58579         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
58580         getaddrinfo.
58581
58582         * lib/__fpending.h: Don't include <stdio_ext.h> unless
58583         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
58584         it causes <stdio_ext.h> to cause a compile-time error.
58585         Problem reported by Nelson H. F. Beebe.
58586         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
58587         of HAVE_DECL___PENDING.
58588
58589         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
58590         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
58591         declaration.
58592
58593 2006-09-27  Jim Meyering  <jim@meyering.net>
58594
58595         This file could end up with a definition for a function
58596         named __strndup, rather than rpl_strndup on a system with
58597         incomplete weak_alias support.
58598         * lib/strndup.c (strndup): Rename from __strndup.
58599         Remove #defines that used to map __strndup to strndup.
58600         Don't use K&R prototypes.
58601         Remove LIBC-related code, since this file is not sync'd with glibc.
58602         * lib/strndup.h: Revamp, accordingly.
58603         * m4/strndup.m4: Modernize.
58604
58605 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58606
58607         * modules/savewd (Depends-on): Add 'raise'.
58608         * lib/savewd.c: Include <signal.h>, for 'raise'.
58609
58610 2006-09-26  Jim Meyering  <jim@meyering.net>
58611
58612         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
58613         when we detect Darwin 8.7.0's acl_get_file bug.
58614         Rearrange to perform the new (below) run-test while $LIBS
58615         contains any acl-related library.  Set USE_ACL at the end.
58616         (gl_ACL_GET_FILE): New function.
58617
58618 2006-09-26  Eric Blake  <ebb9@byu.net>
58619
58620         * lib/verror.c: Include <config.h> unconditionally.
58621
58622 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
58623
58624         * modules/clock-time (Maintainer): Add self.
58625         * modules/getlogin_r (Depends-on): Add extensions.
58626
58627 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58628
58629         * modules/clock-time: New module.
58630         * modules/nanosleep (Depends-on): Add clock-time.
58631         * modules/gethrxtime (Depends-on): Likewise.
58632         * modules/gettime (Depends-on): Likewise.
58633         * modules/settime (Depends-on): Likewise.
58634
58635         * modules/fts-lgpl: Depend on openat.
58636         * modules/mkancesdirs: Depend on savewd.
58637         * modules/mkdir-p: Likewise.
58638
58639 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58640
58641         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58642
58643         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58644         `gl_have_arbitrary_file_name_length_limit' to
58645         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58646         actually works between configure runs.
58647
58648 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58649             Bruno Haible  <bruno@clisp.org>
58650
58651         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58652
58653 2006-09-25  Jim Meyering  <jim@meyering.net>
58654
58655         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58656         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58657
58658 2006-09-25  Eric Blake  <ebb9@byu.net>
58659
58660         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58661         exec's in 2006-09-18 patch when shuffling fds.
58662
58663 2006-09-25  Bruno Haible  <bruno@clisp.org>
58664
58665         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58666         Reported by Jim Meyering.
58667
58668 2006-09-24  Jim Meyering  <jim@meyering.net>
58669
58670         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58671         compare a pointer against a literal "0".  That caused failures with
58672         at least HP-UX's hpcc.
58673
58674 2006-09-22  Simon Josefsson  <jas@extundo.com>
58675
58676         * modules/gc-sha1:
58677         * modules/gc-md4:
58678         * modules/gc-hmac-sha1:
58679         * modules/gc-hmac-md5:
58680         * modules/gc-des:
58681         * modules/gc-arcfour: Distribute more files.
58682
58683 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58684
58685         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58686         (gl_linked_iterator_from_to): Initialize struct completely.
58687         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58688         (gl_tree_iterator_from_to): Likewise
58689         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58690         * lib/gl_array_list.c [lint] (gl_array_iterator)
58691         (gl_array_iterator_from_to): Likewise.
58692         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58693         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58694         (gl_carray_iterator_from_to): Likewise.
58695
58696         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58697         * lib/md4.c (md4_process_block): Remove unused variable.
58698         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58699         parentheses for clarity.
58700
58701 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58702
58703         * modules/bison-i18n (Depends-on): Add gettext.
58704
58705 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58706
58707         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58708         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58709         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58710         also add missing comma that caused broken test.
58711         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58712         stdlib.h, for `abort'.
58713         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58714         variables.
58715         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58716         include unistd.h if present, for `rmdir'.
58717         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58718         variables.
58719         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58720         in the process include standard headers for prototypes.
58721         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58722         gets declared on GNU/Linux.
58723         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58724         unistd.h, for `rmdir'.
58725         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58726
58727         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58728         always true.
58729         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58730
58731         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58732
58733 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58734
58735         * gnulib-tool (func_version): Create output all at once.  This
58736         may help avoid triggering unnecessary SIGPIPEs, and at any
58737         rate it doesn't hurt.
58738
58739 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58740             Bruno Haible  <bruno@clisp.org>
58741
58742         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
58743         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58744         * m4/signed.m4 (bh_C_SIGNED): Likewise.
58745
58746         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
58747         (gl_FUNC_VASPRINTF): Invoke it.
58748
58749 2006-09-22  Bruno Haible  <bruno@clisp.org>
58750
58751         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
58752         getloadavg.c as first argument.
58753
58754 2006-09-22  Bruno Haible  <bruno@clisp.org>
58755
58756         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
58757         at the beginning of the gl_INIT macro.
58758         * modules/getloadavg (configure.ac): Pass $gl_source_base to
58759         gl_GETLOADAVG.
58760
58761 2006-09-22  Bruno Haible  <bruno@clisp.org>
58762
58763         * gnulib-tool (func_create_megatestdir): Don't include the config-h
58764         module.
58765         Suggested by Ralf Wildenhues.
58766
58767 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58768
58769         Import this patch from libc:
58770
58771         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
58772
58773         * lib/regex_internal.c (re_string_reconstruct): Handle
58774         offset < pstr->valid_raw_len && pstr->offsets_needed case.
58775         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
58776         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
58777         re_string_context_at.
58778
58779         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
58780         now requires it.
58781         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
58782         gl_REGEX now does it for us.
58783         (gl_REGEX): Add test taken from
58784         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
58785
58786         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
58787         Check that large offsets work.  Modernize Autoconf usages.
58788         Prefer "yes" to mean a good thing rather than a bad.
58789         Don't put "#define mkstemp" in config.h, as this might interfere
58790         with standard system headers that "#define mkstemp mkstemp64".
58791
58792         * modules/mkstemp (Depends-on): Add extensions, so that
58793         mkstemp is visible on some platforms.
58794         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
58795         (Include): Change to "mkstemp.h" from <stdlib.h>.
58796         (Files): Add mkstemp.h.
58797
58798         * lib/mkstemp.h: New file, since some standard headers
58799         #define mkstemp.
58800         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
58801         Include "mkstemp.h".
58802         Make the _LIBC code resemble glibc original more,
58803         e.g., use K&R style.
58804         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
58805         (mkstemp): Remove, since mkstemp.h does this for us.
58806         * lib/stdlib--.h: Include mkstemp.h.
58807
58808         Import this patch from libc:
58809
58810         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58811
58812         * lib/tempname.c (__gen_tempname): Change attempts_min
58813         into a macro.  Use preprocessor to decide how to initialize
58814         attempts [Coverity CID 67].
58815
58816 2006-09-20  Bruno Haible  <bruno@clisp.org>
58817
58818         * lib/mkdtemp.c: Import from libc.
58819         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58820                 * sysdeps/posix/tempname.c (__gen_tempname): Change
58821                 attempts_min into a macro.  Use preprocessor to decide how to
58822                 initialize attempts [Coverity CID 67].
58823         2001-11-27  Paul Eggert  <eggert@twinsun.com>
58824                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
58825                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
58826
58827 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58828
58829         * gnulib-tool (func_exit): New function, to allow to pass the
58830         exit status portably through the trap.  Use everywhere.
58831         (--help, --version): Signal a write error.
58832         (trap): catch SIGPIPE, for write errors.
58833         Exit at the end of the trap, with the correct exit status.
58834
58835 2006-09-19  Karl Berry  <karl@gnu.org>
58836
58837         * doc/gnulib.texi: note about the license texinfo files.
58838
58839 2006-09-19  Eric Blake  <ebb9@byu.net>
58840
58841         * gnulib-tool: Avoid space-tab.
58842
58843 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58844
58845         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
58846         that prevented coreutils 6.1 from building.  Problem reported
58847         by Petter Reinholdtsen.
58848
58849 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58850
58851         * gnulib-tool (avoidlist): Fix typo that broke options like
58852         --avoid=lock that are used by coreutils bootstrap.
58853
58854 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
58855
58856         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
58857         more systematically.
58858
58859 2006-09-18  Jim Meyering  <jim@meyering.net>
58860
58861         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
58862
58863 2006-09-18  Bruno Haible  <bruno@clisp.org>
58864
58865         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
58866
58867 2006-09-18  Bruno Haible  <bruno@clisp.org>
58868
58869         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
58870         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
58871         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
58872         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
58873         * m4/gettext.m4: Require autoconf >= 2.52.
58874         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
58875         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
58876         of gl_cv_header_inttypes_h.
58877
58878 2006-09-18  Bruno Haible  <bruno@clisp.org>
58879
58880         * lib/javaversion.c: Include configmake.h.
58881
58882 2006-09-18  Bruno Haible  <bruno@clisp.org>
58883
58884         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
58885         avoid that the while loops be executed in a subshell.
58886
58887 2006-09-18  Bruno Haible  <bruno@clisp.org>
58888
58889         * MODULES.html.sh (func_module): Break long lines.
58890         Suggested by Bruce Korb <bkorb@gnu.org>.
58891
58892 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58893
58894         Speed up by a factor of 1.12.
58895         * gnulib-tool (nl): New variable.
58896         (func_import): Rewrite include directive extraction to only read each
58897         directive once.
58898
58899 2006-09-17  Bruno Haible  <bruno@clisp.org>
58900
58901         * modules/javaversion (Makefile.am): Remove DEFS setting.
58902         (Depends-on): Add configmake, for PKGDATADIR definition.
58903
58904 2006-09-17  Bruno Haible  <bruno@clisp.org>
58905
58906         * gnulib-tool (func_create_testdir): Rewrite all files at once.
58907
58908 2006-09-17  Bruno Haible  <bruno@clisp.org>
58909
58910         * gnulib-tool (func_append): New function, stolen from libtool.m4.
58911         (func_modules_transitive_closure, func_modules_add_dummy,
58912         func_modules_to_filelist, func_import, func_create_testdir,
58913         func_create_megatestdir, ...): Use it wherever possible.
58914         Suggested by Ralf Wildenhues.
58915
58916 2006-09-16  Karl Berry  <karl@gnu.org>
58917
58918         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
58919         to avoid sectioning errors.
58920         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
58921         [ifinfo]: blank line after @center-ed titles.
58922         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
58923         Spell FSF address consistently with others.
58924         (These changes approved by rms.)
58925
58926 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58927
58928         Speed up by a factor of 1.61.
58929         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
58930         already checked module names again.
58931
58932 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58933
58934         Speed up by a factor of 1.13.
58935         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
58936         for new_files, and the input to func_add_or_update.
58937
58938 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58939
58940         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
58941         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
58942
58943 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58944
58945         * modules/mkancesdirs (Depends-on): Add fcntl.
58946         * modules/savewd: New file.
58947         * MODULES.html.sh (File system functions): Add savewd.
58948
58949         * modules/configmake (Makefile.am): Add support for the
58950         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
58951
58952 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58953
58954         * m4/savewd.m4: New file.
58955
58956 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58957
58958         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
58959         (dirchownmod): New arg FD.  All callers changed.
58960         Use FD rather than opening the directory ourself, as opening is
58961         now the caller's responsibility.
58962         * lib/dirchownmod.h: Likewise.
58963         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
58964         hosts that require <sys/types.h> before <sys/stat.h>.  Include
58965         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
58966         (test_dir): Remove.
58967         (mkancesdirs): Return length of prefix of FILE that has already
58968         been made, or -2 if there is a child doing the work.  Redo
58969         algorithm so that it is O(N) rather than O(N**2).  Optimize away
58970         ".", and treat ".." specially since it might stray back into
58971         already-created areas.  Use a subprocess if necessary.  New arg
58972         WD; all users changed.  MAKE_DIR function should now return 1
58973         if it creates a directory that is not readable.  Return -2 if
58974         a child process is spun off.
58975         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
58976         Adjust signature to match code.
58977         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
58978         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
58979         all users changed.
58980         * lib/savewd.c, lib/savewd.h: New files.
58981
58982 2006-09-15  Jim Meyering  <jim@meyering.net>
58983
58984         * modules/rename-dest-slash: New module.
58985         * MODULES.html.sh (posix_compat): Add it here.
58986
58987         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58988
58989 2006-09-15  Jim Meyering  <jim@meyering.net>
58990
58991         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58992         file.
58993
58994         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58995
58996 2006-09-15  Jim Meyering  <jim@meyering.net>
58997
58998         * lib/rename-dest-slash.c (has_trailing_slash): Use
58999         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59000         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59001         test before testing whether SRC is a directory.
59002         Suggestions from Bruno Haible.
59003
59004         Avoid a warning about an unused variable.
59005         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59006         into the #ifdef block where it's used.
59007
59008         * lib/rename-dest-slash.c: New file.
59009
59010 2006-09-14  Bruno Haible  <bruno@clisp.org>
59011
59012         * lib/allocsa.c: Include <config.h> unconditionally.
59013         * lib/asnprintf.c: Likewise.
59014         * lib/asprintf.c: Likewise.
59015         * lib/c-strcasecmp.c: Likewise.
59016         * lib/c-strcasestr.c: Likewise.
59017         * lib/c-strncasecmp.c: Likewise.
59018         * lib/c-strstr.c: Likewise.
59019         * lib/classpath.c: Likewise.
59020         * lib/clean-temp.c: Likewise.
59021         * lib/concatpath.c: Likewise.
59022         * lib/copy-file.c: Likewise.
59023         * lib/csharpcomp.c: Likewise.
59024         * lib/csharpexec.c: Likewise.
59025         * lib/execute.c: Likewise.
59026         * lib/fatal-signal.c: Likewise.
59027         * lib/findprog.c: Likewise.
59028         * lib/fwriteerror.c: Likewise.
59029         * lib/gl_array_list.c: Likewise.
59030         * lib/gl_array_oset.c: Likewise.
59031         * lib/gl_avltree_list.c: Likewise.
59032         * lib/gl_avltree_oset.c: Likewise.
59033         * lib/gl_avltreehash_list.c: Likewise.
59034         * lib/gl_carray_list.c: Likewise.
59035         * lib/gl_linked_list.c: Likewise.
59036         * lib/gl_linkedhash_list.c: Likewise.
59037         * lib/gl_list.c: Likewise.
59038         * lib/gl_oset.c: Likewise.
59039         * lib/gl_rbtree_list.c: Likewise.
59040         * lib/gl_rbtree_oset.c: Likewise.
59041         * lib/gl_rbtreehash_list.c: Likewise.
59042         * lib/imaxabs.c: Likewise.
59043         * lib/imaxdiv.c: Likewise.
59044         * lib/javacomp.c: Likewise.
59045         * lib/javaexec.c: Likewise.
59046         * lib/javaversion.c: Likewise.
59047         * lib/linebreak.c: Likewise.
59048         * lib/localcharset.c: Likewise.
59049         * lib/lock.c: Likewise.
59050         * lib/mbchar.c: Likewise.
59051         * lib/mbswidth.c: Likewise.
59052         * lib/mkdtemp.c: Likewise.
59053         * lib/pipe.c: Likewise.
59054         * lib/printf-args.c: Likewise.
59055         * lib/printf-parse.c: Likewise.
59056         * lib/progname.c: Likewise.
59057         * lib/progreloc.c: Likewise.
59058         * lib/readlink.c: Likewise.
59059         * lib/sh-quote.c: Likewise.
59060         * lib/stpcpy.c: Likewise.
59061         * lib/stpncpy.c: Likewise.
59062         * lib/strcasecmp.c: Likewise.
59063         * lib/strcasestr.c: Likewise.
59064         * lib/strcspn.c: Likewise.
59065         * lib/striconv.c: Likewise.
59066         * lib/strncasecmp.c: Likewise.
59067         * lib/strnlen1.c: Likewise.
59068         * lib/strstr.c: Likewise.
59069         * lib/strtok_r.c: Likewise.
59070         * lib/tls.c: Likewise.
59071         * lib/tmpdir.c: Likewise.
59072         * lib/unicodeio.c: Likewise.
59073         * lib/unsetenv.c: Likewise.
59074         * lib/vasnprintf.c: Likewise.
59075         * lib/vasprintf.c: Likewise.
59076         * lib/wait-process.c: Likewise.
59077         * lib/xallocsa.c: Likewise.
59078         * lib/xsetenv.c: Likewise.
59079         * lib/xstriconv.c: Likewise.
59080
59081 2006-09-13  Simon Josefsson  <jas@extundo.com>
59082
59083         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59084         that internally, suggested by Ralf Wildenhues
59085         <Ralf.Wildenhues@gmx.de>.
59086
59087 2006-09-13  Simon Josefsson  <jas@extundo.com>
59088
59089         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59090         @LIBOBJS@.
59091         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59092
59093 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59094
59095         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59096         longer worry about uses that don't define HAVE_CONFIG_H.
59097         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59098         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59099         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59100         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59101         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59102         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59103         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59104         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59105         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59106         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59107         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59108         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59109         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59110         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59111         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59112         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59113         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59114         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59115         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59116         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59117         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59118         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59119         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59120         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59121         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59122         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59123         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59124         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59125         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59126         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59127         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59128         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59129         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59130         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59131         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59132         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59133         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59134         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59135         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59136         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59137         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59138         Likewise.
59139
59140 2006-09-13  Eric Blake  <ebb9@byu.net>
59141
59142         * lib/getopt.c: Fix typo in last commit.
59143
59144 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59145
59146         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59147         dgettext.
59148
59149 2006-09-12  Jim Meyering  <jim@meyering.net>
59150
59151         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59152         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59153         Reported by Nelson H. F. Beebe.
59154
59155 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59156
59157         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59158         program_invocation_name and program_invocation_short_name are
59159         initialized.
59160         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59161         and program_invocation_short_name to argp.h, so they are visible
59162         to user programs.
59163         * lib/argp.h: Likewise
59164
59165 2006-09-10  Bruno Haible  <bruno@clisp.org>
59166
59167         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59168         m4/inttypes_h.m4, m4/uintmax_t.m4.
59169
59170 2006-09-10  Bruno Haible  <bruno@clisp.org>
59171
59172         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59173         gl_AC_TYPE_UINTMAX_T.
59174
59175 2006-09-10  Bruno Haible  <bruno@clisp.org>
59176
59177         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59178
59179 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59180
59181         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59182         convention.  Text proposed by Bruno Haible.
59183         (struct argp_option): Document the use of N_() wrappers.
59184
59185         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59186         '\v', and translate the two parts separately, instead of feeding
59187         the whole string to gettext.  This allows to exclude
59188         '\v' from the strings visible to the translator by writing doc
59189         strings as N_("..") "\v" N_("..").
59190
59191 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59192
59193         * config/srclist.txt: Undo latest change; the bug was fixed.
59194
59195 2006-09-09  Bruno Haible  <bruno@clisp.org>
59196
59197         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59198         assignments if building a library without libtool.
59199         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59200         in func_emit_lib_Makefile_am.
59201         (func_import): When building a static library libfoo.a, arrange to
59202         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59203         (func_create_testdir): Likewise.
59204         * modules/gc (configure.ac, Makefile.am): If building statically,
59205         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59206         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59207         * modules/striconv (configure.ac, Makefile.am): Likewise.
59208         Based on a suggestion by Ralf Wildenhues.
59209
59210 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59211
59212         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59213         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59214         Also:
59215
59216         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59217         Add year_2050_test to catch glibc bug 2821
59218         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59219
59220         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59221         Prefer #ifdef to #if.
59222
59223         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59224         Return from 'main' instead of calling 'exit'.
59225
59226 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59227
59228         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59229         returned the maximum time_t value rather than (time_t) -1.
59230         Problem originally reported by William Bardwell
59231         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59232
59233         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59234         Moved to here ...
59235         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59236         ... from here.
59237
59238 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59239
59240         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59241         2821 is fixed.
59242
59243 2006-09-08  Jim Meyering  <jim@meyering.net>
59244
59245         Don't make generated files read-only.  That would bother too many
59246         people.  However, do retain the ability to work when targets are
59247         read-only: remove the destination and temporary files before writing
59248         them (when generated via sed or echo), or by using the -f option for
59249         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59250         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59251         * modules/byteswap, modules/configmake, modules/fcntl:
59252         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59253         * modules/localcharset, modules/netinet_in, modules/poll:
59254         * modules/stdbool, modules/stdint, modules/sys_select:
59255         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59256
59257 2006-09-08  Jim Meyering  <jim@meyering.net>
59258
59259         Avoid new build failure on FreeBSD 6.0.
59260         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59261         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59262         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59263
59264 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59265
59266         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59267
59268 2006-09-07  Jim Meyering  <jim@meyering.net>
59269
59270         Fix global typo in last change: use chmod u-w, not chmod u-x.
59271         Spotted by Paul Eggert and Bruce Korb.
59272         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59273         * modules/byteswap, modules/configmake, modules/fcntl:
59274         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59275         * modules/localcharset, modules/netinet_in, modules/poll:
59276         * modules/stdbool, modules/stdint, modules/sys_select:
59277         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59278
59279 2006-09-06  Jim Meyering  <jim@meyering.net>
59280
59281         Make generated files be read-only.
59282         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59283         Ensure that each generated file is now read-only.
59284         * modules/argz: Likewise.
59285         * modules/arpa_inet: Likewise.
59286         * modules/byteswap: Likewise.
59287         * modules/configmake: Likewise.
59288         * modules/fcntl: Likewise.
59289         * modules/fnmatch: Likewise.
59290         * modules/getopt: Likewise.
59291         * modules/glob: Likewise.
59292         * modules/inttypes: Likewise.
59293         * modules/netinet_in: Likewise.
59294         * modules/poll: Likewise.
59295         * modules/stdbool: Likewise.
59296         * modules/stdint: Likewise.
59297         * modules/sys_select: Likewise.
59298         * modules/sys_socket: Likewise.
59299         * modules/sys_stat: Likewise.
59300         * modules/sysexits: Likewise.
59301         * modules/localcharset: Same as above, but continue using temporary
59302         file named "t-$@" (why different?) rather than the "$@-t" used
59303         everywhere else.
59304
59305         * modules/sysexits (Makefile.am): Replace literal occurrences
59306         of "sysexit.h" more readable, and more consistent, "$@".
59307
59308 2006-09-06  Bruno Haible  <bruno@clisp.org>
59309
59310         * modules/striconv: New file.
59311         * modules/xstriconv: New file.
59312         * MODULES.html.sh (Internationalization functions): Add striconv,
59313         xstriconv.
59314
59315 2006-09-06  Bruno Haible  <bruno@clisp.org>
59316
59317         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59318         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59319         not using libtool correctly.
59320
59321 2006-09-06  Bruno Haible  <bruno@clisp.org>
59322
59323         * lib/striconv.h: New file.
59324         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59325         iconvstring.c.
59326         * lib/xstriconv.h: New file.
59327         * lib/xstriconv.c: New file.
59328
59329 2006-09-06  Bruno Haible  <bruno@clisp.org>
59330
59331         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59332         lib_..._LDFLAGS.
59333
59334 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59335
59336         * lib/argz_.h: Sync from Libtool.
59337
59338         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59339                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59340
59341         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59342
59343 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59344
59345         * modules/trim: New file.
59346
59347 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59348
59349         * lib/trim.h: New file.
59350         * lib/trim.c: New file.
59351
59352 2006-09-05  Bruno Haible  <bruno@clisp.org>
59353
59354         * MODULES.html.sh (String handling): Add trim.
59355
59356 2006-09-04  Karl Berry  <karl@gnu.org>
59357
59358         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59359         until next release.
59360
59361 2006-09-03  Bruno Haible  <bruno@clisp.org>
59362
59363         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59364         correctly.
59365
59366 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59367
59368         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59369         not gl_GETLOADAVG.  Omit unneeded semicolons.
59370         Problems reported by Ralf Wildenhues in
59371         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59372         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59373         at the end, which is the usual gnulib style.
59374
59375         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59376         of doing all the work ourselves.
59377         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59378         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59379
59380 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59381
59382         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59383         Problem reported by Ralf Wildenhues in
59384         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59385
59386         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59387         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59388
59389 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59390
59391         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59392         yesterday's patch by changing test -n to test -z.
59393
59394 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59395
59396         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59397         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59398         the former is now obsolescent.
59399
59400         * modules/chdir-long (Depends-on): Add fcntl.
59401
59402 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59403
59404         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59405         obsolescent, and programs should use gnulib instead.
59406         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59407         but with prefixes changed.
59408
59409 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59410
59411         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59412         or stdbool.h, because they might not exist while configuring.
59413
59414         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59415         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59416         does that for us.
59417         (O_DIRECTORY): Remove.
59418
59419 2006-08-31  Eric Blake  <ebb9@byu.net>
59420
59421         * gnulib-tool: Don't let emacs change spaces to TAB.
59422
59423 2006-08-31  Bruno Haible  <bruno@clisp.org>
59424
59425         * gnulib-tool: When calling func_import more than once, do it in a
59426         subshell.
59427         Reported by Eric Blake <ebb9@byu.net>.
59428
59429 2006-08-31  Bruno Haible  <bruno@clisp.org>
59430
59431         * gnulib-tool (nl): Remove variable.
59432         (sed_transform_lib_file): Use more robust test for config-h module.
59433         (func_import): Fix typo in 2006-08-25 patch.
59434
59435 2006-08-31  Bruno Haible  <bruno@clisp.org>
59436
59437         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59438         specified, augment Makefile.am variables instead of assigning them.
59439
59440 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59441
59442         Work around a bug in both the Linux and SunOS 64-bit kernels:
59443         nanosleep mishandles sleeps for longer than 2**31 seconds.
59444         Problem reported by Frank v Waveren in
59445         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59446         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59447         Check for nanosleep bug.
59448         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59449
59450 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59451
59452         Work around a bug in both the Linux and SunOS 64-bit kernels:
59453         nanosleep mishandles sleeps for longer than 2**31 seconds.
59454         Problem reported by Frank v Waveren in
59455         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59456         * lib/nanosleep.c (BILLION): New constant.
59457         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59458         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59459         implementation.
59460
59461 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59462
59463         * modules/nanosleep (Depends-on): Add gettime.
59464
59465 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59466         and Simon Josefsson  <jas@extundo.com>
59467         and Oskar Liljeblad  <oskar@osk.mine.nu>
59468
59469         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
59470         * gnulib-tool (func_import): New license type 'unmodifiable license
59471         text'.
59472         * modules/fdl: Use it.  Longer description.
59473         * module/gpl, module/lgpl: New files.
59474
59475 2006-08-30  Jim Meyering  <jim@meyering.net>
59476
59477         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
59478         shadowing the parameter.
59479
59480 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59481
59482         Sync from Libtool:
59483
59484         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59485
59486         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
59487         sharing with gnulib.  Report by Eric Blake.
59488
59489 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59490
59491         * modules/isapipe: New file.
59492         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
59493
59494 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59495
59496         * modules/configmake (Makefile.am): Add a comment, and omit
59497         the CONFIGMAKE_ prefix from generated macro names.  Suggested
59498         by Bruno Haible.
59499
59500 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59501
59502         * m4/isapipe.m4: New file.
59503
59504 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59505
59506         * lib/isapipe.c, lib/isapipe.h: New files.
59507
59508 2006-08-29  Jim Meyering  <jim@meyering.net>
59509
59510         * modules/configmake (Makefile.am): Make configmake.h depend on
59511         Makefile.  Otherwise, a stale configmake.h could hang around.
59512
59513 2006-08-29  Eric Blake  <ebb9@byu.net>
59514
59515         * lib/error.c (error_at_line, print_errno_message): Match libc, after
59516         resolution of upstream bug 3044.
59517
59518 2006-08-29  Bruno Haible  <bruno@clisp.org>
59519
59520         * modules/localcharset (Depends-on): Add configmake.
59521         (Makefile.am): Remove setting of LIBDIR through DEFS.
59522
59523 2006-08-29  Bruno Haible  <bruno@clisp.org>
59524
59525         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
59526         defined.
59527
59528 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59529
59530         * modules/fcntl: New file.
59531         * modules/chdir-safer (Depends-on): Add fcntl.
59532         * modules/fts: Likewise.
59533         * modules/mkdir-p: Likewise.
59534
59535         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
59536         This undoes the most recent change, since we're now addressing the
59537         problem in a different way.
59538
59539         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
59540         into output, since the output might be called Makefile.am even
59541         if $makefile_name is something different.
59542         (func_import): Use $makefile_am rather than
59543         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
59544         empty.
59545
59546         * modules/inttypes (Files): Add m4/inttypes-h.m4.
59547
59548 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59549
59550         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
59551         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
59552         recent change to stdint.m4, since we're now addressing the problem in a
59553         different way.
59554
59555 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59556
59557         * m4/fcntl_h.m4: New file.
59558
59559 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59560
59561         * lib/fcntl_.h: New file.
59562         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
59563         the fcntl module.
59564         * lib/dirchownmod.c: Likewise.
59565         * lib/fts.c: Likewise.
59566
59567         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
59568         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
59569         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
59570         just before including <inttypes.h>, to avoid circular inclusion.
59571
59572 2006-08-28  Jim Meyering  <jim@meyering.net>
59573
59574         * doc/visibility.texi: Actually read and correct the grammar of the
59575         sentence affected by yesterday's change.
59576
59577 2006-08-28  Eric Blake  <ebb9@byu.net>
59578
59579         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
59580         needs wrapper.
59581
59582 2006-08-28  Eric Blake  <ebb9@byu.net>
59583
59584         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
59585
59586 2006-08-28  Eric Blake  <ebb9@byu.net>
59587
59588         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
59589
59590 2006-08-28  Bruno Haible  <bruno@clisp.org>
59591
59592         * modules/c-strstr: New file, from GNU gettext.
59593         * MODULES.html.sh (String handling): Add c-strstr.
59594
59595 2006-08-28  Bruno Haible  <bruno@clisp.org>
59596
59597         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
59598         macros.
59599         Reported by Eric Blake.
59600
59601 2006-08-28  Bruno Haible  <bruno@clisp.org>
59602
59603         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
59604         (VASNPRINTF): Return a string of length > INT_MAX without failing.
59605         * lib/vasprintf.c: Include errno.h, limits.h.
59606         (EOVERFLOW): New fallback definition.
59607         (vasprintf): Test here whether the string length is > INT_MAX.
59608         * lib/vsnprintf.c: Include errno.h, limits.h.
59609         (EOVERFLOW): New fallback definition.
59610         (vsnprintf): Fix bug when generated string was too long for the buffer.
59611         Test here whether the string length is > INT_MAX.
59612
59613 2006-08-28  Bruno Haible  <bruno@clisp.org>
59614
59615         * lib/inttypes_.h (SCNX*): Remove definitions.
59616         Reported by Eric Blake.
59617
59618 2006-08-28  Bruno Haible  <bruno@clisp.org>
59619
59620         * lib/c-strstr.h: New file, from GNU gettext.
59621         * lib/c-strstr.c: New file, from GNU gettext.
59622
59623 2006-08-28  Bruno Haible  <bruno@clisp.org>
59624
59625         * gnulib-tool: Reorder some statements.
59626
59627 2006-08-28  Bruno Haible  <bruno@clisp.org>
59628
59629         * gnulib-tool: New option --makefile-name.
59630         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
59631         $makefile_name.
59632         (func_import): Write $makefile_name to the cache file, and read it from
59633         there unless explicitly specified. Use $makefile_name as file name
59634         instead of Makefile.am. Adjust the recommendations accordingly.
59635
59636 2006-08-28  Bruno Haible  <bruno@clisp.org>
59637
59638         * gnulib-tool (func_verify_module): Check against misapplying patch.
59639
59640 2006-08-28  Bruno Haible  <bruno@clisp.org>
59641
59642         * gnulib-tool (func_relativize, func_relconcat): New functions.
59643         Give an error if --local-dir is given with --update.
59644         Remove trailing slashes from $local_gnulib_dir.
59645         (func_import): Store the relativized $local_gnulib_dir in
59646         gnulib-cache.m4, and read it from there if not specified explicitly.
59647
59648 2006-08-28  Bruno Haible  <bruno@clisp.org>
59649
59650         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59651         is the current directory. Respect also $local_gnulib_dir.
59652
59653 2006-08-28  Bruno Haible  <bruno@clisp.org>
59654             Simon Josefsson  <jas@extundo.com>
59655
59656         BeOS portability.
59657         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59658
59659 2006-08-27  Jim Meyering  <jim@meyering.net>
59660
59661         * doc/visibility.texi: Remove duplicate word: "pointer".
59662
59663 2006-08-26  Bruno Haible  <bruno@clisp.org>
59664
59665         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59666         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59667         (Makefile.am): Create inttypes.h from inttypes_.h.
59668         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59669
59670         * modules/imaxabs: New file.
59671
59672         * modules/imaxdiv: New file.
59673
59674 2006-08-26  Bruno Haible  <bruno@clisp.org>
59675
59676         * m4/inttypes.m4: New file.
59677         * m4/_inttypes_h.m4: Remove file.
59678         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59679         PRI_MACROS_BROKEN.
59680         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59681
59682         * m4/imaxabs.m4: New file.
59683
59684         * m4/imaxdiv.m4: New file.
59685
59686 2006-08-26  Bruno Haible  <bruno@clisp.org>
59687
59688         * lib/inttypes_.h: New file.
59689         * lib/inttypes.h: Remove file.
59690         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59691
59692         * lib/imaxabs.c: New file.
59693
59694         * lib/imaxdiv.c: New file.
59695
59696 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59697
59698         New config-h module, so that "make" output needn't be cluttered
59699         by -DHAVE_CONFIG_H.
59700         * MODULES.html.sh (Support for building libraries and executables):
59701         Add config-h.
59702         * modules/config-h: New file.
59703         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59704         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59705         the config-h module is used.
59706
59707         New configmake module, so that "make" output needn't be cluttered
59708         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59709         * MODULES.html.sh (Support for building libraries and executables):
59710         Add configmake.
59711         * modules/configmake: New file.
59712
59713 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59714
59715         * m4/config-h.m4: New file.
59716
59717 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59718
59719         * config/srclist.txt: Add elisp-comp.
59720
59721 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59722
59723         * MODULES.html.sh (Support for building libraries and executables):
59724         Add elisp-comp.
59725         * build-aux/elisp-comp: New file.
59726         * modules/elisp-comp: New file.
59727
59728 2006-08-24  Bruno Haible  <bruno@clisp.org>
59729
59730         * gnulib-tool (func_create_testdir): Use non-default values of
59731         sourcebase and m4base.
59732
59733 2006-08-24  Bruno Haible  <bruno@clisp.org>
59734
59735         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
59736         HTML structure.
59737
59738 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59739
59740         * modules/openat (Depends-on): Add lchown.
59741
59742 2006-08-23  Bruno Haible  <bruno@clisp.org>
59743
59744         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
59745         of gl_LOCK_EARLY instead of gl_LOCK.
59746
59747 2006-08-23  Bruno Haible  <bruno@clisp.org>
59748
59749         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
59750         on OSF/1 to no.
59751         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
59752
59753 2006-08-23  Bruno Haible  <bruno@clisp.org>
59754
59755         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
59756         as unusable.
59757
59758         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
59759         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
59760         (gl_LOCK): New macro.
59761
59762 2006-08-22  Simon Josefsson  <jas@extundo.com>
59763
59764         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
59765         to md5 module.
59766
59767 2006-08-22  Simon Josefsson  <jas@extundo.com>
59768
59769         * MODULES.html.sh: Add "Support for maintaining and release
59770         projects".
59771
59772         * build-aux/gnupload: New file, from coreutils.
59773
59774 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59775
59776         Avoid the need for AC_LIBSOURCES in m4 macros.
59777         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
59778         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
59779         * modules/check-version (EXTRA_DIST): Add check-version.h.
59780         * modules/crc (EXTRA_DIST): Add crc.h.
59781         * modules/des (EXTRA_DIST): Add des.h.
59782         * modules/gc (EXTRA_DIST): Add gc.h.
59783         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
59784         * modules/getline (EXTRA_DIST): Add getline.h.
59785         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
59786         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
59787         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
59788         * modules/md2 (EXTRA_DIST): Add md2.h.
59789         * modules/md4 (EXTRA_DIST): Add md4.h.
59790         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
59791         * modules/read-file (EXTRA_DIST): Add read-file.h.
59792         * modules/readline (EXTRA_DIST): Add readline.h.
59793         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
59794         rijndael-api-fst.h.
59795
59796 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59797
59798         * m4/rijndael.m4 (gl_ARCFOUR):
59799         * m4/arctwo.m4 (gl_ARCTWO):
59800         * m4/check-version.m4 (gl_CHECK_VERSION):
59801         * m4/crc.m4 (gl_CRC):
59802         * m4/des.m4 (gl_DES):
59803         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
59804         * m4/gc.m4 (gl_GC):
59805         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
59806         * m4/getline.m4 (gl_FUNC_GETLINE):
59807         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
59808         * m4/hmac-md5.m4 (gl_HMAC_MD5):
59809         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
59810         * m4/md2.m4 (gl_MD2):
59811         * m4/md4.m4 (gl_MD4):
59812         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
59813         * m4/read-file.m4 (gl_FUNC_READ_FILE):
59814         * m4/readline.m4 (gl_FUNC_READLINE):
59815         * m4/rijndael.m4 (gl_RIJNDAEL):
59816         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59817         to get the necessary .h files and whatnot.
59818
59819 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59820
59821         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
59822         gnulib rather than the other way around.
59823         * config/srclistvars.sh (COREUTILS): Remove.
59824
59825 2006-08-22  Jim Meyering  <jim@meyering.net>
59826
59827         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
59828
59829         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
59830
59831 2006-08-22  Eric Blake  <ebb9@byu.net>
59832
59833         * modules/regexprops-generic: New file.
59834         * MODULES.html.sh (Support for building documentation): List it.
59835
59836 2006-08-22  Eric Blake  <ebb9@byu.net>
59837
59838         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
59839         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
59840         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
59841         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
59842
59843 2006-08-22  Bruno Haible  <bruno@clisp.org>
59844
59845         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
59846         and lib_LTLIBRARIES like the other lib_* variables.
59847
59848 2006-08-22  Bruno Haible  <bruno@clisp.org>
59849
59850         * build-aux/x-to-1.in: New file, from GNU gettext.
59851
59852 2006-08-22  Bruno Haible  <bruno@clisp.org>
59853
59854         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
59855         <utmpx.h> exists.
59856
59857 2006-08-22  Bruno Haible  <bruno@clisp.org>
59858
59859         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
59860         <utmpx.h> exists.
59861
59862 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59863
59864         BeOS portability.
59865         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
59866         exist.
59867         Problem reported by Bruno Haible.
59868
59869 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59870
59871         Avoid the need for AC_LIBSOURCES in m4 macros.
59872         * modules/acl (EXTRA_DIST): Add acl.h.
59873         * modules/argmatch (Files): Add m4/argmatch.m4.
59874         (configure.ac): Add gl_ARGMATCH.
59875         (EXTRA_DIST): Renamed from lib_SOURCES, for
59876         consistency with the other modules.  Remove argmatch.c.
59877         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
59878         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
59879         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
59880         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
59881         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
59882         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
59883         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
59884         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
59885         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
59886         * modules/closeout (EXTRA_DIST): Add closeout.h.
59887         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
59888         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
59889         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
59890         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
59891         dirname.h; remove basename.c and stripslash.c.
59892         * modules/exclude (EXTRA_DIST): Add exclude.h.
59893         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
59894         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
59895         * modules/file-type (EXTRA_DIST): Add file-type.h.
59896         * modules/filemode (EXTRA_DIST): Add filemode.h.
59897         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
59898         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59899         * modules/fpending (EXTRA_DIST): Add __fpending.h.
59900         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
59901         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
59902         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
59903         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
59904         * modules/getdate (EXTRA_DIST): Add getdate.c.
59905         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
59906         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
59907         * modules/getpass (EXTRA_DIST): Add getpass.h.
59908         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
59909         * modules/group-member (EXTRA_DIST): Add group-member.h.
59910         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
59911         * modules/hash (EXTRA_DIST): Add hash.h.
59912         * modules/human (EXTRA_DIST): Add human.h.
59913         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
59914         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
59915         * modules/lchown (EXTRA_DIST): Add lchown.h.
59916         * modules/long-options (EXTRA_DIST): Add long-options.h.
59917         * modules/lstat (EXTRA_DIST): Add lstat.h.
59918         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
59919         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
59920         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
59921         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
59922         * modules/memxor (EXTRA_DIST): Add memxor.h.
59923         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
59924         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
59925         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
59926         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
59927         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
59928         * modules/physmem (EXTRA_DIST): Add physmem.h.
59929         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
59930         * modules/posixver (EXTRA_DIST): Add posixver.h.
59931         * modules/quote (EXTRA_DIST): Add quote.h.
59932         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
59933         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
59934         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
59935         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
59936         regex_internal.h regexec.c.
59937         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
59938         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
59939         * modules/same (EXTRA_DIST): Add same.h.
59940         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
59941         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
59942         * modules/savedir (EXTRA_DIST): Add savedir.h.
59943         * modules/sha1 (EXTRA_DIST): Add sha1.h.
59944         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
59945         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
59946         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
59947         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
59948         * modules/strdup (EXTRA_DIST): Add strdup.h.
59949         * modules/strftime (EXTRA_DIST): Add strftime.h.
59950         * modules/strndup (EXTRA_DIST): Add strndup.h.
59951         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
59952         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
59953         * modules/time_r (EXTRA_DIST): Add time_r.h.
59954         * modules/timespec (EXTRA_DIST): Add timespec.h.
59955         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59956         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
59957         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
59958         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
59959         * modules/userspec (EXTRA_DIST): Add userspec.h.
59960         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
59961         * modules/utimens (EXTRA_DIST): Add utimens.h.
59962         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
59963         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
59964         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
59965         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
59966         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
59967         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
59968         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
59969         * modules/yesno (EXTRA_DIST): Add yesno.h.
59970
59971 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59972
59973         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
59974
59975         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
59976         * m4/dev-ino.m4, same-inode.m4: Remove.
59977
59978         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
59979         * m4/acl.m4 (AC_FUNC_ACL):
59980         * m4/backupfile.m4 (gl_BACKUPFILE):
59981         * m4/c-strtod.m4 (gl_C99_STRTOLD):
59982         * m4/canon-host.m4 (gl_CANON_HOST):
59983         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59984         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59985         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59986         * m4/cloexec.m4 (gl_CLOEXEC):
59987         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59988         * m4/closeout.m4 (gl_CLOSEOUT):
59989         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59990         * m4/dirname.m4 (gl_DIRNAME):
59991         * m4/exclude.m4 (gl_EXCLUDE):
59992         * m4/exitfail.m4 (gl_EXITFAIL):
59993         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59994         * m4/file-type.m4 (gl_FILE_TYPE):
59995         * m4/filemode.m4 (gl_FILEMODE):
59996         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59997         * m4/fpending.m4 (gl_FUNC_FPENDING):
59998         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59999         * m4/fts.m4 (gl_FUNC_FTS):
60000         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60001         * m4/getdate.m4 (gl_GETDATE):
60002         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60003         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60004         * m4/getpass.m4 (gl_FUNC_GETPASS):
60005         * m4/gettime.m4 (gl_GETTIME):
60006         * m4/getugroups.m4 (gl_GETUGROUPS):
60007         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60008         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60009         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60010         * m4/hash.m4 (gl_HASH):
60011         * m4/idcache.m4 (gl_IDCACHE):
60012         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60013         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60014         * m4/long-options.m4 (gl_LONG_OPTIONS):
60015         * m4/lstat.m4 (gl_FUNC_LSTAT):
60016         * m4/md5.m4 (gl_MD5):
60017         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60018         * m4/memcoll.m4 (gl_MEMCOLL):
60019         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60020         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60021         * m4/memxor.m4 (gl_MEMXOR):
60022         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60023         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60024         * m4/modechange.m4 (gl_MODECHANGE):
60025         * m4/mountlist.m4 (gl_MOUNTLIST):
60026         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60027         * m4/openat.m4 (gl_FUNC_OPENAT):
60028         * m4/pathmax.m4 (gl_PATHMAX):
60029         * m4/physmem.m4 (gl_PHYSMEM):
60030         * m4/posixtm.m4 (gl_POSIXTM):
60031         * m4/posixver.m4 (gl_POSIXVER):
60032         * m4/quote.m4 (gl_QUOTE):
60033         * m4/quotearg.m4 (gl_QUOTEARG):
60034         * m4/readtokens.m4 (gl_READTOKENS):
60035         * m4/readutmp.m4 (gl_READUTMP):
60036         * m4/regex.m4 (gl_REGEX):
60037         * m4/safe-read.m4 (gl_SAFE_READ):
60038         * m4/safe-write.m4 (gl_SAFE_WRITE):
60039         * m4/same.m4 (gl_SAME):
60040         * m4/save-cwd.m4 (gl_SAVE_CWD):
60041         * m4/savedir.m4 (gl_SAVEDIR):
60042         * m4/settime.m4 (gl_SETTIME):
60043         * m4/sha1.m4 (gl_SHA1):
60044         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60045         * m4/stat-macros.m4 (gl_STAT_MACROS):
60046         * m4/stat-time.m4 (gl_STAT_TIME):
60047         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60048         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60049         * m4/strdup.m4 (gl_FUNC_STRDUP):
60050         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60051         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60052         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60053         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60054         * m4/time_r.m4 (gl_TIME_R):
60055         * m4/timespec.m4 (gl_TIMESPEC):
60056         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60057         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60058         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60059         * m4/userspec.m4 (gl_USERSPEC):
60060         * m4/utimecmp.m4 (gl_UTIMECMP):
60061         * m4/utimens.m4 (gl_UTIMENS):
60062         * m4/xalloc.m4 (gl_XALLOC):
60063         * m4/xgetcwd.m4 (gl_XGETCWD):
60064         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60065         * m4/xreadlink.m4 (gl_XREADLINK):
60066         * m4/xstrtod.m4 (gl_XSTRTOD):
60067         * m4/yesno.m4 (gl_YESNO):
60068         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60069         to get the necessary .h files and whatnot.
60070
60071 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60072             Bruno Haible  <bruno@clisp.org>
60073
60074         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60075         /bin/sh understanding of '!' conditional negation.
60076
60077 2006-08-21  Jim Meyering  <jim@meyering.net>
60078
60079         * modules/openat (Depends-on): Really alphabetize.
60080
60081         * modules/acl (Depends-on): Add error and quote.
60082
60083         * check-module (find_included_lib_files): Add at-func.c to the
60084         ok-to-include-more-than-once white list.
60085
60086         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60087
60088 2006-08-21  Bruno Haible  <bruno@clisp.org>
60089
60090         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60091         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60092         Reported by Martin Lambers <marlam@marlam.de>.
60093
60094 2006-08-21  Bruno Haible  <bruno@clisp.org>
60095
60096         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60097         specify an installation location, don't emit a noinst_LIBRARIES or
60098         noinst_LTLIBRARIES assignment.
60099
60100 2006-08-21  Bruno Haible  <bruno@clisp.org>
60101
60102         BeOS portability.
60103         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60104         BeOS has mbrtowc() but no <wctype.h>.
60105
60106 2006-08-21  Bruno Haible  <bruno@clisp.org>
60107
60108         BeOS portability.
60109         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60110         exist.
60111
60112 2006-08-21  Bruno Haible  <bruno@clisp.org>
60113
60114         BeOS portability.
60115         * lib/mbchar.h: Include <wctype.h> only if it exists.
60116
60117 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60118
60119         Remove files that are no longer needed by their respective modules.
60120         * m4/obstack.m4: Remove.
60121         * m4/strerror_r.m4: Remove.
60122         * m4/uint32_t.m4: Remove.
60123         * m4/uintptr_t.m4: Remove.
60124         * m4/ullong_max.m4: Remove.
60125         * m4/xstrtoimax.m4: Remove.
60126         * m4/xstrtoumax.m4: Remove.
60127
60128         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60129         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60130         dependencies now capture this.
60131
60132         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60133         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60134         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60135         * m4/human.m4 (gl_HUMAN): Likewise.
60136         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60137         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60138
60139         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60140
60141         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60142         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60143         stdint.
60144         * m4/human.m4 (gl_HUMAN): Likewise.
60145         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60146         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60147         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60148         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60149         * m4/xstrtol (gl_XSTRTOL): Likewise.
60150
60151         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60152         AC_TYPE_LONG_LONG_INT.
60153         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60154         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60155         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60156         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60157
60158         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60159         on stdbool.
60160
60161         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60162         (gl_PREREQ_XSTRTOUL): Remove.
60163
60164         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60165
60166         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60167         mode.
60168
60169 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60170
60171         Add and change modules to make it easier for coreutils to use
60172         gnulib-tool.
60173         * modules/backupfile (Files): Remove m4/d-ino.m4.
60174         (Depends-on): Add d-ino.
60175         * modules/cycle-check (Depends-on): Add stdint.
60176         (lib_SOURCES): Add cycle-check.h.
60177         * modules/d-ino: New module.
60178         * modules/d-type: New module.
60179         * modules/error (Files): Remove m4/strerror_r.m4.
60180         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60181         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60182         m4/inttypes_h.m4, m4/uintmax_t.m4.
60183         (Depends-on): Add stdint.
60184         (lib_SOURCES): Add fsusage.h.
60185         * modules/getcwd (Files): Remove d-ino.m4.
60186         (Depends-on): Add d-ino.
60187         * modules/getndelim2 (Depends-on): Add stdint.
60188         * modules/glob (Files): Remove m4/d-type.m4.
60189         (Depends-on): Add d-type.
60190         * modules/host-os: New module.
60191         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60192         m4/inttypes_h.m4, m4/uintmax_t.m4.
60193         * Depends-on: Add stdint.
60194         (lib_SOURCES): Add human.h.
60195         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60196         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60197         m4/uintmax_t.m4, m4/ulonglong.m4.
60198         (Depends-on): Add stdint.
60199         (EXTRA_DIST): Add inttostr.h.
60200         * modules/lchmod: New module.
60201         * modules/link-follow: New module.
60202         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60203         (Depends-on): Add lchmod.
60204         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60205         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60206         (Depends-on): Add stdint.
60207         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60208         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60209         (Depends-on): Add stdint.
60210         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60211         * modules/perl: New module.
60212         * modules/regex (Depends-on): Add stdint.
60213         * modules/rmdir-errno: New module.
60214         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60215         m4/intmax_t.m4.
60216         (Depends-on): Add stdint.
60217         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60218         m4/uintmax_t.m4.
60219         (Depends-on): Add stdint.
60220         * modules/unlink-busy: New module.
60221         * modules/utimecmp (Depends-on): Add stdint.
60222         * modules/uptime: New module.
60223         * modules/winsz-ioctl: New module.
60224         * modules/winsz-termios: New module.
60225         * modules/xnanosleep (Depends-on): Add nanosleep.
60226         * modules/ullong_max: Remove.
60227         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60228         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60229         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60230         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60231         (Depends-on): Add inttypes.
60232         (lib_SOURCES): Add xstrtol.h.
60233         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60234         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60235         * MODULES.html.sh: Move 'assert' into the assert section.
60236         Move 'dummy' into the linking section.
60237         Remove ullong_max.
60238         Add section for compatibility checks for POSIX:2001 functions,
60239         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60240         winsz-ioctl, and winsz-termios into it.
60241         Add lchmod.
60242         Add top-level Misc section and put host-os, perl, and uptime
60243         into it.
60244
60245 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60246
60247         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60248         now assume the stdint module.  Do not include inttypes.h.
60249         * lib/fsusage.h: Likewise.
60250         * lib/getndelim2.c: Likewise.
60251         * lib/human.h: Likewise.
60252         * lib/inttostr.h: Likewise.
60253         * lib/obstack.c: Likewise.
60254         * lib/regex_internal.h: Likewise.
60255         * lib/tempname.c: Likewise.
60256         * lib/utimecmp.c: Likewise.
60257         * lib/xstrtol.h: Likewise.
60258
60259         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60260
60261         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60262         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60263         * lib/xtime.h: Likewise.
60264
60265 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60266
60267         * modules/openat (Files): Add lib/fchmodat.c.
60268         Fixes problem reported by Jay Youngman.
60269
60270 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60271
60272         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60273         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60274
60275 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60276             Bruno Haible  <bruno@clisp.org>
60277
60278         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60279         and is a script that invokes bison. Tighten the code. Add comments.
60280
60281 2006-08-18  Jim Meyering  <jim@meyering.net>
60282
60283         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60284         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60285         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60286         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60287
60288 2006-08-18  Bruno Haible  <bruno@clisp.org>
60289
60290         * modules/bison-i18n: New file.
60291         * MODULES.html.sh (Internationalization functions): Add it.
60292
60293 2006-08-18  Bruno Haible  <bruno@clisp.org>
60294
60295         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60296         sys/statvfs.h. When getmntinfo was found, check its declaration and
60297         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60298
60299 2006-08-18  Bruno Haible  <bruno@clisp.org>
60300
60301         * m4/bison-i18n.m4: New file, from bison.
60302
60303 2006-08-18  Bruno Haible  <bruno@clisp.org>
60304
60305         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60306         (ME_DUMMY): Treat "kernfs" as a dummy.
60307         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60308
60309 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60310
60311         Update from coreutils.
60312
60313         2006-08-15  Jim Meyering  <jim@meyering.net>
60314
60315         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60316
60317         2006-01-17  Jim Meyering  <jim@meyering.net>
60318
60319         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60320
60321         2006-01-11  Jim Meyering  <jim@meyering.net>
60322
60323         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60324         Check for the lchmod function.
60325
60326 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60327
60328         Update from coreutils.
60329
60330         * lib/__fpending.h: Add copyright notice.
60331         * lib/fprintftime.h: Likewise.
60332         * lib/savedir.c: Use (C) in copyright notice.
60333         * lib/savedir.h: Likewise.
60334
60335         2006-08-15  Jim Meyering  <jim@meyering.net>
60336
60337         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60338         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60339         in support of the EXPECTED_ERRNO macro.
60340         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60341         definitions.  Instead, define the appropriate symbols and include
60342         "at-func.c".
60343         * lib/mkdirat.c (mkdirat): Likewise.
60344         * lib/fchmodat.c (fchmodat): Likewise.
60345         (ENOSYS): Remove definition.
60346         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60347         it.  Don't include "unistd--.h" -- it wasn't ever used.
60348
60349         2006-01-17  Jim Meyering  <jim@meyering.net>
60350
60351         Rewrite fts.c not to change the current working directory,
60352         by using openat, fstatat, fdopendir, etc..
60353
60354         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60355         (HAVE_OPENAT_SUPPORT): Define.
60356         [_LIBC] (fchdir): Don't undef or define; no longer used.
60357         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60358         Now, this `function' always succeeds, and consumes its file descriptor
60359         parameter -- so callers must not close such FDs.  Update callers.
60360         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60361         (diropen): Add parameter, SP.  Adjust all callers.
60362         Implement using diropen_fd, rather than open.
60363         (fts_open): Initialize new member, fts_cwd_fd.
60364         Remove fts_rft-setting code.
60365         (fts_close): Close fts_cwd_fd, if necessary.
60366         (__opendir2): Define in terms of opendir or opendirat,
60367         depending on whether the FST_NOCHDIR flag is set.
60368         (fts_build): Since fts_safe_changedir consumes its FD, and since
60369         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60370         and close the dup'd file descriptor upon failure.
60371         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60372         (fts_safe_changedir): Tweak semantics to reflect that this function
60373         now calls cwd_advance_fd and hence consumes its FD argument.
60374         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60375         [struct FTS] (fts_rft): Remove now-unused member.
60376         [struct FTS] (fts_cycle.state): Improve comment.
60377
60378         * lib/openat.c (openat_needs_fchdir): New function.
60379         * lib/openat.h (openat_needs_fchdir): Declare it.
60380
60381 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60382
60383         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60384         Problem and fix reported by Pádraig Brady in
60385         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60386
60387 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60388
60389         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60390
60391 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60392
60393         * lib/memcoll.c (memcoll): Optimize for the common case where the
60394         arguments are bytewise equal.
60395
60396 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60397
60398         * doc/regexprops-generic.texi: Add a copyright notice.
60399
60400 2006-08-15  Bruno Haible  <bruno@clisp.org>
60401
60402         * modules/tmpdir (License): Change to LGPL.
60403
60404 2006-08-15  Bruno Haible  <bruno@clisp.org>
60405
60406         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60407         module.
60408
60409 2006-08-14  Simon Josefsson  <jas@extundo.com>
60410
60411         * config/srclist.txt: Add gnupload.
60412
60413 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60414
60415         Change copyright notice from LGPL 2 to GPL 2, since that's the
60416         standard form used in the gnulib repository.
60417         * tests/test-lock.c: Likewise.
60418         * tests/test-stdint.c: Likewise.
60419         * tests/test-tls.c: Likewise.
60420
60421         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60422         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60423         Add copyright notice.
60424
60425         * check-module: Add copyright notice.  Output a copyright
60426         notice if "--version" is specified.
60427         * modules/COPYING: New file.
60428         * tests/test-getaddrinfo.c: Add copyright notice.
60429         * tests/test-verify.c: Likewise.
60430
60431 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60432
60433         Change copyright notice from LGPL 2 to GPL 2, since that's the
60434         standard form used in the gnulib repository.
60435         * lib/lock.c: LGPL -> GPL.
60436         * lib/lock.h: Likewise.
60437         * lib/strnlen1.c: Likewise.
60438         * lib/strnlen1.h: Likewise.
60439         * lib/tls.c: Likewise.
60440         * lib/tls.h: Likewise.
60441         * lib/tmpdir.c: Likewise.
60442
60443         * lib/TODO: Remove; this belongs only in coreutils.
60444
60445 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60446
60447         Add copyright notices to long-enough files that lack them, since
60448         otherwise the files aren't clearly free.  Use the same notice that
60449         getdate.texi already uses.
60450         * doc/alloca-opt.texi: Add copyright notice.
60451         * doc/alloca.texi: Likewise.
60452         * doc/ctime.texi: Likewise.
60453         * doc/functions.texi: Likewise.
60454         * doc/gcd.texi: Likewise.
60455         * doc/gnulib-tool.texi: Likewise.
60456         * doc/inet_ntoa.texi: Likewise.
60457         * doc/visibility.texi: Likewise.
60458
60459         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60460         * doc/quote.texi: Add copyright notice.
60461
60462         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
60463         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
60464         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
60465         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
60466         is now obsolete, and give a pointer to the Sun list.
60467         Add copyright notice.
60468
60469 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60470
60471         * config/srclistvars.sh: Add copyright notice.
60472
60473 2006-08-14  Eric Blake  <ebb9@byu.net>
60474
60475         Import the following change from libc:
60476
60477         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
60478
60479         Upstream bug 2997.
60480         * lib/misc/error.c: Add space between program name and message if file
60481         name is missing.
60482
60483 2006-08-12  Karl Berry  <karl@gnu.org>
60484
60485         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
60486         remove, these originate in gnulib now.
60487
60488 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60489
60490         * doc/Makefile (standards.info standards.html standards.dvi):
60491         Also depend on make-stds.texi.
60492
60493 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60494
60495         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
60496         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
60497
60498         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
60499         in wchar_t.  Problem reported by Eric Blake.
60500
60501         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
60502         LEN is smaller than SIZE.  Suggested by Bruno Haible.
60503         Also, help the compiler to keep LEN in a register.
60504
60505 2006-08-11  Eric Blake  <ebb9@byu.net>
60506
60507         * users.txt: Sort.  Add tar.
60508
60509 2006-08-11  Bruno Haible  <bruno@clisp.org>
60510
60511         * users.txt: New file.
60512
60513 2006-08-11  Bruno Haible  <bruno@clisp.org>
60514
60515         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
60516         before <wchar.h>. Needed for OSF/1 and BSD/OS.
60517
60518 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60519
60520         * modules/snprintf (Depends-on): Remove minmax.
60521         (Maintainer): Add self and Bruno.
60522
60523 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * lib/.cppi-disable: Add snprintf.h, socket_.h.
60526         * lib/snprintf.c: Include <errno.h> and <limits.h>.
60527         (EOVERFLOW): Define if the system does not.
60528         Do not include "minmax.h"; it wasn't used.
60529         (snprintf): Don't assume size_t promotes to an unsigned type.
60530         Fix bug when generated string was too long for the buffer: the
60531         buffer's contents are supposed to be the initial prefix of the
60532         output.  Don't assume vasnprintf returns EOVERFLOW if the size
60533         exceeds INT_MAX; do the check ourselves.
60534
60535         Import the following changes from libc:
60536
60537         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
60538
60539         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
60540         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
60541         set wc to the byte which couldn't be converted.
60542         (re_string_reconstruct): Don't clear valid_raw_len before calling
60543         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
60544         tip_context using re_string_context_at.
60545
60546         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
60547
60548         * lib/posix/regex.h: g++ still cannot handled [restrict].
60549
60550         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
60551
60552         * lib/posix/regex.h: Remove special handling for VMS.
60553
60554 2006-08-10  Jim Meyering  <jim@meyering.net>
60555
60556         * modules/same-inode: New module.
60557         * modules/dev-ino: New module.
60558         * modules/cycle-check: Depend on these modules, rather than simply
60559         including their .h files.
60560         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
60561         required via m4/cycle-check.m4.
60562         * modules/same: Depend on new same-inode module, rather than
60563         including same-inode.h.
60564         * modules/chdir-safer: New file.
60565
60566         * modules/chown (Depends-on): Add stat-macros.
60567
60568 2006-08-10  Jim Meyering  <jim@meyering.net>
60569
60570         * m4/cycle-check.m4: New file.
60571         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
60572         * m4/dev-ino.m4, m4/same-inode.m4: New files.
60573
60574 2006-08-10  Eric Blake  <ebb9@byu.net>
60575
60576         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
60577         in from original proposal.
60578
60579 2006-08-10  Eric Blake  <ebb9@byu.net>
60580         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60581
60582         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
60583         namespace.
60584
60585 2006-08-10  Bruno Haible  <bruno@clisp.org>
60586
60587         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
60588         as well.
60589
60590 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60591
60592         Sync from coreutils.
60593
60594         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
60595
60596         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
60597         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
60598
60599 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60600
60601         * modules/restrict: Remove; no longer needed now that we assume
60602         Autoconf 2.59 or later.
60603         * MODULES.html.sh: Remove 'restrict'.
60604         * modules/argp (Depends-on): Remove 'restrict'.
60605         * modules/base64 (Depends-on): Likewise.
60606         * modules/gc (Depends-on): Likewise.
60607         * modules/getaddrinfo (Depends-on): Likewise.
60608         * modules/glob (Depends-on): Likewise.
60609         * modules/inet_ntop (Depends-on): Likewise.
60610         * modules/inet_pton (Depends-on): Likewise.
60611         * modules/memxor (Depends-on): Likewise.
60612         * modules/regex (Depends-on): Likewise.
60613         * modules/strtok_r (Depends-on): Likewise.
60614         * modules/time_r (Depends-on): Likewise.
60615
60616 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60617
60618         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
60619         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
60620         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60621         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
60622         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60623         * m4/memxor.m4 (gl_MEMXOR): Likewise.
60624         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
60625         gl_C_RESTRICT replaced by AC_C_RESTRICT.
60626
60627         Merge from coreutils.
60628         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
60629         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
60630         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60631         * m4/time_r.m4 (gl_TIME_R): Likewise.
60632
60633 2006-08-09  Karl Berry  <karl@gnu.org>
60634
60635         * config/srclist.txt: no more gettext-tools, per Bruno.
60636
60637 2006-08-08  Eric Blake  <ebb9@byu.net>
60638
60639         * modules/verror: New module.
60640         * MODULES.html.sh: Document it.
60641
60642 2006-08-08  Eric Blake  <ebb9@byu.net>
60643
60644         * lib/verror.h, lib/verror.c: New files.
60645
60646 2006-08-08  Eric Blake  <ebb9@byu.net>
60647
60648         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60649         verror_at_line output complies with GNU Coding Standards even when
60650         file is NULL.
60651
60652 2006-08-07  Bruno Haible  <bruno@clisp.org>
60653
60654         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60655         versions of AIX.
60656         Reported by Ralf Wildenhues.
60657
60658 2006-08-07  Bruno Haible  <bruno@clisp.org>
60659
60660         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60661         in an AC_DEFUN. Needed so that the autoconf snippets can use
60662         AC_REQUIRE.
60663
60664 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60665
60666         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60667         Initialize pkgdata_DATA.
60668         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60669         overriding it.
60670
60671 2006-08-06  Eric Blake  <ebb9@byu.net>
60672
60673         * lib/error.h: Fold in some upstream changes from glibc.
60674         * lib/error.c: Likewise.
60675
60676 2006-08-04  Bruno Haible  <bruno@clisp.org>
60677
60678         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60679         Make the mostlyclean-local rule depend on mostlyclean-generic.
60680         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60681
60682 2006-07-31  Bruno Haible  <bruno@clisp.org>
60683
60684         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60685         <stdlib.h>, <string.h>.
60686
60687 2006-07-30  Bruno Haible  <bruno@clisp.org>
60688
60689         * modules/readlink (License): Change to LGPL.
60690
60691 2006-07-30  Bruno Haible  <bruno@clisp.org>
60692
60693         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60694         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60695         set PKGDATADIR to point to it.
60696
60697 2006-07-30  Bruno Haible  <bruno@clisp.org>
60698
60699         * modules/csharpexec (configure.ac): Comment out macro invocation.
60700         * modules/javaexec (configure.ac): Likewise.
60701         * modules/javacomp-script (configure.ac): Likewise.
60702
60703         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60704
60705 2006-07-30  Bruno Haible  <bruno@clisp.org>
60706
60707         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60708         linked-list.
60709
60710 2006-07-30  Bruno Haible  <bruno@clisp.org>
60711
60712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60713
60714 2006-07-30  Bruno Haible  <bruno@clisp.org>
60715
60716         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60717         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60718         get removed.
60719
60720 2006-07-29  Bruno Haible  <bruno@clisp.org>
60721
60722         Make it possible for gnulib-tool to work with locally modified or
60723         augmented gnulib repositories.
60724         * gnulib-tool (func_usage): Document --local-dir option.
60725         (local_gnulib_dir): New variable.
60726         Handle --local-dir option.
60727         (func_lookup_file): New function.
60728         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60729         (func_get_description, func_get_filelist, func_get_description,
60730         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60731         func_get_automake_snippet, func_get_include_directive,
60732         func_get_license, func_get_maintainer): Use func_lookup_file.
60733         (func_import, func_create_testdir): Use func_lookup_file.
60734
60735 2006-07-29  Bruno Haible  <bruno@clisp.org>
60736
60737         * modules/setenv (Depends-on): Add unistd.
60738
60739 2006-07-29  Bruno Haible  <bruno@clisp.org>
60740
60741         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
60742
60743 2006-07-29  Bruno Haible  <bruno@clisp.org>
60744
60745         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
60746
60747 2006-07-29  Bruno Haible  <bruno@clisp.org>
60748
60749         * gnulib-tool (import, update): If there is no Makefile.am, look at
60750         aclocal.m4, instead of bailing out.
60751
60752 2006-07-29  Bruno Haible  <bruno@clisp.org>
60753
60754         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
60755         Categorize the options by when they are useful.
60756
60757 2006-07-29  Bruno Haible  <bruno@clisp.org>
60758
60759         * gnulib-tool (func_usage): Document option --no-libtool.
60760         Handle option --no-libtool.
60761         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
60762         for changed semantics of $libtool variable.
60763         (func_import): Likewise. If libtool is not used, show this through
60764         an option --no-libtool.
60765         (func_create_testdir): Update.
60766
60767 2006-07-29  Bruno Haible  <bruno@clisp.org>
60768
60769         * gnulib-tool (func_import): Extend error message about missing
60770         --doc-base.
60771
60772 2006-07-29  Bruno Haible  <bruno@clisp.org>
60773
60774         * gnulib-tool (func_import): Don't create the $docbase directory if
60775         there is no file to store there.
60776
60777 2006-07-29  Bruno Haible  <bruno@clisp.org>
60778
60779         * gnulib-tool (autoconf_minversion): If a --dir option is given and
60780         relevant, look for configure.ac there, not in the current directory.
60781         Also use a simple search for AC_PREREQ, not "autoconf --trace".
60782
60783 2006-07-29  Bruno Haible  <bruno@clisp.org>
60784
60785         * gnulib-tool (SORT): New variable.
60786         (func_usage): Undocument --assume-autoconf option.
60787         Remove --assume-autoconf option handling.
60788         (autoconf_minversion): Determine from the contents of configure.ac.
60789         (func_import): Remove autoconf_minversion handling.
60790         Suggested by Eric Blake.
60791
60792 2006-07-29  Bruno Haible  <bruno@clisp.org>
60793
60794         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
60795
60796 2006-07-29  Bruno Haible  <bruno@clisp.org>
60797
60798         * config/srclist.txt (*setenv.[ch]): Remove rules.
60799
60800 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60801
60802         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
60803
60804 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60805
60806         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
60807         arpa/inet.h.
60808
60809 2006-07-28  Simon Josefsson  <jas@extundo.com>
60810
60811         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
60812         * modules/inet_pton (Depends-on): Likewise.
60813
60814 2006-07-28  Simon Josefsson  <jas@extundo.com>
60815
60816         * m4/netinet_in_h.m4: New file.
60817
60818 2006-07-28  Simon Josefsson  <jas@extundo.com>
60819
60820         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
60821         #include's.
60822
60823 2006-07-28  Simon Josefsson  <jas@extundo.com>
60824
60825         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
60826         #include's.
60827
60828 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
60829
60830         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
60831         setgid on directories only if they set these bits.
60832         * lib/modechange.h: Remove obsolete comment about masks.
60833
60834 2006-07-28  Eric Blake  <ebb9@byu.net>
60835
60836         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
60837         macro expansion.
60838
60839 2006-07-28  Bruno Haible  <bruno@clisp.org>
60840
60841         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
60842
60843 2006-07-28  Bruno Haible  <bruno@clisp.org>
60844
60845         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
60846
60847 2006-07-28  Bruno Haible  <bruno@clisp.org>
60848
60849         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60850         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60851         Define fallbacks.
60852         Avoids link error on FreeBSD 4.x.
60853         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60854
60855         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
60856         encoding.
60857         * lib/mbswidth.c (iswcntrl): Likewise.
60858
60859 2006-07-27  Bruno Haible  <bruno@clisp.org>
60860
60861         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
60862         test.
60863
60864 2006-07-27  Bruno Haible  <bruno@clisp.org>
60865
60866         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
60867         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
60868         defined.
60869
60870 2006-07-26  Eric Blake  <ebb9@byu.net>
60871
60872         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
60873
60874 2006-07-26  Eric Blake  <ebb9@byu.net>
60875
60876         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
60877         like mingw that lack mkstemp.
60878         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
60879         avoid compilation warning on mingw.
60880
60881 2006-07-26  Bruno Haible  <bruno@clisp.org>
60882
60883         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
60884         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
60885         INT_FAST*_MIN, INTPTR_MIN.
60886
60887 2006-07-25  Bruno Haible  <bruno@clisp.org>
60888
60889         * modules/version-etc (Depends-on): Add stdarg.
60890
60891 2006-07-25  Bruno Haible  <bruno@clisp.org>
60892
60893         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
60894         complex commands.
60895
60896 2006-07-25  Bruno Haible  <bruno@clisp.org>
60897
60898         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
60899         defined in <stdarg.h> or config.h.
60900
60901 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60902
60903         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
60904         (gl_STDIO_SAFER): Remove.
60905
60906 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60907
60908         * MODULES.html.sh (File stream based Input/Output):
60909         Add fopen-safer, tmpfile-safer; remove stdio-safer.
60910         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
60911         * modules/fopen-safer, modules/tmpfile-safer: New files.
60912         * modules/stdio-safer: Remove.
60913
60914 2006-07-24  Bruno Haible  <bruno@clisp.org>
60915
60916         * modules/tmpdir: New file.
60917         * MODULES.html.sh (File system functions): Add it.
60918
60919 2006-07-24  Bruno Haible  <bruno@clisp.org>
60920
60921         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
60922         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
60923
60924 2006-07-24  Bruno Haible  <bruno@clisp.org>
60925
60926         * modules/clean-temp: New file.
60927
60928 2006-07-24  Bruno Haible  <bruno@clisp.org>
60929
60930         * m4/tmpdir.m4: New file, from GNU gettext.
60931
60932 2006-07-24  Bruno Haible  <bruno@clisp.org>
60933
60934         * lib/tmpdir.h: New file, from GNU gettext.
60935         * lib/tmpdir.c: New file, from GNU gettext.
60936
60937 2006-07-24  Bruno Haible  <bruno@clisp.org>
60938
60939         * lib/clean-temp.h: New file, from GNU gettext.
60940         * lib/clean-temp.c: New file, from GNU gettext.
60941
60942 2006-07-23  Eric Blake  <ebb9@byu.net>
60943
60944         * modules/stdio-safer (Files): Add tmpfile-safer.c.
60945         (Depends-on): Add binary-io.
60946
60947 2006-07-23  Eric Blake  <ebb9@byu.net>
60948
60949         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
60950
60951 2006-07-23  Eric Blake  <ebb9@byu.net>
60952
60953         * lib/tmpfile-safer.c: New file.
60954         * lib/stdio-safer.h (fopen_safer): Add prototype.
60955         * lib/stdio--.h (tmpfile): Make safer.
60956
60957 2006-07-23  Bruno Haible  <bruno@clisp.org>
60958
60959         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
60960         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
60961         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
60962         gl_linked_remove_at): Use it.
60963
60964 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60965         and Simon Josefsson <jas@extundo.com>
60966
60967         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
60968
60969         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
60970
60971 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60972
60973         * modules/close-stream: New file.
60974         * modules/closeout (Description): Make it clear that it exits
60975         with a diagnostic on error.
60976         (Depends-on): Add close-stream.  Remove fpending, stdbool.
60977         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
60978
60979 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60980
60981         * m4/close-stream.m4: New file.
60982
60983 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60984
60985         * lib/close-stream.c, lib/close-stream.h: New files.
60986
60987 2006-07-22  Bruno Haible  <bruno@clisp.org>
60988
60989         Merge from GNU gettext 0.15.
60990
60991         2006-05-01  Bruno Haible  <bruno@clisp.org>
60992
60993                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60994
60995         2006-07-22  Bruno Haible  <bruno@clisp.org>
60996
60997                 * modules/javaversion: New file.
60998                 * MODULES.html.sh (Java): Add javaversion.
60999
61000         2006-03-12  Bruno Haible  <bruno@clisp.org>
61001
61002                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61003
61004         2005-12-04  Bruno Haible  <bruno@clisp.org>
61005
61006                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61007                 (untested).
61008
61009         2006-06-21  Bruno Haible  <bruno@clisp.org>
61010
61011                 Avoid warnings from recent versions of mcs.
61012                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61013                 -o, -L, -r any more. Use options documented since mcs-1.0
61014                 instead. Similarly for -g.
61015
61016         2005-12-04  Bruno Haible  <bruno@clisp.org>
61017
61018                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61019                 .resources, not .resource.
61020
61021         2005-07-09  Bruno Haible  <bruno@clisp.org>
61022
61023                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61024                 add a .dll suffix.
61025                 Reported by Mark Junker <mjscod@gmx.de>.
61026
61027         2006-07-22  Bruno Haible  <bruno@clisp.org>
61028
61029                 * modules/gettext: Upgrade to gettext-0.15.
61030                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61031                 m4/visibility.m4.
61032                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61033
61034 2006-07-22  Bruno Haible  <bruno@clisp.org>
61035
61036         Merge from GNU gettext 0.15.
61037
61038         2006-03-25  Bruno Haible  <bruno@clisp.org>
61039
61040                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61041
61042         2006-07-21  Bruno Haible  <bruno@clisp.org>
61043
61044                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61045                 "1.1".
61046
61047         2006-05-09  Bruno Haible  <bruno@clisp.org>
61048
61049                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61050                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61051                 for the conftestver execution.
61052
61053         2006-05-01  Bruno Haible  <bruno@clisp.org>
61054
61055                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61056                 optional target-version argument. Verify that the compiler
61057                 groks source of the specified source-version, or add -source
61058                 option as necessary. Verify that the compiler produces
61059                 bytecode in the specified target-version, or add -target and
61060                 -source options as necessary. Make the result of the test
61061                 available as variable CONF_JAVAC. Also log error output in
61062                 config.log.
61063
61064         2006-03-11  Bruno Haible  <bruno@clisp.org>
61065
61066                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61067
61068         2006-05-09  Bruno Haible  <bruno@clisp.org>
61069
61070                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61071                 CLASSPATH_SEPARATOR to a semicolon.
61072
61073         2006-03-12  Bruno Haible  <bruno@clisp.org>
61074
61075                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61076                 available as variable CONF_JAVA, for subsequent autoconf
61077                 tests. Also log error output in config.log.
61078
61079         2006-07-19  Bruno Haible  <bruno@clisp.org>
61080
61081                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61082                 that getline works on glibc2 systems. Needed to avoid trouble
61083                 in relocatable.c.
61084                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61085
61086         2005-12-04  Bruno Haible  <bruno@clisp.org>
61087
61088                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61089                 launcher (untested).
61090
61091         2005-12-04  Bruno Haible  <bruno@clisp.org>
61092
61093                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61094
61095         2006-07-22  Bruno Haible  <bruno@clisp.org>
61096
61097                 * gettext.m4: Update from GNU gettext-0.15.
61098                 * nls.m4: Likewise.
61099                 * po.m4: Likewise.
61100                 * inttypes-pri.m4: Likewise.
61101                 * inttypes-h.m4: Renamed from inttypes.m4.
61102                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61103
61104 2006-07-22  Bruno Haible  <bruno@clisp.org>
61105
61106         Merge from GNU gettext 0.15.
61107
61108         2005-07-05  Bruno Haible  <bruno@clisp.org>
61109
61110                 * printf-args.c (printf_fetchargs): Work around broken
61111                 definition of wint_t on mingw.
61112
61113         2005-02-12  Bruno Haible  <bruno@clisp.org>
61114
61115                 * xallocsa.h: Add extern "C" for C++.
61116
61117         2006-05-17  Bruno Haible  <bruno@clisp.org>
61118
61119                 Cygwin portability.
61120                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61121
61122         2006-04-30  Bruno Haible  <bruno@clisp.org>
61123
61124                 * progreloc.c: Include <mach-o/dyld.h> if available.
61125                 (find_executable): Use _NSGetExecutablePath when possible.
61126
61127         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61128
61129                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61130                 function.
61131
61132         2005-12-29  Bruno Haible  <bruno@clisp.org>
61133
61134                 * progreloc.c (set_program_name_and_installdir): Fix
61135                 compilation error.
61136
61137         2005-12-04  Bruno Haible  <bruno@clisp.org>
61138
61139                 Cygwin portability.
61140                 * progreloc.c: Include <windows.h> also on Cygwin.
61141                 (find_executable): Add support for Cygwin.
61142                 (set_program_name_and_installdir): Handle also platforms with
61143                 nonempty EXEEXT.
61144
61145         2006-07-11  Bruno Haible  <bruno@clisp.org>
61146
61147                 * javacomp.c: Fix a comment.
61148                 Reported by Jim Meyering.
61149
61150         2006-04-30  Bruno Haible  <bruno@clisp.org>
61151
61152                 * javacomp.h (compile_java_class): Add source_version,
61153                 target_version arguments.
61154                 * javacomp.c: Rewritten to choose only a compiler that
61155                 respects the specified source_version and target_version.
61156
61157         2006-06-27  Bruno Haible  <bruno@clisp.org>
61158
61159                 Assume correct S_ISDIR macro.
61160                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61161
61162         2006-07-22  Bruno Haible  <bruno@clisp.org>
61163
61164                 * javaversion.h: New file, from GNU gettext.
61165                 * javaversion.c: New file, from GNU gettext.
61166                 * javaversion.java: New file, from GNU gettext.
61167                 * javaversion.class: New file, from GNU gettext.
61168
61169         2006-05-17  Bruno Haible  <bruno@clisp.org>
61170
61171                 Cygwin portability.
61172                 * javaexec.c (execute_java_class): Test for jview program
61173                 also on Cygwin.
61174
61175         2006-04-09  Bruno Haible  <bruno@clisp.org>
61176
61177                 * fatal-signal.c: Don't include string.h.
61178                 (at_fatal_signal): Use a copying loop instead of memcpy.
61179
61180         2005-12-04  Bruno Haible  <bruno@clisp.org>
61181
61182                 * csharpexec.c: Add support for 'clix' launcher (untested).
61183                 (execute_csharp_using_sscli): New function.
61184                 (execute_csharp_program): Call it.
61185
61186         2006-06-21  Bruno Haible  <bruno@clisp.org>
61187
61188                 Avoid warnings from recent versions of mcs.
61189                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61190                 -o, -L, -r any more. Use options documented since mcs-1.0
61191                 instead. Similarly for -g.
61192
61193         2005-07-09  Bruno Haible  <bruno@clisp.org>
61194
61195                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61196                 add a .dll suffix.
61197                 Reported by Mark Junker <mjscod@gmx.de>.
61198
61199         2006-06-17  Bruno Haible  <bruno@clisp.org>
61200
61201                 * config.charset: Update for NetBSD 3.0.
61202
61203         2006-05-17  Bruno Haible  <bruno@clisp.org>
61204
61205                 Cygwin portability.
61206                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61207
61208         2006-05-16  Bruno Haible  <bruno@clisp.org>
61209
61210                 * localcharset.c [CYGWIN]: Include <windows.h>.
61211                 (get_charset_aliases): For Cygwin, return the same CPxxx
61212                 aliases list as under WIN32.
61213                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61214                 the environment variables. Fall back to GetACP().
61215
61216         2006-04-05  Bruno Haible  <bruno@clisp.org>
61217
61218                 * config.charset: Update Juan Manuel Guerrero's address.
61219
61220         2005-02-12  Bruno Haible  <bruno@clisp.org>
61221
61222                 * allocsa.h: Add extern "C" for C++.
61223
61224         2005-02-10  Bruno Haible  <bruno@clisp.org>
61225
61226                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61227                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61228
61229         2006-07-22  Bruno Haible  <bruno@clisp.org>
61230
61231                 * gettext.h: Update to GNU gettext-0.15.
61232
61233 2006-07-22  Bruno Haible  <bruno@clisp.org>
61234
61235         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61236         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61237         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61238
61239 2006-07-21  Eric Blake  <ebb9@byu.net>
61240
61241         * modules/stdlib-safer: New file.
61242         * MODULES.html.sh (File stream based Input/Output): Add
61243         stdlib-safer.
61244
61245 2006-07-21  Eric Blake  <ebb9@byu.net>
61246
61247         * lib/stdlib-safer.h: New file from coreutils, required by
61248         stdlib--.h.
61249
61250 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61251
61252         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61253
61254 2006-07-20  Bruno Haible  <bruno@clisp.org>
61255
61256         * gnulib-tool: Recognize new option --assume-autoconf.
61257         (autoconf_minversion): New variable.
61258         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61259
61260 2006-07-20  Bruno Haible  <bruno@clisp.org>
61261
61262         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61263
61264 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61265
61266         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61267         Reindent and repaginate.
61268
61269 2006-07-19  Derek Price  <derek@ximbiot.com>
61270
61271         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61272         Correct grammar.
61273
61274 2006-07-17  Bruno Haible  <bruno@clisp.org>
61275
61276         * modules/list: New file.
61277         * modules/array-list: New file.
61278         * modules/carray-list, modules/carray-list-tests: New files.
61279         * modules/linked-list, modules/linked-list-tests: New files.
61280         * modules/avltree-list, modules/avltree-list-tests: New files.
61281         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61282         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61283         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61284         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61285         * modules/oset: New file.
61286         * modules/array-oset: New file.
61287         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61288         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61289         * tests/test-carray_list.c: New file.
61290         * tests/test-linked_list.c: New file.
61291         * tests/test-avltree_list.c: New file.
61292         * tests/test-rbtree_list.c: New file.
61293         * tests/test-linkedhash_list.c: New file.
61294         * tests/test-avltreehash_list.c: New file.
61295         * tests/test-rbtreehash_list.c: New file.
61296         * tests/test-avltree_oset.c: New file.
61297         * tests/test-rbtree_oset.c: New file.
61298         * MODULES.html.sh (Container data structures): New section.
61299
61300 2006-07-17  Bruno Haible  <bruno@clisp.org>
61301
61302         * m4/gl_list.m4: New file.
61303
61304 2006-07-17  Bruno Haible  <bruno@clisp.org>
61305
61306         * lib/gl_list.h: New file.
61307         * lib/gl_list.c: New file.
61308         * lib/gl_array_list.h: New file.
61309         * lib/gl_array_list.c: New file.
61310         * lib/gl_carray_list.h: New file.
61311         * lib/gl_carray_list.c: New file.
61312         * lib/gl_linked_list.h: New file.
61313         * lib/gl_linked_list.c: New file.
61314         * lib/gl_anylinked_list1.h: New file.
61315         * lib/gl_anylinked_list2.h: New file.
61316         * lib/gl_avltree_list.h: New file.
61317         * lib/gl_avltree_list.c: New file.
61318         * lib/gl_anyavltree_list1.h: New file.
61319         * lib/gl_anyavltree_list2.h: New file.
61320         * lib/gl_rbtree_list.h: New file.
61321         * lib/gl_rbtree_list.c: New file.
61322         * lib/gl_anyrbtree_list1.h: New file.
61323         * lib/gl_anyrbtree_list2.h: New file.
61324         * lib/gl_anytree_list1.h: New file.
61325         * lib/gl_anytree_list2.h: New file.
61326         * lib/gl_linkedhash_list.h: New file.
61327         * lib/gl_linkedhash_list.c: New file.
61328         * lib/gl_anyhash_list1.h: New file.
61329         * lib/gl_anyhash_list2.h: New file.
61330         * lib/gl_avltreehash_list.h: New file.
61331         * lib/gl_avltreehash_list.c: New file.
61332         * lib/gl_rbtreehash_list.h: New file.
61333         * lib/gl_rbtreehash_list.c: New file.
61334         * lib/gl_anytreehash_list1.h: New file.
61335         * lib/gl_anytreehash_list2.h: New file.
61336
61337         * lib/gl_oset.h: New file.
61338         * lib/gl_oset.c: New file.
61339         * lib/gl_array_oset.h: New file.
61340         * lib/gl_array_oset.c: New file.
61341         * lib/gl_avltree_oset.h: New file.
61342         * lib/gl_avltree_oset.c: New file.
61343         * lib/gl_rbtree_oset.h: New file.
61344         * lib/gl_rbtree_oset.c: New file.
61345         * lib/gl_anytree_oset.h: New file.
61346
61347 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61348
61349         * m4/mkancesdirs.m4: New file.
61350         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61351         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61352         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61353         it.
61354
61355 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61356
61357         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61358         * lib/mkancesdirs.h: New files.
61359         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61360         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61361         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61362         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61363         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61364         callers changed.  Revamp internals significantly, by not
61365         attempting to create directories that are temporarily more
61366         permissive than the final results.  Do not attempt to use
61367         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61368         This removes some race conditions, fixes some bugs, and simplifies
61369         things.  Use new dirchownmod function to do owner and mode changes.
61370         * lib/mkdir-p.h: Likewise.
61371         * lib/modechange.c (octal_to_mode): New function.
61372         (struct mode_change): New member mentioned.
61373         (make_node_op_equals): New arg mentioned.  All callers changed.
61374         (mode_compile): Keep track of which mode bits the user has explicitly
61375         mentioned.
61376         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61377         New arg PMODE_BITS, to keep track of which mode bits the user
61378         mentioned; it treats S_ISUID and S_ISGID speciall.
61379         All callers changed.
61380         * lib/modechange.h: Likewise.
61381
61382 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61383
61384         * MODULES.html.sh: Add mkancestors.
61385         * modules/mkancesdirs: New module.
61386         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61387         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61388         The chdir-safer and afs files are now orphans; I'll remove them
61389         unless someone speaks up.
61390         Add lib/dirchownmod.c, lib/dirchownmod.h.
61391         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61392         Add lchown, mkancesdirs.
61393         (Maintainer): Add self.
61394
61395 2006-07-15  Karl Berry  <karl@gnu.org>
61396
61397         * gnulib-tool: help message wording/arrangement.
61398
61399 2006-07-14  Simon Josefsson  <jas@extundo.com>
61400
61401         * doc/gnulib.texi (Libtool and Windows): New section.
61402
61403 2006-07-12  Simon Josefsson  <jas@extundo.com>
61404
61405         * modules/gendocs (License): Fix license, approved by Karl.
61406
61407 2006-07-12  Eric Blake  <ebb9@byu.net>
61408
61409         * MODULES.html.sh: Add gendocs.
61410
61411 2006-07-11  Eric Blake  <ebb9@byu.net>
61412
61413         * modules/fdl: New module, to install doc/fdl.texi.
61414         * MODULES.html.sh: Add new section for documentation modules.
61415         * gnulib-tool: Avoid space-tab.
61416         (--doc-base): New option, to manage files from doc.
61417
61418 2006-07-11  Eric Blake  <ebb9@byu.net>
61419
61420         * m4/absolute-header.m4: Fix comments to match recent change.
61421
61422 2006-07-11  Eric Blake  <ebb9@byu.net>
61423
61424         * gnulib-tool: List --doc-base before --tests-base.
61425
61426 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61427
61428         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61429
61430 2006-07-11  Bruno Haible  <bruno@clisp.org>
61431
61432         * README: Mention where to put documentation.
61433
61434 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61435
61436         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61437
61438 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61439
61440         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61441         to stdint.m4.
61442
61443 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61444
61445         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61446         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61447         "no/such/file/stdint.h" when there is no such file, so that
61448         the resulting C code can be parsed by dodgy compilers.
61449         Problems reported by Bob Proulx.
61450
61451 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61452
61453         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61454         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61455         macros into the GNU _D_EXACT_NAMLEN.
61456         * lib/savedir.c:  Likewise.
61457         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61458
61459 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61460         and Paul Eggert  <eggert@cs.ucla.edu>
61461
61462         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
61463         * m4/savedir.m4:
61464         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61465         macros into the GNU _D_EXACT_NAMLEN.
61466
61467 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61468
61469         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
61470         around the absolute name, to work around a problem with the HP-UX
61471         11.23 native C compiler, reported by Bob Proulx.
61472
61473 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61474
61475         * doc/maintain.texi, make-stds.texi: Sync from
61476         <http://savannah.gnu.org/projects/gnustandards>.
61477
61478 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61479
61480         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
61481
61482 2006-07-09  Jim Meyering  <jim@meyering.net>
61483
61484         * m4/glob.m4: Remove a doubled word in a comment.
61485
61486 2006-07-09  Jim Meyering  <jim@meyering.net>
61487
61488         * lib/argp-pv.c: Remove a doubled word in a comment.
61489         * lib/check-version.c (check_version): Likewise.
61490         * lib/javacomp.c (compile_java_class): Likewise.
61491
61492 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61493
61494         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
61495         for the benefit of people using Autoconf 2.60.  If you want to
61496         support older Autoconf versions you can copy m4/onceonly_2_57.m4
61497         (or m4/onceonly.m4, if pre-2.57) manually.
61498
61499 2006-07-08  Jim Meyering  <jim@meyering.net>
61500
61501         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
61502         comment.
61503         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
61504         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
61505         comment.
61506
61507 2006-07-08  Jim Meyering  <jim@meyering.net>
61508
61509         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
61510
61511 2006-07-07  Simon Josefsson  <jas@extundo.com>
61512
61513         * tests/test-crc.c: Change expected crc value, the test vector
61514         were probably computed using the old broken crc.c?
61515
61516 2006-07-06  Simon Josefsson  <jas@extundo.com>
61517
61518         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
61519         now the canonical place for the M4 file).
61520
61521         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
61522         from the sys_socket dependency now.
61523
61524         * modules/inet_pton (Files): Ditto.
61525
61526         * modules/inet_ntop (Files): Ditto.
61527
61528 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61529
61530         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
61531         not gl_PREREQ_GETUSERSHELL.
61532
61533 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61534
61535         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
61536         with only one argument, for Autoconf 2.60.
61537         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
61538         expand to nothing, so add a shell command to avoid syntax error.
61539         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61540
61541 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61542
61543         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
61544
61545 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61546
61547         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
61548         no longer needed.  Check for isblank decl.
61549         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
61550         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
61551         of existence.
61552
61553 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61554
61555         * lib/getloadavg.c: Use __VMS, not VMS.
61556         * lib/getopt.c: Likewise.
61557         * lib/getpagesize.h: Likewise.
61558         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
61559         and probably does not work.
61560
61561 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61562
61563         * lib/.cppi-disable: Add wcwidth.
61564         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
61565         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
61566         (ISGRAPH): Remove.  All uses changed to isgraph.
61567         (FOLD) [!defined _LIBC]: Remove special case.
61568         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
61569         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
61570         HAVE_ISBLANK.
61571         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
61572         case.
61573
61574 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61575
61576         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
61577         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
61578         brackets.  Other minor changes to suppress some compiler
61579         warnings.
61580
61581 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61582         and Paul Eggert  <eggert@cs.ucla.edu>
61583
61584         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
61585         of invoking obsolescent AC_HEADER_DIRENT macro.
61586         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61587         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
61588         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61589         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
61590         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
61591         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61592         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
61593         * m4/readdir.m4: Remove; no longer needed.
61594
61595 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61596         and Paul Eggert  <eggert@cs.ucla.edu>
61597
61598         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
61599         Don't worry about this obsolete case any more.
61600         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
61601         directories.
61602         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
61603         worry about this obsolete case any more.
61604         * lib/fts.c: Likewise.
61605         * lib/getcwd.c: Likewise.
61606         * lib/glob.h: Likewise.
61607         * lib/savedir.c: Likewise.
61608
61609 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61610
61611         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
61612         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
61613         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
61614         needed.
61615         All uses removed.
61616         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61617         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61618         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
61619         needed.
61620         * m4/getdate.m4 (gl_GETDATE): Likewise.
61621         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61622         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61623         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61624         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61625         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61626         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61627         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
61628         needed.
61629
61630 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61631
61632         * lib/memcasecmp.c: Include <limits.h>.
61633         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61634         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61635         Don't assume isdigit succeeds only on '0' through '9'.
61636
61637 2006-07-05  Eric Blake  <ebb9@byu.net>
61638
61639         * modules/getaddrinfo (Depends-on): Add snprintf.
61640
61641 2006-07-05  Eric Blake  <ebb9@byu.net>
61642
61643         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61644         to avoid 'header present but could not be compiled' on cygwin.
61645
61646 2006-07-05  Eric Blake  <ebb9@byu.net>
61647
61648         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61649         missing from netdb.h.
61650         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61651
61652 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61653
61654         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61655         no longer needed.
61656         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61657         * m4/getdate.m4 (gl_GETDATE): Likewise.
61658         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61659         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61660         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61661         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61662         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61663
61664 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61665
61666         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61667         All uses of is_space replaced by isspace.
61668         * lib/exit.h: Don't talk about STDC_HEADERS.
61669         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61670         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61671         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61672         replaced by isprint etc.
61673         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61674         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61675         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61676         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61677         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61678         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61679
61680 2006-07-05  Bruno Haible  <bruno@clisp.org>
61681
61682         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61683         the function exists, before testing against AIX.
61684         Reported by Martin Lambers <marlam@marlam.de>.
61685
61686 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61687
61688         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61689         From Mark D. Baushke.
61690
61691 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61692
61693         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61694         to the absolute name, not just one, to bypass Sun C 5.8's
61695         "warning: #include of /usr/include/... may be non-portable".
61696
61697 2006-07-04  Eric Blake  <ebb9@byu.net>
61698
61699         * modules/dirname-tests: New test module.
61700         * tests/test-dirname.c: New file, replacing dirname.c
61701         TEST_DIRNAME section that was recently deleted.
61702
61703 2006-07-04  Bruno Haible  <bruno@clisp.org>
61704
61705         Assume ANSI C header files and <ctype.h> functions.
61706         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61707         (mbsnwidth): Use isprint, iscntrl instead.
61708
61709 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61710
61711         Merge from coreutils.
61712         * MODULES.html.sh: Add xstrtold.
61713         * modules/xstrtold: New file.
61714         * modules/cycle-check (Files): Add lib/same-inode.h.
61715         * modules/dirname (Files): Add m4/double-slash-root.m4.
61716         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61717         * modules/mkdir-p (Files): Add lib/same-inode.h.
61718         * modules/same (Files): Add lib/same-inode.h.
61719
61720 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61721
61722         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61723         This is to keep the terminology clean; POSIX talks about
61724         "absolute pathnames", not "full pathnames", but the GNU
61725         Coding Standards say to use "path" for something else;
61726         so use "absolute" to keep both sides happy.
61727         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61728         Set gl_absolute_header, not gl_full_header_path.
61729         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61730         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61731         All uses changed.
61732
61733         Merge from coreutils.
61734
61735         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61736
61737         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
61738         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
61739         want to require the building of c-strtod.o.
61740         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
61741         needs -lm directly.
61742         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
61743
61744         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61745
61746         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
61747         --as-needed option if available.  Problem reported by Albert Chin in
61748         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
61749         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
61750         cc merely issues a bunch of annoying warnings for --as-needed
61751         (this problem was reported by Bob Proulx).  Also, try linking with
61752         -lm to detect a bug in binutils 2.16 (this problem was reported
61753         by Ralf Wildenhues).
61754
61755         2006-06-18  Jim Meyering  <jim@meyering.net>
61756
61757         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
61758         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
61759         macro.
61760         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
61761         also check for glibc-2.4's abort-inducing bug.
61762
61763         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
61764         Low-probability clean-up should be to use rmdir to get rid of
61765         the just-created directory, not unlink.
61766
61767         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
61768         configure fail, and request a bug report to inform us about it.
61769         Add a comment that, barring reports to the contrary, in 2007 we'll
61770         assume ftruncate is universally available.
61771
61772         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61773
61774         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
61775
61776         2006-03-12  Jim Meyering  <jim@meyering.net>
61777
61778         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
61779         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
61780         * m4/same.m4 (gl_SAME): Likewise.
61781         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
61782
61783         2006-03-11  Eric Blake  <ebb9@byu.net>
61784
61785         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
61786         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
61787         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
61788         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
61789
61790 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61791
61792         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
61793         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
61794         reported by Mark D. Baushke, one in
61795         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
61796
61797         Merge from coreutils.
61798
61799         * lib/.cppi-disable: Add stdint_.h.
61800         * lib/.cvsignore: Add stdint.h.
61801
61802         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61803
61804         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
61805         both double and long double versions.
61806         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
61807         * lib/xstrtold.c: New file.
61808         * lib/xstrtod.h (xstrtold): New decl.
61809
61810         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61811
61812         * lib/filemode.c (setst): Remove.
61813         (strmode): Rewrite to avoid setst.  This makes the code shorter,
61814         (arguably) clearer, and the generated code is a bit smaller on my
61815         Debian GNU/Linux stable x86 host.
61816
61817         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61818
61819         * lib/filemode.c: Include "filemode.h" first, to test the interface.
61820         Assume that filemode.h includes sys/types.h and sys/stat.h.
61821         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
61822         (ftypelet): Reorder to put common cases first, for efficiency.
61823         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
61824         to do 'M'.
61825         (strmode): Renamed from mode_string, and now stores 12 bytes instead
61826         of 10, for compatibility with FreeBSD.  All callers changed.
61827         (filemodestring): Now stores 12 bytes instead of 10, and sets file
61828         types that can't be deduced solely from st_mode.  First arg is now a
61829         const pointer.
61830         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
61831         (strmode): Renamed from mode_string.
61832         (filemodestring): New decl.
61833         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
61834         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
61835         needed.
61836         (S_ISPORT, S_ISWHT): New macros, if not already defined.
61837
61838         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61839
61840         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
61841         fsusage.h now does that.  Include fsusage.h first, to test interface.
61842         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
61843         at most one method (the old code could have generated decls that
61844         didn't conform to C89, not that this was ever exercised).
61845         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
61846
61847         2006-03-19  Jim Meyering  <jim@meyering.net>
61848
61849         Work even in a chroot where d_ino values for entries in "/"
61850         don't match the stat.st_ino values for the same names.
61851         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
61852         number, iterate through all entries again, using lstat instead.
61853         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
61854         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
61855
61856         * lib/getcwd.c (__getcwd): Clarify a comment.
61857         Use memcpy in place of a call to strcpy.
61858
61859         2006-03-12  Jim Meyering  <jim@meyering.net>
61860
61861         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
61862         matches that of the current directory (which we're about to chdir ".."
61863         out of), then save the dev-ino of the parent, instead.
61864
61865         * lib/same-inode.h (SAME_INODE): New file/macro.
61866         * lib/chdir-safer.c (SAME_INODE): Remove definition.
61867         Include "same-inode.h", instead.
61868         * lib/same.c: Likewise.
61869         * lib/cycle-check.h: Include "same-inode.h".
61870         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
61871         * lib/cycle-check.c (SAME_INODE): Remove definition.
61872         * lib/root-dev-ino.h: Include "same-inode.h".
61873
61874         2006-03-11  Eric Blake  <ebb9@byu.net>
61875
61876         * lib/same.c (same_name): s/base_name/last_component/
61877         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
61878         * lib/filenamecat.c (file_name_concat): Likewise.
61879
61880         2006-03-11  Eric Blake  <ebb9@byu.net>,
61881                     Paul Eggert  <eggert@cs.ucla.edu>
61882
61883         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
61884         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
61885         drive prefix.
61886         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
61887         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
61888         (last_component): New method.
61889         * lib/dirname.c (dir_len): Determine when drive letters need a
61890         subsequent slash.  Preserve // when it is special.
61891         (dir_name): Don't append dot when drive letter is absolute.
61892         [TEST_DIRNAME]: Move into a full-blown gnulib test.
61893         * lib/basename.c (base_name): New semantics - malloc the result.
61894         Preserve // when it is special.  Preserve relative files that look
61895         like drive letters.
61896         (base_len): Preserve // when it is special.
61897         (last_component): New method, similar to old base_name semantics.
61898         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
61899         base_name.  Strip redundant slashes from ///.
61900
61901 2006-07-03  Jim Meyering  <jim@meyering.net>
61902
61903         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
61904         macro is used before the first cycle_check call.
61905
61906 2006-07-03  Eric Blake  <ebb9@byu.net>
61907
61908         * modules/dirname (Depends-on): Add xstrndup.
61909
61910 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61911
61912         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
61913         test cases, so that config.log is a bit easier to follow.
61914
61915 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61916
61917         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
61918         both are 64 bits, since this seems to be the tradition, and this
61919         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
61920         we ever run into a host that prefers long long to long in this
61921         case, we'll need another configure-time test.  Problem reported by
61922         Jim Meyering.
61923
61924 2006-07-02  Eric Blake  <ebb9@byu.net>
61925
61926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
61927
61928 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61929
61930         * modules/inttypes (Depends-on): No longer depends on stdint.
61931         * modules/stdint (Description): Say more about assumptions.
61932         Say that the fast types might differ.  Say macros are used.
61933         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
61934         (Makefile.am): Revise list of substituted symbols to match
61935         new stdint.m4.
61936         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
61937         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
61938         * tests/test-stdint.c (verify_same_types)
61939         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
61940         the code conforms to C99/C89.
61941         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
61942         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
61943
61944 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61945
61946         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
61947         but fix a bug, by requiring at least 64 bits.
61948         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61949         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
61950         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
61951         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61952
61953         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
61954         changes.  Make 2.59 a prerequisite.  Check and substitute for
61955         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
61956         inttypes.h.  Do not use special include files; just use the
61957         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
61958         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
61959         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
61960         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
61961         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
61962         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
61963         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
61964         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
61965         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
61966         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
61967         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
61968         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
61969         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
61970         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
61971         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
61972         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
61973         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
61974         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
61975         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
61976         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
61977         WINT_MAX.  Check for C99 conformance more strictly, by detecting
61978         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
61979         not check for things that C99 does not require, e.g., int8_t.  If
61980         a test isn't needed unless <stdint.h> isn't working, and is
61981         unlikely to be needed for any other reason, then don't do it
61982         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61983         size_t, since we assume C89 freestanding at least.  Do not check
61984         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61985         the right thing even if the types are not defined.  Instead use:
61986         (gl_STDINT_TYPE_PROPERTIES): New macro.
61987         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61988         testing whether <sys/types.h> clashes, as Autoconf does this for
61989         us now.  All uses removed.
61990         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61991         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61992         (gl_CHECK_TYPE_SAME):
61993         Remove; no longer needed.
61994         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61995         exists, since we'll return 0 anyway in that case.
61996         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61997
61998 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61999
62000         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62001         possible collision with system files.
62002         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62003         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62004         WCHAR_MIN and WCHAR_MAX in this case.
62005         (<stddef.h>): Do not include; no longer needed.
62006         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62007         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62008         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62009         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62010         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62011         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62012         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62013         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62014         !defined(__c99))]: Include in this case too, since it's harmless
62015         now.
62016         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62017         dangerous to do so.
62018         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62019         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62020         (_STDINT_MIN, _STDINT_MAX): New macros.
62021         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62022         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62023         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62024         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62025         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62026         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62027         macros, not typedefs; this simplifies things quite a bit.
62028         Use long int for all types narrower than int64_t.
62029         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62030         Define in terms of long long int or int64_t or long int,
62031         not int64_t or int32_t.  This saves some compile-time testing.
62032         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62033         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62034         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62035         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62036         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62037         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62038         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62039         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62040         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62041         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62042         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62043         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62044         undef any previous version and define our own version, for
62045         simplicity and consistency with the new macros for types.
62046         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62047         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62048         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62049         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62050         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62051         @WINT_T_SUFFIX@ to keep things simple here.
62052         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62053         Simplify by assuming typical 8/16/32/64 host, since we're
62054         already doing that elsewhere anyway.
62055         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62056         and assume long long int is 64 bits if available.  This
62057         speeds up 'configure'.
62058
62059 2006-07-01  Eric Blake  <ebb9@byu.net>
62060
62061         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62062         Reported by Andreas Buening.
62063
62064 2006-07-01  Eric Blake  <ebb9@byu.net>
62065
62066         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62067
62068 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62069
62070         * lib/getaddrinfo.c: fixed typo
62071
62072 2006-06-29  Jim Meyering  <jim@meyering.net>
62073
62074         * modules/strftime (Maintainer): Add my name, since with the
62075         FPRINTFTIME changes strftime.c has forked from glibc.
62076
62077 2006-06-29  Eric Blake  <ebb9@byu.net>
62078
62079         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62080
62081 2006-06-29  Eric Blake  <ebb9@byu.net>
62082
62083         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62084
62085 2006-06-29  Eric Blake  <ebb9@byu.net>
62086
62087         * lib/stat_.h: New file.
62088
62089 2006-06-29  Eric Blake  <ebb9@byu.net>
62090
62091         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62092         unused static function.
62093
62094 2006-06-29  Eric Blake  <ebb9@byu.net>
62095
62096         * doc/functions.texi (Function Portability): Document missing lstat
62097         on mingw.
62098
62099 2006-06-29  Eric Blake  <ebb9@byu.net>
62100
62101         * MODULES.html.sh: Add sys_stat.
62102         * modules/sys_stat: New module.
62103         * modules/mkstemp (Depends-on): Add sys_stat.
62104
62105 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62106
62107         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62108
62109 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62110
62111         * m4/c-bs-a.m4: Removed.
62112
62113 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62114
62115         * lib/strftime.c: Assume strftime() exists.
62116
62117 2006-06-29  Derek Price  <derek@ximbiot.com>
62118
62119         * modules/c-bs-a: Removed - \a is C89.
62120         * MODULES.html.sh: Remove c-bs-a.
62121
62122 2006-06-29  Bruno Haible  <bruno@clisp.org>
62123
62124         * modules/wcwidth (License): Change to LGPL.
62125
62126 2006-06-28  Simon Josefsson  <jas@extundo.com>
62127
62128         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62129         on _WIN32.
62130
62131         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62132         getnameinfo.
62133
62134 2006-06-28  Simon Josefsson  <jas@extundo.com>
62135
62136         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62137
62138 2006-06-28  Simon Josefsson  <jas@extundo.com>
62139
62140         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62141         functions there.  It will succeed on Windows XP, but on Windows
62142         2000 and (presumably) earlier, it will fail, and use the internal
62143         re-implementation.
62144         (use_win32_p): New function.
62145         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62146         Support AI_NUMERICSERV to disable getservbyname.
62147         (getnameinfo): New function, only supports
62148         NI_NUMERICHOST|NI_NUMERICSERV for now.
62149
62150         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62151         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62152         getnameinfo.
62153
62154 2006-06-28  Eric Blake  <ebb9@byu.net>
62155
62156         * modules/wcwidth: New file.
62157         * modules/mbchar (Depends-on): Add wcwidth.
62158         * modules/mbswidth (Depends-on): Add wcwidth.
62159         * MODULES.html.sh: Add wcwidth.
62160
62161 2006-06-28  Eric Blake  <ebb9@byu.net>
62162
62163         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62164         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62165
62166 2006-06-28  Eric Blake  <ebb9@byu.net>
62167
62168         * lib/xvasprintf.h: Fix comments.
62169
62170 2006-06-28  Eric Blake  <ebb9@byu.net>
62171
62172         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62173         * lib/mbswidth.c (wcwidth): Move from here...
62174         * lib/wcwidth.h: ...to this new file.
62175
62176 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62177
62178         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62179
62180         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62181         it's obsolete.
62182         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62183
62184 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62185
62186         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62187         Autoconf 2.60 says this stuff was obsolete.
62188
62189 2006-06-28  Bruno Haible  <bruno@clisp.org>
62190
62191         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62192
62193 2006-06-28  Bruno Haible  <bruno@clisp.org>
62194
62195         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62196         gt_TYPE_WCHAR_T.
62197
62198 2006-06-28  Bruno Haible  <bruno@clisp.org>
62199
62200         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62201         declaration for wcwidth.
62202         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62203
62204 2006-06-28  Bruno Haible  <bruno@clisp.org>
62205
62206         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62207         (mkdir): Define using _mkdir.
62208
62209 2006-06-28  Bruno Haible  <bruno@clisp.org>
62210
62211         * lib/getaddrinfo.h: Fix POSIX URL.
62212         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62213         _WIN32.
62214         (use_win32_p): Make static.
62215         (getaddrinfo): Reject service name if it is empty or does not consist
62216         solely of decimal digits, or if its value is > 65535.
62217         (getnameinfo): Remove useless casts.
62218
62219 2006-06-27  Simon Josefsson  <jas@extundo.com>
62220
62221         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62222         Eggert and Martin Lambers.
62223
62224 2006-06-27  Simon Josefsson  <jas@extundo.com>
62225
62226         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62227         Eggert and Martin Lambers.
62228
62229 2006-06-27  Bruno Haible  <bruno@clisp.org>
62230
62231         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62232         result to 0, not to empty.
62233         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62234
62235 2006-06-27  Bruno Haible  <bruno@clisp.org>
62236
62237         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62238
62239 2006-06-26  Simon Josefsson  <jas@extundo.com>
62240
62241         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62242         present.
62243
62244 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62245
62246         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62247         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62248         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62249
62250 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62251
62252         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62253
62254 2006-06-26  Bruno Haible  <bruno@clisp.org>
62255
62256         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62257
62258 2006-06-26  Bruno Haible  <bruno@clisp.org>
62259
62260         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62261
62262 2006-06-26  Bruno Haible  <bruno@clisp.org>
62263
62264         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62265         SGI C compiler in pre-C99 mode.
62266         Suggested by Mark D. Baushke and Larry Jones.
62267
62268 2006-06-26  Bruno Haible  <bruno@clisp.org>
62269
62270         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62271         WCHAR_MAX.
62272         Reported by Mark D. Baushke and Larry Jones.
62273
62274 2006-06-26  Bruno Haible  <bruno@clisp.org>
62275
62276         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62277         in pre-C99 mode.
62278         Suggested by Mark D. Baushke and Larry Jones.
62279
62280 2006-06-23  Simon Josefsson  <jas@extundo.com>
62281             Bruno Haible  <bruno@clisp.org>
62282
62283         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62284         Emit mostlyclean-local rule.
62285         (func_emit_tests_Makefile_am): Likewise.
62286         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62287
62288 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62289
62290         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62291
62292 2006-06-23  Bruno Haible  <bruno@clisp.org>
62293
62294         * tests/test-stdint.c: Update to match ISO C 99 Technical
62295         Corrigendum 1.
62296
62297 2006-06-23  Bruno Haible  <bruno@clisp.org>
62298
62299         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62300
62301 2006-06-23  Bruno Haible  <bruno@clisp.org>
62302
62303         * lib/stdint_.h: Treat IRIX like OpenBSD.
62304
62305 2006-06-23  Bruno Haible  <bruno@clisp.org>
62306
62307         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62308         ISO C 99 Technical Corrigendum 1.
62309
62310 2006-06-22  Simon Josefsson  <jas@extundo.com>
62311
62312         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62313         MinGW.
62314
62315 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62316
62317         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62318         needed.  Some compiler complained about some of them.  Problem reported
62319         by Larry Jones in
62320         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62321
62322 2006-06-21  Simon Josefsson  <jas@extundo.com>
62323
62324         * tests/test-getaddrinfo.c: New file.
62325
62326         * modules/getaddrinfo-tests: New file.
62327
62328         * MODULES.html.sh: Add inet_pton.
62329
62330         * modules/inet_pton: New file.
62331
62332 2006-06-21  Simon Josefsson  <jas@extundo.com>
62333
62334         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62335         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62336         of using the (limited) gnulib implementation on Windows XP.
62337
62338         * m4/inet_pton.m4: New file.
62339
62340 2006-06-21  Simon Josefsson  <jas@extundo.com>
62341
62342         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62343         variable.
62344
62345         * lib/socket_.h: Don't define WINVER.
62346
62347         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62348         slightly modified to work in gnulib.
62349
62350 2006-06-21  Simon Josefsson  <jas@extundo.com>
62351
62352         * doc/gnulib.texi (Windows sockets): Add.
62353
62354 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62355
62356         * lib/read-file.c (fread_file): Start with buffer allocation of
62357         0 bytes rather than 1 byte; this simplifies the code.
62358         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62359         code to free buffer and save/restore errno.
62360         (internal_read_file): Remove unused local.
62361
62362 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62363
62364         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62365         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62366         Problem reported by Denis Excoffier in
62367         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62368
62369 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62370
62371         * modules/sys_socket, modules/socklen: Include sys/types since
62372         FreeBSD 4.x's sys/socket.h needs it.
62373
62374 2006-06-19  Simon Josefsson  <jas@extundo.com>
62375
62376         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62377
62378 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62379
62380         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62381
62382 2006-06-19  Bruno Haible  <bruno@clisp.org>
62383
62384         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62385         and FULL_PATH_INTTYPES_H in angle brackets.
62386         Reported by Mark D. Baushke <mdb@gnu.org>.
62387
62388 2006-06-17  Eric Blake  <ebb9@byu.net>
62389
62390         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62391         errno.
62392
62393 2006-06-17  Bruno Haible  <bruno@clisp.org>
62394
62395         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62396         <sys/inttypes.h>.
62397
62398 2006-06-17  Bruno Haible  <bruno@clisp.org>
62399
62400         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62401         whether errno is declared. Assume <errno.h> declares errno.
62402
62403 2006-06-17  Bruno Haible  <bruno@clisp.org>
62404
62405         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62406
62407 2006-06-17  Bruno Haible  <bruno@clisp.org>
62408
62409         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62410         problem on Solaris 2.5.1.
62411
62412 2006-06-16  Eric Blake  <ebb9@byu.net>
62413
62414         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62415         * lib/unicodeio.c [!defined errno]: Likewise.
62416         * lib/strtol.c [!defined errno]: Likewise.
62417         * lib/strtod.c [!defined errno]: Likewise.
62418
62419 2006-06-15  Eric Blake  <ebb9@byu.net>
62420
62421         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62422
62423 2006-06-15  Eric Blake  <ebb9@byu.net>
62424
62425         * config/srclist.txt (ssize_t.m4): Lose sync.
62426
62427 2006-06-15  Bruno Haible  <bruno@clisp.org>
62428
62429         * modules/stdint (Files): Include m4/full-header-path.m4,
62430         m4/size_max.m4, m4/wchar_t.m4.
62431         (Makefile.am): Many more substitutions.
62432         * modules/stdint-tests: New file.
62433         * tests/test-stdint.c: New file.
62434
62435 2006-06-15  Bruno Haible  <bruno@clisp.org>
62436
62437         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62438         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62439         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62440         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62441         gl_CHECK_TYPE_SAME): New macros.
62442
62443 2006-06-15  Bruno Haible  <bruno@clisp.org>
62444
62445         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62446
62447 2006-06-15  Bruno Haible  <bruno@clisp.org>
62448
62449         * lib/stdint_.h: Rewritten to be fully auto-configured.
62450         Fixes bug on HP-UX/IA64.
62451
62452 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62453
62454         * lib/getdate.y (__attribute__): Don't define if already defined.
62455         Problem reported by Larry Jones.
62456         * lib/utimens.c (__attribute__): Likewise.
62457
62458 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62459
62460         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62461         reported by Andreas Schwab.
62462
62463 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62464             Bruno Haible  <bruno@clisp.org>
62465
62466         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
62467         check for the declaration of strnlen and a run test that exposes the
62468         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
62469         rpl_strndup.
62470
62471 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62472             Bruno Haible  <bruno@clisp.org>
62473
62474         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
62475
62476 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62477
62478         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
62479         compile test, for Tru64 4.0D.
62480
62481 2006-05-28  Karl Berry  <karl@gnu.org>
62482
62483         * config/srclist.txt (printf-args.c): lose sync.
62484
62485 2006-05-26  Martin Lambers  <marlam@marlam.de>
62486
62487         * lib/getpass.c: Updates the test for the native W32 API, and adds
62488         missing includes, thus fixing compilation warnings.
62489
62490 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62491
62492         * lib/exclude.c (exclude_fnmatch): New function.
62493         (excluded_file_name): Call exclude_fnmatch.
62494         * lib/exclude.h (excluded_file_name): New prototype
62495
62496 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
62497
62498         * lib/tempname.c (small_open, large_open): New macros.
62499         (__open, __open64) [!_LIBC]: Remove.
62500         (__gen_tempname): Use small_open and large_open instead of __open
62501         and __open64.  This fixes a portability bug on HP-UX 11.11i
62502         reported by Simon Wing-Tang in
62503         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
62504
62505 2006-05-24  Bruno Haible  <bruno@clisp.org>
62506
62507         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
62508         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
62509         Reported by Thorsten Maerz <torte@netztorte.de> via
62510         Aaron Stone <aaron@serendipity.cx>.
62511
62512 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62513
62514         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
62515         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
62516         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
62517         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
62518         not really conditional on the cache.
62519         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62520
62521 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62522
62523         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
62524         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
62525         (my_usleep): Don't mishandle maximum value.
62526
62527 2006-05-19  Jim Meyering  <jim@meyering.net>
62528
62529         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
62530
62531 2006-05-17  Bruno Haible  <bruno@clisp.org>
62532
62533         Cygwin portability.
62534         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
62535
62536 2006-05-17  Bruno Haible  <bruno@clisp.org>
62537
62538         * lib/stdint_.h: Fix recognition of Cygwin.
62539
62540 2006-05-15  Bruno Haible  <bruno@clisp.org>
62541
62542         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
62543         on libtool patch by Ralf Wildenhues.
62544
62545 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62546
62547         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
62548         test for C99 conformance; (bool) 0.5 is an integer constant
62549         expression, but (bool) -0.5 is not.  Problem reported by Fedor
62550         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
62551
62552 2006-05-11  Simon Josefsson  <jas@extundo.com>
62553
62554         * m4/xvasprintf.m4: Fix obvious typo.
62555
62556 2006-05-11  Jim Meyering  <jim@meyering.net>
62557
62558         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
62559         James Lemley.
62560
62561 2006-05-10  Simon Josefsson  <jas@extundo.com>
62562
62563         * lib/md4.c: Typo fix, update copyright years.
62564         (K1, K2): Don't use L because it turn computations into 64-bit on
62565         64-bit platforms.
62566
62567 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
62568
62569         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
62570         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
62571         unwanted sign propagation, e.g., on hosts with 64-bit int.
62572         There still are some problems with reeelly weird theoretical hosts
62573         (e.g., 33-bit int) but it's not worth worrying about now.
62574         * lib/sha1.c (rol): Likewise.
62575         (K1, K2, K3, K4): Remove unnecessary L suffix.
62576
62577 2006-05-10  Bruno Haible  <bruno@clisp.org>
62578
62579         * lib/des.c: Cast to avoid warnings.
62580
62581 2006-05-09  Bruno Haible  <bruno@clisp.org>
62582
62583         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
62584         (Depends-on): Depend also on xsize, stdarg.
62585         (configure.ac): Add gl_XVASPRINTF.
62586
62587 2006-05-09  Bruno Haible  <bruno@clisp.org>
62588
62589         * m4/xvasprintf.m4: New file.
62590
62591 2006-05-09  Bruno Haible  <bruno@clisp.org>
62592
62593         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
62594         (EOVERFLOW): Define fallback value.
62595         (xstrcat): New function.
62596         (xvasprintf): Recognize the special case of a string concatenation.
62597
62598 2006-05-08  Eric Blake  <ebb9@byu.net>
62599
62600         * gnulib-tool (func_version): Base copyright year on CVS date.
62601         (func_emit_copyright_notice): New function.
62602         (func_emit_lib_Makefile_am): Use it.
62603         (func_emit_tests_Makefile_am): Likewise.
62604         (func_import): Likewise.
62605
62606 2006-05-08  Bruno Haible  <bruno@clisp.org>
62607
62608         * modules/stdarg: New file.
62609         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
62610
62611 2006-05-08  Bruno Haible  <bruno@clisp.org>
62612
62613         * m4/stdarg.m4: New file, from GNU gettext.
62614
62615 2006-05-08  Bruno Haible  <bruno@clisp.org>
62616
62617         * config/srclist.txt (build-aux/config.rpath): different from latest
62618         release.
62619
62620 2006-05-08  Bruno Haible  <bruno@clisp.org>
62621
62622         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
62623
62624 2006-05-05  Jim Meyering  <jim@meyering.net>
62625
62626         * m4/warning.m4: New file, derived from bison's file by the same name.
62627
62628 2006-05-03  Bruno Haible  <bruno@clisp.org>
62629
62630         * lib/stdint_.h: Shorter URL.
62631         * lib/inttypes.h: Likewise.
62632
62633 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62634
62635         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62636
62637 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62638
62639         * lib/verify.h: Document the internals better.  Most of this change
62640         was written by Bruno Haible.
62641
62642 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62643
62644         * doc/verify.texi: New file, partly based on a proposal by
62645         Bruno Haible.
62646
62647 2006-05-02  Bruno Haible  <bruno@clisp.org>
62648
62649         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62650         test from here...
62651         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62652
62653 2006-04-29  Bruno Haible  <bruno@clisp.org>
62654
62655         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62656         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62657
62658 2006-04-29  Bruno Haible  <bruno@clisp.org>
62659
62660         * gnulib-tool: Make --update option actually work.
62661
62662 2006-04-29  Bruno Haible  <bruno@clisp.org>
62663
62664         * doc/gcd.texi: New file.
62665         * doc/gnulib.texi: Include it.
62666
62667 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62668
62669         * lib/getdate.y (get_date): When adding relative date, start with the
62670         initial time, not with the result of the first mktime call.
62671
62672 2006-04-25  Bruno Haible  <bruno@clisp.org>
62673
62674         * gnulib-tool (func_import): Output the include directives in three
62675         blocks, sorted separately.
62676         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62677
62678 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62679
62680         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62681         to define main with arguments, for C++.  Reported by Eric Blake.
62682         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62683         Prefer 'int main ()' to 'int main (void)', for C++.
62684         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62685         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62686         for 'main', for C99 and C++.
62687
62688 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62689
62690         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62691         Don't assume that exit status -1 is valid.
62692         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62693         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62694         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62695         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62696         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62697         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62698         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62699         functions can be used without declaring them, or that you can
62700         exit with status -1.
62701         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62702
62703 2006-04-24  Karl Berry  <karl@gnu.org>
62704
62705         * config/srclist.txt (longdouble.m4): sync lost.
62706
62707 2006-04-24  Eric Blake  <ebb9@byu.net>
62708
62709         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62710
62711 2006-04-24  Bruno Haible  <bruno@clisp.org>
62712
62713         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62714         poll() implementation in AIX.
62715         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62716
62717 2006-04-24  Bruno Haible  <bruno@clisp.org>
62718
62719         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62720         assigned exactly once.
62721
62722 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62723             Bruno Haible  <bruno@clisp.org>
62724
62725         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62726         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62727         for AM_CPPFLAGS.
62728
62729 2006-04-23  Bruno Haible  <bruno@clisp.org>
62730
62731         * modules/copy-file: Depend on unistd.
62732         * modules/execute: Likewise.
62733         * modules/fatal-signal: Likewise.
62734         * modules/findprog: Likewise.
62735         * modules/mkdtemp : Likewise.
62736         * modules/pipe: Likewise.
62737         * modules/wait-process: Likewise.
62738
62739 2006-04-23  Bruno Haible  <bruno@clisp.org>
62740
62741         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
62742         condition was already detected.
62743         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62744
62745 2006-04-23  Bruno Haible  <bruno@clisp.org>
62746
62747         * lib/copy-file.c: Include <unistd.h> unconditionally.
62748         * lib/execute.c: Likewise.
62749         * lib/fatal-signal.c: Likewise.
62750         * lib/findprog.c: Likewise.
62751         * lib/mkdtemp.c: Likewise.
62752         * lib/pipe.h: Likewise.
62753         * lib/pipe.c: Likewise.
62754         * lib/wait-process.h: Likewise.
62755
62756 2006-04-23  Bruno Haible  <bruno@clisp.org>
62757
62758         * gnulib-tool (func_usage): Fix --import description. Document
62759         --update.
62760         (func_import): Create temporary file in a temporary directory, if
62761         --dry-run is specified. Silence errors from 'grep' when there are no
62762         m4 files in $m4dir.
62763         (func_create_testdir): Silence errors from 'grep' when there are no
62764         m4 files in $m4dir.
62765         Reported by Karl Berry <karl@freefriends.org>.
62766
62767 2006-04-20  Bruno Haible  <bruno@clisp.org>
62768
62769         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
62770         one argument, so that the code will be portable to Autoconf 2.60.
62771         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
62772         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62773         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
62774
62775 2006-04-19  Derek Price  <derek@ximbiot.com>
62776             Eric Blake  <ebb9@byu.net>
62777
62778         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
62779         rather than "/full/path.h".  Update comment to match.  Shorten &
62780         generalize m4_translit call via AS_TR_CPP.
62781
62782 2006-04-19  Derek Price  <derek@ximbiot.com>
62783             Eric Blake  <ebb9@byu.net>
62784
62785         * lib/inttypes.h: Correct grammar in comment.
62786
62787 2006-04-18  Derek Price  <derek@ximbiot.com>
62788             Paul Eggert  <eggert@cs.ucla.edu>
62789
62790         * modules/inttypes: New file.
62791         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
62792
62793 2006-04-18  Derek Price  <derek@ximbiot.com>
62794             Paul Eggert  <eggert@cs.ucla.edu>
62795
62796         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
62797         New files.
62798
62799 2006-04-18  Derek Price  <derek@ximbiot.com>
62800             Paul Eggert  <eggert@cs.ucla.edu>
62801
62802         * lib/inttypes.h: New file.
62803         * lib/strtoimax.c: Assume <inttypes.h>.
62804
62805 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
62806
62807         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
62808         isn't mounted.  Problem reported by Kir Kolyshkin.
62809
62810 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62811
62812         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
62813         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
62814         Derek R. Price.
62815         * lib/regex.h (RE_DUP_MAX): Update comment to match current
62816         implementation.
62817
62818 2006-04-12  Eric Blake  <ebb9@byu.net>
62819
62820         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
62821         is now done automatically by the corresponding Autoconf macro.
62822
62823 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
62824
62825         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
62826         time_r.h.
62827
62828 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62829
62830         Merge regex changes from libc, removing some of our
62831         POSIX-conformance changes that were rejected and redoing them in a
62832         less-intrusive way.
62833
62834         * lib/regcomp.c (re_compile_internal, init_dfa):
62835         Length arg is now size_t, not Idx.  All uses changed.
62836         (peek_token): Forward decl now says internal_function.
62837         (__re_error_msgid, __re_error_msgid_idx):
62838         Now static rather than extern with attribute_hidden.
62839         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
62840         For some reason libc prefers K&R style defns for external functions.
62841         (regerror) [!defined _LIBC]: Likewise.
62842         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
62843         (seek_collating_symbol_entry, lookup_collation_sequence_value):
62844         (build_range_exp, build_collating_symbol):
62845         Use K&R-style defn.
62846         (re_compile_fastmap): Use '\0' to memset, not 0.
62847         (utf8_sb_map): Make the calculations more obvious.
62848         (init_dfa, parse_bracket_exp, build_charclass_op):
62849         Call calloc and cast result, as glibc does.
62850         (init_word_char, fetch_token, peek_token, peek_token_bracket):
62851         (build_range_exp, build_collating_symbol):
62852         Now internal functions.
62853
62854         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
62855
62856         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
62857         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
62858         Don't depend on VMS; depend on __VMS instead, for POSIX
62859         namespace cleanness.
62860         (regoff_t): Define to ssize_t, not long int.
62861
62862         Remove the REG_ macros named below.  Instead, make the old names
62863         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
62864         __USE_GNU_REGEX.
62865         (REG_BACKSLASH_ESCAPE_IN_LISTS):
62866         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
62867         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
62868         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
62869         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
62870         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
62871         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
62872         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
62873         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
62874         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
62875         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
62876         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
62877         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
62878         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
62879         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
62880         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
62881         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
62882         (REG_NREGS):
62883         Remove.  All uses replaced by the old RE_* names.
62884         (RE_BACKSLASH_ESCAPE_IN_LISTS):
62885         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
62886         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
62887         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
62888         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
62889         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
62890         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
62891         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
62892         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
62893         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
62894         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
62895         Don't bother having these macros be independent of each others'
62896         values, since they no longer exist in the POSIX name space.
62897
62898         Rename the following member names back to their old names,
62899         unless !__USE_GNU_REGEX.  All uses changed back.
62900         (buffer): Renamed from re_buffer.
62901         (allocated): Renamed from re_allocated.
62902         (used): Renamed from re_used.
62903         (syntax): Renamed from re_syntax.
62904         (fastmap): Renamed from re_fastmap.
62905         (translate): Renamed from re_translate.
62906         (can_be_null): Renamed from re_can_be_null.
62907         (regs_allocated): Renamed from re_regs_allocated.
62908         (fastmap_accurate): Renamed from re_fastmap_accurate.
62909         (no_sub): Renamed from re_no_sub.
62910         (not_bol): Renamed from re_not_bol.
62911         (not_eol): Renamed from re_not_eol.
62912         (newline_anchor): Renamed from re_newline_anchor.
62913         (num_regs): Renamed from rm_num_regs.
62914         (start): Renamed from rm_start.
62915         (end): Renamed from rm_end.
62916
62917         (free_state): Move up a bit.
62918
62919         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
62920         #define to be empty.
62921         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
62922         when that is what is intended.
62923         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
62924         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
62925         (MAX): New macro.
62926         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
62927         All uses changed back to re_malloc, etc.  It's now the caller's
62928         responsibility to check for overflow; all callers changed.
62929         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
62930         (re_x2nrealloc): Remove.
62931         (free_state): Remove decl.
62932
62933         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
62934         (re_set_registers, re_exec):
62935         Use K&R-style defn.
62936
62937         2006-01-31  Roland McGrath  <roland@redhat.com>
62938
62939         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
62940         Reported by Mike Frysinger <vapier@gentoo.org>.
62941
62942         2006-01-15  Andreas Jaeger  <aj@suse.de>
62943
62944         [BZ #1950]
62945         * lib/regex_internal.c (re_string_reconstruct): Adjust for
62946         build_wcs_upper_buffer change.
62947         (build_wcs_upper_buffer): Change return type.
62948
62949         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
62950
62951         * lib/regex_internal.h: Include <stdint.h> if available.
62952
62953         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
62954
62955         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
62956
62957         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62958
62959         * lib/regcomp.c: Adjust for changed secondary hash function.
62960
62961         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
62962
62963         * lib/regex.h: Pretty printing.
62964         Clean up namespace a bit.
62965
62966         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
62967
62968         * lib/regexec.c (update_cur_sifted_state, check_arrival,
62969         check_arrival_add_next_nodes): Avoid using uninitialized variable.
62970
62971         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62972                     Ulrich Drepper  <drepper@redhat.com>
62973
62974         [BZ #1302]
62975         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
62976         changed.
62977         (bitset_word_t): Renamed from bitset_word.  All uses changed.
62978
62979         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
62980
62981         [BZ #281]
62982         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62983         * lib/regcomp.c: Remove unnecessary uses of
62984         unsigned RE_TRANSLATE_TYPE.
62985         * lib/regex_internal.h: Likewise.
62986         * lib/regex_internal.c: Likewise.
62987         * lib/regexec.c: Likewise.
62988         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62989
62990         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62991
62992         * lib/regexec.c (find_recover_state): Remove unnecessary
62993         initialization.
62994         (transit_state_bkref): Make DFA a const pointer.
62995         (get_subexp): Likewise.
62996         (check_arrival): Likewise.
62997         (update_cur_sifted_state): Likewise.
62998         (re_search_internal): Likewise.
62999         (prune_impossible_nodes): Likewise.
63000         (acquire_init_state_context): Likewise.
63001         (proceed_next_node): Likewise.
63002         (set_regs): Likewise.
63003         (free_fail_stack_return): Likewise.
63004         (check_arrival_expand_ecl): Mark DFA parameter as const.
63005         (check_arrival_expand_ecl_sub): Likewise.
63006         (check_subexp_limits): Likewise.
63007         (sub_epsilon_src_nodes):  Likewise.
63008         (add_epsilon_src_nodes):  Likewise.
63009         (merge_state_array): Likewise.
63010         (update_regs): Likewise.
63011         (build_trtable): Likewise.
63012         (sift_states_backward): Mark MCTX parameter as const.
63013         (build_sifted_states): Likewise.
63014         (update_cur_sifted_state): Likewise.
63015         (sift_states_mkref): Likewise.
63016         (check_arrival_expand_ecl): Mark eclosure as const.
63017         (check_dst_limits_calc_pos_1): Likewise.
63018         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63019         pointer.
63020
63021         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63022
63023         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63024         (transit_state_sb): Likewise.
63025         (transit_state_mb): Likewise.
63026         (sift_states_iter_mb): Likewise.
63027         (check_arrival_add_next_nodes): Likewise.
63028         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63029         [_LIBC] (re_search_2_stub): Use mempcpy.
63030
63031         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63032         mbrtowc for very simple UTF-8 case.
63033
63034         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63035         a pointer-to-const.
63036         (re_acquire_state_context): Likewise.
63037         * lib/regex_internal.h: Adjust prototypes.
63038
63039         * lib/regex.c: Prevent using C++ compilers.
63040
63041         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63042         (re_acquire_state_context): Likewise.
63043
63044 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63045
63046         * modules/regex (Depends-on): Add ssize_t.
63047
63048 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63049
63050         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63051         translation table.
63052
63053 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63054
63055         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63056
63057 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63058             Bruno Haible  <bruno@clisp.org>
63059
63060         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63061         <sys/types.h> and <inttypes.h>.
63062
63063 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63064
63065         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63066         `__error_t_defined', so argp.h will not typedef the former.
63067
63068 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63069
63070         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63071         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63072         glibc names.  Even if glibc is changed to conform to POSIX, the
63073         traditional names will be available anyway, since regex depends on
63074         the extensions module.  Also, fix a longstanding typo in the
63075         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63076         reported by Emanuele Giaquinta.  Also, change sense of cached
63077         variable, so that the message makes sense.
63078
63079 2006-03-24  Simon Josefsson  <jas@extundo.com>
63080
63081         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63082         including some doc fixes.
63083         (base64_encode_alloc): Fix +1 bug on allocation failures.
63084
63085 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63086
63087         * lib/base64.c (base64_encode): Do not read past end of array with
63088         unsanitized input on systems with CHAR_BIT > 8.
63089
63090 2006-03-24  Eric Blake  <ebb9@byu.net>
63091
63092         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63093
63094 2006-03-22  Karl Berry  <karl@gnu.org>
63095
63096         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63097         * config/srclistvars.sh (COREUTILS): new var.
63098
63099 2006-03-17  Jim Meyering  <jim@meyering.net>
63100
63101         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63102         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63103
63104 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63105
63106         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63107         no longer needs it.  Instead, check that regoff_t is as least
63108         as wide as ptrdiff_t.
63109
63110         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63111         so that our regex.h stays compatible with the installed regex.
63112         This is helpful for installers who configure --without-included-regex.
63113         Problem reported by Emanuele Giaquinta.
63114
63115 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63116
63117         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63118         Typedef to long int, not to off_, as POSIX will likely change
63119         in that direction.
63120
63121 2006-03-15  Eric Blake  <ebb9@byu.net>
63122
63123         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63124
63125 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63126
63127         * lib/argp-help.c (validate_uparams): Fix typo
63128         * lib/argp-parse.c (argp_default_options): Consistently begin help
63129         messages with a lowercase letter.
63130
63131 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63132
63133         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63134         overrun buffers and shouldn't be used (much as gets shouldn't be
63135         used).
63136         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63137
63138 2006-03-08  Simon Josefsson  <jas@extundo.com>
63139
63140         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63141         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63142
63143 2006-03-08  Simon Josefsson  <jas@extundo.com>
63144
63145         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63146         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63147
63148 2006-03-08  Simon Josefsson  <jas@extundo.com>
63149
63150         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63151         signal that configure disabled the device.
63152
63153 2006-03-08  Simon Josefsson  <jas@extundo.com>
63154
63155         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63156         languages.
63157
63158 2006-03-07  Simon Josefsson  <jas@extundo.com>
63159
63160         * modules/getopt (Depends-on): Add unistd.
63161
63162         * modules/unistd: New file.
63163
63164 2006-03-07  Simon Josefsson  <jas@extundo.com>
63165
63166         * modules/gc-random: New file.
63167
63168 2006-03-07  Simon Josefsson  <jas@extundo.com>
63169
63170         * m4/unistd_h.m4: New file.
63171
63172 2006-03-07  Simon Josefsson  <jas@extundo.com>
63173
63174         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63175         test to be side-effect free by storing the result in the cache
63176         variable gl_cv_lib_readline, and moving the assignment of
63177         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63178         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63179
63180 2006-03-07  Simon Josefsson  <jas@extundo.com>
63181
63182         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63183         error on missing devices (the functions will return an error).
63184
63185         * m4/gc.m4: Move random stuff to gc-random.m4
63186
63187 2006-03-07  Simon Josefsson  <jas@extundo.com>
63188
63189         * lib/unistd_.h: New file.
63190
63191 2006-03-07  Simon Josefsson  <jas@extundo.com>
63192
63193         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63194
63195 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63196
63197         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63198         Problem reported by Juan Manuel Guerrero.
63199
63200 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63201
63202         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63203         the unistd module.
63204         * lib/getlogin_r.c: Likewise.
63205         * lib/getlogin_r.h: Likewise.
63206         * lib/glob.c: Likewise.
63207         * lib/pagealign_alloc.c: Likewise.
63208         * lib/unistd_.h: Remove; no longer needed.
63209
63210 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63211
63212         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63213         Add unistd.
63214         * modules/c-stack (Depends-on): Add unistd.
63215         * modules/getlogin_r: Likewise.
63216         * modules/glob: Likewise.
63217         * modules/pagealign_alloc: Likewise.
63218         * modules/unistd (Files): Remove lib/unistd_.h.
63219         (EXTRA_DIST): Remove.
63220         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63221         need unistd_.h.
63222         (MOSTLYCLEANFILES): Remove unistd.h-t.
63223
63224 2006-03-03  Simon Josefsson  <jas@extundo.com>
63225
63226         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63227
63228 2006-03-03  Simon Josefsson  <jas@extundo.com>
63229
63230         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63231         libidn and bison.
63232
63233 2006-03-03  Simon Josefsson  <jas@extundo.com>
63234
63235         * build-aux/maint.mk: Add indent target.
63236
63237 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63238
63239         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63240         our replacement poll.h in any case, to avoid a differing
63241         declaration from a system header.  Seen on AIX.
63242
63243 2006-03-01  Simon Josefsson  <jas@extundo.com>
63244
63245         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63246         <kasal@ucw.cz>.
63247
63248 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63249
63250         * modules/gettime (Depends-on): Add extensions module.
63251         * modules/nanosleep (Depends-on): Likewise.
63252         * modules/settime (Depends-on): Likewise.
63253
63254 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63255
63256         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63257         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63258         pedantically.
63259         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63260         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63261
63262         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63263         not "==".  Reported by Ralf Wildenhues.
63264
63265 2006-03-01  Karl Berry  <karl@gnu.org>
63266
63267         * doc/Copyright/request-*: new files, synced from gnuorg.
63268
63269 2006-03-01  Karl Berry  <karl@gnu.org>
63270
63271         * config/srclist.txt (Copyright/*): new entries.
63272
63273 2006-02-28  Simon Josefsson  <jas@extundo.com>
63274
63275         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63276
63277 2006-02-27  Simon Josefsson  <jas@extundo.com>
63278
63279         * lib/base64.h: Indent #define's.  From Jim Meyering
63280         <jim@meyering.net>.
63281
63282 2006-02-27  Jim Meyering  <jim@meyering.net>
63283
63284         Revert the change of 2006-02-24, so these files can continue
63285         to be sync'd from gettext.
63286         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63287         of `config.h'.
63288
63289 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63290
63291         * modules/intprops: New file.
63292         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63293         Add intprops.
63294         * modules/getloadavg (Files): Remove lib/intprops.h.
63295         (Depends-on): Add intprops.
63296         * modules/human: Likewise.
63297         * modules/inttostr: Likewise.
63298         * modules/openat: Likewise.
63299         * modules/sig2str: Likewise.
63300         * modules/userspec: Likewise.
63301         * modules/utimecmp: Likewise.
63302         * modules/xnanosleep: Likewise.
63303         * modules/xstrtol: Likewise.
63304
63305 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63306
63307         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63308         * modules/lock-tests (TESTS): Use $(EXEEXT).
63309         * modules/tls-tests: Likewise.
63310         * modules/argp-tests: Likewise.
63311         (check_PROGRAMS): New var, replacing...
63312         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63313
63314 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63315
63316         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63317         `config.h'.
63318
63319 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63320
63321         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63322
63323 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63324
63325         Sync from coreutils.
63326         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63327         gl_CHDIR_SAFER.
63328
63329 2006-02-22  Jim Meyering  <jim@meyering.net>
63330
63331         Sync from coreutils.
63332         * m4/chdir-safer.m4: New file.
63333
63334 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63335
63336         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63337         AT_FDCWD exceeds INT_MAX.
63338         * lib/openat.h (AT_FDCWD): Likewise.
63339
63340 2006-02-17  Eric Blake  <address@hidden>
63341
63342         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63343
63344 2006-02-16  Simon Josefsson  <jas@extundo.com>
63345
63346         * modules/getaddrinfo (Depends-on): Add sys_socket.
63347
63348 2006-02-15  Simon Josefsson  <jas@extundo.com>
63349
63350         * build-aux/maint.mk: Add dsyntax-check rule.
63351
63352 2006-02-15  Eric Blake  <ebb9@byu.net>
63353
63354         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63355         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63356         'present but cannot compile' warnings on cygwin.
63357         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63358         use ws2tcpip.h if sys/socket.h works.
63359         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63360         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63361
63362 2006-02-14  Simon Josefsson  <jas@extundo.com>
63363
63364         * modules/maintainer-makefile (Files): Rename.
63365
63366         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63367         and (the local) Makefile.cfg to maint-cfg.mk.
63368
63369         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63370         to the latter.
63371
63372         * modules/maintainer-makefile: New module.
63373
63374         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63375         severaly stripped to make it possible to build it up from scratch
63376         with reliable tests.
63377
63378         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63379         fixes to permit overriding the default actions when configure and
63380         makefile are not available.
63381
63382 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63383
63384         Sync from coreutils.
63385         * modules/lstat (Depends-on): Don't depend on xalloc.
63386         (License): Change from GPL to LGPL, since this is now simply a
63387         replacement for a libc function.
63388
63389 2006-02-14  Jim Meyering  <jim@meyering.net>
63390
63391         Sync from coreutils.
63392
63393         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63394         failure on deficient systems, and simplify gnulib lgpl dependencies.
63395         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63396         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63397
63398         * lib/xalloc-die.c: Remove unused definition of N_.
63399
63400 2006-02-14  Jim Meyering  <jim@meyering.net>
63401
63402         Sync from coreutils.
63403         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63404         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63405         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63406         double-quote uses of that variable, to accommodate the rare case in
63407         which getmntent is available in none of the libraries checked.  This
63408         happens at least on FreeBSD 5.0.
63409
63410 2006-02-13  Simon Josefsson  <jas@extundo.com>
63411
63412         * gnulib-tool (Usage): Fix --import, from
63413         karl@freefriends.org (Karl Berry).
63414
63415 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63416
63417         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63418
63419 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63420
63421         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63422         "autoupdate" on 2005-12-12.
63423
63424 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63425
63426         * modules/closeout (Depends-on): Remove atexit.
63427
63428 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63429
63430         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63431         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63432
63433 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63434
63435         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63436         __EXTENSIONS__ if this causes compilation to fail.  Problem
63437         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63438         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63439
63440 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63441
63442         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63443         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63444         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63445         All uses changed.
63446
63447 2006-01-26  Simon Josefsson  <jas@extundo.com>
63448
63449         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63450         prototype is visible on mingw32.
63451
63452         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63453         for mingw32.
63454
63455         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63456         mingw32).
63457
63458 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63459
63460         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63461         attempt to open for write; this always fails, at least on POSIX
63462         hosts.  This reinstates the 2006-01-09 change, which was
63463         inadvertently removed.
63464
63465 2006-01-26  Bruno Haible  <bruno@clisp.org>
63466
63467         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
63468         Reported by Paul Eggert.
63469
63470 2006-01-26  Bruno Haible  <bruno@clisp.org>
63471             Paul Eggert  <eggert@cs.ucla.edu>
63472
63473         * lib/stdbool_.h (_Bool)
63474         [(! (defined __cplusplus || defined __BEOS__)
63475           && !defined __GNUC__
63476           && !(defined __HP_cc || defined __xlc__
63477                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
63478                || defined __sgi))]:
63479         #define to signed char in these cases too; this simplifies
63480         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
63481         etc., separately) and makes it more conservative.
63482
63483 2006-01-25  Simon Josefsson  <jas@extundo.com>
63484
63485         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
63486         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
63487         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
63488
63489 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63490
63491         * lib/argp-namefrob.h: Bugfix. Remove stray #
63492
63493 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63494
63495         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
63496         so that we test the test.
63497         Check for yet another HP-UX cc bug involving *bool |= bool.
63498
63499 2006-01-25  Karl Berry  <karl@gnu.org>
63500
63501         * config/srclist.txt (vasnprintf.c): sync lost.
63502
63503 2006-01-25  Jim Meyering  <jim@meyering.net>
63504
63505         Sync from the stable (b5) branch of coreutils:
63506
63507         * lib/fts.c (fts_children): Don't let close() clobber errno from
63508         failed fchdir().
63509
63510         * lib/fts.c (fts_stat): When following a symlink-to-directory,
63511         don't necessarily interpret stat-fails+lstat-succeeds as indicating
63512         a dangling symlink.  That can also happen at least for ELOOP.
63513         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
63514         FYI, this bug predates the inclusion of fts.c in coreutils.
63515
63516         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
63517         in their own block, so pre-c99 compilers don't object.
63518
63519         Avoid the double-free (first in fts_read, second in fts_close) that
63520         would occur when an `active' directory is made inaccessible (e.g.,
63521         via chmod a-x) during a traversal.
63522         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63523         before returning.  Reproduce this failure by
63524         mkdir -p a/b; cd a; chmod a-x . b
63525         Reported by Stavros Passas.
63526
63527 2006-01-25  Jim Meyering  <jim@meyering.net>
63528
63529         * lib/fileblocks.c: Remove more useless parentheses.
63530         * lib/readutmp.h: Likewise.
63531
63532 2006-01-25  Bruno Haible  <bruno@clisp.org>
63533
63534         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
63535         warnings.
63536         Reported by Paul Eggert.
63537
63538 2006-01-25  Bruno Haible  <bruno@clisp.org>
63539
63540         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
63541         rid of a trap command. For Solaris sh.
63542         Reported by Mark D. Baushke <mdb@gnu.org>.
63543
63544 2006-01-24  Simon Josefsson  <jas@extundo.com>
63545
63546         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
63547         Bruno.
63548
63549 2006-01-24  Karl Berry  <karl@gnu.org>
63550
63551         * config/srclist.txt (argp-namefrob.h): sync lost.
63552
63553 2006-01-24  Jim Meyering  <jim@meyering.net>
63554
63555         * modules/openat (Files): Add lib/intprops.h.
63556         From Mark D. Baushke.
63557
63558 2006-01-24  Jim Meyering  <jim@meyering.net>
63559
63560         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
63561         Reported by Mark D. Baushke.
63562
63563 2006-01-24  Jim Meyering  <jim@meyering.net>
63564
63565         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
63566
63567 2006-01-24  Bruno Haible  <bruno@clisp.org>
63568
63569         * modules/strnlen (Maintainer): Change from glibc to all.
63570
63571 2006-01-24  Bruno Haible  <bruno@clisp.org>
63572
63573         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
63574         Patch by Paul Eggert.
63575
63576 2006-01-24  Bruno Haible  <bruno@clisp.org>
63577
63578         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
63579         already has it.
63580         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
63581         2005-11-26.
63582
63583         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
63584         'signed char' to avoid problems with the built-in _Bool type.
63585         Reported by Paul Eggert on 2005-11-26.
63586
63587 2006-01-24  Bruno Haible  <bruno@clisp.org>
63588
63589         * gnulib-tool (func_import): Avoid constructing complicated sed
63590         expressions inside backquote.
63591         Report and solution by Mark D. Baushke <mdb@gnu.org>.
63592
63593 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
63594
63595         These changes imported from libc.
63596         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
63597         test and two separate function calls.
63598         * lib/strndup.c (__strndup): Add libc_hidden_def.
63599
63600 2006-01-23  Simon Josefsson  <jas@extundo.com>
63601
63602         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
63603         Remove the test_*_SOURCES variable: automake infers it by default.
63604         * modules/tls-tests: Likewise.
63605
63606 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63607
63608         Work around porting bugs reported by Dieter in
63609         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
63610         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
63611         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
63612         Include "getopt.h" first, to check interface.
63613         (getenv): Declare only if defined HAVE_DECL_GETENV &&
63614         !HAVE_DECL_GETENV.
63615         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
63616         (__strndup): Revert to K&R-style function dfns, the glibc style.
63617         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
63618         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
63619         Include strnlen.h first, to get prototype properly.
63620         (strnlen): Renamed from __strnlen.
63621         Remove weak alias.
63622
63623 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63624
63625         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
63626
63627 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63628
63629         * config/srclist.txt: Adjust to reflect glibc reorganization.
63630         This affects only comments.
63631
63632 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63633
63634          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63635          Reported by Bruce Korb <bkorb@gnu.org>.
63636
63637 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63638
63639         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63640         to pacify gcc -Wswitch-default.
63641
63642 2006-01-22  Bruno Haible  <bruno@clisp.org>
63643
63644         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63645         temporary buffer for sprintf, take into account the precision also
63646         for 'd', 'i', 'u', 'o', 'x', 'X'.
63647
63648 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63649
63650         * modules/argp-tests: New module
63651         * tests/test-argp.c: New file
63652         * tests/test-argp-2.sh: New file
63653
63654 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63655
63656         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63657         (__argp_base_name): Removed
63658         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63659         typo.
63660         (__argp_base_name): Provide macro definition or extern declaration
63661         depending on the configuration
63662
63663 2006-01-20  Simon Josefsson  <jas@extundo.com>
63664
63665         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63666
63667 2006-01-20  Simon Josefsson  <jas@extundo.com>
63668
63669         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63670
63671 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63672
63673         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63674         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63675         Suggested by Bruno Haible.
63676
63677 2006-01-20  Karl Berry  <karl@gnu.org>
63678
63679         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63680         until changes propagate, I guess.
63681
63682 2006-01-19  Simon Josefsson  <jas@extundo.com>
63683
63684         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63685
63686 2006-01-19  Simon Josefsson  <jas@extundo.com>
63687
63688         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63689
63690 2006-01-19  Simon Josefsson  <jas@extundo.com>
63691
63692         * gnulib-tool: Set check_PROGRAMS.
63693
63694         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63695         modules/des-tests, modules/gc-arcfour-tests,
63696         modules/gc-arctwo-tests, modules/gc-des-tests,
63697         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63698         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63699         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63700         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63701         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63702         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63703         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63704         test_*_SOURCES.
63705
63706 2006-01-18  Simon Josefsson  <jas@extundo.com>
63707
63708         * modules/socklen (Depends-on): Depend on sys_socket.
63709
63710 2006-01-18  Simon Josefsson  <jas@extundo.com>
63711
63712         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63713         modules/des-tests, modules/gc-arcfour-tests,
63714         modules/gc-arctwo-tests, modules/gc-des-tests,
63715         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63716         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63717         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63718         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63719         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63720         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63721         $(EXEEXT) to automake TESTS variable, for mingw32.
63722
63723 2006-01-17  Simon Josefsson  <jas@extundo.com>
63724
63725         * modules/socklen (Include): Need sys/socket.h.
63726
63727 2006-01-17  Bruno Haible  <bruno@clisp.org>
63728
63729         * modules/ssize_t (Include): Add <sys/types.h>.
63730
63731 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63732
63733         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63734         it's not portable and it doesn't work with cross-compiles.
63735         Problem reported by Bruno Haible.  Fix missing-$ typo in
63736         'test "gl_cv_ignore_unused_libraries" ...' that prevented
63737         -zignore from being used with Sun's C compiler.
63738
63739 2006-01-12  Simon Josefsson  <jas@extundo.com>
63740
63741         * lib/base64.c: Fix warning, reported by Bruno Haible
63742         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
63743
63744 2006-01-12  Bruno Haible  <bruno@clisp.org>
63745
63746         * modules/ldd: New file.
63747         * build-aux/ldd.sh.in: New file.
63748         * MODULES.html.sh (Support for building libraries and executables): Add
63749         ldd.
63750
63751 2006-01-12  Bruno Haible  <bruno@clisp.org>
63752
63753         * m4/ldd.m4: New file.
63754
63755 2006-01-12  Bruno Haible  <bruno@clisp.org>
63756
63757         * gnulib-tool (func_import, func_create_testdir): Don't go into an
63758         endless loop while replacing $auxdir with build-aux.
63759
63760 2006-01-11  Simon Josefsson  <jas@extundo.com>
63761
63762         * lib/stdint_.h (SIZE_MAX): Add missing (.
63763
63764 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
63765
63766         Sync from coreutils.
63767         * lib/md5.c: Fix commentary typos.
63768         (alignof, UNALIGNED_P): No need for a GCC-specific version.
63769         * lib/md5.h (__attribute__): Remove; unused.
63770         * lib/sha1.c: Fix commentary to match md5 better.
63771         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
63772         so that we don't need to worry about alignment.  All uses changed.
63773         This merges the 2005-10-28 md5 change into sha1.
63774
63775 2006-01-11  Jim Meyering  <jim@meyering.net>
63776
63777         Sync from coreutils.
63778         * lib/md5.c (OP): Fix spacing.
63779
63780 2006-01-11  Bruno Haible  <bruno@clisp.org>
63781
63782         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63783         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
63784         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
63785
63786 2006-01-11  Bruno Haible  <bruno@clisp.org>
63787
63788         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63789         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
63790         the "early" section as well.
63791
63792 2006-01-11  Bruno Haible  <bruno@clisp.org>
63793
63794         Avoid "ar: no archive members specified" error on MacOS X.
63795         * gnulib-tool (func_modules_add_dummy): New function.
63796         (func_import, func_create_testdir): Invoke it.
63797
63798 2006-01-11  Bruno Haible  <bruno@clisp.org>
63799
63800         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
63801         with $auxdir in AC_CONFIG_FILES statements.
63802
63803 2006-01-11  Bruno Haible  <bruno@clisp.org>
63804
63805         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63806         Initialize also noinst_HEADERS to empty.
63807
63808 2006-01-11  Bruno Haible  <bruno@clisp.org>
63809
63810         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
63811         variables.
63812         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
63813         autoreconf.
63814
63815 2006-01-11  Bruno Haible  <bruno@clisp.org>
63816
63817         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
63818         overridable by the user.
63819         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63820
63821 2006-01-10  Simon Josefsson  <jas@extundo.com>
63822
63823         * modules/sys_socket: New file.
63824
63825 2006-01-10  Simon Josefsson  <jas@extundo.com>
63826
63827         * m4/sys_socket_h.m4: New file.
63828
63829 2006-01-10  Simon Josefsson  <jas@extundo.com>
63830
63831         * lib/socket_.h: New file.
63832
63833 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63834
63835         * modules/readutmp (Maintainer): Add myself.
63836
63837 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63838
63839         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
63840         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
63841         People who are still concerned with buggy memcmp implementations
63842         can invoke gl_FUNC_MEMCMP themselves.
63843
63844 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63845
63846         * lib/regex_internal.h (BITSET_WORD_BITS):
63847         Work around a bug in 64-bit PGC (before version 6.1-2), where the
63848         preprocessor mishandles large unsigned values as if they were signed.
63849         Problem reported by Claudio Fontana in
63850         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
63851
63852 2006-01-10  Jim Meyering  <jim@meyering.net>
63853
63854         Avoid the double-free (first in fts_read, second in fts_close) that
63855         would occur when an `active' directory is made inaccessible (e.g.,
63856         via chmod a-x) during a traversal.
63857         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63858         before returning.  Reproduce this failure by
63859         mkdir -p a/b; cd a; chmod a-x . b
63860         Reported by Stavros Passas.
63861
63862         Sync from coreutils.
63863         * lib/sha1.c: Tweak grammar in a comment.
63864
63865 2006-01-10  Jim Meyering  <jim@meyering.net>
63866
63867         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
63868         Patch by Joerg Sonnenberger.
63869
63870 2006-01-10  Bruno Haible  <bruno@clisp.org>
63871
63872         * modules/readutmp: Depend on module free.
63873         * modules/strtok_r: Depend on module restrict.
63874
63875 2006-01-10  Bruno Haible  <bruno@clisp.org>
63876
63877         * modules/gettext (configure.ac): Add an invocation of
63878         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
63879
63880 2006-01-10  Bruno Haible  <bruno@clisp.org>
63881
63882         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
63883         Reported by Werner Lemberg <wl@gnu.org>.
63884
63885 2006-01-10  Bruno Haible  <bruno@clisp.org>
63886
63887         * lib/localcharset.c: Update from GNU gettext.
63888
63889 2006-01-10  Bruno Haible  <bruno@clisp.org>
63890
63891         * lib/argp.h (__const): Remove macro. Use const instead.
63892         * lib/argp-fmtstream.h (__const): Likewise.
63893         * lib/glob_.h (__const): Remove macro.
63894         * lib/glob-libc.h: Use const instead of __const.
63895
63896 2006-01-10  Bruno Haible  <bruno@clisp.org>
63897
63898         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
63899         variable.
63900         Needed to avoid an automake error regarding the 'gettext' module.
63901
63902 2006-01-09  Simon Josefsson  <jas@extundo.com>
63903
63904         * modules/inet_ntop (Depends-on): Add restrict.
63905
63906 2006-01-09  Simon Josefsson  <jas@extundo.com>
63907
63908         * modules/gc-rijndael-tests (License): Put under LGPL.
63909
63910         * modules/gc-des-tests (License): Likewise.
63911
63912         * modules/gc-arcfour-tests (License): Likewise.
63913
63914         * modules/gc-arctwo-tests (License): Likewise.
63915
63916         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
63917
63918         * modules/gc-hmac-sha1-tests (Files): Likewise.
63919
63920         * modules/gc-hmac-md5-tests (License): Likewise.
63921
63922         * modules/gc-sha1-tests (License): Likewise.
63923
63924         * modules/gc-md5-tests (License): Likewise.
63925
63926         * modules/gc-md4-tests (License): Likewise.
63927
63928         * modules/gc-md2-tests (License): Likewise.
63929
63930         * modules/gc-tests (License): Likewise.
63931
63932         * modules/des-tests (License): Likewise.
63933
63934         * modules/md4-tests (License): Likewise.
63935
63936         * modules/md2-tests (License): Likewise.
63937
63938 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63939
63940         Sync from coreutils:
63941
63942         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
63943         * modules/lib-ignore: New file.
63944         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
63945         chdir-safer.m4, lchmod.m4.
63946         * modules/openat: Add mkdirat.c, openat-priv.h.
63947
63948 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63949
63950         Sync from coreutils.
63951         * m4/lib-ignore.m4: New file.
63952         * m4/lchmod.m4: New file.
63953
63954 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63955
63956         Sync from coreutils.
63957         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
63958         for write access: POSIX says that must fail.
63959         * lib/fts.c (diropen): Likewise.
63960         * lib/save-cwd.c (save_cwd): Likewise.
63961         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
63962         well, for minor improvements on hosts that lack O_DIRECTORY.
63963         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
63964         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
63965         Fall back on chown if open failed with EACCES.
63966
63967         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
63968         Report an error at compile-time if only a 1-second nominal clock
63969         resolution is found.
63970
63971         * lib/lchmod.h: New file.
63972         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
63973         (make_dir_parents): Use lchown rather than chown, and
63974         lchmod rather than chmod.
63975
63976         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
63977         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
63978         "proc" reported by n0dalus.
63979
63980         * lib/mountlist.c: Include <limits.h>.
63981         (dev_from_mount_options)
63982         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63983         New function.  It no longer assumes "dev=" has the System V meaning
63984         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63985         (read_file_system_list)
63986         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63987         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63988         dev= in that case.
63989
63990         * lib/posixtm.h (PDS_PRE_2000): New macro.
63991         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63992         allow_century.  All usages changed.  Reject dates outside the range
63993         1969-1999 if PDS_PRE_2000 is used.
63994
63995 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63996
63997         Sync from coreutils.
63998         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63999         (Time of day items): Mention the possibility of leap seconds.
64000         Problem reported by Dr. David Alan Gilbert.
64001
64002 2006-01-09  Jim Meyering  <jim@meyering.net>
64003
64004         Sync from coreutils.
64005
64006         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64007
64008         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64009
64010         * lib/modechange.c (mode_compile): Reject an invalid mode string
64011         that starts with an octal digit.  From Andreas Gruenbacher.
64012
64013         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64014         and dup to open_safer and dup_safer, respectively.
64015         (openat_permissive): Fix typo in comment.
64016
64017         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64018         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64019         (_): Remove; no longer needed.
64020         (openat): Renamed from rpl_openat; no need for rpl_openat
64021         since openat.h renames openat for us.
64022         Replace most of the body with a call to openat_permissive,
64023         to avoid duplicate code.
64024         Port to (probably hypothetical) environments were mode_t is
64025         wider than int.
64026         (openat_permissive): Require mode arg, so that we can check
64027         types better.  Put it just after flags.  Change cwd failure
64028         indicator from pointer-to-bool to pointer-to-errno-value.
64029         All callers changed.
64030         Invoke openat_save_fail and/or openat_restore_fail if
64031         cwd_errno is null, so that openat can call us.
64032         (openat_permissive, fdopendir, fstatat, unlinkat):
64033         Simplify errno handling to avoid some duplicate code,
64034         as it's OK to set errno on success.
64035         * lib/openat.h: Revamp code so that function macros depend on
64036         __OPENAT_PREFIX only, not also on AT_FDCWD.
64037         (openat_ro): Remove.  Caller changed to use openat_permissive.
64038         (openat_permissive): Now a macro, if not a function.
64039         (openat_restore_fail, openat_save_fail): Now always functions,
64040         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64041
64042         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64043         and openat.c.
64044         * lib/mkdirat.c: Include openat-priv.h.
64045         Remove definitions of macros defined therein.
64046         * lib/openat.c: Likewise.
64047
64048         * lib/mkdirat.c (mkdirat): New file and function.
64049         * lib/openat.h (mkdirat): Declare.
64050
64051         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64052
64053         * lib/openat.h (openat_permissive): Declare.
64054         (openat_ro): Define.
64055
64056         * lib/openat.c (EXPECTED_ERRNO): New macro.
64057         (openat_permissive): New function -- used in remove.c rewrite.
64058         (all functions): Set errno just before returning, only if there
64059         was an actual failure.
64060         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64061
64062         Emulate openat-family functions using Linux's procfs, if possible.
64063         Idea and some code based on Ulrich Drepper's glibc changes.
64064
64065         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64066         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64067         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64068         before falling back on save_cwd and restore_cwd.
64069         (fdopendir, fstatat, unlinkat): Likewise.
64070
64071         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64072         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64073
64074         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64075         as second argument to va_arg.  Otherwise, some versions of gcc
64076         warn that `if this code is reached, the program will abort'.
64077
64078 2006-01-09  Jim Meyering  <jim@meyering.net>
64079
64080         Sync from coreutils.
64081         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64082         Require openat-priv.h.
64083
64084 2006-01-09  Bruno Haible  <bruno@clisp.org>
64085
64086         * modules/strnlen (Include): Use strnlen.h.
64087
64088 2006-01-09  Bruno Haible  <bruno@clisp.org>
64089
64090         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64091
64092 2006-01-09  Bruno Haible  <bruno@clisp.org>
64093
64094         * lib/sysexit_.h (EX_OK): New macro.
64095         Suggested by Martin Lambers <marlam@marlam.de>.
64096
64097 2006-01-09  Bruno Haible  <bruno@clisp.org>
64098
64099         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64100         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64101
64102 2006-01-09  Bruno Haible  <bruno@clisp.org>
64103
64104         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64105         numbers.
64106
64107 2006-01-09  Bruno Haible  <bruno@clisp.org>
64108
64109         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64110         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64111         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64112         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64113
64114 2006-01-09  Bruno Haible  <bruno@clisp.org>
64115
64116         * build-aux/javacomp.sh.in: New file, moved from lib/.
64117         * modules/javacomp-script (Files): Update.
64118         (configure.ac): Add AC_CONFIG_FILES invocation.
64119         (EXTRA_DIST): Remove variable.
64120
64121         * build-aux/javaexec.sh.in: New file, moved from lib/.
64122         * modules/javaexec (Files): Update.
64123         (configure.ac): Add AC_CONFIG_FILES invocation.
64124         (EXTRA_DIST): Remove javaexec.sh.in.
64125
64126         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64127         * modules/csharpcomp-script (Files): Update.
64128         (configure.ac): Add AC_CONFIG_FILES invocation.
64129         (EXTRA_DIST): Remove variable.
64130
64131         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64132         * modules/csharpexec (Files): Update.
64133         (configure.ac): Add AC_CONFIG_FILES invocation.
64134         (EXTRA_DIST): Remove csharpexec.sh.in.
64135
64136 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64137
64138         Sync from coreutils.
64139
64140         Add POSIX ACL support
64141         * lib/acl.h (copy_acl, set_acl): Add declarations.
64142         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64143         systems other than Linux.
64144         (chmod_or_fchmod): New function: use fchmod when possible,
64145         and chmod otherwise.
64146         (file_has_acl): Add a POSIX ACL implementation, with a
64147         Linux-specific subcase.
64148         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64149         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64150         acls are unsupported.
64151         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64152         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64153         are unsupported.
64154
64155 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64156
64157         Sync from coreutils.
64158         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64159
64160 2006-01-07  Bruno Haible  <bruno@clisp.org>
64161
64162         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64163         gl_EARLY.
64164
64165 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64166
64167         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64168         Problem reported for Mingw by Mark Junker.
64169
64170 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64171
64172         * README: Gnulib normally doesn't generate a tarball.
64173
64174 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64175
64176         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64177         long int, not int, for nanosecond counts, so that people who are
64178         used to POSIX struct timespec won't be surprised.  Reported by Jim
64179         Meyering.
64180
64181 2005-12-28  Bruno Haible  <bruno@clisp.org>
64182
64183         * build-aux/config.rpath: Update from GNU gettext.
64184
64185 2005-12-16  Jim Meyering  <jim@meyering.net>
64186
64187         * modules/fprintftime: New module.
64188         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64189
64190 2005-12-16  Jim Meyering  <jim@meyering.net>
64191
64192         * m4/fprintftime.m4: New file.
64193
64194 2005-12-16  Jim Meyering  <jim@meyering.net>
64195
64196         * lib/fprintftime.c, lib/fprintftime.h: New files.
64197
64198 2005-12-15  Simon Josefsson  <jas@extundo.com>
64199
64200         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64201         new m4/socklen.m4.
64202
64203 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64204
64205         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64206         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64207
64208 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64209
64210         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64211         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64212         struct uparams is valid. Fall back to the default values if it is
64213         not.
64214
64215 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64216
64217         * modules/argp (Files): Add argp-pin.c
64218         (Depends-on): dirname
64219         (lib_SOURCES): Add argp-pin.c
64220
64221 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64222
64223         * m4/argp.m4:  Check if program_invocation_name and
64224         program_invocation_short_name are declared and define appropriate
64225         macros if they are not.
64226
64227 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64228
64229         * lib/argp-help.c (__argp_base_name): New function
64230         (__argp_short_program_name): Rewrite using __argp_base_name
64231         * lib/argp-namefrob.h: Define program_invocation_name and
64232         program_invocation_short_name if requested
64233         (__argp_base_name): Add prototype
64234         * lib/argp-parse.c (argp_def): Use gettext wrappers
64235         (argp_default_parser): Use __argp_base_name
64236         * lib/argp-pin.c: New file. Defines program_invocation_name and
64237         program_invocation_short_name on systems that lack them.
64238
64239 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64240
64241         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64242         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64243         porting problem reported by Georg Schwarz in
64244         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64245
64246 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64247
64248         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64249         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64250         porting problem reported by Georg Schwarz in
64251         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64252
64253 2005-12-05  Bruno Haible  <bruno@clisp.org>
64254
64255         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64256         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64257         Reported by Mark Junker <mjscod@gmx.de>.
64258
64259 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64260
64261         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64262         Use implementation from Albert Chin, with some
64263         comments/corrections by Stepan Kasal and myself.
64264
64265 2005-12-02  Bruno Haible  <bruno@clisp.org>
64266
64267         * gnulib-tool (func_import): Accept GPLed build tool modules when
64268         --lgpl is given.
64269         * modules/csharpcomp-script: New file.
64270         * modules/csharpcomp: Depend on it.
64271         * modules/javacomp-script: New file.
64272         * modules/javacomp: Depend on it.
64273         Suggested by Simon Josefsson.
64274
64275 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64276
64277         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64278         statement, to work around an HP-UX 10.20 compiler bug reported by
64279         Peter O'Gorman.
64280
64281 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64282
64283         * modules/savedir (Depends-on): Add openat.
64284
64285 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64286
64287         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64288         (uintmax_t) [defined uintmax_t]: Do not declare.
64289         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64290         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64291         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64292         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64293         sake of portability to weird hosts that C allows (though we don't
64294         know of any practical examples).
64295
64296         * lib/savedir.h (fdsavedir): New decl.
64297         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64298         contains most of the former guts of savedir.
64299         (savedir): Use savedirstream.
64300         Include "openat.h".
64301
64302 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64303
64304         * modules/obstack (Files): Add m4/ulonglong.m4.
64305         Problem reported by Davide Angelocola.
64306
64307 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64308
64309         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64310         coreutils no longer futzes with rounding modes.
64311
64312 2005-11-14  Jim Meyering  <jim@meyering.net>
64313
64314         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64315         replacement of mkstemp.
64316
64317 2005-11-10  Simon Josefsson  <jas@extundo.com>
64318
64319         * lib/readline.c: Remove EOL.
64320
64321 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64322
64323         * modules/gethrxtime (Depends-on): Add gettime.
64324
64325 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64326
64327         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64328         or gettimeofday; no longer needed.
64329
64330 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64331
64332         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64333         time business.
64334         (gethrxtime) [! (HAVE_NANOUPTIME
64335         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64336         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64337         our own approximation.
64338
64339 2005-11-08  Eric Blake  <ebb9@byu.net>
64340
64341         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64342
64343 2005-11-08  Eric Blake  <ebb9@byu.net>
64344
64345         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64346
64347 2005-11-04  Bruno Haible  <bruno@clisp.org>
64348
64349         * gnulib-tool: Implement --update mode.
64350
64351 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64352
64353         Fix porting problem reported by Theodoros V. Kalamatianos.
64354         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64355         Don't assume that futimes failing means we must fail.
64356
64357 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64358
64359         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64360         variables to suggest the intended function of the PATH_MAX check.
64361
64362 2005-10-30  Kean Johnston  <jkj@sco.com>
64363
64364         Trivial changes to support SCO systems.
64365         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64366         as PATH_MAX.
64367         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64368         where __ptr is null when no I/O is pending.
64369
64370 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64371
64372         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64373         leave errno alone.  Problem reported by Dmitry V. Levin.
64374
64375 2005-10-28  Simon Josefsson  <jas@extundo.com>
64376
64377         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64378         Test more.
64379
64380         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64381
64382         * modules/md2, modules/md2-tests: New files.
64383
64384 2005-10-28  Simon Josefsson  <jas@extundo.com>
64385
64386         * m4/inet_ntop.m4: More tests.
64387
64388         * m4/gc-md2.m4, md2.m4: New file.
64389
64390 2005-10-28  Simon Josefsson  <jas@extundo.com>
64391
64392         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64393         "restrict" keywords, as per POSIX.  Protect the function
64394         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64395         Don't use K&R prototypes.  Check the sprintf return values.
64396         Re-define EAFNOSUPPORT if not present.  Indent.
64397
64398         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64399         suggested by Bruno Haible <bruno@clisp.org>.
64400
64401         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64402
64403         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64404
64405         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64406         libgcrypt).
64407
64408         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64409
64410         * lib/md2.h, lib/md2.c: New files.
64411
64412 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64413
64414         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64415         errno alone.  Problem reported by Frederic Jolliton.
64416
64417 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64418
64419         * modules/verify (License): Change from GPL to LGPL.  This is a
64420         tiny module and there are apparently near-equivalents that are
64421         under the BSD license.
64422
64423 2005-10-24  Simon Josefsson  <jas@extundo.com>
64424
64425         * modules/sha1: Relicense to LGPL.
64426
64427 2005-10-24  Simon Josefsson  <jas@extundo.com>
64428
64429         * lib/md4.h: Shrink buffer size, now that we changed the type.
64430
64431 2005-10-23  Simon Josefsson  <jas@extundo.com>
64432
64433         * gnulib-tool (func_import): Fix --tests-base.
64434
64435 2005-10-22  Simon Josefsson  <jas@extundo.com>
64436
64437         * modules/arcfour (Depends-on): Need stdint.
64438
64439 2005-10-22  Simon Josefsson  <jas@extundo.com>
64440
64441         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64442         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64443
64444 2005-10-22  Simon Josefsson  <jas@extundo.com>
64445
64446         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64447         suggested by Bruno Haible <bruno@clisp.org>.
64448
64449 2005-10-22  Simon Josefsson  <jas@extundo.com>
64450
64451         * lib/crc.h: Include stddef.h, for size_t.
64452
64453 2005-10-22  Simon Josefsson  <jas@extundo.com>
64454
64455         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64456         arcfour_context struct (simplify test vector testing in GNU
64457         Shishi).
64458
64459 2005-10-21  Simon Josefsson  <jas@extundo.com>
64460
64461         * modules/des, modules/des-tests: New files.
64462
64463         * modules/gc-des, modules/gc-des-tests: New files.
64464
64465         * tests/test-des.c, tests/test-gc-des.c: New file.
64466
64467 2005-10-21  Simon Josefsson  <jas@extundo.com>
64468
64469         * modules/arctwo, modules/arctwo-tests: New files.
64470
64471         * tests/test-arctwo.c: New file.
64472
64473         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
64474
64475         * tests/test-gc-arctwo.c: New file.
64476
64477 2005-10-21  Simon Josefsson  <jas@extundo.com>
64478
64479         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
64480         Bruno Haible <bruno@clisp.org>.
64481
64482         * m4/gc-des.m4: New file.
64483
64484 2005-10-21  Simon Josefsson  <jas@extundo.com>
64485
64486         * m4/arctwo.m4: New file.
64487
64488         * m4/gc-arctwo.m4: New file.
64489
64490 2005-10-21  Simon Josefsson  <jas@extundo.com>
64491
64492         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
64493         block.
64494
64495 2005-10-21  Simon Josefsson  <jas@extundo.com>
64496
64497         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
64498         <bruno@clisp.org>.
64499
64500         * lib/hmac-sha1.c (hmac_sha1): Likewise.
64501
64502         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
64503         Bruno Haible <bruno@clisp.org>.
64504
64505         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
64506         <bruno@clisp.org>.
64507
64508 2005-10-21  Simon Josefsson  <jas@extundo.com>
64509
64510         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
64511
64512 2005-10-21  Simon Josefsson  <jas@extundo.com>
64513
64514         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
64515
64516 2005-10-21  Simon Josefsson  <jas@extundo.com>
64517
64518         * lib/des.h, lib/des.c: New files.
64519
64520         * lib/gc-gnulib.c: Support DES.c
64521
64522 2005-10-21  Simon Josefsson  <jas@extundo.com>
64523
64524         * lib/arctwo.h, lib/arctwo.c: New files.
64525
64526         * lib/gc-gnulib.c: Support ARCTWO.
64527
64528 2005-10-21  Simon Josefsson  <jas@extundo.com>
64529
64530         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
64531         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64532
64533 2005-10-21  Simon Josefsson  <jas@extundo.com>
64534
64535         * gnulib-tool (func_import, func_create_testdir): Define automake
64536         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
64537         Makefile.am snippet),
64538         suggested by Bruno Haible <bruno@clisp.org>.
64539
64540         * modules/gc (Makefile.am): Use it.
64541
64542 2005-10-21  Bruno Haible  <bruno@clisp.org>
64543
64544         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
64545         patch.
64546
64547 2005-10-19  Simon Josefsson  <jas@extundo.com>
64548
64549         * tests/test-gc-rijndael.c: New file.
64550
64551         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
64552
64553 2005-10-19  Simon Josefsson  <jas@extundo.com>
64554
64555         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
64556         interface too.
64557
64558 2005-10-19  Simon Josefsson  <jas@extundo.com>
64559
64560         * tests/test-gc-arcfour.c: New file.
64561
64562         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
64563
64564 2005-10-19  Simon Josefsson  <jas@extundo.com>
64565
64566         * modules/gc-md4, modules/gc-md4-tests: New file.
64567
64568         * tests/test-gc-md4.c: New file.
64569
64570 2005-10-19  Simon Josefsson  <jas@extundo.com>
64571
64572         * m4/gc-md4.m4: New file.
64573
64574 2005-10-19  Simon Josefsson  <jas@extundo.com>
64575
64576         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
64577         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
64578         <kasal@ucw.cz>.
64579
64580 2005-10-19  Simon Josefsson  <jas@extundo.com>
64581
64582         * m4/gc-arcfour.m4: New file.
64583
64584         * m4/gc-rijndael.m4: New file.
64585
64586 2005-10-19  Simon Josefsson  <jas@extundo.com>
64587
64588         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
64589
64590 2005-10-19  Simon Josefsson  <jas@extundo.com>
64591
64592         * lib/gc-gnulib.c: Support ARCFOUR.
64593
64594 2005-10-19  Simon Josefsson  <jas@extundo.com>
64595
64596         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
64597         support.
64598
64599         * lib/gc.h: Add ECB enum type.
64600
64601         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
64602
64603 2005-10-18  Simon Josefsson  <jas@extundo.com>
64604
64605         * tests/test-md5.c: New file.
64606
64607         * modules/md5-tests: New file.
64608
64609 2005-10-18  Simon Josefsson  <jas@extundo.com>
64610
64611         * tests/test-md4.c: New file.
64612
64613         * modules/md4, modules/md4-tests: New files.
64614
64615 2005-10-18  Simon Josefsson  <jas@extundo.com>
64616
64617         * m4/md4.m4: New file.
64618
64619 2005-10-18  Simon Josefsson  <jas@extundo.com>
64620
64621         * lib/md4.h, lib/md4.c: New files, based on md5.?.
64622
64623 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
64624
64625         * gnulib-tool (func_create_testdir): Omit the second check whether
64626         BUILT_SOURCES in nonempty.
64627
64628 2005-10-17  Simon Josefsson  <jas@extundo.com>
64629
64630         * tests/test-rijndael.c: New file.
64631
64632 2005-10-17  Simon Josefsson  <jas@extundo.com>
64633
64634         * modules/sha1: Depend on stdint instead of md5.
64635
64636         * modules/md5: Depend on stdint, remove uint32_t.
64637
64638 2005-10-17  Simon Josefsson  <jas@extundo.com>
64639
64640         * modules/gc-sha1-tests: New file.
64641
64642         * tests/test-gc-sha1.c: New file.
64643
64644 2005-10-17  Simon Josefsson  <jas@extundo.com>
64645
64646         * m4/md5.m4: Remove call to uint32_t.m4.
64647
64648 2005-10-17  Simon Josefsson  <jas@extundo.com>
64649
64650         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64651
64652         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64653         md5.h.
64654
64655         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64656
64657         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64658
64659 2005-10-17  Simon Josefsson  <jas@extundo.com>
64660
64661         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64662
64663 2005-10-17  Simon Josefsson  <jas@extundo.com>
64664
64665         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64666
64667 2005-10-17  Simon Josefsson  <jas@extundo.com>
64668
64669         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64670
64671         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64672
64673 2005-10-17  Bruno Haible  <bruno@clisp.org>
64674
64675         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64676         that it can also be used in a test.
64677
64678 2005-10-16  Bruno Haible  <bruno@clisp.org>
64679
64680         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64681         TESTS_ENVIRONMENT, so that individual tests can augment it.
64682
64683         * gnulib-tool (func_create_testdir): Use an intermediate target for
64684         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64685         macros, like $(ALLOCA_H), which cannot be passed through the command
64686         line.
64687
64688 2005-10-15  Simon Josefsson  <jas@extundo.com>
64689
64690         * modules/rijndael-tests: New file.
64691
64692         * modules/rijndael: New file.
64693
64694 2005-10-15  Simon Josefsson  <jas@extundo.com>
64695
64696         * m4/rijndael.m4: New file.
64697
64698 2005-10-15  Simon Josefsson  <jas@extundo.com>
64699
64700         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64701
64702         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64703
64704 2005-10-14  Simon Josefsson  <jas@extundo.com>
64705
64706         * tests/test-arcfour.c: New file.
64707
64708         * modules/arcfour, modules/arcfour-tests: New files.
64709
64710 2005-10-14  Simon Josefsson  <jas@extundo.com>
64711
64712         * m4/arcfour.m4: New file.
64713
64714 2005-10-14  Simon Josefsson  <jas@extundo.com>
64715
64716         * lib/arcfour.h, lib/arcfour.c: New files.
64717
64718 2005-10-14  Roland McGrath  <roland@redhat.com>
64719
64720         Import from libc.  [BZ #1331]
64721         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64722         macro argument.
64723         Reported by Matej Vela <vela@debian.org>.
64724
64725 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64726
64727         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64728         include <wchar.h>; no longer needed.
64729
64730 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64731
64732         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64733
64734 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64735         and  Ulrich Drepper  <drepper@redhat.com>
64736
64737         Import from libc.
64738         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
64739         instead of inline stream orientation test and two separate
64740         function calls.  Pay no attention to USE_IN_LIBIO.
64741
64742 2005-10-13  Simon Josefsson  <jas@extundo.com>
64743
64744         * modules/gc-hmac-md5-tests: New file.
64745
64746         * tests/test-gc-hmac-sha1.c: New file.
64747
64748         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
64749
64750         * modules/gc-hmac-md5-tests: New file.
64751
64752         * tests/test-gc-md5.c: New file.
64753
64754         * modules/gc-md5-tests: New file.
64755
64756 2005-10-13  Simon Josefsson  <jas@extundo.com>
64757
64758         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
64759         Move memory allocation outside of loop.
64760
64761 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64762
64763         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
64764         intermediate directory is in a read-only file system.  Problem
64765         reported by Eric Blake.
64766
64767 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
64768
64769         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
64770
64771 2005-10-12  Simon Josefsson  <jas@extundo.com>
64772
64773         * tests/test-hmac-sha1.c: New file.
64774
64775         * modules/hmac-sha1-tests: New file.
64776
64777         * modules/hmac-sha1: New file.
64778
64779 2005-10-12  Simon Josefsson  <jas@extundo.com>
64780
64781         * modules/gc-sha1: New file.
64782
64783 2005-10-12  Simon Josefsson  <jas@extundo.com>
64784
64785         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
64786
64787         * tests/test-gc-pbkdf2-sha1.c: New file.
64788
64789 2005-10-12  Simon Josefsson  <jas@extundo.com>
64790
64791         * modules/gc-md5, modules/gc-hmac-md5: New files.
64792
64793         * modules/gc (Files): Remove md5, memxor and hmac files.
64794
64795 2005-10-12  Simon Josefsson  <jas@extundo.com>
64796
64797         * m4/gc-pbkdf2-sha1.m4: New file.
64798
64799         * m4/gc-hmac-sha1.m4: New file.
64800
64801         * m4/gc-sha1: New file.
64802
64803         * m4/hmac-sha1.m4: New file.
64804
64805 2005-10-12  Simon Josefsson  <jas@extundo.com>
64806
64807         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
64808
64809         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
64810
64811 2005-10-12  Simon Josefsson  <jas@extundo.com>
64812
64813         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
64814         suggested by Bruno Haible <bruno@clisp.org>.
64815
64816 2005-10-12  Simon Josefsson  <jas@extundo.com>
64817
64818         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
64819
64820 2005-10-12  Simon Josefsson  <jas@extundo.com>
64821
64822         * lib/gc-pbkdf2-sha1.c: New file.
64823
64824         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
64825
64826 2005-10-12  Simon Josefsson  <jas@extundo.com>
64827
64828         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
64829
64830         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
64831
64832 2005-10-12  Simon Josefsson  <jas@extundo.com>
64833
64834         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
64835         GC_USE_HMAC_MD5, respectively.
64836
64837         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
64838         (gc_md5): Fix typo.
64839
64840         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
64841
64842         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
64843
64844         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
64845
64846 2005-10-12  Bruno Haible  <bruno@clisp.org>
64847
64848         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
64849         Reported by Stepan Kasal <kasal@ucw.cz>.
64850
64851 2005-10-11  Simon Josefsson  <jas@extundo.com>
64852
64853         * tests/test-crc.c: New file.
64854
64855         * modules/crc, modules/crc-tests: New files.
64856
64857 2005-10-11  Simon Josefsson  <jas@extundo.com>
64858
64859         * m4/crc.m4: New file.
64860
64861 2005-10-11  Simon Josefsson  <jas@extundo.com>
64862
64863         * lib/gc.h: Add gc_hash and gc_hash_buffer.
64864
64865         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
64866
64867         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
64868
64869 2005-10-11  Simon Josefsson  <jas@extundo.com>
64870
64871         * lib/crc.h, lib/crc.c: New files.
64872
64873         * lib/gc.h (gc_hash_buffer): Add doc.
64874
64875 2005-10-11  Bruno Haible  <bruno@clisp.org>
64876
64877         * modules/c-strcasestr: New file.
64878         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
64879
64880 2005-10-11  Bruno Haible  <bruno@clisp.org>
64881
64882         * modules/c-strcase: New file.
64883         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
64884
64885 2005-10-11  Bruno Haible  <bruno@clisp.org>
64886
64887         * lib/strcasecmp.c: Include limits.h.
64888         (strcasecmp): Avoid integer overflow on exotic platforms.
64889         * lib/strncasecmp.c: Include limits.h.
64890         (strncasecmp): Avoid integer overflow on exotic platforms.
64891         Reported by Paul Eggert.
64892
64893 2005-10-11  Bruno Haible  <bruno@clisp.org>
64894
64895         * lib/c-strcasestr.h: New file, from GNU gettext.
64896         * lib/c-strcasestr.c: New file, from GNU gettext.
64897
64898 2005-10-11  Bruno Haible  <bruno@clisp.org>
64899
64900         * lib/c-strcase.h: New file, from GNU gettext.
64901         * lib/c-strcasecmp.c: New file, from GNU gettext.
64902         * lib/c-strncasecmp.c: New file, from GNU gettext.
64903
64904 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64905
64906         * modules/mempcpy (License): GPL -> LGPL.
64907         * modules/strchrnul (License): Likewise.
64908         * modules/sysexits (License): Likewise.
64909
64910 2005-10-08  Simon Josefsson  <jas@extundo.com>
64911
64912         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
64913
64914 2005-10-07  Simon Josefsson  <jas@extundo.com>
64915
64916         * m4/memxor.m4: Remove gl_C_RESTRICT call.
64917
64918 2005-10-06  Simon Josefsson  <jas@extundo.com>
64919
64920         * tests/test-hmac-md5.c: New file.
64921
64922         * modules/hmac-md5-tests: New file.
64923
64924         * modules/hmac-md5: New file.
64925
64926 2005-10-06  Simon Josefsson  <jas@extundo.com>
64927
64928         * m4/hmac-md5.m4: New file.
64929
64930         * m4/memxor.m4: Require gl_C_RESTRICT.
64931
64932 2005-10-06  Simon Josefsson  <jas@extundo.com>
64933
64934         * lib/memxor.c (memxor): Avoid casts and warnings.
64935
64936 2005-10-06  Simon Josefsson  <jas@extundo.com>
64937
64938         * lib/hmac-md5.c: New file.
64939
64940         * lib/hmac.h: New file.
64941
64942 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64943
64944         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
64945         promotes to int, not unsigned int, to catch the AIX 5.3
64946         compiler bug.
64947
64948 2005-10-05  Simon Josefsson  <jas@extundo.com>
64949
64950         * modules/memxor: New file.
64951
64952         * modules/iconv (Files): Move config.rpath to havelib, it is used
64953         there.
64954
64955         * modules/havelib (Files): Add config.rpath.
64956
64957 2005-10-05  Simon Josefsson  <jas@extundo.com>
64958
64959         * m4/memxor.m4: New file.
64960
64961 2005-10-05  Simon Josefsson  <jas@extundo.com>
64962
64963         * lib/memxor.c (memxor): Fix compiler error.
64964
64965         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
64966         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
64967
64968         * lib/memxor.h, lib/memxor.c: New files.
64969
64970         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
64971         we assume all systems have it, suggested by Jim Meyering
64972         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
64973         any systems lack sys/socket.h; mingw32 is known to lack it, but we
64974         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
64975         same reasons.
64976
64977 2005-10-05  Simon Josefsson  <jas@extundo.com>
64978
64979         * config/srclist.txt: Add glibc bug 1423 for md5.h.
64980
64981 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64982
64983         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64984         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64985         needed, since the source code now assumes these .h files.
64986
64987 2005-10-05  Derek Price  <derek@ximbiot.com>
64988
64989         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64990
64991 2005-10-05  Bruno Haible  <bruno@clisp.org>
64992
64993         * modules/stdint (License): Change to LGPL.
64994
64995 2005-10-04  Simon Josefsson  <jas@extundo.com>
64996
64997         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64998         D. Baushke" <mdb@gnu.org>.
64999
65000 2005-10-04  Bruno Haible  <bruno@clisp.org>
65001
65002         * lib/verify.h (verify_true): Provide alternative definition for C++.
65003
65004 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65005
65006         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65007         (SSIZE_MAX): New macro, if not already defined.
65008         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65009         than 2 GiB.
65010
65011 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65012
65013         Sync from coreutils.
65014         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65015         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65016         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65017         ULLONG_MAX doesn't work with 2.7.2.1.
65018
65019 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65020
65021         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65022         From Ben Pfaff.
65023
65024         * modules/exclude (Depends-on): Depend on verify.
65025         * modules/strtoimax (Depends-on): Likewise.
65026         * modules/utimecmp (Depends-on): Likewise.
65027
65028 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65029
65030         * lib/exclude.c: Include verify.h.
65031         (verify): Remove.  All callers changed to use verify.h's version.
65032         * lib/strtoimax.c: Likewise.
65033         * lib/utimecmp.c: Likewis.e
65034
65035         Sync from coreutils.
65036         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65037         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65038         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65039         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65040         bother returning ENOSYS if settimeofday or stime fails; just let
65041         them return whatever errno they want to return.
65042         * lib/utimens.c: Include unistd.h, for dup2.
65043         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65044         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65045
65046 2005-10-02  Jim Meyering  <jim@meyering.net>
65047
65048         Sync from coreutils.
65049         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65050         from glibc-2.2.5 that fails for read-only files.
65051
65052 2005-10-02  Jim Meyering  <jim@meyering.net>
65053
65054         Sync from coreutils.
65055         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65056         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65057         `#if HAVE_CONFIG_H'.
65058         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65059         Remove AT_FDCWD test.
65060         Do not consume the fd unless successful.
65061         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65062         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65063         block, so that we don't even try to compile it if settimeofday is
65064         available.  This works around a compilation failure on OSF1 V5.1,
65065         due to stime requiring a `long int*' while tv_sec is `int'.
65066
65067 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65068
65069         Sync from coreutils.
65070         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65071         against `yes', rather than just testing for nonempty.
65072
65073 2005-10-01  Simon Josefsson  <jas@extundo.com>
65074
65075         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65076         and Darwin.
65077
65078         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65079         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65080         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65081         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65082         Check if struct addrinfo is declared.
65083
65084 2005-10-01  Simon Josefsson  <jas@extundo.com>
65085
65086         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65087         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65088         AI_* and EAI_* definitions.  Protect function declarations.
65089
65090 2005-10-01  Jim Meyering  <jim@meyering.net>
65091
65092         Sync from coreutils.
65093
65094         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65095         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65096         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65097         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65098         in the inet and nsl libraries.  Required on Solaris 5.7.
65099
65100 2005-10-01  Jim Meyering  <jim@meyering.net>
65101
65102         Sync from coreutils.
65103         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65104         in the inet and nsl libraries.  Required on Solaris 5.7.
65105
65106 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65107
65108         * lib/getdelim.c (getdelim): Remove unused variables.
65109
65110 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65111
65112         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65113         so that the code works even with ancient cpp.  Portability problem
65114         with GCC 2.7.2.1 reported by Thomas M.Ott.
65115
65116 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65117
65118         * modules/regex (Depends-on): Add strcase.
65119
65120         * modules/gethostname (Licence): Change from GPL to LGPL, since
65121         gethostname.c is a trivial implementation of a standard library
65122         function.
65123         * modules/poll (License): Change from GPL to LGPL, since it's
65124         derived from LGPL code.
65125
65126 2005-09-27  Jim Meyering  <jim@meyering.net>
65127
65128         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65129         HAVE_CONFIG_H.
65130
65131         * lib/intprops.h (signed_type_or_expr__): Define.
65132         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65133         for unsigned types.
65134
65135 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65136
65137         * lib/verify.h (verify_expr): Remove, replacing with:
65138         (verify_true): New macro that returns true instead of void.
65139         (verify_type__): Remove.
65140         (verify): Use verify_true rather than verify_type__.
65141
65142 2005-09-26  Bruno Haible  <bruno@clisp.org>
65143
65144         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65145         is necessary.
65146         (lib_SOURCES): Remove mbchar.c.
65147         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65148         (Files): Add m4/mbrtowc.m4.
65149         * modules/mbiter: Likewise.
65150         * modules/mbuiter: Likewise.
65151
65152 2005-09-26  Bruno Haible  <bruno@clisp.org>
65153
65154         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65155         compile mbchar.c if they are not both present.
65156         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65157         * m4/mbiter.m4 (gl_MBITER): Likewise.
65158         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65159         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65160         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65161
65162 2005-09-25  Jim Meyering  <jim@meyering.net>
65163
65164         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65165         also uses socklen_t.
65166
65167 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65168
65169         * lib/utimens.c (ENOSYS): Define if not already defined.
65170         (futimens): Support having a null PATH if the file descriptor
65171         is nonnegative.
65172
65173         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65174         Remove.
65175         (__attribute): Define to empty unless GCC 3.1 or later.
65176         This works around a core dump on OpenBSD 3.4, which has GCC
65177         2.95.3, which dumps core when given __attribute__(()).  It also
65178         simplifies other tests, since we really don't want to bother with
65179         worrying about which ancient version of GCC supported what.
65180         Original problem reported by Yoann Vandoorselaere, with part of
65181         the fix suggested by Derek Price.
65182
65183 2005-09-24  Jim Meyering  <jim@meyering.net>
65184
65185         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65186         so we can once again use a positive bitfield width of 1 -- now we
65187         don't have to explain why we were using a bitfield width of 2.
65188
65189 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65190
65191         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65192         and similarly for the other external symbols.  Problem reported
65193         by James Gallager.
65194
65195         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65196         bug reported by Jim Meyering.
65197
65198         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65199         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65200         not needed, since socklen is a prerequisite module.
65201
65202 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65203
65204         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65205         Problem reported by Eric Blake.
65206         (getaddrinfo): Initialize se so that it's not garbage.
65207         Redo internal storage allocation so that it doesn't make unportable
65208         assumptions about alignment.
65209         Fix a memory leak.
65210
65211         * lib/utimens.c (futimens): Use futimesat if available.
65212         Prefer it to futimes since it doesn't have the futimes bug.
65213
65214         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65215         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65216         Instead, declare a function that returns a pointer to an array,
65217         and use verify_type__ to declare the size of the array.
65218         Problem and germ of a solution reported by Bruno Haible.
65219         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65220         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65221
65222 2005-09-23  Jim Meyering  <jim@meyering.net>
65223
65224         Sync from coreutils.
65225         Correct build failure (socklen_t not defined) on at least
65226         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65227         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65228
65229 2005-09-23  Jim Meyering  <jim@meyering.net>
65230
65231         * modules/getaddrinfo (Depends-on): Add socklen.
65232
65233 2005-09-23  Bruno Haible  <bruno@clisp.org>
65234
65235         * tests/test-verify.c: New file.
65236
65237 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65238
65239         Sync from coreutils.
65240
65241         * modules/argmatch (Depends-on): Add verify.
65242         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65243         unistd-safer.
65244         * modules/save-cwd (Depends-on): Likewise.
65245
65246         * modules/openat (Files): Add lib/openat-die.c.
65247         (Depends-on): Remove error, exitfail.
65248         Add dirname.
65249
65250         * modules/verify: New file.
65251         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65252         with "verify" module.
65253
65254 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65255
65256         Sync from coreutils.
65257
65258         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65259         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65260         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65261         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65262         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65263         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65264         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65265         Don't bother checking for string.h, stdlib.h, unistd.h.
65266         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65267         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65268         module's job.
65269         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65270         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65271
65272         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65273         (gl_GETDATE): Use it.
65274
65275         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65276
65277 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65278
65279         Sync from coreutils.
65280
65281         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65282         stat-time.h.
65283         * lib/argmatch.h: Include verify.h
65284         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65285         (ARGMATCH_ASSERT): Remove; unused.
65286         * lib/canonicalize.c: Assume STDC_HEADERS.
65287         * lib/exclude.c: Include "strcase.h".
65288         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65289         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65290         and stdio-safer.h.
65291         (getusershell): Call fopen, not fopen_safer.
65292         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65293         Do not include unistd-safer.h.
65294         (save_cwd): Don't call fd_safer; no longer needed
65295         now that we include fcntl--.h.
65296
65297         * lib/getdate.y (relative_time): New type.
65298         (RELATIVE_TIME_0): New constant.
65299         (parser_control): Use relative_time instead of doing it ourselves.
65300         (%union): Add new relative_time rel member.
65301         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65302         Now typeless.
65303         (relunit, relunit_snumber): Now of type rel.
65304         (zone, rel, relunit, get_date): Adjust to above changes.
65305
65306         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65307         Do not include unistd-safer.h.
65308         (getloadavg): Don't call fd_safer; no longer needed
65309         now that we include fcntl--.h.
65310
65311         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65312         (make_dir_parents): Treat ENOSYS like EEXIST.
65313
65314         Improve quality of diagnostics on restore_cwd failure.
65315         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65316         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65317         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65318         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65319         each time through the loop.  Do not diagnose restore_cwd failure;
65320         that is the caller's job (and perhaps the caller does not care).
65321
65322         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65323         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65324         If the file already exists but is not a directory, don't bother
65325         to try to make its parents.
65326         Close potential file descriptor leak if we can't chdir("/") (!).
65327         Don't always return true if chdir($PWD) fails; return true only
65328         if the requested action was done successfully (except for the
65329         chdir($PWD)).
65330         Don't log final directory unless we actually made it.
65331         Refactor to avoid duplicate code to fix up permissions.
65332         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65333
65334         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65335         to make it a bit faster and (I hope) clearer.
65336         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65337         Fix bug in formats like %2N.
65338
65339         * lib/verify.h: New file.
65340
65341 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65342
65343         Sync from coreutils.
65344         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65345
65346 2005-09-22  Jim Meyering  <jim@meyering.net>
65347
65348         Sync from coreutils.
65349
65350         * m4/lstat.m4 (gl_FUNC_LSTAT):
65351         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65352         Remove obsolete comment.
65353         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65354         * m4/xstrtod.m4: Likewise.
65355
65356         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65357
65358 2005-09-22  Jim Meyering  <jim@meyering.net>
65359
65360         Sync from coreutils.
65361
65362         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65363
65364         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65365         the .tm_year member, since otherwise gcc-4.0 would now warn about
65366         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65367
65368         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65369         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65370
65371         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65372         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65373         when run in a time zone for which daylight savings time is in effect
65374         for the starting date.
65375
65376         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65377         stop us from restricting permissions of just-created absolute-named
65378         directories.
65379         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65380         to restore initial working directory.
65381         * lib/mkdir-p.c (make_dir_parents): New parameter:
65382         different_working_dir, to tell caller if/when we change the working
65383         directory and are unable to return to the initial one.
65384         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65385         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65386         `return false'.  This fixes a bug introduced on 2004-07-30.
65387
65388         * lib/openat.c (fdopendir): Be sure to close the supplied
65389         file descriptor before returning.  This makes our replacement
65390         implementation a little closer to Solaris's, where fdopendir
65391         ties the file descriptor to the returned DIR* pointer.
65392         * lib/openat.c (unlinkat): New function.
65393         * lib/openat.h (unlinkat): Add prototype.
65394         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65395         (openat_restore_fail): Rename from openat_restore_die.
65396         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65397
65398         Provide an alternative to exiting immediately upon save_cwd or
65399         restore_cwd failure.  Now, an application can arrange e.g.,
65400         to perform a longjump in that case.
65401         * lib/openat.c: Include dirname.h.
65402         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65403         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65404         and openat_restore_die rather than calling error directly.
65405         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65406
65407         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65408         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65409         define.
65410
65411         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65412         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65413                             int utc, int nanoseconds);
65414         Background:
65415         date should not have to allocate a megabyte of virtual memory to
65416         handle a format argument like +%1048575T.  When implemented with
65417         strftime, it must allocate such a buffer, use strftime to fill it
65418         in, print it, then free it.
65419         With fprintftime, it simply prints everything and exits.
65420         With no need for memory allocation, that's one fewer way to fail.
65421         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65422         optional field width, not before, so we accept %9:z, not %:9z.
65423         (my_strftime): Be sure to use L_('x') for literals.
65424
65425         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65426         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65427         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65428         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65429         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65430         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65431         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65432         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65433         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65434         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65435         * lib/xgethostname.c, lib/xreadlink.c:
65436         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65437
65438         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65439         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65440         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65441         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65442         and don't include <sys/file.h>).
65443
65444 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65445
65446         Sync from coreutils.
65447
65448         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65449         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65450         [!LDAV_DONE]: Avoid unused variable warning.
65451
65452 2005-09-21  Bruno Haible  <bruno@clisp.org>
65453
65454         * lib/unicodeio.h (unicode_to_mb): New declaration.
65455
65456 2005-09-20  Derek Price  <derek@ximbiot.com>
65457
65458         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65459         getaddrinfo.h.
65460
65461 2005-09-20  Bruno Haible  <bruno@clisp.org>
65462
65463         * gnulib-tool: Remove trailing slashes from the values specified for
65464         --source-base, --m4-base, --tests-base, --aux-dir.
65465         Suggested by Simon Josefsson <jas@extundo.com>.
65466
65467 2005-09-20  Bruno Haible  <bruno@clisp.org>
65468
65469         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
65470         func_modules_to_filelist, func_import, func_create_testdir): Make all
65471         sorting results locale-independent, so that gnulib-cache.m4 doesn't
65472         change when gnulib-tool is invoked in a different locale.
65473
65474 2005-09-19  Simon Josefsson  <jas@extundo.com>
65475
65476         * m4/socklen.m4: Fix typo.
65477
65478 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65479
65480         Use a consistent style for including <config.h>.
65481         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
65482         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
65483         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
65484         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
65485         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
65486         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
65487         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
65488         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
65489         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
65490         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
65491         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
65492         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
65493         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
65494         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
65495         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
65496         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
65497         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
65498         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
65499         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
65500         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
65501         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
65502         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
65503         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
65504         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
65505         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
65506         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
65507         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
65508         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
65509         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
65510         lib/xstrtoumax.c, lib/yesno.c:
65511         Standardize inclusion of config.h.
65512         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
65513         lib/inttostr.h:  Removed inclusion of config.h from header files.
65514         * lib/inttostr.c:  Adjusted in-tree users.
65515         * lib/timespec.h: Remove superfluous warning to include config.h.
65516         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
65517         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
65518         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
65519         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65520         config.h with HAVE_CONFIG_H.
65521
65522 2005-09-19  Jim Meyering  <jim@meyering.net>
65523
65524         * modules/pathmax (License): Change to LGPL.
65525
65526 2005-09-19  Derek Price  <derek@ximbiot.com>
65527
65528         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
65529
65530 2005-09-19  Bruno Haible  <bruno@clisp.org>
65531
65532         * gnulib-tool (import): Provide default for --tests-base.
65533
65534 2005-09-19  Bruno Haible  <bruno@clisp.org>
65535
65536         * doc/quote.texi: New file, extracted from gnulib.texi.
65537         * doc/ctime.texi: New file, extracted from gnulib.texi.
65538         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
65539         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
65540         * doc/gnulib.texi: Include them.
65541
65542 2005-09-18  Bruno Haible  <bruno@clisp.org>
65543
65544         Portability fix.
65545         * gnulib-tool (func_readlink): New function.
65546         (func_ln_if_changed): Use it.
65547
65548 2005-09-18  Bruno Haible  <bruno@clisp.org>
65549
65550         * gnulib-tool: Support --with-tests also with --import.
65551         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
65552         (func_import): Use variables $testsbase and $inctests. Emit a
65553         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
65554         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
65555         SUBDIRS += $testsdir.
65556         (func_create_testdir): Update.
65557
65558 2005-09-18  Bruno Haible  <bruno@clisp.org>
65559
65560         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
65561         instead of $dry_run.
65562         (func_cp_if_changed, func_mv_if_changed): Remove functions.
65563         (func_ln_if_changed): Don't handle dry-run here.
65564         (func_import): In dry-run mode, detect more precisely which actions
65565         would be performed, and don't use "...ing" verbs.
65566
65567 2005-09-18  Bruno Haible  <bruno@clisp.org>
65568
65569         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
65570         (func_import): Use join on two temporary files instead of three nested
65571         loops, in order to determine which files are new or old.
65572
65573 2005-09-18  Bruno Haible  <bruno@clisp.org>
65574
65575         * gnulib-tool (func_import): Comment out code that spits out the
65576         new files with --dry-run.
65577
65578 2005-09-18  Bruno Haible  <bruno@clisp.org>
65579
65580         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
65581
65582 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65583
65584         * lib/stat-time.h: New file.
65585         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
65586         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
65587         in a different way.
65588         (timespec_cmp): New function.
65589         * lib/utimecmp.c: Include stat-time.h.
65590         (SYSCALL_RESOLUTION): Depend on whether various struct stat
65591         members exist, not on the obsolescent ST_MTIM_NSEC.
65592         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
65593
65594 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65595
65596         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
65597
65598 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65599
65600         * MODULES.html.sh (File system functions): Add stat-time.
65601         * modules/stat-time: New file.
65602         * modules/timespec (Files): Remove m4/st_mtim.m4; this
65603         is now done in a different way, by the stat-time module.
65604         * modules/utimecmp (Depends-on): Add stat-time.
65605
65606 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65607
65608         * m4/st_mtim.m4: Remove.  Superseded by...
65609         * m4/stat-time.m4: New file.
65610         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
65611         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
65612
65613 2005-09-15  Derek Price  <derek@ximbiot.com>
65614
65615         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
65616
65617 2005-09-15  Derek Price  <derek@ximbiot.com>
65618
65619         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
65620         * lib/regex_internal.c: Ditto, using this...
65621         (__GNUC_PREREQ): ...new macro.
65622         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
65623         using...
65624         (__GNUC_PREREQ): ...this new macro.
65625
65626         * lib/strstr.h: Include string.h. Define strstr as a macro here.
65627
65628 2005-09-15  Derek Price  <derek@ximbiot.com>
65629             Paul Eggert  <eggert@cs.ucla.edu>
65630
65631         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
65632         changes, consolidating in...
65633         * lib/regex_internal.h: ...this file.
65634
65635 2005-09-13  Jim Meyering  <jim@meyering.net>
65636
65637         * lib/canon-host.c: Filter through gnu indent and reword comments
65638         slightly.
65639         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65640
65641 2005-09-13  Derek Price  <derek@ximbiot.com>
65642
65643         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65644         failure.
65645         Reported by Jim Meyering  <jim@meyering.net>.
65646
65647 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65648
65649         * lib/base64.c: Typo.
65650         (base64_encode): Put b64str in initialized data section.
65651
65652 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65653
65654         Merge glibc and coreutils changes into gnulib, plus a few
65655         extra fixes.
65656         * lib/md5.c: Use #error rather than a string.
65657         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65658         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65659         (__attribute__): Define to empty for non recent-GCC.
65660         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65661         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65662         Renamed from their non-__ counterparts, with new macros replacing
65663         them if not _LIBC.  Add __THROW attribute.
65664         (rol): Remove.
65665         (struct md5_ctx): Align buffer if using GCC.
65666         * lib/sha1.h (struct sha1_ctx): Likewise.
65667         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65668         The old name was backwards.
65669         (NOTSWAP): Remove; not used.
65670         (rol): New macro, moved here from md5.h.
65671         (sha1_process_block): Remove a FIXME that doesn't make sense.
65672
65673 2005-09-12  Derek Price  <derek@ximbiot.com>
65674
65675         Return usable errors from canon-host.
65676         * lib/canon-host.h: New file.
65677         * lib/canon-host.c (canon_host): Wrap...
65678         (canon_host_r): ...this new function, which now relies exclusively on
65679         getaddrinfo.
65680         (ch_strerror): New function.
65681         (last_cherror): New global.
65682         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65683         interface.
65684         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65685         void *.
65686         (freeaddrinfo): Free ai->ai_canonname when set.
65687
65688 2005-09-12  Derek Price  <derek@ximbiot.com>
65689
65690         Make canon-host require getaddrinfo.
65691         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65692         AC_LIBSOURCE canon-host.h.  Call...
65693         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65694         gl_GETADDRINFO.
65695         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65696
65697 2005-09-12  Derek Price  <derek@ximbiot.com>
65698
65699         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65700         LGPL.
65701         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65702
65703 2005-09-12  Derek Price  <derek@ximbiot.com>
65704
65705         * lib/gai_strerror.c: Include config.h when available.  Include
65706         getaddrinfo.h before other headers to test interface.
65707         Reported by Larry Jones <lawrence.jones@ugs.com>.
65708
65709 2005-09-12  Derek Price  <derek@ximbiot.com>
65710             Paul Eggert  <eggert@cs.ucla.edu>
65711
65712         * modules/glob (Files): Add glob-libc.h.
65713
65714 2005-09-12  Derek Price  <derek@ximbiot.com>
65715             Paul Eggert  <eggert@cs.ucla.edu>
65716
65717         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65718         glob_.h, glob-libc.h.
65719         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65720
65721 2005-09-12  Derek Price  <derek@ximbiot.com>
65722             Paul Eggert  <eggert@cs.ucla.edu>
65723
65724         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65725         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65726         protecting things that should be done only in gnulib contexts.
65727         * lib/glob_.h: New file, containing only the glob things needed for
65728         gnulib.
65729         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65730         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65731         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65732         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65733         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65734         and to respect the namespace rules better.
65735
65736 2005-09-08  Simon Josefsson  <jas@extundo.com>
65737
65738         * modules/socklen: New file.
65739
65740 2005-09-08  Simon Josefsson  <jas@extundo.com>
65741
65742         * m4/socklen.m4: New file.
65743
65744 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65745
65746         * modules/utimens (Files): Add m4/utimbuf.m4, since
65747         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
65748         Reported by Sergey Poznyakoff.
65749
65750 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65751
65752         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
65753         definitions, since that's the preferred style in glibc.
65754         Fix a minor spacing issue, and update copyright notice to match
65755         glibc's.
65756
65757 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65758
65759         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
65760
65761 2005-09-06  Simon Josefsson  <jas@extundo.com>
65762
65763         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
65764         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
65765
65766 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65767
65768         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
65769         warning.
65770
65771 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65772
65773         * config/srclist.txt: Add glibc bug 1302.
65774
65775 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
65776
65777         Change bitset word type from unsigned int to unsigned long int,
65778         as this has better performance on typical 64-bit hosts.
65779         Port bitset code to hosts with unusual word sizes.
65780         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
65781         (build_collating_symbol):
65782         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
65783         argument is a bitset.  This is merely a style issue, but it makes
65784         it clearer that an entire array is expected.
65785         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
65786         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
65787         Port to the case where bitset_word is not the same as unsigned int.
65788         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65789         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
65790         Likewise.
65791         * lib/regexec.c (check_dst_limits_calc_pos_1,
65792         check_subexp_matching_top):
65793         (build_trtable, group_nodes_into_DFAstates):
65794         Likewise.
65795         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
65796         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
65797         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
65798         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
65799         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
65800         * lib/regcomp.c (optimize_subexps, lower_subexp):
65801         Work even if bitset_word has holes in its bitwise representation.
65802         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
65803         * lib/regexec.c (check_dst_limits_calc_pos_1,
65804         check_subexp_matching_top):
65805         Likewise.
65806         * lib/regex_internal.c (re_string_reconstruct):
65807         Don't assume UCHAR_MAX == 255.
65808         * lib/regex_internal.h (bitset_set_all): Likewise.
65809         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
65810         All uses changed.
65811         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
65812         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
65813         All uses changed.
65814         (BITSET_WORD_MAX): New macro.
65815         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
65816         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
65817         (bitset_empty, bitset_copy):
65818         Prefer sizeof (bitset) to multiplying it out ourselves.
65819         (bitset_not_merge): Remove; unused.
65820         (bitset_contain): Return bool, not unsigned int with one bit on.
65821         All callers changed.
65822         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
65823         alignment than re_node_set; do this by defining a new internal
65824         type struct dests_alloc and using it to allocate memory.
65825
65826 2005-09-05  Bruno Haible  <bruno@clisp.org>
65827
65828         * gnulib-tool (func_import): Fix comparison in handling of symbolic
65829         links.
65830
65831 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
65832
65833         * modules/size_max (Makefile.am): Add size_max.h
65834
65835 2005-09-04  Derek Price  <derek@ximbiot.com>
65836
65837         * gnulib-tool (func_import): Fix reversed $symbolic logic.
65838
65839 2005-09-03  Simon Josefsson  <jas@extundo.com>
65840
65841         * gnulib-tool: Fix typo.
65842
65843 2005-09-03  Simon Josefsson  <jas@extundo.com>
65844
65845         * config/srclist.txt: Add glibc bug 1293.
65846
65847 2005-09-03  Derek Price  <derek@ximbiot.com>
65848
65849         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
65850         From Larry Jones <lawrence.jones@ugs.com>.
65851
65852 2005-09-02  Simon Josefsson  <jas@extundo.com>
65853
65854         * modules/socklen: New file.
65855
65856 2005-09-02  Simon Josefsson  <jas@extundo.com>
65857
65858         * modules/havelib: New module.
65859
65860         * modules/gettext, modules/iconv, modules/lock, modules/readline:
65861         Use havelib.
65862
65863 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65864
65865         Check for arithmetic overflow when calculating sizes, to prevent
65866         some buffer-overflow issues.  These patches are conservative, in the
65867         sense that when I couldn't determine whether an overflow was possible,
65868         I inserted a run-time check.
65869         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
65870         macros.
65871         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
65872         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
65873         (re_xnrealloc, re_x2nrealloc): New inline functions.
65874         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
65875         parse_bracket_exp):
65876         (build_equiv_class, build_charclass): Check for arithmetic overflow
65877         in size expression calculations.
65878         * lib/regex_internal.c (re_string_realloc_buffers):
65879         (build_wcs_upper_buffer, re_node_set_add_intersect):
65880         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
65881         (re_dfa_add_node, register_state): Likewise.
65882         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
65883         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
65884         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
65885         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
65886
65887 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65888
65889         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65890         m4/ulonglong.m4.  Problem reported by Martin Lambers.
65891
65892 2005-09-02  Bruno Haible  <bruno@clisp.org>
65893
65894         Support for lib vs. lib64 distinction on biarch platforms.
65895         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
65896         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
65897         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
65898
65899 2005-09-02  Bruno Haible  <bruno@clisp.org>
65900
65901         * gnulib-tool (import): In the other first-use case, provide defaults
65902         as well.
65903
65904 2005-09-02  Bruno Haible  <bruno@clisp.org>
65905
65906         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
65907         patches not yet found in the latest gettext release.
65908
65909 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65910
65911         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
65912         to avoid a collision with bits/local_lim.h in glibc.
65913         All uses changed.  Problem reported by Dmitry V. Levin in
65914         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
65915
65916         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
65917         bugs in int versus size_t comparisons.
65918         (re_string_context_at): Fix bug where the code assumed that
65919         Idx is signed.
65920
65921         Use bool where appropriate.
65922         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
65923         All callers changed.
65924         (calc_eclosure_iter): Likewise, for ROOT arg.
65925         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
65926         (build_charclass_op): Likewise, for NON_MATCH arg.
65927         * lib/regex_internal.c (re_string_allocate, re_string_construct):
65928         (re_string_construct_common): Likewise, for ICASE arg.
65929         * lib/regexec.c (re_search_2_stub, re_search_stub):
65930         Likewise, for RET_LEN arg.
65931         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
65932         (set_regs): Likewise, for FL_BACKTRACK arg.
65933         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
65934         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
65935         (calc_eclosure_iter, parse_bracket_exp):
65936         Use bool for internal variables that are booleans.
65937         * lib/regexec.c (re_search_internal, check_matching,
65938         proceed_next_node):
65939         (set_regs, build_sifted_states, sift_states_bkref):
65940         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
65941         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65942         (find_collation_sequence_value):
65943         Likewise.
65944         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
65945         (re_node_set_compare):
65946         Return bool, not int. All callers changed.
65947         * lib/regexec.c (check_halt_node_context, check_dst_limits):
65948         (build_trtable, check_node_accept): Likewise.
65949         * lib/regex_internal.h: Include stdbool.h.
65950
65951         Fix bugs uncovered when converting to bool.
65952         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
65953         failure instead of charging ahead blindly.
65954         * lib/regex_internal.c (register_state): Likewise.
65955         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
65956         for freeing internal storage.
65957         (group_nodes_into_DFA_states): Use unsigned int, not int, for
65958         bitset pieces used as boolean, to avoid undefined behavior
65959         on hosts that do int overflow checking.
65960
65961 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65962
65963         * config/srclist.txt: Add glibc bugs 1285-1287.
65964
65965 2005-09-01  Jim Meyering  <jim@meyering.net>
65966
65967         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
65968         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
65969         Require gl_STAT_MACROS, too.
65970
65971 2005-09-01  Bruno Haible  <bruno@clisp.org>
65972
65973         * gnulib-tool (import): In the first-use case, provide defaults.
65974
65975 2005-09-01  Bruno Haible  <bruno@clisp.org>
65976
65977         * gnulib-tool (func_import): Remove the .tmp files.
65978
65979 2005-09-01  Bruno Haible  <bruno@clisp.org>
65980
65981         * gnulib-tool (func_import): Fix handling of symbolic links.
65982
65983 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65984
65985         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65986         old glibc regex code mishandles strings longer than 2**31 bytes.
65987         This patch fixes this when the regex code is used in gnulib
65988         (i.e., outside glibc).
65989
65990         This patch should not affect the use of the regex code inside
65991         glibc.  No doubt this problem also needs to be handled for glibc
65992         as well, but the result will be an incompatible change to the
65993         glibc ABI, and the old ABI will have to be supported too.  That
65994         can be the the subject for another patch.
65995
65996         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65997         governing whether the rest of this patch is active.  By default,
65998         the macro is disabled and the patch has no effect.
65999         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66000         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66001         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66002         (re_match_2, re_set_registers): Use the new types.
66003         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66004         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66005         New macros.
66006         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66007         (re_string_context_at, bin_tree_t, re_dfastate_t):
66008         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66009         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66010         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66011         (re_string_char_size_at, re_string_wchar_at):
66012         (re_string_elem_size_at):
66013         Use the new types and macros to port to 64-bit hosts.
66014         Use unsigned types for internal values, so that the code
66015         mostly works even for arrays larger than SSIZE_MAX.
66016         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66017         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66018         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66019         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66020         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66021         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66022         (calc_inveclosure, parse_dup_op, build_range_exp):
66023         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66024         (fetch_number, create_token_tree, mark_opt_subexp):
66025         Likewise.
66026         * lib/regex_internal.c (re_string_construct_common,
66027         create_ci_newstate):
66028         (create_cd_newstate, re_string_allocate, re_string_construct):
66029         (re_string_realloc_buffers, build_wcs_upper_buffer):
66030         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66031         (re_string_reconstruct, re_string_peek_byte_case):
66032         (re_string_fetch_byte_case, re_string_context_at):
66033         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66034         (re_node_set_init_copy, re_node_set_add_intersect):
66035         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66036         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66037         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66038         (re_acquire_state, re_acquire_state_context, register_state):
66039         Likewise.
66040         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66041         search_cur_bkref_entry):
66042         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66043         (re_search_internal, re_search_2_stub, re_search_stub)
66044         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66045         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66046         (update_cur_sifted_state, check_dst_limits):
66047         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66048         (check_subexp_limits, sift_states_bkref, merge_state_array):
66049         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66050         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66051         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66052         (expand_bkref_cache, check_node_accept_bytes):
66053         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66054         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66055         (acquire_init_state_context, check_halt_node_context):
66056         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66057         (sift_states_backward, clean_state_log_if_needed):
66058         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66059         (find_recover_state, transit_state_sb, transit_state_mb):
66060         (transit_state_bkref, build_trtable, match_ctx_clean):
66061         Likewise.
66062         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66063         to work around an assumption that REG_MISSING is negative.
66064
66065         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66066         (seek_collating_symbol_entry) [defined _LIBC]:
66067         (lookup_collation_sequence_value) [defined _LIBC]:
66068         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66069         Use prototypes rather than old-style function definitions.
66070         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66071         (transit_state_sb) [0]:
66072         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66073
66074         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66075         rm_eo.
66076
66077         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66078         (optimize_subexps, lower_subexp):
66079         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66080         since the signed shift might overflow.  Use 1u<<31 instead.
66081         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66082         Likewise.
66083         * lib/regexec.c (check_dst_limits_calc_pos_1,
66084         check_subexp_matching_top): Likewise.
66085
66086         * lib/regcomp.c (optimize_subexps, lower_subexp):
66087         Use CHAR_BIT rather than 8, for clarity.
66088         * lib/regexec.c (check_dst_limits_calc_pos_1):
66089         (check_subexp_matching_top): Likewise.
66090         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66091         have to worry about portability issues when shifting it left.
66092         Remove no-longer-needed test for table_size > 0.
66093         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66094         in a word, as the resulting behavior is undefined.
66095         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66096         in one case, a <= should have been an <, and in another case the
66097         whole test was missing.
66098         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66099         the standard name CHAR_BIT.
66100         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66101         this is not true on one's complement and signed-magnitude hosts.
66102
66103         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66104         next_last_offset.
66105         (struct re_dfa_t): Remove unused member states_alloc.
66106         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66107
66108 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66109
66110         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66111         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66112         and large-file glibc and in 32-bit large-file Solaris.
66113
66114 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66115
66116         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66117         lengths fit in regoff_t; this isn't true if regoff_t is the same
66118         width as size_t.
66119         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66120         (= START + RANGE) instead of RANGE.  This avoids overflow
66121         problems when regoff_t is the same width as size_t.
66122         All callers changed.
66123         (re_search_2_stub): Check for overflow when adding the
66124         sizes of the two strings.
66125         (re_search_stub): Check for overflow when adding START
66126         to RANGE; if it occurs, substitute the extreme value.
66127
66128 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66129
66130         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66131
66132 2005-08-31  Jim Meyering  <jim@meyering.net>
66133
66134         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66135         a pointer-to-const.
66136         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66137         (register_state): Likewise.
66138         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66139         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66140         (group_nodes_into_DFAstates): Likewise.
66141
66142 2005-08-31  Jim Meyering  <jim@meyering.net>
66143
66144         * check-module: Add a FIXME comment.
66145
66146 2005-08-31  Eric Blake  <ebb9@byu.net>
66147
66148         * modules/unistd-safer (Files): Add unistd--.h.
66149         * modules/stdio-safer (Files): Add stdio--.h.
66150
66151 2005-08-31  Derek Price  <derek@ximbiot.com>
66152
66153         * lib/getdelim.c (getdelim): Return EOF on EOF.
66154         Reported by Larry Jones <lawrence.jones@ugs.com>.
66155
66156 2005-08-31  Bruno Haible  <bruno@clisp.org>
66157
66158         Avoid unnecessary diffs in the generated lib/Makefile.am.
66159         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66160         the generated files.
66161         (func_import): Don't set cmd.
66162
66163 2005-08-31  Bruno Haible  <bruno@clisp.org>
66164
66165         * lib/strstr.c: Include <stddef.h>, for NULL.
66166         * lib/strcasestr.c: Likewise.
66167         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66168
66169 2005-08-31  Bruno Haible  <bruno@clisp.org>
66170
66171         * gnulib-tool: New option --macro-prefix.
66172         (func_import): Use macro_prefix.
66173         (import): Handle option --macro-prefix.
66174
66175 2005-08-31  Bruno Haible  <bruno@clisp.org>
66176
66177         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66178         Also use new variables cached_lgpl, cached_libtool.
66179
66180 2005-08-31  Bruno Haible  <bruno@clisp.org>
66181
66182         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66183         always instantiating them.
66184
66185 2005-08-31  Bruno Haible  <bruno@clisp.org>
66186
66187         * gnulib-tool (func_import): Read the previous cached settings
66188         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66189         earlier added by gnulib but are now dropped. Warn when a gnulib file
66190         overwrites a non-gnulib file.
66191
66192 2005-08-31  Bruno Haible  <bruno@clisp.org>
66193
66194         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66195         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66196         projects that don't keep autogenerated files in CVS. Put into
66197         actioncmd only the specified modules, not the transitive closure.
66198
66199 2005-08-31  Bruno Haible  <bruno@clisp.org>
66200
66201         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66202         Create directories that shall be filled.
66203         (import): Don't look for gl_* macros in configure.ac. Recurse across
66204         all directories containing a gnulib-cache.m4 files, if meaningful.
66205
66206 2005-08-31  Bruno Haible  <bruno@clisp.org>
66207
66208         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66209         (import): Set seen_libtool when we see gl_LIBTOOL.
66210
66211 2005-08-31  Bruno Haible  <bruno@clisp.org>
66212
66213         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66214         declaration macro definitions from generated gnulib.m4.
66215
66216 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66217
66218         * lib/iconvme.h: Add prototype for iconv_alloc.
66219
66220 2005-08-29  Simon Josefsson  <jas@extundo.com>
66221
66222         * lib/iconvme.c: Fix errno.
66223
66224 2005-08-29  Bruno Haible  <bruno@clisp.org>
66225
66226         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66227         that it works when the directory contains spaces.
66228
66229 2005-08-29  Bruno Haible  <bruno@clisp.org>
66230
66231         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66232
66233 2005-08-29  Bruno Haible  <bruno@clisp.org>
66234
66235         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66236         Emit more advice.
66237
66238 2005-08-29  Bruno Haible  <bruno@clisp.org>
66239         and Stepan Kasal  <kasal@ucw.cz>
66240
66241         * check-module: If more parameters are given, check each of them
66242         separately; add more exceptions, as noted by Jim Meyering.
66243         (check_module): New procedure.
66244         (%exempt_header): Now contains all exceptions.
66245
66246 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66247
66248         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66249
66250 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66251
66252         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66253
66254 2005-08-28  Bruno Haible  <bruno@clisp.org>
66255
66256         * m4/gnulib-tool.m4: New file.
66257
66258 2005-08-27  Jim Meyering  <jim@meyering.net>
66259
66260         * modules/unistd-safer (Files): Add pipe-safer.c.
66261         * modules/fcntl-safer (Files): Add creat-safer.c.
66262
66263 2005-08-27  Jim Meyering  <jim@meyering.net>
66264
66265         * m4/stdlib-safer.m4: New file.  From coreutils.
66266         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66267         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66268         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66269         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66270         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66271
66272 2005-08-27  Jim Meyering  <jim@meyering.net>
66273
66274         * lib/fopen-safer.c: Merge minor changes from coreutils.
66275         * lib/dup-safer.c: Likewise.
66276         * lib/fd-safer.c: Likewise.
66277
66278         Merge from coreutils.
66279         * lib/stdio--.h: New file.
66280         * lib/stdlib--.h: New file.
66281         * lib/mkstemp-safer.c: New file.
66282
66283         GNU tar needs these.
66284         * lib/pipe-safer.c: New file.
66285         * lib/creat-safer.c: New file.
66286         * lib/fcntl--.h (creat): Define to creat_safer.
66287         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66288         * lib/unistd--.h (pipe): Define to pipe_safer.
66289         * lib/unistd-safer.h: Declare pipe_safer.
66290
66291 2005-08-26  Simon Josefsson  <jas@extundo.com>
66292
66293         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66294         Haible <bruno@clisp.org>.
66295
66296 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66297
66298         * lib/regex_internal.h: Remove all references to
66299         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66300         or better.
66301         (bitset_not, bitset_merge, bitset_not_merge):
66302         (bitset_mask, re_string_allocate, re_string_construct):
66303         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66304         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66305         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66306         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66307         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66308         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66309         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66310         (re_acquire_state_context):
66311         Remove unnecessary forward decls.
66312         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66313         Put __attribute at function definition,
66314         now that the function decl has been removed.
66315         * lib/regex_internal.c (re_string_peek_byte_case):
66316         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66317         Likewise.
66318
66319 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66320
66321         * m4/regex.m4: Add AC_PREREQ(2.50).
66322         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66323
66324 2005-08-25  Simon Josefsson  <jas@extundo.com>
66325
66326         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66327         __fsetlocking.
66328
66329 2005-08-25  Simon Josefsson  <jas@extundo.com>
66330
66331         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66332         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66333         GLIBC specific code.
66334
66335 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66336
66337         Make regex safe for g++.  This fixes one real bug (an "err"
66338         that should have been "*err").  g++ problem reported by
66339         Sam Steingold.
66340         * lib/regex_internal.h (re_calloc): New macro, consistent with
66341         re_malloc etc.  All callers of calloc changed to use re_calloc.
66342         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66343         not int.  All callers changed.
66344         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66345         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66346         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66347         (find_recover_state): Change "err" to "*err"; this fixes what
66348         appears to be a real bug.
66349         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66350         versus int.
66351
66352 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66353
66354         * modules/regex (Depends-on): Add malloc, since the code
66355         assumes that !malloc(0) means failure.
66356
66357 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66358
66359         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66360
66361         alloca modernization/simplification for regex.
66362         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66363         needs to be at the start of the file, and can be moved into
66364         regex_internal.h and simplified.
66365         * lib/regex_internal.h: Include <alloca.h>.
66366         (__libc_use_alloca) [!defined _LIBC]: New macro.
66367         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66368         now works outside glibc.
66369
66370 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66371
66372         * config/srclist.txt: Add glibc bugs 1241, 1245.
66373
66374 2005-08-25  Jim Meyering  <jim@meyering.net>
66375
66376         * lib/open-safer.c: Include <config.h>.
66377         Otherwise, we'd lose LARGEFILE support in any file using
66378         e.g. "fcntl--.h"
66379
66380 2005-08-25  Bruno Haible  <bruno@clisp.org>
66381
66382         * m4/minmax.m4: Require autoconf 2.52.
66383         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66384         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66385         alternatives of translit over the alphabet.
66386         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66387
66388 2005-08-24  Simon Josefsson  <jas@extundo.com>
66389
66390         * tests/test-getpass.c: New file.
66391
66392 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66393
66394         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66395         for GNU regex features.
66396
66397 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66398
66399         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66400         * lib/regex.h (regerror): Likewise.
66401
66402         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66403         requires this.  (The code never needed it.)
66404
66405         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66406         All uses of recently-renamed identifiers changed to use the new,
66407         POSIX-compliant names.  The code will build and run just fine
66408         without these changes, but it's better to eat our own dog food
66409         and use the standard-conforming names.
66410
66411         * lib/regex.h: Fix a multitude of POSIX name space violations.
66412         These changes have an effect only for programs that define
66413         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66414         do not change anything for programs compiled in the normal way.
66415         Also, there is no effect on the ABI.
66416
66417         (_REGEX_SOURCE): New macro.
66418         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66419         defined and _GNU_SOURCE is not; this fixes a name space violation.
66420
66421         Rename the following macros to obey POSIX requirements.
66422         The old names are still visible as macros if _REGEX_SOURCE is defined.
66423         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66424         RE_BACKSLASH_ESCAPE_IN_LISTS.
66425         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66426         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66427         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66428         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66429         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66430         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66431         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66432         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66433         (REG_INTERVALS): renamed from RE_INTERVALS.
66434         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66435         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66436         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66437         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66438         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66439         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66440         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66441         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66442         RE_UNMATCHED_RIGHT_PAREN_ORD.
66443         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66444         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66445         (REG_DEBUG): renamed from RE_DEBUG.
66446         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66447         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66448         unusual, since we can't clash with the POSIX REG_ICASE.
66449         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66450         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66451         (REG_NO_SUB): renamed from RE_NO_SUB.
66452         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66453         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66454         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66455         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66456         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66457         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66458         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66459         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66460         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66461         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66462         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
66463         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
66464         RE_SYNTAX_POSIX_MINIMAL_BASIC.
66465         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
66466         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
66467         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
66468         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
66469         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
66470         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
66471         (REG_FIXED): Renamed from REGS_FIXED.
66472         (REG_NREGS): Renamed from RE_NREGS.
66473
66474         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
66475         of other REG_* macros, since POSIX says the user is allowed to
66476         #undef these macros selectively.
66477
66478         (reg_errcode_t): Update comment stating what other tables need
66479         to be consistent.
66480
66481         Rename the following enum values to obey POSIX requirements.
66482         The old names are still visible as macros.
66483         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
66484         is not defined, since GNU is supposed to be a superset of POSIX as
66485         much as possible, and since we want reg_errcode_t to be a signed
66486         type for implementation consistency.
66487         (_REG_NOERROR): Renamed from REG_NOERROR.
66488         (_REG_NOMATCH): Renamed from REG_NOMATCH.
66489         (_REG_BADPAT): Renamed from REG_BADPAT.
66490         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
66491         (_REG_ECTYPE): Renamed from REG_ECTYPE.
66492         (_REG_EESCAPE): Renamed from REG_EESCAPE.
66493         (_REG_ESUBREG): Renamed from REG_ESUBREG.
66494         (_REG_EBRACK): Renamed from REG_EBRACK.
66495         (_REG_EPAREN): Renamed from REG_EPAREN.
66496         (_REG_EBRACE): Renamed from REG_EBRACE.
66497         (_REG_BADBR): Renamed from REG_BADBR.
66498         (_REG_ERANGE): Renamed from REG_ERANGE.
66499         (_REG_ESPACE): Renamed from REG_ESPACE.
66500         (_REG_BADRPT): Renamed from REG_BADRPT.
66501         (_REG_EEND): Renamed from REG_EEND.
66502         (_REG_ESIZE): Renamed from REG_ESIZE.
66503         (_REG_ERPAREN): Renamed from REG_ERPAREN.
66504         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
66505         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
66506         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
66507         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
66508
66509         (_REG_RE_NAME, _REG_RM_NAME): New macros.
66510         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
66511         changed.  But support the old name if the new one is not defined
66512         and if _REGEX_SOURCE.
66513
66514         Change the following member names in struct re_pattern_buffer.
66515         The old names are still supported if !_REGEX_SOURCE.
66516         The new names are always supported, regardless of _REGEX_SOURCE.
66517         (re_buffer): Renamed from buffer.
66518         (re_allocated): Renamed from allocated.
66519         (re_used): Renamed from used.
66520         (re_syntax): Renamed from syntax.
66521         (re_fastmap): Renamed from fastmap.
66522         (re_translate): Renamed from translate.
66523         (re_can_be_null): Renamed from can_be_null.
66524         (re_regs_allocated): Renamed from regs_allocated.
66525         (re_fastmap_accurate): Renamed from fastmap_accurate.
66526         (re_no_sub): Renamed from no_sub.
66527         (re_not_bol): Renamed from not_bol.
66528         (re_not_eol): Renamed from not_eol.
66529         (re_newline_anchor): Renamed from newline_anchor.
66530
66531         Change the following member names in struct re_registers.
66532         The old names are still supported if !_REGEX_SOURCE.
66533         The new names are always supported, regardless of _REGEX_SOURCE.
66534         (rm_num_regs): Renamed from num_regs.
66535         (rm_start): Renamed from start.
66536         (rm_end): Renamed from end.
66537
66538         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
66539         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
66540         Prepend __ to parameter names.
66541
66542         Undo yesterday's changes.
66543
66544 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66545
66546         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
66547         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
66548         lib/regex.c.
66549
66550 2005-08-24  Jim Meyering  <jim@meyering.net>
66551
66552         Sync from coreutils.
66553         * m4/fcntl-safer.m4: New file.
66554
66555         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
66556         and object files for this module.
66557
66558 2005-08-24  Jim Meyering  <jim@meyering.net>
66559
66560         Sync from coreutils.
66561         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
66562
66563 2005-08-24  Jim Meyering  <jim@meyering.net>
66564
66565         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
66566         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
66567
66568 2005-08-24  Jim Meyering  <jim@meyering.net>
66569
66570         * modules/fcntl-safer: New module.
66571         * modules/fts (Depends-on): Add fcntl-safer.
66572         * MODULES.html.sh (File descriptor based Input/Output):
66573         Add fcntl-safer.
66574
66575 2005-08-24  Bruno Haible  <bruno@clisp.org>
66576
66577         Support for unit test modules.
66578         * modules/README: Mention tests modules.
66579         * modules/TEMPLATE-TESTS: New file.
66580         * gnulib-tool: New options --extract-tests-module, --with-tests and
66581         --tests-base (unused for the moment).
66582         (testsbase, inctests): New variables.
66583         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
66584         (func_verify_module): Exclude TEMPLATE-TESTS.
66585         (func_verify_nontests_module, func_verify_tests_module): New functions.
66586         (func_get_dependencies): Add implicit dependency for tests modules.
66587         (func_get_tests_module): New function.
66588         (func_modules_transitive_closure): When --with-tests was specified,
66589         include the unit tests as well, unless explicitly avoided.
66590         (func_emit_lib_Makefile_am): Ignore the tests modules here.
66591         (func_emit_tests_Makefile_am): New function.
66592         (func_create_testdir): When --with-tests was specified, emit a
66593         tests/ directory.
66594         * MODULES.html.sh (Future developments): Update.
66595
66596 2005-08-24  Bruno Haible  <bruno@clisp.org>
66597
66598         * modules/tls-tests: New file.
66599         * tests/test-tls.c: New file, from GNU gettext.
66600
66601 2005-08-24  Bruno Haible  <bruno@clisp.org>
66602
66603         * modules/lock-tests: New file.
66604         * tests/test-lock.c: New file, from GNU gettext.
66605
66606 2005-08-24  Bruno Haible  <bruno@clisp.org>
66607
66608         * lib/lock.h: Add multiple inclusion guard.
66609         * lib/tls.h: Add multiple inclusion guard.
66610
66611 2005-08-24  Bruno Haible  <bruno@clisp.org>
66612
66613         * gnulib-tool: Add support for the --aux-dir option to
66614         --create-testdir, --create-megatestdir, --test, --megatest.
66615         (func_create_testdir, func_create_megatestdir): Optionally emit a
66616         AC_CONFIG_AUX_DIR directive.
66617         (create-testdir, create-megatestdir, test, megatest): Provide a
66618         default value for $auxdir.
66619
66620 2005-08-24  Bruno Haible  <bruno@clisp.org>
66621
66622         * gnulib-tool (import): Use compound statement instead of subshell
66623         where possible.
66624
66625 2005-08-24  Bruno Haible  <bruno@clisp.org>
66626
66627         * gnulib-tool (import): Change --aux-dir default to "build-aux".
66628
66629 2005-08-24  Bruno Haible  <bruno@clisp.org>
66630
66631         * gnulib-tool (func_version): Update.
66632
66633 2005-08-24  Bruno Haible  <bruno@clisp.org>
66634
66635         * gnulib-tool (func_import, func_create_testdir,
66636         func_create_megatestdir): Quote all autoconf macro arguments.
66637
66638 2005-08-24  Bruno Haible  <bruno@clisp.org>
66639
66640         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66641         option --force, because --force causes the aclocal.m4 of each
66642         subdirectory to be newer than the corresponding config.h.in.
66643
66644 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66645
66646         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66647         All contents moved to gl_REGEX.
66648         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66649         assume that it does.
66650
66651 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66652
66653         * lib/regex.h (REG_NOSYS)
66654         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66655         Define, since POSIX requires it as of 2001.
66656         (_REG_ENOSYS)
66657         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66658         New private symbol, used to keep the enum signed in all cases.
66659         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66660         Youngman in
66661         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66662
66663         * lib/regex_internal.c (re_string_skip_chars, register_state):
66664         (calc_state_hash):
66665         Remove forward decls; no longer needed now that we use prototypes.
66666         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66667         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66668         (clean_state_log_if_needed): Likewise.
66669
66670 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66671
66672         * config/srclist.txt: Add glibc bugs 1231-1233.
66673
66674 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66675
66676         Fix problems reported by Sam Steingold in
66677         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66678         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66679         assumed that reg_errcode_t is a signed type, which is not
66680         necessarily true if _XOPEN_SOURCE is not defined.
66681         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66682         since some compilers warn about it otherwise.
66683
66684 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66685
66686         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66687         (init_word_char, create_initial_state, duplicate_node_closure):
66688         (fetch_token, peek_token_bracket, build_range_exp):
66689         (build_collating_symbol): Remove forward decls; no longer needed
66690         now that we use prototypes.
66691
66692         * lib/regcomp.c:
66693         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66694         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66695         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66696         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66697         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66698         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66699         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66700         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66701         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66702         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66703         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66704         (build_charclass, build_charclass_op, fetch_number, create_tree):
66705         (create_token_tree, mark_opt_subexp, duplicate_tree):
66706         Use prototypes rather than old-style definitions.
66707
66708         * lib/regex_internal.c:
66709         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66710         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66711         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66712         (re_string_reconstruct, re_string_peek_byte_case):
66713         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66714         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66715         (re_node_set_init_copy, re_node_set_add_intersect):
66716         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66717         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66718         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66719         (re_acquire_state, re_acquire_state_context, register_state):
66720         (create_ci_newstate, create_cd_newstate, free_state):
66721         Likewise.
66722         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66723         re_search_2):
66724         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66725         (re_search_internal, prune_impossible_nodes):
66726         (acquire_init_state_context, check_matching, static):
66727         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66728         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66729         (update_regs, sift_states_backward, build_sifted_states):
66730         (clean_state_log_if_needed, merge_state_array):
66731         (update_cur_sifted_state, add_epsilon_src_nodes):
66732         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66733         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66734         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66735         (find_recover_state, check_subexp_matching_top, transit_state_mb):
66736         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
66737         (check_arrival, check_arrival_add_next_nodes):
66738         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66739         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66740         (check_node_accept_bytes, check_node_accept, extend_buffers):
66741         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
66742         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
66743         (sift_ctx_init):
66744         Likewise.
66745
66746         * lib/regex_internal.h:
66747         (re_string_allocate, re_string_construct, re_string_reconstruct):
66748         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
66749         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
66750         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
66751         (re_string_context_at, re_string_peek_byte_case):
66752         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
66753         is defined, since we now use prototypes always.
66754
66755         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
66756         C89 or better.  All uses removed.
66757
66758 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66759
66760         * config/srclist.txt: Add glibc bugs 1220-1227.
66761
66762 2005-08-20  Jim Meyering  <jim@meyering.net>
66763
66764         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
66765         of unused local, dfa.
66766
66767 2005-08-20  Bruno Haible  <bruno@clisp.org>
66768
66769         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
66770
66771 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66772
66773         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
66774         (re_node_set_insert_last, re_dfa_add_node):
66775         Rename local variables to avoid GCC shadowing warnings.
66776
66777 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66778
66779         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
66780         [defined lint]: Suppress bogus uninitialized-variable warnings.
66781
66782         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
66783         and let the caller return REG_ESPACE if out of space.  This
66784         removes an uninitialied-variable warning with GCC 4.0.1, and also
66785         avoids taking the address of a local variable.  All callers
66786         changed.
66787
66788 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66789
66790         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
66791         $LIBCSRC/posix/regexec.c.
66792         Add glibc bug 1217 for regcomp.c.
66793
66794 2005-08-19  Jim Meyering  <jim@meyering.net>
66795
66796         * lib/regexec.c (proceed_next_node): Redo local variables to
66797         avoid GCC shadowing warnings.
66798
66799 2005-08-18  Bruno Haible  <bruno@clisp.org>
66800
66801         * lib/strstr.c (strstr): Fix return value in multibyte case.
66802         * lib/strcasestr.c (strcasestr): Likewise.
66803
66804 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66805
66806         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
66807
66808 2005-08-17  Jim Meyering  <jim@meyering.net>
66809
66810         Make the %s format (seconds since the epoch) work for a negative
66811         number and when used with a zero-padded field width, e.g. %015s.
66812
66813         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
66814         label so that it precedes the code to set `digits'.  Otherwise,
66815         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
66816         print `00-22'.  Now, it prints `-0022', as it should.
66817
66818 2005-08-17  Bruno Haible  <bruno@clisp.org>
66819
66820         * modules/strstr (Files): Add m4/mbrtowc.m4.
66821         (Depends-on): Add mbuiter.
66822
66823 2005-08-17  Bruno Haible  <bruno@clisp.org>
66824
66825         * modules/strcasestr: New file.
66826         * MODULES.html.sh (String handling, based on ANSI C 89): Add
66827         strcasestr.
66828
66829 2005-08-17  Bruno Haible  <bruno@clisp.org>
66830
66831         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
66832
66833 2005-08-17  Bruno Haible  <bruno@clisp.org>
66834
66835         * modules/mbuiter: New file.
66836         * MODULES.html.sh (Extended multibyte and wide character utilities):
66837         Add mbuiter.
66838
66839 2005-08-17  Bruno Haible  <bruno@clisp.org>
66840
66841         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
66842         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
66843
66844 2005-08-17  Bruno Haible  <bruno@clisp.org>
66845
66846         * m4/strcasestr.m4: New file.
66847
66848 2005-08-17  Bruno Haible  <bruno@clisp.org>
66849
66850         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
66851         * lib/strstr.c: Completely rewritten, with multibyte locale support.
66852
66853 2005-08-17  Bruno Haible  <bruno@clisp.org>
66854
66855         * lib/strcasestr.h: New file.
66856         * lib/strcasestr.c: New file.
66857
66858 2005-08-17  Bruno Haible  <bruno@clisp.org>
66859
66860         * lib/strcasecmp.c: Use mbuiter.h.
66861
66862 2005-08-17  Bruno Haible  <bruno@clisp.org>
66863
66864         * lib/mbuiter.h: New file.
66865
66866 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66867
66868         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
66869         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
66870         and gl_GETOPT are both invoked via different paths (as happens
66871         with GNU tar CVS because it uses both argp and getopt), the former
66872         wins.
66873
66874 2005-08-16  Bruno Haible  <bruno@clisp.org>
66875
66876         * modules/tls: New file.
66877         * MODULES.html.sh (Multithreading): Add tls.
66878
66879 2005-08-16  Bruno Haible  <bruno@clisp.org>
66880
66881         * modules/strnlen1: New file.
66882         * MODULES.html.sh (String handling): Add strnlen1.
66883
66884 2005-08-16  Bruno Haible  <bruno@clisp.org>
66885
66886         * modules/strcase (Files): Add m4/mbrtowc.m4.
66887         (Depends-on): Add strnlen1, mbchar.
66888
66889 2005-08-16  Bruno Haible  <bruno@clisp.org>
66890
66891         * modules/mbiter: New file.
66892         * MODULES.html.sh (Extended multibyte and wide character utilities):
66893         Add mbiter.
66894
66895 2005-08-16  Bruno Haible  <bruno@clisp.org>
66896
66897         * modules/mbfile: New file.
66898         * MODULES.html.sh (Extended multibyte and wide character utilities):
66899         Add mbfile.
66900
66901 2005-08-16  Bruno Haible  <bruno@clisp.org>
66902
66903         * modules/mbchar: New file.
66904         * MODULES.html.sh (Extended multibyte and wide character utilities):
66905         New section.
66906
66907 2005-08-16  Bruno Haible  <bruno@clisp.org>
66908
66909         * m4/tls.m4: New file, from GNU gettext.
66910
66911 2005-08-16  Bruno Haible  <bruno@clisp.org>
66912
66913         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
66914         always.
66915         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
66916
66917 2005-08-16  Bruno Haible  <bruno@clisp.org>
66918
66919         * m4/mbiter.m4: New file.
66920
66921 2005-08-16  Bruno Haible  <bruno@clisp.org>
66922
66923         * m4/mbfile.m4: New file.
66924
66925 2005-08-16  Bruno Haible  <bruno@clisp.org>
66926
66927         * m4/mbchar.m4: New file.
66928
66929 2005-08-16  Bruno Haible  <bruno@clisp.org>
66930
66931         * lib/tls.h: New file, from GNU gettext.
66932         * lib/tls.c: New file, from GNU gettext.
66933
66934 2005-08-16  Bruno Haible  <bruno@clisp.org>
66935
66936         * lib/strnlen1.h: New file.
66937         * lib/strnlen1.c: New file.
66938
66939 2005-08-16  Bruno Haible  <bruno@clisp.org>
66940
66941         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
66942         (mbi_init): Update.
66943         (mbi_avail, mbi_advance): Let the iteration end before the terminating
66944         NUL byte, not after it.
66945
66946 2005-08-16  Bruno Haible  <bruno@clisp.org>
66947
66948         * lib/strcase.h (strcasecmp): Add note in comments.
66949         * lib/strncasecmp.c: Use code from strcasecmp.c.
66950         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
66951         (strcasecmp): Work correctly in multibyte locales.
66952
66953 2005-08-16  Bruno Haible  <bruno@clisp.org>
66954
66955         * lib/mbiter.h: New file.
66956
66957 2005-08-16  Bruno Haible  <bruno@clisp.org>
66958
66959         * lib/mbfile.h: New file.
66960
66961 2005-08-16  Bruno Haible  <bruno@clisp.org>
66962
66963         * lib/mbchar.h: New file.
66964         * lib/mbchar.c: New file.
66965
66966 2005-08-16  Bruno Haible  <bruno@clisp.org>
66967
66968         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
66969         the valid ones. Makes the comparison operations transitive:
66970         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
66971         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
66972
66973 2005-08-15  Simon Josefsson  <jas@extundo.com>
66974
66975         * modules/ssize_t (License): Change to 'unlimited'.
66976
66977         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
66978
66979 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66980
66981         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
66982         Add comments for each pending glibc patch.
66983
66984 2005-08-15  Bruno Haible  <bruno@clisp.org>
66985
66986         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66987         __cplusplus is defined.
66988
66989 2005-08-14  Jim Meyering  <jim@meyering.net>
66990
66991         Sync from coreutils.
66992
66993         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66994         Use the hash-table-based cycle-detection code not just when
66995         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66996         Reported by James Youngman in
66997         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66998         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66999         FTS_TIGHT_CYCLE_CHECK.
67000         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67001         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67002         once again.
67003         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67004         * lib/fts.c (fd_safer): Remove decl.
67005         Include fcntl--.h rather than unistd-safer.h
67006         (fts_safe_changedir): Don't call fd_safer; no longer needed
67007         now that we include fcntl--.h.
67008
67009 2005-08-12  Simon Josefsson  <jas@extundo.com>
67010
67011         * modules/getndelim2: Use ssize_t module.
67012         * modules/getnline: Likewise.
67013         * modules/safe-read: Likewise.
67014         * modules/xreadlink: Likewise.
67015
67016         * modules/ssize_t: New file.
67017
67018 2005-08-12  Simon Josefsson  <jas@extundo.com>
67019
67020         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67021
67022 2005-08-12  Simon Josefsson  <jas@extundo.com>
67023
67024         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67025         ssize_t.
67026
67027 2005-08-12  Simon Josefsson  <jas@extundo.com>
67028
67029         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67030         readline, getdelim and check_version.
67031         (Support for systems lacking ISO C 99: Sizes of integer types):
67032         Add size_max.
67033
67034 2005-08-12  Bruno Haible  <bruno@clisp.org>
67035
67036         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67037
67038 2005-08-11  Simon Josefsson  <jas@extundo.com>
67039
67040         * modules/readline: New file.
67041
67042         * modules/strnlen (Files): Add strnlen.h.
67043
67044 2005-08-11  Simon Josefsson  <jas@extundo.com>
67045
67046         * m4/readline.m4: New file.
67047
67048 2005-08-11  Simon Josefsson  <jas@extundo.com>
67049
67050         * lib/readline.h, readline.c: New file.
67051
67052 2005-08-11  Simon Josefsson  <jas@extundo.com>
67053
67054         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67055         gl_AVOID.
67056
67057 2005-08-11  Bruno Haible  <bruno@clisp.org>
67058
67059         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67060
67061 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67062
67063         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67064
67065 2005-08-10  Simon Josefsson  <jas@extundo.com>
67066
67067         * tests/test-iconvme.c: New file.
67068
67069 2005-08-10  Simon Josefsson  <jas@extundo.com>
67070
67071         * m4/strnlen.m4: New file.
67072
67073         * m4/strndup.m4: Don't check for strnlen declaration, done in
67074         strnlen.m4.
67075
67076 2005-08-10  Simon Josefsson  <jas@extundo.com>
67077
67078         * lib/strndup.c: Use strnlen.h.
67079
67080         * lib/strnlen.h: New file.
67081
67082 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67083
67084         * README: Typos.
67085
67086 2005-08-02  Simon Josefsson  <jas@extundo.com>
67087
67088         * modules/readline: New file.
67089
67090 2005-08-02  Simon Josefsson  <jas@extundo.com>
67091
67092         * modules/getdelim: New file.
67093
67094         * modules/getline: Rewrite, don't use getndelim2.
67095
67096 2005-08-02  Simon Josefsson  <jas@extundo.com>
67097
67098         * m4/getline.m4: Separate out getdelim stuff into separate module.
67099
67100         * m4/getdelim.m4: New file.
67101
67102 2005-08-02  Simon Josefsson  <jas@extundo.com>
67103
67104         * lib/getline.h, getline.c: Rewrite.
67105
67106         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67107
67108 2005-07-31  Bruno Haible  <bruno@clisp.org>
67109
67110         * lib/lock.h (gl_lock_initializer): New macro.
67111         (gl_lock_define_initialized): Use it.
67112         (gl_rwlock_initializer): New macro.
67113         (gl_rwlock_define_initialized): Use it.
67114         (gl_recursive_lock_initializer): New macro.
67115         (gl_recursive_lock_define_initialized): Use it.
67116
67117 2005-07-30  Karl Berry  <karl@gnu.org>
67118
67119         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67120         Report from Ben Pfaff, regarding getopt.
67121
67122 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67123
67124         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67125         normal way.
67126         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67127         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67128         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67129         (gl_GETOPT): Use the new macros.  Most of the implementation
67130         is moved to the new macros.  This is for programs like Emacs
67131         that don't want all the functionality of gl_GETOPT.
67132
67133 2005-07-26  Bruno Haible  <bruno@clisp.org>
67134
67135         * m4/lock.m4: Update from GNU gettext.
67136
67137 2005-07-26  Bruno Haible  <bruno@clisp.org>
67138
67139         * lib/lock.h: Update from GNU gettext.
67140         * lib/lock.c: Update from GNU gettext.
67141
67142 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67143
67144         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67145         obsolescent AC_TRY_RUN.  Include the default includes files, for
67146         'exit'.
67147
67148 2005-07-24  Bruno Haible  <bruno@clisp.org>
67149
67150         * modules/visibility: New file.
67151         * MODULES.html.sh (Misc): Add visibility.
67152
67153 2005-07-24  Bruno Haible  <bruno@clisp.org>
67154
67155         * m4/visibility.m4: New file.
67156
67157 2005-07-24  Bruno Haible  <bruno@clisp.org>
67158
67159         * doc/visibility.texi: New file.
67160
67161 2005-07-22  Bruno Haible  <bruno@clisp.org>
67162
67163         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67164         $(ALLOCA_H), redundant through BUILT_SOURCES.
67165         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67166         redundant through BUILT_SOURCES.
67167         * modules/byteswap (Makefile.am): Remove explicit dependency on
67168         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67169         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67170         $(FNMATCH_H), redundant through BUILT_SOURCES.
67171         * modules/getopt (Makefile.am): Remove explicit dependency on
67172         $(GETOPT_H), redundant through BUILT_SOURCES.
67173         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67174         redundant through BUILT_SOURCES.
67175         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67176         redundant through BUILT_SOURCES.
67177         * modules/stdbool (Makefile.am): Remove explicit dependency on
67178         $(STDBOOL_H), redundant through BUILT_SOURCES.
67179         * modules/stdint (Makefile.am): Remove explicit dependency on
67180         $(STDINT_H), redundant through BUILT_SOURCES.
67181         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67182         Remove explicit dependency on $(SYSEXITS_H).
67183         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67184
67185 2005-07-18  Simon Josefsson  <jas@extundo.com>
67186
67187         * lib/check-version.c (check_version): Accept identical versions too.
67188
67189 2005-07-18  Bruno Haible  <bruno@clisp.org>
67190
67191         * modules/lock: New file.
67192         * MODULES.html.sh (Multithreading): New section.
67193
67194 2005-07-18  Bruno Haible  <bruno@clisp.org>
67195
67196         * m4/lock.m4: New file, from GNU gettext.
67197
67198 2005-07-18  Bruno Haible  <bruno@clisp.org>
67199
67200         * lib/lock.h: New file, from GNU gettext.
67201         * lib/lock.c: New file, from GNU gettext.
67202
67203 2005-07-18  Bruno Haible  <bruno@clisp.org>
67204
67205         * lib/lock.h (gl_once_t): New type.
67206         (gl_once_define, gl_once): New macros.
67207         * lib/lock.c (fresh_once): New variable.
67208         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67209         functions.
67210
67211 2005-07-16  Simon Josefsson  <jas@extundo.com>
67212
67213         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67214         workaround, suggested by Bruno.
67215
67216 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67217
67218         * modules/xalloc (Depends-on): Add xalloc-die.
67219         * modules/xvasprintf (Depends-on): Add xalloc-die.
67220
67221 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67222
67223         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67224         with a minor change.
67225
67226 2005-07-15  Bruno Haible  <bruno@clisp.org>
67227
67228         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67229         When using lib/poll.c, define poll as rpl_poll.
67230
67231 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67232
67233         * modules/argp (Depends-on): Remove unlocked-io.
67234
67235 2005-07-14  Derek Price  <derek@ximbiot.com>
67236
67237         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67238         for glob symlink bug.
67239
67240 2005-07-14  Bruno Haible  <bruno@clisp.org>
67241
67242         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67243         Instead, test for *_unlocked function declarations directly.
67244
67245 2005-07-11  Simon Josefsson  <jas@extundo.com>
67246
67247         * modules/size_max: New file.
67248
67249         * modules/xsize: Depend on size_max module for size_max.m4.
67250
67251 2005-07-11  Simon Josefsson  <jas@extundo.com>
67252
67253         * lib/size_max.h: New file.
67254
67255 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67256
67257         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67258         copyright symbol and the year.
67259         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67260         (version_etc_va): Use parameterized copyright notice.
67261         Reword to conform to the current GNU coding standards.
67262
67263 2005-07-11  Karl Berry  <karl@gnu.org>
67264
67265         * doc/gnulib.texi (Quoting): new node.
67266         (Initial import): more info, from Patrice.
67267
67268 2005-07-11  Bruno Haible  <bruno@clisp.org>
67269
67270         * gnulib-tool (func_usage): Document option --avoid.
67271         (Command line options): Handle --avoid.
67272         (func_acceptable): New function.
67273         (func_modules_transitive_closure): Use it.
67274
67275 2005-07-11  Bruno Haible  <bruno@clisp.org>
67276
67277         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67278         Reported by Jim Meyering.
67279
67280 2005-07-10  Bruno Haible  <bruno@clisp.org>
67281
67282         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67283         Needed when size_t is smaller than 'unsigned int'.
67284         Reported by Paul Eggert.
67285
67286 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67287
67288         * modules/argp (Depends-on): Add unlocked-io
67289
67290 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67291
67292         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67293         block of defines.
67294
67295 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67296
67297         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67298         fix now.
67299
67300 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67301         and Paul Eggert  <eggert@cs.ucla.edu>
67302
67303         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67304         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67305
67306 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67307
67308         * modules/regex (Files): Add lib/regex_internal.c,
67309         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67310         (Depends-on): Add extensions.
67311         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67312
67313 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67314
67315         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67316         pathconf.
67317         * m4/same.m4 (gl_SAME): Likewise.
67318         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67319
67320         * m4/regex.m4: Adjust to new libc regex implementation.
67321         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67322         all the .c and .h parts of (the new) regex.
67323         Quote the m4 stuff better.
67324         Check for RE_ICASE bug of old gnulib.
67325         Check for REG_STARTEND of recent libc.
67326         Rename local variables from jm_* to gl_*.
67327         Quote operand of "test -f".
67328         Say "recent enough" version of libc, not "version 2".
67329         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67330         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67331         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67332         Remove check for btowc, isascii.
67333         Require AM_LANGINFO_CODESET.
67334
67335 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67336
67337         * lib/regex.c, regex.h: Sync from libc.
67338         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67339         * lib/regexec.c:
67340         New files, synced from libc, except that regex_internal.h
67341         currently has a small porting fix.
67342
67343 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67344
67345         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67346         regex_internal.c, regexec.c.
67347         Add regex_internal.h too, but as a comment, since the libc version
67348         is currently broken in gnulib mode.
67349
67350 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67351
67352         Support programs like Emacs that use gnulib but not gettext.
67353         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67354         * modules/gettext-h: New file.
67355         * modules/gettext (Files): Remove lib/gettext.h.
67356         (Depends-on): Add gettext-h.
67357         (Makefile.am): Remove lib_SOURCES.
67358         * modules/argmatch, modules/c-stack, modules/closeout:
67359         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67360         * modules/execute, modules/file-type, modules/getaddrinfo:
67361         * modules/getopt, modules/human, modules/javacomp:
67362         * modules/javaexec, modules/mkdir-p, modules/obstack:
67363         * modules/openat, modules/pagealign_alloc, modules/pipe:
67364         * modules/quotearg, modules/regex, modules/rpmatch:
67365         * modules/unicodeio, modules/userspec, modules/version-etc:
67366         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67367         * modules/xsetenv:
67368         Depend on gettext-h, not gettext.
67369
67370 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67371
67372         * gnulib-tool (func_import): Add support for 'public domain' license.
67373         * modules/alloca, modules/atexit, modules/memmove:
67374         Now public domain, not GPL.
67375         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67376         * modules/realloc, modules/strerror, modules/strtod:
67377         Now LGPL, not GPL.
67378
67379 2005-07-05  Bruno Haible  <bruno@clisp.org>
67380
67381         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67382         autoconf CVS. Needed for mingw.
67383
67384 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67385
67386         Remove the dependency of the strftime module on the tzset module.
67387         * modules/strftime (Depends-on): Remove dependency on tzset.
67388
67389 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67390
67391         Remove the dependency of the strftime module on the tzset module.
67392         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67393         gl_FUNC_TZSET_CLOBBER.
67394
67395 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67396
67397         Remove the dependency of the strftime module on the tzset module.
67398         * lib/strftime.c (my_strftime)
67399         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67400         Copy the input structure, to work around some of the bug with
67401         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67402         Solaris releases, you should also use the tzset module, but we won't
67403         require it as a dependency any more since we don't want LGPLed code
67404         to depend on GPLed code.
67405
67406 2005-07-02  Jim Meyering  <jim@meyering.net>
67407
67408         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67409         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67410         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67411         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67412
67413 2005-07-02  Jim Meyering  <jim@meyering.net>
67414
67415         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67416
67417 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67418
67419         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67420         declares only 'struct timespec;' (!).
67421
67422 2005-07-01  Jim Meyering  <jim@meyering.net>
67423
67424         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67425         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67426         * lib/save-cwd.c, tempname.c:
67427         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67428         and don't include <sys/file.h>).
67429
67430 2005-06-29  Jim Meyering  <jim@meyering.net>
67431
67432         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67433         type name.  Use the variable name instead.
67434         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67435         Likewise.
67436
67437 2005-06-28  Simon Josefsson  <jas@extundo.com>
67438
67439         * modules/check-version (Files): Add check-version.m4.
67440
67441 2005-06-28  Simon Josefsson  <jas@extundo.com>
67442
67443         * m4/check-version.m4: New file, suggested by Jim Meyering
67444         <jim@meyering.net>.
67445
67446 2005-06-28  Simon Josefsson  <jas@extundo.com>
67447
67448         * lib/check-version.h, lib/check-version.c: New files.
67449
67450 2005-06-28  Simon Josefsson  <jas@extundo.com>
67451
67452         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67453         collision with global variable.  Better indentation.  Don't
67454         increment buffer pointer beyond buffer end.  Based on comments
67455         from Paul Eggert <eggert@cs.ucla.edu>.
67456
67457         * lib/base64.h: Indent.
67458
67459 2005-06-28  Simon Josefsson  <jas@extundo.com>
67460
67461         * doc/gnulib.texi (Library version handling): New section.
67462
67463 2005-06-28  Jim Meyering  <jim@meyering.net>
67464
67465         * check-module (find_included_lib_files): Hard-code another
67466         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
67467         but modules/fts-lgpl (correctly) does not list those files.
67468
67469         * modules/canonicalize (Files): Add lib/pathmax.h.
67470
67471 2005-06-25  Simon Josefsson  <jas@extundo.com>
67472
67473         * modules/check-version: New file.
67474
67475 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
67476
67477         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
67478         initializer of struct addrinfo, as an indication that we don't
67479         care how many members the structure has.
67480
67481 2005-06-24  Derek Price  <derek@ximbiot.com>
67482         and Bruno Haible  <bruno@clisp.org>
67483
67484         Remove stat module & update lstat.
67485         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
67486         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67487         * m4/stat.m4: Remove this file.
67488
67489 2005-06-24  Derek Price  <derek@ximbiot.com>
67490         and Bruno Haible  <bruno@clisp.org>
67491
67492         Remove stat module & update lstat.
67493         * lib/stat.c: Remove this file...
67494         (slash_aware_lstat): ...moving this content and its support...
67495         * lib/lstat.c (rpl_lstat): ...into here.
67496         * lib/lstat.h: New file.
67497
67498 2005-06-24  Derek Price  <derek@ximbiot.com>
67499         and Bruno Haible  <bruno@clisp.org>
67500
67501         Remove stat module & update lstat.
67502         * config/srclist.txt (libc sources): Remove stat.
67503
67504 2005-06-24  Derek Price  <derek@ximbiot.com>
67505         and Bruno Haible  <bruno@clisp.org>
67506
67507         Remove stat module & update lstat.
67508         * MODULES.html.sh (stat): Remove.
67509         * MODULES.html: Regenerated.
67510         * modules/lstat (Description): Correct function name.
67511         (Files): Add "lstat.h".
67512         (Depends-on): Remove stat, add xalloc, stat-macros.
67513         * modules/stat: Remove this file.
67514         (Include): Add "lstat.h", remove <sys/stat.h>.
67515
67516 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67517
67518         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
67519         (ranged_convert): Don't save conversion in a temporary struct.
67520         This causes a warning with GCC 4.0.0, and anyway in the typical
67521         case it's not worth the extra 100 bytes or so of code.
67522         (ranged_convert, __mktime_internal): When calling a function via a
67523         pointer P, use P () rather than (*P) (), as we now assume C89 or
67524         better.
67525
67526 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67527
67528         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
67529         "who -r" failed to give output.  Problem reported by Tim Waugh.
67530
67531         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
67532         (xcalloc): Use it to avoid needless tests.
67533         Problem reported by Jim Meyering.
67534
67535 2005-06-20  Derek Price  <derek@ximbiot.com>
67536
67537         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
67538         unnecessary for Autoconfs > 2.59c.
67539
67540 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67541
67542         * lib/argp.h (__option_is_short): Check upper limit of
67543         __key. Isprint() requires its argument to have the value
67544         of an unsigned char or EOF.
67545
67546 2005-06-16  Jim Meyering  <jim@meyering.net>
67547
67548         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
67549         when either N or S is zero.
67550
67551 2005-06-16  Derek Price  <derek@ximbiot.com>
67552
67553         * m4/bison.m4: Declare YACC & YFLAGS precious.
67554
67555 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
67556
67557         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
67558         multibyte string or pattern, fall back on unibyte matching.
67559         Problem reported by James Youngman.
67560
67561 2005-06-08  Bruno Haible  <bruno@clisp.org>
67562
67563         * modules/csharpcomp: New file.
67564         * MODULES.html.sh (C#): Add csharpcomp.
67565
67566 2005-06-08  Bruno Haible  <bruno@clisp.org>
67567
67568         * m4/csharpcomp.m4: New file, from GNU gettext.
67569
67570 2005-06-08  Bruno Haible  <bruno@clisp.org>
67571
67572         * lib/csharpcomp.h: New file, from GNU gettext.
67573         * lib/csharpcomp.c: New file, from GNU gettext.
67574         * lib/csharpcomp.sh.in: New file, from GNU gettext.
67575
67576 2005-06-08  Bruno Haible  <bruno@clisp.org>
67577
67578         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
67579         warning on mingw.
67580
67581 2005-06-07  Derek Price  <derek@ximbiot.com>
67582
67583         Sync from CVS.
67584         * lib/glob_.h: Indent nested #ifdef.
67585
67586 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67587
67588         Sync from coreutils.
67589         Use "file name" when talking about file names, instead of "filename"
67590         or "path", as per the GNU coding standards.
67591         * lib/mkdir-p.c: Renamed from makepath.c.
67592         (make_dir_parents): Renamed from make_path.  All callers changed.
67593         * lib/mkdir-p.h: Likewise.  All includers changed.
67594         * lib/filenamecat.c: Renamed from path-concat.c.
67595         (file_name_concat): Renamed from path_concat.  All callers changed.
67596         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
67597         * lib/filenamecat.h: Likewise.  All includers changed.
67598         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
67599         in comments or local variable names.
67600         * lib/basename.c: Likewise.
67601         * lib/canonicalize.c, canonicalize.h: Likewise.
67602         * lib/dirname.c, dirname.h: Likewise.
67603         * lib/euidaccess.c: Likewise.
67604         * lib/exclude.c: Likewise
67605         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
67606         * lib/fsusage.c, fsuage.h: Likewise.
67607         * lib/fts.c, fts_.h: Likewise.
67608         * lib/getcwd.c: Likewise.
67609         * lib/getloadavg.c: Likewise.
67610         * lib/mkstemp.c: Likewise.
67611         * lib/mountlist.c, mountlist.h: Likewise.
67612         * lib/openat.c, openat.h: Likewise.
67613         * lib/readlink-stub.c: Likewise.
67614         * lib/readutmp.c, readutmp.h: Likewise.
67615         * lib/rename.c: Likewise.
67616         * lib/rmdir.c: Likewise.
67617         * lib/same.c: Likewise.
67618         * lib/savedir.c: Likewise.
67619         * lib/stripslash.c: Likewise.
67620         * lib/tempname.c: Likewise.
67621         * lib/xreadlink.c: Likewise.
67622         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
67623         All uses changed.
67624         * lib/exclude.h: Likewise.
67625
67626         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
67627         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67628         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
67629         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67630         * lib/pathmax.h: Include <limits.h> unconditionally, since other
67631         files have been getting away with it for years (MORE/BSD 4.3
67632         is extinct now).
67633         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67634         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67635
67636         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67637         Define to 256, not 255, as per modern POSIX.
67638
67639 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67640
67641         Sync from coreutils.
67642         Use "file name" when talking about file names, instead of "filename"
67643         or "path", as per the GNU coding standards.
67644         * MODULES.html.sh: mkdir-p renamed from makepath.
67645         filenamecat renamed from path-concat.
67646         * modules/filenamecat: Renamed from modules/path-concat.
67647         (Files): filenamecat.h and filenamecat.c renamed from
67648         path-concat.h and path-concat.c.
67649         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67650         (Include): filenamecat.h, not path-concat.h.
67651         * modules/mkdir-p: Renamed from modules/makepath.
67652         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67653         makepath.c.
67654         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67655         (Include): mkdir-p.h, not makepath.h.
67656
67657 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67658
67659         Sync from coreutils.
67660         * m4/mkdir-p.m4: Renamed from makepath.m4.
67661         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67662         Rename files from makepath.c to mkdir-p.c, and from
67663         makepath.h to mkdir-p.h.
67664         * m4/filenamecat.m4: Renamed from path-concat.m4.
67665         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67666         Rename files from path-concat.c to filenamecat.c,
67667         and from path-concat.h to filenamecat.h.
67668         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67669         "file name" in local variables or comments.
67670         * m4/rename.m4: Likewise.
67671
67672 2005-06-01  Bruno Haible  <bruno@clisp.org>
67673
67674         * modules/csharpexec: New file.
67675         * MODULES.html.sh (C#): New section.
67676
67677 2005-06-01  Bruno Haible  <bruno@clisp.org>
67678
67679         * m4/csharp.m4: New file, from GNU gettext.
67680         * m4/csharpexec.m4: New file, from GNU gettext.
67681
67682 2005-06-01  Bruno Haible  <bruno@clisp.org>
67683
67684         * lib/csharpexec.h: New file, from GNU gettext.
67685         * lib/csharpexec.c: New file, from GNU gettext.
67686         * lib/csharpexec.sh.in: New file, from GNU gettext.
67687
67688 2005-05-31  Derek Price  <derek@ximbiot.com>
67689             Paul Eggert  <eggert@cs.ucla.edu>
67690
67691         Sync from cvs.
67692         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67693
67694 2005-05-31  Derek Price  <derek@ximbiot.com>
67695             Paul Eggert  <eggert@cs.ucla.edu>
67696
67697         Sync from cvs.
67698         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67699
67700 2005-05-29  Derek Price  <derek@ximbiot.com>
67701
67702         * config/srclist.txt (glob_.h, glob.c): Add these files.
67703
67704 2005-05-29  Derek Price  <derek@ximbiot.com>
67705
67706         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67707         * modules/glob: New file.
67708         * modules/getlogin_r: Add link to POSIX spec in description.
67709
67710 2005-05-29  Derek Price  <derek@ximbiot.com>
67711             Paul Eggert  <eggert@cs.ucla.edu>
67712
67713         * m4/glob.m4: New file.
67714
67715 2005-05-29  Derek Price  <derek@ximbiot.com>
67716             Paul Eggert  <eggert@cs.ucla.edu>
67717
67718         * lib/glob_.h, lib/glob.c: New files.
67719
67720 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67721
67722         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67723         * modules/fts-lgpl (Depends-on): Remove gettext.
67724
67725 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67726
67727         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67728         and don't require gt_INTTYPES_PRI.
67729
67730 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67731
67732         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67733
67734         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67735         the configuration hassle isn't worth it.
67736         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
67737         (LONGEST_MODIFIER, PRIuMAX): Remove.
67738
67739 2005-05-27  Bruno Haible  <bruno@clisp.org>
67740
67741         * lib/getlogin_r.h: Remove second include of <stddef.h>.
67742
67743 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
67744
67745         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
67746         _POSIX_PTHREAD_SEMANTICS for Solaris.
67747
67748 2005-05-25  Derek Price  <derek@ximbiot.com>
67749
67750         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
67751
67752 2005-05-25  Derek Price  <derek@ximbiot.com>
67753             Paul Eggert  <eggert@cs.ucla.edu>
67754
67755         * modules/getlogin_r, m4/getlogin_r.m4: New files.
67756         * lib/getlogin_r.c, getlogin_r.h: New files.
67757
67758 2005-05-25  Bruno Haible  <bruno@clisp.org>
67759             Derek Price  <derek@ximbiot.com>
67760
67761         * lib/getlogin_r.h: Simplify API documentation.
67762
67763 2005-05-23  Derek Price  <derek@ximbiot.com>
67764
67765         * modules/minmax (Files): Add m4/minmax.m4.
67766         (configure.ac): Add gl_MINMAX.
67767
67768 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67769
67770         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
67771         so that unistd-safer.h (GPL'ed code) need not be included.
67772
67773 2005-05-22  Bruno Haible  <bruno@clisp.org>
67774
67775         * m4/minmax.m4: New file.
67776         Based on a patch by Derek Price <derek@ximbiot.com>.
67777
67778 2005-05-22  Bruno Haible  <bruno@clisp.org>
67779
67780         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
67781         (INT64_MIN): Fix definition.
67782         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
67783
67784         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
67785         NEED_SIGNED_INT_TYPES.
67786
67787         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
67788         HAVE_SYSTEM_INTTYPES.
67789
67790 2005-05-22  Bruno Haible  <bruno@clisp.org>
67791
67792         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
67793         Also include <sys/param.h> if it defines MIN, MAX.
67794         Based on a patch by Derek Price <derek@ximbiot.com>.
67795
67796 2005-05-21  Jim Meyering  <jim@meyering.net>
67797
67798         * modules/fts (Files): Add m4/inttypes-pri.m4.
67799         (Depends-on): Add lstat and remove gettext.  Alphabetize.
67800
67801 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67802
67803         New fts module.
67804         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
67805         (setup_dir, free_dir): New functions.
67806         (enter_dir, leave_dir): Define trivial
67807         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
67808         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
67809         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
67810         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
67811         Move to fts-cycle.c.
67812         (fts_open): Use setup_dir.
67813         (fts_close): Use free_dir.
67814         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
67815         This adds a label and some gotos, but the alternatives were messier.
67816         Check for memory allocation failure when entering a dir.
67817         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
67818         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
67819         (FTS): New member fts_cycle, that is a union that contains the
67820         old active_dir_ht and cycle_state.  All uses changed to mention
67821         fts_cycle.ht and fts_cycle.state.
67822         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
67823         fts.c, with the following changes:
67824         (setup_dir, free_dir): New functions.
67825         (enter_dir): Now returns bool.  Return true if successful, false
67826         if memory exhausted.  All callers changed.
67827         Do not bother partly cleaning up on
67828         memory allocation failure; that is free_dir's job.
67829         However, free ad if hash_insert fails, to avoid memory leak.
67830         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
67831         fts->fts_options to see which union member to use.
67832
67833 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67834
67835         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
67836         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
67837
67838 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67839
67840         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
67841
67842 2005-05-20  Jim Meyering  <jim@meyering.net>
67843
67844         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
67845         Now a macro, to pacify GCC.
67846
67847 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67848
67849         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
67850         of -1.
67851
67852 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67853
67854         * lib/chown.c (rpl_chown): Return -1 on failure.
67855
67856 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67857
67858         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
67859         Don't check for stddef.h.
67860         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
67861         don't use its results.
67862         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
67863         since we include them unconditionally.  Don't require
67864         AM_STDBOOL_H, since stdbool is a prerequisite.
67865         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
67866         since we assume C89 or better.
67867         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
67868         as we don't use their results.
67869         Don't check for fchdir, memmove, memset, strrchr, as we use
67870         them unconditionally.
67871         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
67872         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
67873
67874 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67875
67876         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
67877         Include <stddef.h> unconditionally, since we assume C89 now.
67878         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
67879         * lib/fts.c: Include fts_.h first, to check interface.
67880         Do not include intprops.h; no longer needed.
67881         Include cycle-check.h and hash.h, since fts_.h no longer does.
67882         Remove unnecessary casts of closedir to void.
67883         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
67884         decide whether to decrement nlinks.
67885         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
67886         (FTS): Use struct hash_table * instead of Hash_table, so that
67887         we no longer need to include hash.h here.
67888
67889 2005-05-18  Jim Meyering  <jim@meyering.net>
67890
67891         * modules/dirfd (License): Change to LGPL.  Most of the code
67892         is already in the public domain.
67893
67894 2005-05-18  Jim Meyering  <jim@meyering.net>
67895
67896         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
67897         Reported by Yoann Vandoorselaere.
67898
67899 2005-05-17  Jim Meyering  <jim@meyering.net>
67900
67901         * m4/fts.m4: New file, from coreutils.
67902
67903 2005-05-17  Jim Meyering  <jim@meyering.net>
67904
67905         * lib/fts.c, lib/fts_.h: New files, from coreutils.
67906
67907 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67908
67909         Sync from coreutils.
67910         * m4/unlinkdir.m4: New file.
67911
67912 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67913
67914         Sync from coreutils.
67915         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
67916         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
67917         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
67918         White space changes only.
67919         * lib/makepath.c (make_path): Port to hosts where leading "//" is
67920         special.
67921         * lib/yesno.c: Include getline.h, not ctype.h.
67922         (yesno): Don't remove leading white space; POSIX doesn't allow it.
67923         Use getline to remove arbitrary restriction on response length.
67924
67925 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67926
67927         * config/srclist-update: Spell out "Street" in FSF postal
67928         mail address; this is the style the FSF seems to prefer.
67929
67930         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
67931         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
67932         this updates FSF postal mail address.
67933
67934         Sync from coreutils.
67935         * modules/unlinkdir: New file.
67936         * modules/yesno (Depends-on): Add getline.
67937         * MODULES.html.sh (File system functions): Add unlinkdir.
67938
67939 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67940
67941         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
67942         lib/strsep.h:
67943         Change the initial comment to refer to GPL, not LGPL.
67944         gnulib-tool will change it to LGPL as needed.
67945
67946         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
67947         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
67948         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
67949         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
67950         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
67951         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
67952         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
67953         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
67954         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
67955         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
67956         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
67957         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
67958         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
67959         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
67960         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
67961         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
67962         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
67963         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
67964         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
67965         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
67966         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
67967         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
67968         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
67969         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
67970         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
67971         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
67972         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
67973         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
67974         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
67975         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
67976         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
67977         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
67978         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
67979         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
67980         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
67981         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
67982         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67983         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67984         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67985         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67986         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67987         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67988         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67989         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67990         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67991         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67992         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67993         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67994         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67995         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67996         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67997         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67998         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67999         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68000         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68001         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68002         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68003         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68004         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68005         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68006         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68007         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68008         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68009         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68010         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68011         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68012         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68013         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68014         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68015         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68016         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68017         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68018         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68019         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68020         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68021         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68022         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68023         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68024         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68025         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68026         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68027         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68028         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68029         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68030         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68031         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68032         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68033         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68034         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68035         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68036         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68037         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68038         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68039         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68040         lib/yesno.c, lib/yesno.h:
68041         Update FSF postal mail address.
68042
68043 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68044
68045         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68046         tests/test-memmem.c, tests/test-stpncpy.c:
68047         Update FSF postal mail address.
68048
68049 2005-05-13  Bruno Haible  <bruno@clisp.org>
68050
68051         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68052         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68053         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68054         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68055         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68056         Add support for 64-bit integers in the MSVC compiler.
68057
68058 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68059
68060         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68061
68062 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68063
68064         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68065
68066 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68067
68068         * doc/getdate.texi (General date syntax): Don't say that date
68069         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68070         Problem reported by Nic Ferrier.
68071
68072 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68073
68074         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68075         specified in ai_socktype. Fix invalid ai_protocol
68076         check. ai_protocol is usually set to 0 or depending on
68077         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68078         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68079         ai_socktype / ai_protocol in the returned addrinfo structure.
68080
68081 2005-05-10  Simon Josefsson  <jas@extundo.com>
68082
68083         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68084         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68085
68086 2005-05-10  Karl Berry  <karl@gnu.org>
68087
68088         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68089         (from http://www.gnu.org/licenses).
68090         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68091         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68092         fdl.texi suffices.
68093
68094 2005-05-10  Karl Berry  <karl@gnu.org>
68095
68096         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68097         (COPYING.DOC): remove.
68098
68099         * config/srclist-update: new FSF address.
68100
68101 2005-05-10  Derek Price  <derek@ximbiot.com>
68102
68103         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68104         possible.
68105
68106 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68107             Bruno Haible  <bruno@clisp.org>
68108
68109         * modules/inet_ntop: New file.
68110         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68111         inet_ntop.
68112
68113 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68114             Bruno Haible  <bruno@clisp.org>
68115
68116         * m4/inet_ntop.m4: New file.
68117
68118 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68119             Bruno Haible  <bruno@clisp.org>
68120
68121         * lib/inet_ntop.h: New file.
68122         * lib/inet_ntop.c: New file, from glibc with modifications.
68123
68124 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68125
68126         * modules/time_r (License): Change to LGPL.
68127         * modules/extensions (License): Change to LGPL.  Actually,
68128         the license is more permissive than that, but currently gnulib-tool
68129         doesn't know how to handle more-permissive licenses.
68130
68131         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68132         Problem reported by Dave Love.
68133
68134 2005-05-08  Jim Meyering  <jim@meyering.net>
68135
68136         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68137         blank.
68138
68139 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68140
68141         * modules/argmatch (Depends-on): Add stdbool.
68142         * modules/backupfile (Depends-on): Likewise.
68143         * modules/chdir-long (Depends-on): Likewise.
68144         * modules/closeout (Depends-on): Likewise.
68145         * modules/cycle-check (Depends-on): Likewise.
68146         * modules/dirname (Depends-on): Likewise.
68147         * modules/fnmatch (Depends-on): Likewise.
68148         * modules/fsusage (Depends-on): Likewise.
68149         * modules/fwriteerror (Depends-on): Likewise.
68150         * modules/getcwd (Depends-on): Likewise.
68151         * modules/getloadavg (Depends-on): Likewise.
68152         * modules/hard-locale (Depends-on): Likewise.
68153         * modules/makepath (Depends-on): Likewise.
68154         * modules/mountlist (Depends-on): Likewise.
68155         * modules/nanosleep (Depends-on): Likewise.
68156         * modules/posixtm (Depends-on): Likewise.
68157         * modules/quotearg (Depends-on): Likewise.
68158         * modules/readtokens (Depends-on): Likewise.
68159         * modules/readtokens0 (Depends-on): Likewise.
68160         * modules/readutmp (Depends-on): Likewise.
68161         * modules/save-cwd (Depends-on): Likewise.
68162         * modules/strftime (Depends-on): Likewise.
68163         * modules/userspec (Depends-on): Likewise.
68164         * modules/utimecmp (Depends-on): Likewise.
68165         * modules/xgetcwd (Depends-on): Likewise.
68166         * modules/xnanosleep (Depends-on): Likewise.
68167         * modules/xstrtod (Depends-on): Likewise.
68168         * modules/yesno (Depends-on): Likewise.
68169
68170 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68171
68172         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68173         needless checks.
68174
68175 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68176
68177         Merge from coreutils.  Among other things,
68178         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68179         * lib/fd-safer.c: New file.
68180         * lib/fcntl-safer.h, open-safer.c: Remove.
68181         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68182         * lib/dup-safer.c: Include unistd-safer.h first.
68183         Don't include errno.h.
68184         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68185         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68186         * lib/file-type.c: Rely on file-type.h change.
68187         * lib/getloadavg.c: Include unistd-safer.h.
68188         (getloadavg): Use safer open.
68189         * lib/getusershell.c: Include "stdio-safer.h".
68190         (getusershell): Use safer fopen.
68191         * lib/long-options.c (long_options): Use NULL rather than 0.
68192         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68193         'free'.
68194         * lib/modechange.c: Likewise.
68195         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68196         (MODE_DONE): New constant.
68197         (struct mode_change): Remove 'next' member.
68198         (make_node_op_equals): New function; like the old one of the
68199         same name, except it allocates an array.
68200         (mode_compile, mode_create_from_ref): Use it.
68201         (mode_compile): Allocate result as an array, not a linked list.
68202         Parse octal string ourself, so that we catch mistakes like "+0".
68203         (mode_adjust): Arg is an array, not a linked list.
68204         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68205         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68206         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68207         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68208         Remove.  This is now stat-macros.h's job.
68209         (talloc): Remove.  All callers replaced by xalloc, so that
68210         our invokers don't have to worry about reporting memory failures.
68211         (make_node_op_equals): Remove.
68212         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68213         New constants.
68214         (struct mode_change): Moved here from modechange.h.
68215         (mode_append_entry): Remove.
68216         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68217         apps to have incorrect behavior.  Use simpler algorithm for head
68218         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68219         Detect more invalid usages rather than having somewhat-random behavior.
68220         Don't insert an "a=" action, as that leads to incorrect behavior.
68221         (mode_compile, mode_create_from_ref): Return NULL on error instead
68222         of an enum, since now there's only one way to have an error.  All
68223         callers changed.
68224         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68225         at the correct time.  Simplify calculation of "+u" and its ilk.
68226         Don't mishandle "+X".
68227         (mode_free): Remove "register" and localize decls.
68228         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68229         (struct mode_change): Move to modechange.c; callers don't
68230         need to see this stuff.
68231         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68232         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68233         (mode_change, mode_adjust): Reflect the new signatures noted above.
68234         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68235         that might redefine system include files.
68236         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68237         (my_usleep): Use NULL rather than (void *) 0.
68238         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68239         Use siginterrupt to specify that system calls should be interrupted.
68240         (rpl_nanosleep): Move initialization of suspended closer to call of
68241         my_usleep.
68242         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68243         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68244         (desirable_utmp_entry): New function.
68245         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68246         using x2nrealloc, to simplify logic.
68247         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68248         size calculation.  Do not assume utmp file is a regular file.
68249         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68250         (READ_UTMP_CHECK_PIDS): New constant.
68251         * lib/save-cwd.c: Include unistd-safer.h.
68252         (save_cwd): Use fd_safer.
68253         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68254         [!_LIBC] Include "stat-macros.h" instead.
68255         * lib/unistd-safer.h (fd_safer): New decl.
68256
68257 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68258
68259         * modules/getloadavg (Depends-on): Add unistd-safer.
68260         * modules/getusershell (Depends-on): Add stdio-safer.
68261         * modules/lstat (Depends-on): Remove xalloc.
68262         * modules/mkstemp (Depends-on): Add stat-macros.
68263         * modules/modechange (Depends-on): Remove xstrtol.
68264         Add stat-macros, xalloc.
68265         * modules/save-cwd (Depends-on): Add unistd-safer.
68266         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68267         * modules/unistd-safer (Files): Add lib/fd-safer.c
68268         (Makefile.am): Remove lib_SOURCES.
68269
68270         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68271         Remove fcntl-safer; unistd-safer supersedes it.
68272
68273 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68274
68275         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68276         AC_HEADER_STAT.
68277         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68278         (gl_PREREQ_CHOWN): Remove.
68279         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68280         it.  Don't require AC_HEADER_STAT.
68281         (gl_PREREQ_LSTAT): Remove.
68282         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68283         Don't require AC_HEADER_STAT.
68284         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68285         (gl_PREREQ_RMDIR): Remove.
68286         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68287         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68288         the stat-macros module a prerequisite.
68289         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68290         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68291         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68292         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68293         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68294         variable names.
68295         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68296         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68297         variable prefixes.
68298         * m4/fcntl-safer.m4: Remove.
68299         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68300         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68301         Invoke gl_PREREQ_FD_SAFER.
68302         (gl_PREREQ_FD_SAFER): New macro.
68303         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68304         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68305         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68306         Remove duplicate call to AC_LIBOBJ(readutmp).
68307         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68308
68309         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68310         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68311
68312 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68313
68314         * MODULES.html.sh (Misc): Add byteswap.
68315
68316 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68317
68318         * modules/getcwd (Depends-on): Add extensions.
68319         * modules/openat (Depends-on): Likewise.
68320
68321 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68322
68323         * modules/byteswap: New file.
68324
68325 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68326
68327         * m4/byteswap.m4: New file.
68328
68329 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68330
68331         * lib/byteswap_.h: New file.
68332
68333 2005-04-25  Karl Berry  <karl@gnu.org>
68334
68335         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68336
68337 2005-04-25  Albert Chin  <china@thewrittenword.com>
68338
68339         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68340         Toolkit C bug.
68341
68342 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68343
68344         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68345         (func_ln_if_changed): Remove forcibly for no error message
68346         in case file does not exist.
68347
68348 2005-04-19  Simon Josefsson  <jas@extundo.com>
68349
68350         * gnulib-tool (Options): Make --symlink mean --symbolic.
68351
68352 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68353
68354         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68355
68356 2005-04-16  Simon Josefsson  <jas@extundo.com>
68357
68358         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68359
68360 2005-04-15  Simon Josefsson  <jas@extundo.com>
68361
68362         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68363
68364 2005-04-15  Simon Josefsson  <jas@extundo.com>
68365
68366         * gnulib-tool: Rename --symlink to --symbolic.
68367
68368 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68369
68370         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68371         symbolic links to files instead of copying/moving.  Add --aux-dir,
68372         specifying directory relative --dir where auxiliary build tools
68373         are placed.
68374
68375 2005-04-14  Bruno Haible  <bruno@clisp.org>
68376
68377         * modules/allocsa (License): Change to LGPL.
68378         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68379
68380 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68381
68382         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68383         that "UTC +1 second" continues to work.  Problem reported
68384         by Dmitry V. Levin.
68385         (relunit_snumber): New rule.
68386         (relunit): Use it.
68387
68388 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68389
68390         * lib/getdate.y (universal_time_zone_table): New constant.
68391         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68392         universal_time_zone_table.
68393         (lookup_zone): Prefer universal_time_zone_table to
68394         local_time_zone_table, so that "GMT" time stamps are allowed in
68395         London during the summer.  Problem reported by Ian Abbott.
68396
68397 2005-04-12  Jim Meyering  <jim@meyering.net>
68398
68399         * lib/human.c (humblock): Set *options even when returning due to
68400         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68401         warning from gcc-4.
68402
68403 2005-04-09  Jim Meyering  <jim@meyering.net>
68404
68405         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68406         -Wuninitialized: initialize tm0.tm_year.
68407
68408 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68409
68410         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68411         count, since there's no maximum.  All uses changed.
68412         Add member dsts_seen.
68413         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68414         not being INT_MAX.
68415         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68416         Use pc_rels_seen to decide whther a date is absolute.
68417
68418         * lib/getdate.y (number): Don't overwrite year.
68419         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68420         check.
68421
68422 2005-04-02  Simon Josefsson  <jas@extundo.com>
68423
68424         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68425         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68426
68427 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68428
68429         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68430         where no absolute path name can be longer than PATH_MAX.
68431
68432 2005-03-27  Jim Meyering  <jim@meyering.net>
68433
68434         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68435
68436 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68437
68438         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68439         "one's complement" -> "ones' complement" in comment, as per Knuth.
68440         "value of type" -> "type or expression" in comment.
68441         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68442
68443 2005-03-26  Jim Meyering  <jim@meyering.net>
68444
68445         Comment nits.
68446         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68447         Correct typos: s/or/of/.
68448
68449 2005-03-26  Jim Meyering  <jim@meyering.net>
68450
68451         * modules/check-include-files: Move to ../ and rename to...
68452         * check-module: ...this.
68453
68454 2005-03-25  Jim Meyering  <jim@meyering.net>
68455
68456         * modules/xvasprintf (Files): Add xalloc.h.
68457
68458 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68459
68460         * modules/gettext (Files): config/config.rpath ->
68461         build-aux/config.rpath
68462         * modules/iconv (Files): Likewise.
68463         Problem reported by Oskar Liljeblad.
68464
68465 2005-03-23  Jim Meyering  <jim@meyering.net>
68466
68467         * modules/check-include-files: New script to check for
68468         missing dependencies, multiple includes, etc.
68469
68470         * modules/c-strtold (Depends-on): Add xalloc.
68471         * modules/c-strtod (Depends-on): Add xalloc.
68472         * modules/hash (Depends-on): Add xalloc.
68473         (Files): Remove lib/xalloc.h.
68474
68475         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
68476         * modules/userspec (Files): Add lib/inttostr.h.
68477
68478 2005-03-23  Jim Meyering  <jim@meyering.net>
68479
68480         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
68481
68482 2005-03-22  Jim Meyering  <jim@meyering.net>
68483
68484         * modules/stat-macros: New module.
68485         * modules/canonicalize, modules/euidaccess, modules/file-type,
68486         * modules/filemode, modules/lchown, modules/makepath,
68487         * modules/rmdir, modules/stat: Depend on new stat-macros module
68488         rather than listing lib/stat-macros.h manually.
68489         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
68490
68491 2005-03-22  Jim Meyering  <jim@meyering.net>
68492
68493         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
68494
68495 2005-03-22  Bruno Haible  <bruno@clisp.org>
68496
68497         * config/srclist.txt: Replace target directory 'config' with
68498         'build-aux'.
68499         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
68500         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
68501         ../build-aux/.
68502
68503 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
68504
68505         * modules/chdir-long (Depends-on): Add mempcpy.
68506
68507         * modules/acl, modules/backupfile, modules/c-strtod,
68508         modules/c-strtold, modules/canon-host, modules/canonicalize,
68509         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
68510         modules/exclude, modules/exitfail, modules/file-type,
68511         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
68512         modules/getdate, modules/getline, modules/getpagesize,
68513         modules/getpass, modules/getugroups, modules/group-member,
68514         modules/hard-locale, modules/hash, modules/human, modules/idcache,
68515         modules/inttostr, modules/long-options, modules/makepath,
68516         modules/md5, modules/memcasecmp, modules/memcoll,
68517         modules/modechange, modules/mountlist, modules/path-concat,
68518         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
68519         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68520         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68521         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
68522         modules/strftime, modules/strndup, modules/strverscmp,
68523         modules/timespec, modules/unlocked-io, modules/userspec,
68524         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
68525         modules/yesno:
68526         Remove lib_SOURCES line from Makefile.am section, as this is now
68527         done automatically by the corresponding Autoconf macro.
68528
68529 2005-03-21  Jim Meyering  <jim@meyering.net>
68530
68531         Changes imported from coreutils.
68532
68533         * lib/cycle-check.c: Don't include xalloc.h.
68534
68535         * lib/path-concat.c: Don't include assert.h.
68536         (path_concat): Remove assertion that would have triggered
68537         for ABASE starting with more than one slash.
68538         Reported by Andreas Schwab.
68539
68540         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
68541         properly when ABASE is an absolute file name.
68542         Correct the description of this function.
68543         Include <assert.h>.
68544         Add an assertion and a test driver.
68545         This fixes a bug introduced on 2004-07-02.
68546         Andreas Schwab reported the resulting failure of cp --parents:
68547         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
68548
68549 2005-03-21  Jim Meyering  <jim@meyering.net>
68550
68551         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
68552         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
68553
68554 2005-03-21  Jim Meyering  <jim@meyering.net>
68555         and  Paul Eggert  <eggert@cs.ucla.edu>
68556
68557         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
68558         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
68559         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
68560         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
68561         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
68562         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
68563         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
68564         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
68565         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
68566         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
68567         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
68568         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
68569         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
68570         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
68571         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
68572         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
68573         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
68574         for these modules.
68575
68576 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
68577
68578         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
68579         (which shouldn't happen), generate nothing instead of returning 0
68580         immediately, so that nstrftime (NULL, ...) doesn't return 0.
68581
68582 2005-03-16  Bruno Haible  <bruno@clisp.org>
68583
68584         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
68585         HAVE_LONGLONG_64BIT.
68586
68587 2005-03-16  Bruno Haible  <bruno@clisp.org>
68588
68589         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
68590         HAVE_LONGLONG_64BIT.
68591
68592 2005-03-16  Bruno Haible  <bruno@clisp.org>
68593
68594         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
68595         HAVE_LONGLONG_64BIT.
68596
68597 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68598
68599         * lib/strftime.c (my_strftime): Prepend space to format so that we can
68600         reliably distinguish strftime failure from empty output on POSIX
68601         hosts.
68602
68603 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68604
68605         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
68606         (iconv_string): Don't guess a size-zero buffer, as that might cause
68607         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
68608         result would be 'too large', where 'too large' is (heuristically)
68609         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
68610         overflow concerns.  This will prevent some unwanted malloc failures
68611         when the inputs are very large.
68612
68613 2005-03-15  Karl Berry  <karl@gnu.org>
68614
68615         * config/srclist.txt (config.rpath): from gettext.
68616         * config/config.rpath: update.
68617
68618 2005-03-15  Bruno Haible  <bruno@clisp.org>
68619
68620         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
68621         to 'negate'.
68622
68623         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
68624         variable.
68625
68626         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
68627         results.
68628
68629 2005-03-14  Simon Josefsson  <jas@extundo.com>
68630
68631         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
68632         <fx@gnu.org>.
68633
68634 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68635
68636         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68637         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68638         intprops.h.
68639         * lib/strtol.c: Likewise.
68640
68641 2005-03-14  Jim Meyering  <jim@meyering.net>
68642
68643         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68644         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68645         to be nonzero so that we (and caller) can detect the difference
68646         between a valid zero-length expansion and an error return, even
68647         when the underlying strftime fails before writing anything into
68648         that location.
68649
68650 2005-03-14  Bruno Haible  <bruno@clisp.org>
68651
68652         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68653         Update from GNU gettext 0.14.3.
68654
68655 2005-03-10  Jim Meyering  <jim@meyering.net>
68656
68657         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68658
68659 2005-03-10  Jim Meyering  <jim@meyering.net>
68660
68661         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68662         so that this module works on systems without fchdir.
68663
68664 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         Factor int-properties macros into a single file, except for
68667         glibc-related files.
68668         * lib/intprops.h: New file.
68669         * lib/getloadavg.c: Include it instead of limits.h.
68670         (INT_STRLEN_BOUND): Remove.
68671         * lib/human.c: Include intprops.h.
68672         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68673         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68674         302/1000.
68675         * lib/inttostr.h: Include intprops.h instead of limits.h.
68676         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68677         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68678         for consistency with intprops.h.
68679         (time_t_is_integer, twos_complement_arithmetic): Use them.
68680         * lib/sig2str.h: Include <signal.h>, intprops.h.
68681         (INT_STRLEN_BOUND): Remove.
68682         * lib/strftime.c (TYPE_SIGNED): Remove.
68683         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68684         * lib/strtol.c: Adjust comments to match intprops.h.
68685         * lib/userspec.c: Include intprops.h.
68686         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68687         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68688         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68689         instead of rolling our own expressions.
68690         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68691
68692         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68693         instead of int.
68694         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68695         the right thing even if adding 1900 would overflow.  Similarly
68696         for tm_mon + 1 and tm_yday + 1.
68697         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68698         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68699         (DO_SIGNED_NUMBER): New macro.
68700         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68701
68702 2005-03-07  Bruno Haible  <bruno@clisp.org>
68703
68704         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68705
68706 2005-03-07  Bruno Haible  <bruno@clisp.org>
68707
68708         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68709
68710 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68711
68712         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68713         (func_import): Only replace files via --import when they have actually
68714         changed.
68715
68716 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68717
68718         * m4/mmap-anon.m4: New file.
68719         * m4/pagealign_alloc.m4: New file.
68720
68721 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68722             Bruno Haible  <bruno@clisp.org>
68723
68724         * modules/pagealign_alloc: New file.
68725         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68726
68727 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68728             Bruno Haible  <bruno@clisp.org>
68729
68730         * lib/pagealign_alloc.h: New file.
68731         * lib/pagealign_alloc.c: New file.
68732
68733 2005-03-03  Bruno Haible  <bruno@clisp.org>
68734
68735         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
68736         Use an all-permissive copyright notice, recommended by RMS.
68737
68738 2005-03-02  Bruno Haible  <bruno@clisp.org>
68739
68740         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
68741         of AIX, the replacement has to be done only after <string.h> is
68742         included, therefore not in config.h. stpncpy.h does the replacement,
68743         and stpncpy.c uses it.
68744
68745 2005-03-02  Bruno Haible  <bruno@clisp.org>
68746
68747         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
68748         stpncpy.c uses it.
68749
68750 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68751
68752         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
68753         The workaround isn't strictly needed for POSIX conformance, and
68754         it's too much of a pain to configure and maintain.  We'll ask
68755         people to fix their kernels instead.
68756         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
68757         (NANOSLEEP_BUG_WORKAROUND): Remove.
68758         (xnanosleep): Remove the workaround.
68759
68760 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68761
68762         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
68763         Reported by Derek Price.
68764         (Include): Add "timespec.h".
68765
68766         * modules/xnanosleep (Depends-on): Remove gethrxtime.
68767
68768 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68769
68770         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
68771         to detect nanosleep bug.
68772
68773 2005-03-01  Bruno Haible  <bruno@clisp.org>
68774
68775         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
68776
68777 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68778
68779         * modules/gethrxtime: New file.
68780         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
68781         (Depends-on): Add gethrxtime.
68782         (configure.ac): Add gl_XNANOSLEEP.
68783         (Makefile.am): Remove lib_SOURCES line.
68784
68785 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68786
68787         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
68788         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
68789
68790 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68791
68792         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
68793         * lib/timespec.h (gettime): Return void, since it always
68794         succeeds now.  All uses changed.
68795         * lib/gettime.c (gettime): Likewise.
68796         [HAVE_NANOTIME]: Prefer nanotime.
68797         Assume gettimeofday succeeds, as POSIX requires.
68798         Assime time () succeeds, since other code already does.
68799         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
68800         (timespec_subtract): Remove.
68801         (NANOSLEEP_BUG_WORKAROUND): New constant.
68802         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
68803         things considerably.  Use it only on GNU/Linux hosts, since the
68804         workaround shouldn't be needed elsewhere.
68805
68806 2005-02-24  Bruno Haible  <bruno@clisp.org>
68807
68808         * modules/gettext (Files): Add m4/glibc2.m4.
68809
68810 2005-02-24  Bruno Haible  <bruno@clisp.org>
68811
68812         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
68813         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
68814         * m4/progtest.m4:
68815         Update from GNU gettext 0.14.2.
68816         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
68817
68818 2005-02-24  Bruno Haible  <bruno@clisp.org>
68819
68820         * lib/localcharset.c: Update from GNU gettext 0.14.2.
68821         * lib/config.charset: Update from GNU gettext 0.14.2.
68822
68823 2005-02-24  Bruno Haible  <bruno@clisp.org>
68824
68825         * lib/gettext.h: Update from GNU gettext 0.14.2.
68826
68827 2005-02-23  Simon Josefsson  <jas@extundo.com>
68828
68829         * m4/iconvme.m4: New file.
68830
68831 2005-02-23  Jim Meyering  <jim@meyering.net>
68832
68833         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
68834         change.
68835         Thanks to Bruno Haible for catching it.
68836
68837 2005-02-22  Simon Josefsson  <jas@extundo.com>
68838
68839         * modules/iconvme: New file.
68840
68841         * MODULES.html.sh: Add iconvme.
68842
68843 2005-02-22  Simon Josefsson  <jas@extundo.com>
68844
68845         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
68846
68847 2005-02-22  Simon Josefsson  <jas@extundo.com>
68848
68849         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
68850
68851 2005-02-22  Jim Meyering  <jim@meyering.net>
68852
68853         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
68854         s/ifndef/ifdef/.
68855
68856 2005-02-20  Neil Conway  <neilc@samurai.com>
68857
68858         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
68859         returned by OSX/Darwin if the specified buffer is not large
68860         enough for the hostname.
68861
68862 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68863
68864         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
68865         pass it to _help, otherwise the latter coredumps trying to
68866         dereference state.root_argp.
68867
68868 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68869
68870         * modules/chdir-long (Depends-on): Add memrchr.
68871         * modules/memrchr (Files): Add lib/memrchr.h.
68872         (Include): "memrchr.h".
68873
68874 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68875
68876         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
68877
68878 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68879
68880         * lib/memrchr.h: New file.
68881         * lib/chdir-long.c: Include it.
68882         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
68883         Don't bother including stddef.h.
68884
68885 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68886
68887         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
68888         inclusion.
68889         Include <sys/types.h>, for dev_t.
68890         (ME_DUMMY, ME_REMOTE): Move from here....
68891         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
68892         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
68893         Dmitry V. Levin.
68894         Include mountlist.h first, to test the interface.
68895
68896 2005-01-29  Bruno Haible  <bruno@clisp.org>
68897
68898         * lib/progname.c (program_name): Initialize.
68899         Needed when linking statically on MacOS X.
68900
68901 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68902
68903         Sync from coreutils.
68904         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
68905         (Depends-on): Add c-strtod.
68906         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
68907
68908 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68909
68910         Sync from coreutils.
68911         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
68912
68913         Remove files that are specific to coreutils.
68914         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
68915
68916 2005-01-28  Bruno Haible  <bruno@clisp.org>
68917
68918         * modules/javacomp: New file.
68919         * MODULES.html.sh (Java): Add javacomp.
68920
68921 2005-01-28  Bruno Haible  <bruno@clisp.org>
68922
68923         * m4/javacomp.m4: New file, from GNU gettext.
68924
68925 2005-01-28  Bruno Haible  <bruno@clisp.org>
68926
68927         * lib/javacomp.sh.in: New file, from GNU gettext.
68928         * lib/javacomp.h: New file, from GNU gettext.
68929         * lib/javacomp.c: New file, from GNU gettext.
68930
68931 2005-01-26  Simon Josefsson  <jas@extundo.com>
68932
68933         * lib/gai_strerror.c: Use GPL in header.
68934
68935 2005-01-26  Bruno Haible  <bruno@clisp.org>
68936
68937         * modules/javaexec: New file.
68938         * MODULES.html.sh (Java): Add javaexec.
68939
68940 2005-01-26  Bruno Haible  <bruno@clisp.org>
68941
68942         * m4/javaexec.m4: New file, from GNU gettext.
68943
68944 2005-01-26  Bruno Haible  <bruno@clisp.org>
68945
68946         * lib/javaexec.sh.in: New file, from GNU gettext.
68947         * lib/javaexec.h: New file, from GNU gettext.
68948         * lib/javaexec.c: New file, from GNU gettext.
68949
68950 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68951
68952         * modules/lchown (Depends-on): Remove lchown.h
68953
68954 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68955
68956         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
68957         must be defined if the header file was not found, in order
68958         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
68959
68960 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68961
68962         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
68963         initializers for struct pentry_state.
68964         (__argp_error): Check return value of __asprintf
68965         (__argp_failure): Translate error message
68966
68967         * lib/argp-parse.c: Removed braces around the expansion of N_()
68968
68969 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68970
68971         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
68972         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
68973         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
68974         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
68975         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
68976         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
68977         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
68978         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
68979         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
68980         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
68981         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
68982         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68983         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68984         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68985         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68986         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68987         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68988         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68989         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68990         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68991         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68992         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68993         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68994         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68995         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68996         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68997         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68998         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68999         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69000         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69001         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69002         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69003         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69004         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69005         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69006         Use an all-permissive copyright notice, recommended by RMS.
69007
69008 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69009
69010         * modules/chdir-long (Depends-on): Remove mempcpy.
69011
69012 2005-01-21  Jim Meyering  <jim@meyering.net>
69013
69014         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69015         same value as for Solaris 9.
69016
69017         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69018         component length.  This included changing the parameter to be
69019         of type `char *' rather than `char const *'.
69020         * lib/chdir-long.h (chdir_long): Update prototype.
69021
69022         * lib/openat.c (fdopendir, fstatat): New functions.
69023         * lib/openat.h: Include headers required for use of DIR and struct
69024         stat.
69025         [AT_SYMLINK_NOFOLLOW]: Define.
69026         (fdopendir, fstatat): Add prototypes.
69027
69028 2005-01-21  Bruno Haible  <bruno@clisp.org>
69029
69030         * modules/classpath: New file.
69031         * MODULES.html.sh (Java): Add classpath.
69032
69033 2005-01-21  Bruno Haible  <bruno@clisp.org>
69034
69035         * lib/classpath.h: New file, from GNU gettext.
69036         * lib/classpath.c: New file, from GNU gettext.
69037
69038 2005-01-20  Simon Josefsson  <jas@extundo.com>
69039
69040         * modules/version-etc-fsf: New file.
69041
69042 2005-01-20  Simon Josefsson  <jas@extundo.com>
69043
69044         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69045         * lib/version-etc.c: Remove version_etc_copyright.
69046         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69047         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69048
69049 2005-01-20  Simon Josefsson  <jas@extundo.com>
69050
69051         * lib/base64.h (isbase64): Add.
69052
69053         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69054         using a unsigned prototype, don't inline.
69055         (base64_decode): Use it.
69056
69057 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69058
69059         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69060         it.
69061
69062 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69063
69064         * lib/save-cwd.c (save_cwd): Remove code to support the case
69065         where fchdir is missing or flaky.
69066
69067 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69068
69069         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69070
69071 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69072
69073         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69074         AC_LIBSOURCES now does this.
69075         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69076         with new ullong_max module.
69077
69078 2005-01-19  Bruno Haible  <bruno@clisp.org>
69079
69080         * modules/sh-quote: New file.
69081         * MODULES.html.sh (Executing programs): Add sh-quote.
69082
69083 2005-01-19  Bruno Haible  <bruno@clisp.org>
69084
69085         * lib/sh-quote.h: New file, from GNU gettext.
69086         * lib/sh-quote.c: New file, from GNU gettext.
69087
69088 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69089
69090         Merge from coreutils.
69091         * m4/ullong_max.m4: New file.
69092         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69093         (gl_MACROS): Assume localeconv exists.
69094
69095 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69096
69097         Merge changes from coreutils, as described below in several
69098         changelogs dated today.
69099
69100         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69101         (O_DIRECTORY): Remove; not needed here, since "." must be
69102         a directory.  All uses removed.
69103         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69104         universal on Suns, and we also need to test for IRIX.
69105         Revamp code to use 'if' rather than '#if'.
69106         Avoid unnecessary comparison of cwd->desc to 0.
69107
69108         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69109         for known valid error numbers rather than observed invalid ones.
69110
69111 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69112
69113         * modules/ullong_max: New file.
69114
69115         * modules/chdir-long, modules/openat: New files.
69116         * modules/save-cwd (Depends-on): Depend on chdir-long.
69117         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69118
69119 2005-01-18  Jim Meyering  <jim@meyering.net>
69120
69121         Merge from coreutils.
69122         * m4/chdir-long.m4, m4/openat.m4: New files.
69123         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69124         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69125         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69126         is sane and DOES follow symlinks.  Besides, testing 20 different
69127         systems found no broken chown implementations.
69128         Prompted by a change in rsync's copy of this macro.
69129         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69130
69131         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69132
69133         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69134         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69135         NULL-means-set-to-current-time semantics.
69136         Remove temporary file immediately, rather than waiting
69137         for configure's at-exit trap code to do it.
69138
69139 2005-01-18  Jim Meyering  <jim@meyering.net>
69140
69141         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69142
69143         * lib/utimens.c (futimens): Account for the fact that futimes
69144         can also fail with errno == ENOSYS or errno == ENOENT.
69145         Patch from Dmitry V. Levin.
69146
69147         Change the name of the robust chdir function from chdir to chdir_long.
69148         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69149         (restore_cwd): Use chdir_long, not chdir.
69150         * lib/chdir-long.c: Renamed from chdir.c.
69151         * lib/chdir-long.h: Renamed from chdir.h.
69152         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69153         Hurd.
69154
69155 2005-01-18  Bruno Haible  <bruno@clisp.org>
69156
69157         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69158         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69159         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69160         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69161         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69162         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69163         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69164         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69165         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69166         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69167         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69168         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69169         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69170         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69171         Use an all-permissive copyright notice, recommended by RMS.
69172
69173 2005-01-18  Bob Proulx  <bob@proulx.com>
69174
69175         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69176         simplify offsetof() macro construct to avoid compile failure with
69177         native HP-UX 11.0 ANSI C compiler.
69178
69179 2005-01-17  Bruno Haible  <bruno@clisp.org>
69180
69181         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69182         redundant because stpncpy.m4 takes care of it.
69183
69184 2005-01-17  Bruno Haible  <bruno@clisp.org>
69185
69186         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69187
69188 2005-01-17  Bruno Haible  <bruno@clisp.org>
69189
69190         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69191         used.
69192
69193 2005-01-17  Bruno Haible  <bruno@clisp.org>
69194
69195         * lib/fwriteerror.h (fwriteerror): Change specification to include
69196         fclose.
69197         * lib/fwriteerror.c: Include <stdbool.h>.
69198         (fwriteerror): At the end, close the file stream. Record whether
69199         stdout was already closed.
69200
69201 2005-01-17  Bruno Haible  <bruno@clisp.org>
69202
69203         * lib/execute.c (environ): Declare if needed.
69204         * lib/pipe.c (environ): Likewise.
69205         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69206
69207 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69208
69209         * modules/argp: Depend on vsnprintf
69210
69211 2005-01-10  Jim Meyering  <jim@meyering.net>
69212
69213         * modules/closeout (Depends-on): Add atexit.
69214
69215 2005-01-06  Bruno Haible  <bruno@clisp.org>
69216
69217         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69218
69219 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69220
69221         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69222         definitions to be after all include files, to avoid collisions.
69223         Problem reported by Bob Proulx.
69224
69225 2005-01-04  Jim Meyering  <jim@meyering.net>
69226
69227         Changes imported from coreutils.
69228         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69229         as the mkstemp template, use a temporary directory and an
69230         8.3-friendly template to avoid trouble on systems like DJGPP.
69231         Reported by Juan M. Guerrero via Stepan Kasal.
69232         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69233         close. Remove the temporary directory right away, rather than waiting
69234         for configure's at-exit trap code to do it.
69235         Suggestion from Stepan Kasal.
69236
69237 2005-01-01  Simon Josefsson  <jas@extundo.com>
69238
69239         * gnulib-tool: Print #include directives when --import'ing.
69240
69241 2004-12-28  Simon Josefsson  <jas@extundo.com>
69242
69243         * tests/test-base64.c: Include required header files.  Remove
69244         unused variables.
69245
69246 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69247
69248         * modules/error (Depends-on): Remove gettext.
69249
69250 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69251
69252         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69253         not needed.  This removes a dependency on the gettext module.
69254         [defined _LIBC]: Do not include <libintl.h>; not needed.
69255
69256 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69257
69258         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69259         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69260
69261 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69262
69263         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69264         HAVE_DECL_STRTOLD.
69265
69266 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69267
69268         * modules/getdate (Depends-on): Remove alloca-opt.
69269
69270 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69271
69272         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69273
69274 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69275
69276         * lib/argp-parse.c: Include <stddef.h>.
69277         (alignof, alignto): New macros.
69278         (parser_init): Don't assume that void * is aligned sufficiently
69279         for struct option.
69280
69281         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69282         need to extend the stack.
69283         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69284         large.
69285
69286 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69287
69288         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69289
69290 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69291
69292         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69293         (2004-10-24) change.  Apparently this was a false alarm.
69294
69295         * modules/getdate: Depend on alloca-opt, not alloca.
69296
69297 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69298
69299         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69300         Remove now-obsolete comment about AIX.
69301         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69302         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69303         (YYMAXDEPTH): New macro.
69304
69305 2004-12-18  Simon Josefsson  <jas@extundo.com>
69306
69307         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69308
69309 2004-12-18  Bruno Haible  <bruno@clisp.org>
69310
69311         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69312
69313 2004-12-18  Bruno Haible  <bruno@clisp.org>
69314
69315         * lib/fatal-signal.c (fatal_signals): Make non-const.
69316         (init_fatal_signals): New function.
69317         (uninstall_handlers, install_handlers): Ignore signals that were set to
69318         SIG_IGN.
69319         (at_fatal_signal): Call init_fatal_signals.
69320         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69321         SIG_IGN.
69322         Reported by Paul Eggert.
69323
69324 2004-12-18  Bruno Haible  <bruno@clisp.org>
69325
69326         * doc/alloca.texi: New file.
69327         * doc/alloca-opt.texi: New file.
69328
69329 2004-12-17  Jim Meyering  <jim@meyering.net>
69330
69331         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69332         Otherwise, install-sh could exit with improper exit status when
69333         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69334
69335 2004-12-16  Simon Josefsson  <jas@extundo.com>
69336
69337         * tests/test-base64.c: Add license.
69338
69339 2004-12-15  Stepan Kasal  <address@hidden>
69340
69341         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69342
69343 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69344
69345         * modules/getcwd (Files): Add m4/d-ino.m4.
69346         Suggested by Mark D. Baushke.
69347
69348 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69349
69350         * lib/getdate.y (textint): New member "negative".
69351         (time_zone_hhmm): New function.
69352         Expect 14 shift-reduce conflicts, not 13.
69353         (o_colon_minutes): New rule.
69354         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69355         (yylex): Set the "negative" member of signed numbers.
69356
69357 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69358
69359         * doc/getdate.texi (Time of day items, Time zone items):
69360         Describe new formats +00:00, UTC+00:00.
69361
69362 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69363
69364         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69365         spurious "-l"s.  Problem reported by Stepan Kasal.
69366
69367 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69368
69369         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69370         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69371
69372 2004-12-04  Simon Josefsson  <jas@extundo.com>
69373
69374         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69375         Vandoorselaere <yoann@prelude-ids.org>.
69376
69377 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69378
69379         Changes imported from coreutils.
69380         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69381         exist.
69382         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69383
69384 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69385
69386         Changes imported from coreutils.
69387         * lib/hard-locale.c: Assume <locale.h> exists.
69388         Include "strdup.h".
69389         (GLIBC_VERSION): New macro.
69390         (hard_locale): Assume setlocale exists.
69391         Rewrite to avoid #ifdef.
69392         Use strdup rather than malloc + strcpy.
69393         * lib/human.c: Assume <locale.h> exists.
69394         (human_readable): Assume localeconv exists.
69395
69396 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69397
69398         * modules/hard-locale (Depends-on): Add strdup.
69399
69400 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69401
69402         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69403         convert T2, not T.  (Imported from libc.)
69404
69405 2004-11-30  Simon Josefsson  <jas@extundo.com>
69406
69407         * modules/restrict (License): Change to LGPL.
69408
69409 2004-11-30  Simon Josefsson  <jas@extundo.com>
69410
69411         * m4/restrict.m4: Add copyright and copying conditions.
69412
69413 2004-11-30  Simon Josefsson  <jas@extundo.com>
69414
69415         * m4/base64.m4: New file.
69416
69417 2004-11-30  Simon Josefsson  <jas@extundo.com>
69418
69419         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69420         base64.
69421
69422         * tests/test-base64.c: New file.
69423
69424         * modules/base64: New file.
69425
69426 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69427
69428         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69429         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69430
69431         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69432
69433 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69434
69435         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69436         (__getcwd.c): Don't restore errno; glibc doesn't.
69437         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69438         first, falling back to our code only if its results look suspicious.
69439         Ensure that the resulting buffer is only as large as necessary.
69440
69441         * lib/readutmp.c: Include readutmp.h first.
69442         Include <errno.h>, since readutmp.h no longer does that.
69443         * lib/readutmp.h: Don't include <errno.h>,
69444         <sys/param.h>, <time.h>; not needed to establish interface.
69445         (errno): Remove decl.
69446         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69447         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69448         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69449
69450 2004-11-28  Simon Josefsson  <jas@extundo.com>
69451
69452         * lib/base64.h, base64.c: New file.
69453
69454 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69457
69458 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69459
69460         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69461         (Depends-on): Remove pathmax, same.  Add mempcpy.
69462         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
69463         (Makefile.am): Append getcwd.h to lib_SOURCES.
69464         (Include): Add getcwd.h.
69465         (Maintainer): Change from Jim Meyering to "all, glibc",
69466         since getdate now uses intended-for-glibc code.
69467         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
69468         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
69469
69470 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69471
69472         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
69473         HP's ANSI C compiler.
69474         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
69475         Declaring int functions causes warnings on some modern systems and
69476         shouldn't be needed to compile on ancient ones.
69477         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
69478         defined.
69479
69480         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
69481         with the following changes.
69482         (__set_errno): Parenthesize properly.
69483         Include <stdbool.h>.
69484         (MIN, MAX, MATCHING_INO): New macros.
69485         (__getcwd): Define with prototype, not K&R form.
69486         Use heuristics to allocate default buffer on stack if possible.
69487         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
69488         behavior, and to avoid the PATH_MAX limit when computing
69489         ../../../../...
69490         Use MATCHING_INO to compare inode number to file.
69491         Check for arithmetic overflow in size calculations.
69492         Fix bug in reallocation of dot array that caused getcwd to fail
69493         on directories nested deeper than 75.
69494         Be more careful about saving errno on error.
69495         Do not use realloc; use only free+malloc, as this is a bit
69496         more flexible and avoids a needless copy operation.
69497         Do not inspect st_dev and st_ino for symbolic links; POSIX
69498         doesn't specify the latter.
69499         Check for closedir errors.
69500         Avoid needless casts.
69501         Use "#ifdef weak_alias" around weak_alias, to be like other
69502         glibc code.
69503         The following changes to getcwd.c have effect only when used in
69504         gnulib; they have no effect inside glibc proper.
69505         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
69506         as alloca isn't used.
69507         (alloca, __alloca): Likewise.
69508         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
69509         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69510         unconditionally, as gnulib assumes C89 or better.
69511         Do not include <sys/param.h>.
69512         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
69513         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
69514         better.
69515         (NULL) [!defined NULL]: Remove; we assume C89 or better.
69516         Include <dirent.h> in a way that is compatible with modern Autoconf.
69517         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
69518         New macros, if not already defined.
69519         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69520         Use "_LIBC", not "defined _LIBC", for consistency.
69521         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
69522         a mempcpy module.
69523         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
69524         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
69525         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
69526         credit only to Jim Meyering and adjust the copyright dates.
69527         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
69528         <stdlib.h>, <unistd.h>, "pathmax.h".
69529         Instead, include "xgetcwd.h" (first) and "getcwd.h".
69530         (INITIAL_BUFFER_SIZE): Remove.
69531         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
69532
69533 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69534
69535         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
69536         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
69537         Use the _ONCE methods, for efficiency.
69538         Check for fcntl.h.  In test program, include <errno.h>
69539         and <fcntl.h> if available.  Remove old K&R cruft from
69540         test program.  Check for common errors in GNU/Linux,
69541         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
69542         don't do AC_LIBOBJ, as that's getcwd.m4's job.
69543         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
69544         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
69545         name accordingly.
69546         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
69547         accommodate new getcwd.c.
69548         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
69549         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
69550         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
69551         that's all we need now.
69552
69553 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69554
69555         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
69556         argp-parse.c depends on getopt internals, that means we should
69557         always use our getopt, to be on the safe side.
69558         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
69559         order not to spoil the result of an eventual previous invocation
69560         of gl_GETOPT_SUBSTITUTE.
69561
69562 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69563
69564         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
69565         redefinition warnings. To avoid them, include the defines
69566         in `#if !defined __need_getopt ... #endif'. The only place
69567         where __getopt_argv_const is used is in definitions
69568         of getopt_long and getopt_long_only below, which are as well
69569         protected by `#ifndef __need_getopt'.
69570         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
69571         __need_getopt after including <stdio.h> and <unistd.h> These
69572         headers might have defined it.
69573
69574 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69575
69576         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
69577
69578 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69579
69580         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
69581         (futimens): New function, which uses futimes if available.
69582         (futimens, utimens): Support timespec==NULL, with same semantics
69583         as utime and utimens.
69584         * lib/utimens.h (futimens): New decl.
69585
69586 2004-11-23  Jim Meyering  <jim@meyering.net>
69587
69588         * lib/getopt_.h: Remove trailing blanks.
69589
69590 2004-11-23  Jim Meyering  <jim@meyering.net>
69591
69592         * lib/__fpending.c: Add comment.
69593
69594 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
69595
69596         * modules/canonicalize (Depends-on): Add xreadlink.
69597         Problem reported by James Youngman.
69598
69599 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69600
69601         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
69602         New macros.
69603         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
69604         optopt): Use them instead of invoking ## directly; otherwise, the
69605         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
69606
69607 2004-11-19  Bruno Haible  <bruno@clisp.org>
69608
69609         * lib/strtok_r.c: Move comments from here...
69610         * lib/strtok_r.h: ... to here.
69611
69612 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69613
69614         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
69615         implementations that mishandle size_t overflow.
69616
69617 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69618
69619         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
69620         might fail.  Problem reported by Yoann Vandoorselaere.
69621         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
69622         implementations that mishandle size_t overflow.
69623
69624 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69625
69626         * modules/canon-host (Depends-on): Add strdup.
69627
69628 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69629
69630         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
69631
69632 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69633
69634         * lib/canon-host.c: Include "strdup.h".
69635         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69636         Use strdup instead of malloc/strcpy to duplicate strings.
69637
69638         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69639         (human_space_before_unit): New constant.
69640         * lib/human.c (human_readable): Support it.
69641
69642         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69643         (xgetcwd): Set errno correctly when failing.
69644         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69645         the failure is actually due to a PATH_MAX problem.
69646
69647         Further getopt changes to make it more likely that glibc will
69648         buy the changes back.
69649         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69650         (getopt): Use it, so to preserve glibc semantic
69651         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69652         when compiling for libc.
69653         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69654         (getopt_long, getopt_long_only): Use it.
69655
69656         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69657         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69658         (getopt): Argv is now char * const *, as per standard.
69659         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69660         not char *__getopt_argv_const *.
69661         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69662         _getopt_long_only_r): Likewise.
69663         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69664         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69665         _getopt_long_r, _getopt_long_only_r): Likewise.
69666         * lib/getopt_.h (__getopt_argv_const): Remove.
69667         (getopt): Argv is now char * const *, as per standard.
69668
69669         * lib/getdate.y (tORDINAL): New token.
69670         (day, relunit): Allow it for relative times.
69671         (relative_time_table): Use tORDINAL for ordinals.
69672
69673 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69674
69675         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69676         Document that "second" isn't allowed as an ordinal number.
69677
69678 2004-11-16  Jim Meyering  <jim@meyering.net>
69679
69680         * modules/closeout (Depends-on): Add fpending.
69681
69682 2004-11-15  Jim Meyering  <jim@meyering.net>
69683
69684         * lib/closeout.c: Include "__fpending.h" once again.
69685         Include <stdbool.h>.
69686         (close_stdout): Don't fail just because stdout was closed initially,
69687         since some programs don't write to stdout in the normal course of
69688         operation (other than --version and --help), and we don't want this
69689         function to make e.g. `touch file >&-' fail.
69690         But do fail if it was closed and someone has tried to write to it.
69691         E.g., `printf foo >&-' must fail.
69692
69693 2004-11-13  Jim Meyering  <jim@meyering.net>
69694
69695         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69696
69697 2004-11-12  Simon Josefsson  <jas@extundo.com>
69698
69699         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69700         small doc fix is still pending.
69701
69702 2004-11-11  Simon Josefsson  <jas@extundo.com>
69703
69704         * modules/strtok_r: New file.
69705
69706         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69707         strtok_r.
69708
69709 2004-11-11  Simon Josefsson  <jas@extundo.com>
69710
69711         * m4/strtok_r.m4: New file.
69712
69713         * m4/getopt.m4: Replace opterr.
69714
69715 2004-11-11  Simon Josefsson  <jas@extundo.com>
69716
69717         * lib/strtok_r.h, strtok_r.c: New file.
69718
69719 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69720
69721         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69722         of replacing opterr, getopt, etc.  This should handle the
69723         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69724
69725 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69726
69727         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69728         we can stop lying to compilers about the constness of argv when we
69729         are compiled outside glibc.
69730         (getopt, getopt_long, getopt_long_only): Use it.
69731         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69732         _getopt_internal, getopt): Likewise.
69733         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69734         _getopt_long_only_r): Likewise.
69735         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69736         _getopt_long_r, _getopt_long_only_r): Likewise.
69737
69738         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
69739         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
69740         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
69741         the other external symbols.
69742         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
69743         declaration, since the above renaming now works around collisions.
69744
69745 2004-11-11  Jim Meyering  <jim@meyering.net>
69746
69747         * lib/linebreak.c: Remove trailing blanks.
69748         * lib/alloca_.h: Likewise.
69749         * lib/acosl.c: Likewise.
69750         * lib/euidaccess.c: Likewise.
69751         * lib/allocsa.h: Likewise.
69752
69753 2004-11-10  Simon Josefsson  <jas@extundo.com>
69754
69755         * m4/getaddrinfo.m4: New file.
69756
69757 2004-11-10  Simon Josefsson  <jas@extundo.com>
69758
69759         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
69760
69761 2004-11-10  Simon Josefsson  <jas@extundo.com>
69762
69763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69764         getaddrinfo.
69765
69766         * modules/getaddrinfo: New file.
69767
69768 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69769
69770         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
69771
69772 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69773
69774         * lib/mktime.c (SHR): New macro, which is a portable
69775         substitute for >> that should work even on Crays.
69776         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
69777         Problem reported by Mark D. Baushke in
69778         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
69779         * lib/getdate.y (SHR): Likewise.
69780         (tm_diff): Use it.
69781         * lib/strftime.c (SHR): Likewise.
69782         (tm_diff): Use it.
69783         * lib/quotearg.c (struct quoting_options): Use unsigned int for
69784         quote_these_too, so that right shifts are well defined.  All uses
69785         changed.
69786
69787 2004-11-10  Jim Meyering  <jim@meyering.net>
69788
69789         Ensure that no close failure goes unreported.
69790         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
69791         return early when it seems there's nothing to flush.
69792         Don't include __fpending.h.
69793
69794 2004-11-10  Jim Meyering  <jim@meyering.net>
69795
69796         * modules/closeout (Depends-on): Remove fpending.
69797
69798 2004-11-10  Jim Meyering  <jim@meyering.net>
69799
69800         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
69801
69802 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69803
69804         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
69805         gl_FUNC_STRFTIME.
69806         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
69807         and AC_REQUIRE when possible, to avoid duplicate checks.
69808         Check for <wchar.h>.
69809
69810 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69811
69812         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
69813
69814 2004-11-09  Bruno Haible  <bruno@clisp.org>
69815
69816         * m4/sockpfaf.m4: New file.
69817
69818 2004-11-05  Bruno Haible  <bruno@clisp.org>
69819
69820         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
69821         Reported by Mark D. Baushke <mdb@cvshome.org>.
69822
69823 2004-11-04  Bruno Haible  <bruno@clisp.org>
69824
69825         2004-09-11  Bruno Haible  <bruno@clisp.org>
69826                 * allocsa.valgrind: New file.
69827         2004-02-06  Bruno Haible  <bruno@clisp.org>
69828                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
69829                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
69830                 Reported by Christopher Seip <chris.seip@hp.com>.
69831
69832 2004-11-04  Bruno Haible  <bruno@clisp.org>
69833
69834         * modules/allocsa (Files): Add lib/allocsa.valgrind.
69835         (Makefile.am): Distribute it.
69836
69837 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69838
69839         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
69840         with errno == ERANGE if the buffer is too small.
69841         Problem reported by Mark D. Baushke.
69842
69843 2004-11-03  Albert Chin  <china@thewrittenword.com>
69844             Paul Eggert  <eggert@cs.ucla.edu>
69845
69846         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
69847         equivalent, substitute $ac_type for equivalent type rather than
69848         blindly using uint32_t *always* which won't work if uint32_t is not
69849         available.  Define _UINT32_T to work around typedef of uint32_t if
69850         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
69851         2.5.1.
69852
69853 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69854
69855         * m4/jm-macros.m4: Sync from coreutils.
69856         (gl_MACROS): Check for mbrlen, for pathchk.
69857         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
69858
69859 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69860
69861         * lib/xreadlink.c (MAXSIZE): New macro.
69862         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
69863         size does not exceed MAXSIZE.  Avoid cast.
69864         As suggested by Mark D. Baushke in
69865         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
69866         if readlink fails with buffer size just under MAXSIZE, try again
69867         with MAXSIZE.
69868
69869 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69870
69871         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
69872
69873 2004-11-02  Derek R. Price  <derek@ximbiot.com>
69874         and  Paul Eggert  <eggert@cs.ucla.edu>
69875
69876         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
69877         (get_date): Overparenthesize to avoid GCC warning.
69878
69879 2004-11-02  Bruno Haible  <bruno@clisp.org>
69880
69881         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
69882         returns void.
69883
69884 2004-11-02  Bruno Haible  <bruno@clisp.org>
69885
69886         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
69887         function returns void.
69888
69889 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69890
69891         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
69892         fflush_unlocked, flockfile, funlockfile, funlockfile,
69893         fputs_unlocked, putc_unlocked.
69894
69895 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69896
69897         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69898         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
69899         already declared.
69900
69901 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         * modules/getdate (Files): Add doc/getdate.texi.
69904         (Depends-on): Add setenv, xalloc.
69905
69906 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69907
69908         * lib/getdate.y: Add support for TZ="foo" within a date string.
69909         Fix some bugs near time_t boundaries.  Reject dates with
69910         out-of-range components, e.g., "Sept 31".
69911         Include <stdlib.h>, "setenv.h", "xalloc.h".
69912         (ISDIGIT_LOCALE): Remove; unused.
69913         Note that the TZ and time functions used here are not reentrant.
69914         (mktime_ok, get_tz): New functions.
69915         (TZBUFSIZE): New constant.
69916         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
69917         This requires that we sometimes generate our own TZ="XXX..." setting.
69918
69919 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69920
69921         * doc/getdate.texi: New file, from coreutils with modifications for
69922         the new TZ parsing.
69923
69924 2004-10-27  Derek R. Price  <derek@ximbiot.com>
69925
69926         * lib/mktime.c (not_equal_tm): Remove redundant check.
69927
69928 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69929
69930         * modules/regex (lib_SOURCES): Add regex.c.
69931         Reported by James Youngman in
69932         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
69933
69934 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69935
69936         * lib/getdate.y: Use Bison 1.875 features, and some minor
69937         code cleanups.  This change does not affect semantics.
69938         Don't include <stdlib.h>; no longer needed.
69939         Don't include unlocked-io.h; only the "#if TEST" code uses
69940         stdio, and performance isn't crucial there.
69941         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
69942         Bison 1.875 features as described below.
69943         All uses of "PC." replaced by "pc->".
69944         (YYSTYPE): Add a forward declaration.
69945         (yylex, yyerror): Use full prototypes in forward decls.
69946         Use "%pure-parser" rather than obsolescent "%pure_parser".
69947         Use %parse-param and %lex-param instead of obsolescent
69948         YYPARSE_PARAM and YYLEX_PARAM.
69949         (meridian_table, month_and_day_table, time_units_table,
69950         relative_time_table, time_zone_table, military_table,
69951         lookup_zone, lookup_word, get_date):
69952         Use NULL instead of 0 where appropriate.
69953         (to_hour): Avoid abort (), to avoid a dependency on
69954         stdlib.h.
69955         (yyerror, yylex): Now accepts parser_control * arg.
69956         (main) [TEST]: Use '\0' rather than 0 for char.
69957
69958 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69959
69960         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
69961
69962 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
69965         It's now the caller's responsibility to handle the case where
69966         !HAVE_GETPAGESIZE && !defined getpagesize.
69967
69968         * lib/mktime.c (leapyear): Arg is long int, not int.
69969
69970 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
69971
69972         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
69973
69974 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69975
69976         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
69977         missing.  Problem reported by James Youngman.
69978
69979 2004-10-16  Simon Josefsson  <jas@extundo.com>
69980
69981         * gnulib-tool: Fix comments.  Fix parse problem.
69982         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69983
69984 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69985
69986         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69987         implementation of getopt_long.  Problem reported by Alexander Taler in:
69988         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69989
69990 2004-10-15  Bruno Haible  <bruno@clisp.org>
69991
69992         * gnulib-tool: Untabify. Initialize supplied_libname.
69993         (func_usage): More homogenous output.
69994         (func_modules_transitive_closure, func_modules_to_filelist,
69995         func_emit_lib_Makefile_am): New functions.
69996         (func_import): New function, extracted from big case statement. Use
69997         func_get_license, func_modules_transitive_closure,
69998         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69999         opt_lgpl. Don't use test -a, as it's not portable.
70000         (func_create_testdir): Use func_modules_transitive_closure,
70001         func_modules_to_filelist, func_emit_lib_Makefile_am.
70002
70003 2004-10-15  Bruno Haible  <bruno@clisp.org>
70004
70005         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70006
70007 2004-10-15  Bruno Haible  <bruno@clisp.org>
70008
70009         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70010         the portions belonging to each module.
70011         Suggested by Derek Robert Price <derek@ximbiot.com>.
70012
70013 2004-10-12  Simon Josefsson  <jas@extundo.com>
70014
70015         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70016         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70017         to real functions.
70018
70019 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70020
70021         * modules/vsnprintf: New file.
70022
70023 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70024
70025         * m4/vsnprintf.m4: New file.
70026
70027 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70028
70029         * lib/vsnprintf.h: New file.
70030         * lib/vsnprintf.c: New file.
70031
70032 2004-10-11  Bruno Haible  <bruno@clisp.org>
70033
70034         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70035         vsnprintf.
70036
70037 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70038
70039         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70040
70041 2004-10-07  Bruno Haible  <bruno@clisp.org>
70042
70043         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70044         fits into the provided buffer.
70045
70046 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70047
70048         * lib/diacrit.c, diacrit.h: Add GPL notice.
70049
70050         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70051         notice.
70052         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70053         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70054         This avoids a potential constant-folding bug.
70055
70056 2004-10-05  Bruno Haible  <bruno@clisp.org>
70057
70058         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70059         for the declaration of strsep.
70060
70061 2004-10-05  Bruno Haible  <bruno@clisp.org>
70062
70063         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70064
70065 2004-10-04  Simon Josefsson  <jas@extundo.com>
70066
70067         * modules/memmem: New file.
70068         * tests/test-memmem.c: New file.
70069         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70070
70071 2004-10-04  Simon Josefsson  <jas@extundo.com>
70072
70073         * m4/memmem.m4: New file.
70074
70075 2004-10-04  Simon Josefsson  <jas@extundo.com>
70076
70077         * lib/memmem.h: New file.
70078         * lib/memmem.c: New file, taken from glibc.
70079
70080 2004-10-04  Simon Josefsson  <jas@extundo.com>
70081
70082         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70083         '#ifdef USE_UNLOCKED_IO'.
70084
70085 2004-10-04  Simon Josefsson  <jas@extundo.com>
70086
70087         * config/srclist.txt: Add memmem from glibc.
70088
70089 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70090
70091         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70092
70093         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70094         modules/exclude, modules/getdate, modules/getline,
70095         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70096         modules/getusershell, modules/linebuffer, modules/md5,
70097         modules/mountlist, modules/posixtm, modules/readtokens,
70098         modules/readutmp, modules/regex, modules/sha1,
70099         modules/version-etc, modules/yesno:
70100         Remove dependency on unlocked-io.
70101
70102 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70103
70104         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70105
70106         * m4/unlocked-io.m4: Add copyright notice.
70107         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70108
70109 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70110
70111         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70112         * lib/xmalloc.c (xmemdup): Likewise.
70113         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70114         XFREE): Remove these long-obsolescent macros.
70115         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70116         * lib/xstrdup.c: Remove.
70117
70118         * lib/regex.c (re_comp): Cast gettext return value to char *,
70119         Problem reported by Martin Neitzel via Mark D. Baushke.
70120
70121 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70122
70123         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70124         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70125         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70126         regex.c, sha1.c, version-etc.c, yesno.c:
70127         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70128         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70129         the includer's responsibility.
70130
70131         Sync from coreutils.
70132
70133         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70134         points to the start of a string, as the C Standard says the
70135         resulting behavior is undefined.
70136
70137         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70138         simple -> simple_backups, numbered_existing ->
70139         numbered_existing_backups, numbered -> numbered_backups
70140         to avoid shadowing problems.  All uses changed.
70141         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70142         * lib/backupfile.c (check_extension, numbered_backup):
70143         Rename locals to avoid shadowing 'basename'.
70144         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70145         once.
70146
70147         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70148         * lib/.cvsignore: Add getopt.h.
70149
70150 2004-10-04  Bruno Haible  <bruno@clisp.org>
70151
70152         * modules/README: New file.
70153         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70154         not a module.
70155
70156 2004-10-02  Jim Meyering  <jim@meyering.net>
70157
70158         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70159
70160 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70161
70162         * modules/strsep: New file.
70163
70164 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70165
70166         * m4/strsep.m4: New file.
70167
70168 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70169
70170         * lib/strsep.h: New file.
70171         * lib/strsep.c: New file.
70172
70173 2004-10-01  Simon Josefsson  <jas@extundo.com>
70174
70175         * lib/snprintf.c (snprintf): Handle size==0.
70176
70177 2004-10-01  Simon Josefsson  <jas@extundo.com>
70178             Bruno Haible  <bruno@clisp.org>
70179
70180         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70181         (snprintf): Declare 'args'.
70182
70183 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70184
70185         * lib/snprintf.c: Remove comments as to why each header is needed.
70186
70187 2004-10-01  Bruno Haible  <bruno@clisp.org>
70188
70189         * MODULES.html.sh: Add strsep.
70190
70191 2004-09-30  Simon Josefsson  <jas@extundo.com>
70192
70193         * modules/snprintf: New file.
70194
70195 2004-09-30  Simon Josefsson  <jas@extundo.com>
70196
70197         * m4/snprintf.m4: New file.
70198
70199 2004-09-30  Simon Josefsson  <jas@extundo.com>
70200
70201         * lib/snprintf.h, lib/snprintf.c: New files.
70202
70203 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70204
70205         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70206         (hol_entry_help): Never translate an empty string.
70207         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70208         * lib/argp.h (OPTION_NO_TRANS): New option.
70209
70210 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70211
70212         * modules/argp (Maintainer): Replace Simon Josefsson
70213         by Sergey Poznyakoff.
70214
70215 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70216
70217         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70218         changes merged back into glibc.
70219
70220 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70221
70222         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70223
70224 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70225
70226         * lib/xvasprintf.c: Include xalloc.h.
70227         (xvasprintf): Use xalloc_die, not xmalloc_die.
70228
70229 2004-09-29  Bruno Haible  <bruno@clisp.org>
70230
70231         * modules/alloca-opt: New file, derived from modules/alloca.
70232         * modules/allocsa: Depend on alloca-opt instead of alloca.
70233         * modules/setenv: Likewise.
70234         * modules/vasnprintf: Likewise.
70235         * MODULES.html.sh: Add alloca-opt.
70236
70237 2004-09-28  Simon Josefsson  <jas@extundo.com>
70238
70239         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70240         LGPL, and to replace license template from GPL to LGPL.
70241
70242 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70243
70244         * modules/dummy: Change license to LGPL.
70245
70246 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70247
70248         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70249
70250 2004-09-24  Simon Josefsson  <jas@extundo.com>
70251
70252         * modules/minmax (License): Change from GPL to LGPL.
70253
70254 2004-09-23  Simon Josefsson  <jas@extundo.com>
70255
70256         * gnulib-tool (--import): Typo.
70257
70258 2004-09-23  Simon Josefsson  <jas@extundo.com>
70259
70260         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70261
70262 2004-09-22  Bruno Haible  <bruno@clisp.org>
70263
70264         * modules/*: Add 'License' field.
70265         * gnulib-tool: Accept --extract-license option.
70266         (func_get_license): New function.
70267
70268 2004-09-21  Bruno Haible  <bruno@clisp.org>
70269
70270         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70271         Reported by Simon Josefsson.
70272
70273 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70274
70275         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70276         gl_AC_TYPE_LONG_LONG.
70277
70278 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70279
70280         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70281
70282 2004-09-18  Simon Josefsson  <jas@extundo.com>
70283         and  Paul Eggert  <eggert@cs.ucla.edu>
70284
70285         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70286         calls with autoreconf.  Define GL_LIB.
70287
70288 2004-09-14  Karl Berry  <karl@gnu.org>
70289
70290         * config/srclist.txt: unsync setenv.c, sigh.
70291
70292 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70293
70294         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70295         Problem reported by Bruno Haible in:
70296         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70297
70298 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70299
70300         * config/srclist.txt: Comment out argp-pvh.c.
70301
70302 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70303
70304         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70305         in case some system header has #define'd it.  Problem reported by
70306         Soeren D. Schulze in
70307         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70308
70309 2004-09-09  Karl Berry  <karl@gnu.org>
70310
70311         * regex.[ch]: delete from the root.  These were supposed to be
70312                 synced with emacs cvs, but this has not happened for about
70313                 a year, and anyway nothing else uses emacs regex.[ch].
70314                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70315                 lib/regex[.ch] is untouched.
70316
70317 2004-09-09  Bruno Haible  <bruno@clisp.org>
70318
70319         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70320
70321 2004-09-09  Bruno Haible  <bruno@clisp.org>
70322
70323         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70324         modifications.
70325         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70326
70327 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70328
70329         * modules/xvasprintf: New file.
70330         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70331
70332 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70333
70334         * lib/xvasprintf.h: New file.
70335         * lib/xvasprintf.c: New file.
70336         * lib/xasprintf.c: New file.
70337
70338 2004-09-08  Bruno Haible  <bruno@clisp.org>
70339
70340         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70341
70342 2004-09-08  Bruno Haible  <bruno@clisp.org>
70343
70344         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70345         length is > INT_MAX.
70346         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70347         more.
70348
70349 2004-09-08  Bruno Haible  <bruno@clisp.org>
70350
70351         * lib/stdint_.h: New file, taken from GNU clisp.
70352
70353 2004-09-08  Bruno Haible  <bruno@clisp.org>
70354             Oskar Liljeblad  <oskar@osk.mine.nu>
70355
70356         * modules/stdint: New file.
70357         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70358
70359 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70360
70361         Import from coreutils.
70362         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70363         strings on unbounded length.  alloca's performance benefits aren't
70364         that important here.
70365         (V_STRDUP): Remove.
70366         (parse_with_separator): New function, with most of the internals
70367         of the old parse_user_spec.  Allow user to omit both user and group,
70368         for compatibility with FreeBSD.
70369         Clone only the user name, not the entire spec.
70370         Do not set *uid, *gid unless entirely successful.
70371         Avoid memory leak in some failing cases.
70372         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70373         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70374         (parse_user_spec): Rewrite to use parse_with_separator.
70375
70376 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70377
70378         * modules/userspec: Don't depend on alloca.
70379
70380 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70381
70382         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70383
70384 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70385
70386         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70387         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70388         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70389
70390 2004-08-16  Simon Josefsson  <jas@extundo.com>
70391
70392         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70393         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70394         Add --dry-run for --import.
70395         Let user provided command line parameters override configure.ac
70396         settings.
70397
70398 2004-08-12  Simon Josefsson  <jas@extundo.com>
70399
70400         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70401         as discussed with Paul Eggert in threads rooted at
70402         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70403         and
70404         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70405         Before, the test was empty, and relied on ELIDE_CODE in source
70406         code.)
70407         (gl_PREREQ_GETOPT): New macro.
70408         (gl_GETOPT): Use them.
70409
70410 2004-08-12  Simon Josefsson  <jas@extundo.com>
70411
70412         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70413         * lib/getopt_.h: Renamed from getopt.h.
70414
70415 2004-08-12  Simon Josefsson  <jas@extundo.com>
70416
70417         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70418         Change default library name from libfoo to libgnu.
70419         Now, if you have a configure.ac that says:
70420                 gl_SOURCE_BASE(gl)
70421                 gl_M4_BASE(gl/m4)
70422                 gl_MODULES(error getopt etcetera)
70423                 gl_INIT
70424         you can import all you need by running:
70425                 ../gnulib/gnulib-tool --import
70426
70427         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70428         (Makefile.am): Rewrite, use logic from argz.
70429         (Include): Use <getopt.h> instead of "getopt.h".
70430
70431 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70432
70433         * modules/argp (Files): Add m4/unlocked-io.m4.
70434         (Depends-on): Add extensions.
70435
70436 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70437
70438         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70439         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70440         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70441         Check for program_invocation_name, program_invocation_short_name,
70442         flockfile, funlockfile, features.h, _getopt_long_only_r.
70443
70444 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70445
70446         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70447         its complicated substitute.
70448         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70449         and program_invocation_name.
70450         (__argp_basename) [!_LIBC]: Remove; the only use was
70451         replaced by its body.
70452         (__argp_short_program_name): Change condition from
70453         !defined __argp_short_program_name to
70454         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70455         to match argp-namefrob.h.
70456         (__argp_failure): Don't assume strerror_r returns char *.
70457         * lib/argp-parse.c (N_): Define unconditionally.
70458         (argp_default_options): Fill out initializers with 0 to avoid
70459         gcc warnings.
70460
70461 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70462
70463         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
70464         getopt1.c.
70465
70466 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70467
70468         Merge from coreutils.
70469
70470         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
70471
70472         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
70473         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
70474
70475 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70476
70477         Merge from coreutils.
70478
70479         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
70480         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
70481         for Reliant Unix 5.43.
70482
70483         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
70484         (union fooround): Use uintmax_t, not long int.
70485         The rest is a merge from libc:
70486         [defined _LIBC]: Include <shlib-compat.h>.
70487         (_obstack) [defined _LIBC]: Remove after 2.3.4.
70488
70489         * lib/settime.c (settime): Recode to avoid warning with
70490         Sun Forte C 6U2.
70491
70492         * lib/strverscmp.c: Convert to UTF-8.
70493
70494 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70495
70496         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70497         m4/uintmax_t.m4.
70498
70499 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70500
70501         * modules/xalloc-die: New file.
70502         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
70503
70504         * modules/md5 (Files): Add m4/uint32_t.m4.
70505         * modules/sha1: Renamed from modules/sha.
70506         (Files):
70507         Rename lib/sha.h to lib/sha1.h.
70508         Rename lib/sha.c to lib/sha1.c.
70509         Rename m4/sha.m4 to m4/sha1.m4.
70510         (lib_SOURCES): Likewise.
70511         (configure.ac): Rename gl_SHA to gl_SHA1.
70512         (Include): sha.h -> sha1.h.
70513
70514 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70515
70516         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
70517         * m4/sha1.m4: Renamed from sha.m4.
70518         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
70519
70520 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70521
70522         * lib/obstack.h (obstack_empty_p):
70523         Don't assume that chunk->contents is suitably aligned.
70524         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
70525         Likewise. Problem reported by Benno in
70526         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
70527
70528         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
70529         readable.  This could be improved further but it'd take some work.
70530
70531 2004-08-08  Simon Josefsson  <jas@extundo.com>
70532
70533         * modules/xgethostname (Depends-on): Remove exit and error (not
70534         used).
70535
70536         * modules/getpass-gnu: Add getpass.h.
70537         (Depends-on): Add stdbool.
70538         * modules/getpass: Add getpass.h.
70539
70540 2004-08-08  Simon Josefsson  <jas@extundo.com>
70541
70542         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
70543         Check getpass declaration.
70544
70545 2004-08-08  Simon Josefsson  <jas@extundo.com>
70546
70547         * lib/xgethostname.c: Don't include error.h (not used).
70548
70549         * lib/getpass.h: Add.
70550         * lib/getpass.c: Include getpass.h first.
70551
70552 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
70553
70554         * lib/xalloc-die.c: New file.
70555         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
70556         All uses removed.
70557         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
70558         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
70559         xalloc-die.c.
70560         (_, N_, xalloc_die): Move to xalloc-die.c.
70561         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
70562         so that we needn't mess with xalloc_msg_memory_exhausted.
70563
70564         * lib/sha1.h: Renamed from sha.h.
70565         (SHA1_H): Renamed from _SHA_H.
70566         (sha1_ctx): Renamed from sha_ctx.
70567         (sha1_init_ctx): Renamed from sha_init_ctx.
70568         (sha1_process_block): Renamed from sha_process_block.
70569         (sha1_process_bytes): Renamed from sha_process_bytes.
70570         (sha1_finish_ctx): Renamed from sha_finish_ctx.
70571         (sha1_read_ctx): Renamed from sha_read_ctx.
70572         (sha1_stream): Renamed from sha_stream.
70573         (sha1_buffer): Renamed from sha_buffer.
70574         * lib/sha1.c: Likewise; renamed from sha.c.
70575         Do not include <sys/types.h>.
70576         Include <stddef.h> rather than <stdlib.h>.
70577
70578 2004-08-08  Bruno Haible  <bruno@clisp.org>
70579
70580         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
70581         FILESYSTEM_PREFIX_LEN.
70582         * lib/progreloc.c: Likewise.
70583         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
70584
70585 2004-08-06  Simon Josefsson  <jas@extundo.com>
70586
70587         * modules/progname (Depends-on): Don't depend on stdbool.
70588
70589 2004-08-06  Simon Josefsson  <jas@extundo.com>
70590
70591         * modules/getsubopt: New file.
70592         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70593         getsubopt.
70594
70595 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70596
70597         More merge from coreutils.
70598
70599         * m4/utimens.m4, m4/utimecmp.m4: New files.
70600         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
70601         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
70602         prereq.m4, sha.m4: Import changes from coreutils.
70603
70604 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70605
70606         More merge from coreutils.
70607         * modules/raise, modules/readtokens0, modules/utimens:
70608         * modules/utimecmp, module/xnanosleep: New files.
70609         * modules/strftime: Add lib/strftime.h.
70610         Change include from <time.h> to "strftime.h".
70611         * modules/yesno: Add lib/yesno.h.
70612         * modules/backupfile: Remove lib/addext.c.
70613         * modules/euidaccess: Add stat-macros.h.
70614         * modules/canonicalize, modules/euidaccess,
70615         modules/filemode, modules/lchown, modules/makepath,
70616         modules/rmdir, modules/stat: Likewise.
70617
70618 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70619
70620         Merge from tar.
70621         * lib/argp-help.c (make_hol, hol_append): Don't assume that
70622         SIZE_MAX is a valid preprocessor constant.
70623         (__argp_basename): Change from "#ifndef _LIBC"
70624         to "#ifndef __argp_short_program_name", so that
70625         we don't compile these functions for tar.
70626
70627         More merges from coreutils.
70628         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
70629         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
70630         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
70631         * lib/addext.c: Remove; no longer needed.
70632         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70633         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70634         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70635         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70636         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70637         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70638         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70639         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70640         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70641         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70642         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70643         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70644         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70645         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70646         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70647         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70648         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70649         Import changes from coreutils.
70650
70651 2004-08-05  Simon Josefsson  <jas@extundo.com>
70652
70653         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70654
70655 2004-08-05  Simon Josefsson  <jas@extundo.com>
70656
70657         * m4/getsubopt.m4: New file.
70658
70659 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70660
70661         Merge from coreutils.
70662
70663         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70664         * m4/getcwd-path-max.m4: New files.
70665
70666         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70667         FILESYSTEM_PREFIX_LEN ->
70668         FILE_SYSTEM_PREFIX_LEN.
70669         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70670         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70671         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70672         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70673
70674         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70675         prerequisite modules now handle the DOS stuff.
70676         Don't check for unistd.h.
70677
70678 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70679
70680         Merge from coreutils.
70681
70682         * lib/.gdb-history: Remove; this doesn't belong here.
70683
70684         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70685         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70686         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70687         * lib/getcwd.c: New files.
70688
70689         * lib/dirname.h: Include <stdbool.h>.
70690         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70691         for consistency with POSIX terminology.  All uses changed.
70692         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70693         (strip_trailing_slashes): Use bool for booleans.
70694         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70695
70696         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70697         sometimes returns a positive errno value even when it succeeds.
70698         (print_errno_message) [!LIBC]: Fall back on strerror if
70699         __strerror_r fails.
70700
70701         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70702         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70703         (longest_relative_suffix): New function.
70704         (path_concat): Use it.  Assume first argument is not NULL.
70705         Port to DOS.  Omit redundant separators.
70706         Report an error instead of returning NULL.
70707         Use mempcpy instead of memcpy.
70708         (xpath_concat): Remove: not declared or used.
70709
70710         * lib/same.h: Include <stdbool.h>
70711         (same_name): Return bool, not int.
70712         * lib/same.c (same_name): Likewise.
70713         (errno): Don't declare; we assume C89 or better now.
70714
70715         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70716         if not already defined.
70717
70718         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70719         * lib/dup-safer.c (errno): Likewise.
70720
70721 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70722
70723         Merge from coreutils.
70724         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70725         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70726         * modules/path-concat: Don't depend on strdup.
70727
70728 2004-08-03  Simon Josefsson  <jas@extundo.com>
70729
70730         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70731         * lib/progname.h: Don't include stdbool.h.
70732
70733 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70734
70735         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
70736         * MODULES.html.sh (func_all_modules): Remove fatal.
70737
70738 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70739
70740         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
70741
70742 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70743
70744         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
70745         working.
70746
70747 2004-08-02  Simon Josefsson  <jas@extundo.com>
70748
70749         * lib/getsubopt.h: New file, with comments from Bruno Haible.
70750         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
70751         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
70752
70753 2004-08-01  Simon Josefsson  <jas@extundo.com>
70754
70755         * lib/xgetdomainname.c: Include stdlib.h, for free().
70756
70757 2004-07-19  Bruno Haible  <bruno@clisp.org>
70758
70759         * MODULES.html.sh (func_all_modules): Add dummy.
70760
70761 2004-07-16  Simon Josefsson  <jas@extundo.com>
70762
70763         * modules/dummy: New file.
70764
70765 2004-07-16  Simon Josefsson  <jas@extundo.com>
70766
70767         * lib/dummy.c: New file.
70768
70769 2004-07-16  Bruno Haible  <bruno@clisp.org>
70770
70771         * lib/backupfile.h: Add extern "C" for C++.
70772         * lib/closeout.h: Likewise.
70773         * lib/copy-file.h: Likewise.
70774         * lib/findprog.h: Likewise.
70775         * lib/full-write.h: Likewise.
70776         * lib/pathname.h: Likewise.
70777         * lib/progname.h: Likewise.
70778         * lib/stpcpy.h: Likewise.
70779         * lib/stpncpy.h: Likewise.
70780         * lib/strcase.h: Likewise.
70781         * lib/strstr.h: Likewise.
70782         * lib/xalloc.h: Likewise.
70783
70784         * lib/mbswidth.h: Add extern "C" for C++.
70785         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
70786
70787 2004-07-13  Robert Millan  <robertmh@gnu.org>
70788
70789         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
70790
70791 2004-07-09  Simon Josefsson  <jas@extundo.com>
70792
70793         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
70794         failed without this.)
70795
70796 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70797
70798         * modules/chown (Files): Add lib/fchown-stub.c, since
70799         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
70800
70801 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70802
70803         * lib/fchown-stub.c: New file.
70804
70805 2004-06-24  Jim Meyering  <jim@meyering.net>
70806
70807         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
70808
70809 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70810
70811         * modules/argz: Omit "#include".
70812
70813         * MODULES.html.sh (func_all_modules): Add calloc, to match
70814         2004-06-01 addition of calloc module.
70815
70816 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70817
70818         * m4/argz.m4: New file, which is autoupdated from libtool.
70819
70820 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70821
70822         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
70823         libtool.
70824
70825 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70826
70827         * config/srclist-update: Don't insist on "USA." before the
70828         close-comment, as libtool omits the period and puts the */ on a
70829         separate line.
70830         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
70831         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
70832
70833 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
70834
70835         * modules/argz: New file.
70836         * MODULES.html.sh (func_all_modules): Add argz.
70837
70838 2004-06-12  Jim Meyering  <jim@meyering.net>
70839         and  Paul Eggert  <eggert@cs.ucla.edu>
70840
70841         * modules/hash (Files): Add lib/xalloc.h.
70842         * modules/pipe (Depends-on): Add wait-process.
70843         * modules/stat (Depends-on): Add xalloc.
70844         * modules/userspec (Files): Add lib/userspec.h.
70845         * modules/xstrto
70846
70847         Upgrade from gettext-0.13.
70848         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
70849         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
70850         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
70851
70852 2004-06-10  Jim Meyering  <jim@meyering.net>
70853
70854         * lib/calloc.c: New file.
70855
70856 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70857
70858         * lib/getdate.y (yylex): Allow space between sign and number.
70859         Problem reported by Dan Jacobson.
70860
70861 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70862
70863         Merge from coreutils CVS.
70864
70865         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
70866         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
70867         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
70868         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
70869         xstrtol.m4: Fix copyright date and/or serial number.
70870
70871         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
70872         See if we need an fchown replacement.
70873         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
70874         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
70875         and use the replacement function if we detect either defect.
70876
70877         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
70878         gl_UTIMECMP.
70879
70880 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70881         and  Jim Meyering  <jim@meyering.net>
70882
70883         Merge from coreutils CVS.
70884
70885         * lib/stat-macros.h: New file, with contents from file-type.h
70886         and coreutils' system.h.
70887         * lib/file-type.c: Include "stat-macros.h".
70888         * lib/file-type.h (file_type): Move all macro definitions to new file,
70889         stat-macros.h.
70890
70891         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
70892         Wrap old code with this conditional.
70893         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
70894         function that does not dereference symlinks.
70895         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
70896
70897         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
70898         dependency problems.
70899         (xreadlink): Accept new arg SIZE, for efficiency.
70900         All decls and uses changed.
70901         * lib/xreadlink.h: Include <stddef.h>, for size_t.
70902
70903         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
70904         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
70905
70906         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
70907         sysexits.h.
70908
70909 2004-06-01  Jim Meyering  <jim@meyering.net>
70910
70911         * m4/calloc.m4: New file.
70912
70913 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
70914
70915         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
70916         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
70917         Also, fix a typo in a diagnostic.
70918
70919 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70920
70921         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
70922         or AC_FUNC_REALLOC.
70923
70924 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70925
70926         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
70927         macros to be defined.
70928         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
70929         the allocator returns NULL because the requested size is zero.
70930
70931 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70932
70933         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
70934         var.  Add comment explaining why libc still defines it.  This
70935         merges the following patch from glibc:
70936         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
70937
70938 2004-05-20  Andreas Schwab  <schwab@suse.de>
70939
70940         * m4/free.m4: Replace free if it not known to work, not the other
70941         way round.
70942
70943 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70944
70945         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
70946         present in glibc since revision 1.1 of this file.
70947         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
70948         obstack_alignment_mask, obstack_alloc, obstack_base,
70949         obstack_blank, obstack_blank_fast, obstack_chunk_size,
70950         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
70951         obstack_grow0, obstack_init, obstack_int_grow,
70952         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
70953         obstack_next_free, obstack_object_size, obstack_ptr_grow,
70954         obstack_ptr_grow_fast, obstack_room): Remove declarations of
70955         nonexistent functions.
70956
70957 2004-05-18  Karl Berry  <karl@gnu.org>
70958
70959         * config/srclist.txt: break link for vasnprintf.c.
70960
70961 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70962
70963         Port obstack to the AS/400, where pointers are 16 bytes wide and
70964         you cannot cast an integer to a valid pointer.  This patch is
70965         currently waiting to be integrated into glibc; see
70966         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
70967
70968         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
70969         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
70970         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
70971         (struct obstack): temp member is now a union of a pointer and
70972         an integer, instead of an integer.  All integer uses changed.
70973         This does not affect the physical layout of struct obstack,
70974         except on hosts (like the AS/400) where the size or alignment of
70975         void * is greater than that of ptrdiff_t.
70976         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
70977         __STDC__)]: Store temporary in pointer member of union, not
70978         integer member.
70979         * lib/obstack.c: Include <stddef.h>, for offsetof.
70980         (struct fooalign): Remove; it doesn't need a name.
70981         (union fooround): Change double to long double, and add void *.
70982         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70983         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70984         not a macro.  Hence the values are always int; so remove all
70985         casts-to-int in uses.
70986
70987 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70988
70989         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70990         we can get this patch merged into glibc.
70991
70992 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70993             Paul Eggert  <eggert@cs.ucla.edu>
70994
70995         * m4/argp: Depend on alloca.
70996
70997 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70998             Paul Eggert  <eggert@cs.ucla.edu>
70999
71000         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71001         freecoding.
71002
71003 2004-05-17  Bruno Haible  <bruno@clisp.org>
71004
71005         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71006         precision that consists of a '.' followed by an empty digit string.
71007         Patch by Tor Lillqvist <tml@iki.fi>.
71008
71009 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71010
71011         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71012         for backward compatibility with older code.  We need our own
71013         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71014         it under some other name, and our alloca.h will define it.
71015
71016 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71017             Derek Price  <derek@ximbiot.com>
71018
71019         * lib/alloca.c: Include <alloca.h>, to get our interface.
71020         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71021         include <alloca.h> first.  Use C89 prototype for alloca; this
71022         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71023         Use #elif for simplicity, since we can assume C89 now.
71024         Don't try to source the system alloca.h since it will not be found
71025         and to prevent recursively including its replacement.
71026         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71027         * lib/regex.c: Likewise.
71028
71029 2004-05-16  Derek Price  <derek@ximbiot.com>
71030             Paul Eggert  <eggert@cs.ucla.edu>
71031
71032         getline cleanup.  This changes the getndelim2 API: both order of
71033         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71034         no delimiter).
71035
71036         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71037         interface does that.
71038         (getline): Always use getdelim, so that we don't have two
71039         copies of this code.
71040         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71041         if available.
71042         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71043         (GETNDELIM2_MAXIMUM): New macro.
71044         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71045         instead of the old practice of delim2==0.  All callers changed.
71046         Return -1 on overflow, instead of returning junk.
71047         Do not set *linesize unless allocation succeeds.
71048         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71049         that we include sys/types.h.
71050         * lib/getnline.h: Likewise.
71051         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71052         (getndelim2): Reorder arguments.
71053         * lib/getnline.c (getnline, getndelim):
71054         Don't discard the NMAX argument.
71055         (getnline): Invoke getndelim, to avoid code duplication.
71056         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71057         of (size_t) -1 by callers of the getnline family.
71058
71059 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71060
71061         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71062         Check for gettimeofday.
71063         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71064         Check for settimeofday, stime.
71065
71066 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71067
71068         * lib/nanosleep.c (suspended): Change its type from int to
71069         sig_atomic_t volatile.
71070         (first_call): Make it private to rpl_nanosleep, and have it
71071         be zero initially as that's a bit faster.
71072         (my_usleep): Round up fractional times instead of truncating them,
71073         as this is the usual meaning for 'sleep'.
71074
71075         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71076         doesn't work.
71077         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71078         (ENOSYS): Define if not defined.
71079         (settime): Fall back on stime if it exists and settimeofday fails.
71080         But don't bother with fallbacks if a method fails with errno == EPERM.
71081
71082 2004-05-11  Jim Meyering  <jim@meyering.net>
71083
71084         Prior to this change, the save_cwd caller required read access to the
71085         current directory on most systems (ones with the fchdir function).
71086
71087         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71088         fails, try write-only, and finally, resort to using xgetcwd.
71089
71090 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71091
71092         * lib/obstack.c, obstack.h: Import changes from libc.
71093
71094 2004-04-28  Bruno Haible  <bruno@clisp.org>
71095
71096         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71097         also implicitly appends .exe to executables.
71098         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71099         accepts Windows pathnames.
71100         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71101         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71102         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71103         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71104         Reported by Derek Robert Price <derek@ximbiot.com>.
71105
71106 2004-04-21  Karl Berry  <karl@gnu.org>
71107
71108         * config/srclist.txt (localcharset.c): break sync.
71109
71110 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71111
71112         * m4/host-os.m4: Add a copyright notice.
71113
71114 2004-04-20  Jim Meyering  <jim@meyering.net>
71115
71116         Change UTILS_ to gl_ in AC_DEFINE'd names.
71117         Change utils_- and jm_-prefixed variables, too.
71118         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71119         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71120         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71121
71122         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71123         Don't emit trailing blanks.
71124         Also rename jm_-prefixed variables to have gl_ prefix.
71125
71126         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71127         Also rename jm_-prefixed variables to have gl_ prefix.
71128
71129         * m4/jm-macros.m4: Reflect the renamings.
71130         * m4/prereq.m4: Likewise.
71131
71132 2004-04-20  Jim Meyering  <jim@meyering.net>
71133
71134         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71135         memory.
71136
71137 2004-04-20  Jim Meyering  <jim@meyering.net>
71138             Bruno Haible  <bruno@clisp.org>
71139
71140         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71141         memory when realloc fails.
71142
71143 2004-04-19  Jim Meyering  <jim@meyering.net>
71144
71145         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71146         now that readutmp.c may call `free (0)'.
71147
71148 2004-04-19  Bruno Haible  <bruno@clisp.org>
71149
71150         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71151         * m4/inttypes_h.m4: Likewise.
71152         * m4/stdint_h.m4: Likewise.
71153         * m4/intmax_t.m4: Likewise.
71154         * m4/uintmax_t.m4: Likewise.
71155
71156 2004-04-18  Jim Meyering  <jim@meyering.net>
71157
71158         * m4/prereq.m4: Don't forbid jm_ prefix.
71159
71160         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71161         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71162         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71163         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71164         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71165         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71166         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71167         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71168         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71169         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71170         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71171         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71172         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71173         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71174         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71175         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71176         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71177         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71178         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71179
71180 2004-04-18  Jim Meyering  <jim@meyering.net>
71181
71182         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71183         failure, don't leak memory and do call END_UTMP_ENT.
71184
71185 2004-04-16  Jim Meyering  <jim@meyering.net>
71186
71187         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71188         coreutils' stat program.
71189         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71190
71191 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71192
71193         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71194         C89.
71195         (CHAR_BIT): Remove, since we assume C89.
71196         Include <stdint.h> if available, as per current Autoconf CVS advice.
71197
71198 2004-03-31  Jim Meyering  <jim@meyering.net>
71199
71200         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71201         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71202         * m4/xalloc.m4: Likewise.
71203
71204 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71205
71206         Merge from coreutils.
71207
71208         * m4/inttostr.m4: New file.
71209         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71210         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71211         Require gl_CLOCK_TIME.
71212         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71213
71214 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71215
71216         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71217         not bool, to be more consistent with Unix conventions.
71218         Suggested by Bruno Haible.
71219
71220         Merge from coreutils.
71221
71222         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71223         * lib/umaxtostr.c: New files.
71224
71225         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71226         the usual <time.h> dance.
71227         (get_date): Change signature to support fractional time stamps.
71228         All callers changed.
71229         * lib/getdate.y: Include "getdate.h" first, as we can now
71230         assume C89 and don't need to worry about 'const'.
71231         Similarly, include "unlocked-io.h" near start, not in middle.
71232         Include <limits.h>.
71233         (textint.value): Use long int rather than int.
71234         (textint.digits): Use size_t rather than int.
71235         (BILLION, LOG10_BILLION): New constants.
71236         (parser_control): New member rel_ns.  Members day_ordinal,
71237         time_zone, month, day, hour, minutes, rel_year, rel_month,
71238         rel_day, rel_hour, rel_minutes, rel_seconds
71239         are now long int, not int.  Member seconds is now struct timespec,
71240         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71241         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71242         not int.
71243         (%union.intval): Now long int, not int.
71244         New member timespec.
71245         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71246         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71247         (spec): Now is a timespec or an item list.
71248         (timespec, items): New nonterminals.
71249         (time, rel, relunit, number, get_date):
71250         Add support for fractional seconds.
71251         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71252         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71253         (to_hour): First arg is now long int, not int.
71254         (to_year): Returns long int, not int.
71255         Don't treat year -70 like 70.
71256         (tm_diff): Returns long int, not int.
71257         (lookup_word): Use bool instead of int when appropriate.
71258         (yylex): Use size_t for count, not int.
71259         Detect overflow when parsing large integer constants.
71260         Add support for fractions.
71261         (get_date): Make pointers 'const' if possible.
71262         Use more-portable code to detect integer overflow.
71263         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71264         Don't use ctime; it's not reliable if the year has >4 digits.
71265
71266         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71267         This is for compatibility with BSD.
71268
71269         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71270         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71271         From coreutils' system.h.
71272
71273         * lib/userspec.c: Don't include "posixver.h".
71274         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71275         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71276         compatible extension.  Simplify code by removing a boolean int
71277         that was always nonzero if a string was nonnull.
71278
71279 2004-03-30  Jim Meyering  <jim@meyering.net>
71280
71281         Merge from coreutils.
71282
71283         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71284         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71285         on some systems one must include <grp.h> before it.
71286         Reported by Christian Krackowizer.
71287
71288 2004-03-30  Jim Meyering  <jim@meyering.net>
71289
71290         Merge from coreutils.
71291
71292         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71293
71294         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71295         an empty input stream.
71296
71297         * lib/readtokens.c: Include <stdbool.h>.
71298         (readtoken): Use `size_t' rather than int/long.
71299         All callers adjusted.
71300         Use `bool' rather than `int' where appropriate.
71301         Use memset rather than an explicit loop.
71302         Use x2nrealloc rather than xrealloc.
71303         Allow the use of `\0' as a delimiter.
71304         (readtokens): Likewise.
71305         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71306
71307 2004-03-30  Jim Meyering  <jim@meyering.net>
71308
71309         * m4/realloc.m4: Remove file, since now it does no more than
71310         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71311         the `configure.ac' section of module/realloc.
71312         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71313
71314 2004-03-30  Bruno Haible  <bruno@clisp.org>
71315
71316         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71317         nonnull.
71318
71319 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71320
71321         Merge changes to getloadavg.c from coreutils and Emacs.
71322
71323         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71324         Define to an expression, not to the empty string.
71325         Include cloexec.h and xalloc.h.
71326         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71327         Use set_cloexec_flag rather than rolling our own.
71328         * lib/cloexec.c, lib/cloexec.h: New files.
71329
71330 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71331
71332         * m4/cloexec.m4: New file.
71333
71334 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71335
71336         * lib/getopt.h: Sync with libc CVS.
71337
71338 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71339             Bruno Haible  <bruno@clisp.org>
71340
71341         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71342         mbswidth.
71343
71344 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71345             Bruno Haible  <bruno@clisp.org>
71346
71347         * lib/mbswidth.h: Include <wchar.h> only if
71348         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71349         <wchar.h>.
71350         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71351
71352 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71353
71354         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71355         Sync with libc CVS.
71356         * lib/getopt_int.h: New file, also synced from libc.
71357
71358 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71359
71360         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71361         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71362         Bring back getopt.c, getopt.h, getopt1.c.
71363
71364 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71365
71366         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71367         All uses changed.  Check for sa_sigaction member; this fixes
71368         a bug first reported by Jason Andrade in
71369         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71370
71371 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71372
71373         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71374         '#if' expressions.  Unlike the code it replaces, it does not
71375         depend on (defined _SC_PAGESIZE).  However, it does depend on
71376         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71377         first reported by Jason Andrade in
71378         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71379
71380 2004-02-25  Simon Josefsson  <jas@extundo.com>
71381
71382         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71383
71384 2004-02-25  Simon Josefsson  <jas@extundo.com>
71385
71386         * lib/strdup.h: New file.
71387         * lib/strdup.c: Include it.
71388         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71389         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71390
71391 2004-02-23  Karl Berry  <karl@gnu.org>
71392
71393         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71394         (from fencepost.gnu.org:/gd/gnuorg).
71395
71396 2004-02-23  Karl Berry  <karl@gnu.org>
71397
71398         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71399         * config/srclist.txt: add maintain/standards documents.
71400
71401 2004-02-18  Bruno Haible  <bruno@clisp.org>
71402
71403         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71404         Reported by Derek Robert Price <derek@ximbiot.com>.
71405
71406 2004-02-16  Karl Berry  <karl@gnu.org>
71407
71408         * config/mkinstalldirs, install-sh: update from automake.
71409
71410 2004-02-06  Karl Berry  <karl@gnu.org>
71411
71412         * m4/po.m4: update from gettext 0.14.1.
71413
71414 2004-02-06  Karl Berry  <karl@gnu.org>
71415
71416         * lib/config.charset: update from gettext 0.14.1.
71417
71418 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71419
71420         Add comments and code, prompted by suggestions from Bruno Haible
71421         for sh-quote.
71422         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71423         describing the enum quoting_style values.
71424         * lib/quotearg.c (quotearg_alloc): New function.
71425         (quotearg_buffer_restyled): Treat lone { and } as special.
71426         Treat = as special.  Work around bug with older shells
71427         that "see" a '\' that is really the 2nd byte of a multibyte char.
71428         Quote empty string with shell_quoting_style.
71429
71430 2004-02-03  Bruno Haible  <bruno@clisp.org>
71431
71432         * m4/pipe.m4: New file, from GNU gettext.
71433
71434 2004-02-03  Bruno Haible  <bruno@clisp.org>
71435
71436         * lib/pipe.h: New file, from GNU gettext.
71437         * lib/pipe.c: New file, from GNU gettext.
71438
71439 2004-01-27  Bruno Haible  <bruno@clisp.org>
71440
71441         * m4/execute.m4: New file, from GNU gettext.
71442
71443 2004-01-27  Bruno Haible  <bruno@clisp.org>
71444
71445         * lib/execute.h: New file, from GNU gettext.
71446         * lib/execute.c: New file, from GNU gettext.
71447         * lib/w32spawn.h: New file, from GNU gettext.
71448
71449 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71450
71451         Merge from diffutils.
71452
71453         * lib/file-type.c (file_type): Add typed memory objects.
71454         * lib/file-type.h (S_TYPEISTMO): New macro.
71455
71456         * lib/c-stack.h (c_stack_action): Remove argv argument.
71457         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71458         (die): Don't calculate message unless segv_action returns.
71459         (get_stack_location, min_address_from_argv, max_address_from_argv,
71460         volatile stack_base, volatile_stack_size): Remove.
71461         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71462         that every segmentation violation is a stack overflow.  (Ouch!)
71463         See Debian bug 136249 (still outstanding) for more info about why
71464         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
71465
71466 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71467
71468         Exit-status fix from coreutils.
71469
71470         Use exit_failure consistently in place of EXIT_FAILURE,
71471         so that program exit statuses are consistent on failure.
71472
71473         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
71474         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
71475         * lib/argmatch.h: Comment fix to match the above.
71476         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
71477         Now a macro referring to exit_failure, instead of a separate
71478         variable.  Include "exitfail.h" to get it.
71479         * lib/xstrtol.h: Include "exitfail.h".
71480         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
71481
71482         * lib/long-options.c (parse_long_options): Use prototype
71483         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
71484         for clarity.
71485
71486 2004-01-21  Jim Meyering  <jim@meyering.net>
71487
71488         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
71489         so as not to conflict with a different-sized __mktime_internal
71490         function in GNU libc.
71491         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
71492         Problem building statically-linked `ls' reported by Michael Brunnbauer.
71493
71494 2004-01-20  Karl Berry  <karl@gnu.org>
71495
71496         * config/config.guess: update from config.
71497
71498         * config/srclistvars.sh: GNUWWWLICENSES for karl.
71499
71500 2004-01-20  Bruno Haible  <bruno@clisp.org>
71501
71502         Safer stack allocation.
71503         * lib/setenv.c: Include allocsa.h.
71504         (alloca): Remove fallback definition.
71505         (freea): Remove macro.
71506         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
71507         instead of freea.
71508
71509 2004-01-20  Bruno Haible  <bruno@clisp.org>
71510
71511         * m4/eealloc.m4: New file, from GNU gettext.
71512
71513 2004-01-20  Bruno Haible  <bruno@clisp.org>
71514
71515         * m4/allocsa.m4: New file, from GNU gettext.
71516
71517 2004-01-20  Bruno Haible  <bruno@clisp.org>
71518
71519         * lib/xallocsa.h: New file, from GNU gettext.
71520         * lib/xallocsa.c: New file, from GNU gettext.
71521
71522 2004-01-20  Bruno Haible  <bruno@clisp.org>
71523
71524         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
71525
71526 2004-01-20  Bruno Haible  <bruno@clisp.org>
71527
71528         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
71529         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
71530         specially.
71531
71532 2004-01-20  Bruno Haible  <bruno@clisp.org>
71533
71534         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
71535         patch.
71536
71537 2004-01-20  Bruno Haible  <bruno@clisp.org>
71538
71539         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
71540
71541 2004-01-20  Bruno Haible  <bruno@clisp.org>
71542
71543         * lib/eealloc.h: New file.
71544
71545 2004-01-20  Bruno Haible  <bruno@clisp.org>
71546
71547         * lib/binary-io.h: Avoid warnings on Cygwin.
71548
71549 2004-01-20  Bruno Haible  <bruno@clisp.org>
71550
71551         * lib/allocsa.h: New file, from GNU gettext.
71552         * lib/allocsa.c: New file, from GNU gettext.
71553
71554 2004-01-18  Karl Berry  <karl@gnu.org>
71555
71556         * doc/gpl.texi, doc/lgpl.texi: new files.
71557
71558 2004-01-18  Karl Berry  <karl@gnu.org>
71559
71560         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
71561         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
71562
71563 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71564
71565         Merge from coreutils.
71566
71567         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
71568         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
71569         (gl_DEFAULT_POSIX2_VERSION): Move
71570         the documentation from 'configure' into 'config.hin',
71571         so that 'configure --help' isn't burdened by it and
71572         we don't have to worry about its formatting there.
71573         Reword the documentation so that it's more succinct
71574         and can be run together into a single paragraph.
71575         * m4/same.m4 (gl_SAME): Check for pathconf.
71576
71577 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71578
71579         Merge from coreutils.
71580
71581         * lib/posixver.c: Include posixver.h.
71582
71583         * lib/same.c: Include <stdbool.h>, <limits.h>.
71584         (_POSIX_NAME_MAX): Define if not defined.
71585         (MIN): New macro.
71586         (same_name): If file names are silently truncated, report
71587         that the file names are the same if they are the same after
71588         the silent truncation.
71589
71590         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
71591         conversion function.
71592         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
71593         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
71594         longer needed.
71595
71596 2004-01-15  Jim Meyering  <jim@meyering.net>
71597
71598         Merge from coreutils.
71599
71600         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
71601         if no library is required.
71602         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
71603         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
71604         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
71605         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
71606         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
71607         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
71608         value, $ac_cv_search_crypt, if it's "none required".
71609         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
71610         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
71611         not gl_FUNC_GETLOADAVG.
71612         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
71613         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
71614
71615 2004-01-15  Jim Meyering  <jim@meyering.net>
71616
71617         Merge from coreutils.
71618
71619         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
71620         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
71621         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
71622
71623         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
71624         optional configure-time default.
71625
71626         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71627
71628         * lib/xreadlink.c (xreadlink): Correct outdated comment.
71629
71630 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
71631
71632         Merge from coreutils.
71633
71634         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71635         value, $ac_cv_search_nanosleep, if it's "none required".
71636
71637 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71638
71639         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71640         with like-named macro in fnmatch.c.
71641         (EXT): Use an internal constant instead.
71642
71643         Merge fnmatch patches from glibc.
71644         * lib/fnmatch.c (mbsinit): Remove define.
71645         Add libc_hidden_ver (__fnmatch, fnmatch).
71646         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71647         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71648
71649 2004-01-14  Karl Berry  <karl@gnu.org>
71650
71651         * config/install-sh: update from automake.
71652
71653 2004-01-13  Karl Berry  <karl@gnu.org>
71654
71655         * config/install-sh: update from automake.
71656
71657 2004-01-09  Karl Berry  <karl@gnu.org>
71658
71659         * config/install-sh: update from automake.
71660
71661 2004-01-05  Karl Berry  <karl@gnu.org>
71662
71663         * config/config.{sub,guess}: update from config.
71664
71665 2003-12-31  Karl Berry  <karl@gnu.org>
71666
71667         * config/depcomp: update from automake.
71668
71669 2003-12-14  Karl Berry  <karl@gnu.org>
71670
71671         * lib/config.charset: update from gettext-runtime.
71672
71673 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71674
71675         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71676         Bug reported by Alfred M. Szmidt.
71677
71678 2003-12-03  Bruno Haible  <bruno@clisp.org>
71679
71680         * m4/gettext.m4: Upgrade from gettext-0.13.
71681         * m4/po.m4: Upgrade from gettext-0.13.
71682         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71683         * m4/intmax.m4: New file, from gettext-0.13.
71684         * m4/printf-posix.m4: New file, from gettext-0.13.
71685
71686 2003-11-29  Karl Berry  <karl@gnu.org>
71687
71688         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71689
71690 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71691             Bruno Haible  <bruno@clisp.org>
71692
71693         * lib/printf-parse.h: Don't include sys/types.h.
71694         (ARG_NONE): New macro.
71695         (char_directive): Change type of *arg_index fields to size_t.
71696         * lib/printf-parse.c: Don't include sys/types.h.
71697         (SSIZE_MAX): Remove macro.
71698         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71699         Remove unnecessary overflow check.
71700         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71701         fields.
71702
71703 2003-11-25  Bruno Haible  <bruno@clisp.org>
71704
71705         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71706
71707 2003-11-25  Bruno Haible  <bruno@clisp.org>
71708
71709         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71710         gt_TYPE_SSIZE_T.
71711
71712 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71713
71714         * modules/alloca: Remove dependency on xalloc.
71715
71716 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71717
71718         * lib/alloca.c: Remove dependency on xalloc module.
71719         (xalloc_die): Remove.
71720         (memory_full) [!defined emacs]: New macro.
71721         [!defined emacs]: Don't include xalloc.h.
71722         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71723         address arithmetic overflows.  Change datatypes a bit to avoid
71724         unnecessary casts.
71725
71726 2003-11-22  Jim Meyering  <jim@meyering.net>
71727
71728         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71729         s/size/size_t/.
71730
71731 2003-11-21  Karl Berry  <karl@gnu.org>
71732
71733         * config/config.{sub,guess}: update from config.
71734
71735 2003-11-18  Karl Berry  <karl@gnu.org>
71736
71737         * config/config.{sub,guess}: update from config.
71738
71739         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
71740
71741 2003-11-17  Paul Eggert  <eggert@twinsun.com>
71742
71743         * README: Mention that S+T cannot overflow if S is the size of
71744         an existing object and T is sufficiently small.
71745
71746 2003-11-17  Jim Meyering  <jim@meyering.net>
71747
71748         On systems without utime and without a utimes function capable of
71749         dealing with a NULL struct utimbuf* argument, this utime replacement
71750         could -- in unusual circumstances -- leak a file descriptor.
71751         * lib/utime.c: Include <unistd.h> and <errno.h>.
71752         (utime_null): Be sure to close `fd' and to preserve errno.
71753         Reported by Geoff Collyer via Arnold Robbins.
71754
71755 2003-11-17  Bruno Haible  <bruno@clisp.org>
71756
71757         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
71758         (Depends-on): Add xsize.
71759
71760 2003-11-17  Bruno Haible  <bruno@clisp.org>
71761
71762         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
71763
71764 2003-11-17  Bruno Haible  <bruno@clisp.org>
71765
71766         * lib/vasnprintf.c (alloca): Remove fallback definition.
71767         (freea): Remove definition.
71768         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
71769         Reported by Paul Eggert.
71770
71771 2003-11-16  Paul Eggert  <eggert@twinsun.com>
71772             Bruno Haible  <bruno@clisp.org>
71773
71774         Protect against address arithmetic overflow.
71775         * lib/printf-args.h: Include stddef.h.
71776         (arguments): Change type of field 'count' to size_t.
71777         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
71778         'unsigned int' where appropriate.
71779         * lib/printf-parse.h: Include sys/types.h.
71780         (char_directive): Change type of *arg_index fields to ssize_t.
71781         (char_directives): Change type of fields 'count', max_*_length to
71782         size_t.
71783         * lib/printf-parse.c: Include sys/types.h and xsize.h.
71784         (SSIZE_MAX): Define fallback value.
71785         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
71786         instead of 'int' where appropriate. Check a_allocated, d_allocated
71787         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
71788         * lib/vasnprintf.c: Include xsize.h.
71789         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
71790         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
71791         overflow. Avoid wraparound when converting a width or precision from
71792         decimal to binary.
71793
71794 2003-11-16  Bruno Haible  <bruno@clisp.org>
71795
71796         Update from GNU gettext.
71797         * lib/printf-parse.c: Generalize to it can be compiled for wide
71798         strings.
71799         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
71800         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
71801         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
71802         SNPRINTF): New macros.
71803         Don't include <alloca.h> if the file is used inside libintl.
71804         (local_wcslen): New function, for Solaris 2.5.1.
71805         (VASNPRINTF): Use it instead of wcslen.
71806
71807 2003-11-16  Bruno Haible  <bruno@clisp.org>
71808
71809         * lib/xsize.h (xmax): New function.
71810         (xsum, xsum3, xsum4): Declare as "pure" functions.
71811
71812 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71813
71814         * modules/xalloc (Files): Undo latest change, since xalloc.h
71815         no longer needs SIZE_MAX or PTRDIFF_MAX.
71816
71817 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71818
71819         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
71820         gl_PTRDIFF_MAX.
71821
71822 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71823
71824         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
71825         "return", to pacify some unknown compiler.  Problem reported
71826         by Joerg Schilling.
71827
71828 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71829
71830         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
71831         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
71832         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
71833         heuristic is just as accurate as far as we know, and it removes a
71834         dependency on size_max.m4 and ptrdiff_max.m4.
71835
71836 2003-11-11  Bruno Haible  <bruno@clisp.org>
71837
71838         * modules/xsize (Files): Add m4/size_max.m4.
71839         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
71840
71841 2003-11-11  Bruno Haible  <bruno@clisp.org>
71842
71843         * m4/size_max.m4: New file.
71844         * m4/ptrdiff_max.m4: New file.
71845         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
71846         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
71847         (gl_XALLOC): Invoke it.
71848
71849 2003-11-11  Bruno Haible  <bruno@clisp.org>
71850
71851         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
71852         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
71853         defined.
71854
71855 2003-11-10  Paul Eggert  <eggert@twinsun.com>
71856
71857         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
71858         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
71859         rejected some allocations of exactly SIZE_MAX - 2 bytes.
71860         From Bruno Haible.
71861         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
71862         not (size_t) -1, since it's defined here.
71863
71864 2003-11-09  Karl Berry  <karl@gnu.org>
71865
71866         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
71867
71868 2003-11-06  Paul Eggert  <eggert@twinsun.com>
71869
71870         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
71871         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
71872         Reject sizes of exactly SIZE_MAX bytes.
71873         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
71874         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
71875
71876 2003-11-05  Bruno Haible  <bruno@clisp.org>
71877
71878         * lib/xsize.h: Include limits.h, to avoid a possible collision with
71879         SIZE_MAX defined in <limits.h> on Solaris.
71880
71881 2003-11-04  Jim Meyering  <jim@meyering.net>
71882
71883         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
71884         variable names, rather than @VAR@.
71885         * modules/poll: Likewise.
71886
71887 2003-11-04  Bruno Haible  <bruno@clisp.org>
71888
71889         * modules/xsize: New file.
71890         * modules/linebreak: Depend on xsize.
71891         * MODULES.html.sh (func_all_modules): Add xsize.
71892
71893 2003-11-04  Bruno Haible  <bruno@clisp.org>
71894
71895         * m4/xsize.m4: New file.
71896
71897 2003-11-04  Bruno Haible  <bruno@clisp.org>
71898
71899         * lib/xsize.h: New file.
71900         * lib/linebreak.c: Include xsize.h.
71901         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
71902         argument for overflow.
71903         Suggested by Paul Eggert.
71904
71905 2003-11-03  Karl Berry  <karl@gnu.org>
71906
71907         * config/config.{guess,sub}: update from config.
71908
71909 2003-11-03  Jim Meyering  <jim@meyering.net>
71910
71911         * modules/userspec (lib_SOURCES): Add userspec.h.
71912         (Include): Add "userspec.h".
71913         Improve description.
71914
71915 2003-11-03  Jim Meyering  <jim@meyering.net>
71916
71917         * lib/userspec.c: Include "userspec.h".
71918         * lib/userspec.h: New file.
71919
71920 2003-11-03  Bruno Haible  <bruno@clisp.org>
71921
71922         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
71923
71924 2003-11-03  Bruno Haible  <bruno@clisp.org>
71925
71926         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
71927         available, to avoid (extremely rare) race condition.
71928         Suggested by Paul Eggert.
71929
71930 2003-11-02  Karl Berry  <karl@gnu.org>
71931
71932         * config/srclist.txt (vasprintf.c): sync broken, sigh.
71933
71934 2003-10-31  Paul Eggert  <eggert@twinsun.com>
71935
71936         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
71937         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
71938         (read_filesystem_list): Set and use me_type_malloced.
71939         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
71940         whatever the type happens to be), for brevity and consistency.
71941         Check for size calculation overflow on Alphas running OSF/1.
71942
71943 2003-10-31  Jim Meyering  <jim@meyering.net>
71944
71945         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
71946
71947         * lib/linebuffer.c: Include <string.h> for declaration of memset.
71948
71949 2003-10-30  Paul Eggert  <eggert@twinsun.com>
71950             Bruno Haible  <bruno@clisp.org>
71951
71952         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
71953         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
71954
71955 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71956
71957         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
71958         netbsd*-gnu*.  Suggested by Robert Millan.
71959
71960 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71961
71962         * modules/group-member: Depend on stdbool.
71963
71964 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71965
71966         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
71967
71968 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71969
71970         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
71971         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
71972         after the 'gnu' in these cases.  This fixes some bugs in the
71973         previous change, and is based on suggestions by Robert Millan.
71974
71975 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71976
71977         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
71978         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
71979         no longer needed.
71980         * lib/quotearg.c (quotearg_n_options): Use it.
71981         * lib/group-member.c: Include <stdbool.h>.
71982         (free_group_info): Arg is now const *; don't free arg.
71983         (get_group_info): Now returns bool and accepts struct group_info *,
71984         rather than returning a malloc'ed struct group_info *.
71985         All uses changed.  Check for overflow in internal size calculation.
71986
71987         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71988         rather than xmalloc/xrealloc.
71989         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71990         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71991         conformance bug: the old code used a pointer after freeing the
71992         storage that it addressed.
71993         * lib/hash.c (hash_initialize): Simplify the code by using
71994         xalloc_oversized rather than doing it by hand.
71995         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71996         the buffer preserved.  Use free and xmalloc instead.
71997         * lib/quotearg.c (quotearg_n_options): Likewise.
71998         Use a simpler test for size overflow.  Don't use xalloc_oversized
71999         because unsigned int might be wider than size_t (!); this suggests
72000         that we should switch from unsigned int to size_t for slot numbers.
72001
72002 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72003
72004         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72005         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72006         NetBSD kernels.  Requested by Richard Stallman.
72007
72008 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72009
72010         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72011         to allocate the returned structure.  Do not allocate a subarray,
72012         as x2nrealloc will do that.
72013         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72014         instead of xnrealloc.
72015         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72016
72017 2003-10-27  Bruno Haible  <bruno@clisp.org>
72018
72019         * lib/stdbool_.h: Better support for BeOS.
72020
72021 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72022
72023         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72024         now uses inline.
72025
72026 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72027
72028         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72029         callers that want to do their own size-overflow checking.  Include
72030         <stdbool.h>, since xalloc_oversized returns bool.
72031         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72032         to use xalloc_oversized.
72033
72034         Add two functions x2realloc, x2nrealloc, for programs that grow
72035         arrays dynamically by doubling their sizes.
72036         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72037         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72038         New functions.
72039
72040         Port to C99 semantics for 'inline' of external functions.
72041         Bug reported by Bruno Haible.
72042         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72043         with the old contents of xnmalloc.
72044         (xnmalloc, xmalloc): Use it.
72045         (xnrealloc_inline): New static inline function,
72046         with the old contents of xnrealloc.
72047         (xnrealloc, xrealloc): Use it.
72048
72049         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72050         that.
72051
72052 2003-10-26  Karl Berry  <karl@gnu.org>
72053
72054         * config/srclist.txt (COPYING.DOC): no longer available from
72055         /gd/gnuorg; don't know where the ultimate source is.
72056
72057 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72058
72059         Fix several address-calculation bugs in the hash modules,
72060         plus some minor code cleanup.
72061
72062         * lib/hash.h: Include <stdbool.h>, for bool.
72063         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72064         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72065         hash_get_n_entries, hash_get_max_bucket_length,
72066         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72067         hash_rehash): Use size_t rather than unsigned.
72068         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72069         hash_get_n_buckets_used, hash_get_n_entries,
72070         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72071         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72072         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72073         Likewise.
72074         (SIZE_MAX): Define if not defined.
72075         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72076         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72077         hash_print):
72078         Use const * when possible.
72079         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72080         (check_tuning): Fix bug: if tuning parameters were very close to
72081         0 or 1, rounding errors could have caused subscript violations.
72082         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72083         (hash_initialize): Add 'fail:' label
72084         to free table and return NULL, and use it to simplify code.
72085         Use calloc rather than clearing the storage ourself.
72086         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72087         buffer size calculations.
72088         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72089         Include <stddef.h>, for size_t.
72090         * lib/hash-pjw.c (hash_pjw): Likewise.
72091         Switch to method described by Bruno Haible.
72092         Include <limits.h>, for CHAR_BIT.
72093         (SIZE_BITS): New macro.
72094
72095 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72096
72097         * m4/getline.m4 (AM_FUNC_GETLINE):
72098         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72099         hosts.  Problem reported by Derek Robert Price in
72100         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72101         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72102         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72103
72104 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72105
72106         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72107         ceiling the allocation at NMAX bytes rather than silently
72108         discarding input bytes before NMAX is reached.  This makes
72109         a difference only if NMAX exceeds SIZE_MAX / 2.
72110
72111         * lib/obstack.c: Merge from glibc.
72112         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72113         Add libc_hidden_def (_obstack_newchunk).
72114         (_obstack_free) [! defined _LIBC]: Remove.
72115         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72116         a clone of the function body.
72117         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72118         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72119
72120         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72121         glibc.
72122         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72123         arg to memcpy.
72124
72125         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72126         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72127         Don't use lvalue casts, as GCC plans to remove support for them
72128         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72129         was also present in the non-GCC version, indicating that this
72130         code had always been buggy and had never been widely used.
72131         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72132         Use the fast variant of each macro, rather than copying the
72133         definiens of the fast variant; that way, we'll be more likely to
72134         catch future bugs in the fast variants.
72135
72136 2003-10-20  Bruno Haible  <bruno@clisp.org>
72137
72138         * modules/wait-process: New file.
72139         * MODULES.html.sh (func_all_modules): Add wait-process.
72140
72141 2003-10-20  Bruno Haible  <bruno@clisp.org>
72142
72143         * m4/wait-process.m4: New file.
72144
72145 2003-10-20  Bruno Haible  <bruno@clisp.org>
72146
72147         * lib/wait-process.h: New file, from GNU gettext.
72148         * lib/wait-process.c: New file, from GNU gettext.
72149
72150 2003-10-19  Jim Meyering  <jim@meyering.net>
72151
72152         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72153         HPUX 10.20.
72154
72155 2003-10-18  Karl Berry  <karl@gnu.org>
72156
72157         * config/config.guess: update from config.
72158
72159 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72160
72161         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72162         (getgroups): First arg is int, not size_t.
72163         Don't let 'free' mangle errno.
72164
72165 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72166
72167         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72168
72169 2003-10-16  Karl Berry  <karl@gnu.org>
72170
72171         * config/config.{guess,sub}: update from config.
72172
72173 2003-10-16  Jim Meyering  <jim@meyering.net>
72174
72175         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72176         memcpy.
72177
72178 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72179
72180         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72181         (SIZE_MAX): Remove.
72182         (new_exclude, add_exclude_file): Initial size no longer needs to
72183         be a power of 2.
72184         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72185         our own address arithmetic overflow checking.
72186
72187         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72188         (fnmatch): Do not alloca more than 2000 wide characters;
72189         instead, use malloc for large buffers.
72190         Check for address arithmetic overflow, and return -1
72191         with errno set to ENOMEM in that case.
72192         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72193         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72194         instead, return -1.  Check for address arithmetic overflow.
72195
72196 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72197
72198         Handle invalid suffixes and overflow independently, so that
72199         callers can treat them independently as needed.  Fix some bugs in
72200         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72201         suffix for a human-readable blocksize.  The major caller-visible
72202         change is the addition of a new
72203         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72204         that both overflow and suffix chars were found.
72205
72206         * lib/human.c (humblock): Don't check separately for invalid suffix
72207         char; that is xstrtoumax's job (now that its bug is fixed).
72208         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72209         INTMAX_MAX]: New macros.
72210         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72211         TYPE_MAXIMUM): New macros.
72212         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72213         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72214         if overflow occurs, as it's what __strtol does and it's more useful
72215         in practice.
72216         (__xstrtol): If __strtol reports some error other than ERANGE,
72217         reflect it to the caller as LONGINT_INVALID.  If it reports
72218         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72219         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72220         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72221         value.
72222         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72223         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72224         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72225         [defined UINTMAX_MAX]: New macros.
72226
72227 2003-10-14  Bruno Haible  <bruno@clisp.org>
72228
72229         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72230
72231 2003-10-14  Bruno Haible  <bruno@clisp.org>
72232
72233         * m4/sig_atomic_t: New file, from GNU gettext.
72234         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72235
72236 2003-10-14  Bruno Haible  <bruno@clisp.org>
72237
72238         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72239         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72240         Also use volatile where needed.
72241
72242 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72243
72244         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72245         Change maintainer from Bruno Haible to 'all'.
72246
72247 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72248
72249         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72250
72251 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72252
72253         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72254         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72255         and define in terms of the other primitives.
72256         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72257         (SIZE_MAX): Define if not already defined.
72258         (array_size_overflow): New function.
72259         (xalloc_die): Abort instead of exiting if 'error' returns.
72260         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72261         (xmalloc, xrealloc): Use them.
72262         (xcalloc): Check for address arithmetic overflow.
72263         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72264         a bit faster than strcpy.
72265
72266 2003-10-10  Simon Josefsson  <jas@extundo.com>
72267
72268         * modules/argp (Depends-on): Add restrict and strcase.
72269
72270 2003-10-10  Simon Josefsson  <jas@extundo.com>
72271
72272         * m4/argp.m4: Add AC_C_INLINE.
72273
72274 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72275
72276         Merge getpass from libc, plus a few fixes.
72277
72278         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72279         Include <stdbool.h>.
72280         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72281         __fsetlocking to empty.
72282         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72283         do include <bits/libc-lock.h>.
72284         Do not include <fcntl.h>; not needed.
72285         [_LIBC]: Include <wchar.h>.
72286         (NOTCANCEL_MODE): New macro.
72287         (flockfile, funlockfile) [_LIBC]: New macros.
72288         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72289         [!_LIBC]: New macros.
72290         (call_fclose): New function.
72291         (getpass): Use it.  Save tty stream separately; this simplifies the
72292         code and makes it more reliable if stdin happens to equal stdout.
72293         Invoke __fsetlocking on tty.
72294         Handle thread cancellation if needed.
72295         Namespace cleanup (use __tcgetattr, __getline).
72296         Use bool for Booleans.
72297         [USE_IN_LIBIO]: Handle wide streams.
72298         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72299         stream might go where.
72300
72301         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72302         doesn't have to include <stdio.h> before us.
72303         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72304         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72305         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72306         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72307         if not declared, so that we can use getpass.c code from libc without
72308         rewriting it.
72309         (flockfile, ftrylockfile, funlockfile): New macros.
72310
72311 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72312
72313         * modules/getpass: Depend on stdbool.
72314
72315 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72316
72317         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72318
72319 2003-10-07  Karl Berry  <karl@gnu.org>
72320
72321         * config/config.{guess,sub}: update from config.
72322
72323 2003-10-06  Jim Meyering  <jim@meyering.net>
72324             Bruno Haible  <bruno@clisp.org>
72325
72326         This lets translators provide better translations for the
72327         "Written by ..." part of --version output.
72328         * lib/version-etc.h: Include stdarg.h.
72329         (version_etc_copyright): Declare as readonly.
72330         (version_etc): Make this function variadic with a NULL-terminated list
72331         of author name strings.
72332         (version_etc_va): New declaration.
72333         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72334         (version_etc_copyright): Declare as readonly.
72335         (version_etc_va): New function. Provide a different translatable string
72336         for each possible number of authors < 10. Abbreviate when there are 10
72337         authors or more.
72338         (version_etc): Make this function variadic. Call version_etc_va.
72339         Suggestion from Gary V. Vaughan.
72340
72341         * lib/long-options.h (parse_long_options): Change prototype: the
72342         authors string is moved to the end and becomes variadic.
72343         * lib/long-options.c: Include stdarg.h.
72344         (parse_long_options): Make this function variadic, too.
72345         Call version_etc_va, not version_etc.
72346
72347 2003-10-06  Bruno Haible  <bruno@clisp.org>
72348
72349         * modules/version-etc-2: Remove file.
72350         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72351
72352 2003-10-06  Bruno Haible  <bruno@clisp.org>
72353
72354         * modules/fatal-signal: New file.
72355         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72356
72357 2003-10-06  Bruno Haible  <bruno@clisp.org>
72358
72359         * m4/fatal-signal.m4: New file.
72360         * m4/signalblocking.m4: New file, from GNU gettext.
72361
72362 2003-10-06  Bruno Haible  <bruno@clisp.org>
72363
72364         * lib/version-etc-2.h: Remove file.
72365         * lib/version-etc-2.c: Remove file.
72366
72367 2003-10-06  Bruno Haible  <bruno@clisp.org>
72368
72369         * lib/fatal-signal.h: New file, from GNU gettext.
72370         * lib/fatal-signal.c: New file, from GNU gettext.
72371
72372 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72373
72374         * README: Rework advice for preventing empty .o files.
72375         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72376         not <sys/types.h>.
72377
72378 2003-10-04  Karl Berry  <karl@gnu.org>
72379
72380         * lib/argp*: update from libc.
72381
72382 2003-10-04  Karl Berry  <karl@gnu.org>
72383
72384         * config/config.{guess,sub}: update from config.
72385
72386 2003-10-02  Bruno Haible  <bruno@clisp.org>
72387
72388         * modules/lchown (Include): Add lchown.h.
72389         * modules/time_r (Include): Use "..." syntax.
72390         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72391
72392 2003-10-01  Simon Josefsson  <jas@extundo.com>
72393
72394         * MODULES.html.sh (func_all_modules): Move gethostname from section
72395         'based on' to section 'lacking' POSIX:2001.
72396
72397 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72398
72399         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72400         to output mode on the same stream.
72401
72402 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72403
72404         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72405         Fix arg typo in previous patch.
72406
72407 2003-09-28  Jim Meyering  <jim@meyering.net>
72408
72409         * lib/error.c: Correct cpp indentation.
72410
72411 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72412
72413         * modules/free: New file.
72414
72415 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72416
72417         * m4/free.m4: New file.
72418
72419 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72420
72421         * lib/minmax.h (MIN, MAX)
72422         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72423         Omit the special code that used __typeof__, since we worry that
72424         it could be more trouble than it's worth.  See:
72425         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72426         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72427
72428         * lib/free.c: New file.
72429
72430 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72431
72432         Trivial fixes to Makefile.am parts of module listings.
72433         * modules/strstr: Append strstr.h to lib_SOURCES.
72434         * modules/strcase: Likewise, for strcase.h.
72435
72436 2003-09-27  Karl Berry  <karl@gnu.org>
72437
72438         * config/mkinstalldirs: update from automake.
72439
72440 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72441
72442         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72443         (error_tail): Do not loop, reallocating temporary buffer, since
72444         the output cannot contain more wide characters than the input
72445         contains bytes, the size must be big enough already.  This avoids
72446         one potential size overflow calculation.  Check for size overflow
72447         when calculating temporary buffer size.  Free temporary buffer
72448         when done, if it was allocated with malloc; this plugs a memory
72449         leak.  Remove casts from void * to pointers, that are no longer
72450         needed now that we're assuming C89 or better.
72451
72452         Merge error changes from glibc.
72453
72454         * lib/error.c, error.h: Update copyright notice header to match glibc.
72455         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72456         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72457         Disable cancellation while printing error.
72458         * lib/error.h: Prepend __ to parameter names.
72459
72460 2003-09-26  Jim Meyering  <jim@meyering.net>
72461
72462         * lib/error.c (error_tail): Move some declarations
72463         into inner scope where the local variables are used.
72464
72465 2003-09-26  Bruno Haible  <bruno@clisp.org>
72466
72467         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
72468         stpncpy().
72469         Don't define stpncpy through config.h; it's now done through stpncpy.h.
72470
72471 2003-09-26  Bruno Haible  <bruno@clisp.org>
72472
72473         * lib/stpncpy.h (gnu_stpncpy): New declaration.
72474         (stpncpy): Define as alias for gnu_stpncpy.
72475         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
72476
72477 2003-09-25  Simon Josefsson  <jas@extundo.com>
72478
72479         * lib/xgetdomainname.h: New file.
72480         * lib/xgetdomainname.c: New file.
72481
72482 2003-09-25  Simon Josefsson  <jas@extundo.com>
72483             Bruno Haible  <bruno@clisp.org>
72484
72485         * modules/getdomainname: New file.
72486         * modules/xgetdomainname: New file.
72487         * MODULES.html.sh (func_all_modules): Add getdomainname,
72488         xgetdomainname.
72489
72490 2003-09-25  Simon Josefsson  <jas@extundo.com>
72491             Bruno Haible  <bruno@clisp.org>
72492
72493         * m4/getdomainname.m4: New file.
72494
72495 2003-09-25  Simon Josefsson  <jas@extundo.com>
72496             Bruno Haible  <bruno@clisp.org>
72497
72498         * lib/getdomainname.h: New file.
72499         * lib/getdomainname.c: New file.
72500
72501 2003-09-25  Karl Berry  <karl@gnu.org>
72502
72503         * lib/argp-fmtstream.c, argp-help.c: update from libc.
72504
72505 2003-09-25  Karl Berry  <karl@gnu.org>
72506
72507         * config/install-sh: update from automake.
72508
72509 2003-09-25  Bruno Haible  <bruno@clisp.org>
72510
72511         * modules/version-etc-2: New file, from modules/version-etc with
72512         modifications.
72513         * MODULES.html.sh (func_all_modules): Add version-etc-2.
72514
72515 2003-09-25  Bruno Haible  <bruno@clisp.org>
72516
72517         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
72518         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
72519
72520 2003-09-24  Simon Josefsson  <jas@extundo.com>
72521
72522         * modules/xgethostname: Add xgethostname.h.
72523
72524 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72525
72526         * lib/linebuffer.c (freebuffer): Don't free the argument, just
72527         the buffer associated with the argument.  Bug reported by
72528         Simon Josefsson.
72529
72530 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72531
72532         * README: Document assumptions that 'int' is at least 32 bits
72533         wide, that integer arithmetic is 2's complement without overflow,
72534         that there are no holes in integer values, that adding sizes of
72535         two nonoverlapping objects can't overflow, and that all-bits-zero
72536         yields scalar zero.  Fix spelling and capitalization typos.
72537
72538 2003-09-19  Karl Berry  <karl@gnu.org>
72539
72540         * lib/argp.h: update from libc.
72541
72542 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72543
72544         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
72545         to avoid spurious warnings like "AC_RUN_IFELSE was called before
72546         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
72547
72548 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72549
72550         * gnulib-tool: Use "test -h", not "test -L", for portability
72551         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
72552         (tags_regexp): Remove, since \| doesn't conform to POSIX.
72553         (sed_extract_prog): Issue s commands one-by-one, rather than
72554         using \| in one s command.
72555
72556 2003-09-16  Paul Eggert  <eggert@twinsun.com>
72557
72558         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
72559         input error, instead of returning NULL the next time we are called
72560         (and therefore losing track of errno).
72561
72562 2003-09-16  Bruno Haible  <bruno@clisp.org>
72563
72564         * gnulib-tool (func_create_testdir): Warn about duplicated
72565         dependencies.
72566
72567 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72568
72569         * modules/argmatch, modules/fatal, modules/obstack,
72570         modules/xalloc, modules/xgethostname: Sort dependencies by
72571         importance, not alphabetically.
72572
72573 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72574
72575         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
72576         fails, so that the caller gets the proper errno.
72577
72578         * lib/readutmp.c (read_utmp): Likewise.
72579         Check for fstat error.  Close stream and free storage
72580         when failing.
72581
72582 2003-09-14  Karl Berry  <karl@gnu.org>
72583
72584         * config/srclist.txt (strdup.c): disable for c89 changes.
72585
72586 2003-09-14  Jim Meyering  <jim@meyering.net>
72587
72588         * lib/getloadavg.c: Correct cpp indentation.
72589         * lib/strdup.c: Likewise.
72590         * lib/vasnprintf.c: Likewise.
72591
72592 2003-09-14  Bruno Haible  <bruno@clisp.org>
72593
72594         * modules/fwriteerror: New file.
72595         * MODULES.html.sh (func_all_modules): Add fwriteerror.
72596
72597 2003-09-14  Bruno Haible  <bruno@clisp.org>
72598
72599         * lib/fwriteerror.h: New file.
72600         * lib/fwriteerror.c: New file.
72601
72602 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72603
72604         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
72605         modules/xgethostname, modules/xalloc: Depend on exit.
72606
72607 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72608
72609         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
72610
72611         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
72612         and AC_MINIX, too, so that their extensions are available.
72613
72614         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
72615         This macro has been superseded by gl_BACKUPFILE.
72616
72617         More patches to assume C89 or better.
72618
72619         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
72620
72621         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
72622         unconditionally.
72623         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
72624         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
72625         Include <string.h>, <stdlib.h> unconditionally.
72626         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
72627         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
72628         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
72629         headers or for string.h.
72630         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
72631         or strtoul.
72632
72633         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72634         headers.
72635         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72636         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72637         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72638         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72639         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72640         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72641         memcpy, memset.
72642         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72643         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72644         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72645         strtol.
72646         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72647         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72648         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72649         strtoul.
72650
72651 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72652
72653         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72654         * lib/obstack.c [!defined _LIBC]: Likewise.
72655         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72656         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72657         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72658
72659         More changes to assume C89 or better.
72660
72661         * lib/error.c (error_tail): Assume vprintf.
72662
72663         * lib/argmatch.c (getenv): Remove decl.
72664         * lib/progreloc.c (get_full_program_name): Define via prototype.
72665         * lib/setenv.c (clearenv): Likewise.
72666         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72667         needed.
72668         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72669         (malloc, memcpy): Remove decls.
72670         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72671         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72672         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72673         (memcpy): Remove macro.
72674         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72675         (__P): Remove.  All uses removed.
72676         (PTR): Remove.  All uses changed to void *.
72677         (CHAR_BIT, NULL): Remove.
72678         (spaces, zeros, memset_space, memset_zero)
72679         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72680         Remove.
72681         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72682         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72683         Define with prototype.
72684         Remove now-unnecessary prototype decl.
72685         (extra_args_spec): Assume ANSI C.  All uses changed.
72686         (extra_args_spec_iso): Remove.
72687         (my_strftime, emacs_strftimeu): Define via prototype.
72688         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72689         unconditionally.
72690         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72691         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72692         (strtoul, strtol): Remove decls.
72693         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72694         LONG_MAX): Remove.
72695         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72696         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72697         (LOCALE_PARAM_PROTO): New macro.
72698         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72699         (INTERNAL (strtol), strtol): Define with a prototype.
72700         (PARAMS): Remove.  All uses removed.
72701         * lib/tempname.c: Include <string.h> unconditionally.
72702         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72703         * lib/xgethostname.c (main): Define with a prototype.
72704         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72705         Include <stdlib.h> unconditionally.
72706         (calloc, malloc, realloc, free): Remove decls.
72707         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72708         Include <stdlib.h> unconditionally.  Sort include file names.
72709         (strtod): Remove.
72710         (xstrtod): Define with a prototype.
72711         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72712         (strtol, strtoul): Remove decls.
72713
72714 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72715
72716         More patches to assume C89 or better.
72717         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72718         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72719         string.h, memchr, STDC_HEADERS.
72720
72721 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72722
72723         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72724         Include <stdlib.h>, <string.h> unconditionally.
72725         Remove now-unnecessary cast to char *.
72726         * lib/strnlen.c: Include <string.h> unconditionally.
72727         * lib/yesno.c (yesno): Define with a prototype.
72728
72729 2003-09-11  Bruno Haible  <bruno@clisp.org>
72730
72731         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72732
72733 2003-09-10  Jim Meyering  <jim@meyering.net>
72734
72735         * lib/error.c: Correct indentation of cpp directives.
72736
72737 2003-09-10  Bruno Haible  <bruno@clisp.org>
72738
72739         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
72740         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
72741         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
72742         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
72743         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
72744         <stdlib.h> and <string.h> checks.
72745         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
72746         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
72747
72748 2003-09-10  Bruno Haible  <bruno@clisp.org>
72749
72750         * lib/strcspn.c: Include <string.h> unconditionally.
72751         * lib/strpbrk.c: Include <string.h> unconditionally.
72752         * lib/strstr.c: Include <string.h> unconditionally.
72753         * lib/unicodeio.c: Include <string.h> unconditionally.
72754         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
72755         * lib/unsetenv.c: Likewise.
72756         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
72757         * lib/yesno.c: Include <stdlib.h> unconditionally.
72758         (rpmatch): Add prototype.
72759
72760 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72761
72762         More patches to assume C89 or better.
72763         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
72764         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
72765         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
72766         or for string.h.
72767         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
72768         stdlib.h.
72769         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
72770         C headers.
72771         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
72772         string.h.
72773         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
72774         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
72775         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
72776         or for string.h.
72777         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
72778         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
72779         C headers.
72780         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
72781         memcpy.
72782         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
72783         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
72784         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
72785         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
72786         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
72787         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
72788         string.h, free.
72789         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
72790         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
72791         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
72792         C headers, or for string.h.
72793         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
72794         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
72795         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
72796         headers, memory.h, stdlib.h, string.h, strings.h.
72797         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
72798         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
72799         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
72800         strchr.
72801         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
72802         headers, memory.h, string.h.
72803         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
72804         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
72805         free.
72806         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
72807         headers.
72808         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
72809         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
72810         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
72811         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
72812         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
72813
72814 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72815
72816         More K&R removal.
72817
72818         * lib/acosl.c (main): Use a prototype.
72819         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
72820         tanl.c: Likewise.
72821
72822         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
72823
72824         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
72825         (getopt, etopt_long, getopt_long_only, _getopt_internal)
72826         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
72827         with a prototype.
72828         * lib/getopt.c (const): Remove macro.
72829         Include <string.h> unconditionally.
72830         (my_index): Remove; all uses changed to strchr.
72831         (strlen): Remove decl.
72832         (exchange): Remove forward decl; no longer needed.
72833         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
72834         Define with prototype.
72835         * lib/getopt1.c (const): Remove macro.
72836         (getopt_long, getopt_long_only, main): Define with prototype.
72837
72838         * lib/getugroups.c: Include <string.h> unconditionally.
72839
72840         * lib/getusershell.c: Include <stdlib.h> unconditionally.
72841         (getusershell, setusershell, endusershell, readname, main):
72842         Define with prototypes.
72843
72844         * lib/group-member.c: Include group-member.h first.
72845         Include <stdlib.h> unconditionally.
72846
72847         * lib/hard-locale.c: Include hard-locale.h first.
72848         Include <stdlib.h>, <string.h> unconditionally.
72849
72850         * lib/hash.c (free, malloc): Remove decls.
72851         Include <stdlib.h> unconditionally.
72852
72853         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
72854         (getenv): Do not declare.
72855
72856         * lib/idcache.c: Include <string.h> unconditionally.
72857
72858         * lib/long-options.c: Include long-options.h first, to test interface.
72859         Include <stdlib.h> unconditionally.
72860
72861         * lib/makepath.c: Include makepath.h first, to test interface.
72862         Include <stdlib.h> and <string.h> unconditionally.
72863
72864         * lib/linebuffer.c: Include <stdlib.h>.
72865         (free): Remove decl.
72866
72867         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
72868         stddef.h. rpl_malloc returns void *, not char *.
72869         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
72870         prototype.
72871
72872         * lib/md5.h: Include <limits.h> unconditionally.
72873         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
72874         (__P): Remove; all uses removed.
72875         * lib/md5.c: Include "md5.h" first.
72876         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
72877         md5_buffer, md5_process_bytes, md5_process_block):
72878         Define with prototypes.
72879         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
72880         * lib/sha.c: Include "sha.h" first.
72881         Include <stdlib.h>, <string.h> unconditionally.
72882
72883         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
72884         * lib/memcmp.c (__ptr_t): Likewise.
72885         * lib/memrchr.c (__ptr_t): Likewise.
72886         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
72887         Include <string.h> unconditionally.
72888         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
72889         * lib/memchr.c: Include <stdlib.h> unconditionally.
72890         * lib/memchr.c (LONG_MAX): Remove.
72891         * lib/memrchr.c (LONG_MAX): Likewise.
72892         * lib/memchr.c (__memchr): Define via a prototype.
72893         * lib/memrchr.c (__memrchr): Likewise.
72894         * lib/memcmp.c (__P): Remove, and remove all uses.
72895         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
72896         Remove forward decls; no longer needed.
72897         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
72898         Use types required by C89 in prototype.
72899
72900         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
72901         * lib/savedir.c: Likewise.
72902         * lib/mkdir.c (free): Remove decl.
72903         * lib/rmdir.c (rmdir): Define with a prototype.
72904         * lib/savedir.c: Include savedir.h first, to test interface.
72905
72906         * lib/mktime.c (STDC_HEADERS): Remove.
72907         Include <stdlib.h>, <string.h> unconditionally.
72908
72909         * lib/modechange.c: Include <stdlib.h> unconditionally.
72910         (malloc): Remove decl.
72911
72912         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
72913         (free): Remove decl.
72914
72915         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
72916         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
72917         (This type really should be intptr_t, but that's a C99ism.)
72918         (_obstack_memcpy): Remove: all uses changed to memcpy.
72919         Include <string.h> unconditionally.
72920         (struct obstack): Assume __STDC__ for types of members
72921         chunkfun, freefun, extra_arg.
72922         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
72923         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
72924         obstack_begin, obstack_specify_allocation,
72925         obstack_specify_allocation_with_arg, obstack_chunkfun,
72926         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
72927         Remove unprototyped decls and the macros that use them.
72928         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
72929         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
72930         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
72931         (defined __STDC__ && __STDC__)]:
72932         Remove nonprototyped code.
72933         Include <stdlib.h> unconditionally.
72934         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
72935         _obstack_allocated_p, _obstack_free, obstack_free,
72936         _obstack_memory_used, print_and_abort):
72937         Define using prototypes.
72938         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
72939         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
72940         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
72941         obstack_next_free, obstack_object_size, obstack_room) [0]:
72942         Remove unused, unprototyped code.
72943
72944         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
72945
72946         * lib/physmem.c (physmem_total, physmem_available, main): Define
72947         with prototypes.
72948
72949         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
72950         (main): Define with a prototype.
72951
72952         * lib/posixver.c (getenv): Remove decl.
72953
72954         * lib/putenv.c (malloc): Returns void *, not char *.
72955         Include <string.h> unconditionally.
72956         (strchr, memcpy, NULL): Do not define.
72957
72958         * lib/readtokens.c: Include readtokens.h first, to test interface.
72959         Include <stdlib.h>, <string.h> unconditionally.
72960         (init_tokenbuffer): Define with a prototype.
72961
72962         * lib/regex.c (PARAMS): Remove.  All uses removed.
72963         All uses of _RE_ARGS removed, too.
72964         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72965         unconditionally.
72966         (bzero): Assume memset exists.
72967         (memcmp, memcpy, NULL): Remove.
72968         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
72969         char, or assignments to local vars of type signed char.
72970         (init_syntax_once, PREFIX(extract_number_and_incr),
72971         PREFIX(print_partial_compiled_pattern),
72972         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
72973         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
72974         PREFIX(regex_grow_registers), PREFIX(regex_compile),
72975         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
72976         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
72977         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
72978         wcs_compile_range, byte_compile_range, truncate_wchar,
72979         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
72980         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
72981         count_mbs_length, wcs_re_match_2_internal,
72982         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72983         PREFIX(alt_match_null_string_p),
72984         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72985         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72986         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72987         now-unnecessary declaration, if any.
72988         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72989         regcomp, regexec):
72990         Remove now-unnecessary casts among pointer types.
72991         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72992
72993         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72994         (free): Remove decl.
72995
72996         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72997
72998         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72999         (free): Remove decl.
73000
73001         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73002         * lib/xgetcwd.c: Likewise.
73003
73004         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73005         (free): Remove decl.
73006
73007         * lib/strchrnul.c (strchrnul): Define with a prototype.
73008         Fix bug: c_in was not converted to char before searching.
73009
73010         The following changes are not K&R related:
73011
73012         * lib/group-member.h: Include <sys/types.h>, so that this file is
73013         self-contained.
73014         * lib/makepath.h: Likewise.
73015
73016         * lib/getusershell.c (readname, default_index, line_size, readname):
73017         Use size_t, not int, for sizes.
73018         (readname): If the size overflows, report an error instead of
73019         looping forever.
73020
73021 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73022
73023         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73024         libc.
73025
73026 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73027
73028         * README: New section: portability guidelines.
73029
73030 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73031
73032         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73033         C89 spec.
73034
73035 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73036
73037         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73038
73039 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73040
73041         Assume C89 or better; remove K&R cruft.
73042         A few of these changes were first proposed by Derek Robert Price
73043         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73044
73045         * lib/addext.c: Include <string.h> unconditionally.
73046         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73047         Don't declare getenv or malloc.
73048
73049         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73050         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73051         (NULL): Remove.
73052         (find_stack_direction, alloca): Use prototypes.
73053
73054         * lib/atexit.c (atexit): Define using a prototype.
73055
73056         * lib/basename.c, dirname.c, stripslash.c:
73057         Include <string.h> unconditionally.
73058
73059         * lib/bcopy.c: Include <stddef.h>.
73060         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73061
73062         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73063
73064         * lib/error.h (error, error_at_line, error_print_progname)
73065         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73066         * lib/error.c: Include error.h first, to check interface.
73067         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73068         (VA_START): Remove; all uses changeed to va_start.
73069         (exit, strerror): Remove decls.
73070         (error_print_progname): Prototype uncondionally.
73071         Don't include <errno.h>; no longer needed.
73072         (private_strerror): Remove.
73073         (error_tail): Always define.
73074         (error, error_at_line): Assume C89 or better; always use prototypes.
73075         * lib/fatal.c: Include "fatal.h" first, to test interface.
73076         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73077         (VA_START): Remove; all uses changed to va_start.
73078         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73079         this case.
73080         (exit): Remove decl.
73081         (fatal): Prototype unconditionally.  Assume va_start works.
73082         Abort at end, to pacify gcc.
73083
73084         * lib/euidaccess.c (main): Define with a prototype.
73085
73086         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73087
73088         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73089
73090         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73091         prototypes.
73092         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73093         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73094         (getenv): Remove decl.
73095         (fnmatch): Define using a prototype.
73096         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73097         (FCT): Define using a prototype.
73098
73099         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73100
73101         * lib/gethostname.c: Include <stddef.h>.
73102         (gethostname): Define with prototype.  Length is size_t, not int.
73103
73104 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73105
73106         Assume C89 or better; remove K&R cruft.
73107         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73108         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73109         string.h, getenv, malloc.
73110         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73111         headers.
73112         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73113         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73114         do not check for strerror.
73115         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73116         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73117         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73118         do not check for doprnt or vprintf.
73119         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73120         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73121
73122 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73123
73124         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73125         getversion.c should have been removed then, but was accidentally
73126         preserved.
73127
73128         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73129         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73130
73131 2003-09-08  Karl Berry  <karl@gnu.org>
73132
73133         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73134                 config, forget about prep.
73135
73136         * config/depcomp, missing: update from automake.
73137
73138 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73139
73140         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73141         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73142
73143 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73144
73145         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73146         copy_tm_result.  Bug reported by Simon Josefsson in
73147         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73148
73149 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73150
73151         * m4/time_r.m4: New file.
73152         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73153         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73154         is. Check for timegm declaration.
73155         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73156         Do not check for gmtime_r.
73157         Replace mktime if __mktime_internal does not exist and if mktime
73158         hasn't been replaced already.
73159
73160 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73161
73162         * lib/time_r.c, lib/time_r.h: New files.
73163
73164         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73165         __localtime_r.
73166         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73167         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73168
73169         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73170         __gmtime_r.
73171         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73172         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73173         Include <time_r.h>.
73174
73175         * lib/timegm.c: Switch to glibc implementation, with the following
73176         changes:
73177         [defined HAVE_CONFIG_H]: Include <config.h>.
73178         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73179         (__mktime_internal) [!defined _LIBC]: New decl.
73180         (__gmtime_r) [!defined _LIBC]: New macro and function.
73181         (timegm): Use a prototype, since gnulib assumes C89.
73182         Do not bother declaring tmp to be const, as it's not really usefu.
73183         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73184         (timegm): Declare only if HAVE_DECL_TIMEGM.
73185
73186 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73187
73188         * MODULES.html.sh (func_all_modules): Add time_r.
73189         * modules/time_r: New file.
73190         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73191         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73192
73193 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73194
73195         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73196         Bug reported by Lute Kamstra in
73197         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73198
73199         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73200         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73201         course with correspondingly smaller numbers for tomorrow and
73202         yesterday.  From Tadayoshi Funaba.  Originally installed into
73203         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73204         coreutils merge?).
73205
73206 2003-08-31  Simon Josefsson  <jas@extundo.com>
73207
73208         * modules/timegm: New file.
73209         * MODULES.html.sh (func_all_modules): Add timegm.
73210
73211 2003-08-31  Simon Josefsson  <jas@extundo.com>
73212
73213         * m4/timegm.m4: New file.
73214
73215 2003-08-31  Simon Josefsson  <jas@extundo.com>
73216
73217         * lib/timegm.h: New file.
73218         * lib/timegm.c: New file.  Based on
73219         wget-1.8.2/src/http.c:mktime_from_utc.
73220
73221 2003-08-31  Karl Berry  <karl@gnu.org>
73222
73223         * lib/argp.h: update from libc.
73224
73225 2003-08-28  Bruno Haible  <bruno@clisp.org>
73226
73227         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73228         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73229         followed by '#define fnmatch fnmatch_posix' gives an error.
73230
73231 2003-08-28  Bruno Haible  <bruno@clisp.org>
73232
73233         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73234         warning on QNX, which defines O_BINARY to 000000.
73235
73236 2003-08-27  Jim Meyering  <jim@meyering.net>
73237
73238         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73239         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73240         would fail after 32.  Reported by Danny Levinson.  Details here:
73241         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73242
73243 2003-08-24  Bruno Haible  <bruno@clisp.org>
73244
73245         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73246         MSVC7 <stdio.h> is included later.
73247
73248 2003-08-22  Simon Josefsson  <jas@extundo.com>
73249
73250         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73251
73252 2003-08-20  Karl Berry  <karl@gnu.org>
73253
73254         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73255
73256 2003-08-20  Bruno Haible  <bruno@clisp.org>
73257
73258         * modules/progname: New file.
73259         * MODULES.html.sh (func_all_modules): Add progname.
73260
73261 2003-08-20  Bruno Haible  <bruno@clisp.org>
73262
73263         * lib/progname.h: New file, from GNU gettext.
73264         * lib/progname.c: New file, from GNU gettext.
73265         * lib/progreloc.c: New file, from GNU gettext.
73266
73267 2003-08-19  Jim Meyering  <jim@meyering.net>
73268
73269         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73270         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73271
73272 2003-08-19  Bruno Haible  <bruno@clisp.org>
73273
73274         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73275         more.
73276
73277 2003-08-19  Bruno Haible  <bruno@clisp.org>
73278
73279         * lib/xstrdup.c: Assume <string.h> exists.
73280
73281 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73282
73283         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73284         in makefile rules.
73285
73286 2003-08-18  Jim Meyering  <jim@meyering.net>
73287
73288         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73289         * m4/lib-ld.m4: Likewise.
73290
73291 2003-08-18  Jim Meyering  <jim@meyering.net>
73292
73293         * lib/setenv.h: Indent nested cpp directive.
73294         * lib/vasnprintf.c: Remove trailing blanks.
73295
73296 2003-08-17  Simon Josefsson  <jas@extundo.com>
73297
73298         * modules/xstrndup: New file.
73299         * MODULES.html.sh (func_all_modules): Add xstrndup.
73300
73301 2003-08-17  Simon Josefsson  <jas@extundo.com>
73302
73303         * modules/argp: Fix autoconf macro name. Add more dependencies.
73304
73305 2003-08-17  Simon Josefsson  <jas@extundo.com>
73306
73307         * m4/xstrndup.m4: New file.
73308
73309 2003-08-17  Simon Josefsson  <jas@extundo.com>
73310
73311         * m4/argp.m4: New file.
73312
73313 2003-08-17  Simon Josefsson  <jas@extundo.com>
73314             Bruno Haible  <bruno@clisp.org>
73315
73316         * lib/xstrndup.h: New file.
73317         * lib/xstrndup.c: New file.
73318
73319 2003-08-17  Bruno Haible  <bruno@clisp.org>
73320
73321         * modules/strndup (Files, Include): Add lib/strndup.h.
73322
73323 2003-08-17  Bruno Haible  <bruno@clisp.org>
73324
73325         * modules/euidaccess (Files): Add lib/euidaccess.h.
73326
73327 2003-08-17  Bruno Haible  <bruno@clisp.org>
73328
73329         * lib/strndup.h: New file.
73330
73331 2003-08-17  Bruno Haible  <bruno@clisp.org>
73332
73333         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73334         like AC_GNU_SOURCE.
73335         * modules/extensions (configure.ac): Comment out the invocation of
73336         gl_USE_SYSTEM_EXTENSIONS.
73337
73338 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73339
73340         Merges from coreutils, etc.
73341         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73342         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73343         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73344         fixing a typo.
73345         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73346         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73347
73348 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73349
73350         Document merge from coreutils.
73351         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73352         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73353         * modules/utime: Add m4/utimes-null.m4.
73354
73355 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73356
73357         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73358         space, undoing this 2003-08-12 change:
73359         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73360
73361 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73362
73363         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73364         strtoul.c from libc, undoing this 2003-08-12 change:
73365         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73366
73367 2003-08-16  Jim Meyering  <jim@meyering.net>
73368
73369         Merges from coreutils.
73370         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73371         prefix.  Adjust cache variables similarly.  Create 500 rather than
73372         just 300 files, to exercise bug on Darwin6.5, too.
73373         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73374         $missing_dir.
73375         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73376         AM_SYS_POSIX_TERMIOS.
73377         Reported by mkc@mathdogs.com.
73378         Also change use of $am_cv_sys_posix_termios
73379         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73380         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73381         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73382         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73383         in /proc/mounts until it finds one with matching device number.  This
73384         is unnecessary when the FILE argument *is* a mount point.  No stat call
73385         is necessary in that case.  So, disable the statvfs-testing code on
73386         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73387         as RedHat bug# 84846.
73388         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73389         to 1MB, so as not to render systems with no stack size limit (e.g.,
73390         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73391         Include <unistd.h>.  On some systems,
73392         it is required for the definition of _SC_PAGESIZE.
73393
73394 2003-08-16  Jim Meyering  <jim@meyering.net>
73395
73396         Merge from coreutils.
73397         * lib/xstrtoimax.c: #else #if -> #elif.
73398         * lib/xstrtoumax.c: Likewise.
73399
73400 2003-08-16  Jim Meyering  <jim@meyering.net>
73401
73402         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73403         * m4/utimes.m4: Removed.
73404         * m4/utimes-null.m4: Renamed from utimes.m4.
73405
73406         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73407         to 1MB, so as not to render systems with no stack size limit (e.g.,
73408         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73409         Include <unistd.h>.  On some systems,
73410         it is required for the definition of _SC_PAGESIZE.
73411
73412 2003-08-16  Jim Meyering  <jim@meyering.net>
73413         and Paul Eggert  <eggert@cs.ucla.edu>
73414
73415         Merges from coreutils, etc.
73416
73417         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73418         using the latest version from cvs.  This avoids problems with #line
73419         directives using a vendor (Sun) compiler.
73420         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73421         Don't set GETGROUPS_LIB here; now it's
73422         done via getgroups.m4's wrapper function.
73423         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73424         rather than just in sh-util/configure.in, so that the
73425         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73426         same.
73427         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73428         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73429         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73430         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73431         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73432         Remove code that is now done by the newly-required macros.
73433         Append $(EXEEXT) to DF_PROG.
73434         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73435         Do not invoke or require the following here,
73436         since prereq.m4 or some gnulib .m4 now does this for us:
73437         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73438         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73439         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73440         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73441         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73442         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73443         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73444         AC_FUNC_OBSTACK.
73445         Do not replace the following functions, as this is now the job
73446         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73447         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73448         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73449         atexit getpass, strdup, getpagesize.
73450         Replace 'raise'.
73451         Do not check for the following functions, as this is now the job
73452         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73453         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73454         setregid.
73455         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73456         Check for sys/sysctl.h.
73457         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73458         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73459         of checking for ssize_t ourselves.
73460
73461         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73462         Require every macro that gnulib/modules/* suggests for us.
73463         (jm_PREREQ_ADDEXT): New macro.
73464         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
73465         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
73466
73467         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
73468         (gl_PHYSMEM): Use it.
73469         Also check for `table' function.
73470         Check for new headers and functions.
73471         Add check for sys/sysmp.h.
73472         With suggestions from Kaveh Ghazi.
73473         Ignore headers that are present but cannot be compiled.  This
73474         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
73475         C 5.4.
73476
73477 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73478
73479         Document merge from coreutils.
73480         * modules/userspec: Depend on posixver.
73481         * modules/strftime: Depend on tzset.
73482
73483 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73484
73485         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
73486         rather than tab, after '#' in shell-script copyright notices.
73487         Suggested by Bruno Haible.
73488
73489 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73490
73491         * config/srclist-update: Use three spaces, rather than tab, after '#'
73492         in shell-script copyright notices.  Suggested by Bruno Haible.
73493         Remove unnecessary parenthesization in regular expression.
73494
73495 2003-08-15  Jim Meyering  <jim@meyering.net>
73496
73497         Merge from coreutils.
73498         * lib/xgethostname.c: Include <stdlib.h>.
73499         (xghostname): Don't exit for anything other than memory-related
73500         failure; just return NULL.
73501         * lib/userspec.c: Include "posixver.h".
73502         (parse_user_spec): Accept `.' as a separator only
73503         in pre-POSIX-200112 mode.
73504         * lib/strtoimax.c: Use #elif rather than #else #if.
73505         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
73506         Remove function, now that we can rely on a working tzset function.
73507         [!_LIBC]: Ensure that the required autoconf test has been run.
73508         [!defined _NL_CURRENT && HAVE_STRFTIME]:
73509         Use underlying_strftime for %r.
73510         * lib/sha.c: Merge in some clean-up and optimization changes from
73511         glibc.
73512         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
73513         Ensure that it is a multiple of 64.
73514         Rearrange loop exit tests so as to avoid performing an
73515         additional fread after encountering an error or EOF.
73516         * lib/realloc.c: Update copyright date.
73517
73518 2003-08-15  Jim Meyering  <jim@meyering.net>
73519         and Paul Eggert  <eggert@twinsun.com>
73520
73521         Merge from coreutils.
73522         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
73523         member but strut utmpx does not.  Needed for AIX 4.3.3.
73524         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
73525
73526 2003-08-15  Jim Meyering  <jim@meyering.net>
73527         and Paul Eggert  <eggert@cs.ucla.edu>
73528
73529         Merges from coreutils, etc.
73530         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
73531         Require gl_FUNC_TZSET_CLOBBER.
73532         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
73533         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
73534         members.
73535
73536 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73537
73538         Help the merge from coreutils.
73539         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
73540         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
73541         * m4/tzset.m4: Use it too.
73542
73543 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73544
73545         * modules/tzset: New file.
73546
73547 2003-08-14  Jim Meyering  <jim@meyering.net>
73548
73549         Merges from coreutils.
73550         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
73551         variable names, rather than @FNMATCH_H@.
73552         * modules/alloca: Likewise for $(ALLOCA_H).
73553
73554         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
73555         the three copies of the literal target, `fnmatch.h'.
73556         * modules/alloca (alloca.h): Likewise.
73557
73558 2003-08-14  Jim Meyering  <jim@meyering.net>
73559
73560         Merge from coreutils.
73561         * m4/tzset.m4: New file.
73562         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
73563         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
73564         otherwise, AIX 5.1 systems would end up using the latter.
73565         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
73566         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
73567         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
73568         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
73569
73570 2003-08-14  Jim Meyering  <jim@meyering.net>
73571
73572         Merge from coreutils.
73573         * lib/obstack.h: Whitespace changes.
73574         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
73575         and xcalloc return values.
73576         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
73577         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
73578         hang on OSF/1 5.1 for DIR on both local and remote file systems.
73579         Reported by (and fix confirmed by) Nelson H. F. Beebe.
73580         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73581         error from mntctl.
73582         Use mntctl's return value to drive the entry-processing loop, since
73583         we can't rely on the value of the vmt_length member in the last
73584         entry.  On some systems doing so could result in exhausting
73585         virtual memory.  Based in part on a patch from Mike Jetzer.
73586
73587 2003-08-14  Jim Meyering  <jim@meyering.net>
73588         and Paul Eggert  <eggert@twinsun.com>
73589
73590         Merges from coreutils, plus other fixes.
73591         * lib/physmem.c: Merge in portability changes from gcc/libiberty
73592         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
73593         for credits and details.  Thanks to Kaveh Ghazi for helping
73594         to keep these files in sync.
73595         (ARRAY_SIZE): Define it.
73596         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
73597         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
73598         (memcasecmp): Don't assume size_t fits in unsigned int.
73599         Remove casts and duplicate code.
73600         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
73601         (memcpy): Remove definition.
73602         Merge in some clean-up and optimization changes from glibc.
73603         [BLOCKSIZE]: Move definition to top of file.
73604         Ensure that it is a multiple of 64.
73605         Rearrange loop exit tests so as to avoid performing an
73606         additional fread after encountering an error or EOF.
73607         * lib/md5.h (md5_uintptr): Define.
73608         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
73609         return to the initial working directory.  Preserve errno
73610         for caller.
73611         * lib/idcache.c: Include "xalloc.h".
73612         (xmalloc, xrealloc): Remove decls.
73613         (getuser): Remove casts no longer required in C89.
73614         * lib/human.c: Include stdio.h, for sprintf.
73615         * lib/group-member.c: Include "xalloc.h".
73616         (xmalloc, xrealloc): Remove decls.
73617         (get_group_info): Remove casts no longer required in C89.
73618         * lib/getusershell.c (readname): Remove casts no longer required in
73619         C89.
73620         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
73621         * lib/getline.c: Whitespace fix, from coreutils.
73622
73623 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73624
73625         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
73626         Check for isascii.
73627
73628         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73629         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73630         Undo previous (whitespace-only) change.
73631
73632 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73633
73634         * lib/exclude.c: Include <ctype.h>
73635         (IN_CTYPE_DOMAIN): New macro.
73636         (is_space): New fn.
73637         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73638         and empty lines.
73639
73640         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73641         Undo previous (whitespace-only) change.
73642
73643 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73644
73645         * config/srclist-update: Change update back to the old behavior,
73646         leaving whitespace alone.  Use one 'sed' command rather than a
73647         pipeline.
73648         (fixlicense): Now a variable, not a function.
73649         (remove_trailing_blanks): Remove.
73650         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73651         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73652         Undo previous (whitespace-only) change.
73653
73654 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73655
73656         Merge from coreutils.
73657         * modules/euidaccess: Add lib_SOURCES, include for new
73658         file euidaccess.h
73659
73660 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73661
73662         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73663         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73664         Normalize leading white space and remove trailing white space.
73665
73666         Merge from coreutils
73667         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73668
73669         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73670         0.12.1.  These files are now being upgraded automatically by
73671         ../config/srclist-update.
73672
73673 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73674
73675         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73676         Normalize leading white space and remove trailing white space.
73677         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73678         notice, as per ../config/srclist-update.
73679
73680         Merge from coreutils.
73681         * lib/euidaccess.h: New file.
73682         * lib/euidaccess.c: Include it.
73683         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73684         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73685         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73686
73687 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73688
73689         * config/srclist-update: Add copyright notice.
73690         (remove_id_lines, remove_trailing_blanks): New constants.
73691         (fixfile): Use them to normalize spacing a bit in copied files.
73692         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73693         Normalize leading white space and remove trailing white space.
73694
73695         * config/texinfo.tex: Sync with texinfo.
73696
73697         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73698         strtoul.c from libc, to merge coreutils whitespace changes.
73699
73700         * config/srclist.txt: Get the following m4 files from gettext:
73701         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73702         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73703         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73704         wint_t.m4.
73705
73706 2003-08-12  Karl Berry  <karl@gnu.org>
73707
73708         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73709         been made.
73710
73711 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73712
73713         * modules/gnu-source, m4/gnu-source.m4:
73714         Remove; we're assuming Autoconf 2.54 or later now.
73715         Suggested by Bruno Haible.
73716         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73717
73718 2003-08-11  Bruno Haible  <bruno@clisp.org>
73719
73720         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73721
73722 2003-08-11  Bruno Haible  <bruno@clisp.org>
73723
73724         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73725         (vasnprintf): Use it instead of wcslen.
73726
73727 2003-08-11  Bruno Haible  <bruno@clisp.org>
73728
73729         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73730         value to ensure that _Bool promotes to int. Use #define for _Bool when
73731         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73732
73733 2003-08-10  Karl Berry  <karl@gnu.org>
73734
73735         * lib/regex.h: update from libc (whitespace fix).
73736
73737 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73738
73739         Merge some files from coreutils.  These changes were
73740         originally made by Jim Meyering.
73741         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
73742         many older Unixes require this.
73743         * lib/alloca.c (alloca): Remove cast to argument of free;
73744         no longer needed in C89.
73745         * lib/alloca_.h, regex.h: Fix white space to match
73746         what GNU indent does.
73747
73748 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73749
73750         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
73751         apparently Emacs's Unicode mode got confused before my 2003-08-05
73752         checkin.
73753
73754 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73755
73756         * m4/extensions.m4: New file.
73757         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
73758         Require gl_USE_SYSTEM_EXTENSIONS.
73759         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
73760         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
73761
73762 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73763
73764         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
73765         * modules/extensions, modules/gnu-source: New files.
73766         * modules/timespec, modules/unlocked-io: Depend on extensions.
73767
73768 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73769
73770         * modules/restrict: New file.
73771         * MODULES.html.sh (func_all_modules): Add restrict.
73772         * modules/regex: Depend on restrict.
73773
73774 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73775
73776         * m4/restrict.m4: New file.
73777         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
73778
73779 2003-08-07  Bruno Haible  <bruno@clisp.org>
73780
73781         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
73782         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
73783
73784 2003-08-07  Bruno Haible  <bruno@clisp.org>
73785
73786         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
73787         makes the module 'getndelim2' compatible with the module 'getline'.
73788
73789 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73790
73791         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
73792         byte with "\201" to avoid glitches when editing that source file
73793         with multi-gnome-terminal.
73794
73795 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73796
73797         * lib/bumpalloc.h: Remove.
73798
73799 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73800
73801         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
73802         * modules/bumpalloc: Remove.
73803
73804 2003-08-04  Paul Eggert  <eggert@twinsun.com>
73805
73806         * lib/getloadavg.c: Change copyright notice and spacing to conform to
73807         GNU coding style.
73808
73809         Merge from coreutils.
73810         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
73811         1. From glibc.
73812         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
73813         from Karl Berry, implemented by Jim Meyering.
73814         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
73815         from Dmitry V. Levin.
73816         Remove anachronistic cast of xrealloc.
73817         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
73818         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
73819         type. Otherwise, it wouldn't compile with at least /bin/cc on
73820         ymp-cray-unicos9.0.2.X.
73821         Combine two mostly-identical uses of alloca into one.
73822         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
73823
73824 2003-08-04  Dave Love  <d.love@dl.ac.uk>
73825
73826         [From Emacs.]
73827
73828         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
73829         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
73830         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
73831         obsolete NLIST_NAME_UNION.
73832         [__GNU__]: Undef BSD and FSCALE.
73833         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
73834
73835 2003-08-03  Paul Eggert  <eggert@twinsun.com>
73836
73837         * lib/stdbool_.h (_Bool): Make it signed char, instead of
73838         an enum type, so that it's guaranteed to promote to int.  See:
73839         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
73840
73841 2003-08-03  Karl Berry  <karl@gnu.org>
73842
73843         * config/depcomp: update from automake.
73844
73845 2003-07-31  Paul Eggert  <eggert@twinsun.com>
73846
73847         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
73848         (strerror): Don't assume that a printable int fits in 14 bytes.
73849
73850 2003-07-31  Bruno Haible  <bruno@clisp.org>
73851
73852         * modules/getpass-gnu: New file.
73853         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
73854
73855 2003-07-31  Bruno Haible  <bruno@clisp.org>
73856
73857         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
73858
73859 2003-07-24  Karl Berry  <karl@gnu.org>
73860
73861         * config/missing: update from automake.
73862
73863 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
73864             Bruno Haible  <bruno@clisp.org>
73865
73866         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
73867         * lib/getline.c (getline, getdelim): Likewise.
73868         Remove _GNU_SOURCE define; now it's defined in config.h through
73869         m4/getline.m4.
73870
73871 2003-07-23  Karl Berry  <karl@gnu.org>
73872
73873         * config/config.sub: update from prep.
73874
73875 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73876
73877         * modules/xalloc (Depends-on): Add exitfail.
73878         * modules/xmemcoll: Likewise.
73879
73880 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73881
73882         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
73883         over-parenthesization in macros.
73884
73885         Sync with coreutils.
73886
73887         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
73888         required by C99.
73889
73890         Use `exit_failure' for xalloc and xmemcoll instead of their own
73891         private exit-failure variables.
73892         * lib/xalloc.h (xalloc_exit_failure): Remove.
73893         * lib/xmalloc.c: Likewise.  Include exitfail.h.
73894         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
73895         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
73896         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
73897         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
73898
73899 2003-07-20  Jim Meyering  <jim@meyering.net>
73900
73901         * modules/closeout (Depends-on): Add exitfail.
73902         Suggestion from Bruno Haible.
73903
73904 2003-07-19  Karl Berry  <karl@gnu.org>
73905
73906         * config/config.sub: update from prep.
73907
73908 2003-07-18  Paul Eggert  <eggert@twinsun.com>
73909
73910         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
73911         Remove.
73912         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
73913         to test that it can stand by itself.  Include "exitfail.h".
73914         Clients should set exit_failure instead.
73915         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
73916
73917 2003-07-18  Bruno Haible  <bruno@clisp.org>
73918
73919         * modules/getndelim2: New file.
73920         * modules/getline: Share files with module getndelim2.
73921         * modules/getnline: Depend on getndelim2 instead of sharing files with
73922         it. Add getnline.c to lib_SOURCES.
73923         * MODULES.html.sh (func_all_modules): Add getndelim2.
73924
73925 2003-07-18  Bruno Haible  <bruno@clisp.org>
73926
73927         * m4/getndelim2.m4: New file.
73928         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
73929         invoke gl_PREREQ_GETNDELIM2.
73930         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
73931         gl_PREREQ_GETNDELIM2.
73932         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
73933         gl_GETNDELIM2.
73934
73935 2003-07-18  Bruno Haible  <bruno@clisp.org>
73936
73937         * lib/getndelim2.h: New file.
73938         * lib/getndelim2.c: Make into a module of its own. Include config.h,
73939         getndelim2.h.
73940         (getndelim2): Make non-static. Change return type to ssize_t.
73941         * lib/getline.h: Change argument names.
73942         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
73943         * lib/getnline.c: Include getndelim2.h.
73944
73945 2003-07-18  Andreas Schwab  <schwab@suse.de>
73946
73947         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
73948
73949 2003-07-17  Karl Berry  <karl@gnu.org>
73950
73951         * config/config.sub: update from prep.
73952
73953 2003-07-17  Bruno Haible  <bruno@clisp.org>
73954
73955         * modules/getnline: New file.
73956         * modules/getline: Add lib/getndelim2.c to source file list.
73957         * MODULES.html.sh (func_all_modules): Add getnline.
73958
73959 2003-07-17  Bruno Haible  <bruno@clisp.org>
73960
73961         * m4/getnline.m4: New file.
73962
73963 2003-07-17  Bruno Haible  <bruno@clisp.org>
73964
73965         * m4/Makefile.am.in: Remove file.
73966         * m4/Makefile.am: Remove file.
73967         * m4/Makefile.in: Remove file.
73968
73969 2003-07-17  Bruno Haible  <bruno@clisp.org>
73970
73971         * lib/getnline.h: New file.
73972         * lib/getnline.c: New file.
73973         * lib/getndelim2.c: New file, extracted from getline.c.
73974         (getndelim2): Renamed from getdelim2, with added nmax argument.
73975         * lib/getline.c: Include getndelim2.c.
73976         (getdelim2): Moved out to getndelim2.c.
73977         (getline, getdelim): Update.
73978
73979 2003-07-17  Bruno Haible  <bruno@clisp.org>
73980
73981         * lib/Makefile.am: Remove file.
73982         * lib/Makefile.in: Remove file.
73983
73984 2003-07-17  Bruno Haible  <bruno@clisp.org>
73985
73986         * configure.in: Remove file.
73987         * Makefile.in: Remove file.
73988
73989 2003-07-17  Bruno Haible  <bruno@clisp.org>
73990
73991         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73992
73993 2003-07-16  Karl Berry  <karl@gnu.org>
73994
73995         * config/srclist-update: was running fixlicense twice, which caused
73996                 texinfo.tex to be nullified for some reason.  Simplify,
73997                 $gplsrc is no longer needed as far as I can see?
73998
73999 2003-07-16  Jim Meyering  <jim@meyering.net>
74000
74001         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74002
74003 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74004
74005         * config/srclist.txt: Get the following files from gettext-runtime/intl
74006         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74007         ref-del.sin.  From Bruno Haible.
74008         * config/srclist-update (fixfile): Change grep pattern again, since the
74009         previous fix didn't work (there was another trailing $).  Use
74010         '[$]' to escape the $s.
74011
74012 2003-07-15  Karl Berry  <karl@gnu.org>
74013
74014         * lib/vasnprintf.c: update from gettext.
74015
74016 2003-07-15  Karl Berry  <karl@gnu.org>
74017
74018         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74019         gets expanded when surrounded by '$'.
74020
74021 2003-07-15  Jim Meyering  <jim@meyering.net>
74022
74023         * modules/save-cwd: Don't depend on error.  From Derek Price.
74024
74025 2003-07-15  Jim Meyering  <jim@meyering.net>
74026
74027         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74028
74029 2003-07-14  Simon Josefsson  <jas@extundo.com>
74030
74031         * modules/mempcpy: New file.
74032         * MODULES.html.sh (func_all_modules): Add mempcpy.
74033
74034 2003-07-14  Simon Josefsson  <jas@extundo.com>
74035
74036         * m4/mempcpy.m4: New file.
74037
74038 2003-07-14  Simon Josefsson  <jas@extundo.com>
74039
74040         * lib/mempcpy.h: New file.
74041         * lib/mempcpy.c: New file.
74042
74043 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74044
74045         * modules/getdate, modules/posixtm: Depend on mktime.
74046
74047 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74048
74049         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74050         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74051         unicodeio.c, unicodeio.h, unlocked-io.h:
74052         Switch from LGPL to GPL.
74053
74054 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74055
74056         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74057         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74058         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74059         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74060         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74061         updated automatically by ../config/srclist-update.  This changes
74062         their license from LPGL to GPL.
74063
74064 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74065
74066         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74067         assumed to refer to the root of the most recent stable gettext version.
74068         * config/srclistvars.sh: Add defaults for eggert.
74069         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74070         Match "This program" as well as "The program".  This is needed
74071         for gettext.
74072
74073 2003-07-14  Jim Meyering  <jim@meyering.net>
74074
74075         Don't emit diagnostics.  Let callers do that.
74076         * lib/save-cwd.c: Don't include "error.h".
74077         (save_cwd): Don't call error.  Ensure that errno is valid
74078         when returning nonzero.
74079
74080         * lib/save-cwd.h (restore_cwd): Update prototype.
74081         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74082         Simplify.  Don't call error upon failure.  Let callers do that.
74083         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74084         when auditing is enabled.  But don't bother updating the #if.
74085
74086 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74087
74088         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74089         it breaks C++ compilation.
74090         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74091
74092 2003-07-10  Simon Josefsson  <jas@extundo.com>
74093
74094         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74095
74096 2003-07-10  Jim Meyering  <jim@meyering.net>
74097
74098         * m4/clock_time.m4: Remove trailing blank.
74099         * m4/intmax_t.m4: Likewise.
74100
74101 2003-07-10  Jim Meyering  <jim@meyering.net>
74102
74103         * lib/vasnprintf.c: Remove trailing blanks.
74104         Make cpp indentation consistent.
74105
74106 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74107
74108         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74109         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74110         Switch from LGPL to GPL.
74111
74112 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74113
74114         * config/srclist.txt: Sort sublists.  Add
74115         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74116         that differ from gnulib for one reason or another; we'd like this list
74117         to be smaller but for now let's document what we have.
74118
74119 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74120
74121         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74122         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74123         and sweeter "eval x=$x".
74124         * config/srclist.txt: Get lib/argp* from glibc.
74125
74126 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74127
74128         * lib/mktime.c: Fix some boundary cases and remove need for floating
74129         point.
74130
74131         Issue a compile-time diagnostic if time_t is floating point, or if
74132         two's complement arithmetic is not in effect, or if arithmetic
74133         right shift does not propagate the sign.  These assumptions were
74134         all in the original code but they weren't checked.
74135
74136         (TIME_T_MIDPOINT, verify): New macros.
74137         (__isleap): Remove; it has integer overflow problems.
74138         (leapyear): New function, without those problems.
74139         (ydhms_tm_diff): Remove; splitting into two parts.
74140         (ydhms_diff): New function, containing the arithmetic part of
74141         the old ydhms_tm_diff function.  Issue a compile-time
74142         diagnostic if we are not using C99 integer division.
74143         Avoid casts when possible.
74144         (guess_time_tm): New function, containing the checking part of
74145         the old ydhms_tm_diff function.  Return the new value, rather than
74146         the difference between it and the old.  Accept a new argument T
74147         so that *T specifies the old value.  Check for overflow in the result.
74148
74149         (__mktime_internal): Use a time_t offset, not a long int offset.
74150         This undoes the 2003-06-04 change, which is no longer needed now
74151         that we have better overflow checking.
74152         (localtime_offset): Likewise.
74153
74154         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74155         and long are 64-bit but int is only 32-bit.
74156         (ydhms_diff): Use long int to store year1 and yday1.
74157         Issue a compile-time diagnostic if long int is not wide enough.
74158
74159         (__mktime_internal): Use long int to store adjusted year and yday.
74160         Use plain C rather than preprocessor commands, if that doesn't
74161         affect efficiency.
74162         Check for overflow (and try to repair) after each probe
74163         rather than checking only at the very end.  This avoids some bugs
74164         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74165         does not equal GMT offset at maximum time).
74166         Use integer to check for overflow rather than floating point; this
74167         is more portable to non-IEEE hosts, and is a tad faster.
74168         When we detect that we are oscillating between two values,
74169         don't check whether tm_isdst has the requested value, since
74170         we already know the answer.  When tm_isdst has the wrong value,
74171         use a different heuristic to find the right one, based on the
74172         extreme values actually observed in practice in tz2003a,
74173         rather than the (overly optimistic) "previous 3 calendar quarters".
74174
74175         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74176         "T const" to accommodate glibc style.
74177         (check_result): Use less-confusing report format.  "long" -> "long int.
74178         (main): Likewise.
74179         Don't loop if the iteration overflows time_t.
74180         Allow a negative step in the iteration.
74181
74182 2003-07-06  Karl Berry  <karl@gnu.org>
74183
74184         * config/depcomp: update from automake.
74185         * config/config.sub: update from prep.
74186
74187 2003-07-03  Karl Berry  <karl@gnu.org>
74188
74189         * config/config.guess: update from prep.
74190
74191 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74192
74193         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74194         xreadlink.c now includes it unconditionally.
74195
74196 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74197
74198         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74199         having it depend on HAVE_SYS_TYPES_H.
74200
74201 2003-07-01  Bruno Haible  <bruno@clisp.org>
74202
74203         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74204         <sys/types.h> should be sufficient.
74205         Reported by Paul Eggert.
74206
74207 2003-06-26  Karl Berry  <karl@gnu.org>
74208
74209         * config/depcomp: update from automake.
74210
74211 2003-06-26  Bruno Haible  <bruno@clisp.org>
74212
74213         * modules/human: Depend on module stdbool.
74214
74215 2003-06-25  Bruno Haible  <bruno@clisp.org>
74216
74217         * modules/readlink: New file.
74218         * modules/xreadlink: Depend on it.
74219         * MODULES.html.sh (func_all_modules): Add readlink.
74220
74221 2003-06-25  Bruno Haible  <bruno@clisp.org>
74222
74223         * m4/readlink.m4: New file.
74224
74225 2003-06-25  Bruno Haible  <bruno@clisp.org>
74226
74227         * lib/readlink.c: New file.
74228
74229 2003-06-22  Karl Berry  <karl@gnu.org>
74230
74231         * config/srclist.txt: update mkinstalldirs from automake.
74232         * config/mkinstalldirs: update.
74233
74234 2003-06-22  Bruno Haible  <bruno@clisp.org>
74235
74236         Portability to mingw32.
74237         * m4/ssize_t.m4: New file, from GNU gettext.
74238         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74239         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74240
74241 2003-06-22  Bruno Haible  <bruno@clisp.org>
74242
74243         * modules/safe-read: Add m4/ssize_t.m4.
74244         * modules/xreadlink: Add m4/ssize_t.m4.
74245
74246 2003-06-20  Bruno Haible  <bruno@clisp.org>
74247
74248         Assume C89, so PARAMS isn't needed.
74249         * lib/unicodeio.h (PARAMS): Remove.
74250         * lib/unicodeio.c: Don't use PARAMS.
74251
74252 2003-06-18  Karl Berry  <karl@gnu.org>
74253
74254         * config/config.{guess,sub}: update from prep.
74255
74256 2003-06-18  Jim Meyering  <jim@meyering.net>
74257
74258         Merge changes from coreutils.
74259         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74260         Remove explicit declarations of xmalloc and realloc.
74261         Include xalloc.h.
74262         (read_utmp): Remove anachronistic cast of xmalloc.
74263
74264 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74265
74266         Assume C89, so PARAMS isn't needed.
74267         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74268         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74269         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74270         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74271         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74272         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74273         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74274         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74275         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74276         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74277         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74278         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74279         no longer needed. Anyway, config.h should always be included before any
74280         other file.
74281
74282 2003-06-11  Simon Josefsson  <jas@extundo.com>
74283
74284         * modules/sysexits: New file.
74285         * MODULES.html.sh (func_all_modules): Add sysexits.
74286
74287 2003-06-11  Simon Josefsson  <jas@extundo.com>
74288
74289         * lib/sysexit_.h: New file.
74290
74291 2003-06-11  Derek Price  <derek@ximbiot.com>
74292
74293         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74294         necessary.
74295
74296 2003-06-11  Bruno Haible  <bruno@clisp.org>
74297
74298         * m4/sysexits.m4: New file.
74299
74300 2003-06-10  Simon Josefsson  <jas@extundo.com>
74301
74302         * lib/argp.h: New file, from glibc.
74303         * lib/argp-ba.c: New file, from glibc.
74304         * lib/argp-eexst.c: New file, from glibc.
74305         * lib/argp-fmtstream.c: New file, from glibc.
74306         * lib/argp-fmtstream.h: New file, from glibc.
74307         * lib/argp-fs-xinl.c: New file, from glibc.
74308         * lib/argp-help.c: New file, from glibc.
74309         * lib/argp-namefrob.h: New file, from glibc.
74310         * lib/argp-parse.c: New file, from glibc.
74311         * lib/argp-pv.c: New file, from glibc.
74312         * lib/argp-pvh.c: New file, from glibc.
74313         * lib/argp-xinl.c: New file, from glibc.
74314
74315 2003-06-10  Simon Josefsson  <jas@extundo.com>
74316
74317         * modules/strchrnul: New file.
74318
74319 2003-06-10  Simon Josefsson  <jas@extundo.com>
74320
74321         * modules/argp: New file.
74322
74323 2003-06-10  Simon Josefsson  <jas@extundo.com>
74324
74325         * m4/strchrnul.m4: New file.
74326
74327 2003-06-10  Simon Josefsson  <jas@extundo.com>
74328
74329         * lib/strchrnul.h: New file.
74330         * lib/strchrnul.c: New file.
74331
74332 2003-06-10  Bruno Haible  <bruno@clisp.org>
74333
74334         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74335
74336 2003-06-07  Karl Berry  <karl@gnu.org>
74337
74338         * config/config.{guess,sub}: update from prep.
74339
74340 2003-06-07  Jim Meyering  <jim@meyering.net>
74341
74342         * modules/strtod: Use $(...) notation, not @...@ for
74343         AC_REPLACE'd variables.
74344         * modules/localcharset: Likewise.
74345
74346 2003-06-07  Jim Meyering  <jim@meyering.net>
74347
74348         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74349         in place of my name in the copyright comment.
74350         Remove definition and uses of __P.
74351
74352         From coreutils.
74353         * lib/stat.c: Don't declare xmalloc explicitly.
74354         Instead, include "xalloc.h".
74355         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74356         xrealloc, and xcalloc return values.
74357         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74358         Improve comment.
74359         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74360
74361 2003-06-07  Bruno Haible  <bruno@clisp.org>
74362
74363         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74364         avoid AC_CONFIG_LINKS.
74365         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74366         fnmatch.h, to avoid AC_CONFIG_LINKS.
74367         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74368
74369 2003-06-07  Bruno Haible  <bruno@clisp.org>
74370
74371         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74372         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74373         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74374         directory.
74375         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74376         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74377         directory.
74378
74379 2003-06-06  Jim Meyering  <jim@meyering.net>
74380
74381         Merge from coreutils.
74382         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74383         Consolidate declarations and initializations of *_base* locals.
74384
74385         Merge from coreutils.
74386         This avoids a core dump on systems without GNU putenv,
74387         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74388         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74389         (unsetenv): New static function, from GNU libc.
74390         (rpl_putenv): Use it.
74391
74392         * lib/modechange.c: Remove trailing blanks.
74393
74394         Merge from coreutils.
74395         * lib/fsusage.c: Remove declaration of statfs.
74396         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74397
74398         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74399
74400 2003-06-06  Jim Meyering  <jim@meyering.net>
74401
74402         * lib/stdbool_.h: Renamed from stdbool.h.in.
74403
74404 2003-06-06  Jim Meyering  <jim@meyering.net>
74405             Bruno Haible  <bruno@clisp.org>
74406
74407         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74408         Adjust Makefile.am snippet not to redirect directly to target.
74409         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74410
74411 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74412
74413         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74414         mismatch, look in future quarters as well as past.  This fixes a
74415         bug when processing fall-backwards gaps immediately after a long
74416         period of daylight-saving time.
74417
74418         * lib/mktime.c: Assume freestanding C89 or better.
74419         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74420         (__P): Remove; not used.
74421         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74422         (mktime, not_equal_tm, print_tm, check_result,
74423         main): Use prototypes.  Use const * where appropriate.
74424         (main): Fix typo in testing code that uncovered by above changes.
74425         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74426
74427 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74428
74429         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74430         locale.h, localeconv.  This merges changes from coreutils.
74431
74432         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74433         It can be removed after the next Autoconf is released.
74434         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74435         needed.
74436
74437 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74438
74439         * lib/mktime.c: Fix Debian bug 177940
74440         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74441         (localtime_offset): Now long int, not time_t, because we want it
74442         to be guaranteed to be signed.  All uses changed.
74443         (__mktime_internal): If overflow would occur when adding offset,
74444         don't add it.
74445
74446         Merge 'human' changes from coreutils.  Rewrite to support
74447         locale-specific notations like thousands separators.
74448         * lib/human.c: Simplify authorship notice.
74449         Include human.h immediately after config.h.
74450         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74451         <limits.h>: Do not include, since human.h does.
74452         (SIZE_MAX, UINTMAX_MAX): New macros.
74453         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74454         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74455         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74456         (power_letter): Renamed from suffixes.
74457         (generate_suffix_backwards): Remove.
74458         (adjust_value): Now takes int style (because of human.h changes)
74459         and long double value (for greater precision on some platforms).
74460         (group_number): New function.
74461         (human_readable): Use it.  Use integer options, not enum.
74462         Put the options before the sizes in the arg list.
74463         Support all the new options.
74464         The old human_readable function has been removed;
74465         use inttostr.h instead.
74466         (human_readable, default_block_size, humblock):
74467         Use uintmax_t, not int, for block sizes.
74468         (human_readable_inexact, block_size_types): Remove.
74469         (block_size_opts): New constant.
74470         (human_options): Renamed from human_block_size, with new signature
74471         that allows block sizes up to UINTMAX_MAX.  All callers changed.
74472         * lib/human.h: Add copyright and authorship notice.
74473         Include <limits.h> and <stdbool.h> unconditionally.
74474         (PARAMS): Remove.  All uses removed.
74475         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
74476         (enum human_inexact_style): Remove tag; now a nameless enum.
74477         (human_floor, human_ceiling, human_round_to_even): Now have
74478         values 2, 0, 1 rather than -1, 1, 0.
74479         (human_group_digits, human_suppress_point_zero, human_autoscale,
74480         human_base_1024, human_SI, human_B): New constants.
74481         (human_readable_inexact, human_block_size): Remove.
74482         (human_readable): Size args are now uintmax_t, not int.
74483         (human_options): New decl.
74484
74485         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
74486         unnecessary now that we assume C89 or better.  This change
74487         imported from coreutils.
74488
74489         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74490         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
74491         in the 2003-05-30 sync from glibc.
74492
74493         .h files should stand alone, but we shouldn't include <sys/types.h>
74494         if we can get away with just <stddef.h>.
74495
74496         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
74497         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
74498         rather than <sys/types.h>, as we merely need size_t.
74499         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
74500         to get size_t.
74501         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
74502         Include <stdio.h>, to get FILE.
74503         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
74504         memcasecmp.h has included <stddef.h> and all we need is size_t.
74505         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
74506         our interface, instead of including <sys/types.h>
74507
74508 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74509
74510         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
74511         now, as glibc mktime is buggy on non-glibc systems.
74512
74513 2003-06-03  Karl Berry  <karl@gnu.org>
74514
74515         * config/config.sub: update from prep.
74516
74517 2003-06-02  Paul Eggert  <eggert@twinsun.com>
74518
74519         [from coreutils]
74520         Fix some minor time-related bugs with POSIX time arguments.
74521         Some valid time stamps were being rejected (notably -1, and
74522         time stamps before 1900 on 64-bit hosts).  And some invalid
74523         time stamps were being accepted, e.g. September 31.
74524
74525         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
74526         that we can return (time_t) -1 successfully.
74527         * lib/posixtm.c: Likewise.
74528         [HAVE_STDBOOL_H]: Include <stdbool.h>.
74529         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
74530         (t): Remove static var.
74531         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
74532         of static var.  All uses changed.
74533         (year): Do not reject years before 1900; they can occur with
74534         64-bit time_t.
74535         (posix_time_parse): Do not check for out-of-range components;
74536         that is now the caller's responsibility, since our checks were
74537         only approximations.
74538         (posixtime): Use mktime to check for out-of-range components,
74539         since it knows them exactly.
74540         If mktime returns (time_t) -1, check whether an error actually occurred
74541         by invoking localtime on -1.
74542         (main) [TEST_POSIXTIME]: Check for input data errors, and report
74543         posixtime failures better.
74544         Improve the test data (in comments only).
74545
74546 2003-06-02  Karl Berry  <karl@gnu.org>
74547
74548         * config/mkinstalldirs (version): new variable.
74549         (--version): new option.
74550         (usage): improve message.
74551
74552 2003-05-30  Karl Berry  <karl@gnu.org>
74553
74554         * lib/mktime.c: update from libc.
74555
74556 2003-05-30  Bruno Haible  <bruno@clisp.org>
74557
74558         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
74559         * config/config.rpath: Upgrade to gettext-0.12.1.
74560
74561 2003-05-30  Bruno Haible  <bruno@clisp.org>
74562
74563         * m4/gettext.m4: Upgrade to gettext-0.12.1.
74564         * m4/nls.m4: New file, from gettext-0.12.1.
74565         * m4/po.m4: New file, from gettext-0.12.1.
74566         * m4/progtest.m4: Upgrade to gettext-0.12.1.
74567
74568 2003-05-30  Bruno Haible  <bruno@clisp.org>
74569
74570         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
74571         * lib/localcharset.h: Likewise.
74572         * lib/localcharset.c: Likewise.
74573
74574 2003-05-29  Karl Berry  <karl@gnu.org>
74575
74576         * config/config.rpath: update from gettext.
74577
74578 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74579
74580         Assume the headers required for C89 freestanding compilers.
74581         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
74582         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
74583         * m4/human.m4 (gl_HUMAN): Likewise.
74584         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
74585         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
74586         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74587         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
74588         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74589         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
74590
74591 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74592
74593         Assume the headers required for C89 freestanding compilers.
74594         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
74595         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
74596         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
74597         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
74598         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
74599         define, since <limits.h> is guaranteed to do that.
74600         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
74601         * lib/exclude.c: Include <stdbool.h> unconditionally.
74602         * lib/tempname.c: Include <stddef.h> unconditionally.
74603         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
74604         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
74605         <stddef.h> does that.
74606         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
74607         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
74608         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
74609         needed.
74610         * lib/xstrtol.c: Likewise.
74611         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
74612         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
74613
74614         * lib/addext.c (addext): Use assignment rather than cast, to avoid
74615         warnings on some platforms.
74616
74617         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74618         arbitrarily.
74619
74620 2003-05-26  Jim Meyering  <jim@meyering.net>
74621
74622         Merge in a change from coreutils:
74623         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
74624         that is guaranteed to be `no'.  Use `no_such_member' to indicate
74625         that condition, rather than `-1' which is slightly misleading.
74626         Change the name of the cache variable to have the gl_ prefix.
74627         Prompted by a patch from Richard Dawe for DJGPP.
74628
74629 2003-05-24  Karl Berry  <karl@gnu.org>
74630
74631         * config/config.guess: update from prep.
74632
74633 2003-05-22  Karl Berry  <karl@gnu.org>
74634
74635         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74636
74637 2003-05-20  Karl Berry  <karl@gnu.org>
74638
74639         * config/config.guess: update from prep.
74640
74641 2003-05-18  Karl Berry  <karl@gnu.org>
74642
74643         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74644         might actually be set by the user.
74645
74646         * config/depcomp, install-sh, mdate-sh: update from automake.
74647
74648 2003-05-17  Bruno Haible  <bruno@clisp.org>
74649
74650         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74651         invalid expansion for AC_EGREP_CPP.
74652         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74653         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74654         Suggested by Akim Demaille <akim@epita.fr> in
74655         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74656
74657 2003-05-12  Jim Meyering  <jim@meyering.net>
74658
74659         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74660         the space-padded-by-default conversion specifiers, %e, %k, %l.
74661
74662 2003-05-12  Bruno Haible  <bruno@clisp.org>
74663
74664         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74665         the string is longer than 4 KB.
74666
74667 2003-05-11  Karl Berry  <karl@gnu.org>
74668
74669         * config/config.{guess,sub}: update from prep.
74670
74671 2003-05-09  Bruno Haible  <bruno@clisp.org>
74672
74673         * modules/error: Add m4/strerror_r.m4 to file list.
74674
74675 2003-05-03  Bruno Haible  <bruno@clisp.org>
74676
74677         Upgrade to Unicode-4.0.
74678         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74679         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74680         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74681         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74682         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74683         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74684         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74685         Change width of U+E0100..U+E01EF from 1 to 0.
74686
74687 2003-04-25  Jim Meyering  <jim@meyering.net>
74688
74689         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74690         of type size_t, not int.
74691
74692 2003-04-25  Bruno Haible  <bruno@clisp.org>
74693
74694         * lib/copy-file.c: Include <stddef.h>, for size_t.
74695
74696 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74697
74698         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74699         code which expansion is under static control.  Patch imported from
74700         Akim Demaille's patch to Bison; see
74701         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74702
74703 2003-04-14  Bruno Haible  <bruno@clisp.org>
74704
74705         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74706
74707 2003-04-11  Jim Meyering  <jim@meyering.net>
74708
74709         Merge changes from Coreutils.
74710
74711         2003-03-22  Jim Meyering  <jim@meyering.net>
74712
74713         * lib/strftime.c (widen): Cast alloca return value to proper type.
74714
74715         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74716
74717         From GNU libc.
74718         * lib/strftime.c (my_strftime): Handle very large width
74719         specifications for numeric values correctly.  Improve checks for
74720         overflow.
74721
74722         2003-01-19  Jim Meyering  <jim@meyering.net>
74723
74724         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74725         definitions.
74726         (nl_get_alt_digit) [! defined my_strftime]: Define.
74727         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74728         _nl_get_alt_digit and _nl_get_walt_digit.
74729
74730         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74731         libc. These changes have no effect outside of _LIBC.
74732
74733 2003-04-10  Bruno Haible  <bruno@clisp.org>
74734
74735         * modules/findprog: New file.
74736         * MODULES.html.sh (func_all_modules): Add it.
74737
74738 2003-04-10  Bruno Haible  <bruno@clisp.org>
74739
74740         * m4/findprog.m4: New file.
74741         * m4/eaccess.m4: New file.
74742
74743 2003-04-10  Bruno Haible  <bruno@clisp.org>
74744
74745         * lib/findprog.h: New file, from GNU gettext.
74746         * lib/findprog.c: New file, from GNU gettext.
74747
74748 2003-04-05  Jim Meyering  <jim@meyering.net>
74749
74750         Merge changes from Coreutils.
74751
74752         * lib/exclude.h (PARAMS): Remove definition and uses.
74753         * lib/exclude.c: Remove uses of `PARAMS'.
74754
74755         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
74756         Add test-cases for DOS filenames. Declare program_name.
74757         (main): Set up program_name.  Patch by Rich Dawe.
74758
74759         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74760         error from mntctl.
74761         Use mntctl's return value to drive the entry-processing loop, since
74762         we can't rely on the value of the vmt_length member in the last
74763         entry.  On some systems doing so could result in exhausting
74764         virtual memory.  Based in part on a patch from Mike Jetzer.
74765
74766 2003-04-04  Bruno Haible  <bruno@clisp.org>
74767
74768         * modules/linebreak: New file.
74769         * MODULES.html.sh (func_all_modules): Add it.
74770
74771 2003-04-04  Bruno Haible  <bruno@clisp.org>
74772
74773         * m4/linebreak.m4: New file.
74774
74775 2003-04-04  Bruno Haible  <bruno@clisp.org>
74776
74777         * lib/linebreak.h: New file, from GNU gettext.
74778         * lib/linebreak.c: New file, from GNU gettext with slight
74779         modifications.
74780         * lib/lbrkprop.h: New file, from GNU gettext.
74781
74782 2003-04-03  Bruno Haible  <bruno@clisp.org>
74783
74784         * modules/utf8-ucs4: New file.
74785         * modules/utf16-ucs4: New file.
74786         * modules/ucs4-utf8: New file.
74787         * modules/ucs4-utf16: New file.
74788         * MODULES.html.sh (func_all_modules): Add them.
74789
74790 2003-04-03  Bruno Haible  <bruno@clisp.org>
74791
74792         * m4/utf-ucs4.m4: New file.
74793         * m4/ucs4-utf.m4: New file.
74794
74795 2003-04-03  Bruno Haible  <bruno@clisp.org>
74796
74797         * lib/utf8-ucs4.h: New file, from GNU gettext.
74798         * lib/utf16-ucs4.h: New file, from GNU gettext.
74799         * lib/ucs4-utf8.h: New file, from GNU gettext.
74800         * lib/ucs4-utf16.h: New file, from GNU gettext.
74801
74802 2003-04-02  Bruno Haible  <bruno@clisp.org>
74803
74804         * modules/binary-io: New file.
74805         * MODULES.html.sh (func_all_modules): Add it.
74806
74807 2003-04-02  Bruno Haible  <bruno@clisp.org>
74808
74809         * lib/binary-io.h: New file, from GNU gettext.
74810
74811 2003-04-01  Bruno Haible  <bruno@clisp.org>
74812
74813         * modules/pathname: New file.
74814         * MODULES.html.sh (func_all_modules): Add it.
74815
74816 2003-04-01  Bruno Haible  <bruno@clisp.org>
74817
74818         * lib/pathname.h: New file, from GNU gettext.
74819         * lib/concatpath.c: New file, from GNU gettext.
74820
74821 2003-03-30  Bruno Haible  <bruno@clisp.org>
74822
74823         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
74824
74825 2003-03-30  Bruno Haible  <bruno@clisp.org>
74826
74827         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
74828         function chown() doesn't exist.
74829
74830 2003-03-28  Bruno Haible  <bruno@clisp.org>
74831
74832         * modules/copy-file: New file.
74833         * MODULES.html.sh (func_all_modules): Add it.
74834
74835 2003-03-28  Bruno Haible  <bruno@clisp.org>
74836
74837         * m4/copy-file.m4: New file.
74838
74839 2003-03-28  Bruno Haible  <bruno@clisp.org>
74840
74841         * lib/copy-file.h: New file, from GNU gettext.
74842         * lib/copy-file.c: New file, from GNU gettext.
74843
74844 2003-03-18  Jim Meyering  <jim@meyering.net>
74845
74846         * lib/quote.c (quote_n): Fix typo in comment.
74847
74848 2003-03-18  Bruno Haible  <bruno@clisp.org>
74849
74850         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
74851         checking.
74852         * m4/onceonly_2_57.m4: Likewise.
74853
74854 2003-03-17  Bruno Haible  <bruno@clisp.org>
74855
74856         * m4/onceonly.m4: Require autoconf 2.54 or newer.
74857         (m4_quote): Remove macro.
74858         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
74859
74860 2003-03-14  Jim Meyering  <jim@meyering.net>
74861
74862         Merge changes from Coreutils.
74863         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
74864         to be const, in order to avoid warnings.
74865         (obstack_room): Likewise.
74866         (obstack_empty_p): Likewise.
74867
74868 2003-03-14  Bruno Haible  <bruno@clisp.org>
74869
74870         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
74871         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
74872
74873 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74874
74875         Merge changes from Bison.
74876         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
74877         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
74878         when compiling Bison 1.875's `bitset bset = obstack_alloc
74879         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
74880         * lib/hash.c: Include <stdbool.h> unconditionally.
74881
74882 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74883
74884         * m4/onceonly.m4 (m4_quote): New macro.
74885         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
74886         Quote AC_FOREACH variable-expansions properly.
74887
74888 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74889
74890         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
74891
74892 2003-03-09  Paul Eggert  <eggert@twinsun.com>
74893
74894         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
74895         Reported by Bruce Becker; see:
74896         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
74897
74898 2003-03-03  Paul Eggert  <eggert@twinsun.com>
74899             Bruno Haible  <bruno@clisp.org>
74900
74901         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
74902         Reported by John Hughes, see
74903         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
74904
74905 2003-02-20  Bruno Haible  <bruno@clisp.org>
74906
74907         * MODULES.html.sh (func_all_modules): Add poll.
74908
74909 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74910
74911         * modules/poll: New file.
74912
74913 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74914
74915         * lib/poll_.h: New file.
74916         * lib/poll.c: New file.
74917
74918 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74919
74920         * m4/poll.m4: New file.
74921
74922 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74923
74924         * modules/mathl: New file.
74925
74926 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74927
74928         * lib/mathl.h: New file.
74929         * lib/acosl.c: New file.
74930         * lib/asinl.c: New file.
74931         * lib/atanl.c: New file.
74932         * lib/ceill.c: New file.
74933         * lib/cosl.c: New file.
74934         * lib/expl.c: New file.
74935         * lib/floorl.c: New file.
74936         * lib/frexpl.c: New file.
74937         * lib/ldexpl.c: New file.
74938         * lib/logl.c: New file.
74939         * lib/sincosl.c: New file.
74940         * lib/sinl.c: New file.
74941         * lib/sqrtl.c: New file.
74942         * lib/tanl.c: New file.
74943         * lib/trigl.c: New file.
74944         * lib/trigl.h: New file.
74945
74946 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74947
74948         * m4/mathl.m4: New file.
74949
74950 2003-02-18  Bruno Haible  <bruno@clisp.org>
74951
74952         * MODULES.html.sh (func_all_modules): Add mathl.
74953
74954 2003-02-17  Bruno Haible  <bruno@clisp.org>
74955
74956         * modules/mkdtemp: New module.
74957         * MODULES.html.sh (func_all_modules): Add it.
74958
74959 2003-02-17  Bruno Haible  <bruno@clisp.org>
74960
74961         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
74962
74963 2003-02-17  Bruno Haible  <bruno@clisp.org>
74964
74965         * lib/mkdtemp.h: New file, from GNU gettext.
74966         * lib/mkdtemp.c: New file, from GNU gettext.
74967
74968 2003-02-02  Jim Meyering  <jim@meyering.net>
74969
74970         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
74971         e.g. glibc-2.2.93.
74972
74973 2003-01-31  Bruno Haible  <bruno@clisp.org>
74974
74975         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
74976         'rpl_rename'.
74977         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
74978         'rpl_strnlen'.
74979         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
74980         'rpl_strtod'.
74981         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
74982         'rpl_utime'.
74983
74984 2003-01-31  Bruno Haible  <bruno@clisp.org>
74985
74986         * lib/rename.c: #undef rename before defining rpl_rename.
74987         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74988
74989 2003-01-30  Bruno Haible  <bruno@clisp.org>
74990
74991         * modules/vasnprintf, modules/vasprintf: New modules.
74992         * MODULES.html.sh (func_all_modules): Add them.
74993
74994 2003-01-30  Bruno Haible  <bruno@clisp.org>
74995
74996         * m4/signed.m4: New file, from GNU gettext.
74997         * m4/longdouble.m4: New file, from GNU gettext.
74998         * m4/wchar_t.m4: New file, from GNU gettext.
74999         * m4/wint_t.m4: New file, from GNU gettext.
75000         * m4/vasnprintf.m4: New file.
75001         * m4/vasprintf.m4: New file.
75002
75003 2003-01-30  Bruno Haible  <bruno@clisp.org>
75004
75005         * lib/printf-args.h: New file, from GNU gettext.
75006         * lib/printf-args.c: New file, from GNU gettext.
75007         * lib/printf-parse.h: New file, from GNU gettext.
75008         * lib/printf-parse.c: New file, from GNU gettext.
75009         * lib/vasnprintf.h: New file, from GNU gettext.
75010         * lib/vasnprintf.c: New file, from GNU gettext.
75011         * lib/asnprintf.c: New file, from GNU gettext.
75012         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75013         * lib/vasprintf.c: New file, from GNU gettext.
75014         * lib/asprintf.c: New file, from GNU gettext.
75015
75016 2003-01-29  Bruno Haible  <bruno@clisp.org>
75017
75018         * modules/stpncpy: New module.
75019         * MODULES.html.sh (func_all_modules): Add it.
75020
75021 2003-01-29  Bruno Haible  <bruno@clisp.org>
75022
75023         * m4/stpncpy.m4: New file.
75024
75025 2003-01-29  Bruno Haible  <bruno@clisp.org>
75026
75027         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75028         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75029
75030 2003-01-28  Bruno Haible  <bruno@clisp.org>
75031
75032         * modules/c-ctype: New module.
75033         * MODULES.html.sh (func_all_modules): Add it.
75034
75035 2003-01-28  Bruno Haible  <bruno@clisp.org>
75036
75037         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75038         Paul Eggert.
75039         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75040         Paul Eggert.
75041
75042 2003-01-27  Bruno Haible  <bruno@clisp.org>
75043
75044         * modules/xsetenv: New module.
75045         * MODULES.html.sh (func_all_modules): Add it.
75046
75047 2003-01-27  Bruno Haible  <bruno@clisp.org>
75048
75049         * lib/xsetenv.h: New file, from GNU gettext.
75050         * lib/xsetenv.c: New file, from GNU gettext.
75051
75052 2003-01-23  Jim Meyering  <jim@meyering.net>
75053
75054         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75055         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75056
75057 2003-01-23  Bruno Haible  <bruno@clisp.org>
75058
75059         * modules/minmax: New module.
75060         * MODULES.html.sh (func_all_modules): Add it.
75061
75062 2003-01-23  Bruno Haible  <bruno@clisp.org>
75063
75064         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75065         Eggert.
75066
75067 2003-01-22  Bruno Haible  <bruno@clisp.org>
75068
75069         * modules/exit: New module.
75070         * MODULES.html.sh (func_all_modules): Add it.
75071
75072 2003-01-22  Bruno Haible  <bruno@clisp.org>
75073
75074         * lib/exit.h: New file, from GNU gettext.
75075
75076 2003-01-19  Bruno Haible  <bruno@clisp.org>
75077
75078         * gnulib-tool: Recognize option --extract-maintainer.
75079         (func_get_maintainer): New function.
75080         * modules/*: Add Maintainer entry.
75081
75082 2003-01-16  Jim Meyering  <jim@meyering.net>
75083
75084         * m4/regex.m4: The `regex' struct is both input and output.
75085         Initialize it before each use.  Patch by Tim Waugh.
75086
75087 2003-01-16  Bruno Haible  <bruno@clisp.org>
75088
75089         * MODULES.html.sh: Add a table of contents. Add the module name as
75090         leftmost column. Add hyperlinks.
75091
75092 2003-01-15  Bruno Haible  <bruno@clisp.org>
75093
75094         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75095
75096 2003-01-15  Bruno Haible  <bruno@clisp.org>
75097
75098         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75099         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75100         suffix.
75101
75102 2003-01-15  Bruno Haible  <bruno@clisp.org>
75103
75104         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75105
75106 2003-01-15  Bruno Haible  <bruno@clisp.org>
75107
75108         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75109         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75110
75111 2003-01-14  Jim Meyering  <jim@meyering.net>
75112
75113         * lib/same.c (same_name): Tweak a comment.
75114
75115 2003-01-14  Bruno Haible  <bruno@clisp.org>
75116
75117         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75118         when a string comparison is sufficient.
75119
75120 2003-01-14  Bruno Haible  <bruno@clisp.org>
75121
75122         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75123         'unsigned int'.
75124
75125 2003-01-14  Bruno Haible  <bruno@clisp.org>
75126
75127         * lib/hash-pjw.c: Add comment about low quality of this function.
75128
75129 2003-01-13  Bruno Haible  <bruno@clisp.org>
75130
75131         * modules/stpcpy: Distribute lib/stpcpy.h.
75132         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75133
75134 2003-01-13  Bruno Haible  <bruno@clisp.org>
75135
75136         * modules/*: Add a description.
75137         * modules/strpbrk: Fix Makefile.am snippet.
75138         * modules/strtoimax: Fix dependencies.
75139         * modules/strtoumax: Likewise.
75140
75141 2003-01-13  Bruno Haible  <bruno@clisp.org>
75142
75143         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75144         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75145         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75146
75147 2003-01-13  Bruno Haible  <bruno@clisp.org>
75148
75149         * gnulib-tool (func_create_testdir): Store config/* files in the main
75150         directory.
75151         * config.rpath: Move to ...
75152         * config/config.rpath: ... here.
75153         * modules/gettext: Contains config/config.rpath, not config.rpath.
75154         * modules/iconv: Likewise.
75155
75156 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75157
75158         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75159         to avoid collisions with libcurses and libreadline.
75160
75161         * m4/getstr.m4: Remove.
75162         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75163
75164 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75165
75166         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75167         to avoid collisions with libcurses and libreadline.
75168
75169         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75170         * lib/getstr.h, getstr.c: Remove.
75171         * lib/getline.c: Include "getline.h", to check interface.
75172         Move body of old getstr.c here: this defines MIN_CHUNK and
75173         declares getdelim2, which is renamed from getstr.
75174         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75175
75176         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75177         All uses changed.
75178         * lib/linebuffer.h: Likewise.
75179         (readline): Remove backward-compatibility macro.
75180
75181 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75182
75183         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75184         to avoid collisions with libcurses and libreadline.
75185         * getstr: Remove.
75186         * MODULES.html.sh: Remove getstr.
75187         * modules/getline: Depend on unlocked-io, not getstr.
75188
75189 2003-01-12  Jim Meyering  <jim@meyering.net>
75190
75191         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75192
75193 2003-01-10  Bruno Haible  <bruno@clisp.org>
75194
75195         * modules/alloca: Change Makefile.am requirements. Simplify Include
75196         requirements. Add lib/alloca_.h to file list.
75197
75198 2003-01-10  Bruno Haible  <bruno@clisp.org>
75199
75200         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75201
75202 2003-01-10  Bruno Haible  <bruno@clisp.org>
75203
75204         * lib/alloca_.h: New file.
75205         * lib/getdate.y: Unconditionally include alloca.h.
75206         * lib/makepath.c: Likewise.
75207         * lib/setenv.c: Likewise.
75208         * lib/userspec.c: Likewise.
75209
75210 2003-01-09  Karl Berry  <karl@gnu.org>
75211
75212         * MODULES.html.sh: include `dirname $0` in PATH, to find
75213         gnulib-tool.
75214
75215 2003-01-09  Bruno Haible  <bruno@clisp.org>
75216
75217         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75218         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75219
75220 2003-01-09  Bruno Haible  <bruno@clisp.org>
75221
75222         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75223
75224 2003-01-09  Bruno Haible  <bruno@clisp.org>
75225
75226         * lib/stdbool.h.in: New file.
75227
75228 2003-01-09  Bruno Haible  <bruno@clisp.org>
75229
75230         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75231         * MODULES.html.sh: Likewise.
75232
75233 2003-01-08  Jim Meyering  <jim@meyering.net>
75234
75235         * lib/full-write.c: Undefine and define-away `const' after inclusion
75236         of errno.h, not before.  Suggestion from Bruno Haible.
75237
75238 2003-01-08  Bruno Haible  <bruno@clisp.org>
75239
75240         * modules/full-read: Depend on full-write.
75241
75242 2003-01-08  Bruno Haible  <bruno@clisp.org>
75243
75244         * lib/safe-read.c: Include specification header first, to ensure its
75245         selfcontainedness.
75246         * lib/full-write.c: Likewise.
75247
75248 2003-01-07  Jim Meyering  <jim@meyering.net>
75249
75250         * lib/full-write.c: Rework so that it may serve to define full_read,
75251         too.
75252         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75253
75254 2003-01-07  Bruno Haible  <bruno@clisp.org>
75255
75256         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75257         <inttypes.h>.
75258         * lib/xstrtol.h: Likewise.
75259         * lib/xstrtoimax.c: Likewise.
75260         * lib/xstrtoumax.c: Likewise.
75261         * lib/human.h: Likewise.
75262
75263         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75264         on systems that have <inttypes.h> but not <stdint.h>.
75265
75266 2003-01-07  Bruno Haible  <bruno@clisp.org>
75267
75268         * MODULES.html.sh: Add copyright notice.
75269         (missed_files): Omit CVS directory entries.
75270         (func_module): Make it work with sed-3.02.
75271         * MODULES.txt: Remove file.
75272
75273 2003-01-06  Jim Meyering  <jim@meyering.net>
75274
75275         * lib/version-etc.c: Update year in translatable copyright string.
75276
75277 2003-01-03  Karl Berry  <karl@gnu.org>
75278
75279         * config/config.{guess,sub}: update from prep.
75280
75281 2003-01-02  Karl Berry  <karl@gnu.org>
75282
75283         * doc/COPYING.DOC: belatedly updated to 1.2.
75284
75285 2003-01-01  Karl Berry  <karl@gnu.org>
75286
75287         * gnulib-tool (func_verify_module): report module name $module in
75288         error message, not $1.
75289         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75290         be created, only if it doesn't exist.
75291         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75292
75293 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75294
75295         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75296
75297 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75298
75299         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75300         memcmp if strcoll doesn't work.
75301
75302 2002-12-31  Bruno Haible  <bruno@clisp.org>
75303
75304         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75305         nonempty.
75306
75307 2002-12-31  Bruno Haible  <bruno@clisp.org>
75308
75309         * lib/memcoll.c (STRCOLL): New macro.
75310         (memcoll): Use it.
75311
75312 2002-12-31  Bruno Haible  <bruno@clisp.org>
75313
75314         * lib/localcharset.h: New file.
75315         * lib/localcharset.c: Include it.
75316         * lib/unicodeio.c: Likewise.
75317
75318 2002-12-31  Bruno Haible  <bruno@clisp.org>
75319
75320         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75321         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75322
75323 2002-12-31  Bruno Haible  <bruno@clisp.org>
75324
75325         * lib/getline.h: Include <stddef.h>, for size_t.
75326
75327         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75328         * lib/unicodeio.c: Don't include <stddef.h>.
75329
75330 2002-12-31  Bruno Haible  <bruno@clisp.org>
75331
75332         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75333         HAVE_TM_ZONE.
75334
75335 2002-12-24  Karl Berry  <karl@gnu.org>
75336
75337         * config/config.guess: update from prep.
75338
75339 2002-12-24  Bruno Haible  <bruno@clisp.org>
75340
75341         General infrasructure.
75342         * m4/README: Rewritten.
75343         * m4/onceonly.m4: New file.
75344         * m4/onceonly_2_57.m4: New file.
75345
75346         Module atexit.
75347         * m4/atexit.m4: New file.
75348
75349         Module strtod.
75350         * m4/strtod.m4: New file.
75351
75352         Module strtol.
75353         * m4/strtol.m4: New file.
75354
75355         Module strtoul.
75356         * m4/strtoul.m4: New file.
75357
75358         Module memchr.
75359         * m4/memchr.m4: New file.
75360
75361         Module memcmp.
75362         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75363         (jm_FUNC_MEMCMP): Invoke it.
75364
75365         Module memcpy.
75366         * m4/memcpy.m4: New file.
75367
75368         Module memmove.
75369         * m4/memmove.m4: New file.
75370
75371         Module memset.
75372         * m4/memset.m4: New file.
75373
75374         Module strcspn.
75375         * m4/strcspn.m4: New file.
75376
75377         Module strpbrk.
75378         * m4/strpbrk.m4: New file.
75379
75380         Module strstr.
75381         * m4/strstr.m4: New file.
75382
75383         Module strerror.
75384         * m4/strerror.m4: New file.
75385
75386         Module mktime.
75387         * m4/mktime.m4: Renamed from jm-mktime.m4.
75388         (gl_PREREQ_MKTIME): New macro.
75389         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75390
75391         Module malloc.
75392         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75393         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75394         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75395
75396         Module realloc.
75397         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75398         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75399         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75400
75401         Module strftime.
75402         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75403         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75404         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75405         gl_TM_GMTOFF.
75406         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75407
75408         Module xalloc.
75409         * m4/xalloc.m4: New file.
75410
75411         Module alloca.
75412         * m4/alloca.m4: New file.
75413
75414         Module putenv.
75415         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75416         (jm_FUNC_PUTENV): Invoke it.
75417
75418         Module setenv.
75419         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75420         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75421         when invoked twice.
75422         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75423         gt_FUNC_SETENV.
75424
75425         Module memrchr.
75426         * m4/memrchr.m4: New file.
75427
75428         Module stpcpy.
75429         * m4/stpcpy.m4: New file.
75430
75431         Module strcase.
75432         * m4/strcase.m4: New file.
75433
75434         Module strdup.
75435         * m4/strdup.m4: New file.
75436
75437         Module strnlen.
75438         * m4/strnlen.m4: New file.
75439
75440         Module strndup.
75441         * m4/strndup.m4: New file.
75442
75443         Module xstrtod.
75444         * m4/xstrtod.m4: New file.
75445
75446         Module xstrtol.
75447         * m4/xstrtol.m4: New file.
75448
75449         Module getdate.
75450         * m4/getdate.m4: New file.
75451
75452         Module unlocked-io.
75453         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75454         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75455         * m4/jm-glibc-io.m4n: Remove file.
75456
75457         Module long-options.
75458         * m4/long-options.m4: New file.
75459
75460         Module md5.
75461         * m4/md5.m4: New file.
75462
75463         Module sha.
75464         * m4/sha.m4: New file.
75465
75466         Module getstr.
75467         * m4/getstr.m4: New file.
75468
75469         Module getline.
75470         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
75471         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
75472         <sys/types.h>, for size_t. Use the function name gnu_getline, not
75473         simply getline. Infoke gl_PREREQ_GETLINE.
75474
75475         Module obstack.
75476         * m4/obstack.m4: New file.
75477
75478         Module hash.
75479         * m4/hash.m4: New file.
75480
75481         Module readtokens.
75482         * m4/readtokens.m4: New file.
75483
75484         Module strverscmp.
75485         * m4/strverscmp.m4: New file.
75486
75487         Module stdbool.
75488         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
75489         OSF/1.
75490
75491         Module strtoll.
75492         * m4/strtoll.m4: New file.
75493
75494         Module strtoull.
75495         * m4/strtoull.m4: New file.
75496
75497         Module strtoimax.
75498         * m4/strtoimax.m4: New file.
75499
75500         Module strtoumax.
75501         * m4/strtoumax.m4: New file.
75502
75503         Module xstrtoimax.
75504         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
75505         jm_AC_PREREQ_XSTRTOIMAX.
75506         Moved the strtol prerequisites to strtol.m4.
75507         Moved the strtoll prerequisites to strtoll.m4.
75508         Moved the strtoimax prerequisites to strtoimax.m4.
75509
75510         Module xstrtoumax.
75511         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
75512         jm_AC_PREREQ_XSTRTOUMAX.
75513         Moved the strtoul prerequisites to strtoul.m4.
75514         Moved the strtoull prerequisites to strtoull.m4.
75515         Moved the strtoumax prerequisites to strtoumax.m4.
75516
75517         Module chown.
75518         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
75519         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75520
75521         Module dup2.
75522         * m4/dup2.m4: New file.
75523
75524         Module ftruncate.
75525         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
75526         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
75527
75528         Module getgroups.
75529         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
75530         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
75531
75532         Module gettimeofday.
75533         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
75534         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
75535         gl_PREREQ_GETTIMEOFDAY.
75536
75537         Module mkdir.
75538         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
75539         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
75540
75541         Module mkstemp.
75542         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
75543         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
75544         jm_AC_TYPE_UINTMAX_T.
75545         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
75546
75547         Module stat.
75548         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
75549         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
75550
75551         Module lstat.
75552         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
75553         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
75554
75555         Module timespec.
75556         * m4/timespec.m4 (gl_TIMESPEC): New macro.
75557         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
75558         * m4/st_mtim.m4: Indentation.
75559
75560         Module nanosleep.
75561         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
75562         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
75563         gl_PREREQ_NANOSLEEP.
75564
75565         Module regex.
75566         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
75567         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
75568         (gl_REGEX): New macro.
75569
75570         Module rename.
75571         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
75572         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
75573
75574         Module rmdir.
75575         * m4/rmdir.m4: New file.
75576
75577         Module utime.
75578         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
75579         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
75580         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
75581
75582         Module dirname.
75583         * m4/dirname.m4: New file.
75584
75585         Module getopt.
75586         * m4/getopt.m4: New file.
75587
75588         Module unistd-safer.
75589         * m4/unistd-safer.m4: New file.
75590
75591         Module fnmatch.
75592         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
75593         declaration.
75594         (gl_PREREQ_FNMATCH_EXTRA): New macro.
75595         (gl_FUNC_FNMATCH_POSIX): New macro.
75596         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
75597         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
75598         simply fnmatch.
75599
75600         Module exclude.
75601         * m4/exclude.m4: New file.
75602
75603         Module human.
75604         * m4/human.m4: New file.
75605
75606         Module acl.
75607         * m4/acl.m4: Nop.
75608
75609         Module backupfile.
75610         * m4/backupfile.m4: New file.
75611         * m4/d-ino.m4: Indentation.
75612
75613         Module fsusage.
75614         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
75615         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
75616         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
75617
75618         Module dirfd.
75619         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
75620         requirements.
75621
75622         Module euidaccess.
75623         * m4/euidaccess.m4: New file.
75624
75625         Module file-type.
75626         * m4/file-type.m4: New file.
75627
75628         Module fileblocks.
75629         * m4/fileblocks.m4: New file.
75630
75631         Module filemode.
75632         * m4/filemode.m4: New file.
75633
75634         Module isdir.
75635         * m4/isdir.m4: New file.
75636
75637         Module lchown.
75638         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75639         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75640
75641         Module makepath.
75642         * m4/makepath.m4: New file.
75643
75644         Module modechange.
75645         * m4/modechange.m4: New file.
75646
75647         Module mountlist.
75648         * m4/mountlist.m4: New file.
75649         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75650         Indentation.
75651
75652         Module path-concat.
75653         * m4/path-concat.m4: New file.
75654
75655         Module pathmax.
75656         * m4/pathmax.m4: New file.
75657
75658         Module same.
75659         * m4/same.m4: New file.
75660
75661         Module save-cwd.
75662         * m4/save-cwd.m4: New file.
75663
75664         Module savedir.
75665         * m4/savedir.m4: New file.
75666
75667         Module xgetcwd.
75668         * m4/xgetcwd.m4: New file.
75669         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75670
75671         Module xreadlink.
75672         * m4/xreadlink.m4: New file.
75673
75674         Module safe-read.
75675         * m4/safe-read.m4: New file.
75676
75677         Module safe-write.
75678         * m4/safe-write.m4: New file.
75679
75680         Module closeout.
75681         * m4/closeout.m4: New file.
75682
75683         Module stdio-safer.
75684         * m4/stdio-safer.m4: New file.
75685
75686         Module getpass.
75687         * m4/getpass.m4: New file.
75688
75689         Module getugroups.
75690         * m4/getugroups.m4: New file.
75691
75692         Module group-member.
75693         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75694         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75695
75696         Module idcache.
75697         * m4/idcache.m4: New file.
75698
75699         Module userspec.
75700         * m4/userspec.m4: New file.
75701
75702         Module gettime.
75703         * m4/clock_time.m4: New file.
75704         * m4/gettime.m4: New file.
75705
75706         Module settime.
75707         * m4/settime.m4: New file.
75708
75709         Module posixtm.
75710         * m4/posixtm.m4: New file.
75711
75712         Module gethostname.
75713         * m4/gethostname.m4: New file.
75714
75715         Module canon-host.
75716         * m4/canon-host.m4: New file.
75717
75718         Module gettext.
75719         * m4/codeset.m4: New file, from gettext-0.11.5.
75720         * m4/gettext.m4: New file, from gettext-0.11.5.
75721         * m4/glibc21.m4: New file, from gettext-0.11.5.
75722         * m4/iconv.m4: New file, from gettext-0.11.5.
75723         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75724         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75725         * m4/inttypes.m4: New file, from gettext-0.11.5.
75726         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75727         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75728         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75729         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75730         * m4/lib-link.m4: New file, from gettext-0.11.5.
75731         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75732         * m4/progtest.m4: New file, from gettext-0.11.5.
75733         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75734         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75735         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
75736
75737         Module localcharset.
75738         * m4/localcharset.m4: New file.
75739
75740         Module hard-locale.
75741         * m4/hard-locale.m4: New file.
75742
75743         Module mbswidth.
75744         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
75745         onceonly macros.
75746         * m4/mbrtowc.m4: Add comment.
75747
75748         Module memcasecmp.
75749         * m4/memcasecmp.m4: New file.
75750
75751         Module memcoll.
75752         * m4/memcoll.m4: New file.
75753
75754         Module unicodeio.
75755         * m4/unicodeio.m4: New file.
75756
75757         Module rpmatch.
75758         * m4/rpmatch.m4: New file.
75759
75760         Module yesno.
75761         * m4/yesno.m4: New file.
75762
75763         Module exitfail.
75764         * m4/exitfail.m4: New file.
75765
75766         Module c-stack.
75767         * m4/c-stack.m4 (gl_C_STACK): New macro.
75768         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
75769
75770         Module error.
75771         * m4/error.m4 (gl_ERROR): New macro.
75772         (jm_PREREQ_ERROR): Use onceonly macros.
75773
75774         Module fatal.
75775         * m4/fatal.m4: New file.
75776
75777         Module getloadavg.
75778         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
75779         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
75780
75781         Module getpagesize.
75782         * m4/getpagesize.m4: New file.
75783
75784         Module getusershell.
75785         * m4/getusershell.m4: New file.
75786
75787         Module physmem.
75788         * m4/physmem.m4: New file.
75789
75790         Module posixver.
75791         * m4/posixver.m4: New file.
75792
75793         Module quotearg.
75794         * m4/quotearg.m4: New file.
75795
75796         Module quote.
75797         * m4/quote.m4: New file.
75798
75799         Module readutmp.
75800         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
75801
75802         Module sig2str.
75803         * m4/sig2str.m4: New file.
75804
75805         Other.
75806         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
75807         ulonglong.m4.
75808         * m4/intmax_t.m4: New file.
75809         * m4/d-type.m4: Indentation.
75810         * m4/jm-macros.m4: Update.
75811         * m4/prereq.m4 (jm_PREREQ): Update.
75812         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
75813         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
75814         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
75815         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
75816         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
75817         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
75818         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
75819         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
75820         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
75821         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
75822         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
75823         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
75824         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
75825         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
75826         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
75827         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
75828         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
75829         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
75830         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
75831
75832 2002-12-24  Bruno Haible  <bruno@clisp.org>
75833
75834         * MODULES.txt: Update according to m4/ changes.
75835
75836         Module gettext.
75837         * config.rpath: New file, from gettext-0.11.5.
75838
75839         * modules/*: New module descriptions.
75840         * gnulib-tool: New file.
75841         * MODULES.html.sh: New file.
75842
75843 2002-12-21  Karl Berry  <karl@gnu.org>
75844
75845         * doc/fdl.texi: update to version 1.2.
75846
75847 2002-12-19  Karl Berry  <karl@gnu.org>
75848
75849         * config/config.guess: update from prep.
75850
75851 2002-12-18  Bruno Haible  <bruno@clisp.org>
75852
75853         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
75854         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
75855
75856 2002-12-17  Bruno Haible  <bruno@clisp.org>
75857
75858         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
75859         stdlib.h, string.h.
75860
75861 2002-12-17  Bruno Haible  <bruno@clisp.org>
75862
75863         * lib/canon-host.c (strdup): Remove unused declaration.
75864
75865         * lib/fsusage.c: Include full_read.h.
75866         (get_fs_usage): Use full_read instead of safe_read.
75867
75868         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
75869
75870 2002-12-12  Karl Berry  <karl@gnu.org>
75871
75872         * config/config.guess: update from prep.
75873
75874 2002-12-11  Bruno Haible  <bruno@clisp.org>
75875
75876         * m4/setenv.m4: New file, from gettext-0.11.5.
75877
75878 2002-12-11  Bruno Haible  <bruno@clisp.org>
75879
75880         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
75881         not unsetenv().
75882         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
75883         modifications:
75884
75885         2002-12-11  Bruno Haible  <bruno@clisp.org>
75886
75887                 * setenv.c (alloca): Fall back to malloc.
75888                 (freea): New macro.
75889                 (setenv): Use freea() to free memory allocated with alloca().
75890
75891         2002-11-13  Bruno Haible  <bruno@clisp.org>
75892
75893                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
75894                 function declarations.
75895                 * unsetenv.c (unsetenv): Likewise.
75896
75897         2002-03-04  Bruno Haible  <bruno@clisp.org>
75898
75899                 Portability to AIX 4.3.3.
75900                 * unsetenv.c: New file, extracted from setenv.c.
75901                 * setenv.c: Move the unsetenv() function to unsetenv.c.
75902
75903         2001-12-20  Bruno Haible  <bruno@clisp.org>
75904
75905                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
75906                 use malloc instead. For SunOS 4.
75907
75908         2001-12-11  Bruno Haible  <bruno@clisp.org>
75909
75910                 * setenv.c: Declare alloca.
75911                 (compar_fn_t): New typedef.
75912                 (KNOWN_VALUE, STORE_VALUE): Use it.
75913
75914         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
75915         setenv.h.
75916
75917 2002-12-10  Paul Eggert  <eggert@twinsun.com>
75918
75919         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
75920         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
75921         Choose values that are less likely to collide with system fnmatch
75922         options.
75923         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
75924         defined (e.g., a pure POSIX system).
75925         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
75926         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
75927
75928 2002-12-06  Paul Eggert  <eggert@twinsun.com>
75929
75930         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
75931         a pain in practice to deal with generated m4 files.  This change
75932         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
75933
75934         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
75935         and jm-glibc-io.m4, as they are no longer a special case.
75936         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
75937         kludge and the auto-generation stuff.  Check only whether the
75938         functions are declared, not whether they exist, since older hosts
75939         that don't declare the functions can't use the optimization anyway.
75940
75941 2002-12-06  Jim Meyering  <jim@meyering.net>
75942
75943         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
75944
75945         Merge in changes from libc's misc/error.c, in preparation
75946         for the merge of gnulib's changes back into libc.
75947
75948         * lib/error.c (_): Define only if not already defined.
75949         Move definition to follow all #include directives.
75950         Include unlocked-io.h only if !_LIBC.
75951         [_LIBC]: Include <libio/libioP.h>.
75952         [USE_IN_LIBIO]: Include <libio/iolibio.h>
75953         (fflush): Tweak definition to use INTUSE.
75954         (putc): Define.
75955
75956 2002-12-05  Paul Eggert  <eggert@twinsun.com>
75957
75958         * lib/alloca.c [defined emacs]: Include "lisp.h".
75959         (xalloc_die) [defined emacs]: New macro.
75960         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
75961         [! defined emacs]: Include <xalloc.h>.
75962         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
75963         (pointer): Typedef to POINTER_TYPE *.
75964         (malloc): Remove decl; we now always use xmalloc.
75965         (alloca): Use old-style definition, since Emacs needs this.
75966         Check for arithmetic overflow when computing combined size.
75967
75968 2002-12-04  Paul Eggert  <eggert@twinsun.com>
75969
75970         Do not generate unlocked-io.h automatically, since it's easier to
75971         maintain it by hand.
75972
75973         * lib/unlocked-io.h: New file, from GNU diffutils,
75974         but with proper copyright notice and attribution.
75975         * lib/gen-uio: Remove.
75976         * lib/Makefile.am: Add copyright notice.
75977         (libfetish_a_SOURCES): Add unlocked-io.h.
75978         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
75979         (DISTCLEANFILES, io_functions): Remove macros.
75980         (EXTRA_DIST): Remove gen_uio.
75981         (unlocked-io.h): Remove rule.
75982
75983 2002-12-04  Jim Meyering  <jim@meyering.net>
75984
75985         Reflect the fact that stat.c and lstat.c are no longer generated.
75986         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75987         (DISTCLEANFILES): Likewise.
75988         (EXTRA_DIST): Likewise.
75989         (all_local): Don't depend on stat.c or lstat.c.
75990         (stat.c, lstat.c): Remove rules.
75991         (EXTRA_DIST): Remove xstat.in.
75992
75993         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75994         * lib/stat.c: New file.  Contents mostly from xstat.in.
75995         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75996         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75997
75998         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75999         too.
76000         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76001
76002 2002-12-03  Jim Meyering  <jim@meyering.net>
76003
76004         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76005         but not semantics, to minimize the differences between these two files.
76006         (safe_read): Change comment to mention SAFE_READ_ERROR.
76007
76008         * lib/safe-read.c (IS_EINTR): Define.
76009         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76010
76011 2002-12-02  Jim Meyering  <jim@meyering.net>
76012
76013         * lib/safe-read.c (EINTR): Define.
76014         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76015         (INT_MAX): Provide fallback.
76016         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76017
76018         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76019
76020 2002-12-02  Bruno Haible  <bruno@clisp.org>
76021
76022         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76023         Define, taken from safe-read.c.
76024         (INT_MAX): Provide fallback.
76025         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76026         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76027
76028         * lib/safe-read.c (EINTR): Remove definition.
76029         (safe_read): Don't use EINTR if it is absent.
76030
76031 2002-12-01  Jim Meyering  <jim@meyering.net>
76032
76033         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76034         zero.
76035         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76036
76037 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76038
76039         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76040         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76041         with `if (! (value < limit)) abort ();', for readability.
76042
76043 2002-11-26  Karl Berry  <karl@gnu.org>
76044
76045         * lib/strdup.c: copy from libc again, with jim's ok.
76046         * lib/.cppi-disable: re-add strdup.c
76047
76048 2002-11-25  Karl Berry  <karl@gnu.org>
76049
76050         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76051         instead of "strtol.c".
76052
76053 2002-11-25  Karl Berry  <karl@gnu.org>
76054
76055         * config/install-sh: update from automake for variable quoting, $0 in
76056         error msgs, etc.
76057
76058         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76059         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76060         entry.
76061
76062 2002-11-25  Jim Meyering  <jim@meyering.net>
76063
76064         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76065
76066 2002-11-24  Karl Berry  <karl@gnu.org>
76067
76068         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76069         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76070
76071 2002-11-24  Jim Meyering  <jim@meyering.net>
76072
76073         Update from coreutils:
76074
76075         * lib/mktime.c: Merge in changes from libc.
76076
76077         Avoid a link-time failure on some Linux systems.
76078         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76079         (otherwise).
76080         (__mon_yday): Declare with the STATIC attribute.
76081         (__mktime_internal): Likewise.
76082         Based on a report from Greg Schafer.
76083
76084 2002-11-23  Jim Meyering  <jim@meyering.net>
76085
76086         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76087         Use `unsigned', not `int', as type of index.
76088
76089         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76090
76091         * lib/fsusage.c: Remove unneeded parentheses around operands of
76092         `defined'.
76093
76094 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76095
76096         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76097         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76098         so that we can be included first.
76099         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76100         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76101         No need to include stddef.h or sys/types.h any more.
76102         Surround local include files with "", not "<>".
76103         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76104         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76105         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76106         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76107         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76108         (ISPRINT): Remove; no longer needed now that we assume C89.
76109
76110         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76111         Preserve errno.
76112
76113         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76114         quotearg_char): Use SIZE_MAX rather than
76115         (size_t) -1 when we are talking about "infinity".
76116
76117         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76118
76119 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76120
76121         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76122         hint that one should use `if (! x) abort ();' rather than `assert
76123         (x);', and anyway it's one less thing to worry about configuring.
76124         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76125         hash_rehash, hash_insert): Use abort rather than assert.
76126
76127 2002-11-22  Bruno Haible  <bruno@clisp.org>
76128
76129         * lib/safe-read.h: Assume C89. Add comments.
76130         (safe_read): Change return type to size_t.
76131         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76132         byte counts > SSIZE_MAX correctly.
76133         * lib/safe-write.h: New file.
76134         * lib/safe-write.c: New file.
76135         * lib/full-read.h: New file.
76136         * lib/full-read.c: New file.
76137         * lib/full-write.h: Assume C89. Add comments.
76138         * lib/full-write.c: Include safe-write.h.
76139         (full_write): Rewritten to use safe_write.
76140         Suggested by Jim Meyering and Paul Eggert.
76141
76142 2002-11-21  Jim Meyering  <jim@meyering.net>
76143
76144         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76145
76146         Merge in changes from the coreutils.
76147
76148         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76149         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76150         <stdint.h>.
76151         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76152         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76153         int.  Work more efficiently if X is the same width as uintmax_t.
76154         Do not compare X to -1, to avoid bogus compiler warning.
76155         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76156         Don't assume that f_frsize and f_bsize are the same type.
76157
76158         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76159         warning on FreeBSD.
76160
76161         * lib/makepath.c (make_path): Restore umask *before* creating the final
76162         component.
76163         (make_path): Minor reformatting.
76164
76165         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76166         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76167         HAVE_MALLOC/HAVE_REALLOC.
76168
76169         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76170         dummy ones.  At least on GNU/Linux systems, `auto' means something
76171         else.
76172         From Michael Stone.
76173
76174 2002-11-21  Bruno Haible  <bruno@clisp.org>
76175
76176         Remove case insensitive option matching.
76177         * lib/argmatch.h (argcasematch): Remove declaration.
76178         (ARGCASEMATCH): Remove macro.
76179         (__xargmatch_internal): Remove case_sensitive argument.
76180         (XARGMATCH): Update.
76181         (XARGCASEMATCH): Remove macro.
76182         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76183         case_sensitive argument.
76184         (argcasematch): Remove function.
76185         (__xargmatch_internal): Remove case_sensitive argument.
76186         (main): Use XARGMATCH instead of XARGCASEMATCH.
76187
76188         * lib/xmalloc.c: Change compile-time error message. Add comment about
76189         required autoconf version.
76190
76191 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76192
76193         Merge argmatch cleanups from Bison.  Assume C89.
76194
76195         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76196         Include stdlib.h, for EXIT_FAILURE.
76197         Always include <string.h>, since we assume C89.
76198         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76199         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76200         Include <stddef.h> instead, since it's all we need for size_t.
76201         (PARAMS): Remove.  All uses removed.
76202         (ARRAY_CARDINALITY): Do not bother to #undef.
76203         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76204         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76205         Remove unnecessary parentheses.
76206         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76207         Insert necessary parentheses.
76208         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76209         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76210
76211 2002-11-19  Bruno Haible  <bruno@clisp.org>
76212
76213         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76214         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76215
76216         * lib/mbswidth.h (PARAMS): Remove macro.
76217         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76218         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76219
76220         * lib/gcd.h (PARAMS): Remove macro.
76221         (gcd): Use ANSI C function declarations.
76222         * lib/gcd.c (gcd): Likewise.
76223
76224 2002-11-15  Bruno Haible  <bruno@clisp.org>
76225
76226         * lib/strcspn.c: Include <stddef.h>.
76227         (strcspn): Use ANSI C function declaration. Change return type to
76228         size_t. Use NULL.
76229         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76230         (strpbrk): Use NULL.
76231         * lib/strpbrk.h (PARAMS): Remove macro.
76232         (strpbrk): Use ANSI C function declaration.
76233         * lib/strstr.c: Don't include <sys/types.h>.
76234         * lib/strstr.h (PARAMS): Remove macro.
76235         (strstr): Use ANSI C function declarations.
76236
76237 2002-11-14  Karl Berry  <karl@gnu.org>
76238
76239         * config/mkinstalldirs: `do' on separate line, instead of
76240         `for var; do'.
76241
76242 2002-11-06  Bruno Haible  <bruno@clisp.org>
76243
76244         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76245         * lib/gcd.c (gcd): Likewise.
76246
76247 2002-11-05  Bruno Haible  <bruno@clisp.org>
76248
76249         * lib/gcd.h: New file, from gettext-0.11.5.
76250         * lib/gcd.c: New file, from gettext-0.11.5.
76251
76252 2002-11-05  Bruno Haible  <bruno@clisp.org>
76253
76254         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76255         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76256         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76257         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76258
76259         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76260         <libintl.h>.
76261         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76262         <libintl.h>.
76263
76264         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76265         * lib/human.c: Include gettext.h instead of <libintl.h>.
76266         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76267         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76268         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76269         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76270         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76271         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76272         (textdomain): Remove definition.
76273         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76274
76275         * lib/long-options.c: Remove include of <libintl.h> and definition of
76276         _.
76277         * lib/same.c: Remove include of <libintl.h> and definition of _.
76278
76279 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76280
76281         * lib/config.charset: A few additions for Solaris.
76282
76283 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76284
76285         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76286         * lib/localcharset.c (locale_charset): Declare as extern "C".
76287
76288 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76289
76290         * lib/config.charset: msdos in uk_UA uses CP1125.
76291
76292 2002-11-04  Bruno Haible  <bruno@clisp.org>
76293
76294         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76295         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76296         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76297         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76298         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76299
76300 2002-11-04  Bruno Haible  <bruno@clisp.org>
76301
76302         * lib/localcharset.c (locale_charset): Don't return an empty string.
76303
76304 2002-11-04  Bruno Haible  <bruno@clisp.org>
76305
76306         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76307         aliases.
76308
76309 2002-11-04  Bruno Haible  <bruno@clisp.org>
76310
76311         * lib/config.charset: Update for newest glibc. Add canonical names
76312         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76313
76314 2002-11-04  Bruno Haible  <bruno@clisp.org>
76315
76316         * lib/config.charset: Add support for NetBSD.
76317
76318 2002-11-04  Bruno Haible  <bruno@clisp.org>
76319
76320         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76321
76322 2002-11-01  Bruno Haible  <bruno@clisp.org>
76323
76324         * configure.in: Add AC_CONFIG_AUX_DIR call.
76325         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76326         test/Makefile.
76327         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76328
76329 2002-09-28  Karl Berry  <karl@gnu.org>
76330
76331         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76332         installed automake until the next release, since changes have been
76333         made.
76334
76335 2002-09-25  Karl Berry  <karl@gnu.org>
76336
76337         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76338         * lib/getopt*: copy from libc/posix.
76339         * lib/gettext.h: copy from gettext.
76340         * lib/.cppi-disable: add strdup.c, gettext.h.
76341
76342 2002-09-25  Karl Berry  <karl@gnu.org>
76343
76344         * config/srclist.txt: enable gettext.h check.
76345         * config/config.{guess,sub}: update from prep.
76346         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76347                 from automake 1.6.3.
76348         See srclist*.
76349
76350 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76351
76352         * regex.c (PATFETCH): Remove the translating fetch.
76353         (PATFETCH_RAW): Rename to PATFETCH.
76354         (set_image_of_range): New fun.
76355         (SET_RANGE_TABLE_WORK_AREA): Use it.
76356         (regex_compile): Don't translate the pattern chars so eagerly.
76357         Only do it when inserting an `exactn' bytecode or when handling
76358         a char-range.
76359         (mutually_exclusive_p): Avoid empty statement.
76360
76361 2002-07-06  Jim Meyering  <meyering@lucent.com>
76362
76363         * m4/README: Don't mention Makefile.am.in.
76364         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76365
76366 2002-07-01  Jim Meyering  <meyering@lucent.com>
76367
76368         * lib/c-stack.c: Include sys/time.h.
76369         From Volker Borchert.
76370
76371 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76372
76373         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76374
76375 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76376
76377         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76378         New macro.  Use it uniformly instead of
76379         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76380         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76381         reported by Vin Shelton.
76382
76383 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76384
76385         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76386         Do not assume SA_SIGINFO behavior.
76387         Bug reported by Jim Meyering on NetBSD 1.5.2.
76388
76389 2002-06-22  Jim Meyering  <meyering@lucent.com>
76390
76391         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76392         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76393
76394         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76395         now that configure.ac uses AC_GNU_SOURCE.
76396         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76397         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76398
76399         Update to latest tools.  Suggestions from Paul Eggert.
76400         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76401         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76402         * m4/fnmatch.m4: Likewise.
76403         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76404         to AC_HEADER_STDBOOL
76405
76406 2002-06-22  Jim Meyering  <meyering@lucent.com>
76407
76408         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76409         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76410
76411 2002-06-22  Jim Meyering  <meyering@lucent.com>
76412
76413         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76414
76415         * lib/exitfail.c, exitfail.h: Likewise.
76416         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76417
76418         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76419         of fnmatch.h.
76420         (EXTRA_DIST): Add fnmatch_loop.c.
76421         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76422
76423         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76424         * lib/fnmatch.c: Update from diffutils-2.8.2.
76425         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76426         * lib/fnmatch.h: Remove file.
76427
76428 2002-06-21  Jim Meyering  <meyering@lucent.com>
76429
76430         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76431         * m4/mbrtowc.m4: Likewise.
76432
76433         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76434         * m4/mbswidth.m4: Reflect name change:
76435         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76436         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76437
76438         * m4/lib-link.m4: Update from gettext-0.11.2.
76439         * m4/gettext.m4: Likewise.
76440
76441         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76442         From Alfred M. Szmidt.
76443
76444 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76445
76446         * lib/file-type.h: Report an error if neither S_ISREG nor
76447         S_IFREG is defined, instead of using a test specific to glibc
76448         2.2.  This should be safe, since POSIX requires S_ISREG and
76449         Unix Version 7 had S_IFREG.  We don't need to check for
76450         <sys/types.h> since we don't use any symbols that it defines.
76451
76452 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76453
76454         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76455         $@-t, so that each temporary file name is unique and valid in the first
76456         8 characters, for operation under DOS.
76457
76458 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76459
76460         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76461
76462 2002-06-15  Jim Meyering  <meyering@lucent.com>
76463
76464         Work even with DJGPP 2.03, which lacks support for symlinks.
76465         From Richard Dawe.
76466         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
76467         is defined.
76468         * lib/lchown.c (S_ISLNK): Likewise.
76469
76470 2002-06-15  Jim Meyering  <meyering@lucent.com>
76471
76472         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
76473         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
76474         have been included before this file.
76475
76476 2002-06-14  Jim Meyering  <meyering@lucent.com>
76477
76478         * lib/file-type.h: Use the version from diffutils-2.8.2.
76479         * lib/file-type.c: Likewise.
76480
76481 2002-06-07  Jim Meyering  <meyering@lucent.com>
76482
76483         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
76484         They're needed at least for NetBSD 1.5.2.
76485         ($statxfs_includes): Include those same headers.
76486         ($statxfs_includes): Include sys/vfs.h if available.
76487         ($statxfs_includes): Likewise for sys/statvfs.h.
76488         Check for the following members in both structs statfs and statvfs:
76489         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
76490
76491 2002-06-01  Jim Meyering  <meyering@lucent.com>
76492
76493         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
76494         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
76495
76496 2002-05-28  Jim Meyering  <meyering@lucent.com>
76497
76498         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
76499         Reported by Volker Borchert.
76500
76501 2002-05-27  Jim Meyering  <meyering@lucent.com>
76502
76503         Fix a problem seen only on nonconforming systems whereby ls.c's
76504         use of localtime, and then of gettimeofday would cause trouble:
76505         the localtime call used to initialize rpl_gettimeofday's save
76506         mechanism would clobber ls's current local time information so
76507         that in any long listing the first file would always be listed
76508         with date 1970-01-01.  Analysis by Volker Borchert.
76509
76510         * lib/gettimeofday.c (localtime): Undefine.
76511         (rpl_localtime): New function.
76512
76513 2002-05-27  Jim Meyering  <meyering@lucent.com>
76514
76515         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
76516         localtime.
76517
76518         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
76519         use the replacement function; it wouldn't resolve at link time.
76520         Reported by Volker Borchert.
76521
76522 2002-05-22  Jim Meyering  <meyering@lucent.com>
76523
76524         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
76525         file-type.h.
76526         * lib/file-type.h: New file.
76527         * lib/file-type.c (file_type): New file/function.  Extracted from
76528         diffutils.
76529
76530 2002-04-30  Jim Meyering  <meyering@lucent.com>
76531
76532         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
76533
76534 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76535
76536         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
76537
76538 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76539
76540         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
76541         Do not check for alloca.h (no longer used) or stdbool.h (was never
76542         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
76543
76544 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76545
76546         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
76547
76548 2002-04-29  Jim Meyering  <meyering@lucent.com>
76549
76550         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
76551         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
76552         Use AC_FUNC_STRNLEN here instead.
76553
76554         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
76555         With autoconf-2.53a, it's part of AC_PROG_CC.
76556
76557 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76558
76559         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
76560         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
76561
76562 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76563
76564         * lib/sig2str.h, lib/sig2str.c: New files.
76565         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
76566
76567 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76568
76569         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
76570         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
76571         of 127, since 64 is the largest conceivable number for ancient
76572         nonstandard hosts.
76573         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
76574
76575 2002-04-28  Jim Meyering  <meyering@lucent.com>
76576
76577         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
76578
76579 2002-04-24  Jim Meyering  <meyering@lucent.com>
76580
76581         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
76582         (jm_PREREQ): Use it.
76583
76584         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
76585         mach/mach.h fcntl.h.
76586         Check for this function: setlocale.
76587
76588 2002-04-24  Jim Meyering  <meyering@lucent.com>
76589
76590         * lib/gettext.h: New file, from Gettext.
76591         * lib/Makefile.am (INCLUDES): Remove -I../intl.
76592         (libfetish_a_SOURCES): Add gettext.h.
76593
76594 2002-04-16  Jim Meyering  <meyering@lucent.com>
76595
76596         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
76597         ut_pid, ut_id, ut_exit.
76598
76599 2002-04-16  Jim Meyering  <meyering@lucent.com>
76600
76601         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
76602         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
76603         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
76604
76605 2002-04-12  Jim Meyering  <meyering@lucent.com>
76606
76607         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
76608         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
76609         existence of the getmntinfo function.  Needed for Darwin 5.3.
76610
76611         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
76612         This is necessary at least on Darwin 5.3.
76613
76614         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
76615         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
76616         strnlen.o in the library, and that makes some versions of ranlib
76617         object.
76618
76619 2002-04-12  Jim Meyering  <meyering@lucent.com>
76620
76621         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
76622
76623 2002-04-09  Jim Meyering  <meyering@lucent.com>
76624
76625         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
76626         to be more precise.  Rather than saying we're checking whether the
76627         function `works', say what we're testing.
76628         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
76629         Reported by Bruno Haible.
76630
76631 2002-03-10  Jim Meyering  <meyering@lucent.com>
76632
76633         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76634         Suggestion from Santiago Vila.
76635
76636 2002-03-08  Jim Meyering  <meyering@lucent.com>
76637
76638         * lib/rename.c: Mention that this wrapper is needed also on
76639         mips-dec-ultrix4.4 systems.
76640
76641 2002-03-02  Jim Meyering  <meyering@lucent.com>
76642
76643         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76644         not HAVE_CLOCK_SETTIME.
76645
76646 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76647
76648         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76649         Check for clock_settime.
76650
76651 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76652
76653         * lib/nanosleep.h: Rename to....
76654         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76655
76656         * lib/gettime.c: New file.
76657         * lib/settime.c: New file.
76658         * lib/stime.c: Remove.
76659
76660         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76661         timespec.h.  Remove nanosleep.h.
76662
76663 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76664
76665         * m4/acl.m4: New file.
76666         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76667         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76668
76669 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76670
76671         * lib/acl.c, lib/acl.h: New files.
76672         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76673
76674 2002-02-24  Jim Meyering  <meyering@lucent.com>
76675
76676         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76677         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76678         cause trouble.  Reported by Nelson Beebe.
76679
76680 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76681
76682         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76683         compilers that don't know that xalloc_die never returns.
76684
76685 2002-02-20  Jim Meyering  <meyering@lucent.com>
76686
76687         * lib/getdate.c: Regenerate using bison-1.33.
76688
76689 2002-02-17  Jim Meyering  <meyering@lucent.com>
76690
76691         * config/config.guess (main): Don't use `head -1'; it's no longer
76692         portable. Use `sed 1q' instead.
76693
76694 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76695
76696         * m4/codeset.m4: Upgrade to gettext-0.11.
76697         * m4/gettext.m4: Upgrade to gettext-0.11.
76698         * m4/glibc21.m4: Upgrade to gettext-0.11.
76699         * m4/iconv.m4: Upgrade to gettext-0.11.
76700         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76701         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76702         * m4/lib-ld.m4: New file, from gettext-0.11.
76703         * m4/lib-link.m4: New file, from gettext-0.11.
76704         * m4/lib-prefix.m4: New file, from gettext-0.11.
76705         * m4/progtest.m4: Upgrade to gettext-0.11.
76706
76707 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76708
76709         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76710         (jm_PREREQ): Use it.
76711
76712 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76713
76714         * lib/posixver.c, lib/posixver.h: New files.
76715         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76716
76717 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76718             Bruno Haible  <bruno@clisp.org>
76719
76720         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76721         (fwrite_success_callback): New declaration.
76722         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76723         print_unicode_char. Call failure callback instead of error.
76724         (fwrite_success_callback): New function.
76725         (exit_failure_callback): New function.
76726         (fallback_failure_callback): New function.
76727         (print_unicode_char): Call unicode_to_mb.
76728
76729 2002-01-26  Jim Meyering  <meyering@lucent.com>
76730
76731         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76732         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76733
76734 2002-01-26  Jim Meyering  <meyering@lucent.com>
76735
76736         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
76737
76738 2002-01-22  Paul Eggert  <eggert@twinsun.com>
76739
76740         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
76741
76742 2002-01-22  Jim Meyering  <meyering@lucent.com>
76743
76744         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
76745         Otherwise, some versions of automake would omit the rule that makes
76746         Makefile from Makefile.in.
76747
76748 2002-01-21  Paul Eggert  <eggert@twinsun.com>
76749
76750         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
76751         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76752         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
76753         (memcoll): Set errno to zero if there is no error.
76754
76755         * lib/quotearg.c (quotearg_buffer_restyled):
76756         Fix bug with quoting buffers containing NUL when backslashing escapes.
76757         This bug was exposed by the other changes in this patch.
76758         (quotearg_n_options): New arg ARGSIZE.
76759         All callers changed.
76760         (quoting_options_from_style): New function.
76761         (quotearg_n_style): Use it.
76762         (quotearg_n_style_mem): New function.
76763
76764         * lib/quotearg.h (quotearg_n_style_mem): New function.
76765
76766 2002-01-19  Jim Meyering  <meyering@lucent.com>
76767
76768         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
76769         Remove useless quotes: DF_PROG="df".
76770         * m4/strnlen.m4: New file.
76771
76772 2002-01-16  Paul Eggert  <eggert@twinsun.com>
76773
76774         * lib/backupfile.c (ISDIGIT): Comment fix.
76775         * lib/getdate.y (ISDIGIT): Likewise.
76776         * lib/posixtm.c (ISDIGIT, year): Likewise.
76777         * lib/strverscmp.c (ISDIGIT): Likewise.
76778         * lib/userspec.c (ISDIGIT): Likewise.
76779
76780 2002-01-16  Jim Meyering  <meyering@lucent.com>
76781
76782         * lib/getdate.y: Add three semicolons, each just before a closing
76783         brace. Bison (as of version 1.31) no longer papers over that mistake.
76784
76785 2002-01-05  Jim Meyering  <meyering@lucent.com>
76786
76787         * lib/version-etc.c (version_etc_copyright): Update copyright year.
76788
76789 2001-12-19  Paul Eggert  <eggert@twinsun.com>
76790
76791         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
76792         not silently exit merely because the output buffer happens to
76793         have nothing pending.
76794
76795 2001-12-18  Paul Eggert  <eggert@twinsun.com>
76796
76797         See the big note in ../ChangeLog.
76798         * lib/human.c (suffixes): Prefer K to k for 1024.
76799         (generate_suffix_backwards): New function.
76800         (human_readable_inexact): Use it.
76801         * lib/xstrtol.c (__xstrtol): If there is no number but there
76802         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
76803         Accept 'K' as well as 'k'.
76804
76805 2001-12-15  Jim Meyering  <meyering@lucent.com>
76806
76807         * lib/regex.h (__restrict_arr): Update from libc.
76808
76809         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
76810         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
76811         (STREQ): Define.
76812
76813 2001-12-14  Jim Meyering  <meyering@lucent.com>
76814
76815         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
76816         Suggestion from Bruno Haible.
76817
76818 2001-12-10  Jim Meyering  <meyering@lucent.com>
76819
76820         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
76821         xrealloc, Instead, include "xalloc.h".
76822         (initbuffer): Don't cast xmalloc return value to char*.
76823         (readline): Reword comment.
76824         Don't cast xrealloc return value to char*
76825         Return NULL, not 0.
76826
76827 2001-12-09  Jim Meyering  <meyering@lucent.com>
76828
76829         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
76830         about `signed and unsigned type in conditional expression'.
76831         * lib/posixtm.c (posix_time_parse): Likewise.
76832
76833         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
76834
76835         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
76836         to avoid a pedantic warning.
76837
76838         * lib/getstr.c: Don't include assert.h.
76839         (getstr): Remove warning-evoking assertions.
76840         Return -1 if offset parameter is out of bounds.
76841         Change the type of a local from int to size_t.
76842
76843         * lib/strftime.c (my_strftime_localtime_r): Include this function
76844         definition in the `#if ! HAVE_TM_GMTOFF' block.
76845
76846         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
76847         Include xalloc.h instead.
76848
76849 2001-12-02  Jim Meyering  <meyering@lucent.com>
76850
76851         * lib/tempname.c: Don't declare getenv, thus reverting the change of
76852         2001-11-18.  It's no longer necessary, now that stdlib.h is always
76853         included.
76854
76855         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
76856         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
76857
76858 2001-11-30  Akim Demaille  <akim@epita.fr>
76859
76860         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
76861         before being defined.
76862
76863 2001-11-27  Paul Eggert  <eggert@twinsun.com>
76864
76865         * lib/quotearg.h (quotearg_n, quotearg_n_style):
76866         First arg is int, not unsigned.
76867         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
76868         (SIZE_MAX, UINT_MAX): New macros.
76869         (quotearg_n_options): Abort if N is negative.
76870         Avoid overflow check on hosts where size_t is 64 bits and int
76871         is 32 bits, as overflow is impossible there.
76872         Fix off-by-one typo that caused unnecessary reallocation.
76873
76874 2001-11-27  Jim Meyering  <meyering@lucent.com>
76875
76876         * lib/tempname.c: Merge with version from libc.
76877         * lib/regex.c: Likewise.
76878
76879         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
76880         systems for which STDC_HEADERS is 0, it was not included, resulting in
76881         a warning about an integer-to-pointer conversion problem with getenv.
76882         Reported by Volker Borchert.
76883
76884 2001-11-26  Jim Meyering  <meyering@lucent.com>
76885
76886         * lib/gtod.h: Remove file.
76887         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
76888         * lib/gettimeofday.c: Don't include gtod.h.
76889         (GTOD_init): Remove function.
76890         (rpl_gettimeofday): Do its job here instead, rather than aborting.
76891         Suggestion from Volker Borchert.
76892
76893 2001-11-23  Jim Meyering  <meyering@lucent.com>
76894
76895         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
76896         it.
76897         * lib/hash.c (struct hash_table): Define it here instead.
76898
76899 2001-11-22  Jim Meyering  <meyering@lucent.com>
76900
76901         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
76902
76903 2001-11-20  Jim Meyering  <meyering@lucent.com>
76904
76905         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
76906         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
76907
76908 2001-11-19  Jim Meyering  <meyering@lucent.com>
76909
76910         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
76911         directory.  Use "conftestXXXXXX" as the template.
76912         Suggestion from Paul Eggert.
76913
76914         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
76915         immediately, so the test doesn't mistakenly hit the max-open-files
76916         limit.
76917
76918 2001-11-18  Paul Eggert  <eggert@twinsun.com>
76919
76920         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
76921         (TEMPORARIES): New macro.
76922         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
76923         removes an artificial limitation (e.g. HP-UX 10.20, where
76924         TMP_MAX is 17576).
76925
76926 2001-11-18  Jim Meyering  <meyering@lucent.com>
76927
76928         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
76929
76930 2001-11-18  Jim Meyering  <meyering@lucent.com>
76931
76932         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
76933         on SunOS 4.
76934
76935         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
76936         files will be created before anything else.
76937
76938 2001-11-17  Paul Eggert  <eggert@twinsun.com>
76939
76940         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
76941         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
76942
76943 2001-11-17  Jim Meyering  <meyering@lucent.com>
76944
76945         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
76946         Prompted by a report from Bob Proulx.
76947
76948         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
76949         Instead, require UTILS_FUNC_MKSTEMP.
76950
76951 2001-11-17  Jim Meyering  <meyering@lucent.com>
76952
76953         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
76954         Now, that's done as part of AC_FUNC_STRTOD.
76955
76956 2001-11-17  Jim Meyering  <meyering@lucent.com>
76957
76958         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
76959         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
76960         rather than group writable.  Patch by Juan F. Codagnone.
76961
76962         * lib/readtokens.c: Remove explicit declarations of xmalloc and
76963         xrealloc, Instead, include "xalloc.h".
76964
76965         * lib/mountlist.c: Include unlocked-io.h after all system headers.
76966         Remove explicit declarations of xmalloc, xrealloc,
76967         and xstrdup.  Instead, include "xalloc.h".
76968
76969         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
76970         unlocked-io.h.
76971         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
76972         Likewise.
76973         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
76974
76975         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
76976         Reported by Padraig Brady.
76977
76978         * lib/mkstemp.c: #undef mkstemp.
76979         Include config.h.
76980         (rpl_mkstemp): Rename from mkstemp.
76981         Protoize.
76982
76983 2001-11-16  Jim Meyering  <meyering@lucent.com>
76984
76985         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76986         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76987         determine the amount of total physical memory, use pstat_getstatic.
76988         HPUX-11 doesn't define _SC_PHYS_PAGES.
76989         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76990         If sysconf couldn't be used to determine the amount of available
76991         physical memory, use both pstat_getstatic and pstat_getdynamic.
76992         Based on a patch from Bob Proulx.
76993
76994 2001-11-10  Jim Meyering  <meyering@lucent.com>
76995
76996         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76997         (jm_PREREQ): Use it.
76998
76999 2001-11-09  Jim Meyering  <meyering@lucent.com>
77000
77001         * m4/jm-macros.m4: Require autoconf-2.52f.
77002         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77003         Use these AC_-prefixed names, not the AM_-prefixed ones.
77004
77005         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77006
77007 2001-11-05  Jim Meyering  <meyering@lucent.com>
77008
77009         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77010
77011 2001-11-04  Jim Meyering  <meyering@lucent.com>
77012
77013         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77014         $DEFS.
77015
77016 2001-11-03  Jim Meyering  <meyering@lucent.com>
77017
77018         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77019         of AC_DEFUN.
77020
77021         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77022         know the name of the variable in the macro definition.
77023
77024 2001-11-03  Jim Meyering  <meyering@lucent.com>
77025
77026         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77027         in argmatch_to_argument call.
77028
77029         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77030         argument.
77031
77032         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77033         e.g., a fault due to an attempt to free a NULL pointer.
77034
77035 2001-11-01  Jim Meyering  <meyering@lucent.com>
77036
77037         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77038         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77039
77040 2001-11-01  Jim Meyering  <meyering@lucent.com>
77041
77042         * lib/dirfd.c, lib/dirfd.h: New files.
77043         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77044
77045         * lib/hash.c (hash_print) [TESTING]: Clean up.
77046
77047 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77048
77049         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77050         to avoid a warning if -Wall.
77051
77052 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77053
77054         * README: New file
77055         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77056         (per RMS's instructions, this is now the canonical source)
77057         * lgpl/, gpl/: New directories.
77058
77059 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77060
77061         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77062
77063 2001-10-21  Jim Meyering  <meyering@lucent.com>
77064
77065         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77066         this code would end up calling gettext even in packages built
77067         with --disable-nls.
77068         * lib/getopt.c (_): Likewise.
77069         * lib/regex.c (_): Likewise.
77070
77071 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77072
77073         * m4/error.m4 (jm_PREREQ_ERROR):
77074         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77075         AC_FUNC_STRERROR_R does that.
77076         Check for strerror declaration.
77077
77078         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77079         are supposed to have them these days.
77080         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77081         Merge changes from latest Autoconf CVS.
77082         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77083         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77084         POSIX decided to standardize on the int flavor of strerror_r.
77085
77086 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77087
77088         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77089         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77090         Use strerror_r that is only a macro, even if it is not a function.
77091         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77092         (private_strerror): Use prototypes, not old-style function definition.
77093         (print_errno_message): New function.
77094         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77095         char*-flavored one.
77096         (error_tail, error, error_at_line): Use it.
77097
77098 2001-10-11  Jim Meyering  <meyering@lucent.com>
77099
77100         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77101         and quote_n (1, ... to avoid clobbering a buffer.
77102
77103 2001-10-05  Jim Meyering  <meyering@lucent.com>
77104
77105         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77106         hash-pjw.h.
77107         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77108         * lib/hash-pjw.h: New file.
77109
77110 2001-09-30  Jim Meyering  <meyering@lucent.com>
77111
77112         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77113         `struct fsstat' has the `f_fstypename' member.
77114         Use that to define FS_TYPE, which is now used to make
77115         the getfsstat link test tighter.
77116
77117 2001-09-30  Jim Meyering  <meyering@lucent.com>
77118
77119         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77120         Include <sys/ucred.h>, for Apple Darwin.
77121         Include sys/mount.h and sys/fs_types.h only if available.
77122         (FS_TYPE): Define.
77123         (read_filesystem_list): Use FS_TYPE.
77124
77125 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77126
77127         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77128         a boolean context.
77129
77130 2001-09-29  Jim Meyering  <meyering@lucent.com>
77131
77132         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77133         [one-argument getmntent function]): Include stdio.h before mntent.h.
77134         SunOS 4.1.x needs it for the declaration of `FILE'.
77135         Patch by Volker Borchert.
77136
77137         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77138         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77139         sys/fs_types.h, and make the link-test for getfsstat guard #include
77140         directives with appropriate #if HAVE_*_H tests so that we can
77141         detect getfsstat on Apple Darwin1.3.7 systems.
77142         Reported by Nelson Beebe.
77143         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77144
77145 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77146
77147         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77148         #defines strtoimax.  Also treat the other strto* functions
77149         like strtoimax.
77150
77151         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77152         Check for strtoul and strtoumax,
77153         as those declarations are made even in the signed case.
77154         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77155         Likewise, for strtol and strtoimax.
77156
77157 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77158
77159         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77160         #defines strtoimax.  Also treat the other strto* functions
77161         like strtoimax.
77162
77163         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77164         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77165         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77166
77167 2001-09-26  Jim Meyering  <meyering@lucent.com>
77168
77169         Most macros in unlocked-io.h had the wrong number of arguments.
77170         * lib/gen-uio: New script.
77171         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77172         * lib/unlocked-io.hin: Remove file.
77173         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77174         rather than trying to embed it here.
77175         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77176         Reported by Padraig Brady.
77177
77178 2001-09-25  Volker Borchert  <bt@teknon.de>
77179
77180         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77181         `result'.
77182
77183 2001-09-24  Jim Meyering  <meyering@lucent.com>
77184
77185         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77186
77187 2001-09-23  Jim Meyering  <meyering@lucent.com>
77188
77189         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77190         instead of the mere test for existence of mntent.h.  The latter
77191         would get a false-positive on AIX 3.4 systems.
77192         In the outer getmntent if-block, don't die if neither of the getmntent
77193         tests succeeds.  Instead, just fall through and continue with the
77194         remaining tests.
77195
77196 2001-09-23  Jim Meyering  <meyering@lucent.com>
77197
77198         * lib/mountlist.c: Remove useless parentheses in #if directives.
77199         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77200         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77201
77202 2001-09-22  Jim Meyering  <meyering@lucent.com>
77203
77204         * m4/gettext.m4: New file.  From gettext.
77205         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77206         * m4/progtest.m4: Likewise
77207         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77208         * m4/glibc21.m4: Likewise.
77209
77210         * m4/libintl.m4: Remove.  No longer used.
77211
77212 2001-09-22  Jim Meyering  <meyering@lucent.com>
77213
77214         * lib/localcharset.c: Update from latest gettext.
77215         * lib/config.charset: Likewise.
77216
77217 2001-09-20  Jim Meyering  <meyering@lucent.com>
77218
77219         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77220         strtoimax.
77221         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77222         strtoumax.
77223
77224 2001-09-20  Jim Meyering  <meyering@lucent.com>
77225
77226         * lib/xstrtol.c (strtoimax): Guard declaration with
77227         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77228         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77229         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77230         (strtoumax): Likewise, for completeness (it wasn't necessary).
77231
77232 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77233
77234         * lib/strtoimax.c (HAVE_LONG_LONG):
77235         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77236         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77237         to work around bug in IBM C compiler.
77238
77239 2001-09-17  Jim Meyering  <meyering@lucent.com>
77240
77241         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77242         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77243         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77244         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77245         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77246         whenever the right hand side need not be expanded by the shell.
77247
77248 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77249
77250         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77251         library.  It's not correct, as some older glibcs are buggy.
77252         fnmatch wasn't fixed until glibc 2.2.
77253
77254         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77255         special shell magic here.
77256
77257 2001-09-16  Jim Meyering  <meyering@lucent.com>
77258
77259         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77260         * m4/jm-macros.m4: Require it.
77261
77262 2001-09-16  Jim Meyering  <meyering@lucent.com>
77263
77264         * lib/mkdir.c: New file.
77265
77266 2001-09-15  Jim Meyering  <meyering@lucent.com>
77267
77268         * m4/jm-macros.m4: Check for help2man.
77269
77270 2001-09-11  Jim Meyering  <meyering@lucent.com>
77271
77272         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77273         The body, by Paul Eggert, was moved here from configure.in.
77274         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77275
77276 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77277
77278         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77279         (jm_PREREQ): Use it.
77280
77281 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77282
77283         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77284         Use ssize_t, not int, to store result of readlink.
77285         Check for ssize_t overflow as well as size_t overflow,
77286         as POSIX says the result of readlink is implementation-defined
77287         when ssize_t overflows.
77288         Remove unnecessary cast to char*.
77289         Use free+malloc instead of realloc, as the storage doesn't need
77290         to be preserved and it's clearer and can be more efficient that way.
77291         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77292         * lib/xreadlink.h (xreadlink): Update prototype.
77293
77294 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77295
77296         * lib/xgetcwd.c: Revert some of the previous change; intead,
77297         fix the HAVE_GETCWD_NULL code to behave more like the
77298         !HAVE_GETCWD_NULL code used to.
77299
77300         Include "xalloc.h".
77301         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77302         invoke xalloc_die.
77303
77304 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77305
77306         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77307         sys/param.h, as pathmax.h includes them.
77308
77309 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77310
77311         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77312         (jm_PREREQ_XGETCWD): New macro.
77313
77314         * m4/getcwd.m4: New file.
77315
77316 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77317
77318         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77319         like the HAVE_GETCWD_NULL code.
77320         Include pathmax.h if not HAVE_GETCWD.
77321         Do not include xalloc.h.
77322         (INITIAL_BUFFER_SIZE): New symbol.
77323         Do not use xmalloc / xrealloc, since the caller is responsible for
77324         handling errors.  Preserve errno around `free' during failure.
77325         Do not overrun buffer when using getwd.
77326
77327 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77328
77329         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77330         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77331         getcwd (NULL, 0).
77332
77333 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77334
77335         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77336         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77337         spotted by Jim Meyering.
77338
77339 2001-09-03  Jim Meyering  <meyering@lucent.com>
77340
77341         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77342         failure.
77343
77344 2001-09-02  Jim Meyering  <meyering@lucent.com>
77345
77346         * lib/error.c: Update from GNU libc.
77347
77348 2001-09-01  Jim Meyering  <meyering@lucent.com>
77349
77350         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77351         Used by df.
77352
77353 2001-09-01  Jim Meyering  <meyering@lucent.com>
77354
77355         * lib/xreadlink.c: New file.
77356         * lib/xreadlink.h: New file.
77357         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77358         xreadlink.h.
77359
77360         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77361         doesn't conflict with sparc Solaris 7's definition in
77362         /usr/include/sys/int_types.h.
77363
77364         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77365         files.
77366         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77367         and strncasecmp as r-values.  Unixware didn't have declarations.
77368
77369 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77370
77371         * lib/xstrtol.h: Add copyright notice.
77372         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77373         LONGINT_INVALID_SUFFIX_CHAR.
77374
77375 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77376
77377         * lib/xstrtol.c (strtoimax): New decl.
77378
77379 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77380
77381         * lib/xgetcwd.c: Don't include pathmax.h.
77382         Include stdlib.h and unistd.h if available.
77383         Include xalloc.h.
77384         (xmalloc, xstrdup, free): Remove decls.
77385         (xgetcwd): Don't assume sizes fit in unsigned.
77386         Check for overflow when computing sizes.
77387         Simplify reallocation code.
77388
77389 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77390
77391         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77392         a directory's st_size can have an arbitrary value, so the old
77393         usage could waste an arbitrary amount of memory.  All uses
77394         changed.
77395         * lib/savedir.h: Update prototype.
77396
77397 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77398
77399         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77400
77401         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77402         old strtoimax.c.
77403
77404         Also, make the following further changes to make this file's
77405         configuration more similar to that of strtol.c:
77406         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77407         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77408         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77409         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77410         changed to signed values.
77411
77412         And make the following changes as well:
77413         Fix copyright notice, as 1999 was missing.
77414         (verify): New macro.
77415         (strtoimax): Check sizes at compile-time, not run-time.
77416         Prefer strtol to strtoll if both work.
77417         (main): Remove; it was not that useful and was a pain to maintain.
77418
77419         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77420
77421 2001-08-31  Jim Meyering  <meyering@lucent.com>
77422
77423         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77424         Use an initial, malloc'd, buffer of length 128 rather than
77425         a statically allocated one of length 1024.
77426
77427 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77428
77429         Simplify code, partly by assuming autoconf 2.52 semantics.
77430
77431         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77432
77433         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77434         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77435         All uses removed.
77436         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77437         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77438         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77439         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77440         jm_AC_HEADER_INTTYPES_H.
77441         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77442
77443         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77444
77445         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77446         Quote first arg of AC_DEFUN.
77447         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77448         since they are needed to parse the include file even if we need
77449         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77450         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77451         but with opposite signedness.
77452
77453 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77454
77455         Merge 'exclude' changes from tar 1.13.22.
77456         This fixes one or two unlikely storage allocation overflow bugs,
77457         but doesn't change user-visible behavior otherwise.
77458
77459 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77460
77461         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77462         (jm_PREREQ_EXCLUDE): New macro.
77463
77464 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77465
77466         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
77467         tm to be declared.
77468
77469 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77470
77471         * lib/hash.c: Remove '2001' from copyright notice.
77472
77473 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77474
77475         * lib/full-write.h: New file.
77476         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
77477         * lib/full-write.c: Correct credits, as cccp.c no longer
77478         exists and anyway it was so heavily changed from the old cccp
77479         code as to be unrecognizable.  Include full-write.h.
77480         (full_write): Return size_t, with short writes meaning failure.
77481         All callers changed.  This fixes a bug with large buffers
77482         on 64-bit hosts.
77483         * lib/utime.c: Include full-write.h.
77484
77485 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77486
77487         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
77488         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
77489         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
77490         Include if available.
77491         (<xalloc.h>): Include
77492         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
77493         (verify): New macro.  Use it to verify that EXCLUDE macros do not
77494         collide with FNM macros.
77495         (struct patopts): New struct.
77496         (struct exclude): Use it, as exclude patterns now come with options.
77497         (new_exclude): Support above changes.
77498         (new_exclude, add_exclude_file):
77499         Initial size must now be a power of two to simplify overflow checking.
77500         (free_exclude, fnmatch_no_wildcards): New function.
77501         (excluded_filename): No longer requires options arg, as the options
77502         are determined by add_exclude.  Now returns bool, not int.
77503         (excluded_filename, add_exclude):
77504         Add support for the fancy new exclusion options.
77505         (add_exclude, add_exclude_file): Now takes int options arg.
77506         Check for arithmetic overflow when computing sizes.
77507         (add_exclude_file): xrealloc might modify errno, so don't
77508         realloc until after errno might be used.
77509
77510         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
77511         New macros.
77512         (free_exclude): New decl.
77513         (add_exclude, add_exclude_file): Now takes int options arg.
77514         (excluded_filename): No longer requires options arg, as the options
77515         are determined by add_exclude.  Now returns bool, not int.
77516
77517 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77518
77519         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77520
77521 2001-08-27  Jim Meyering  <meyering@lucent.com>
77522
77523         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
77524
77525         * lib/version-etc.c (N_): Remove definition.
77526         Revert most of last change.
77527         Instead, simply don't mark the `Copyright...' string for translation.
77528         Based on advice from Paul Eggert.
77529
77530         * lib/strtoxmax.c: Tweak comment.
77531
77532 2001-08-26  Jim Meyering  <meyering@lucent.com>
77533
77534         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
77535
77536         * m4/xstrtoimax.m4: New file.
77537         * m4/xstrtoumax.m4: Add comments explaining why we
77538         AC_REPLACE_FUNCS(strtol).
77539
77540 2001-08-26  Jim Meyering  <meyering@lucent.com>
77541
77542         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
77543         of copyright with `%s' so translators don't get an untranslated
77544         message in 2002.
77545         (COPYRIGHT_YEAR): Define.
77546         (version_etc): Use fprintf rather than fputs.
77547         Suggestion from Ulrich Drepper.
77548
77549         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
77550
77551         * lib/strtoll.c: New file, from GNU libc.
77552         * lib/xstrtoimax.c: New file.
77553
77554         * lib/xstrtol.h: Add xstrtoimax.
77555         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
77556         * lib/strtoimax.c: New file.  Likewise, but first define
77557         STRTOUXMAX_SIGNED.
77558
77559         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
77560         ...
77561         * lib/strtoxmax.c: ... then renamed to this.
77562
77563 2001-08-18  Paul Eggert  <eggert@twinsun.com>
77564
77565         * m4/inttypes.m4: Add AC_PREREQ(2.13).
77566         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
77567         (jm_AC_TYPE_INTMAX_T): New macro.
77568         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
77569
77570         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
77571
77572         * m4/longlong.m4: Renamed from ulonglong.m4.
77573         * m4/inttypes.m4: Renamed from inttypes_h.m4.
77574         * m4/uintmax_t.m4: Removed.
77575
77576 2001-08-13  Paul Eggert  <eggert@twinsun.com>
77577
77578         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
77579         Port to Solaris 8, where 'sed' requires a space after the 'r'
77580         command, and where sh dislikes "$/".  Clean up the spacing a bit.
77581         Redirect output to $tmp just once.
77582
77583 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
77584
77585         * lib/addext.c (<errno.h>): Include.
77586         (errno): Declare if not defined.
77587         (addext): Work correctly when pathconf returns -1 and leaves
77588         errno alone because there is no limit.  Also, work even if
77589         pathconf returns a value greater than SIZE_MAX.
77590
77591 2001-08-12  Jim Meyering  <meyering@lucent.com>
77592
77593         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
77594         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
77595         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
77596         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
77597         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
77598         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
77599         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
77600         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
77601         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
77602         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
77603         utime.m4, utimes.m4, xstrtoumax.m4:
77604         Quote the first argument in each use of AC_DEFUN.
77605
77606 2001-08-12  Jim Meyering  <meyering@lucent.com>
77607
77608         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
77609         Simply `return getcwd (NULL, 0);'.
77610         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
77611         Use 1300 as initial value for length, not PATH_MAX.
77612
77613         * lib/pathmax.h: Clean up cpp syntax.
77614
77615 2001-08-12  Jim Meyering  <meyering@lucent.com>
77616
77617         * lib/gettimeofday.c: New file.
77618         * lib/gtod.h: New file.
77619         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
77620
77621 2001-08-05  Jim Meyering  <meyering@lucent.com>
77622
77623         * m4/jm-macros.m4: Require autoconf-2.52.
77624
77625 2001-08-04  Jim Meyering  <meyering@lucent.com>
77626
77627         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
77628         stmt, to get in sync with glibc.
77629
77630 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77631
77632         The following changes are from gettext 0.10.39 as maintained by
77633         Bruno Haible.
77634
77635         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77636         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77637         with inverted sense.  All uses changed.
77638
77639         * lib/mbswidth.c: Don't include <limits.h>.
77640         Include <stdlib.h> and <string.h> unconditionally.
77641         (iswcntrl, mbsinit, ISCNTRL): New macros.
77642         (mbsnwidth): Use K&R style function declarations.
77643         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77644         can optimize it when MB_CUR_MAX == 1.
77645         The width of control characters is zero, not 1.
77646
77647 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77648
77649         The following changes are from gettext 0.10.39 as maintained by
77650         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77651
77652         * m4/codeset.m4: Upgrade to serial AM1.
77653         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77654         all uses changed.  Quote first arg of AC_DEFUN.
77655         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77656
77657         * m4/iconv.m4: Upgrade to serial AM2.
77658         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77659         Add --with-libconv-prefix.
77660         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77661         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77662         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77663         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77664         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77665
77666         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77667         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77668         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77669         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77670         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77671         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77672         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77673         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77674         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77675
77676         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77677         string.h any more.
77678
77679         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77680         not the default value.
77681
77682         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77683         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77684         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77685         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77686         Also check for iswcntrl, used for wcwidth fallback.
77687         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77688         to Autoconf 2.13.
77689
77690 2001-08-03  Jim Meyering  <meyering@lucent.com>
77691
77692         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77693         as it was in the original.  Reported by Paul Eggert.
77694
77695 2001-07-16  Jim Meyering  <meyering@lucent.com>
77696
77697         * m4/gettimeofday.m4: New file.
77698         Prompted by a report from Bernhard Baehr.
77699
77700 2001-07-15  Jim Meyering  <meyering@lucent.com>
77701
77702         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77703         stuff. Now it's in ../Makefile.cfg.
77704
77705 2001-07-15  Jim Meyering  <meyering@lucent.com>
77706
77707         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77708         (BUILT_SOURCES): Add unlocked-io.h.
77709         (io_functions): Define.
77710         (unlocked-io.h): New rule.
77711         (DISTCLEANFILES): Add unlocked-io.h.
77712         (all-local): Depend on unlocked-io.h, to ensure it is created.
77713
77714         * lib/unlocked-io.hin: New file
77715
77716         * lib/regex.c: Update from glibc.
77717
77718 2001-07-05  Jim Meyering  <meyering@lucent.com>
77719
77720         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77721         recommendation.
77722         (libfetish_a_SOURCES): Put all .h files here instead.
77723         Remove a thus-exposed (better checks in automake) duplicate and
77724         two unnecessary .h files.
77725
77726 2001-07-04  Jim Meyering  <meyering@lucent.com>
77727
77728         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77729         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77730         distcheck failure.
77731
77732 2001-07-02  Jim Meyering  <meyering@lucent.com>
77733
77734         The following changes were prompted by suggestions from Bruno Haible.
77735
77736         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
77737         is now generated.
77738         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
77739         definition of EXTRA_DIST.
77740         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
77741         ensure that the generated file is created/updated whenever the list
77742         of $(unlocked_functions) is changed.
77743         (jm-glibc-io.m4): New rule.
77744         (unlocked-io.h): New rule -- currently unused.
77745
77746 2001-06-24  Jim Meyering  <meyering@lucent.com>
77747
77748         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
77749         unmatched right bracket, rather than kludging it with an extra,
77750         falsely-matching quote in a comment.  Patch by Akim Demaille.
77751
77752 2001-06-11  Jim Meyering  <meyering@lucent.com>
77753
77754         * lib/regex.c: Update from GNU libc.
77755
77756 2001-05-27  Jim Meyering  <meyering@lucent.com>
77757
77758         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
77759         Check for ut_type in struct utmp.
77760
77761 2001-05-27  Jim Meyering  <meyering@lucent.com>
77762
77763         * lib/readutmp.h (UT_TYPE): Define.
77764
77765 2001-05-24  Jim Meyering  <meyering@lucent.com>
77766
77767         * lib/argmatch.c: Include "quote.h".
77768         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
77769         quote function.  Reported by Göran Uddeborg.
77770
77771 2001-05-22  Jim Meyering  <meyering@lucent.com>
77772
77773         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
77774         now that we use the package-supplied version unconditionally.
77775         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
77776
77777 2001-05-21  Jim Meyering  <meyering@lucent.com>
77778
77779         * m4/regex.m4: Change a couple backticks to single quotes to avoid
77780         shell syntax errors.
77781
77782 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77783
77784         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
77785
77786 2001-05-20  Paul Eggert  <eggert@twinsun.com>
77787
77788         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
77789         Don't bother to check library strftime, since
77790         we'll be using our own my_strftime function anyway.
77791         Define my_strftime instead of strftime.
77792
77793 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
77794
77795         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
77796         which is not yet declared.
77797
77798 2001-05-15  Jim Meyering  <meyering@lucent.com>
77799
77800         * m4/regex.m4: Use proper quoting so brackets appear in the test
77801         program.
77802         Reported by, and with help from, Bruno Haible.
77803
77804 2001-05-13  Jim Meyering  <meyering@lucent.com>
77805
77806         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
77807         undefined.
77808
77809 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77810
77811         dirname code cleanup.  base_name now behaves more compatibly
77812         with POSIX basename when given file names that have trailing
77813         slashes, and similarly for dir_name.  Add new primitives
77814         base_len and dir_len.  Put the directory-name-related decls
77815         into dirname.h.
77816
77817         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
77818         * lib/backupfile.c (base_name): Likewise.
77819         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
77820         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
77821         * lib/makepath.c (strip_trailing_slashes): Likewise.
77822         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
77823         ISSLASH): Likewise.
77824         * lib/rename.c (strip_trailing_slashes): Likewise.
77825         * lib/same.c (base_name): Likewise.
77826         * lib/stripslash.c (ISSLASH): Likewise.
77827
77828         * lib/addext.c: Include <dirname.h> after size_t is defined.
77829         * lib/backupfile.c: Likewise.
77830
77831         * lib/addext.c (addext): Use base_len to trim redundant
77832         trailing slashes instead of doing it ourselves.
77833         But do not trim the last slash if it is not redundant.
77834
77835         * lib/backupfile.c (find_backup_file_name,
77836         max_backup_version): Use base_len instead of rolling it ourselves.
77837         Handle the case of "" and (on DOS) "C:" correctly.
77838
77839         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
77840         needed. Include <string.h>, <dirname.h>.
77841         (base_name): Allow file names ending in slashes, other than names
77842         that are all slashes.  In this case, return the basename followed
77843         by the slashes.  This is more general, and can be used in places
77844         where the original base_name purposely had an assertion failure.
77845         (base_len): New function.
77846
77847         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
77848         Do not include <assert.h>; no longer needed.
77849         Include xalloc.h.
77850         (memrchr): Remove decl.
77851         (dir_name_r): Remove.
77852         (dir_len): Renamed from dirlen.  All callers changed.
77853         Rewrite in terms of base_name, for simplicity and consistency.
77854         (dir_name): Never return NULL.  All callers changed.
77855         Do not include <stdlib.h> in test program; no longer needed.
77856         return 0; is fine for test program.
77857
77858         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
77859         New macros.
77860         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
77861
77862         * lib/path-concat.c (path_concat): Use base_len to compute
77863         base length, not strlen; this means we cannot rely on memcpy
77864         to null-terminate.
77865
77866         * lib/same.c (STREQ): Remove.
77867         (same_name): Handle the case where the basename ends in trailing '/'.
77868
77869         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
77870         a slash was stripped.  Do not strip the last slash after a
77871         file system prefix.
77872
77873 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77874
77875         * lib/Makefile.am (libfetish_a_SOURCES):
77876         Add strftime.c, since we now compile it on all hosts.
77877
77878         * lib/strftime.c (my_strftime):
77879         Define to nstrftime if emacs, but only if my_strftime is not defined.
77880         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
77881         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
77882         Add one more extra argument: a nanoseconds value.
77883         All uses changed.
77884         (ns): New macro.
77885         (my_strftime function): Add %N format.
77886         (emacs_strftimeu): Renamed from emacs_strftime,
77887         with extra ut argument.
77888
77889 2001-05-09  Paul Eggert  <eggert@twinsun.com>
77890
77891         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
77892
77893 2001-04-21  Jim Meyering  <meyering@lucent.com>
77894
77895         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
77896         doesn't interfere.
77897
77898 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77899
77900         * m4/ftruncate.m4: Check for chsize.
77901         Link with ftruncate.o unconditionally if ftruncate is missing.
77902         This was required when cross-compiling to i586-mingw32msvc.
77903
77904 2001-04-08  Jim Meyering  <meyering@lucent.com>
77905
77906         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
77907         recomputed; that's necessary when the offset spans a DST transition.
77908         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
77909
77910 2001-04-02  Jim Meyering  <meyering@lucent.com>
77911
77912         * lib/regex.h, regex.c: Update from GNU libc.
77913
77914 2001-03-24  Jim Meyering  <meyering@lucent.com>
77915
77916         * m4/jm-macros.m4: Require autoconf-2.49d.
77917
77918 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
77919
77920         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
77921
77922 2001-03-19  Paul Eggert  <eggert@twinsun.com>
77923
77924         * lib/version-etc.c (version_etc_copyright): Update to 2001.
77925
77926 2001-03-17  Jim Meyering  <meyering@lucent.com>
77927
77928         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
77929         now that the version in autoconf is equivalent.
77930         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
77931
77932         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
77933         Suggestion from Akim Demaille.
77934
77935         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
77936         (jm_PREREQ_TEMPNAME): New function.
77937
77938 2001-03-16  Paul Eggert  <eggert@twinsun.com>
77939
77940         * lib/tempname.c (uint64_t): Define to uintmax_t if
77941         not defined, and if UINT64_MAX is not defined.
77942         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
77943         Reported by John David Anglin.
77944
77945 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
77946
77947         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
77948         resolve alias if codeset is empty.
77949         * lib/config.charset (BeOS): Use wildcard syntax.
77950
77951 2001-03-13  Jim Meyering  <meyering@lucent.com>
77952
77953         * lib/path-concat.c (path_concat)
77954         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
77955         concatenating e.g., `C:' and `foo'.
77956         From Bruno Haible.
77957
77958 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77959
77960         * lib/localcharset.c (locale_charset): Don't use
77961         setlocale(LC_CTYPE,NULL). Don't return NULL.
77962         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
77963
77964 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77965
77966         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
77967         support for DOS/DJGPP.
77968
77969 2001-03-01  Paul Eggert  <eggert@twinsun.com>
77970
77971         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
77972         lacks mkstemp.  Compile our own tempname.c if we compile our own
77973         mkstemp.c, as mkstemp relies on tempname.
77974
77975 2001-03-01  Jim Meyering  <meyering@lucent.com>
77976
77977         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
77978         AH_VERBATIM really does output its argument verbatim.
77979
77980 2001-02-28  Paul Eggert  <eggert@twinsun.com>
77981
77982         * lib/Makefile.am (libfetish_a_SOURCES):
77983         Add dup-safer.c, fopen-safer.c.
77984         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77985
77986         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77987         * lib/unistd-safer.h: New files.
77988
77989 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77990
77991         The mkstemp replacement is taken from glibc 2.2.2, with some
77992         portability fixes for use outside glibc, as follows:
77993
77994         * lib/tempname.c (struct_stat64): New macro.
77995         (direxists, __gen_tempname): Use it.
77996         This avoids a portability problem with Solaris 8.
77997
77998         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77999         (<stddef.h>, <stdint.h>, <string.h>):
78000         Include only if STDC_HEADERS || _LIBC.
78001         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78002         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78003         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78004         (__set_errno): Define this macro if <errno.h> doesn't.
78005         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78006         Define these macros if <stdio.h> doesn't.
78007         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78008         Define these macros if <sys/stat.h>
78009         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78010         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78011         __xstat64): Define if not _LIBC.
78012         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78013         (__gen_tempname): Invoke gettimeofday only if
78014         HAVE_GETTIMEOFDAY || _LIBC;
78015         otherwise, fall back on plain "time".
78016         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78017
78018         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78019
78020         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78021
78022 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78023
78024         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78025
78026 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78027
78028         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78029         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78030         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78031         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78032
78033 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78034
78035         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78036         Remove workaround macros for hosts that have mbrtowc but not
78037         mbstate_t, as we now insist on proper declarations for both
78038         before using mbrtowc.
78039
78040 2001-02-17  Jim Meyering  <meyering@lucent.com>
78041
78042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78043         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78044         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78045         UnixWare 7.1.1.
78046
78047         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78048         rather than AC_CACHE_VAL.
78049
78050 2001-02-17  Jim Meyering  <meyering@lucent.com>
78051
78052         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78053         around included file name.
78054
78055         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78056
78057         * lib/strftime.c: Update from GNU libc (the only changes were to
78058         comments).
78059
78060 2001-02-17  Jim Meyering  <meyering@lucent.com>
78061
78062         * lib/regex.c: Update from libc.
78063
78064 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78065
78066         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78067         clash.
78068
78069 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78070
78071         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78072         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78073         Reported by Mark Hounschell via Paul Eggert.
78074
78075 2001-02-07  Jim Meyering  <meyering@lucent.com>
78076
78077         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78078
78079 2001-02-05  Jim Meyering  <meyering@lucent.com>
78080
78081         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78082         it includes the patch required for `large file' support with at least
78083         HP-UX's 10.20 /bin/cc.
78084
78085 2001-02-03  Jim Meyering  <meyering@lucent.com>
78086
78087         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78088         AS_IF, now that it works once again (mysteriously).
78089         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78090
78091 2001-01-30  Jim Meyering  <meyering@lucent.com>
78092
78093         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78094         * m4/chown.m4: Rename conftestchown to conftest.chown.
78095         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78096         s/conftestdir2/conftest.d2/.
78097         * m4/utimes.m4: s/conftestdata/conftest.data/
78098         Inspired by Pavel Roskin's change in autoconf.
78099
78100 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78101
78102         * lib/config.charset: Update for FreeBSD 4.2.
78103
78104 2001-01-27  Jim Meyering  <meyering@lucent.com>
78105
78106         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78107         a use of AS_IF.
78108         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78109
78110 2001-01-26  Jim Meyering  <meyering@lucent.com>
78111
78112         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78113         quotearg.c includes it.
78114
78115 2001-01-26  Jim Meyering  <meyering@lucent.com>
78116
78117         * lib/quotearg.c: Include stddef.h.
78118         * lib/quote.c: Include stddef.h.
78119         Reported by Axel Kittenberger.
78120
78121         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78122         line in double quotes so that it evokes a better diagnostic.
78123         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78124         Reported by Axel Kittenberger.
78125
78126 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78127
78128         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78129         as if it was a `charset'.
78130
78131 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78132
78133         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78134         has const.
78135
78136 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78137
78138         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78139         to avoid a warning.  Add back 'const' to inptr.
78140
78141 2001-01-20  Jim Meyering  <meyering@lucent.com>
78142
78143         Be sure that headers are checked before used in code compiled
78144         for the type checks.
78145         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78146         In place of that, invoke jm_CHECK_ALL_TYPES.
78147         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78148         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78149         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78150         The check for ssize_t was mistakenly run before the test for unistd.h.
78151
78152         The configure-time check for stdbool.h was missing.
78153         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78154         (jm_PREREQ_HASH): New function.
78155
78156 2001-01-17  Jim Meyering  <meyering@lucent.com>
78157
78158         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78159         for autoconf-2.49c.
78160         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78161
78162 2001-01-16  Jim Meyering  <meyering@lucent.com>
78163
78164         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78165         From Bruno Haible.
78166
78167 2001-01-14  Jim Meyering  <meyering@lucent.com>
78168
78169         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78170         foo and bar.  Create conftestdir/ in the script, not in the C code.
78171         Remove directories in the script, not in the C code.
78172         Remove conftestdir{,2} before trying to create the directory.
78173         Make the entire configure script fail if the mkdir fails.
78174
78175 2001-01-14  Jim Meyering  <meyering@lucent.com>
78176
78177         * lib/rename.c: New file.  From Volker Borchert.
78178         Include stdlib.h, string.h or strings.h, and xalloc.h.
78179         Use strip_trailing_slashes rather than open-coding it.
78180
78181 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78182
78183         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78184
78185 2001-01-03  Jim Meyering  <meyering@lucent.com>
78186
78187         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78188         of local `inptr' to avoid warning with some system declarations of
78189         iconv.
78190
78191 2001-01-02  Volker Borchert  <bt@teknon.de>
78192
78193         * m4/rename.m4: New file.
78194         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78195
78196 2001-01-01  Jim Meyering  <meyering@lucent.com>
78197
78198         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78199         even on systems with utmpx.h.  It's necessary for the declaration of
78200         utmp's ut_user member.  Reported by Andreas Jaeger.
78201
78202         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78203         available. They are required for the declarations of getgrgid and
78204         getpwuid resp.
78205         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78206         Reported by Andreas Jaeger.
78207
78208 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78209
78210         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78211         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78212         so `make install' also works in VPATH builds.
78213
78214 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78215
78216         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78217         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78218         can be used in subdirectories.
78219
78220 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78221
78222         * lib/modechange.c: Do not assume that mode_t uses the
78223         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78224         the other-execute bit of FOO even if S_IXOTH != 1.
78225
78226         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78227         WOTH, XOTH, ALLM): New macros.
78228         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78229          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78230         Use them.
78231         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78232         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78233         (mode_compile):
78234         No need to use uintmax_t; unsigned long is long enough.
78235         Don't bother to get suffix since we don't use it.
78236
78237 2000-12-26  Jim Meyering  <meyering@lucent.com>
78238
78239         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78240         better with autoheader.
78241
78242 2000-12-24  Jim Meyering  <meyering@lucent.com>
78243
78244         * lib/hash.c (is_prime): Return explicit boolean values.
78245         (hash_get_first): Return NULL to appease Irix5.6's 89.
78246         Reported by Nelson Beebe.
78247
78248 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78249
78250         * lib/localcharset.c (locale_charset): Add support for Win32.
78251
78252 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78253
78254         * lib/physmem.h, lib/physmem.c: New files.
78255
78256         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78257         (noinst_HEADERS): Add physmem.h.
78258
78259         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78260         't' for compatibility with Solaris 8 sort.
78261
78262 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78263
78264         * lib/config.charset: Add support for BeOS.
78265
78266 2000-12-17  Jim Meyering  <meyering@lucent.com>
78267
78268         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78269         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78270
78271 2000-12-16  Jim Meyering  <meyering@lucent.com>
78272
78273         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78274         N and M) would have treated it like `chown N:N FILE'.
78275
78276         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78277
78278 2000-12-16  Jim Meyering  <meyering@lucent.com>
78279
78280         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78281         SHELLS_FILE to a file name that's useful on djgpp systems.
78282         Include stdlib.h.
78283         (ADDITIONAL_DEFAULT_SHELLS): Define.
78284         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78285         Based mostly on a patch from Prashant TR.
78286
78287 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78288
78289         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78290         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78291         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78292
78293 2000-12-08  Andreas Schwab  <schwab@suse.de>
78294
78295         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78296         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78297
78298 2000-12-07  Jim Meyering  <meyering@lucent.com>
78299
78300         * lib/stripslash.c (ISSLASH): Define.
78301         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78302         `/'.
78303         From Prashant TR.
78304
78305         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78306         (dir_name_r): Declare this function as static.
78307         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78308         manifest itself on a name containing a mix of slashes and
78309         backslashes.
78310         Make this function work with names starting with a DOS-style
78311         drive letter and colon prefix.
78312         (dir_name): Append `.' if necessary.
78313         Based mostly on patches from Prashant TR and Eli Zaretskii.
78314
78315         * lib/dirname.h (dir_name_r): Remove prototype.
78316
78317 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78318
78319         * m4/off_t-format.m4: Remove this file.
78320         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78321
78322 2000-12-06  Jim Meyering  <meyering@lucent.com>
78323
78324         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78325         replacement strtoull, we may well need the replacement strtoul, too.
78326         Check for declarations of strtoul and strtoull.
78327         Check for strtol.  Mainly as a cue to cause automake to include
78328         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78329         Check for limits.h -- strtol.c needs it.
78330
78331 2000-12-05  Jim Meyering  <meyering@lucent.com>
78332
78333         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78334
78335 2000-12-04  Jim Meyering  <meyering@lucent.com>
78336
78337         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78338         Also include memory.h, stdlib.h, unistd.h if appropriate.
78339         Reported by Andreas Jaeger (conflicting declaration of malloc).
78340
78341 2000-12-02  Jim Meyering  <meyering@lucent.com>
78342
78343         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78344         * m4/jm-macros.m4 (jm_MACROS): require it.
78345
78346 2000-12-02  Jim Meyering  <meyering@lucent.com>
78347
78348         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78349
78350 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78351
78352         * lib/memrchr.c: Include <config.h> before any system include file.
78353
78354 2000-11-30  Jim Meyering  <meyering@lucent.com>
78355
78356         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78357
78358 2000-11-30  Jim Meyering  <meyering@lucent.com>
78359
78360         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78361
78362 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78363
78364         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78365
78366 2000-11-26  Jim Meyering  <meyering@lucent.com>
78367
78368         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78369
78370 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78371
78372         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78373         size of (size_t) -1; it's not portable.
78374
78375 2000-11-17  Jim Meyering  <meyering@lucent.com>
78376
78377         * lib/strstr.c: Update from GNU libc.
78378
78379 2000-11-17  Akim Demaille  <akim@epita.fr>
78380
78381         * lib/obstack.h: Formatting changes.
78382         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78383         prevent type checking.
78384         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78385         cast the value to (void *): assigning a `foo *' to a `void *'
78386         variable is valid.
78387         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78388
78389 2000-11-16  Jim Meyering  <meyering@lucent.com>
78390
78391         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78392
78393 2000-11-11  Jim Meyering  <meyering@lucent.com>
78394
78395         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78396
78397 2000-11-10  Jim Meyering  <meyering@lucent.com>
78398
78399         * lib/obstack.h: Update from GNU libc.
78400         * lib/obstack.c: Likewise.
78401
78402 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78403
78404         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78405
78406 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78407
78408         * lib/getusershell.c (setusershell): Use rewind rather than
78409         fseek/fseeko, to avoid configuration hassles with fseeko.
78410         Don't bother opening SHELLS_FILE if shellstream is NULL;
78411         it's not necessary.
78412
78413 2000-11-05  Jim Meyering  <meyering@lucent.com>
78414
78415         * lib/makepath.h (make_dir): Declare.
78416         * lib/makepath.c (make_dir): Remove `static' attribute.
78417         Tweak a comment.
78418
78419 2000-11-04  Jim Meyering  <meyering@lucent.com>
78420
78421         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78422
78423 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78424
78425         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78426         last one in a bucket, advance to the next bucket.
78427
78428 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78429
78430         * lib/fnmatch.c: Do not comment out all the code if we are using
78431         the GNU C library, because in some cases we are replacing buggy
78432         code in the GNU C library itself.
78433
78434 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78435
78436         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78437         (regex_compile): Catch bogus \(\1\).
78438
78439 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78440
78441         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78442         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78443         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78444
78445 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78446
78447         * lib/error.h, getline.h, modechange.h:
78448         Remove "2000" from Copyright line, as the file hasn't been
78449         changed this year other than in the copyright notice.
78450
78451         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78452         was changed this year.
78453
78454 2000-10-29  Jim Meyering  <meyering@lucent.com>
78455
78456         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78457         renaming.
78458         * m4/ls-mntd-fs.m4: Likewise
78459
78460 2000-10-29  Jim Meyering  <meyering@lucent.com>
78461
78462         * lib/xstat.in: Fix grammar in comment.
78463
78464 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
78465
78466         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
78467         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
78468         doesn't define __restrict_arr.
78469
78470 2000-10-28  Jim Meyering  <meyering@lucent.com>
78471
78472         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
78473         (jm_PREREQ_MEMCHR): New function.
78474
78475 2000-10-28  Jim Meyering  <meyering@lucent.com>
78476
78477         * lib/memchr.c: Update from libc.
78478         Adjust for portability:
78479         [HAVE_STDLIB_H]: Include stdlib.h.
78480         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
78481         Undef __memchr, too.
78482         [!weak_alias]: Define __memchr to memchr.
78483
78484         * lib/regex.c: Update from libc.
78485         * lib/regex.h: Likewise.
78486         * lib/getopt1.c: Likewise.
78487         * lib/memcmp.c: Likewise.
78488
78489         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
78490         Avoid using fseek, when possible -- it's broken by design.
78491         Patch by Ulrich Drepper.
78492
78493 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
78494
78495         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
78496         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
78497         Giving in to popular pressure to shut up the compiler with casts.
78498
78499 2000-10-26  Jim Meyering  <meyering@lucent.com>
78500
78501         * lib/strftime.c: Update from libc.
78502
78503 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
78504
78505         * regex.c: More `unsigned char' -> `re_char' changes.
78506         Also change several `int' into `re_wchar_t'.
78507         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
78508         (PUSH_FAILURE_POINTER): Don't cast any more.
78509         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
78510         We want GCC to complain, since this piece of code makes
78511         re_match non-reentrant, which *should* be fixed.
78512         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
78513         (EXTEND_BUFFER): Use RETALLOC.
78514         (SET_LIST_BIT): Don't cast.
78515         (re_wchar_t): New type.
78516         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
78517         that those two functions will always properly return.
78518         (IMMEDIATE_QUIT_CHECK): Cast to void.
78519         (analyse_first): Use recursion rather than an explicit stack.
78520         (re_compile_fastmap): Can't fail anymore.
78521         (re_search_2): Don't check re_compile_fastmap for failure.
78522         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
78523         Now also sets the new value (passed in a new argument).
78524         (re_match_2_internal): Use it.
78525         Also, use a new var `reg' of type size_t when looping through regs
78526         rather than reuse the inappropriate `mcnt'.
78527
78528 2000-10-25  Jim Meyering  <meyering@lucent.com>
78529
78530         * lib/obstack.c: Update from libc.
78531
78532 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
78533
78534         * regex.c (regex_compile): Change the way of handling a range from
78535         a char less than 256 to a char not less than 256.
78536
78537 2000-10-24  Andrew Innes  <andrewi@gnu.org>
78538
78539         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
78540         NT-Emacs only.
78541         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
78542         so that re_search functions only quit when callers expect them to.
78543
78544 2000-10-23  Jim Meyering  <meyering@lucent.com>
78545
78546         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
78547         wrong.  That set_locale call must not have any side effects.
78548         From Paul Eggert.
78549
78550 2000-10-22  Jim Meyering  <meyering@lucent.com>
78551
78552         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
78553         [CYCLIC]: Remove now-unused definition.
78554
78555         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
78556         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
78557         Suggestion from Ulrich Drepper.
78558
78559 2000-10-21  Jim Meyering  <meyering@lucent.com>
78560
78561         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
78562         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
78563         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
78564
78565 2000-10-21  Jim Meyering  <meyering@lucent.com>
78566
78567         * lib/dirname.c (memrchr): Declare if necessary.
78568         (dir_name): Remove the restriction that there be no
78569         trailing slashes.  Now, this code skips past them, effectively
78570         ignoring them.
78571         [TEST_DIRNAME] (main): New unit tests.
78572
78573         * lib/memrchr.c: New file from GNU libc.
78574         Undef __memrchr, too.
78575         [!weak_alias]: Define __memrchr to memrchr.
78576         Guard weak_alias use with `#ifdef weak_alias'.
78577
78578 2000-10-21  Jim Meyering  <meyering@lucent.com>
78579
78580         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
78581         (dir_name): Use dir_name_r.
78582         * lib/dirname.h (dir_name_r): Declare it.
78583
78584 2000-10-17  Jim Meyering  <meyering@lucent.com>
78585
78586         * lib/quote.h (PARAMS): Define and use.
78587         Reported by Akim Demaille.
78588
78589         * lib/getopt.c: Update from libc.
78590
78591 2000-10-16  Jim Meyering  <meyering@lucent.com>
78592
78593         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
78594         setlocale.
78595         From Jan Fedak.
78596
78597 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
78598
78599         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
78600
78601 2000-09-25  Jim Meyering  <meyering@lucent.com>
78602
78603         * lib/md5.h (rol): Define (from GnuPG).
78604
78605         * lib/sha.c: Give credit (GnuPG) where due.
78606         (M): Use rol rather than open-coding it.
78607         Add a FIXME comment.
78608
78609 2000-09-21  Jim Meyering  <meyering@lucent.com>
78610
78611         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
78612         Reported by Michael Stone.
78613
78614 2000-09-20  Jim Meyering  <meyering@lucent.com>
78615
78616         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
78617         (noinst_HEADERS): Add sha.h.
78618         Based on code from Scott G. Miller and from GnuPG.
78619
78620 2000-09-18  Jim Meyering  <meyering@lucent.com>
78621
78622         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
78623         LIBS. Otherwise, everyone ends up linking with -lelf for some
78624         configurations.
78625         Reported by Mike Stone.
78626
78627 2000-09-15  Jim Meyering  <meyering@lucent.com>
78628
78629         * lib/regex.c: Update from libc.
78630
78631 2000-09-10  Jim Meyering  <meyering@lucent.com>
78632
78633         * lib/getopt.c (_getopt_internal): Update from glibc.
78634
78635 2000-09-09  Jim Meyering  <meyering@lucent.com>
78636
78637         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78638         think it should be used as a general replacement for isascii.
78639         * lib/fnmatch.c: Likewise.
78640         * lib/mbswidth.c: Likewise
78641         * lib/regex.c: Likewise.
78642
78643         Don't use atoi.
78644         * lib/userspec.c: Include sys/param.h and limits.h.
78645         Include xstrtol.h.
78646         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78647         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78648         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78649         UID, GID.  Check range.
78650
78651 2000-09-06  Jim Meyering  <meyering@lucent.com>
78652
78653         * lib/getopt.c (_getopt_internal): Update from glibc.
78654
78655 2000-08-30  Jim Meyering  <meyering@lucent.com>
78656
78657         * lib/strftime.c: Merge in changes from GNU libc.
78658
78659 2000-08-26  Jim Meyering  <meyering@lucent.com>
78660
78661         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78662         * m4/fpending.m4: New file.
78663
78664 2000-08-26  Jim Meyering  <meyering@lucent.com>
78665
78666         * lib/closeout.c: Include "__fpending.h".
78667         (close_stdout_status): Return right away if there's nothing to flush.
78668
78669         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78670         * lib/__fpending.c: New file.
78671         * lib/__fpending.h: New file.
78672
78673 2000-08-20  Jim Meyering  <meyering@lucent.com>
78674
78675         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78676         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78677         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78678
78679 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78680
78681         Improve fileutils installation on systems where running
78682         programs (like install) can't be unlinked.
78683         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78684         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78685
78686 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78687
78688         Standardize on "memory exhausted" instead of "Memory exhausted"
78689         or "virtual memory exhausted".
78690         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78691         "virtual memory exhausted".
78692         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78693         our own message.
78694         * lib/userspec.c (parse_user_spec): Likewise.
78695         * lib/bumpalloc.h: comment fix
78696         * lib/same.c, userspec.c: Include xalloc.h.
78697
78698         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78699         not char *const and pointing to a constant array.
78700         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78701         (xrealloc): Comment fix.
78702
78703         * lib/userspec.c (parse_user_spec):
78704         Don't translate a message until just before returning,
78705         to avoid unnecessary translation.
78706
78707 2000-08-07  Jim Meyering  <meyering@lucent.com>
78708
78709         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78710         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78711         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78712         getgroups.c, gethostname.c, getopt.h, group-member.c,
78713         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78714         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78715         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78716         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78717         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78718         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78719         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78720         yesno.c: Back out Copyright date changes for each file with no change
78721         this year.  This eases coordination with other programs using the same
78722         source code modules.  From Paul Eggert.
78723
78724 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78725
78726         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78727         not char, for compatibility with glibc 2.1.3 strftime.c.
78728
78729 2000-08-03  Greg McGary  <greg@mcgary.org>
78730
78731         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78732         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78733         (EXTEND_BUFFER): Use them.
78734
78735 2000-08-01  Jim Meyering  <meyering@lucent.com>
78736
78737         * lib/dirname.c (ISSLASH): Define.
78738         (BACKSLASH_IS_PATH_SEPARATOR): Define.
78739         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
78740         both `\' and `/' may be use as path separators.
78741         Based on a patch from Prashant TR.
78742
78743 2000-07-31  Paul Eggert  <eggert@twinsun.com>
78744
78745         * lib/quotearg.c (quotearg_n_options): Don't make the initial
78746         slot vector a constant, since it might get modified.
78747
78748 2000-07-31  Jim Meyering  <meyering@lucent.com>
78749
78750         * lib/xmalloc.c: Use `virtual memory exhausted', not
78751         `Memory exhausted'.
78752         * lib/obstack.c (print_and_abort): Likewise.
78753
78754 2000-07-30  Paul Eggert  <eggert@twinsun.com>
78755
78756         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
78757         buffer, so that the caller can always quote one small
78758         component of a "memory exhausted" message in slot 0.
78759         From a suggestion by Jim Meyering.
78760
78761 2000-07-30  Jim Meyering  <meyering@lucent.com>
78762
78763         * lib/makepath.c (make_path): Quote the other instance, too.
78764
78765         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
78766         (STATIC_BUF_SIZE): Define.
78767         (quotearg_n_options): Use only statically allocated storage when
78768         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
78769         than STATIC_BUF_SIZE.
78770
78771 2000-07-29  Jim Meyering  <meyering@lucent.com>
78772
78773         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
78774         * lib/dirname.c (dir_name): Likewise.
78775
78776         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
78777         `/'.
78778
78779         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
78780         (dir_name): Assert that there are no trailing slashes.
78781
78782 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
78783
78784         * lib/mbswidth.h (mbswidth): Add a flags argument.
78785         (mbswidth): New declaration.
78786         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
78787         * lib/mbswidth.c (mbswidth): Add a flags argument.
78788         (mbsnwidth): New function.
78789
78790 2000-07-24  Jim Meyering  <meyering@lucent.com>
78791
78792         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
78793
78794 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78795
78796         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
78797
78798 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78799
78800         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
78801         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
78802         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
78803         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
78804         invoke multibyte primitives.
78805
78806 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78807
78808         * lib/quotearg.c:
78809         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
78810         so that mbstate_t is always defined.
78811
78812         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
78813         be 1 in at least one GCC installation, and this configuration
78814         error is likely to be common.  Ignoring MB_LEN_MAX hurts
78815         performance on hosts that have mbrtowc but have only unibyte
78816         locales, but I assume these hosts are rare.
78817
78818 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78819
78820         * lib/mbswidth.c (_XOPEN_SOURCE):
78821         Don't define; this causes problems on Solaris 7.
78822         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
78823
78824 2000-07-23  Jim Meyering  <meyering@lucent.com>
78825
78826         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
78827         too: getgrgid, getpwuid, getuid.
78828
78829 2000-07-23  Jim Meyering  <meyering@lucent.com>
78830
78831         * lib/basename.c (base_name): Add an assertion.
78832
78833 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
78834
78835         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
78836         shadow its mbsinit function.
78837
78838 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78839
78840         * lib/mbswidth.h: New file.
78841         * lib/mbswidth.c: New file.
78842         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
78843         (noinst_HEADERS): Add mbswidth.h.
78844
78845 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78846
78847         * lib/config.charset: Add support for FreeBSD. Improve support for
78848         HP-UX and IRIX 6.
78849
78850 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
78851
78852         * m4/mbswidth.m4: New file.
78853         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
78854
78855 2000-07-15  Jim Meyering  <meyering@lucent.com>
78856
78857         * lib/makepath.c: Include quote.h.
78858         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
78859         corresponding argument in a `quote (...)' call.
78860         Give better diagnostics.
78861
78862         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
78863         (noinst_HEADERS): Add quote.h.
78864
78865         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
78866         from tar's src/misc.c.
78867         * lib/quote.h: New file.  Prototypes for same.
78868
78869 2000-07-14  Paul Eggert  <eggert@twinsun.com>
78870
78871         From a suggestion by Bruno Haible.
78872         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
78873         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
78874         to decide whether to define the BeOS workaround macro;
78875         this adjusts to the change to AC_MBSTATE_T.
78876
78877 2000-07-14  Jim Meyering  <meyering@lucent.com>
78878
78879         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
78880         jm_AC_TYPE_UINTMAX_T.
78881
78882 2000-07-13  Paul Eggert  <eggert@twinsun.com>
78883
78884         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
78885
78886         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
78887         quotearg_buffer_restyled): Add support for
78888         clocale_quoting_style.  Undo previous change to
78889         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
78890         and "{RIGHT QUOTATION MARK}" msgids.
78891
78892 2000-07-10  Paul Eggert  <eggert@twinsun.com>
78893
78894         From a suggestion by Bruno Haible.
78895         * m4/mbstate_t.m4 (AC_MBSTATE_T):
78896         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
78897         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
78898         and mbstate_t, to a single-part test that simply defines mbstate_t.
78899         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
78900         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
78901
78902 2000-07-10  Jim Meyering  <meyering@lucent.com>
78903
78904         * m4/strerror_r.m4: Mirror the correction made in autoconf.
78905
78906         * m4/gnu-source.m4: Output to confdefs.h directly.
78907         Suggestion from Akim Demaille.
78908
78909 2000-07-09  Paul Eggert  <eggert@twinsun.com>
78910
78911         The old behavior of quoting `like this' doesn't look good with
78912         newer, ISO-style fonts.  See:
78913         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
78914
78915         Instead, quote "like this" by default.  Let the translator
78916         tailor the locale-specific quoting behavior by providing
78917         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
78918
78919         * lib/quotearg.c (N_): New macro.
78920         (gettext_default): New function.
78921         (quotearg_buffer_restyled): Use
78922         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
78923         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
78924
78925 2000-07-09  Jim Meyering  <meyering@lucent.com>
78926
78927         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
78928         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
78929
78930         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
78931         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
78932
78933 2000-07-09  Jim Meyering  <meyering@lucent.com>
78934
78935         * lib/Most files: Update copyright dates to include 2000.
78936
78937 2000-07-08  Jim Meyering  <meyering@lucent.com>
78938
78939         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
78940         if not defined.
78941         (xgethostname): Remove now-unnecessary #ifdef.
78942         Move declaration of `err' into loop where it's used.
78943
78944 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78945         and Bruno Haible  <haible@clisp.cons.org>
78946
78947         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
78948         only if the test for an object-type mbstate_t fails.  This
78949         prevents us from mistakenly reporting that mbstate_t is a
78950         system object type after we "#define mbstate_t int" to work
78951         around its lack.
78952
78953 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78954         and Bruno Haible  <haible@clisp.cons.org>
78955
78956         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
78957
78958 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78959
78960         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
78961         to strerror_r.
78962         Include <ctype.h> for use of isalpha.
78963
78964 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78965
78966         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
78967         by allocating a larger buffer. Test the gethostname return value for
78968         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
78969         returns an error and ENAMETOOLONG isn't defined.
78970
78971 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78972
78973         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
78974         dimension.
78975
78976 2000-07-04  Jim Meyering  <meyering@lucent.com>
78977
78978         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
78979         of the deprecated AC_CHECKING.
78980
78981 2000-07-04  Jim Meyering  <meyering@lucent.com>
78982
78983         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78984         Reported by Bruno Haible.
78985
78986 2000-07-04  Jim Meyering  <meyering@lucent.com>
78987
78988         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78989         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78990         lacks mbrtowc.
78991
78992 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78993
78994         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78995         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78996
78997 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78998         and Bruno Haible  <haible@clisp.cons.org>
78999
79000         * lib/quotearg.c (mbrtowc):
79001         Assign to *pwc, and return 1 only if result is nonzero.
79002         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79003
79004 2000-07-03  Jim Meyering  <meyering@lucent.com>
79005
79006         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79007
79008 2000-07-03  Jim Meyering  <meyering@lucent.com>
79009
79010         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79011         This is necessary to get a definition of e.g., UTMP_FILE on
79012         HP-UX 10.20.
79013         From Bob Proulx.
79014
79015 2000-07-02  Jim Meyering  <meyering@lucent.com>
79016
79017         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79018
79019         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79020         AC_LIBOBJ(function_name).
79021         * m4/chown.m4: Likewise.
79022         * m4/fnmatch.m4: Likewise.
79023         * m4/ftruncate.m4: Likewise.
79024         * m4/getgroups.m4: Likewise.
79025         * m4/getline.m4: Likewise.
79026         * m4/group-member.m4: Likewise.
79027         * m4/jm-macros.m4: Likewise.
79028         * m4/lstat.m4: Likewise.
79029         * m4/malloc.m4: Likewise.
79030         * m4/memcmp.m4: Likewise.
79031         * m4/nanosleep.m4: Likewise.
79032         * m4/putenv.m4: Likewise.
79033         * m4/realloc.m4: Likewise.
79034         * m4/regex.m4: Likewise.
79035         * m4/stat.m4: Likewise.
79036         * m4/strftime.m4: Likewise.
79037
79038 2000-07-02  Jim Meyering  <meyering@lucent.com>
79039
79040         * lib/quotearg.c (mbstate_t): Don't define here.
79041
79042 2000-07-02  Jim Meyering  <meyering@lucent.com>
79043
79044         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79045
79046 2000-07-01  Jim Meyering  <meyering@lucent.com>
79047
79048         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79049
79050 2000-07-01  Jim Meyering  <meyering@lucent.com>
79051
79052         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79053         problem.
79054
79055 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79056
79057         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79058         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79059
79060 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79061
79062         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79063         per change in ../m4/ls-mntd-fs.m4.
79064         (read_filesystem_list): Ignore symbolic links.
79065
79066 2000-06-29  Jim Meyering  <meyering@lucent.com>
79067
79068         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79069         for declaration of strcmp.
79070
79071         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79072
79073         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79074         Avoid warning by casting result to `char *' to remove `const'.
79075
79076 2000-06-28  Jim Meyering  <meyering@lucent.com>
79077
79078         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79079         included by quotearg.c, for which we perform this test.  From
79080         Bruno Haible.
79081
79082 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79083
79084         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79085         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79086         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79087
79088 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79089
79090         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79091
79092 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79093
79094         savedir now sets errno on failure and invokes xmalloc to get memory.
79095         Fix a couple of other minor bugs while we're at it.
79096
79097         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79098         (NAMLEN): Remove macro.
79099         (malloc, realloc): Remove decls.
79100         (stpcpy): Likewise.
79101         ("xalloc.h"): Include.
79102         (NAME_SIZE_DEFAULT): New macro.
79103         (savedir): Use xmalloc / xrealloc to allocate memory.
79104         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79105         Skip "" directory entries.
79106         Use strlen to calculate directory entry length, since the old method
79107         is rarely used these days and isn't worth supporting.
79108         Don't use a pointer after freeing it.
79109         Check for integer overflow when calculating allocation size.
79110         Use memcpy to copy entries, instead of stpcpy.
79111         Set errno properly when returning NULL.
79112         Check for readdir error.
79113
79114 2000-06-26  Jim Meyering  <meyering@lucent.com>
79115
79116         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79117
79118 2000-06-25  Jim Meyering  <meyering@lucent.com>
79119
79120         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79121         Linux header bug when _XOPEN_SOURCE is defined to 500.
79122
79123 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79124
79125         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79126         deficiency.
79127
79128 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79129
79130         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79131         Include xalloc.h.
79132         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79133
79134 2000-06-24  Jim Meyering  <meyering@lucent.com>
79135
79136         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79137         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79138         for which strerror does return char*, but which lacks a conveniently
79139         accessible declaration of the function.  If the compile-test says
79140         strerror_r doesn't work, then resort to a `run'-test that works on
79141         BeOS and segfaults on DEC Unix.
79142
79143 2000-06-24  Jim Meyering  <meyering@lucent.com>
79144
79145         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79146
79147 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79148
79149         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79150         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79151
79152 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79153
79154         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79155         (mbrtowc, mbstate_t): Define substitutes if
79156         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79157         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79158         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79159
79160 2000-06-23  Jim Meyering  <meyering@lucent.com>
79161
79162         * m4/afs.m4: Add missing AC_MSG_RESULT.
79163         Reported by Bruno Haible.
79164
79165         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79166         Suggestion from Bruno Haible.
79167
79168 2000-06-23  Jim Meyering  <meyering@lucent.com>
79169
79170         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79171
79172 2000-06-21  Jim Meyering  <meyering@lucent.com>
79173
79174         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79175
79176 2000-06-21  Jim Meyering  <meyering@lucent.com>
79177
79178         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79179         (noinst_HEADERS): Add getstr.h.
79180
79181         * lib/getline.c (getstr): Move into a separate file.
79182         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79183         the following changes: new parameter, delim2; both delim[12]
79184         parameters have type `int', not `char'.  The latter would lose
79185         with 8-bit delimiters.
79186         * lib/getstr.h: New file.
79187
79188 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79189
79190         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79191         than 1024, return a memory chunk of least possible size, instead
79192         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79193         Use free/xmalloc instead of xrealloc to avoid copying for very long
79194         paths.
79195
79196 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79197
79198         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79199         the empty string.
79200
79201 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79202
79203         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79204         address, not strdup.  Include <stdlib.h> and don't declare free().
79205
79206 2000-06-19  Jim Meyering  <meyering@lucent.com>
79207
79208         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79209
79210 2000-06-18  Jim Meyering  <meyering@lucent.com>
79211
79212         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79213
79214         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79215         `checking whether...' message to be consistent with that of the
79216         lstat test.
79217
79218 2000-06-18  Jim Meyering  <meyering@lucent.com>
79219
79220         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79221         Besides, these days every porting target provides a mkdir function.
79222
79223         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79224         needed. (this snippet comes from src/system.h).
79225
79226 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79227
79228         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79229
79230 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79231
79232         * lib/human.c (adjust_value): New function.
79233         (human_readable_inexact): Apply rounding style even when
79234         printing approximate values.
79235
79236 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79237
79238         * lib/human.c (human_readable_inexact): Allow an input block
79239         size that is not a multiple of the output block size, and vice versa.
79240         Reported by Piergiorgio Sartor.
79241
79242 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79243
79244         * lib/getdate.y (get_date): Apply relative times after time
79245         zone indicator, not before.  Reported by Todd A. Jacobs.
79246
79247 2000-06-13  Jim Meyering  <meyering@lucent.com>
79248
79249         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79250
79251         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79252
79253 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79254
79255         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79256
79257 2000-06-12  Jim Meyering  <meyering@lucent.com>
79258
79259         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79260         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79261         optional argument.
79262         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79263         the optional argument, `lib'.
79264
79265 2000-06-08  Jim Meyering  <meyering@lucent.com>
79266
79267         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79268
79269 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79270
79271         Rewrite largefile configuration so that we don't need to run
79272         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79273         AC_CANONICAL_HOST in configure.in -- jmm]
79274
79275         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79276         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79277         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79278         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79279         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79280         All uses changed.
79281         Instead of inspecting the output of getconf, try to compile the
79282         test program without and with the macro definition.
79283         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79284         for getconf.  Instead, check for the needed flags by compiling
79285         test programs.
79286
79287 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79288
79289         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79290
79291 2000-06-04  Jim Meyering  <meyering@lucent.com>
79292
79293         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79294         SunOS 4.1.4 for which gid_t is an unsigned type.
79295
79296 2000-06-03  Jim Meyering  <meyering@lucent.com>
79297
79298         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79299         now that autoconf requires that.
79300
79301         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79302         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79303         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79304
79305 2000-06-03  Jim Meyering  <meyering@lucent.com>
79306
79307         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79308
79309 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79310
79311         * m4/glibc21.m4: New file.
79312         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79313
79314 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79315
79316         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79317         newer, don't install charset.alias.
79318         * lib/config.charset: Change the Linux/glibc rules so they become empty
79319         on glibc-2.1 or newer.
79320
79321 2000-06-02  Jim Meyering  <meyering@lucent.com>
79322
79323         * lib/mountlist.c: Back out last change.  Instead, do this...
79324         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79325         me_dummy member using the same `ignore'-testing code.
79326         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79327         fs_type strings.
79328         From Mark D. Roth.
79329
79330 2000-05-29  Jim Meyering  <meyering@lucent.com>
79331
79332         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79333         mounts with the `ignore' attribute.  Based on a patch from
79334         Mark D. Roth.
79335
79336 2000-05-28  Jim Meyering  <meyering@lucent.com>
79337
79338         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79339         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79340         * m4/stat.m4: Likewise.
79341         * m4/lstat.m4: Likewise.
79342         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79343
79344         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79345         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79346
79347 2000-05-26  Jim Meyering  <meyering@lucent.com>
79348
79349         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79350
79351 2000-05-24  Jim Meyering  <meyering@lucent.com>
79352
79353         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79354         autoconf requires that.
79355         * m4/lib-check.m4: Likewise.
79356         * m4/jm-macros.m4: Likewise.
79357         * m4/strftime.m4: Likewise.
79358
79359         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79360         AC_CHECK_DECLS, now that autoconf requires that.
79361
79362 2000-05-22  Jim Meyering  <meyering@lucent.com>
79363
79364         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79365         * m4/lstat.m4: Likewise.
79366
79367 2000-05-22  Jim Meyering  <meyering@lucent.com>
79368
79369         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79370
79371 2000-05-20  Jim Meyering  <meyering@lucent.com>
79372
79373         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79374         (jm_PREREQ): Use it.
79375
79376 2000-05-18  Jim Meyering  <meyering@lucent.com>
79377
79378         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79379         back, too, since it may have been modified by allocate_entry.
79380         (hash_delete): Rewrite to use neither the assignment operator
79381         nor the comma operator in an if-expression.
79382
79383 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79384
79385         * lib/closeout.c:
79386         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79387         Remove; no longer needed.
79388         "quotearg.h": Add include.
79389         (file_name): Do not bother to explicitly initialize to NULL; it's less
79390         efficient on some hosts.
79391         (close_stdout_status): Remove test as to whether stdout was already
79392         closed; it breaks for the case "echo x | sort >&-".
79393         Quote file name colons.
79394         Do not assume that _("write error") lacks format strings.
79395
79396 2000-05-15  Jim Meyering  <meyering@lucent.com>
79397
79398         * lib/version-etc.c (version_etc_copyright): Update the copyright
79399         string used in all --version output.
79400
79401 2000-05-14  Jim Meyering  <meyering@lucent.com>
79402
79403         * lib/closeout.c (close_stdout_set_file_name): New function.
79404         (close_stdout_status): Use new file-scoped global.
79405         Return right away if fstat says the stdout file descriptor is invalid.
79406         * lib/closeout.h (close_stdout_set_file_name): Declare.
79407
79408 2000-05-10  Jim Meyering  <meyering@lucent.com>
79409
79410         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79411         (close_stdout_set_status): New function.
79412         * lib/closeout.h (close_stdout_set_status): Declare.
79413
79414 2000-05-09  Jim Meyering  <meyering@lucent.com>
79415
79416         * m4/gettext.m4: Rename this...
79417         * m4/libintl.m4: ...to this.
79418
79419 2000-05-08  Jim Meyering  <meyering@lucent.com>
79420
79421         * lib/long-options.c: Don't include closeout.h.
79422         (parse_long_options): Don't call close_stdout for --version.
79423
79424 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79425
79426         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79427         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79428         2.1.3 bug.  This avoids a clash when files like regex.c define
79429         _GNU_SOURCE.
79430
79431 2000-05-06  Jim Meyering  <meyering@lucent.com>
79432
79433         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79434         (AC_REPLACE_FUNCS): Add strnlen.
79435
79436         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79437         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79438
79439         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79440         AC_SEARCH_LIBS call for nanosleep.
79441         (LIB_NANOSLEEP): Set and AC_SUBST.
79442
79443 2000-05-06  Jim Meyering  <meyering@lucent.com>
79444
79445         * lib/strnlen.c: Undefine __strnlen and strnlen.
79446         [!weak_alias]: Define __strnlen to strnlen.
79447
79448         * lib/atexit.c: New file, from libiberty.
79449
79450 2000-05-06  Jim Meyering  <meyering@lucent.com>
79451
79452         * lib/closeout.c (close_stdout_status): Also check for errors on the
79453         stderr stream.
79454
79455 2000-05-05  Jim Meyering  <meyering@lucent.com>
79456
79457         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79458         AC_SEARCH_LIBS call for clock_gettime.
79459         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79460
79461         * m4/search-libs.m4: Update from autoconf.
79462
79463         su doesn't work on Solaris 2.6.
79464         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
79465         <shadow.h>.  Reported by Dragos Harabor.
79466
79467 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
79468
79469         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
79470         memcpy instead of xmalloc, xrealloc, path_concat.
79471         (locale_charset): Treat empty environment variables as absent.
79472         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
79473
79474 2000-05-04  Jim Meyering  <meyering@lucent.com>
79475
79476         * lib/getopt.c: Update from glibc.
79477         * lib/obstack.c: Likewise.
79478         * lib/obstack.h: Likewise.
79479         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
79480         file
79481
79482         * lib/regex.h: Likewise.
79483         * lib/strndup.c: Likewise.
79484         * lib/strnlen.c: New file, from glibc.
79485
79486 2000-05-03  Jim Meyering  <meyering@lucent.com>
79487
79488         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
79489
79490 2000-05-02  Paul Eggert  <eggert@twinsun.com>
79491
79492         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
79493         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
79494         compile-time test, rather than inspecting host and OS, to
79495         decide whether to define _LARGEFILE_SOURCE.
79496
79497 2000-05-01  Jim Meyering  <meyering@lucent.com>
79498
79499         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
79500
79501         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
79502         Based on a patch from Bruno Haible.
79503
79504 2000-05-01  Jim Meyering  <meyering@lucent.com>
79505
79506         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
79507
79508 2000-04-29  Jim Meyering  <meyering@lucent.com>
79509
79510         * lib/path-concat.c: Declare strdup only if it's not defined.
79511         * lib/canon-host.c: Likewise.
79512
79513 2000-04-28  Jim Meyering  <meyering@lucent.com>
79514
79515         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
79516         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
79517         is included first, then limits.h is included by locale.h by libintl.h.
79518         From John David Anglin.
79519
79520 2000-04-25  Jim Meyering  <meyering@lucent.com>
79521
79522         * lib/makepath.c (S_IRWXUGO): Define.
79523         (make_path): Always perform explicit chmod if MODE specifies any
79524         of the `special' permission bits.  Prompted by a bug report against
79525         install from Mate Wierdl and Joost van Baal.
79526
79527 2000-04-18  Jim Meyering  <meyering@lucent.com>
79528
79529         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
79530         (jm_PREREQ): Use it.
79531
79532 2000-04-18  Jim Meyering  <meyering@lucent.com>
79533
79534         * lib/README: New file.
79535
79536         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
79537         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
79538
79539 2000-04-17  Jim Meyering  <meyering@lucent.com>
79540
79541         Get it right :-)
79542         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
79543         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
79544         Suggestion from Akim Demaille.
79545
79546 2000-04-17  Jim Meyering  <meyering@lucent.com>
79547
79548         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
79549         the definition of it to rpl_strftime also defined-away the system's
79550         declaration.
79551
79552 2000-04-15  Jim Meyering  <meyering@lucent.com>
79553
79554         Use `C' to denote so-called `contiguous' files, the same way
79555         that tar does.
79556         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
79557         (ftypelet): Use S_ISCTG.
79558         From Michael Deutschmann.
79559
79560 2000-04-14  Jim Meyering  <meyering@lucent.com>
79561
79562         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
79563         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
79564         clobbered.
79565
79566 2000-04-14  Jim Meyering  <meyering@lucent.com>
79567
79568         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
79569
79570 2000-04-13  Jim Meyering  <meyering@lucent.com>
79571
79572         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
79573         AH_VERBATIM to insert required #ifndef into config.h.in.
79574         Suggestion from Akim Demaille.
79575
79576 2000-04-12  Jim Meyering  <meyering@lucent.com>
79577
79578         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
79579         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
79580         Christian Krackowizer.
79581
79582         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
79583         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
79584         (AC_SYS_LARGEFILE): Require.
79585         (AM_C_PROTOTYPES): Require.
79586
79587 2000-04-08  Jim Meyering  <meyering@lucent.com>
79588
79589         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
79590         names don't conflict.  Reported by Eli Zaretskii.
79591
79592 2000-04-07  Jim Meyering  <meyering@lucent.com>
79593
79594         * lib/putenv.c: Move inclusion of errno.h so it follows that of
79595         sys/types.h, to work around system header problems on AIX 3.2.5.
79596         From Bruno Haible.
79597
79598 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
79599
79600         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
79601         bug.  Deal with the different error behavior of Irix iconv.
79602
79603 2000-04-05  Paul Eggert  <eggert@twinsun.com>
79604
79605         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
79606         IRIX if the installer said otherwise.
79607
79608 2000-04-05  Jim Meyering  <meyering@lucent.com>
79609
79610         Portability tweaks required for ultrix4.3.
79611         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
79612         (jm_CHECK_DECLS): Add getutent to the list of functions.
79613         (_jm_DECL_HEADERS): Add utmpx.h.
79614         From John David Anglin.
79615
79616         * m4/strftime.m4: Back out the 2000-04-02 change.
79617         Instead of that change, simply undefine putenv in the test program.
79618
79619 2000-04-05  Jim Meyering  <meyering@lucent.com>
79620
79621         Portability tweaks required for ultrix4.3.
79622         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
79623         getutent.
79624         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
79625         * lib/canon-host.c: Declare strdup.
79626         * lib/path-concat.c: Likewise.
79627         From John David Anglin.
79628
79629 2000-04-04  Jim Meyering  <meyering@lucent.com>
79630
79631         Be more DOS 8.3-friendly.
79632         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79633         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79634         * lib/Makefile.am: Reflect renaming.
79635         Reported by Eli Zaretskii.
79636
79637         Use a temporary file name that won't clash with `charset.alias'
79638         in the DOS 8.3 name space.
79639         * lib/Makefile.am (charset_tmp): Define.
79640         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79641         (uninstall-local): Likewise.
79642         Reported by Eli Zaretskii.
79643
79644 2000-04-03  Jim Meyering  <meyering@lucent.com>
79645
79646         * m4/gettext.m4: Fix typo in comment.
79647
79648         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79649         textutils/configure.in).  Suggestion from Paul Eggert.
79650         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79651
79652 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79653
79654         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79655         variable in the shell rather than using putenv, which isn't
79656         portable.  This avoids the configure-time inter-test dependency
79657         on the potentially-renamed putenv function.
79658
79659 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79660
79661         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79662         before checking struct stat.st_blksize, so that
79663         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79664
79665 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79666
79667         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79668         since strftime.c uses HAVE_STRFTIME to decide whether to use
79669         the underlying strftime.
79670
79671 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79672
79673         * lib/time/strftime.c (my_strftime): Make sure we call the system
79674         strftime, not ourselves, when invoking the underlying strftime.
79675
79676 2000-03-24  Jim Meyering  <meyering@lucent.com>
79677
79678         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79679         (charset_alias): Define.
79680         (install-exec-local): Factor out common code.
79681         (uninstall-local): Split lines longer than 80.
79682         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79683         (SUFFIXES): Define.
79684         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79685         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79686
79687 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79688
79689         * lib/config.charset: Output a line containing "Packages using this
79690         file".
79691         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79692         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79693         ref-del.sed): New rules.
79694
79695 2000-03-17  Jim Meyering  <meyering@lucent.com>
79696
79697         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79698         Otherwise, include <strings.h>
79699
79700 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79701
79702         * lib/unicodeio.c (utf8_wctomb): New function.
79703         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79704         format instead of in UCS-4 with platform dependent endianness.
79705
79706 2000-03-10  Jim Meyering  <meyering@lucent.com>
79707
79708         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79709         From Marco Franzen.
79710
79711 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79712
79713         * lib/savedir.c (savedir): Work even if directory size is
79714         negative; this can happen with some screwy NFS configurations.
79715
79716 2000-03-06  Jim Meyering  <meyering@lucent.com>
79717
79718         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79719         if it's NULL (because we ran out of memory).  From Bruno Haible.
79720
79721 2000-03-05  Jim Meyering  <meyering@lucent.com>
79722
79723         * lib/localcharset.c ("path-concat.h"): Include.
79724         (get_charset_aliases): Use path_concat instead of ANSI string
79725         concatenation.
79726
79727         * lib/unicodeio.h (PARAMS): Define.
79728         Use it to guard prototype.
79729
79730 2000-03-04  Jim Meyering  <meyering@lucent.com>
79731
79732         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79733         for lib/localcharset.c.
79734
79735 2000-03-04  Jim Meyering  <meyering@lucent.com>
79736
79737         * lib/Makefile.am (install-exec-local): Create $(libdir) before
79738         installing into it.
79739         (uninstall-local): Uncomment this rule so `make distcheck' works
79740         once again.
79741
79742         * lib/unicodeio.c (<errno.h>): Include it.
79743         (errno): Declare if not defined.
79744
79745         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
79746
79747         * lib/config.charset: New version, incorporating remarks from a linux
79748         i18n mailing list.  From Bruno Haible.
79749
79750 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
79751
79752         * m4/codeset.m4: New file.
79753         * m4/iconv.m4: New file.
79754         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
79755
79756 2000-03-03  Jim Meyering  <meyering@lucent.com>
79757
79758         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
79759
79760 2000-03-02  Jim Meyering  <meyering@lucent.com>
79761
79762         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
79763         the messages come out on separate lines.
79764
79765         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
79766         rather than jm_CHECK_DECLARATIONS.
79767         * m4/decl.m4: Remove now-unused file.
79768
79769         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
79770         geteuid.
79771
79772 2000-03-02  Jim Meyering  <meyering@lucent.com>
79773
79774         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
79775
79776 2000-03-01  Jim Meyering  <meyering@lucent.com>
79777
79778         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
79779         * lib/unicodeio.c: Likewise.
79780
79781 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
79782
79783         * lib/config.charset: New file.
79784         * lib/localcharset.c: New file.
79785         * lib/unicodeio.h, lib/unicodeio.c: New files.
79786         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
79787         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
79788         (noinst_HEADERS): Add unicodeio.h.
79789         (all-local, install-exec-local, charset.alias): New targets.
79790
79791 2000-02-28  Paul Eggert  <eggert@twinsun.com>
79792
79793         * lib/quotearg.c (ALERT_CHAR): New macro.
79794         (quotearg_buffer_restyled): Use it.
79795
79796 2000-02-27  Jim Meyering  <meyering@lucent.com>
79797
79798         * m4/check-decl.m4: Add getenv to the list.
79799
79800 2000-02-27  Jim Meyering  <meyering@lucent.com>
79801
79802         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
79803         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
79804
79805         * lib/backupfile.c: Guard inclusion of stdlib.h with
79806         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
79807         Declare malloc if needed.
79808
79809         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
79810         `#ifndef HAVE_DECL..'
79811         now that autoconf always defines the HAVE_DECL_ symbols.
79812         * lib/human.c: Likewise.
79813         * lib/same.c: Likewise.
79814         * lib/strtoumax.c: Likewise.
79815
79816         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
79817         declaration check was not run.
79818         * lib/hash.c: Likewise.
79819         * lib/human.c: Likewise.
79820         * lib/same.c: Likewise.
79821         * lib/strtoumax.c: Likewise.
79822
79823         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
79824         `.', then first look up the entire `.'-containing string as a login
79825         name.
79826
79827 2000-02-23  Jim Meyering  <meyering@lucent.com>
79828
79829         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
79830         in place of my hack.
79831
79832 2000-02-18  Paul Eggert  <eggert@twinsun.com>
79833
79834         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
79835         (textint): New typedef.
79836         (parser_control): Member year changed from int to textint.
79837         All uses changed.
79838         (YYSTYPE): Removed; replaced by %union with int and textint members.
79839         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
79840         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
79841         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
79842         (tSNUMBER, tUNUMBER): Now of type <textintval>.
79843         (date, number, to_year): Use width of number in digits, not its value,
79844         to determine whether it's a 2-digit year, or a 2-digit time.
79845         (yylex): Store number of digits of numeric tokens.
79846         Reported by John Kendall.
79847
79848         (parser_control): Changed from struct parser_control to typedef (for
79849         consistency).  All uses changed.
79850
79851         (tID): Removed; not used.
79852         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
79853
79854 2000-02-14  Paul Eggert  <eggert@twinsun.com>
79855
79856         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
79857         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
79858
79859 2000-02-12  Jim Meyering  <meyering@lucent.com>
79860
79861         * lib/userspec.c (ISDIGIT): Define it.
79862         (isdigit): Remove definition.
79863         (is_number): Use ISDIGIT, not isdigit.
79864         <libintl.h>: Include.
79865         (_ and N_): Define.
79866         (parse_user_spec): Mark translatable strings.
79867
79868 2000-02-10  Jim Meyering  <meyering@lucent.com>
79869
79870         With these changes, nanosleep.[ch] are finally enough like the other
79871         lib/* replacement files to compile on a few more losing systems.
79872
79873         * lib/nanosleep.h: Don't include config.h.
79874         Remove prototype from declaration of nanosleep.
79875         (PARAMS): Remove now-unneeded definition.
79876         * lib/nanosleep.c: #undef nanosleep.
79877         (rpl_nanosleep): Rename from nanosleep.
79878
79879 2000-02-10  Jim Meyering  <meyering@lucent.com>
79880
79881         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
79882         gnu_nanosleep to rpl_nanosleep.
79883
79884 2000-02-09  Jim Meyering  <meyering@lucent.com>
79885
79886         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
79887         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
79888
79889 2000-02-08  Akim Demaille  <akim@epita.fr>
79890
79891         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
79892         `[' and `]' and remove uses of `changequote'.
79893         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
79894         (AC_SYS_LARGEFILE): Likewise.
79895         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79896         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
79897         of changequote.
79898         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
79899         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
79900         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
79901         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
79902
79903 2000-02-05  Jim Meyering  <meyering@lucent.com>
79904
79905         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
79906         Remove explicit use of AC_HEADER_TIME.  It is required by
79907         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
79908         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
79909         in autoconf whereby the expansion of the latter ended up preceding
79910         the expansion of its prerequisite, AC_HEADER_TIME.
79911         Reported by Volker Borchert.
79912
79913 2000-02-03  Jim Meyering  <meyering@lucent.com>
79914
79915         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
79916
79917 2000-02-03  Jim Meyering  <meyering@lucent.com>
79918
79919         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
79920         rather than with `#if HAVE_UTMPNAME'.
79921
79922 2000-02-02  Jim Meyering  <meyering@lucent.com>
79923
79924         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
79925         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
79926         Reported by Eli Zaretskii.
79927
79928 2000-02-01  Jim Meyering  <meyering@lucent.com>
79929
79930         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
79931
79932 2000-01-31  Jim Meyering  <meyering@lucent.com>
79933
79934         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
79935         functions.  Add the time.h and sys/time.h headers along with the
79936         AC_REQUIRE'ment of AC_HEADER_TIME.
79937
79938 2000-01-31  Jim Meyering  <meyering@lucent.com>
79939
79940         * lib/nanosleep.h (nanosleep): Guard declaration with
79941         `#if ! HAVE_DECL_NANOSLEEP'.
79942         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
79943         the declaration in that vendor's sys/timers.h.
79944         Reported by Christian Krackowizer.
79945
79946         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
79947         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
79948         (ISPRINT): Likewise.
79949         Reported by Tom Tromey.
79950
79951 2000-01-30  Jim Meyering  <meyering@lucent.com>
79952
79953         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
79954
79955         * m4/prereq.m4 (utmp_includes): Define.
79956         Check for ut_user and ut_name members in both struct utmpx
79957         and struct utmp.
79958
79959 2000-01-30  Jim Meyering  <meyering@lucent.com>
79960
79961         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
79962         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
79963         header files where only utmpx.ut_user is declared.
79964
79965         * lib/readutmp.h (UT_USER): Define.
79966
79967 2000-01-29  Jim Meyering  <meyering@lucent.com>
79968
79969         * m4/lib-check.m4: New file containing library-related checks from
79970         fileutils and sh-utils (textutils had none).
79971
79972 2000-01-28  Jim Meyering  <meyering@lucent.com>
79973
79974         * m4/perl.m4: Change format of warning message to look more like that
79975         from the missing script.  Suggestion from François Pinard.
79976
79977 2000-01-25  Jim Meyering  <meyering@lucent.com>
79978
79979         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
79980         well as time.h in the compile check.
79981         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
79982         Fix typo in cross-compiling case: s/yes/no/.
79983
79984 2000-01-23  Jim Meyering  <meyering@lucent.com>
79985
79986         * m4/jm-macros.m4: Move df-related tests here from
79987         fileutils/configure.in
79988
79989         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79990         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79991
79992         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79993         s/space/ac_fsusage_space/.
79994         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79995
79996         * m4/ftruncate.m4: New file (derived from part of
79997         fileutils/configure.in).
79998         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79999         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80000
80001         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80002         AC_SUBST these here, rather than just in sh-util/configure.in, so
80003         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80004         all the same.
80005         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80006         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80007         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80008         (AC_SUBST(POW_LIBM)): Likewise.
80009         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80010
80011 2000-01-23  Jim Meyering  <meyering@lucent.com>
80012
80013         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80014         obstack.c.
80015
80016 2000-01-22  Jim Meyering  <meyering@lucent.com>
80017
80018         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80019
80020         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80021
80022         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80023         configure.in
80024         (AC_CHECK_HEADERS): Likewise for sh-utils.
80025         (AC_CHECK_HEADERS): Likewise for textutils.
80026         Merge the three lists of headers.
80027
80028         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80029         from fileutils' configure.in.
80030
80031         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80032         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80033         check-decl.m4.
80034
80035         * m4/check-decl.m4: Use #if rather than #ifdef.
80036         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80037         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80038         (_jm_DECL_HEADERS): Define new function.
80039         (jm_CHECK_DECLARATIONS): Require it.
80040
80041 2000-01-22  Jim Meyering  <meyering@lucent.com>
80042
80043         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80044         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80045         Required for some AIX systems.  Reported by Christian Krackowizer.
80046         [TESTING] (main): New function.
80047
80048         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80049         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80050         letters.
80051
80052         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80053         iswprint.
80054
80055         * lib/strverscmp.c (ISDIGIT): Define.
80056         (strverscmp): Use ISDIGIT, not isdigit.
80057
80058 2000-01-19  Jim Meyering  <meyering@lucent.com>
80059
80060         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80061         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80062         defines `struct timespec' in <sys/time.h>
80063
80064         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80065         Thanks to Akim for explaining.
80066
80067 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80068
80069         * lib/nanosleep.c (nanosleep):
80070         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80071         POSIX.1 doesn't require SA_INTERRUPT and some systems
80072         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80073         it's been part of POSIX.1 since day 1 (in 1988).
80074
80075 2000-01-17  Jim Meyering  <meyering@lucent.com>
80076
80077         * lib/interlock: Remove unused file.  Reported by François Pinard.
80078
80079 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80080
80081         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80082         alert, backslash, formfeed, and vertical tab unnecessarily in
80083         shell quoting style.
80084
80085 2000-01-16  Jim Meyering  <meyering@lucent.com>
80086
80087         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80088         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80089         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80090         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80091
80092 2000-01-16  Jim Meyering  <meyering@lucent.com>
80093
80094         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80095         because the latter didn't work.
80096
80097 2000-01-15  Jim Meyering  <meyering@lucent.com>
80098
80099         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80100         (AC_REPLACE_FUNCS): Add memcpy and memset.
80101         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80102         Add strpbrk.
80103         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80104
80105 2000-01-12  Jim Meyering  <meyering@lucent.com>
80106
80107         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80108         (jm_PREREQ): Use it.
80109         (jm_PREREQ_READUTMP): New macro.
80110         (jm_PREREQ): Use it.
80111
80112 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80113
80114         Quote multibyte characters correctly.
80115         * m4/c-bs-a.m4: New file.
80116         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80117         (jm_PREREQ): Use it.
80118
80119 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80120
80121         * m4/uintmax_t.m4: Port to autoconf 2.13.
80122
80123 2000-01-08  Jim Meyering  <meyering@ascend.com>
80124
80125         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80126         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80127
80128 2000-01-04  Jim Meyering  <meyering@ascend.com>
80129
80130         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80131         jm_STRUCT_DIRENT_D_TYPE.
80132         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80133         jm_STRUCT_DIRENT_D_INO.
80134         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80135         jm_STRUCT_UTIMBUF.
80136         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80137         renamings.
80138         * m4/utime.m4: Likewise.
80139
80140         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80141         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80142
80143 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80144
80145         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80146         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80147
80148 2000-01-02  Jim Meyering  <meyering@ascend.com>
80149
80150         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80151         remember if this is necessary.
80152
80153 1999-12-26  Jim Meyering  <meyering@ascend.com>
80154
80155         * m4/jm-macros.m4: Use it here.
80156         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80157
80158 1999-12-23  Jim Meyering  <meyering@ascend.com>
80159
80160         * m4/jm-macros.m4: Check for clock_gettime (moved from
80161         fileutils/configure.in)
80162         Check for gettimeofday.
80163
80164 1999-12-20  Jim Meyering  <meyering@ascend.com>
80165
80166         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80167         autoconf-2.14a-1999-12-20.
80168
80169 1999-12-19  Jim Meyering  <meyering@ascend.com>
80170
80171         * m4/lstat-slash.m4: New file.
80172         * m4/jm-macros.m4: Use the new macro:
80173         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80174
80175 1999-12-07  Jim Meyering  <meyering@ascend.com>
80176
80177         * m4/perl.m4: Require that File::Compare be available, too.
80178         Too many systems seem to lack it.
80179
80180         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80181         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80182
80183 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80184
80185         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80186         problem with the QNX 4.25 shell, which doesn't propagate exit
80187         status of failed commands inside shell assignments.
80188
80189 1999-11-17  Jim Meyering  <meyering@ascend.com>
80190
80191         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80192
80193 1999-11-07  Jim Meyering  <meyering@ascend.com>
80194
80195         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80196
80197 1999-11-06  Jim Meyering  <meyering@ascend.com>
80198
80199         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80200         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80201
80202 1999-11-05  Jim Meyering  <meyering@ascend.com>
80203
80204         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80205         configure.in of textutils, fileutils, and sh-utils into this one
80206         (shared between those packages) file.
80207         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80208         AC_STRUCT_ST_BLKSIZE.
80209
80210 1999-11-03  Jim Meyering  <meyering@ascend.com>
80211
80212         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80213         of AC_CHECK_TYPE checks includes unistd.h.
80214         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80215         Suggestion from Akim Demaille.
80216
80217 1999-10-30  Jim Meyering  <meyering@ascend.com>
80218
80219         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80220         m4-quoted string.
80221         * m4/ls-mntd-fs.m4: Likewise.
80222         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80223         * m4/jm-winsz1.m4: Likewise.
80224
80225         * m4/const.m4: Remove file, since the fix made it into the experimental
80226         version of autoconf.
80227         * m4/mktime.m4: Likewise.
80228
80229         * m4/check-type.m4: Remove file, now that the latest version of
80230         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80231
80232         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80233         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80234         AC_CHECK_TYPE.
80235
80236 1999-10-04  Jim Meyering  <meyering@ascend.com>
80237
80238         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80239
80240 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80241
80242         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80243         2.95.1 bug with HP-UX 10.20.
80244
80245 1999-09-17  Jim Meyering  <meyering@ascend.com>
80246
80247         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80248         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80249         due to missing strdup (against sh-utils-2.0).
80250
80251 1999-08-29  Jim Meyering  <meyering@ascend.com>
80252
80253         * m4/jm-macros.m4: Require jm_BISON.
80254         * m4/bison.m4: New file.
80255
80256 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80257
80258         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80259         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80260
80261 1999-08-05  Jim Meyering  <meyering@ascend.com>
80262
80263         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80264         to avoid conflicts with `conftest' on 8+3 filesystems.
80265         Suggestion from Eli Zaretskii.
80266
80267 1999-08-04  Jim Meyering  <meyering@ascend.com>
80268
80269         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80270         fileutils and sh-utils (textutils's getline test was inadequate).
80271         (AM_FUNC_GETLINE): Run this test.
80272         (AC_CHECK_FUNCS): Check for getdelim.
80273         Reported by Bob Proulx.
80274
80275 1999-08-02  Jim Meyering  <meyering@ascend.com>
80276
80277         * m4/jm-macros.m4: Add a comment.
80278
80279 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80280
80281         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80282         <inttypes.h> defines strtoumax as a macro (and not as a
80283         function).
80284
80285 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80286
80287         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80288         that we can shift, multiply and divide unsigned long long
80289         values; Ultrix cc can't do it.
80290
80291 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80292
80293         * m4/mktime.m4: New file, which is a preview of what should appear
80294         in the next public autoconf release.
80295
80296 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80297
80298         * m4/lfs.m4: Remove this file.
80299         * m4/largefile.m4: New file.  It contains the old contents of
80300         lfs.m4, except that all names with prefix AC_LFS have been
80301         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80302         compatible with future autoconf versions.  Also, some minor m4
80303         quoting problems have been fixed.
80304
80305 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80306
80307         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80308         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80309         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80310         and simplify the shell code.
80311
80312 1999-08-01  Jim Meyering  <meyering@ascend.com>
80313
80314         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80315         m4.
80316
80317 1999-07-20  Jim Meyering  <meyering@ascend.com>
80318
80319         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80320
80321 1999-07-15  Jim Meyering  <meyering@ascend.com>
80322
80323         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80324
80325 1999-05-22  Jim Meyering  <meyering@ascend.com>
80326
80327         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80328
80329 1999-05-20  Jim Meyering  <meyering@ascend.com>
80330
80331         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80332         Add a colon after each `then' in case $4 is empty.
80333
80334 1999-05-16  Jim Meyering  <meyering@ascend.com>
80335
80336         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80337
80338 1999-05-10  Jim Meyering  <meyering@ascend.com>
80339
80340         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80341
80342         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80343         AC_FUNC_MKTIME.
80344
80345 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80346
80347         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80348
80349 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80350
80351         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80352         not CPPFLAGS, so that linking works correctly in IRIX.
80353
80354 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80355
80356         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80357
80358 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80359
80360         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80361         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80362         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80363         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80364         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80365
80366         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80367
80368 1999-04-20  Jim Meyering  <meyering@ascend.com>
80369
80370         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80371         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80372         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80373
80374 1999-04-18  Jim Meyering  <meyering@ascend.com>
80375
80376         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80377         * m4/jm-macros.m4: Use it.
80378
80379 1999-04-06  Jim Meyering  <meyering@ascend.com>
80380
80381         * m4/strftime.m4: Remove test for %f.
80382
80383 1999-03-29  Jim Meyering  <meyering@ascend.com>
80384
80385         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80386         superset of the AC_TYPE_* checks in the textutils, fileutils,
80387         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80388         AC_TYPE_PID_T.
80389
80390 1999-03-28  Jim Meyering  <meyering@ascend.com>
80391
80392         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80393         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80394         replaced e.g., in the *.sh files of the sh-utils.
80395
80396 1999-03-20  Jim Meyering  <meyering@ascend.com>
80397
80398         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80399         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80400         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80401
80402 1999-03-19  Jim Meyering  <meyering@ascend.com>
80403
80404         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80405
80406 1999-03-12  Jim Meyering  <meyering@ascend.com>
80407
80408         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80409
80410 1999-03-07  Jim Meyering  <meyering@ascend.com>
80411
80412         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80413         declared.
80414
80415 1999-02-17  Jim Meyering  <meyering@ascend.com>
80416
80417         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80418         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80419
80420 1999-02-07  Jim Meyering  <meyering@ascend.com>
80421
80422         * m4/group-member.m4: New file -- extracted from sh-utils'
80423         configure.in.
80424
80425         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80426         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80427
80428 1999-02-06  Jim Meyering  <meyering@ascend.com>
80429
80430         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80431         * m4/fnmatch.m4: Likewise.
80432         * m4/getgroups.m4: Likewise.
80433         * m4/lstat.m4: Likewise.
80434         * m4/malloc.m4: Likewise.
80435         * m4/putenv.m4: Likewise.
80436         * m4/realloc.m4: Likewise.
80437         * m4/regex.m4: Likewise.
80438         * m4/stat.m4: Likewise.
80439         * m4/strftime.m4: Likewise.
80440         Suggestion from Alain Magloire.
80441
80442         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80443         * m4/fnmatch.m4: Likewise.
80444         * m4/getgroups.m4: Likewise.
80445         * m4/getline.m4: Likewise.
80446         * m4/lstat.m4: Likewise.
80447         * m4/malloc.m4: Likewise.
80448         * m4/memcmp.m4: Likewise.
80449         * m4/putenv.m4: Likewise.
80450         * m4/realloc.m4: Likewise.
80451         * m4/regex.m4: Likewise.
80452         * m4/stat.m4: Likewise.
80453         * m4/strftime.m4: Likewise.
80454         Suggestion from Alain Magloire.
80455
80456         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80457         an argument.
80458
80459         * m4/regex.m4: Add a run-time Test for proper operation of
80460         re_compile_pattern.
80461
80462 1999-01-31  Jim Meyering  <meyering@ascend.com>
80463
80464         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
80465
80466 1999-01-30  Jim Meyering  <meyering@ascend.com>
80467
80468         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
80469
80470         * m4/jm-mktime.m4: Make this a wrapper around the official
80471         AM_FUNC_MKTIME rather than my private copy, now that the official one
80472         is up to date.
80473         * m4/mktime.m4: Remove file.
80474
80475         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
80476         * m4/uptime.m4: Likewise.
80477         * m4/uintmax_t.m4: Likewise.
80478
80479 1999-01-28  Jim Meyering  <meyering@ascend.com>
80480
80481         * m4/jm-macros.m4: Use jm_AFS.
80482         * m4/afs.m4: New file (from fileutils' configure.in).
80483
80484         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
80485         * m4/chown.m4: Likewise.
80486         * m4/d-ino.m4: Likewise.
80487         * m4/d-type.m4: Likewise.
80488         * m4/fnmatch.m4: Likewise.
80489         * m4/getgroups.m4: Likewise.
80490         * m4/gettext.m4: Likewise.
80491         * m4/jm-mktime.m4: Likewise.
80492         * m4/jm-winsz2.m4: Likewise.
80493         * m4/lcmessage.m4: Likewise.
80494         * m4/ls-mntd-fs.m4: Likewise.
80495         * m4/malloc.m4: Likewise.
80496         * m4/memcmp.m4: Likewise.
80497         * m4/putenv.m4: Likewise.
80498         * m4/realloc.m4: Likewise.
80499         * m4/st_mtim.m4: Likewise.
80500         * m4/strftime.m4: Likewise.
80501
80502 1999-01-16  Jim Meyering  <meyering@ascend.com>
80503
80504         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
80505         (ARGMATCH_DIE_DECL): Define.
80506
80507 1999-01-12  Jim Meyering  <meyering@ascend.com>
80508
80509         * m4/Makefile.am.in: Rewrite to avoid using fmt.
80510         Reported by Lars Hecking.
80511
80512 1999-01-10  Jim Meyering  <meyering@ascend.com>
80513
80514         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
80515         gross kludge.
80516         * m4/inttypes_h.m4: Likewise.
80517         * m4/lstat.m4: Likewise.
80518         * m4/malloc.m4: Likewise.
80519         * m4/readdir.m4: Likewise.
80520         * m4/realloc.m4: Likewise.
80521         * m4/st_dm_mode.m4: Likewise.
80522         * m4/stat.m4: Likewise.
80523         * m4/utimbuf.m4: Likewise.
80524         * m4/utimes.m4: Likewise.
80525
80526         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
80527         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
80528         comments in config.h.in are meaningful.
80529
80530         * m4/jm-macros.m4: Require autoconf-2.13 here.
80531
80532         * m4/regex.m4: By default, don't use the included regex.c on systems
80533         with glibc 2.  Suggestion from Uli Drepper.
80534
80535 1999-01-02  Jim Meyering  <meyering@ascend.com>
80536
80537         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
80538
80539 1998-12-18  Jim Meyering  <meyering@ascend.com>
80540
80541         * m4/Makefile.am.in (Makefile.am): Simplify rule.
80542         Based on a suggestion from Lars Hecking.
80543
80544 1998-11-16  Paul Eggert  <eggert@twinsun.com>
80545
80546         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
80547
80548 1998-11-16  Jim Meyering  <meyering@ascend.com>
80549
80550         * m4/lfs.m4: Double-quote the `uname...` expression.
80551
80552 1998-11-14  Jim Meyering  <meyering@ascend.com>
80553
80554         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
80555         * m4/stat.m4: Likewise.
80556
80557 1998-11-03  Jim Meyering  <meyering@ascend.com>
80558
80559         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
80560         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
80561
80562 1998-10-18  Jim Meyering  <meyering@ascend.com>
80563
80564         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
80565
80566 1998-10-17  Jim Meyering  <meyering@ascend.com>
80567
80568         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
80569         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
80570         calls for those previously hard-coded headers.  Instead, take a new
80571         parameter.
80572         (jm_CHECK_DECLARATIONS): Reflect interface change.
80573         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
80574         (jm_CHECK_DECL_LOCALTIME_R): New macro.
80575
80576         * m4/mktime.m4: Test for spring-forward gap before long-running test.
80577
80578 1998-10-14  Jim Meyering  <meyering@ascend.com>
80579
80580         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
80581         instead of "TZ=America/Vancouver".  From Paul Eggert.
80582
80583 1998-10-11  Jim Meyering  <meyering@ascend.com>
80584
80585         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
80586         This adds a test for a recently added compatibility fix for mktime.c.
80587         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
80588
80589 1998-09-27  Jim Meyering  <meyering@ascend.com>
80590
80591         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
80592
80593         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
80594         ../configure.in, including a change from Gordon Matzigkeit to allow
80595         cross-compiling for the Hurd.
80596
80597         * m4/glibc.m4: New file/macro to test for the GNU C Library
80598         versions 1 and 2.  From Gordon Matzigkeit.
80599         Indent.
80600
80601 1998-09-21  Jim Meyering  <meyering@ascend.com>
80602
80603         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
80604
80605 1998-08-18  Paul Eggert  <eggert@twinsun.com>
80606
80607         Port nanosecond-resolution times to UnixWare 2.1.2 and
80608         pedantic Solaris 2.6.
80609
80610         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
80611         AC_STRUCT_ST_MTIM.
80612         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
80613         Generate name of ns member, instead of just 1 or undef.
80614         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
80615
80616 1998-08-15  Jim Meyering  <meyering@ascend.com>
80617
80618         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
80619         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
80620         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
80621         instead of jm_TYPE_SSIZE_T.
80622
80623 1998-08-12  Jim Meyering  <meyering@ascend.com>
80624
80625         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
80626
80627 1998-08-02  Jim Meyering  <meyering@ascend.com>
80628
80629         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
80630         in acconfig.h manually.
80631
80632 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80633
80634         * m4/st_mtim.m4: New file.
80635
80636 1998-07-28  Jim Meyering  <meyering@ascend.com>
80637
80638         * m4/utimes.m4: Undef stat.
80639
80640 1998-07-25  Jim Meyering  <meyering@ascend.com>
80641
80642         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80643         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80644
80645 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80646
80647         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80648         uid and gid actually remain unchanged.
80649
80650 1998-07-07  Jim Meyering  <meyering@ascend.com>
80651
80652         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80653
80654 1998-07-04  Jim Meyering  <meyering@ascend.com>
80655
80656         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80657         to prove that this macro can be used in packages without regex.c.
80658
80659 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80660
80661         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80662         is to be used.
80663
80664 1998-07-03  Jim Meyering  <meyering@ascend.com>
80665
80666         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80667
80668         * m4/gettext.m4: New file -- from gettext-0.10.35.
80669         * m4/lcmessage.m4: Likewise.
80670         * m4/progtest.m4: Likewise.
80671
80672         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80673         * m4/jm-macros.m4: Require the new macro.
80674
80675 1998-06-29  Jim Meyering  <meyering@ascend.com>
80676
80677         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80678         for the definition of NGROUPS (used in a system header included
80679         by sys/mount.h).
80680
80681 1998-06-28  Jim Meyering  <meyering@ascend.com>
80682
80683         * m4/ls-mntd-fs.m4: New file.
80684         * m4/fstypename.m4: New file.
80685
80686         * m4/jm-macros.m4: Require the new macro.
80687         * m4/jm-glibc-io.m4: New file.
80688
80689 1998-05-19  Jim Meyering  <meyering@ascend.com>
80690
80691         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80692         * m4/lchown.m4: New file.
80693
80694         * m4/Makefile.am.in: New file.
80695         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80696
80697 1998-05-14  Jim Meyering  <meyering@ascend.com>
80698
80699         * m4/Makefile.am (EXTRA_DIST): Add them.
80700         * m4/jm-macros.m4: New file.
80701         * m4/utimbuf.m4: New file.
80702
80703 1998-05-12  Jim Meyering  <meyering@ascend.com>
80704
80705         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80706
80707 1998-05-11  Jim Meyering  <meyering@ascend.com>
80708
80709         * m4/isc-posix.m4: New file.
80710
80711 1998-05-10  Jim Meyering  <meyering@ascend.com>
80712
80713         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80714
80715 1998-05-09  Jim Meyering  <meyering@ascend.com>
80716
80717         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80718         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80719         with automake.
80720
80721         * m4/ssize_t.m4: New file.
80722         * m4/mktime.m4: Remove file -- the new automake has this now.
80723
80724 1998-04-26  Jim Meyering  <meyering@ascend.com>
80725
80726         * m4/assert.m4: New file.
80727         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80728
80729 1998-04-05  Jim Meyering  <meyering@ascend.com>
80730
80731         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80732         (jm_PREREQ): Use it here.
80733
80734 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80735
80736         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
80737         in acconfig.h.
80738
80739 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
80740
80741         * m4/prereq.m4: New file.
80742         * m4/error.m4: New file.
80743         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
80744
80745 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
80746
80747         * m4/getline.m4: Don't set am_cv_func_working_getline before the
80748         cache-check for the same variable -- that defeated the purpose of
80749         the test; the test program was never run.  This was a problem only
80750         on systems with losing getline functions -- HP-UX 10.20 is one.
80751         Reported by Bjorn Helgaas.
80752
80753 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
80754
80755         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
80756
80757 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
80758
80759         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
80760
80761         * m4/const.m4: New file.  Use an initializer in this declaration
80762         typedef int charset[2]; const charset x;
80763         Reported by Bob Glickstein.
80764
80765 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
80766
80767         * m4/chown.m4: Fix reversed types on -1 args to chown.
80768         From Kaveh Ghazi.
80769
80770 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
80771
80772         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
80773         Add lseek and memchr.
80774
80775         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
80776         T.E.Dickey <dickey@clark.net> said that some older preprocessors
80777         have a 20-character limit on names.
80778
80779 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
80780
80781         * m4/inttypes_h.m4: New file.
80782         * m4/uintmax_t.m4: New file.
80783         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
80784
80785
80786         -----
80787
80788         Local Variables:
80789         coding: utf-8
80790         End:
80791
80792         Copyright (C) 1997-2011 Free Software Foundation, Inc.
80793
80794         Copying and distribution of this file, with or without
80795         modification, are permitted provided the copyright notice
80796         and this notice are preserved.